Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azteam/http-client

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azteam/http-client - npm Package Compare versions

Comparing version 1.0.52 to 1.0.53

6

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc