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.40 to 1.0.41

2

package.json
{
"name": "@azteam/http-client",
"version": "1.0.40",
"version": "1.0.41",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

import fs from 'fs';
import qs from 'querystring';
import {parse} from 'node-html-parser';
import { parse } from 'node-html-parser';
import axios from 'axios';

@@ -18,3 +18,3 @@ import http from 'http';

resolveJSON: false,
httpAgent: new http.Agent({keepAlive: true}),
httpAgent: new http.Agent({ keepAlive: true }),
...options,

@@ -26,3 +26,3 @@ };

_resetOptions() {
this.options = {...this.init_opts};
this.options = { ...this.init_opts };
this.options.headers = {

@@ -91,3 +91,2 @@ ...this.init_opts.headers

const file = fs.createWriteStream(fileDir);
this.options.url = encodeURI(url);

@@ -99,5 +98,4 @@

responseType: 'stream',
}).then(function (response) {
response.data.pipe(fs.createWriteStream(fileDir));
}).then((response) => {
response.data.pipe(file);
response.data.on('finish', () => {

@@ -155,2 +153,2 @@ const stats = fs.statSync(fileDir);

export default HttpClient;
export default HttpClient;
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