Updated dist files.
This commit is contained in:
parent
e5bee7e5a3
commit
eac0805435
2
_version.d.ts
vendored
2
_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "4.0.21";
|
||||
export declare const version = "4.0.22";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "4.0.21";
|
||||
exports.version = "4.0.22";
|
||||
|
7
dist/ethers.js
vendored
7
dist/ethers.js
vendored
@ -1,7 +1,7 @@
|
||||
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethers = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "4.0.21";
|
||||
exports.version = "4.0.22";
|
||||
|
||||
},{}],2:[function(require,module,exports){
|
||||
"use strict";
|
||||
@ -13828,7 +13828,7 @@ var HDNode = /** @class */ (function () {
|
||||
var mnemonic = this.mnemonic;
|
||||
var path = this.path;
|
||||
if (path) {
|
||||
path += '/' + index;
|
||||
path += '/' + (index & ~HardenedBit);
|
||||
}
|
||||
if (index & HardenedBit) {
|
||||
// Data = 0x00 || ser_256(k_par)
|
||||
@ -15556,6 +15556,7 @@ function encrypt(privateKey, password, options, progressCallback) {
|
||||
gethFilename: ('UTC--' + timestamp + '--' + data.address),
|
||||
mnemonicCounter: bytes_1.hexlify(mnemonicIv).substring(2),
|
||||
mnemonicCiphertext: bytes_1.hexlify(mnemonicCiphertext).substring(2),
|
||||
path: path,
|
||||
version: "0.1"
|
||||
};
|
||||
}
|
||||
@ -16636,7 +16637,7 @@ var Wallet = /** @class */ (function (_super) {
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(Wallet.prototype, "path", {
|
||||
get: function () { return this.signingKey.mnemonic; },
|
||||
get: function () { return this.signingKey.path; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
2
dist/ethers.min.js
vendored
2
dist/ethers.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/ethers.min.js.map
vendored
2
dist/ethers.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethers.types.txt
vendored
2
dist/ethers.types.txt
vendored
@ -265,7 +265,7 @@ declare module 'ethers/utils/shims' {
|
||||
}
|
||||
|
||||
declare module 'ethers/_version' {
|
||||
export const version = "4.0.21";
|
||||
export const version = "4.0.22";
|
||||
}
|
||||
|
||||
declare module 'ethers/utils/bignumber' {
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ethers",
|
||||
"version": "4.0.21",
|
||||
"version": "4.0.22",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ethers",
|
||||
"version": "4.0.21",
|
||||
"version": "4.0.22",
|
||||
"description": "Ethereum wallet library.",
|
||||
"main": "./index.js",
|
||||
"types": "./index.d.ts",
|
||||
|
@ -1 +1 @@
|
||||
export const version = "4.0.21";
|
||||
export const version = "4.0.22";
|
||||
|
@ -75,7 +75,7 @@ var HDNode = /** @class */ (function () {
|
||||
var mnemonic = this.mnemonic;
|
||||
var path = this.path;
|
||||
if (path) {
|
||||
path += '/' + index;
|
||||
path += '/' + (index & ~HardenedBit);
|
||||
}
|
||||
if (index & HardenedBit) {
|
||||
// Data = 0x00 || ser_256(k_par)
|
||||
|
@ -384,6 +384,7 @@ function encrypt(privateKey, password, options, progressCallback) {
|
||||
gethFilename: ('UTC--' + timestamp + '--' + data.address),
|
||||
mnemonicCounter: bytes_1.hexlify(mnemonicIv).substring(2),
|
||||
mnemonicCiphertext: bytes_1.hexlify(mnemonicCiphertext).substring(2),
|
||||
path: path,
|
||||
version: "0.1"
|
||||
};
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ var Wallet = /** @class */ (function (_super) {
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(Wallet.prototype, "path", {
|
||||
get: function () { return this.signingKey.mnemonic; },
|
||||
get: function () { return this.signingKey.path; },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user