fix(core): update
This commit is contained in:
		| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@pushrocks/webrequest', | ||||
|   version: '3.0.26', | ||||
|   version: '3.0.27', | ||||
|   description: 'securely request from browsers' | ||||
| } | ||||
|   | ||||
| @@ -27,7 +27,6 @@ export class WebRequest { | ||||
|     this.polyfillStatusEvaluated = true; | ||||
|     const smartenv = new plugins.smartenv.Smartenv(); | ||||
|     if (!smartenv.isBrowser) { | ||||
|       console.log('webrequest using node context.'); | ||||
|       this.polyfillStatusEvaluated = true; | ||||
|       const fetchMod = await smartenv.getSafeNodeModule('@adobe/fetch'); | ||||
|       this.neededPolyfillsLoadedDeferred.resolve({ | ||||
| @@ -36,7 +35,6 @@ export class WebRequest { | ||||
|         helixTimeout: fetchMod.timeoutSignal, | ||||
|       }); | ||||
|     } else { | ||||
|       console.log('webrequest using browser context.'); | ||||
|       this.neededPolyfillsLoadedDeferred.resolve({ | ||||
|         fetch: (...args) => { | ||||
|           return fetch(...args); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user