1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00

fix(npm): ensure scoped package name is encoded in URLs (#26390)

Fixes https://github.com/denoland/deno/issues/26385
This commit is contained in:
Marvin Hagemeister 2024-10-18 20:38:57 +02:00 committed by Bartek Iwańczuk
parent 2df27b99c3
commit 374049b1eb
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750
140 changed files with 215 additions and 204 deletions

View file

@ -242,6 +242,14 @@ impl RegistryInfoDownloader {
fn get_package_url(&self, name: &str) -> Url {
let registry_url = self.npmrc.get_registry_url(name);
// The '/' character in scoped package names "@scope/name" must be
// encoded for older third party registries. Newer registries and
// npm itself support both ways
// - encoded: https://registry.npmjs.org/@rollup%2fplugin-json
// - non-ecoded: https://registry.npmjs.org/@rollup/plugin-json
// To support as many third party registries as possible we'll
// always encode the '/' character.
// list of all characters used in npm packages:
// !, ', (, ), *, -, ., /, [0-9], @, [A-Za-z], _, ~
const ASCII_SET: percent_encoding::AsciiSet =
@ -253,11 +261,14 @@ impl RegistryInfoDownloader {
.remove(b'*')
.remove(b'-')
.remove(b'.')
.remove(b'/')
.remove(b'@')
.remove(b'_')
.remove(b'~');
let name = percent_encoding::utf8_percent_encode(name, &ASCII_SET);
registry_url.join(&name.to_string()).unwrap()
registry_url
// Ensure that scoped package name percent encoding is lower cased
// to match npm.
.join(&name.to_string().replace("%2F", "%2f"))
.unwrap()
}
}

View file

@ -1111,7 +1111,7 @@ console.log(getValue());"#,
.run();
output.assert_exit_code(0);
output.assert_matches_text(
r#"Download http://localhost:4260/@denotest/esm-basic
r#"Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0
Check file:///[WILDCARD]/main.ts

View file

@ -876,7 +876,7 @@ fn auto_discover_lock_file() {
.run();
output
.assert_matches_text(
r#"Download http://localhost:4260/@denotest/bin
r#"Download http://localhost:4260/@denotest%2fbin
error: Integrity check failed for package: "npm:@denotest/bin@1.0.0". Unable to verify that the package
is the same as when the lockfile was generated.
@ -1058,10 +1058,10 @@ fn reload_info_not_found_cache_but_exists_remote() {
.run();
output.assert_matches_text(concat!(
"[UNORDERED_START]\n",
"Download http://localhost:4260/@denotest/esm-basic\n",
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
"Download http://localhost:4260/@denotest/cjs-default-export\n",
"Download http://localhost:4260/@denotest/cjs-default-export/1.0.0.tgz\n",
"Download http://localhost:4260/@denotest%2fesm-basic\n",
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
"Download http://localhost:4260/@denotestcjs-default-export/1.0.0.tgz\n",
"Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz\n",
"Download http://localhost:4260/@denotest/esm-import-cjs-default/1.0.0.tgz\n",
"[UNORDERED_END]\n",
@ -1088,8 +1088,8 @@ fn reload_info_not_found_cache_but_exists_remote() {
let output = test_context.new_command().args("run main.ts").run();
output.assert_matches_text(concat!(
"[UNORDERED_START]\n",
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
"Download http://localhost:4260/@denotest/cjs-default-export\n",
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
"[UNORDERED_END]\n",
"Node esm importing node cjs\n[WILDCARD]",
));
@ -1120,8 +1120,8 @@ fn reload_info_not_found_cache_but_exists_remote() {
let output = test_context.new_command().args("run main.ts").run();
output.assert_matches_text(concat!(
"[UNORDERED_START]\n",
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
"Download http://localhost:4260/@denotest/cjs-default-export\n",
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
"[UNORDERED_END]\n",
"Node esm importing node cjs\n[WILDCARD]",
));
@ -1159,8 +1159,8 @@ fn reload_info_not_found_cache_but_exists_remote() {
let output = test_context.new_command().args("run main.ts").run();
output.assert_matches_text(concat!(
"[UNORDERED_START]\n",
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
"Download http://localhost:4260/@denotest/cjs-default-export\n",
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
"[UNORDERED_END]\n",
"[UNORDERED_START]\n",
"Initialize @denotest/cjs-default-export@1.0.0\n",
@ -1196,9 +1196,9 @@ fn reload_info_not_found_cache_but_exists_remote() {
let output = test_context.new_command().args("run main.ts").run();
output.assert_matches_text(concat!(
"[UNORDERED_START]\n",
"Download http://localhost:4260/@denotest/esm-basic\n",
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
"Download http://localhost:4260/@denotest/cjs-default-export\n",
"Download http://localhost:4260/@denotest%2fesm-basic\n",
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
"[UNORDERED_END]\n",
"Initialize @denotest/esm-basic@1.0.0\n",
"Node esm importing node cjs\n[WILDCARD]",
@ -1237,9 +1237,9 @@ fn reload_info_not_found_cache_but_exists_remote() {
let output = test_context.new_command().args("run main.ts").run();
output.assert_matches_text(concat!(
"[UNORDERED_START]\n",
"Download http://localhost:4260/@denotest/cjs-default-export\n",
"Download http://localhost:4260/@denotest/esm-basic\n",
"Download http://localhost:4260/@denotest/esm-import-cjs-default\n",
"Download http://localhost:4260/@denotest%2fcjs-default-export\n",
"Download http://localhost:4260/@denotest%2fesm-basic\n",
"Download http://localhost:4260/@denotest%2fesm-import-cjs-default\n",
"[UNORDERED_END]\n",
"Node esm importing node cjs\n[WILDCARD]",
));
@ -1419,7 +1419,7 @@ fn top_level_install_package_json_explicit_opt_in() {
temp_dir.write("main.ts", "console.log(5);");
let output = test_context.new_command().args("cache main.ts").run();
output.assert_matches_text(concat!(
"Download http://localhost:4260/@denotest/esm-basic\n",
"Download http://localhost:4260/@denotest%2fesm-basic\n",
"Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz\n",
"Initialize @denotest/esm-basic@1.0.0\n",
));

View file

@ -898,7 +898,7 @@ fn lock_redirects() {
.run()
.assert_matches_text(concat!(
"Download http://localhost:4545/echo.ts\n",
"Download http://localhost:4260/@denotest/esm-basic\n",
"Download http://localhost:4260/@denotest%2fesm-basic\n",
"Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz\n",
"Hi, there",
));

View file

@ -1,4 +1,4 @@
Add npm:@denotest/esm-basic@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,3 +1,3 @@
Add npm:@denotest/esm-basic@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz

View file

@ -1,3 +1,3 @@
Add npm:@denotest/unstable@1.0.0-beta.1
Download http://localhost:4260/@denotest/unstable
Download http://localhost:4260/@denotest%2funstable
Download http://localhost:4260/@denotest/unstable/1.0.0-beta.1.tgz

View file

@ -2,9 +2,9 @@
Add npm:@denotest/esm-basic@1.0.0
Add jsr:@denotest/add@1.0.0
Add npm:@denotest/say-hello@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Download http://localhost:4260/@denotest/say-hello
Download http://localhost:4260/@denotest%2fsay-hello
Download http://localhost:4260/@denotest/say-hello/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0
Initialize @denotest/say-hello@1.0.0

View file

@ -1,4 +1,4 @@
Add npm:@denotest/esm-basic@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,2 +1,2 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/cjs-default-export
Download http://localhost:4260/@denotest%2fcjs-default-export
Download http://localhost:4260/@denotest/cjs-default-export/1.0.0.tgz
Check file:///[WILDCARD]/main.ts
error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0
Check file://[WILDCARD]/main.ts

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4261/@denotest/basic
Download http://localhost:4262/@denotest2/basic
Download http://localhost:4261/@denotest%2fbasic
Download http://localhost:4262/@denotest2%2fbasic
Download http://localhost:4261/@denotest/basic/1.0.0.tgz
Download http://localhost:4262/@denotest2/basic/1.0.0.tgz
Initialize @denotest2/basic@1.0.0

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
✅ Successfully installed deno-test-bin[WILDCARD]
[WILDCARD]

View file

@ -1,3 +1,3 @@
Add npm:@denotest/esm-basic@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz

View file

@ -1,4 +1,4 @@
Add npm:@denotest/esm-basic@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -8,7 +8,7 @@ Download http://localhost:4545/subdir/print_hello.ts
Download http://127.0.0.1:4250/@denotest/add/meta.json
Download http://127.0.0.1:4250/@denotest/add/1.0.0_meta.json
Download http://127.0.0.1:4250/@denotest/add/1.0.0/mod.ts
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Download http://127.0.0.1:4250/@std/testing/1.0.0/bdd.ts
Download http://127.0.0.1:4250/@std/testing/1.0.0/types.ts

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,4 +1,4 @@
Add npm:@denotest/esm-basic@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,4 +1,4 @@
Add npm:@denotest/esm-basic@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,4 +1,4 @@
Add npm:@denotest/esm-basic@1.0.0
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,5 +1,5 @@
Add npm:@denotest/deprecated-package@1.0.0
Download http://localhost:4260/@denotest/deprecated-package
Download http://localhost:4260/@denotest%2fdeprecated-package
Download http://localhost:4260/@denotest/deprecated-package/1.0.0.tgz
Initialize @denotest/deprecated-package@1.0.0
Warning The following packages are deprecated:

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://127.0.0.1:4250/@denotest/add/meta.json
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://127.0.0.1:4250/@denotest/add/1.0.0_meta.json
Download http://127.0.0.1:4250/@denotest/add/1.0.0/mod.ts
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/node-lifecycle-scripts
Download http://localhost:4260/@denotest/bin
Download http://localhost:4260/@denotest%2fnode-lifecycle-scripts
Download http://localhost:4260/@denotest%2fbin
Download http://localhost:4260/@denotest/node-lifecycle-scripts/1.0.0.tgz
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
Initialize @denotest/node-lifecycle-scripts@1.0.0

View file

@ -1,5 +1,5 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/non-existent-optional-peer
Download http://localhost:4260/@denotest%2fnon-existent-optional-peer
Download http://localhost:4260/uWebSockets.js
Download http://localhost:4260/@denotest/non-existent-optional-peer/1.0.0.tgz
[UNORDERED_END]

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/add
Download http://localhost:4260/@denotest%2fadd
error: The lockfile is out of date. Run `deno install --frozen=false`, or rerun with `--frozen=false` to update it.
changes:
1 | -

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/cjs-reexport-same-specifier-in-sub-folder
Download http://localhost:4260/@denotest%2fcjs-reexport-same-specifier-in-sub-folder
Download http://localhost:4260/@denotest/cjs-reexport-same-specifier-in-sub-folder/1.0.0.tgz
[Module: null prototype] {
default: { main: [Getter], sub: [Getter] },

View file

@ -1,8 +1,8 @@
Download http://localhost:4260/@denotest/add
Download http://localhost:4260/@denotest%2fadd
Download http://localhost:4260/@denotest/add/1.0.0.tgz
Initialize @denotest/add@1.0.0
3
Download http://localhost:4260/@denotest/subtract
Download http://localhost:4260/@denotest%2fsubtract
Download http://localhost:4260/@denotest/subtract/1.0.0.tgz
Initialize @denotest/subtract@1.0.0
1

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/transitive-bin
Download http://localhost:4260/@denotest/bin
Download http://localhost:4260/@denotest%2ftransitive-bin
Download http://localhost:4260/@denotest%2fbin
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
Download http://localhost:4260/@denotest/transitive-bin/1.0.0.tgz
Download http://localhost:4260/@denotest/bin/0.7.0.tgz

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/types-pkg-json-import
Download http://localhost:4260/@denotest%2ftypes-pkg-json-import
Download http://localhost:4260/@denotest/types-pkg-json-import/1.0.0.tgz
Check file:///[WILDLINE]/main.ts

View file

@ -1,5 +1,5 @@
Download http://localhost:4260/@denotest/cjs-import-dual
Download http://localhost:4260/@denotest/dual-cjs-esm
Download http://localhost:4260/@denotest%2fcjs-import-dual
Download http://localhost:4260/@denotest%2fdual-cjs-esm
Download http://localhost:4260/@denotest/cjs-import-dual/1.0.0.tgz
Download http://localhost:4260/@denotest/dual-cjs-esm/1.0.0.tgz
Check file:///[WILDLINE]/cjs_import_dual/main.ts

View file

@ -1,5 +1,5 @@
Download http://localhost:4260/@denotest/cjs-import-dual
Download http://localhost:4260/@denotest/dual-cjs-esm
Download http://localhost:4260/@denotest%2fcjs-import-dual
Download http://localhost:4260/@denotest%2fdual-cjs-esm
Download http://localhost:4260/@denotest/cjs-import-dual/1.0.0.tgz
Download http://localhost:4260/@denotest/dual-cjs-esm/1.0.0.tgz
cjs

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/cjs-local-global-decls
Download http://localhost:4260/@denotest%2fcjs-local-global-decls
Download http://localhost:4260/@denotest/cjs-local-global-decls/1.0.0.tgz
Loaded.

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/cjs-pkg-imports
Download http://localhost:4260/@denotest%2fcjs-pkg-imports
Download http://localhost:4260/@denotest/cjs-pkg-imports/1.0.0.tgz
{ crypto: Crypto { subtle: SubtleCrypto {} }, number: 5 }

View file

@ -1,7 +1,7 @@
[UNORDERED_START]
Download http://localhost:4260/@types/node
Download http://localhost:4260/@types%2fnode
Download http://localhost:4260/undici-types
Download http://localhost:4260/@denotest/globals
Download http://localhost:4260/@denotest%2fglobals
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/globals/1.0.0.tgz

View file

@ -1,8 +1,8 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/conditional-exports
Download http://localhost:4260/@denotest%2fconditional-exports
Download http://localhost:4260/supports-esm
Download http://localhost:4260/has-package-exports
Download http://localhost:4260/@ljharb/has-package-exports-patterns
Download http://localhost:4260/@ljharb%2fhas-package-exports-patterns
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/conditional-exports/1.0.0.tgz

View file

@ -1,8 +1,8 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/conditional-exports
Download http://localhost:4260/@denotest%2fconditional-exports
Download http://localhost:4260/supports-esm
Download http://localhost:4260/has-package-exports
Download http://localhost:4260/@ljharb/has-package-exports-patterns
Download http://localhost:4260/@ljharb%2fhas-package-exports-patterns
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/conditional-exports/1.0.0.tgz

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/sub-folders
Download http://localhost:4260/@denotest%2fsub-folders
Download http://localhost:4260/@denotest/sub-folders/1.0.0.tgz
error: Directory import [WILDCARD]folder_index_js is not supported resolving import from file:///[WILDCARD]/directory_import/folder_index_js.ts
Did you mean to import index.js within the directory?

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/sub-folders
Download http://localhost:4260/@denotest%2fsub-folders
Download http://localhost:4260/@denotest/sub-folders/1.0.0.tgz
error: Directory import [WILDCARD]folder_no_index is not supported resolving import from file:///[WILDCARD]/folder_no_index.ts

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/sub-folders
Download http://localhost:4260/@denotest%2fsub-folders
Download http://localhost:4260/@denotest/sub-folders/1.0.0.tgz
error: Directory import [WILDCARD]folder_index_js is not supported resolving import from file:///[WILDCARD]/directory_import/folder_index_js.ts
Did you mean to import index.js within the directory?

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/sub-folders
Download http://localhost:4260/@denotest%2fsub-folders
Download http://localhost:4260/@denotest/sub-folders/1.0.0.tgz
error: Directory import [WILDCARD]folder_no_index is not supported resolving import from file:///[WILDCARD]/folder_no_index.ts

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/chalk
Download http://localhost:4260/@denotest/dep-cannot-parse
Download http://localhost:4260/@denotest%2fdep-cannot-parse
[UNORDERED_END]
Download http://localhost:4260/chalk/chalk-5.0.1.tgz
Hi

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/esm-import-cjs-default
Download http://localhost:4260/@denotest/cjs-default-export
Download http://localhost:4260/@denotest%2fesm-import-cjs-default
Download http://localhost:4260/@denotest%2fcjs-default-export
Download http://localhost:4260/@denotest/cjs-default-export/1.0.0.tgz
Download http://localhost:4260/@denotest/esm-import-cjs-default/1.0.0.tgz
[UNORDERED_END]

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/chalk
Download http://localhost:4260/@denotest/dual-cjs-esm
Download http://localhost:4260/@denotest%2fdual-cjs-esm
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/dual-cjs-esm/1.0.0.tgz

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#not-defined" is not defined in package [WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
hi
bye

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#hi" is not defined in package [WILDCARD]sub_path[WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#not-defined" is not defined in package [WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
hi
bye

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#hi" is not defined in package [WILDCARD]sub_path[WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#not-defined" is not defined in package [WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
hi
bye

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/imports-package-json
Download http://localhost:4260/@denotest%2fimports-package-json
Download http://localhost:4260/@denotest/imports-package-json/1.0.0.tgz
error: [ERR_PACKAGE_IMPORT_NOT_DEFINED] Package import specifier "#hi" is not defined in package [WILDCARD]sub_path[WILDCARD]package.json imported from '[WILDCARD]import_not_defined.js'

View file

@ -1,7 +1,7 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/peer-dep-test-child
Download http://localhost:4260/@denotest/peer-dep-test-grandchild
Download http://localhost:4260/@denotest/peer-dep-test-peer
Download http://localhost:4260/@denotest%2fpeer-dep-test-child
Download http://localhost:4260/@denotest%2fpeer-dep-test-grandchild
Download http://localhost:4260/@denotest%2fpeer-dep-test-peer
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/peer-dep-test-child/1.0.0.tgz

View file

@ -1,7 +1,7 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/peer-dep-test-child
Download http://localhost:4260/@denotest/peer-dep-test-grandchild
Download http://localhost:4260/@denotest/peer-dep-test-peer
Download http://localhost:4260/@denotest%2fpeer-dep-test-child
Download http://localhost:4260/@denotest%2fpeer-dep-test-grandchild
Download http://localhost:4260/@denotest%2fpeer-dep-test-peer
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/peer-dep-test-child/1.0.0.tgz

View file

@ -1,7 +1,7 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/peer-dep-test-child
Download http://localhost:4260/@denotest/peer-dep-test-grandchild
Download http://localhost:4260/@denotest/peer-dep-test-peer
Download http://localhost:4260/@denotest%2fpeer-dep-test-child
Download http://localhost:4260/@denotest%2fpeer-dep-test-grandchild
Download http://localhost:4260/@denotest%2fpeer-dep-test-peer
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/peer-dep-test-child/1.0.0.tgz

View file

@ -1,7 +1,7 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/peer-dep-test-child
Download http://localhost:4260/@denotest/peer-dep-test-grandchild
Download http://localhost:4260/@denotest/peer-dep-test-peer
Download http://localhost:4260/@denotest%2fpeer-dep-test-child
Download http://localhost:4260/@denotest%2fpeer-dep-test-grandchild
Download http://localhost:4260/@denotest%2fpeer-dep-test-peer
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/peer-dep-test-child/1.0.0.tgz

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/node-lifecycle-scripts
Download http://localhost:4260/@denotest/bin
Download http://localhost:4260/@denotest%2fnode-lifecycle-scripts
Download http://localhost:4260/@denotest%2fbin
Download http://localhost:4260/@denotest/node-lifecycle-scripts/1.0.0.tgz
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
Initialize @denotest/node-lifecycle-scripts@1.0.0

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/node-lifecycle-scripts
Download http://localhost:4260/@denotest/bin
Download http://localhost:4260/@denotest%2fnode-lifecycle-scripts
Download http://localhost:4260/@denotest%2fbin
Download http://localhost:4260/@denotest/node-lifecycle-scripts/1.0.0.tgz
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
[UNORDERED_END]

View file

@ -1,7 +1,7 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/better-say-hello
Download http://localhost:4260/@denotest/say-hello-on-install
Download http://localhost:4260/@denotest/say-hello
Download http://localhost:4260/@denotest%2fbetter-say-hello
Download http://localhost:4260/@denotest%2fsay-hello-on-install
Download http://localhost:4260/@denotest%2fsay-hello
Download http://localhost:4260/@denotest/better-say-hello/1.0.0.tgz
Download http://localhost:4260/@denotest/say-hello-on-install/1.0.0.tgz
Download http://localhost:4260/@denotest/say-hello/1.0.0.tgz

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/node-lifecycle-scripts
Download http://localhost:4260/@denotest/bin
Download http://localhost:4260/@denotest%2fnode-lifecycle-scripts
Download http://localhost:4260/@denotest%2fbin
Download http://localhost:4260/@denotest/node-lifecycle-scripts/1.0.0.tgz
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
Initialize @denotest/node-lifecycle-scripts@1.0.0

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/lifecycle-scripts-cjs
Download http://localhost:4260/@denotest/bin
Download http://localhost:4260/@denotest%2flifecycle-scripts-cjs
Download http://localhost:4260/@denotest%2fbin
Download http://localhost:4260/@denotest/lifecycle-scripts-cjs/1.0.0.tgz
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
Initialize @denotest/lifecycle-scripts-cjs@1.0.0

View file

@ -1,5 +1,5 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/node-addon-implicit-node-gyp
Download http://localhost:4260/@denotest%2fnode-addon-implicit-node-gyp
Download http://localhost:4260/@denotest/node-addon-implicit-node-gyp/1.0.0.tgz
Initialize @denotest/node-addon-implicit-node-gyp@1.0.0
Initialize @denotest/node-addon-implicit-node-gyp@1.0.0: running 'install' script

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/node-addon
Download http://localhost:4260/@denotest%2fnode-addon
Download http://localhost:4260/node-gyp
[WILDCARD]
Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/node-lifecycle-scripts
Download http://localhost:4260/@denotest/bin
Download http://localhost:4260/@denotest%2fnode-lifecycle-scripts
Download http://localhost:4260/@denotest%2fbin
Download http://localhost:4260/@denotest/node-lifecycle-scripts/1.0.0.tgz
Download http://localhost:4260/@denotest/bin/1.0.0.tgz
Initialize @denotest/node-lifecycle-scripts@1.0.0

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/lossy-utf8-module
Download http://localhost:4260/@denotest%2flossy-utf8-module
Download http://localhost:4260/@denotest/lossy-utf8-module/1.0.0.tgz
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/lossy-utf8-package-json
Download http://localhost:4260/@denotest%2flossy-utf8-package-json
Download http://localhost:4260/@denotest/lossy-utf8-package-json/1.0.0.tgz
hello

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/lossy-utf8-script
Download http://localhost:4260/@denotest%2flossy-utf8-script
Download http://localhost:4260/@denotest/lossy-utf8-script/1.0.0.tgz
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/lossy-utf8-script
Download http://localhost:4260/@denotest%2flossy-utf8-script
Download http://localhost:4260/@denotest/lossy-utf8-script/1.0.0.tgz
Initialize @denotest/lossy-utf8-script@1.0.0
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/MixedCase
Download http://localhost:4260/@denotest/CAPITALS
Download http://localhost:4260/@denotest%2fMixedCase
Download http://localhost:4260/@denotest%2fCAPITALS
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/CAPITALS/1.0.0.tgz

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/MixedCase
Download http://localhost:4260/@denotest/CAPITALS
Download http://localhost:4260/@denotest%2fMixedCase
Download http://localhost:4260/@denotest%2fCAPITALS
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/CAPITALS/1.0.0.tgz

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/MixedCase
Download http://localhost:4260/@denotest/CAPITALS
Download http://localhost:4260/@denotest%2fMixedCase
Download http://localhost:4260/@denotest%2fCAPITALS
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/CAPITALS/1.0.0.tgz

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/MixedCase
Download http://localhost:4260/@denotest/CAPITALS
Download http://localhost:4260/@denotest%2fMixedCase
Download http://localhost:4260/@denotest%2fCAPITALS
[UNORDERED_END]
[UNORDERED_START]
Download http://localhost:4260/@denotest/CAPITALS/1.0.0.tgz

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/no-types-cjs
Download http://localhost:4260/@denotest%2fno-types-cjs
Download http://localhost:4260/@denotest/no-types-cjs/1.0.0.tgz
Check file:///[WILDLINE]/no_types_cjs/main.ts

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/no-types-in-conditional-exports
Download http://localhost:4260/@denotest%2fno-types-in-conditional-exports
Download http://localhost:4260/@denotest/no-types-in-conditional-exports/1.0.0.tgz
Check [WILDCARD]npm/no_types_in_conditional_exports/main.ts
{ foo: "bar" }

View file

@ -1,3 +1,3 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0
2

View file

@ -1,4 +1,4 @@
Download http://localhost:4260/@denotest/esm-basic
Download http://localhost:4260/@denotest%2fesm-basic
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
Initialize @denotest/esm-basic@1.0.0
Check file:///[WILDCARD]/main.ts

View file

@ -1,5 +1,5 @@
{
"args": "cache npm:@denotest/non-existent-dep",
"exitCode": 1,
"output": "[UNORDERED_START]\nDownload http://localhost:4260/@denotest/non-existent-dep\nDownload http://localhost:4260/@denotest/non-existent\n[UNORDERED_END]\nerror: npm package '@denotest/non-existent' does not exist.\n"
"output": "[UNORDERED_START]\nDownload http://localhost:4260/@denotest%2fnon-existent-dep\nDownload http://localhost:4260/@denotest%2fnon-existent\n[UNORDERED_END]\nerror: npm package '@denotest/non-existent' does not exist.\n"
}

View file

@ -1,5 +1,5 @@
{
"args": "cache npm:@denotest/non-existent-dep-version",
"exitCode": 1,
"output": "[UNORDERED_START]\nDownload http://localhost:4260/@denotest/non-existent-dep-version\nDownload http://localhost:4260/@denotest/esm-basic\n[UNORDERED_END]\nerror: Could not find npm package '@denotest/esm-basic' matching '=99.99.99'.\n"
"output": "[UNORDERED_START]\nDownload http://localhost:4260/@denotest%2fnon-existent-dep-version\nDownload http://localhost:4260/@denotest%2fesm-basic\n[UNORDERED_END]\nerror: Could not find npm package '@denotest/esm-basic' matching '=99.99.99'.\n"
}

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4262/@denotest2/basic
Download http://localhost:4261/@denotest/basic
Download http://localhost:4262/@denotest2%2fbasic
Download http://localhost:4261/@denotest%2fbasic
Download http://localhost:4261/@denotest/basic/1.0.0.tgz
Download http://localhost:4262/@denotest2/basic/1.0.0.tgz
[UNORDERED_END]

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4261/@denotest/basic
Download http://localhost:4262/@denotest2/basic
Download http://localhost:4261/@denotest%2fbasic
Download http://localhost:4262/@denotest2%2fbasic
Download http://localhost:4261/@denotest/basic/1.0.0.tgz
Download http://localhost:4262/@denotest2/basic/1.0.0.tgz
Initialize @denotest2/basic@1.0.0

View file

@ -1,3 +1,3 @@
Download http://localhost:4261/@denotest/basic
error: Error getting response at http://localhost:4261/@denotest/basic for package "@denotest/basic": Bad response: 401
Download http://localhost:4261/@denotest%2fbasic
error: Error getting response at http://localhost:4261/@denotest%2fbasic for package "@denotest/basic": Bad response: 401
[WILDCARD]

View file

@ -1,3 +1,3 @@
Download http://localhost:4261/@denotest/basic
error: Error getting response at http://localhost:4261/@denotest/basic for package "@denotest/basic": Bad response: 401
Download http://localhost:4261/@denotest%2fbasic
error: Error getting response at http://localhost:4261/@denotest%2fbasic for package "@denotest/basic": Bad response: 401
[WILDCARD]

View file

@ -1,6 +1,6 @@
[UNORDERED_START]
Download http://localhost:4261/@denotest/basic
Download http://localhost:4262/@denotest2/basic
Download http://localhost:4261/@denotest%2fbasic
Download http://localhost:4262/@denotest2%2fbasic
Download http://localhost:4261/@denotest/basic/1.0.0.tgz
Download http://localhost:4262/@denotest2/basic/1.0.0.tgz
Initialize @denotest2/basic@1.0.0

Some files were not shown because too many files have changed in this diff Show more