Skip to content

Commit 374049b

Browse files
marvinhagemeisterbartlomieju
authored andcommitted
fix(npm): ensure scoped package name is encoded in URLs (#26390)
Fixes #26385
1 parent 2df27b9 commit 374049b

File tree

140 files changed

+215
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+215
-204
lines changed

cli/npm/managed/cache/registry_info.rs

+13-2
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ impl RegistryInfoDownloader {
242242

243243
fn get_package_url(&self, name: &str) -> Url {
244244
let registry_url = self.npmrc.get_registry_url(name);
245+
// The '/' character in scoped package names "@scope/name" must be
246+
// encoded for older third party registries. Newer registries and
247+
// npm itself support both ways
248+
// - encoded: https://registry.npmjs.org/@rollup%2fplugin-json
249+
// - non-ecoded: https://registry.npmjs.org/@rollup/plugin-json
250+
// To support as many third party registries as possible we'll
251+
// always encode the '/' character.
252+
245253
// list of all characters used in npm packages:
246254
// !, ', (, ), *, -, ., /, [0-9], @, [A-Za-z], _, ~
247255
const ASCII_SET: percent_encoding::AsciiSet =
@@ -253,11 +261,14 @@ impl RegistryInfoDownloader {
253261
.remove(b'*')
254262
.remove(b'-')
255263
.remove(b'.')
256-
.remove(b'/')
257264
.remove(b'@')
258265
.remove(b'_')
259266
.remove(b'~');
260267
let name = percent_encoding::utf8_percent_encode(name, &ASCII_SET);
261-
registry_url.join(&name.to_string()).unwrap()
268+
registry_url
269+
// Ensure that scoped package name percent encoding is lower cased
270+
// to match npm.
271+
.join(&name.to_string().replace("%2F", "%2f"))
272+
.unwrap()
262273
}
263274
}

tests/integration/compile_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ console.log(getValue());"#,
11111111
.run();
11121112
output.assert_exit_code(0);
11131113
output.assert_matches_text(
1114-
r#"Download http://localhost:4260/@denotest/esm-basic
1114+
r#"Download http://localhost:4260/@denotest%2fesm-basic
11151115
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
11161116
Initialize @denotest/[email protected]
11171117
Check file:///[WILDCARD]/main.ts

tests/integration/npm_tests.rs

+18-18
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ fn auto_discover_lock_file() {
876876
.run();
877877
output
878878
.assert_matches_text(
879-
r#"Download http://localhost:4260/@denotest/bin
879+
r#"Download http://localhost:4260/@denotest%2fbin
880880
error: Integrity check failed for package: "npm:@denotest/[email protected]". Unable to verify that the package
881881
is the same as when the lockfile was generated.
882882
@@ -1058,10 +1058,10 @@ fn reload_info_not_found_cache_but_exists_remote() {
10581058
.run();
10591059
output.assert_matches_text(concat!(
10601060
"[UNORDERED_START]\n",
1061-
"Download http://localhost:4260/@denotest/esm-basic\n",
1062-
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
1063-
"Download http://localhost:4260/@denotest/cjs-default-export\n",
1064-
"Download http://localhost:4260/@denotest/cjs-default-export/1.0.0.tgz\n",
1061+
"Download http://localhost:4260/@denotest%2fesm-basic\n",
1062+
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
1063+
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
1064+
"Download http://localhost:4260/@denotestcjs-default-export/1.0.0.tgz\n",
10651065
"Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz\n",
10661066
"Download http://localhost:4260/@denotest/esm-import-cjs-default/1.0.0.tgz\n",
10671067
"[UNORDERED_END]\n",
@@ -1088,8 +1088,8 @@ fn reload_info_not_found_cache_but_exists_remote() {
10881088
let output = test_context.new_command().args("run main.ts").run();
10891089
output.assert_matches_text(concat!(
10901090
"[UNORDERED_START]\n",
1091-
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
1092-
"Download http://localhost:4260/@denotest/cjs-default-export\n",
1091+
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
1092+
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
10931093
"[UNORDERED_END]\n",
10941094
"Node esm importing node cjs\n[WILDCARD]",
10951095
));
@@ -1120,8 +1120,8 @@ fn reload_info_not_found_cache_but_exists_remote() {
11201120
let output = test_context.new_command().args("run main.ts").run();
11211121
output.assert_matches_text(concat!(
11221122
"[UNORDERED_START]\n",
1123-
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
1124-
"Download http://localhost:4260/@denotest/cjs-default-export\n",
1123+
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
1124+
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
11251125
"[UNORDERED_END]\n",
11261126
"Node esm importing node cjs\n[WILDCARD]",
11271127
));
@@ -1159,8 +1159,8 @@ fn reload_info_not_found_cache_but_exists_remote() {
11591159
let output = test_context.new_command().args("run main.ts").run();
11601160
output.assert_matches_text(concat!(
11611161
"[UNORDERED_START]\n",
1162-
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
1163-
"Download http://localhost:4260/@denotest/cjs-default-export\n",
1162+
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
1163+
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
11641164
"[UNORDERED_END]\n",
11651165
"[UNORDERED_START]\n",
11661166
"Initialize @denotest/[email protected]\n",
@@ -1196,9 +1196,9 @@ fn reload_info_not_found_cache_but_exists_remote() {
11961196
let output = test_context.new_command().args("run main.ts").run();
11971197
output.assert_matches_text(concat!(
11981198
"[UNORDERED_START]\n",
1199-
"Download http://localhost:4260/@denotest/esm-basic\n",
1200-
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
1201-
"Download http://localhost:4260/@denotest/cjs-default-export\n",
1199+
"Download http://localhost:4260/@denotest%2fesm-basic\n",
1200+
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
1201+
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
12021202
"[UNORDERED_END]\n",
12031203
"Initialize @denotest/[email protected]\n",
12041204
"Node esm importing node cjs\n[WILDCARD]",
@@ -1237,9 +1237,9 @@ fn reload_info_not_found_cache_but_exists_remote() {
12371237
let output = test_context.new_command().args("run main.ts").run();
12381238
output.assert_matches_text(concat!(
12391239
"[UNORDERED_START]\n",
1240-
"Download http://localhost:4260/@denotest/cjs-default-export\n",
1241-
"Download http://localhost:4260/@denotest/esm-basic\n",
1242-
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
1240+
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
1241+
"Download http://localhost:4260/@denotest%2fesm-basic\n",
1242+
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
12431243
"[UNORDERED_END]\n",
12441244
"Node esm importing node cjs\n[WILDCARD]",
12451245
));
@@ -1419,7 +1419,7 @@ fn top_level_install_package_json_explicit_opt_in() {
14191419
temp_dir.write("main.ts", "console.log(5);");
14201420
let output = test_context.new_command().args("cache main.ts").run();
14211421
output.assert_matches_text(concat!(
1422-
"Download http://localhost:4260/@denotest/esm-basic\n",
1422+
"Download http://localhost:4260/@denotest%2fesm-basic\n",
14231423
"Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz\n",
14241424
"Initialize @denotest/[email protected]\n",
14251425
));

tests/integration/run_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ fn lock_redirects() {
898898
.run()
899899
.assert_matches_text(concat!(
900900
"Download http://localhost:4545/echo.ts\n",
901-
"Download http://localhost:4260/@denotest/esm-basic\n",
901+
"Download http://localhost:4260/@denotest%2fesm-basic\n",
902902
"Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz\n",
903903
"Hi, there",
904904
));

tests/specs/add/dev/add.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/esm-basic
2+
Download http://localhost:4260/@denotest%2fesm-basic
33
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
44
Initialize @denotest/[email protected]
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/esm-basic
2+
Download http://localhost:4260/@denotest%2fesm-basic
33
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/unstable
2+
Download http://localhost:4260/@denotest%2funstable
33
Download http://localhost:4260/@denotest/unstable/1.0.0-beta.1.tgz

tests/specs/add/package_json_and_deno_json/add.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Add npm:@denotest/[email protected]
33
Add jsr:@denotest/[email protected]
44
Add npm:@denotest/[email protected]
5-
Download http://localhost:4260/@denotest/esm-basic
5+
Download http://localhost:4260/@denotest%2fesm-basic
66
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
7-
Download http://localhost:4260/@denotest/say-hello
7+
Download http://localhost:4260/@denotest%2fsay-hello
88
Download http://localhost:4260/@denotest/say-hello/1.0.0.tgz
99
Initialize @denotest/[email protected]
1010
Initialize @denotest/[email protected]
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/esm-basic
2+
Download http://localhost:4260/@denotest%2fesm-basic
33
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
44
Initialize @denotest/[email protected]
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
Initialize @denotest/[email protected]
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz

tests/specs/check/cjs_default_export/main.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/cjs-default-export
1+
Download http://localhost:4260/@denotest%2fcjs-default-export
22
Download http://localhost:4260/@denotest/cjs-default-export/1.0.0.tgz
33
Check file:///[WILDCARD]/main.ts
44
error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
Initialize @denotest/[email protected]
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
Initialize @denotest/[email protected]
44
Check file://[WILDCARD]/main.ts
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
Initialize @denotest/[email protected]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
Initialize @denotest/[email protected]

tests/specs/compile/npmrc_byonm/install.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[UNORDERED_START]
2-
Download http://localhost:4261/@denotest/basic
3-
Download http://localhost:4262/@denotest2/basic
2+
Download http://localhost:4261/@denotest%2fbasic
3+
Download http://localhost:4262/@denotest2%2fbasic
44
Download http://localhost:4261/@denotest/basic/1.0.0.tgz
55
Download http://localhost:4262/@denotest2/basic/1.0.0.tgz
66
Initialize @denotest2/[email protected]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
Initialize @denotest/[email protected]
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
✅ Successfully installed deno-test-bin[WILDCARD]
44
[WILDCARD]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/esm-basic
2+
Download http://localhost:4260/@denotest%2fesm-basic
33
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/esm-basic
2+
Download http://localhost:4260/@denotest%2fesm-basic
33
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
44
Initialize @denotest/[email protected]

tests/specs/install/future_install_local_deno/install.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Download http://localhost:4545/subdir/print_hello.ts
88
Download http://127.0.0.1:4250/@denotest/add/meta.json
99
Download http://127.0.0.1:4250/@denotest/add/1.0.0_meta.json
1010
Download http://127.0.0.1:4250/@denotest/add/1.0.0/mod.ts
11-
Download http://localhost:4260/@denotest/esm-basic
11+
Download http://localhost:4260/@denotest%2fesm-basic
1212
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
1313
Download http://127.0.0.1:4250/@std/testing/1.0.0/bdd.ts
1414
Download http://127.0.0.1:4250/@std/testing/1.0.0/types.ts

tests/specs/install/future_install_node_modules/install.out

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/esm-basic
2+
Download http://localhost:4260/@denotest%2fesm-basic
33
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
44
Initialize @denotest/[email protected]
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/esm-basic
2+
Download http://localhost:4260/@denotest%2fesm-basic
33
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
44
Initialize @denotest/[email protected]
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/esm-basic
2+
Download http://localhost:4260/@denotest%2fesm-basic
33
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
44
Initialize @denotest/[email protected]

tests/specs/install/install_deprecated_package/install.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Add npm:@denotest/[email protected]
2-
Download http://localhost:4260/@denotest/deprecated-package
2+
Download http://localhost:4260/@denotest%2fdeprecated-package
33
Download http://localhost:4260/@denotest/deprecated-package/1.0.0.tgz
44
Initialize @denotest/[email protected]
55
Warning The following packages are deprecated:

tests/specs/install/install_entrypoint/install.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[UNORDERED_START]
22
Download http://127.0.0.1:4250/@denotest/add/meta.json
3-
Download http://localhost:4260/@denotest/esm-basic
3+
Download http://localhost:4260/@denotest%2fesm-basic
44
Download http://127.0.0.1:4250/@denotest/add/1.0.0_meta.json
55
Download http://127.0.0.1:4250/@denotest/add/1.0.0/mod.ts
66
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz

tests/specs/install/install_entrypoint/lifecycle.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[UNORDERED_START]
2-
Download http://localhost:4260/@denotest/node-lifecycle-scripts
3-
Download http://localhost:4260/@denotest/bin
2+
Download http://localhost:4260/@denotest%2fnode-lifecycle-scripts
3+
Download http://localhost:4260/@denotest%2fbin
44
Download http://localhost:4260/@denotest/node-lifecycle-scripts/1.0.0.tgz
55
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
66
Initialize @denotest/[email protected]

tests/specs/install/non_existent_optional_peer/install.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[UNORDERED_START]
2-
Download http://localhost:4260/@denotest/non-existent-optional-peer
2+
Download http://localhost:4260/@denotest%2fnon-existent-optional-peer
33
Download http://localhost:4260/uWebSockets.js
44
Download http://localhost:4260/@denotest/non-existent-optional-peer/1.0.0.tgz
55
[UNORDERED_END]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
Initialize @denotest/[email protected]

tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/subtract
1+
Download http://localhost:4260/@denotest%2fsubtract
22
error: Uncaught (in promise) TypeError: The lockfile is out of date. Run `deno install --frozen=false`, or rerun with `--frozen=false` to update it.
33
changes:
44
4 | - "npm:@denotest/add@1": "1.0.0"

tests/specs/lockfile/frozen_lockfile/frozen_new_dep_run.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/subtract
1+
Download http://localhost:4260/@denotest%2fsubtract
22
error: The lockfile is out of date. Run `deno install --frozen=false`, or rerun with `--frozen=false` to update it.
33
changes:
44
4 | - "npm:@denotest/add@1": "1.0.0"

tests/specs/lockfile/frozen_lockfile/frozen_package_json_changed.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/bin
1+
Download http://localhost:4260/@denotest%2fbin
22
error: The lockfile is out of date. Run `deno install --frozen=false`, or rerun with `--frozen=false` to update it.
33
changes:
44
4 | - "npm:@denotest/add@1": "1.0.0"

tests/specs/lockfile/frozen_lockfile/no_lockfile_run.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/add
1+
Download http://localhost:4260/@denotest%2fadd
22
error: The lockfile is out of date. Run `deno install --frozen=false`, or rerun with `--frozen=false` to update it.
33
changes:
44
1 | -
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Download http://localhost:4260/@denotest/esm-basic
1+
Download http://localhost:4260/@denotest%2fesm-basic
22
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
33
Initialize @denotest/[email protected]

tests/specs/node/cjs_reexport_same_specifier_in_sub_folder/main.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/cjs-reexport-same-specifier-in-sub-folder
1+
Download http://localhost:4260/@denotest%2fcjs-reexport-same-specifier-in-sub-folder
22
Download http://localhost:4260/@denotest/cjs-reexport-same-specifier-in-sub-folder/1.0.0.tgz
33
[Module: null prototype] {
44
default: { main: [Getter], sub: [Getter] },
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Download http://localhost:4260/@denotest/add
1+
Download http://localhost:4260/@denotest%2fadd
22
Download http://localhost:4260/@denotest/add/1.0.0.tgz
33
Initialize @denotest/[email protected]
44
3
5-
Download http://localhost:4260/@denotest/subtract
5+
Download http://localhost:4260/@denotest%2fsubtract
66
Download http://localhost:4260/@denotest/subtract/1.0.0.tgz
77
Initialize @denotest/[email protected]
88
1

tests/specs/npm/bin_entries_prefer_closer/install.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[UNORDERED_START]
2-
Download http://localhost:4260/@denotest/transitive-bin
3-
Download http://localhost:4260/@denotest/bin
2+
Download http://localhost:4260/@denotest%2ftransitive-bin
3+
Download http://localhost:4260/@denotest%2fbin
44
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
55
Download http://localhost:4260/@denotest/transitive-bin/1.0.0.tgz
66
Download http://localhost:4260/@denotest/bin/0.7.0.tgz

tests/specs/npm/check_all/check_errors/main_all.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/check-error
1+
Download http://localhost:4260/@denotest%2fcheck-error
22
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
33
Check file:///[WILDCARD]/check_errors/main.ts
44
error: TS2506 [ERROR]: 'Class1' is referenced directly or indirectly in its own base expression.

tests/specs/npm/check_all/check_errors/main_local.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/check-error
1+
Download http://localhost:4260/@denotest%2fcheck-error
22
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
33
Check file:///[WILDCARD]/check_errors/main.ts
44
error: TS2339 [ERROR]: Property 'Asdf' does not exist on type 'typeof import("file:///[WILDCARD]/@denotest/check-error/1.0.0/index.d.ts")'.

tests/specs/npm/check_local/check_errors/main_all.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/check-error
1+
Download http://localhost:4260/@denotest%2fcheck-error
22
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
33
Check file:///[WILDCARD]/check_errors/main.ts
44
error: TS2506 [ERROR]: 'Class1' is referenced directly or indirectly in its own base expression.

tests/specs/npm/check_local/check_errors/main_local.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/check-error
1+
Download http://localhost:4260/@denotest%2fcheck-error
22
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
33
Check file:///[WILDCARD]/check_errors/main.ts
44
error: TS2339 [ERROR]: Property 'Asdf' does not exist on type 'typeof import("file:///[WILDCARD]/@denotest/check-error/1.0.0/index.d.ts")'.

tests/specs/npm/check_package_file_dts_dmts_dcts/file_dts_dmts_dcts/main.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Download http://localhost:4260/@denotest/file-dts-dmts-dcts
1+
Download http://localhost:4260/@denotest%2ffile-dts-dmts-dcts
22
Download http://localhost:4260/@denotest/file-dts-dmts-dcts/1.0.0.tgz
33
Check file:///[WILDCARD]/main.ts
44
error: TS2322 [ERROR]: Type '5' is not assignable to type '"dts"'.

0 commit comments

Comments
 (0)