fix: error calling fetch

This commit is contained in:
MiroslavDionisiev 2025-01-06 15:14:19 +02:00
parent 89b3db9540
commit 650fca5ecd
3 changed files with 7 additions and 8 deletions

11
package-lock.json generated
View file

@ -12,7 +12,7 @@
"@babel/runtime": "^7.21.0", "@babel/runtime": "^7.21.0",
"arraybuffer-loader": "^1.0.3", "arraybuffer-loader": "^1.0.3",
"base64-js": "^1.3.0", "base64-js": "^1.3.0",
"cross-fetch": "^4.0.0", "cross-fetch": "^4.1.0",
"fastestsmallesttextencoderdecoder": "^1.0.7", "fastestsmallesttextencoderdecoder": "^1.0.7",
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
"minilog": "^3.1.0" "minilog": "^3.1.0"
@ -7541,12 +7541,11 @@
} }
}, },
"node_modules/cross-fetch": { "node_modules/cross-fetch": {
"version": "4.0.0", "version": "4.1.0",
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.1.0.tgz",
"integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", "integrity": "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==",
"license": "MIT",
"dependencies": { "dependencies": {
"node-fetch": "^2.6.12" "node-fetch": "^2.7.0"
} }
}, },
"node_modules/cross-spawn": { "node_modules/cross-spawn": {

View file

@ -33,7 +33,7 @@
"@babel/runtime": "^7.21.0", "@babel/runtime": "^7.21.0",
"arraybuffer-loader": "^1.0.3", "arraybuffer-loader": "^1.0.3",
"base64-js": "^1.3.0", "base64-js": "^1.3.0",
"cross-fetch": "^4.0.0", "cross-fetch": "^4.1.0",
"fastestsmallesttextencoderdecoder": "^1.0.7", "fastestsmallesttextencoderdecoder": "^1.0.7",
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
"minilog": "^3.1.0" "minilog": "^3.1.0"

View file

@ -80,7 +80,7 @@ const applyMetadata = options => {
*/ */
const scratchFetch = (resource, options) => { const scratchFetch = (resource, options) => {
const augmentedOptions = applyMetadata(options); const augmentedOptions = applyMetadata(options);
return crossFetch.fetch(resource, augmentedOptions); return crossFetch(resource, augmentedOptions);
}; };
/** /**