Socket
Socket
Sign inDemoInstall

@ethersproject/web

Package Overview
Dependencies
8
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.5.1 to 5.6.0

2

lib.esm/_version.d.ts

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

export declare const version = "web/5.5.1";
export declare const version = "web/5.6.0";
//# sourceMappingURL=_version.d.ts.map

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

export const version = "web/5.5.1";
export const version = "web/5.6.0";
//# sourceMappingURL=_version.js.map

@@ -13,2 +13,4 @@ export declare type ConnectionInfo = {

throttleCallback?: (attempt: number, url: string) => Promise<boolean>;
skipFetchSetup?: boolean;
errorPassThrough?: boolean;
timeout?: number;

@@ -15,0 +17,0 @@ };

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

logger.assertArgument((throttleSlotInterval > 0 && (throttleSlotInterval % 1) === 0), "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
const errorPassThrough = ((typeof (connection) === "object") ? !!(connection.errorPassThrough) : false);
const headers = {};

@@ -95,2 +96,5 @@ let url = null;

}
if (connection.skipFetchSetup != null) {
options.skipFetchSetup = !!connection.skipFetchSetup;
}
}

@@ -219,3 +223,3 @@ const reData = new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$", "i");

}
else if (response.statusCode < 200 || response.statusCode >= 300) {
else if (!errorPassThrough && (response.statusCode < 200 || response.statusCode >= 300)) {
runningTimeout.cancel();

@@ -222,0 +226,0 @@ logger.throwError("bad response", Logger.errors.SERVER_ERROR, {

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

export declare const version = "web/5.5.1";
export declare const version = "web/5.6.0";
//# sourceMappingURL=_version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "web/5.5.1";
exports.version = "web/5.6.0";
//# sourceMappingURL=_version.js.map

@@ -13,2 +13,4 @@ export declare type ConnectionInfo = {

throttleCallback?: (attempt: number, url: string) => Promise<boolean>;
skipFetchSetup?: boolean;
errorPassThrough?: boolean;
timeout?: number;

@@ -15,0 +17,0 @@ };

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

logger.assertArgument((throttleSlotInterval > 0 && (throttleSlotInterval % 1) === 0), "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
var errorPassThrough = ((typeof (connection) === "object") ? !!(connection.errorPassThrough) : false);
var headers = {};

@@ -124,2 +125,5 @@ var url = null;

}
if (connection.skipFetchSetup != null) {
options.skipFetchSetup = !!connection.skipFetchSetup;
}
}

@@ -263,3 +267,3 @@ var reData = new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$", "i");

}
else if (response.statusCode < 200 || response.statusCode >= 300) {
else if (!errorPassThrough && (response.statusCode < 200 || response.statusCode >= 300)) {
runningTimeout.cancel();

@@ -266,0 +270,0 @@ logger.throwError("bad response", logger_1.Logger.errors.SERVER_ERROR, {

@@ -10,7 +10,7 @@ {

"dependencies": {
"@ethersproject/base64": "^5.5.0",
"@ethersproject/bytes": "^5.5.0",
"@ethersproject/logger": "^5.5.0",
"@ethersproject/properties": "^5.5.0",
"@ethersproject/strings": "^5.5.0"
"@ethersproject/base64": "^5.6.0",
"@ethersproject/bytes": "^5.6.0",
"@ethersproject/logger": "^5.6.0",
"@ethersproject/properties": "^5.6.0",
"@ethersproject/strings": "^5.6.0"
},

@@ -29,3 +29,3 @@ "description": "Utility fucntions for managing web requests for ethers.",

],
"gitHead": "eb432aa1f44ad2cc268d000b266eae9b03db1d17",
"gitHead": "b8cda5dffdcb688e38d7c6a0aec4c7b8b59c1af5",
"keywords": [

@@ -51,5 +51,5 @@ "Ethereum",

"sideEffects": false,
"tarballHash": "0x111d1874bfaa91100367dfc7b0d920f66787685d2c5aa45903eb1b6ba627a757",
"tarballHash": "0x7e94c77f934aa62ce0bd58546dd163a8a3f821ad64198ca8101ce6876800ed01",
"types": "./lib/index.d.ts",
"version": "5.5.1"
"version": "5.6.0"
}

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

export const version = "web/5.5.1";
export const version = "web/5.6.0";

@@ -52,2 +52,5 @@ "use strict";

skipFetchSetup?: boolean;
errorPassThrough?: boolean;
timeout?: number,

@@ -100,2 +103,4 @@ };

const errorPassThrough = ((typeof(connection) === "object") ? !!(connection.errorPassThrough): false);
const headers: { [key: string]: Header } = { };

@@ -154,2 +159,6 @@

}
if (connection.skipFetchSetup != null) {
options.skipFetchSetup = !!connection.skipFetchSetup;
}
}

@@ -288,4 +297,3 @@ const reData = new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$", "i");

body = null;
} else if (response.statusCode < 200 || response.statusCode >= 300) {
} else if (!errorPassThrough && (response.statusCode < 200 || response.statusCode >= 300)) {
runningTimeout.cancel();

@@ -292,0 +300,0 @@ logger.throwError("bad response", Logger.errors.SERVER_ERROR, {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc