@pushrocks/webrequest
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -26,3 +26,3 @@ "use strict"; | ||
const response = await this.request(urlArg, { | ||
body: requestBody, | ||
body: JSON.stringify(requestBody), | ||
method: 'POST' | ||
@@ -37,3 +37,3 @@ }); | ||
const response = await this.request(urlArg, { | ||
body: requestBody, | ||
body: JSON.stringify(requestBody), | ||
method: 'PUT' | ||
@@ -88,2 +88,3 @@ }); | ||
} | ||
console.log(`Getting ${urlToUse} with method ${optionsArg.method}`); | ||
const response = await fetch(urlToUse, { | ||
@@ -112,2 +113,2 @@ method: optionsArg.method, | ||
exports.WebRequest = WebRequest; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSw4REFBZ0Q7QUFFaEQ7O0dBRUc7QUFDSCxNQUFhLFVBQVU7SUFDZCxLQUFLLENBQUMsT0FBTyxDQUFDLE1BQXlCO1FBQzVDLE1BQU0sUUFBUSxHQUFhLE1BQU0sSUFBSSxDQUFDLE9BQU8sQ0FBQyxNQUFNLEVBQUU7WUFDcEQsTUFBTSxFQUFFLEtBQUs7U0FDZCxDQUFDLENBQUM7UUFDSCxPQUFPLFFBQVEsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN6QixDQUFDO0lBRUQ7O09BRUc7SUFDSSxLQUFLLENBQUMsUUFBUSxDQUFDLE1BQWMsRUFBRSxXQUFpQjtRQUNyRCxNQUFNLFFBQVEsR0FBYSxNQUFNLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTSxFQUFFO1lBQ3BELElBQUksRUFBRSxXQUFXO1lBQ2pCLE1BQU0sRUFBRSxNQUFNO1NBQ2YsQ0FBQyxDQUFDO1FBQ0gsT0FBTyxRQUFRLENBQUMsSUFBSSxFQU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UN2RSxPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBQzNCLE9BQU8sYUFBYSxDQUFDO0lBQ3ZCLENBQUM7Q0FDRjtBQTdHRCxnQ0E2R0MifQ== |
{ | ||
"name": "@pushrocks/webrequest", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "securely request from browsers", |
@@ -19,3 +19,3 @@ import * as plugins from './webrequest.plugins'; | ||
const response: Response = await this.request(urlArg, { | ||
body: requestBody, | ||
body: JSON.stringify(requestBody), | ||
method: 'POST' | ||
@@ -31,3 +31,3 @@ }); | ||
const response: Response = await this.request(urlArg, { | ||
body: requestBody, | ||
body: JSON.stringify(requestBody), | ||
method: 'PUT' | ||
@@ -94,3 +94,3 @@ }); | ||
} | ||
console.log(`Getting ${urlToUse} with method ${optionsArg.method}`); | ||
const response = await fetch(urlToUse, { | ||
@@ -97,0 +97,0 @@ method: optionsArg.method, |
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
15626
267