@pushrocks/webrequest
Advanced tools
Comparing version 2.0.12 to 2.0.13
@@ -130,5 +130,7 @@ "use strict"; | ||
else { | ||
// lets perform a history check to determine failed urls | ||
await doHistoryCheck(response.status.toString()); | ||
// tslint:disable-next-line: no-return-await | ||
return await doRequest(allUrls[usedUrlIndex]); | ||
// lets fire the request | ||
const result = await doRequest(allUrls[usedUrlIndex]); | ||
return result; | ||
} | ||
@@ -142,2 +144,2 @@ }; | ||
WebRequest.polyfillsLoaded = false; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsOERBQWdEO0FBRWhEOztHQUVHO0FBQ0gsTUFBYSxVQUFVO0lBVXJCO1FBQ0UsVUFBVSxDQUFDLG1CQUFtQixFQUFFLENBQUM7SUFDbkMsQ0FBQztJQVZNLE1BQU0sQ0FBQyxtQkFBbUI7UUFDL0IsTUFBTSxRQUFRLEdBQUcsSUFBSSxPQUFPLENBQUMsUUFBUSxDQUFDLFFBQVEsRUFBRSxDQUFDO1FBQ2pELElBQUksQ0FBQyxRQUFRLENBQUMsU0FBUyxJQUFJLENBQUMsSUFBSSxDQUFDLGVBQWUsRUFBRTtZQUNoRCxJQUFJLENBQUMsZUFBZSxHQUFHLElBQUksQ0FBQztZQUM1QixVQUFVLENBQUMsS0FBSyxHQUFHLFFBQVEsQ0FBQyxpQkFBaUIsQ0FBQyxZQUFZLENBQUMsQ0FBQztTQUM3RDtJQUNILENBQUM7SUFNTSxLQUFLLENBQUMsT0FBTyxDQUFDLE1BQXlCO1FBQzVDLE1BQU0sUUFBUSxHQUFhLE1BQU0sSUFBSSxDQUFDLE9BQU8sQ0FBQyxNQUFNLEVBQUU7WUFDcEQsTUFBTSxFQUFFLEtBQ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UFDLE9BQU8sQ0FBQyxZQUFZLENBQUMsQ0FBQyxDQUFDO1FBQ3ZFLE9BQU8sYUFBYSxDQUFDO0lBQ3ZCLENBQUM7O0FBbElILGdDQW1JQztBQWxJZ0IsMEJBQWUsR0FBRyxLQUFLLENBQUMifQ== |
{ | ||
"name": "@pushrocks/webrequest", | ||
"version": "2.0.12", | ||
"version": "2.0.13", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "securely request from browsers", |
@@ -126,5 +126,7 @@ import * as plugins from './webrequest.plugins'; | ||
} else { | ||
// lets perform a history check to determine failed urls | ||
await doHistoryCheck(response.status.toString()); | ||
// tslint:disable-next-line: no-return-await | ||
return await doRequest(allUrls[usedUrlIndex]); | ||
// lets fire the request | ||
const result = await doRequest(allUrls[usedUrlIndex]); | ||
return result; | ||
} | ||
@@ -131,0 +133,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
202598
2737
2