Updated dist files.
This commit is contained in:
parent
bbb4f407b3
commit
3017a31127
@ -3,6 +3,13 @@ Changelog
|
||||
|
||||
This change log is managed by `scripts/cmds/update-versions` but may be manually updated.
|
||||
|
||||
ethers/v5.0.2 (2020-06-13 21:36)
|
||||
--------------------------------
|
||||
|
||||
- Allow provider.ready to stall until the network is available. ([#882](https://github.com/ethers-io/ethers.js/issues/882); [bbb4f40](https://github.com/ethers-io/ethers.js/commit/bbb4f407b34782c36ff93fa528e3b9f793987d4a))
|
||||
- Reduce dependencies to squash security issues. ([738d349](https://github.com/ethers-io/ethers.js/commit/738d34969d7c2184242b92f78228ba6a8aed1f3a))
|
||||
- Updated admin scripts for publishing prod releases. ([e0e0dbe](https://github.com/ethers-io/ethers.js/commit/e0e0dbef1830572c465670b826a7aa2b403ad2e8))
|
||||
|
||||
ethers/v5.0.1 (2020-06-12 23:09)
|
||||
--------------------------------
|
||||
|
||||
|
4
packages/ethers/dist/ethers-all.esm.min.js
vendored
4
packages/ethers/dist/ethers-all.esm.min.js
vendored
File diff suppressed because one or more lines are too long
4
packages/ethers/dist/ethers-all.umd.min.js
vendored
4
packages/ethers/dist/ethers-all.umd.min.js
vendored
File diff suppressed because one or more lines are too long
3559
packages/ethers/dist/ethers.esm.js
vendored
3559
packages/ethers/dist/ethers.esm.js
vendored
File diff suppressed because it is too large
Load Diff
4
packages/ethers/dist/ethers.esm.min.js
vendored
4
packages/ethers/dist/ethers.esm.min.js
vendored
File diff suppressed because one or more lines are too long
3558
packages/ethers/dist/ethers.umd.js
vendored
3558
packages/ethers/dist/ethers.umd.js
vendored
File diff suppressed because it is too large
Load Diff
4
packages/ethers/dist/ethers.umd.min.js
vendored
4
packages/ethers/dist/ethers.umd.min.js
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.1";
|
||||
export declare const version = "ethers/5.0.2";
|
||||
|
@ -1 +1 @@
|
||||
export const version = "ethers/5.0.1";
|
||||
export const version = "ethers/5.0.2";
|
||||
|
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.1";
|
||||
export declare const version = "ethers/5.0.2";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.1";
|
||||
exports.version = "ethers/5.0.2";
|
||||
|
@ -49,7 +49,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0x7b9f3436a8780e60ef1573f5bde9b290a98286eff29a0eb3d10e1d1db013ad5c",
|
||||
"tarballHash": "0x12cca5b4bba9c899a71c97904ad59108f141bc60787adf4484c3a35b5e22c651",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.1"
|
||||
"version": "5.0.2"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "ethers/5.0.1";
|
||||
export const version = "ethers/5.0.2";
|
||||
|
2
packages/logger/lib.esm/_version.d.ts
vendored
2
packages/logger/lib.esm/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "logger/5.0.1";
|
||||
export declare const version = "logger/5.0.2";
|
||||
|
@ -1 +1 @@
|
||||
export const version = "logger/5.0.1";
|
||||
export const version = "logger/5.0.2";
|
||||
|
@ -53,6 +53,7 @@ export var ErrorCode;
|
||||
// - operation
|
||||
ErrorCode["UNSUPPORTED_OPERATION"] = "UNSUPPORTED_OPERATION";
|
||||
// Network Error (i.e. Ethereum Network, such as an invalid chain ID)
|
||||
// - event ("noNetwork" is not re-thrown in provider.ready; otherwise thrown)
|
||||
ErrorCode["NETWORK_ERROR"] = "NETWORK_ERROR";
|
||||
// Some sort of bad response from the server
|
||||
ErrorCode["SERVER_ERROR"] = "SERVER_ERROR";
|
||||
|
2
packages/logger/lib/_version.d.ts
vendored
2
packages/logger/lib/_version.d.ts
vendored
@ -1 +1 @@
|
||||
export declare const version = "logger/5.0.1";
|
||||
export declare const version = "logger/5.0.2";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "logger/5.0.1";
|
||||
exports.version = "logger/5.0.2";
|
||||
|
@ -54,6 +54,7 @@ var ErrorCode;
|
||||
// - operation
|
||||
ErrorCode["UNSUPPORTED_OPERATION"] = "UNSUPPORTED_OPERATION";
|
||||
// Network Error (i.e. Ethereum Network, such as an invalid chain ID)
|
||||
// - event ("noNetwork" is not re-thrown in provider.ready; otherwise thrown)
|
||||
ErrorCode["NETWORK_ERROR"] = "NETWORK_ERROR";
|
||||
// Some sort of bad response from the server
|
||||
ErrorCode["SERVER_ERROR"] = "SERVER_ERROR";
|
||||
|
@ -20,7 +20,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0x60d97160fe67514a30186143a373a2666748b6ecde050361a5907879ba603696",
|
||||
"tarballHash": "0x75ce3ac274d6c8a26cd8e25c2416916f7ed3906bca7561d3fed0a9bf116296af",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.1"
|
||||
"version": "5.0.2"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "logger/5.0.1";
|
||||
export const version = "logger/5.0.2";
|
||||
|
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.1";
|
||||
export declare const version = "providers/5.0.2";
|
||||
|
@ -1 +1 @@
|
||||
export const version = "providers/5.0.1";
|
||||
export const version = "providers/5.0.2";
|
||||
|
@ -191,7 +191,7 @@ export class BaseProvider extends Provider {
|
||||
// Squash any "unhandled promise" errors; that do not need to be handled
|
||||
network.catch((error) => { });
|
||||
// Trigger initial network setting (async)
|
||||
this._ready();
|
||||
this._ready().catch((error) => { });
|
||||
}
|
||||
else {
|
||||
const knownNetwork = getStatic((new.target), "getNetwork")(network);
|
||||
@ -245,7 +245,17 @@ export class BaseProvider extends Provider {
|
||||
// For "any", this can change (a "network" event is emitted before
|
||||
// any change is refelcted); otherwise this cannot change
|
||||
get ready() {
|
||||
return this._ready();
|
||||
return poll(() => {
|
||||
return this._ready().then((network) => {
|
||||
return network;
|
||||
}, (error) => {
|
||||
// If the network isn't running yet, we will wait
|
||||
if (error.code === Logger.errors.NETWORK_ERROR && error.event === "noNetwork") {
|
||||
return undefined;
|
||||
}
|
||||
throw error;
|
||||
});
|
||||
});
|
||||
}
|
||||
// @TODO: Remove this and just create a singleton formatter
|
||||
static getFormatter() {
|
||||
@ -262,7 +272,7 @@ export class BaseProvider extends Provider {
|
||||
// than maxAge old or has been requested since the last request
|
||||
_getInternalBlockNumber(maxAge) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield this.ready;
|
||||
yield this._ready();
|
||||
const internalBlockNumber = this._internalBlockNumber;
|
||||
if (maxAge > 0 && this._internalBlockNumber) {
|
||||
const result = yield internalBlockNumber;
|
||||
@ -317,6 +327,7 @@ export class BaseProvider extends Provider {
|
||||
logger.warn("network block skew detected; skipping block events");
|
||||
this.emit("error", logger.makeError("network block skew detected", Logger.errors.NETWORK_ERROR, {
|
||||
blockNumber: blockNumber,
|
||||
event: "blockSkew",
|
||||
previousBlockNumber: this._emitted.block
|
||||
}));
|
||||
this.emit("block", blockNumber);
|
||||
@ -418,7 +429,7 @@ export class BaseProvider extends Provider {
|
||||
}
|
||||
getNetwork() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const network = yield this.ready;
|
||||
const network = yield this._ready();
|
||||
// Make sure we are still connected to the same network; this is
|
||||
// only an external call for backends which can have the underlying
|
||||
// network change spontaneously
|
||||
|
@ -248,11 +248,14 @@ export class JsonRpcProvider extends BaseProvider {
|
||||
catch (error) {
|
||||
return logger.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
|
||||
chainId: chainId,
|
||||
event: "invalidNetwork",
|
||||
serverError: error
|
||||
});
|
||||
}
|
||||
}
|
||||
return logger.throwError("could not detect network", Logger.errors.NETWORK_ERROR);
|
||||
return logger.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
|
||||
event: "noNetwork"
|
||||
});
|
||||
});
|
||||
}
|
||||
getSigner(addressOrIndex) {
|
||||
|
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.1";
|
||||
export declare const version = "providers/5.0.2";
|
||||
|
@ -1,3 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.1";
|
||||
exports.version = "providers/5.0.2";
|
||||
|
@ -253,7 +253,7 @@ var BaseProvider = /** @class */ (function (_super) {
|
||||
// Squash any "unhandled promise" errors; that do not need to be handled
|
||||
network.catch(function (error) { });
|
||||
// Trigger initial network setting (async)
|
||||
_this._ready();
|
||||
_this._ready().catch(function (error) { });
|
||||
}
|
||||
else {
|
||||
var knownNetwork = properties_1.getStatic((_newTarget), "getNetwork")(network);
|
||||
@ -323,7 +323,18 @@ var BaseProvider = /** @class */ (function (_super) {
|
||||
// For "any", this can change (a "network" event is emitted before
|
||||
// any change is refelcted); otherwise this cannot change
|
||||
get: function () {
|
||||
return this._ready();
|
||||
var _this = this;
|
||||
return web_1.poll(function () {
|
||||
return _this._ready().then(function (network) {
|
||||
return network;
|
||||
}, function (error) {
|
||||
// If the network isn't running yet, we will wait
|
||||
if (error.code === logger_1.Logger.errors.NETWORK_ERROR && error.event === "noNetwork") {
|
||||
return undefined;
|
||||
}
|
||||
throw error;
|
||||
});
|
||||
});
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
@ -347,7 +358,7 @@ var BaseProvider = /** @class */ (function (_super) {
|
||||
var _this = this;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.ready];
|
||||
case 0: return [4 /*yield*/, this._ready()];
|
||||
case 1:
|
||||
_a.sent();
|
||||
internalBlockNumber = this._internalBlockNumber;
|
||||
@ -417,6 +428,7 @@ var BaseProvider = /** @class */ (function (_super) {
|
||||
logger.warn("network block skew detected; skipping block events");
|
||||
this.emit("error", logger.makeError("network block skew detected", logger_1.Logger.errors.NETWORK_ERROR, {
|
||||
blockNumber: blockNumber,
|
||||
event: "blockSkew",
|
||||
previousBlockNumber: this._emitted.block
|
||||
}));
|
||||
this.emit("block", blockNumber);
|
||||
@ -529,7 +541,7 @@ var BaseProvider = /** @class */ (function (_super) {
|
||||
var network, currentNetwork, error;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, this.ready];
|
||||
case 0: return [4 /*yield*/, this._ready()];
|
||||
case 1:
|
||||
network = _a.sent();
|
||||
return [4 /*yield*/, this.detectNetwork()];
|
||||
|
@ -327,11 +327,14 @@ var JsonRpcProvider = /** @class */ (function (_super) {
|
||||
catch (error) {
|
||||
return [2 /*return*/, logger.throwError("could not detect network", logger_1.Logger.errors.NETWORK_ERROR, {
|
||||
chainId: chainId,
|
||||
event: "invalidNetwork",
|
||||
serverError: error
|
||||
})];
|
||||
}
|
||||
}
|
||||
return [2 /*return*/, logger.throwError("could not detect network", logger_1.Logger.errors.NETWORK_ERROR)];
|
||||
return [2 /*return*/, logger.throwError("could not detect network", logger_1.Logger.errors.NETWORK_ERROR, {
|
||||
event: "noNetwork"
|
||||
})];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -56,7 +56,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0xe7f642fee45afdf3cc6c7941f576d04d477f1f5c08e2a4ab9ab5f00854e92a7c",
|
||||
"tarballHash": "0xd420bc6858a4a862e6e4b41e0d1e0dceab7aa385628c46bc6c69b179ed7ecc90",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.1"
|
||||
"version": "5.0.2"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "providers/5.0.1";
|
||||
export const version = "providers/5.0.2";
|
||||
|
Loading…
Reference in New Issue
Block a user