Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
c8f27a1935 | |||
3b7378386f | |||
4164458d80 | |||
9af837124a |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/webrequest",
|
"name": "@pushrocks/webrequest",
|
||||||
"version": "3.0.16",
|
"version": "3.0.18",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "securely request from browsers",
|
"description": "securely request from browsers",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@ -59,7 +59,7 @@ packages:
|
|||||||
'@pushrocks/lik': 6.0.2
|
'@pushrocks/lik': 6.0.2
|
||||||
'@pushrocks/smartdelay': 2.0.13
|
'@pushrocks/smartdelay': 2.0.13
|
||||||
'@pushrocks/smartpromise': 3.1.7
|
'@pushrocks/smartpromise': 3.1.7
|
||||||
'@pushrocks/webrequest': 3.0.15
|
'@pushrocks/webrequest': 3.0.17
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
@ -702,7 +702,7 @@ packages:
|
|||||||
'@pushrocks/smartfeed': 1.0.11
|
'@pushrocks/smartfeed': 1.0.11
|
||||||
'@pushrocks/smartxml': 1.0.6
|
'@pushrocks/smartxml': 1.0.6
|
||||||
'@pushrocks/smartyaml': 2.0.5
|
'@pushrocks/smartyaml': 2.0.5
|
||||||
'@pushrocks/webrequest': 3.0.15
|
'@pushrocks/webrequest': 3.0.17
|
||||||
'@tsclass/tsclass': 3.0.48
|
'@tsclass/tsclass': 3.0.48
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@ -843,8 +843,8 @@ packages:
|
|||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@pushrocks/webrequest/3.0.15:
|
/@pushrocks/webrequest/3.0.17:
|
||||||
resolution: {integrity: sha512-YrLEKMwUSc485RBRkAe8muoAY0ogLnyQ7SITt2CiLpirt5YchfpRKU2Yhz82Rma1Ptt8BNF1p8Uy+IIH/Hm6iw==}
|
resolution: {integrity: sha512-Y84rlL2sKFvmHHCuNBZtLxZv2BDGjrlUqcg0DY6hMNTUZYB0jb1kmHIl+EVxBEEqO/QgcZdbQB0am/PAP9OfOw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@adobe/fetch': 4.0.1
|
'@adobe/fetch': 4.0.1
|
||||||
'@pushrocks/smartdelay': 2.0.13
|
'@pushrocks/smartdelay': 2.0.13
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/webrequest',
|
name: '@pushrocks/webrequest',
|
||||||
version: '3.0.16',
|
version: '3.0.18',
|
||||||
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