Updated dist files.
This commit is contained in:
parent
45a2902874
commit
1c4259881a
12
CHANGELOG.md
12
CHANGELOG.md
@ -3,6 +3,16 @@ Changelog
|
||||
|
||||
This change log is managed by `admin/cmds/update-versions` but may be manually updated.
|
||||
|
||||
ethers/v5.0.23 (2020-11-25 15:25)
|
||||
---------------------------------
|
||||
|
||||
- Fix BigNumber when passed something with a length property. ([#1172](https://github.com/ethers-io/ethers.js/issues/1172); [45a2902](https://github.com/ethers-io/ethers.js/commit/45a2902874e828a16396a253548bcb00bceccf95))
|
||||
|
||||
ethers/v5.0.23 (2020-11-25 15:13)
|
||||
---------------------------------
|
||||
|
||||
- Fix BigNumber when passed something with a length property. ([#1172](https://github.com/ethers-io/ethers.js/issues/1172); [45a2902](https://github.com/ethers-io/ethers.js/commit/45a2902874e828a16396a253548bcb00bceccf95))
|
||||
|
||||
ethers/v5.0.22 (2020-11-23 19:16)
|
||||
---------------------------------
|
||||
|
||||
@ -188,4 +198,4 @@ ethers/v5.0.0 (2020-06-12 19:58)
|
||||
--------------------------------
|
||||
|
||||
- Preserve config canary string. ([7157816](https://github.com/ethers-io/ethers.js/commit/7157816fa53f660d750811b293e3b1d5a2f70bd4))
|
||||
- Updated docs. ([9e4c7e6](https://github.com/ethers-io/ethers.js/commit/9e4c7e609d9eeb5f2a11d6a90bfa9d32ee696431))
|
||||
- Updated docs. ([9e4c7e6](https://github.com/ethers-io/ethers.js/commit/9e4c7e609d9eeb5f2a11d6a90bfa9d32ee696431))
|
26
package-lock.json
generated
26
package-lock.json
generated
@ -13,9 +13,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/core": {
|
||||
"version": "7.12.8",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.8.tgz",
|
||||
"integrity": "sha512-ra28JXL+5z73r1IC/t+FT1ApXU5LsulFDnTDntNfLQaScJUJmcHL5Qxm/IWanCToQk3bPWQo5bflbplU5r15pg==",
|
||||
"version": "7.12.9",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz",
|
||||
"integrity": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.10.4",
|
||||
@ -24,7 +24,7 @@
|
||||
"@babel/helpers": "^7.12.5",
|
||||
"@babel/parser": "^7.12.7",
|
||||
"@babel/template": "^7.12.7",
|
||||
"@babel/traverse": "^7.12.8",
|
||||
"@babel/traverse": "^7.12.9",
|
||||
"@babel/types": "^7.12.7",
|
||||
"convert-source-map": "^1.7.0",
|
||||
"debug": "^4.1.0",
|
||||
@ -394,9 +394,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/traverse": {
|
||||
"version": "7.12.8",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.8.tgz",
|
||||
"integrity": "sha512-EIRQXPTwFEGRZyu6gXbjfpNORN1oZvwuzJbxcXjAgWV0iqXYDszN1Hx3FVm6YgZfu1ZQbCVAk3l+nIw95Xll9Q==",
|
||||
"version": "7.12.9",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.9.tgz",
|
||||
"integrity": "sha512-iX9ajqnLdoU1s1nHt36JDI9KG4k+vmI8WgjK5d+aDTwQbL2fUnzedNedssA645Ede3PM2ma1n8Q4h2ohwXgMXw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.10.4",
|
||||
@ -474,9 +474,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@ledgerhq/cryptoassets": {
|
||||
"version": "5.31.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/cryptoassets/-/cryptoassets-5.31.0.tgz",
|
||||
"integrity": "sha512-yTfyTYGMpCOY6PHEad9rir86z+/CshZC7Kc9jW1wjHUb0XNy148MWLZNRG5+i2RbW8DlMevIs9ckE7IU2m9/IQ==",
|
||||
"version": "5.33.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/cryptoassets/-/cryptoassets-5.33.0.tgz",
|
||||
"integrity": "sha512-8PeHe7rtYEkX4NsSe4aOa0EsV5EZx3iq206s4WCOKOsYoobE3Gh6OXeq5GScET9aR9rEBdkeReo37qskNDTqLQ==",
|
||||
"requires": {
|
||||
"invariant": "2"
|
||||
}
|
||||
@ -715,9 +715,9 @@
|
||||
"integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ=="
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "12.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.6.tgz",
|
||||
"integrity": "sha512-U2VopDdmBoYBmtm8Rz340mvvSz34VgX/K9+XCuckvcLGMkt3rbMX8soqFOikIPlPBc5lmw8By9NUK7bEFSBFlQ==",
|
||||
"version": "12.19.7",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.7.tgz",
|
||||
"integrity": "sha512-zvjOU1g4CpPilbTDUATnZCUb/6lARMRAqzT7ILwl1P3YvU2leEcZ2+fw9+Jrw/paXB1CgQyXTrN4hWDtqT9O2A==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/resolve": {
|
||||
|
2
packages/bignumber/lib.esm/_version.d.ts
vendored
2
packages/bignumber/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "bignumber/5.0.11";
|
||||
export declare const version = "bignumber/5.0.12";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "bignumber/5.0.11";
|
||||
export const version = "bignumber/5.0.12";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/bignumber/lib/_version.d.ts
vendored
2
packages/bignumber/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "bignumber/5.0.11";
|
||||
export declare const version = "bignumber/5.0.12";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "bignumber/5.0.11";
|
||||
exports.version = "bignumber/5.0.12";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"author": "Richard Moore <me@ricmoo.com>",
|
||||
"dependencies": {
|
||||
"@ethersproject/bytes": "^5.0.4",
|
||||
"@ethersproject/bytes": "^5.0.8",
|
||||
"@ethersproject/logger": "^5.0.5",
|
||||
"bn.js": "^4.4.0"
|
||||
},
|
||||
@ -38,7 +38,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x739322073858f78c27573dbc36177b17681730a7bbb953aba9fe190fd36b7bda",
|
||||
"tarballHash": "0x988db7b6fa319a70ba68f176e674bee80e0e7f85d82109153bb8f7cd8957f2e3",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.11"
|
||||
"version": "5.0.12"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "bignumber/5.0.11";
|
||||
export const version = "bignumber/5.0.12";
|
||||
|
2
packages/bytes/lib.esm/_version.d.ts
vendored
2
packages/bytes/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "bytes/5.0.7";
|
||||
export declare const version = "bytes/5.0.8";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "bytes/5.0.7";
|
||||
export const version = "bytes/5.0.8";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -34,7 +34,7 @@ export function isBytes(value) {
|
||||
}
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
const v = value[i];
|
||||
if (v < 0 || v >= 256 || (v % 1)) {
|
||||
if (typeof (v) !== "number" || v < 0 || v >= 256 || (v % 1)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/bytes/lib/_version.d.ts
vendored
2
packages/bytes/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "bytes/5.0.7";
|
||||
export declare const version = "bytes/5.0.8";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "bytes/5.0.7";
|
||||
exports.version = "bytes/5.0.8";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -36,7 +36,7 @@ function isBytes(value) {
|
||||
}
|
||||
for (var i = 0; i < value.length; i++) {
|
||||
var v = value[i];
|
||||
if (v < 0 || v >= 256 || (v % 1)) {
|
||||
if (typeof (v) !== "number" || v < 0 || v >= 256 || (v % 1)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -37,7 +37,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x5214e9a9ce03a07a98b5c2eb30713ca5e90ae04e69367a93806b951b20ae854b",
|
||||
"tarballHash": "0xd9e749a0a18668dd6fd71da0f55afc0006d8b809d3c3f7b971ed9b76180e340c",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.7"
|
||||
"version": "5.0.8"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "bytes/5.0.7";
|
||||
export const version = "bytes/5.0.8";
|
||||
|
10
packages/ethers/dist/ethers.esm.js
vendored
10
packages/ethers/dist/ethers.esm.js
vendored
@ -3775,7 +3775,7 @@ class Logger {
|
||||
Logger.errors = ErrorCode;
|
||||
Logger.levels = LogLevel;
|
||||
|
||||
const version$1 = "bytes/5.0.7";
|
||||
const version$1 = "bytes/5.0.8";
|
||||
|
||||
"use strict";
|
||||
const logger = new Logger(version$1);
|
||||
@ -3811,7 +3811,7 @@ function isBytes(value) {
|
||||
}
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
const v = value[i];
|
||||
if (v < 0 || v >= 256 || (v % 1)) {
|
||||
if (typeof (v) !== "number" || v < 0 || v >= 256 || (v % 1)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -4155,7 +4155,7 @@ function joinSignature(signature) {
|
||||
]));
|
||||
}
|
||||
|
||||
const version$2 = "bignumber/5.0.11";
|
||||
const version$2 = "bignumber/5.0.12";
|
||||
|
||||
"use strict";
|
||||
var BN = bn.BN;
|
||||
@ -17612,7 +17612,7 @@ var bech32 = {
|
||||
fromWords: fromWords
|
||||
};
|
||||
|
||||
const version$m = "providers/5.0.16";
|
||||
const version$m = "providers/5.0.17";
|
||||
|
||||
"use strict";
|
||||
const logger$s = new Logger(version$m);
|
||||
@ -21912,7 +21912,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
|
||||
Indexed: Indexed
|
||||
});
|
||||
|
||||
const version$o = "ethers/5.0.22";
|
||||
const version$o = "ethers/5.0.23";
|
||||
|
||||
"use strict";
|
||||
const logger$H = new Logger(version$o);
|
||||
|
2
packages/ethers/dist/ethers.esm.js.map
vendored
2
packages/ethers/dist/ethers.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.esm.min.js
vendored
2
packages/ethers/dist/ethers.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.esm.min.js.map
vendored
2
packages/ethers/dist/ethers.esm.min.js.map
vendored
File diff suppressed because one or more lines are too long
10
packages/ethers/dist/ethers.umd.js
vendored
10
packages/ethers/dist/ethers.umd.js
vendored
@ -3812,7 +3812,7 @@
|
||||
var _version$2 = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "bytes/5.0.7";
|
||||
exports.version = "bytes/5.0.8";
|
||||
|
||||
});
|
||||
|
||||
@ -3857,7 +3857,7 @@
|
||||
}
|
||||
for (var i = 0; i < value.length; i++) {
|
||||
var v = value[i];
|
||||
if (v < 0 || v >= 256 || (v % 1)) {
|
||||
if (typeof (v) !== "number" || v < 0 || v >= 256 || (v % 1)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -4223,7 +4223,7 @@
|
||||
var _version$4 = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "bignumber/5.0.11";
|
||||
exports.version = "bignumber/5.0.12";
|
||||
|
||||
});
|
||||
|
||||
@ -19682,7 +19682,7 @@
|
||||
var _version$I = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.16";
|
||||
exports.version = "providers/5.0.17";
|
||||
|
||||
});
|
||||
|
||||
@ -25295,7 +25295,7 @@
|
||||
var _version$M = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.22";
|
||||
exports.version = "ethers/5.0.23";
|
||||
|
||||
});
|
||||
|
||||
|
2
packages/ethers/dist/ethers.umd.js.map
vendored
2
packages/ethers/dist/ethers.umd.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.umd.min.js
vendored
2
packages/ethers/dist/ethers.umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.umd.min.js.map
vendored
2
packages/ethers/dist/ethers.umd.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/lib.esm/_version.d.ts
vendored
2
packages/ethers/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "ethers/5.0.22";
|
||||
export declare const version = "ethers/5.0.23";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "ethers/5.0.22";
|
||||
export const version = "ethers/5.0.23";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/ethers/lib/_version.d.ts
vendored
2
packages/ethers/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "ethers/5.0.22";
|
||||
export declare const version = "ethers/5.0.23";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.22";
|
||||
exports.version = "ethers/5.0.23";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -8,8 +8,8 @@
|
||||
"@ethersproject/address": "5.0.8",
|
||||
"@ethersproject/base64": "5.0.6",
|
||||
"@ethersproject/basex": "5.0.6",
|
||||
"@ethersproject/bignumber": "5.0.11",
|
||||
"@ethersproject/bytes": "5.0.7",
|
||||
"@ethersproject/bignumber": "5.0.12",
|
||||
"@ethersproject/bytes": "5.0.8",
|
||||
"@ethersproject/constants": "5.0.7",
|
||||
"@ethersproject/contracts": "5.0.8",
|
||||
"@ethersproject/hash": "5.0.8",
|
||||
@ -20,7 +20,7 @@
|
||||
"@ethersproject/networks": "5.0.6",
|
||||
"@ethersproject/pbkdf2": "5.0.6",
|
||||
"@ethersproject/properties": "5.0.6",
|
||||
"@ethersproject/providers": "5.0.16",
|
||||
"@ethersproject/providers": "5.0.17",
|
||||
"@ethersproject/random": "5.0.6",
|
||||
"@ethersproject/rlp": "5.0.6",
|
||||
"@ethersproject/sha2": "5.0.6",
|
||||
@ -62,7 +62,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x85545ff01b424d41a3f574dae2377024a8e4ef811342b6050a16b42d85286b28",
|
||||
"tarballHash": "0x83b17f3e49b95f2126bb624832a0199300d914fbebcc9a404fef2917ee0b87eb",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.22"
|
||||
"version": "5.0.23"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "ethers/5.0.22";
|
||||
export const version = "ethers/5.0.23";
|
||||
|
2
packages/providers/lib.esm/_version.d.ts
vendored
2
packages/providers/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "providers/5.0.16";
|
||||
export declare const version = "providers/5.0.17";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "providers/5.0.16";
|
||||
export const version = "providers/5.0.17";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/providers/lib/_version.d.ts
vendored
2
packages/providers/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "providers/5.0.16";
|
||||
export declare const version = "providers/5.0.17";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.16";
|
||||
exports.version = "providers/5.0.17";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -65,7 +65,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x79fea80b4b09da16ca89badcf846b9613a8db0e35f9a0d6141fe8f60a67bc50b",
|
||||
"tarballHash": "0xee60faa5694b163be934b5998c15e53fe50963d6ab645d135062d04c851041a3",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.16"
|
||||
"version": "5.0.17"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "providers/5.0.16";
|
||||
export const version = "providers/5.0.17";
|
||||
|
2
packages/tests/lib.esm/_version.d.ts
vendored
2
packages/tests/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "tests/5.0.14";
|
||||
export declare const version = "tests/5.0.15";
|
||||
|
@ -1,2 +1,2 @@
|
||||
export const version = "tests/5.0.14";
|
||||
export const version = "tests/5.0.15";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -509,6 +509,16 @@ describe("BigNumber", function () {
|
||||
assert.ok(value.abs().eq(expected));
|
||||
});
|
||||
});
|
||||
// Fails to create from BN (or any junk with a length) (See: #1172)
|
||||
it("Fails on junk with a length property", function () {
|
||||
const junk = { negative: 0, words: [1000], length: 1, red: null };
|
||||
assert.throws(() => {
|
||||
const value = ethers.BigNumber.from("100").add(junk);
|
||||
console.log("ERROR", value);
|
||||
}, (error) => {
|
||||
return true;
|
||||
});
|
||||
});
|
||||
// @TODO: Add more tests here
|
||||
});
|
||||
describe("FixedNumber", function () {
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/tests/lib/_version.d.ts
vendored
2
packages/tests/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "tests/5.0.14";
|
||||
export declare const version = "tests/5.0.15";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "tests/5.0.14";
|
||||
exports.version = "tests/5.0.15";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -547,6 +547,16 @@ describe("BigNumber", function () {
|
||||
assert_1.default.ok(value.abs().eq(expected));
|
||||
});
|
||||
});
|
||||
// Fails to create from BN (or any junk with a length) (See: #1172)
|
||||
it("Fails on junk with a length property", function () {
|
||||
var junk = { negative: 0, words: [1000], length: 1, red: null };
|
||||
assert_1.default.throws(function () {
|
||||
var value = ethers_1.ethers.BigNumber.from("100").add(junk);
|
||||
console.log("ERROR", value);
|
||||
}, function (error) {
|
||||
return true;
|
||||
});
|
||||
});
|
||||
// @TODO: Add more tests here
|
||||
});
|
||||
describe("FixedNumber", function () {
|
||||
|
File diff suppressed because one or more lines are too long
@ -37,7 +37,7 @@
|
||||
"scripts": {
|
||||
"test": "exit 1"
|
||||
},
|
||||
"tarballHash": "0x35dff9653e20a7bbf58096d6e73dce098a297e1ed167f5afbf5b18c8df3eaa67",
|
||||
"tarballHash": "0xfe392b338988484b70479f3c89ba233cba024292deeecbae1ea66aa2aa4546b1",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.14"
|
||||
"version": "5.0.15"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "tests/5.0.14";
|
||||
export const version = "tests/5.0.15";
|
||||
|
Loading…
Reference in New Issue
Block a user