A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/774c0b1e9c5704ffa24196fdcc44ba9575b04ca0 below:

@npmcli/redact@3.2.2 · npm/cli@774c0b1 · GitHub

File tree Expand file treeCollapse file tree 6 files changed

+19

-9

lines changed

Filter options

Expand file treeCollapse file tree 6 files changed

+19

-9

lines changed Original file line number Diff line number Diff line change

@@ -8,7 +8,8 @@ const deepMap = (input, handler = v => v, path = ['$'], seen = new Set([input]))

8 8

if (input instanceof Error) {

9 9

return deepMap(serializeError(input), handler, path, seen)

10 10

}

11 -

if (input instanceof Buffer) {

11 +

// allows for non-node js environments, sush as workers

12 +

if (typeof Buffer !== 'undefined' && input instanceof Buffer) {

12 13

return `[unable to log instanceof buffer]`

13 14

}

14 15

if (input instanceof Uint8Array) {

Original file line number Diff line number Diff line change

@@ -44,6 +44,12 @@ const DEEP_HEADER_SET_COOKIE = {

44 44

replacement: '[REDACTED_HEADER_SET_COOKIE]',

45 45

}

46 46 47 +

const DEEP_HEADER_COOKIE = {

48 +

type: TYPE_PATH,

49 +

predicate: ({ path }) => path.endsWith('.headers.cookie'),

50 +

replacement: '[REDACTED_HEADER_COOKIE]',

51 +

}

52 + 47 53

const REWRITE_REQUEST = {

48 54

type: TYPE_PATH,

49 55

predicate: ({ path }) => path.endsWith('.request'),

@@ -76,6 +82,7 @@ module.exports = {

76 82

URL_MATCHER,

77 83

DEEP_HEADER_AUTHORIZATION,

78 84

DEEP_HEADER_SET_COOKIE,

85 +

DEEP_HEADER_COOKIE,

79 86

REWRITE_REQUEST,

80 87

REWRITE_RESPONSE,

81 88

}

Original file line number Diff line number Diff line change

@@ -6,6 +6,7 @@ const {

6 6

DEEP_HEADER_SET_COOKIE,

7 7

REWRITE_REQUEST,

8 8

REWRITE_RESPONSE,

9 +

DEEP_HEADER_COOKIE,

9 10

} = require('./matchers')

10 11 11 12

const {

@@ -24,6 +25,7 @@ const _redact = redactMatchers(

24 25

JSON_WEB_TOKEN,

25 26

DEEP_HEADER_AUTHORIZATION,

26 27

DEEP_HEADER_SET_COOKIE,

28 +

DEEP_HEADER_COOKIE,

27 29

REWRITE_REQUEST,

28 30

REWRITE_RESPONSE,

29 31

redactUrlMatcher(

Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

{

2 2

"name": "@npmcli/redact",

3 -

"version": "3.1.1",

3 +

"version": "3.2.2",

4 4

"description": "Redact sensitive npm information from output",

5 5

"main": "lib/index.js",

6 6

"exports": {

@@ -31,7 +31,7 @@

31 31

},

32 32

"templateOSS": {

33 33

"//@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",

35 35

"publish": true

36 36

},

37 37

"tap": {

@@ -43,7 +43,7 @@

43 43

},

44 44

"devDependencies": {

45 45

"@npmcli/eslint-config": "^5.0.0",

46 -

"@npmcli/template-oss": "4.23.3",

46 +

"@npmcli/template-oss": "4.24.3",

47 47

"tap": "^16.3.10"

48 48

},

49 49

"engines": {

Original file line number Diff line number Diff line change

@@ -91,7 +91,7 @@

91 91

"@npmcli/map-workspaces": "^4.0.2",

92 92

"@npmcli/package-json": "^6.2.0",

93 93

"@npmcli/promise-spawn": "^8.0.2",

94 -

"@npmcli/redact": "^3.1.1",

94 +

"@npmcli/redact": "^3.2.2",

95 95

"@npmcli/run-script": "^9.1.0",

96 96

"@sigstore/tuf": "^3.1.1",

97 97

"abbrev": "^3.0.1",

@@ -3716,9 +3716,9 @@

3716 3716

}

3717 3717

},

3718 3718

"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==",

3722 3722

"inBundle": true,

3723 3723

"license": "ISC",

3724 3724

"engines": {

Original file line number Diff line number Diff line change

@@ -58,7 +58,7 @@

58 58

"@npmcli/map-workspaces": "^4.0.2",

59 59

"@npmcli/package-json": "^6.2.0",

60 60

"@npmcli/promise-spawn": "^8.0.2",

61 -

"@npmcli/redact": "^3.1.1",

61 +

"@npmcli/redact": "^3.2.2",

62 62

"@npmcli/run-script": "^9.1.0",

63 63

"@sigstore/tuf": "^3.1.1",

64 64

"abbrev": "^3.0.1",

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4