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

supra-http

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supra-http - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

1

dist/client.js

@@ -6,3 +6,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
const opossum_1 = __importDefault(require("opossum"));

@@ -9,0 +8,0 @@ const enums_1 = require("./enums");

8

dist/compression.js

@@ -6,10 +6,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Compression = void 0;
const zlib_1 = __importDefault(require("zlib"));
class Compression {
static decompressStream(res, cb, handlerStream) {
let buffer = '';
const buffer = [];
const stream = handlerStream || res;
stream.on('data', bufferChunk => {
buffer += bufferChunk;
buffer.push(bufferChunk);
});

@@ -20,3 +19,4 @@ stream.on('error', err => {

stream.on('end', (_) => {
cb(null, buffer);
const fullBuffer = Buffer.concat(buffer);
cb(null, fullBuffer.toString('utf8'));
});

@@ -23,0 +23,0 @@ if (handlerStream) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CONTENT_TYPE = exports.CACHE_CONTROL = exports.CONNECTION = void 0;
var CONTENT_TYPE;

@@ -5,0 +4,0 @@ (function (CONTENT_TYPE) {

@@ -6,3 +6,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Http = void 0;
const http_1 = __importDefault(require("http"));

@@ -9,0 +8,0 @@ const https_1 = __importDefault(require("https"));

{
"name": "supra-http",
"version": "1.8.1",
"version": "1.8.2",
"description": "Circuit breaking http client for NodeJs. And it is fast...",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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