supra-http
Advanced tools
Comparing version 1.8.1 to 1.8.2
@@ -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"); |
@@ -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
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
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
2
52021
24
1178