Skip to content

Commit 774c0b1

Browse files
committed
deps: @npmcli/[email protected]
1 parent 887385d commit 774c0b1

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

node_modules/@npmcli/redact/lib/deep-map.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const deepMap = (input, handler = v => v, path = ['$'], seen = new Set([input]))
88
if (input instanceof Error) {
99
return deepMap(serializeError(input), handler, path, seen)
1010
}
11-
if (input instanceof Buffer) {
11+
// allows for non-node js environments, sush as workers
12+
if (typeof Buffer !== 'undefined' && input instanceof Buffer) {
1213
return `[unable to log instanceof buffer]`
1314
}
1415
if (input instanceof Uint8Array) {

node_modules/@npmcli/redact/lib/matchers.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ const DEEP_HEADER_SET_COOKIE = {
4444
replacement: '[REDACTED_HEADER_SET_COOKIE]',
4545
}
4646

47+
const DEEP_HEADER_COOKIE = {
48+
type: TYPE_PATH,
49+
predicate: ({ path }) => path.endsWith('.headers.cookie'),
50+
replacement: '[REDACTED_HEADER_COOKIE]',
51+
}
52+
4753
const REWRITE_REQUEST = {
4854
type: TYPE_PATH,
4955
predicate: ({ path }) => path.endsWith('.request'),
@@ -76,6 +82,7 @@ module.exports = {
7682
URL_MATCHER,
7783
DEEP_HEADER_AUTHORIZATION,
7884
DEEP_HEADER_SET_COOKIE,
85+
DEEP_HEADER_COOKIE,
7986
REWRITE_REQUEST,
8087
REWRITE_RESPONSE,
8188
}

node_modules/@npmcli/redact/lib/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const {
66
DEEP_HEADER_SET_COOKIE,
77
REWRITE_REQUEST,
88
REWRITE_RESPONSE,
9+
DEEP_HEADER_COOKIE,
910
} = require('./matchers')
1011

1112
const {
@@ -24,6 +25,7 @@ const _redact = redactMatchers(
2425
JSON_WEB_TOKEN,
2526
DEEP_HEADER_AUTHORIZATION,
2627
DEEP_HEADER_SET_COOKIE,
28+
DEEP_HEADER_COOKIE,
2729
REWRITE_REQUEST,
2830
REWRITE_RESPONSE,
2931
redactUrlMatcher(

node_modules/@npmcli/redact/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@npmcli/redact",
3-
"version": "3.1.1",
3+
"version": "3.2.2",
44
"description": "Redact sensitive npm information from output",
55
"main": "lib/index.js",
66
"exports": {
@@ -31,7 +31,7 @@
3131
},
3232
"templateOSS": {
3333
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
34-
"version": "4.23.3",
34+
"version": "4.24.3",
3535
"publish": true
3636
},
3737
"tap": {
@@ -43,7 +43,7 @@
4343
},
4444
"devDependencies": {
4545
"@npmcli/eslint-config": "^5.0.0",
46-
"@npmcli/template-oss": "4.23.3",
46+
"@npmcli/template-oss": "4.24.3",
4747
"tap": "^16.3.10"
4848
},
4949
"engines": {

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"@npmcli/map-workspaces": "^4.0.2",
9292
"@npmcli/package-json": "^6.2.0",
9393
"@npmcli/promise-spawn": "^8.0.2",
94-
"@npmcli/redact": "^3.1.1",
94+
"@npmcli/redact": "^3.2.2",
9595
"@npmcli/run-script": "^9.1.0",
9696
"@sigstore/tuf": "^3.1.1",
9797
"abbrev": "^3.0.1",
@@ -3716,9 +3716,9 @@
37163716
}
37173717
},
37183718
"node_modules/@npmcli/redact": {
3719-
"version": "3.1.1",
3720-
"resolved": "https://registry.npmjs.org/@npmcli/redact/-/redact-3.1.1.tgz",
3721-
"integrity": "sha512-3Hc2KGIkrvJWJqTbvueXzBeZlmvoOxc2jyX00yzr3+sNFquJg0N8hH4SAPLPVrkWIRQICVpVgjrss971awXVnA==",
3719+
"version": "3.2.2",
3720+
"resolved": "https://registry.npmjs.org/@npmcli/redact/-/redact-3.2.2.tgz",
3721+
"integrity": "sha512-7VmYAmk4csGv08QzrDKScdzn11jHPFGyqJW39FyPgPuAp3zIaUmuCo1yxw9aGs+NEJuTGQ9Gwqpt93vtJubucg==",
37223722
"inBundle": true,
37233723
"license": "ISC",
37243724
"engines": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@npmcli/map-workspaces": "^4.0.2",
5959
"@npmcli/package-json": "^6.2.0",
6060
"@npmcli/promise-spawn": "^8.0.2",
61-
"@npmcli/redact": "^3.1.1",
61+
"@npmcli/redact": "^3.2.2",
6262
"@npmcli/run-script": "^9.1.0",
6363
"@sigstore/tuf": "^3.1.1",
6464
"abbrev": "^3.0.1",

0 commit comments

Comments
 (0)