Updated dist files.

This commit is contained in:
Richard Moore 2018-11-13 07:50:04 -05:00
parent 048c571d3d
commit 09208fa8fe
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
10 changed files with 25 additions and 17 deletions

2
_version.d.ts vendored
View File

@ -1 +1 @@
export declare const version = "4.0.11";
export declare const version = "4.0.12";

View File

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

12
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.11";
exports.version = "4.0.12";
},{}],2:[function(require,module,exports){
"use strict";
@ -10486,10 +10486,11 @@ var BaseProvider = /** @class */ (function (_super) {
}
return web_1.poll(function () {
return _this.getTransactionReceipt(transactionHash).then(function (receipt) {
if (receipt == null && confirmations !== 0) {
if (receipt.confirmations < confirmations) {
return undefined;
if (confirmations === 0) {
return receipt;
}
if (receipt == null || receipt.confirmations < confirmations) {
return undefined;
}
return receipt;
});
@ -10614,6 +10615,9 @@ var BaseProvider = /** @class */ (function (_super) {
_this._emitted['t:' + tx.hash] = 'pending';
}
return _this.waitForTransaction(tx.hash, confirmations).then(function (receipt) {
if (receipt == null && confirmations === 0) {
return null;
}
// No longer pending, allow the polling loop to garbage collect this
_this._emitted['t:' + tx.hash] = receipt.blockNumber;
if (receipt.status === 0) {

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

@ -262,7 +262,7 @@ declare module 'ethers/utils/shims' {
}
declare module 'ethers/_version' {
export const version = "4.0.11";
export const version = "4.0.12";
}
declare module 'ethers/utils/bignumber' {

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "ethers",
"version": "4.0.11",
"version": "4.0.12",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

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

View File

@ -632,10 +632,11 @@ var BaseProvider = /** @class */ (function (_super) {
}
return web_1.poll(function () {
return _this.getTransactionReceipt(transactionHash).then(function (receipt) {
if (receipt == null && confirmations !== 0) {
if (receipt.confirmations < confirmations) {
return undefined;
if (confirmations === 0) {
return receipt;
}
if (receipt == null || receipt.confirmations < confirmations) {
return undefined;
}
return receipt;
});
@ -760,6 +761,9 @@ var BaseProvider = /** @class */ (function (_super) {
_this._emitted['t:' + tx.hash] = 'pending';
}
return _this.waitForTransaction(tx.hash, confirmations).then(function (receipt) {
if (receipt == null && confirmations === 0) {
return null;
}
// No longer pending, allow the polling loop to garbage collect this
_this._emitted['t:' + tx.hash] = receipt.blockNumber;
if (receipt.status === 0) {

View File

@ -1 +1 @@
export const version = "4.0.11";
export const version = "4.0.12";