@madeiramadeira/http-client
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@madeiramadeira/http-client", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Simple HTTP client lib", | ||
@@ -56,3 +56,5 @@ "main": "src/index.js", | ||
}, | ||
"dependencies": {} | ||
"dependencies": { | ||
"xmlhttprequest": "^1.8.0" | ||
} | ||
} |
@@ -80,2 +80,6 @@ module.exports = class httpClient { | ||
return new Promise((resolve, reject) => { | ||
if (typeof XMLHttpRequest === 'undefined') { | ||
const XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; | ||
} | ||
const req = new XMLHttpRequest(); | ||
@@ -82,0 +86,0 @@ req.open(optionObj.method, url, true); |
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
10108
187
1
+ Addedxmlhttprequest@^1.8.0
+ Addedxmlhttprequest@1.8.0(transitive)