Updated dist files.

This commit is contained in:
Richard Moore 2018-10-03 20:03:32 -04:00
parent b9c07b549c
commit f6d946cf68
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
10 changed files with 23 additions and 13 deletions

2
_version.d.ts vendored
View File

@ -1 +1 @@
export declare const version = "4.0.1";
export declare const version = "4.0.2";

View File

@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "4.0.1";
exports.version = "4.0.2";

7
dist/ethers.js vendored
View File

@ -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.1";
exports.version = "4.0.2";
},{}],2:[function(require,module,exports){
"use strict";
@ -9192,10 +9192,12 @@ module.exports = { browser: true };
if (!checkBufferish(password)) {
throw new Error('password must be an array or buffer');
}
password = Array.prototype.slice.call(password);
if (!checkBufferish(salt)) {
throw new Error('salt must be an array or buffer');
}
salt = Array.prototype.slice.call(salt);
var b = PBKDF2_HMAC_SHA256_OneIter(password, salt, p * 128 * r);
var B = new Uint32Array(p * 32 * r)
@ -13043,6 +13045,9 @@ var BigNumber = /** @class */ (function () {
else if (value.toHexString) {
properties_1.defineReadOnly(this, '_hex', toHex(toBN(value.toHexString())));
}
else if (value._hex && bytes_1.isHexString(value._hex)) {
properties_1.defineReadOnly(this, '_hex', value._hex);
}
else if (bytes_1.isArrayish(value)) {
properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(bytes_1.hexlify(value).substring(2), 16)));
}

2
dist/ethers.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -238,13 +238,15 @@ declare module 'ethers/utils' {
declare module 'ethers/wordlists' {
import { Wordlist } from 'ethers/utils/wordlist';
const en: Wordlist;
const ko: Wordlist;
const es: Wordlist;
const fr: Wordlist;
const it: Wordlist;
const ja: Wordlist;
const ko: Wordlist;
const zh: Wordlist;
const zh_cn: Wordlist;
const zh_tw: Wordlist;
export { en, it, ja, ko, zh, zh_cn, zh_tw };
export { en, es, fr, it, ja, ko, zh, zh_cn, zh_tw };
}
declare module 'ethers/utils/shims' {
@ -252,7 +254,7 @@ declare module 'ethers/utils/shims' {
}
declare module 'ethers/_version' {
export const version = "4.0.1";
export const version = "4.0.2";
}
declare module 'ethers/utils/bignumber' {

6
package-lock.json generated
View File

@ -5838,9 +5838,9 @@
"dev": true
},
"scrypt-js": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.3.tgz",
"integrity": "sha1-uwBAvgMEPamgEqLOqfyfhSz8h9Q="
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.4.tgz",
"integrity": "sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw=="
},
"secp256k1": {
"version": "3.5.0",

View File

@ -1,6 +1,6 @@
{
"name": "ethers",
"version": "4.0.1",
"version": "4.0.2",
"description": "Ethereum wallet library.",
"main": "./index.js",
"types": "./index.d.ts",

View File

@ -1 +1 @@
export const version = "4.0.1";
export const version = "4.0.2";

View File

@ -89,6 +89,9 @@ var BigNumber = /** @class */ (function () {
else if (value.toHexString) {
properties_1.defineReadOnly(this, '_hex', toHex(toBN(value.toHexString())));
}
else if (value._hex && bytes_1.isHexString(value._hex)) {
properties_1.defineReadOnly(this, '_hex', value._hex);
}
else if (bytes_1.isArrayish(value)) {
properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(bytes_1.hexlify(value).substring(2), 16)));
}