1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-15 16:43:44 -05:00
denoland-deno/cli
Rich Trott e568ddf996
fix(op_crates/fetch): correct regexp for fetch header (#8927)
Fix bug in regular expression and make the regular expression more
strict.

In a string passed to new RegExp(), '[\t\s]' is identical to '[ts]' and
not `/[\t\s]/`. For that, the backslash needs to be escaped in the
string. Futhermore, `\t` is the tab character and is included in the
special regexp value `\s` so is unnecessary.

That would reduce the RegExp to new RegExp(`^${value}\\s*;?`) but
there's no point in matching 0 or more space characters followed by 0 or
one semi-colons as that will match no matter what follows `value`.

To make it more strict, require one of space, semicolon, or
end-of-string after value.
2020-12-30 23:46:08 +01:00
..
bench refactor(cli+core): various cleanups in Rust (#8336) 2020-11-13 09:17:31 +11:00
dts BREAKING(unstable): Use hosts for net allowlists (#8845) 2020-12-30 23:35:28 +01:00
lsp feat(lsp): add cache command (#8911) 2020-12-30 15:17:17 +11:00
ops feat(lsp): add cache command (#8911) 2020-12-30 15:17:17 +11:00
tests fix(op_crates/fetch): correct regexp for fetch header (#8927) 2020-12-30 23:46:08 +01:00
tools refactor(cli/flags): change allow_read/write/net types from bool to Option<Vec<T>> (#8896) 2020-12-29 19:34:35 +01:00
tsc fix(lsp): handle ts debug errors better (#8914) 2020-12-30 12:46:58 +11:00
ast.rs upgrade: deno_doc, deno_lint, dprint, swc (#8849) 2020-12-22 00:57:03 +01:00
build.rs Revert "build: Factor out common code into core/build_util.rs (#8756)" (#8763) 2020-12-14 18:42:40 +01:00
Cargo.toml v1.6.3 2020-12-30 16:13:42 +01:00
checksum.rs refactor(cli): add tsc2 (#7942) 2020-10-14 10:52:49 +11:00
colors.rs chore(cli): remove dead code (#7941) 2020-10-12 22:25:25 +11:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_dir.rs chore: clippy future cleanups (#8514) 2020-11-28 06:47:35 +11:00
diagnostics.rs chore: clippy future cleanups (#8514) 2020-11-28 06:47:35 +11:00
diff.rs refactor(cli+core): various cleanups in Rust (#8336) 2020-11-13 09:17:31 +11:00
disk_cache.rs fix: atomically write files to $DENO_DIR (#8822) 2020-12-18 19:30:49 +01:00
errors.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
file_fetcher.rs feat(lsp): add cache command (#8911) 2020-12-30 15:17:17 +11:00
file_watcher.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
flags.rs refactor(cli/flags): change allow_read/write/net types from bool to Option<Vec<T>> (#8896) 2020-12-29 19:34:35 +01:00
flags_allow_net.rs chore: add copyright (#7593) 2020-09-21 08:26:41 -04:00
fmt_errors.rs refactor: Rename runtime/rt to runtime/js (#8806) 2020-12-17 17:37:57 +01:00
fs_util.rs fix: atomically write files to $DENO_DIR (#8822) 2020-12-18 19:30:49 +01:00
http_cache.rs fix: atomically write files to $DENO_DIR (#8822) 2020-12-18 19:30:49 +01:00
http_util.rs refactor: remove dead code (#8781) 2020-12-15 21:45:29 +01:00
import_map.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
info.rs refactor(cli): remove unnecessary format! calls (#8315) 2020-11-09 15:38:29 +01:00
js.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
lockfile.rs refactor(cli): Remove unnecessary conversion into BTreeMap (#8498) 2020-11-26 13:16:48 +01:00
main.rs feat(lsp): add cache command (#8911) 2020-12-30 15:17:17 +11:00
media_type.rs chore: clippy future cleanups (#8514) 2020-11-28 06:47:35 +11:00
module_graph.rs fix(cli): info does not panic on missing modules (#8924) 2020-12-30 22:19:51 +11:00
module_loader.rs fix(cli): make dynamic import errors catchable (#8750) 2020-12-15 16:52:55 +11:00
program_state.rs feat(lsp): add cache command (#8911) 2020-12-30 15:17:17 +11:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
source_maps.rs refactor(cli): rename fmt_errors::JsError to PrettyJsError (#8435) 2020-11-19 20:37:22 +01:00
specifier_handler.rs feat(lsp): add cache command (#8911) 2020-12-30 15:17:17 +11:00
standalone.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
text_encoding.rs Move JSON ops to deno_core (#7336) 2020-09-06 02:34:02 +02:00
tokio_util.rs set maximum size of thread pool to 31 (#7290) 2020-08-31 17:38:25 -04:00
tsc.rs feat(lsp): add cache command (#8911) 2020-12-30 15:17:17 +11:00
tsc_config.rs feat: add mvp language server (#8515) 2020-12-07 21:46:39 +11:00
version.rs refactor(cli): decouple ops from ProgramState and Flags (#8659) 2020-12-11 18:49:26 +01:00

Deno CLI Crate

crates docs

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.