Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
0e1da04c3c | |||
2a715e5b80 | |||
5ff76b5c9f | |||
76733cc96a | |||
c8f27a1935 | |||
3b7378386f | |||
4164458d80 | |||
9af837124a |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/webrequest",
|
"name": "@pushrocks/webrequest",
|
||||||
"version": "3.0.16",
|
"version": "3.0.20",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "securely request from browsers",
|
"description": "securely request from browsers",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -20,10 +20,10 @@
|
|||||||
"@gitzone/tstest": "^1.0.73",
|
"@gitzone/tstest": "^1.0.73",
|
||||||
"@pushrocks/smartexpress": "^4.0.21",
|
"@pushrocks/smartexpress": "^4.0.21",
|
||||||
"@pushrocks/tapbundle": "^5.0.4",
|
"@pushrocks/tapbundle": "^5.0.4",
|
||||||
"@types/node": "^18.13.0"
|
"@types/node": "^18.14.6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@adobe/fetch": "^4.0.1",
|
"@adobe/fetch": "^4.0.4",
|
||||||
"@pushrocks/smartdelay": "^2.0.13",
|
"@pushrocks/smartdelay": "^2.0.13",
|
||||||
"@pushrocks/smartenv": "^5.0.2",
|
"@pushrocks/smartenv": "^5.0.2",
|
||||||
"@pushrocks/smartjson": "^5.0.1",
|
"@pushrocks/smartjson": "^5.0.1",
|
||||||
|
4370
pnpm-lock.yaml
generated
4370
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/webrequest',
|
name: '@pushrocks/webrequest',
|
||||||
version: '3.0.16',
|
version: '3.0.20',
|
||||||
description: 'securely request from browsers'
|
description: 'securely request from browsers'
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ export class WebRequest {
|
|||||||
if (!smartenv.isBrowser) {
|
if (!smartenv.isBrowser) {
|
||||||
console.log('webrequest using node context.');
|
console.log('webrequest using node context.');
|
||||||
this.polyfillStatusEvaluated = true;
|
this.polyfillStatusEvaluated = true;
|
||||||
const fetchMod = await smartenv.getSafeNodeModule('@adobe/helix-fetch');
|
const fetchMod = await smartenv.getSafeNodeModule('@adobe/fetch');
|
||||||
this.neededPolyfillsLoadedDeferred.resolve({
|
this.neededPolyfillsLoadedDeferred.resolve({
|
||||||
fetch: fetchMod.fetch,
|
fetch: fetchMod.fetch,
|
||||||
Response: fetchMod.Response,
|
Response: fetchMod.Response,
|
||||||
|
Reference in New Issue
Block a user