@azteam/http-client
Advanced tools
Comparing version 1.0.52 to 1.0.53
@@ -18,6 +18,6 @@ "use strict"; | ||
var _agents = _interopRequireDefault(require("./agents.json")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const agents = JSON.parse(_fs.default.readFileSync(__dirname + '/agents.json', 'utf8')); | ||
class HttpClient { | ||
@@ -56,3 +56,3 @@ constructor(options = {}) { | ||
randomAgent() { | ||
return this.addHeader('User-Agent', agents[Math.floor(Math.random() * agents.length)]); | ||
return this.addHeader('User-Agent', _agents.default[Math.floor(Math.random() * _agents.default.length)]); | ||
} | ||
@@ -59,0 +59,0 @@ |
{ | ||
"name": "@azteam/http-client", | ||
"version": "1.0.52", | ||
"version": "1.0.53", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
1
9806