mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-05-19 01:21:24 -04:00
fix: error calling fetch
This commit is contained in:
parent
89b3db9540
commit
650fca5ecd
3 changed files with 7 additions and 8 deletions
11
package-lock.json
generated
11
package-lock.json
generated
|
@ -12,7 +12,7 @@
|
|||
"@babel/runtime": "^7.21.0",
|
||||
"arraybuffer-loader": "^1.0.3",
|
||||
"base64-js": "^1.3.0",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"cross-fetch": "^4.1.0",
|
||||
"fastestsmallesttextencoderdecoder": "^1.0.7",
|
||||
"js-md5": "^0.7.3",
|
||||
"minilog": "^3.1.0"
|
||||
|
@ -7541,12 +7541,11 @@
|
|||
}
|
||||
},
|
||||
"node_modules/cross-fetch": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz",
|
||||
"integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==",
|
||||
"license": "MIT",
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.1.0.tgz",
|
||||
"integrity": "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==",
|
||||
"dependencies": {
|
||||
"node-fetch": "^2.6.12"
|
||||
"node-fetch": "^2.7.0"
|
||||
}
|
||||
},
|
||||
"node_modules/cross-spawn": {
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
"@babel/runtime": "^7.21.0",
|
||||
"arraybuffer-loader": "^1.0.3",
|
||||
"base64-js": "^1.3.0",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"cross-fetch": "^4.1.0",
|
||||
"fastestsmallesttextencoderdecoder": "^1.0.7",
|
||||
"js-md5": "^0.7.3",
|
||||
"minilog": "^3.1.0"
|
||||
|
|
|
@ -80,7 +80,7 @@ const applyMetadata = options => {
|
|||
*/
|
||||
const scratchFetch = (resource, options) => {
|
||||
const augmentedOptions = applyMetadata(options);
|
||||
return crossFetch.fetch(resource, augmentedOptions);
|
||||
return crossFetch(resource, augmentedOptions);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue