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

@ethersproject/web

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/web - npm Package Compare versions

Comparing version 5.0.8 to 5.0.9

2

lib.esm/_version.d.ts

@@ -1,1 +0,1 @@

export declare const version = "web/5.0.8";
export declare const version = "web/5.0.9";

@@ -1,2 +0,2 @@

export const version = "web/5.0.8";
export const version = "web/5.0.9";
//# sourceMappingURL=_version.js.map

@@ -13,4 +13,6 @@ "use strict";

import https from "https";
import { gunzipSync } from "zlib";
import { parse } from "url";
import { concat } from "@ethersproject/bytes";
import { arrayify, concat } from "@ethersproject/bytes";
import { shallowCopy } from "@ethersproject/properties";
import { Logger } from "@ethersproject/logger";

@@ -43,2 +45,7 @@ import { version } from "./_version";

resp.on("end", () => {
if (response.headers["content-encoding"] === "gzip") {
//const size = response.body.length;
response.body = arrayify(gunzipSync(response.body));
//console.log("Delta:", response.body.length - size, Buffer.from(response.body).toString());
}
resolve(response);

@@ -77,4 +84,7 @@ });

method: (options.method || "GET"),
headers: (options.headers || {}),
headers: shallowCopy(options.headers || {}),
};
if (options.allowGzip) {
request.headers["accept-encoding"] = "gzip";
}
let req = null;

@@ -81,0 +91,0 @@ switch (nonnull(url.protocol)) {

@@ -9,2 +9,3 @@ export declare type ConnectionInfo = {

allowInsecureAuthentication?: boolean;
allowGzip?: boolean;
throttleLimit?: number;

@@ -11,0 +12,0 @@ throttleSlotInterval?: number;

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

}
options.allowGzip = !!connection.allowGzip;
if (connection.user != null && connection.password != null) {

@@ -85,0 +86,0 @@ if (url.substring(0, 6) !== "https:" && connection.allowInsecureAuthentication !== true) {

@@ -11,2 +11,3 @@ export declare type GetUrlResponse = {

method?: string;
allowGzip?: boolean;
body?: Uint8Array;

@@ -13,0 +14,0 @@ headers?: {

@@ -1,1 +0,1 @@

export declare const version = "web/5.0.8";
export declare const version = "web/5.0.9";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "web/5.0.8";
exports.version = "web/5.0.9";
//# sourceMappingURL=_version.js.map

@@ -44,4 +44,6 @@ "use strict";

var https_1 = __importDefault(require("https"));
var zlib_1 = require("zlib");
var url_1 = require("url");
var bytes_1 = require("@ethersproject/bytes");
var properties_1 = require("@ethersproject/properties");
var logger_1 = require("@ethersproject/logger");

@@ -74,2 +76,7 @@ var _version_1 = require("./_version");

resp.on("end", function () {
if (response.headers["content-encoding"] === "gzip") {
//const size = response.body.length;
response.body = bytes_1.arrayify(zlib_1.gunzipSync(response.body));
//console.log("Delta:", response.body.length - size, Buffer.from(response.body).toString());
}
resolve(response);

@@ -109,4 +116,7 @@ });

method: (options.method || "GET"),
headers: (options.headers || {}),
headers: properties_1.shallowCopy(options.headers || {}),
};
if (options.allowGzip) {
request.headers["accept-encoding"] = "gzip";
}
req = null;

@@ -113,0 +123,0 @@ switch (nonnull(url.protocol)) {

@@ -9,2 +9,3 @@ export declare type ConnectionInfo = {

allowInsecureAuthentication?: boolean;
allowGzip?: boolean;
throttleLimit?: number;

@@ -11,0 +12,0 @@ throttleSlotInterval?: number;

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

}
options.allowGzip = !!connection.allowGzip;
if (connection.user != null && connection.password != null) {

@@ -113,0 +114,0 @@ if (url.substring(0, 6) !== "https:" && connection.allowInsecureAuthentication !== true) {

@@ -11,2 +11,3 @@ export declare type GetUrlResponse = {

method?: string;
allowGzip?: boolean;
body?: Uint8Array;

@@ -13,0 +14,0 @@ headers?: {

@@ -21,3 +21,3 @@ {

"ethereum": "donations.ethers.eth",
"gitHead": "ffa4a2d0549fe2c606bda3130f4a3f3d788f8dcf",
"gitHead": "d78b7a39983273a7758399fee33f1b33ec368144",
"keywords": [

@@ -41,5 +41,5 @@ "Ethereum",

},
"tarballHash": "0x42701d8d5a4a2f01d4bee64412072a1a8738a99d570b0b576ae17c9472cc37a1",
"tarballHash": "0xffb63ec25a04effef1c5201b55770f2636a338339be2a7b770cc5e8914a6d56b",
"types": "./lib/index.d.ts",
"version": "5.0.8"
"version": "5.0.9"
}

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