Skip to content

Commit 1e23404

Browse files
committed
Upgrade cross-fetch to fix security issue
Fixes #227
1 parent 79e79e8 commit 1e23404

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"homepage": "https://github.com/jefflau/jest-fetch-mock#readme",
2727
"dependencies": {
28-
"cross-fetch": "^3.0.6",
28+
"cross-fetch": "^3.1.5",
2929
"domexception": "^2.0.1",
3030
"promise-polyfill": "^8.1.3"
3131
},

yarn.lock

+29-9
Original file line numberDiff line numberDiff line change
@@ -1176,12 +1176,12 @@ core-util-is@1.0.2:
11761176
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
11771177
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
11781178

1179-
cross-fetch@^3.0.6:
1180-
version "3.0.6"
1181-
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.0.6.tgz#3a4040bc8941e653e0e9cf17f29ebcd177d3365c"
1182-
integrity sha512-KBPUbqgFjzWlVcURG+Svp9TlhA5uliYtiNx/0r8nv0pdypeQCRJ9IaSIc3q/x3q8t3F75cHuwxVql1HFGHCNJQ==
1179+
cross-fetch@^3.1.5:
1180+
version "3.1.5"
1181+
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f"
1182+
integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==
11831183
dependencies:
1184-
node-fetch "2.6.1"
1184+
node-fetch "2.6.7"
11851185

11861186
cross-spawn@^6.0.0:
11871187
version "6.0.5"
@@ -2929,10 +2929,12 @@ nice-try@^1.0.4:
29292929
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
29302930
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
29312931

2932-
node-fetch@2.6.1:
2933-
version "2.6.1"
2934-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
2935-
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
2932+
node-fetch@2.6.7:
2933+
version "2.6.7"
2934+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
2935+
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
2936+
dependencies:
2937+
whatwg-url "^5.0.0"
29362938

29372939
node-int64@^0.4.0:
29382940
version "0.4.0"
@@ -3886,6 +3888,11 @@ tr46@^2.0.2:
38863888
dependencies:
38873889
punycode "^2.1.1"
38883890

3891+
tr46@~0.0.3:
3892+
version "0.0.3"
3893+
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
3894+
integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=
3895+
38893896
tslib@^1.8.1:
38903897
version "1.14.1"
38913898
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
@@ -4053,6 +4060,11 @@ walker@^1.0.7, walker@~1.0.5:
40534060
dependencies:
40544061
makeerror "1.0.x"
40554062

4063+
webidl-conversions@^3.0.0:
4064+
version "3.0.1"
4065+
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
4066+
integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=
4067+
40564068
webidl-conversions@^5.0.0:
40574069
version "5.0.0"
40584070
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff"
@@ -4075,6 +4087,14 @@ whatwg-mimetype@^2.3.0:
40754087
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf"
40764088
integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==
40774089

4090+
whatwg-url@^5.0.0:
4091+
version "5.0.0"
4092+
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
4093+
integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0=
4094+
dependencies:
4095+
tr46 "~0.0.3"
4096+
webidl-conversions "^3.0.0"
4097+
40784098
whatwg-url@^8.0.0:
40794099
version "8.4.0"
40804100
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.4.0.tgz#50fb9615b05469591d2b2bd6dfaed2942ed72837"

0 commit comments

Comments
 (0)