mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
fix: update deno_npm (#24065)
This commit is contained in:
parent
a013b9113d
commit
0db73f6333
13 changed files with 42 additions and 12 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -1734,9 +1734,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "deno_npm"
|
name = "deno_npm"
|
||||||
version = "0.21.0"
|
version = "0.21.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b99fac4a31098e2466f97576b53a9860d8e7ad1df2792a22d5b3209ca3bd2924"
|
checksum = "0971210ea837a8153c2e1bec7d65aabf372f436845e576db95c596c0f4b1209d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|
|
@ -72,7 +72,7 @@ deno_emit = "=0.42.0"
|
||||||
deno_graph = { version = "=0.78.0", features = ["tokio_executor"] }
|
deno_graph = { version = "=0.78.0", features = ["tokio_executor"] }
|
||||||
deno_lint = { version = "=0.60.0", features = ["docs"] }
|
deno_lint = { version = "=0.60.0", features = ["docs"] }
|
||||||
deno_lockfile.workspace = true
|
deno_lockfile.workspace = true
|
||||||
deno_npm = "=0.21.0"
|
deno_npm = "=0.21.1"
|
||||||
deno_runtime = { workspace = true, features = ["include_js_files_for_snapshotting"] }
|
deno_runtime = { workspace = true, features = ["include_js_files_for_snapshotting"] }
|
||||||
deno_semver = "=0.5.4"
|
deno_semver = "=0.5.4"
|
||||||
deno_task_shell = "=0.16.1"
|
deno_task_shell = "=0.16.1"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@denotest:registry=http://127.0.0.1:4261/
|
@denotest:registry=http://127.0.0.1:4261/
|
||||||
//127.0.0.1:4261/denotest/:_authToken=private-reg-token
|
//127.0.0.1:4261/:_authToken=private-reg-token
|
||||||
@denotest2:registry=http://127.0.0.1:4262/
|
@denotest2:registry=http://127.0.0.1:4262/
|
||||||
//127.0.0.1:4262/denotest2/:_authToken=private-reg-token2
|
//127.0.0.1:4262/:_authToken=private-reg-token2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@denotest:registry=http://127.0.0.1:4261/
|
@denotest:registry=http://127.0.0.1:4261/
|
||||||
//127.0.0.1:4261/denotest/:_auth=ZGVubzpsYW5k
|
//127.0.0.1:4261/:_authToken=private-reg-token
|
||||||
@denotest2:registry=http://127.0.0.1:4262/
|
@denotest2:registry=http://127.0.0.1:4262/
|
||||||
//127.0.0.1:4262/denotest2/:_auth=ZGVubzpsYW5kMg==
|
//127.0.0.1:4262/:_authToken=private-reg-token2
|
||||||
|
|
5
tests/specs/npm/npmrc_bad_registry_config/.npmrc
Normal file
5
tests/specs/npm/npmrc_bad_registry_config/.npmrc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
@denotest:registry=http://127.0.0.1:4261/
|
||||||
|
; This configuration is wrong - the registry URL must
|
||||||
|
; be exactly the same as registry configured for the scope,
|
||||||
|
; not root url + scope name.
|
||||||
|
//127.0.0.1:4261/denotest/:_authToken=invalid-token
|
9
tests/specs/npm/npmrc_bad_registry_config/__test__.jsonc
Normal file
9
tests/specs/npm/npmrc_bad_registry_config/__test__.jsonc
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"envs": {
|
||||||
|
"DENO_FUTURE": "1"
|
||||||
|
},
|
||||||
|
"tempDir": true,
|
||||||
|
"args": "install",
|
||||||
|
"output": "main.out",
|
||||||
|
"exitCode": 1
|
||||||
|
}
|
5
tests/specs/npm/npmrc_bad_registry_config/main.js
Normal file
5
tests/specs/npm/npmrc_bad_registry_config/main.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import { getValue, setValue } from "@denotest/basic";
|
||||||
|
|
||||||
|
console.log(getValue());
|
||||||
|
setValue(42);
|
||||||
|
console.log(getValue());
|
4
tests/specs/npm/npmrc_bad_registry_config/main.out
Normal file
4
tests/specs/npm/npmrc_bad_registry_config/main.out
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag.
|
||||||
|
Download http://127.0.0.1:4261/@denotest/basic
|
||||||
|
error: Error getting response at http://127.0.0.1:4261/@denotest/basic for package "@denotest/basic": Bad response: 401
|
||||||
|
[WILDCARD]
|
7
tests/specs/npm/npmrc_bad_registry_config/package.json
Normal file
7
tests/specs/npm/npmrc_bad_registry_config/package.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"name": "npmrc_test",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"dependencies": {
|
||||||
|
"@denotest/basic": "1.0.0"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,2 +1,2 @@
|
||||||
@denotest:registry=http://127.0.0.1:4261/
|
@denotest:registry=http://127.0.0.1:4261/
|
||||||
//127.0.0.1:4261/denotest/:_authToken=invalid-token
|
//127.0.0.1:4261/:_authToken=invalid-token
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@denotest:registry=http://127.0.0.1:4261/
|
@denotest:registry=http://127.0.0.1:4261/
|
||||||
//127.0.0.1:4261/denotest/:_authToken=private-reg-token
|
//127.0.0.1:4261/:_auth=ZGVubzpsYW5k
|
||||||
@denotest2:registry=http://127.0.0.1:4262/
|
@denotest2:registry=http://127.0.0.1:4262/
|
||||||
//127.0.0.1:4262/denotest2/:_authToken=private-reg-token2
|
//127.0.0.1:4262/:_auth=ZGVubzpsYW5kMg==
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
@denotest:registry=http://127.0.0.1:4261/
|
@denotest:registry=http://127.0.0.1:4261/
|
||||||
//127.0.0.1:4261/denotest/:_authToken=private-reg-token
|
//127.0.0.1:4261/:_authToken=private-reg-token
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
@denotest:registry=http://127.0.0.1:4261/
|
@denotest:registry=http://127.0.0.1:4261/
|
||||||
//127.0.0.1:4261/denotest/:_authToken=private-reg-token
|
//127.0.0.1:4261/:_authToken=private-reg-token
|
||||||
|
|
Loading…
Reference in a new issue