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

@ethersproject/solidity

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/solidity - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

lib.esm/_version.js.map

2

lib.esm/_version.d.ts

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

export declare const version = "solidity/5.0.1";
export declare const version = "solidity/5.0.2";

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

export const version = "solidity/5.0.1";
export const version = "solidity/5.0.2";
//# sourceMappingURL=_version.js.map

@@ -33,3 +33,3 @@ "use strict";

let size = parseInt(match[2] || "256");
if ((size % 8 != 0) || size === 0 || size > 256) {
if ((match[2] && String(size) !== match[2]) || (size % 8 !== 0) || size === 0 || size > 256) {
throw new Error("invalid number type - " + type);

@@ -46,4 +46,4 @@ }

const size = parseInt(match[1]);
if (String(size) != match[1] || size === 0 || size > 32) {
throw new Error("invalid number type - " + type);
if (String(size) !== match[1] || size === 0 || size > 32) {
throw new Error("invalid bytes type - " + type);
}

@@ -71,3 +71,3 @@ if (arrayify(value).byteLength !== size) {

}
throw new Error("unknown type - " + type);
throw new Error("invalid type - " + type);
}

@@ -91,1 +91,2 @@ // @TODO: Array Enum

}
//# sourceMappingURL=index.js.map

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

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

@@ -34,3 +34,3 @@ "use strict";

var size = parseInt(match[2] || "256");
if ((size % 8 != 0) || size === 0 || size > 256) {
if ((match[2] && String(size) !== match[2]) || (size % 8 !== 0) || size === 0 || size > 256) {
throw new Error("invalid number type - " + type);

@@ -47,4 +47,4 @@ }

var size = parseInt(match[1]);
if (String(size) != match[1] || size === 0 || size > 32) {
throw new Error("invalid number type - " + type);
if (String(size) !== match[1] || size === 0 || size > 32) {
throw new Error("invalid bytes type - " + type);
}

@@ -72,3 +72,3 @@ if (bytes_1.arrayify(value).byteLength !== size) {

}
throw new Error("unknown type - " + type);
throw new Error("invalid type - " + type);
}

@@ -95,1 +95,2 @@ // @TODO: Array Enum

exports.sha256 = sha256;
//# sourceMappingURL=index.js.map

@@ -30,5 +30,5 @@ {

},
"tarballHash": "0x670073e9170653a1132e7890bd927e938b053d13f8be01f1a14c2256ad1e5712",
"tarballHash": "0xfff7ea728efebe7728dc667e7b599640559f233836bbe0be2709678eb09147b1",
"types": "./lib/index.d.ts",
"version": "5.0.1"
"version": "5.0.2"
}
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