Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
b3f6b8db6a | |||
ce9d02562f | |||
e9e974e696 | |||
ee361eba4d |
1673
package-lock.json
generated
1673
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/webrequest",
|
||||
"version": "3.0.1",
|
||||
"version": "3.0.3",
|
||||
"private": false,
|
||||
"description": "securely request from browsers",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -13,12 +13,12 @@
|
||||
"build": "(tsbuild --web --allowimplicitany && tsbundle npm)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.56",
|
||||
"@gitzone/tsbundle": "^1.0.98",
|
||||
"@gitzone/tstest": "^1.0.68",
|
||||
"@pushrocks/smartexpress": "^3.0.108",
|
||||
"@pushrocks/tapbundle": "^5.0.2",
|
||||
"@types/node": "^17.0.21",
|
||||
"@gitzone/tsbuild": "^2.1.61",
|
||||
"@gitzone/tsbundle": "^1.0.101",
|
||||
"@gitzone/tstest": "^1.0.69",
|
||||
"@pushrocks/smartexpress": "^4.0.1",
|
||||
"@pushrocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^17.0.23",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
|
@ -14,7 +14,8 @@ export class WebRequest {
|
||||
const smartenv = new plugins.smartenv.Smartenv();
|
||||
if (!smartenv.isBrowser) {
|
||||
this.polyfillStatusEvaluated = true;
|
||||
await smartenv.getSafeNodeModule('node-fetch');
|
||||
const fetch = await smartenv.getSafeNodeModule('node-fetch');
|
||||
globalThis.fetch = fetch.default;
|
||||
}
|
||||
this.neededPolyfillsLoadedDeferred.resolve();
|
||||
}
|
||||
|
Reference in New Issue
Block a user