Skip to content

Commit

Permalink
Updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 9, 2019
1 parent e4423b7 commit 0a24a86
Show file tree
Hide file tree
Showing 20 changed files with 69 additions and 39 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Changelog

This change log is managed by `scripts/cmds/update-versions` but may be manually updated.

ethers/v5.0.0-beta.144 (2019-07-09 17:28)
-----------------------------------------

- Make mnemonic phrases case agnostic. ([#557](https://github.com/ethers-io/ethers.js/issues/557); [e4423b7](https://github.com/ethers-io/ethers.js/commit/e4423b7a277e7e1be1c02d345d4ab1eab484c9b8))

ethers/v5.0.0-beta.143 (2019-07-02 16:12)
-----------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.143";
export declare const version = "5.0.0-beta.144";
2 changes: 1 addition & 1 deletion packages/ethers/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.143";
exports.version = "5.0.0-beta.144";
38 changes: 21 additions & 17 deletions packages/ethers/dist/ethers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8199,24 +8199,28 @@ exports.shr64_lo = shr64_lo;
if (typeof Object.create === 'function') {
// implementation from standard node.js 'util' module
module.exports = function inherits(ctor, superCtor) {
ctor.super_ = superCtor
ctor.prototype = Object.create(superCtor.prototype, {
constructor: {
value: ctor,
enumerable: false,
writable: true,
configurable: true
}
});
if (superCtor) {
ctor.super_ = superCtor
ctor.prototype = Object.create(superCtor.prototype, {
constructor: {
value: ctor,
enumerable: false,
writable: true,
configurable: true
}
})
}
};
} else {
// old school shim for old browsers
module.exports = function inherits(ctor, superCtor) {
ctor.super_ = superCtor
var TempCtor = function () {}
TempCtor.prototype = superCtor.prototype
ctor.prototype = new TempCtor()
ctor.prototype.constructor = ctor
if (superCtor) {
ctor.super_ = superCtor
var TempCtor = function () {}
TempCtor.prototype = superCtor.prototype
ctor.prototype = new TempCtor()
ctor.prototype.constructor = ctor
}
}
}

Expand Down Expand Up @@ -13850,7 +13854,7 @@ exports.info = info;
},{}],68:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.143";
exports.version = "5.0.0-beta.144";

},{}],69:[function(require,module,exports){
"use strict";
Expand Down Expand Up @@ -14281,8 +14285,8 @@ var HDNode = /** @class */ (function () {
return new HDNode(_constructorGuard, bytes32(I.slice(0, 32)), null, "0x00000000", bytes32(I.slice(32)), 0, 0, mnemonic, "m");
};
HDNode.fromMnemonic = function (mnemonic, password, wordlist) {
// Check that the checksum s valid (will throw an error)
mnemonicToEntropy(mnemonic, wordlist);
// Normalize the case and spacing in the mnemonic (throws if the mnemonic is invalid)
mnemonic = entropyToMnemonic(mnemonicToEntropy(mnemonic, wordlist), wordlist);
return HDNode._fromSeed(mnemonicToSeed(mnemonic, password), mnemonic);
};
HDNode.fromSeed = function (seed) {
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/dist/ethers.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethers",
"version": "5.0.0-beta.143",
"version": "5.0.0-beta.144",
"description": "Error utility functions for ethers.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -56,5 +56,5 @@
"publishConfig": {
"tag": "next"
},
"tarballHash": "0x725465f585001c4ff9c6793ed904b421e3fd81538fb426e901991c9ee225b1fa"
"tarballHash": "0x4aece039ac0d7551806de15bb7a25b429cb17e9c79c58cff20dd9589bea23dbe"
}
2 changes: 1 addition & 1 deletion packages/ethers/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.143";
export const version = "5.0.0-beta.144";
2 changes: 1 addition & 1 deletion packages/hdnode/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.126";
export declare const version = "5.0.0-beta.127";
2 changes: 1 addition & 1 deletion packages/hdnode/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.126";
exports.version = "5.0.0-beta.127";
4 changes: 2 additions & 2 deletions packages/hdnode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ var HDNode = /** @class */ (function () {
return new HDNode(_constructorGuard, bytes32(I.slice(0, 32)), null, "0x00000000", bytes32(I.slice(32)), 0, 0, mnemonic, "m");
};
HDNode.fromMnemonic = function (mnemonic, password, wordlist) {
// Check that the checksum s valid (will throw an error)
mnemonicToEntropy(mnemonic, wordlist);
// Normalize the case and spacing in the mnemonic (throws if the mnemonic is invalid)
mnemonic = entropyToMnemonic(mnemonicToEntropy(mnemonic, wordlist), wordlist);
return HDNode._fromSeed(mnemonicToSeed(mnemonic, password), mnemonic);
};
HDNode.fromSeed = function (seed) {
Expand Down
4 changes: 2 additions & 2 deletions packages/hdnode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/hdnode",
"version": "5.0.0-beta.126",
"version": "5.0.0-beta.127",
"description": "BIP32 Hierarchal Deterministic Node operations.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -29,5 +29,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0x2a7bd80760329de5b0059d3858f9c54af3836d6727f0f9ac40a030a3b19023fe"
"tarballHash": "0xff879047a41e893228ed4e40a5d1d800f3c4c7793ffefda57df068c819f43666"
}
2 changes: 1 addition & 1 deletion packages/hdnode/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.126";
export const version = "5.0.0-beta.127";
4 changes: 2 additions & 2 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/tests",
"version": "5.0.0-beta.131",
"version": "5.0.0-beta.132",
"description": "Testing package for ethers.",
"main": "index.js",
"browser": {
Expand Down Expand Up @@ -32,5 +32,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0x326bf339535f70d55f12f393d6dff6eb8a8ea9599929086d9bc5c53e7e2bb09b"
"tarballHash": "0x6c95c6d6f4728ecf658afa2e153234540cff5bca93c67c430c9d8cc489820a45"
}
2 changes: 1 addition & 1 deletion packages/tests/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.131";
export const version = "5.0.0-beta.132";
2 changes: 1 addition & 1 deletion packages/tests/tests/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.131";
exports.version = "5.0.0-beta.132";
21 changes: 21 additions & 0 deletions packages/tests/tests/test-hdnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
var assert_1 = __importDefault(require("assert"));
var ethers_1 = require("ethers");
var testcases_1 = require("@ethersproject/testcases");
function randomCase(seed, text) {
return text.split("").map(function (c, index) {
if (testcases_1.randomNumber(seed + "-" + index, 0, 2)) {
return c.toUpperCase();
}
return c;
}).join("");
}
describe('Test HD Node Derivation is Case Agnostic', function () {
var tests = testcases_1.loadTests('hdnode');
tests.forEach(function (test) {
it("Normalizes case - " + test.name, function () {
this.timeout(10000);
var wordlist = (ethers_1.ethers.wordlists)[test.locale];
var rootNode = ethers_1.ethers.utils.HDNode.fromMnemonic(test.mnemonic, test.password || null, wordlist);
var altMnemonic = randomCase(test.name, test.mnemonic);
var altNode = ethers_1.ethers.utils.HDNode.fromMnemonic(altMnemonic, test.password || null, wordlist);
assert_1.default.equal(altNode.privateKey, rootNode.privateKey, altMnemonic);
});
});
});
describe('Test HD Node Derivation from Seed', function () {
var tests = testcases_1.loadTests('hdnode');
tests.forEach(function (test) {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/_version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "5.0.0-beta.125";
export declare const version = "5.0.0-beta.126";
2 changes: 1 addition & 1 deletion packages/web/_version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.125";
exports.version = "5.0.0-beta.126";
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ethersproject/web",
"version": "5.0.0-beta.125",
"version": "5.0.0-beta.126",
"description": "Error utility functions for ethers.",
"main": "index.js",
"scripts": {
Expand All @@ -22,5 +22,5 @@
"publishConfig": {
"access": "public"
},
"tarballHash": "0x0f9e617f859e6d9d0dbd16146a9653390219cf5aadd418030212b804f16a3af4"
"tarballHash": "0xd957f413eb2b460c7855005872130089c4b77f67d257a6107a02ba998fa6764b"
}
2 changes: 1 addition & 1 deletion packages/web/src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "5.0.0-beta.125";
export const version = "5.0.0-beta.126";

0 comments on commit 0a24a86

Please sign in to comment.