Compare commits

...

4 Commits

Author SHA1 Message Date
184bf11bd7 3.0.4 2022-05-27 19:50:25 +02:00
ea303b5c26 fix(core): update 2022-05-27 19:50:24 +02:00
b3f6b8db6a 3.0.3 2022-03-25 00:04:24 +01:00
ce9d02562f fix(core): update 2022-03-25 00:04:24 +01:00
4 changed files with 751 additions and 9792 deletions

10510
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/webrequest",
"version": "3.0.2",
"version": "3.0.4",
"private": false,
"description": "securely request from browsers",
"main": "dist_ts/index.js",
@ -13,21 +13,21 @@
"build": "(tsbuild --web --allowimplicitany && tsbundle npm)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.60",
"@gitzone/tsbundle": "^1.0.101",
"@gitzone/tstest": "^1.0.69",
"@pushrocks/smartexpress": "^4.0.0",
"@pushrocks/tapbundle": "^5.0.2",
"@types/node": "^17.0.23",
"@gitzone/tsbuild": "^2.1.63",
"@gitzone/tsbundle": "^2.0.4",
"@gitzone/tstest": "^1.0.71",
"@pushrocks/smartexpress": "^4.0.4",
"@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.35",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
},
"dependencies": {
"@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartenv": "^5.0.0",
"@pushrocks/smartenv": "^5.0.1",
"@pushrocks/smartjson": "^4.0.6",
"@pushrocks/smartpromise": "^3.1.7",
"node-fetch": "^3.2.3"
"node-fetch": "^3.2.4"
},
"files": [
"ts/**/*",

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/webrequest',
version: '3.0.4',
description: 'securely request from browsers'
}

View File

@ -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();
}