Skip to content

Commit 275249f

Browse files
authored
fix(security): update cross-fetch to >=3.1.5 (#2431)
This transitively updates node-fetch to v2.6.7 which no longer suffers from CVE-2022-0235. Refs GHSA-r683-j2x4-v87g
1 parent 1ddbf98 commit 275249f

File tree

11 files changed

+81
-51
lines changed

11 files changed

+81
-51
lines changed

package-lock.json

Lines changed: 35 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"@babel/runtime-corejs3": "^7.11.2",
109109
"btoa": "^1.2.1",
110110
"cookie": "~0.4.1",
111-
"cross-fetch": "^3.1.4",
111+
"cross-fetch": "^3.1.5",
112112
"deepmerge": "~4.2.2",
113113
"fast-json-patch": "^3.0.0-1",
114114
"form-data-encoder": "^1.4.3",

test/specmap/data/cyclic/external/1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module.exports = {
22
name: 'link to a cyclic node',
33
spec: {
44
x: {
5-
$ref: 'http://1/spec#/a',
5+
$ref: 'http://0.0.0.1/spec#/a',
66
},
77
},
88
external: {
9-
'http://1/spec': {
9+
'http://0.0.0.1/spec': {
1010
a: {
1111
b: {
1212
$ref: '#/a',
@@ -17,7 +17,7 @@ module.exports = {
1717
output: {
1818
x: {
1919
b: {
20-
$ref: 'http://1/spec#/a',
20+
$ref: 'http://0.0.0.1/spec#/a',
2121
},
2222
},
2323
},

test/specmap/data/cyclic/external/10.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module.exports = {
22
name: 'link to 2 cyclic nodes',
33
spec: {
44
x: {
5-
$ref: 'http://2/spec#/a',
5+
$ref: 'http://0.0.0.2/spec#/a',
66
},
77
},
88
external: {
9-
'http://2/spec': {
9+
'http://0.0.0.2/spec': {
1010
a: {
1111
$ref: '#/b',
1212
},
@@ -17,7 +17,7 @@ module.exports = {
1717
},
1818
output: {
1919
x: {
20-
$ref: 'http://2/spec#/a',
20+
$ref: 'http://0.0.0.2/spec#/a',
2121
},
2222
},
2323
};

test/specmap/data/cyclic/external/2.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ module.exports = {
22
name: 'a few hops to an internally cyclic doc',
33
spec: {
44
x: {
5-
$ref: 'http://8/spec1#/a',
5+
$ref: 'http://0.0.0.8/spec1#/a',
66
},
77
},
88
external: {
9-
'http://8/spec1': {
9+
'http://0.0.0.8/spec1': {
1010
a: {
11-
$ref: 'http://8/spec2#/b',
11+
$ref: 'http://0.0.0.8/spec2#/b',
1212
},
1313
},
14-
'http://8/spec2': {
14+
'http://0.0.0.8/spec2': {
1515
b: {
16-
$ref: 'http://8/spec3#/c',
16+
$ref: 'http://0.0.0.8/spec3#/c',
1717
},
1818
},
19-
'http://8/spec3': {
19+
'http://0.0.0.8/spec3': {
2020
c: {
2121
d: {
2222
$ref: '#/c',
@@ -27,7 +27,7 @@ module.exports = {
2727
output: {
2828
x: {
2929
d: {
30-
$ref: 'http://8/spec3#/c',
30+
$ref: 'http://0.0.0.8/spec3#/c',
3131
},
3232
},
3333
},

test/specmap/data/cyclic/external/20.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module.exports = {
22
name: 'link to 3 cyclic nodes',
33
spec: {
44
x: {
5-
$ref: 'http://3/spec#/defs/d1',
5+
$ref: 'http://0.0.0.3/spec#/defs/d1',
66
},
77
},
88
external: {
9-
'http://3/spec': {
9+
'http://0.0.0.3/spec': {
1010
defs: {
1111
d1: {
1212
d1k: {
@@ -31,7 +31,7 @@ module.exports = {
3131
d1k: {
3232
d2k: {
3333
d3k: {
34-
$ref: 'http://3/spec#/defs/d1',
34+
$ref: 'http://0.0.0.3/spec#/defs/d1',
3535
},
3636
},
3737
},

test/specmap/data/cyclic/external/21.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module.exports = {
22
name: 'link to 3 cyclic nodes (in array)',
33
spec: {
44
x: {
5-
$ref: 'http://4/spec#/defs/0',
5+
$ref: 'http://0.0.0.4/spec#/defs/0',
66
},
77
},
88
external: {
9-
'http://4/spec': {
9+
'http://0.0.0.4/spec': {
1010
defs: [
1111
{
1212
d1k: {
@@ -31,7 +31,7 @@ module.exports = {
3131
d1k: {
3232
d2k: {
3333
d3k: {
34-
$ref: 'http://4/spec#/defs/0',
34+
$ref: 'http://0.0.0.4/spec#/defs/0',
3535
},
3636
},
3737
},

test/specmap/data/cyclic/external/30.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ module.exports = {
22
name: 'link to cyclic nodes that use absolute reference',
33
spec: {
44
x: {
5-
$ref: 'http://5/spec1#/a',
5+
$ref: 'http://0.0.0.5/spec1#/a',
66
},
77
},
88
external: {
9-
'http://5/spec1': {
9+
'http://0.0.0.5/spec1': {
1010
a: {
1111
b: {
12-
$ref: 'http://5/spec2#/c',
12+
$ref: 'http://0.0.0.5/spec2#/c',
1313
},
1414
},
1515
},
16-
'http://5/spec2': {
16+
'http://0.0.0.5/spec2': {
1717
c: {
1818
d: {
19-
$ref: 'http://5/spec1#/a',
19+
$ref: 'http://0.0.0.5/spec1#/a',
2020
},
2121
},
2222
},
@@ -25,7 +25,7 @@ module.exports = {
2525
x: {
2626
b: {
2727
d: {
28-
$ref: 'http://5/spec1#/a',
28+
$ref: 'http://0.0.0.5/spec1#/a',
2929
},
3030
},
3131
},

test/specmap/data/cyclic/external/31.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@ module.exports = {
22
name: 'link to 3 cyclic nodes that use absolute reference',
33
spec: {
44
x: {
5-
$ref: 'http://6/spec1#/a',
5+
$ref: 'http://0.0.0.6/spec1#/a',
66
},
77
},
88
external: {
9-
'http://6/spec1': {
9+
'http://0.0.0.6/spec1': {
1010
a: {
1111
b: {
12-
$ref: 'http://6/spec2#/c',
12+
$ref: 'http://0.0.0.6/spec2#/c',
1313
},
1414
},
1515
},
16-
'http://6/spec2': {
16+
'http://0.0.0.6/spec2': {
1717
c: {
1818
d: {
19-
$ref: 'http://6/spec3#/e',
19+
$ref: 'http://0.0.0.6/spec3#/e',
2020
},
2121
},
2222
},
23-
'http://6/spec3': {
23+
'http://0.0.0.6/spec3': {
2424
e: {
2525
f: {
26-
$ref: 'http://6/spec1#/a',
26+
$ref: 'http://0.0.0.6/spec1#/a',
2727
},
2828
},
2929
},
@@ -33,7 +33,7 @@ module.exports = {
3333
b: {
3434
d: {
3535
f: {
36-
$ref: 'http://6/spec1#/a',
36+
$ref: 'http://0.0.0.6/spec1#/a',
3737
},
3838
},
3939
},

test/specmap/data/cyclic/external/32.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@ module.exports = {
22
name: 'absolute path to itself',
33
spec: {
44
x: {
5-
$ref: 'http://9/spec1#/a',
5+
$ref: 'http://0.0.0.9/spec1#/a',
66
},
77
},
88
external: {
9-
'http://9/spec1': {
9+
'http://0.0.0.9/spec1': {
1010
a: {
11-
$ref: 'http://9/spec2#/b',
11+
$ref: 'http://0.0.0.9/spec2#/b',
1212
},
1313
},
14-
'http://9/spec2': {
14+
'http://0.0.0.9/spec2': {
1515
b: {
16-
$ref: 'http://9/spec3#/c',
16+
$ref: 'http://0.0.0.9/spec3#/c',
1717
},
1818
},
19-
'http://9/spec3': {
19+
'http://0.0.0.9/spec3': {
2020
c: {
2121
d: {
22-
$ref: 'http://9/spec3#/c',
22+
$ref: 'http://0.0.0.9/spec3#/c',
2323
},
2424
},
2525
},
2626
},
2727
output: {
2828
x: {
2929
d: {
30-
$ref: 'http://9/spec3#/c',
30+
$ref: 'http://0.0.0.9/spec3#/c',
3131
},
3232
},
3333
},

0 commit comments

Comments
 (0)