Updated dist files.
This commit is contained in:
parent
adc8d3d9ae
commit
e1dce87525
|
@ -3,6 +3,13 @@ Changelog
|
|||
|
||||
This change log is managed by `scripts/cmds/update-versions` but may be manually updated.
|
||||
|
||||
ethers/v5.0.0-beta.192 (2020-06-12 04:51)
|
||||
-----------------------------------------
|
||||
|
||||
- Support nonpayable Solidity modifier in ABI. ([adc8d3d](https://github.com/ethers-io/ethers.js/commit/adc8d3d9aec2f5ee8e207f8bc77d99052e473d16))
|
||||
- More debug information in timeout and fetch errors. ([#678](https://github.com/ethers-io/ethers.js/issues/678); [693094e](https://github.com/ethers-io/ethers.js/commit/693094e97ce4f0dc0cd49b9cf6b1557bd7dc517d))
|
||||
- Use URL parse instead of constructor for react compatibility. ([#874](https://github.com/ethers-io/ethers.js/issues/874); [5e7d28b](https://github.com/ethers-io/ethers.js/commit/5e7d28b19b18aa1bbb4b851f74f6d7865725be02))
|
||||
|
||||
ethers/v5.0.0-beta.191 (2020-06-03 03:41)
|
||||
-----------------------------------------
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
export declare const version = "abi/5.0.0-beta.155";
|
||||
export declare const version = "abi/5.0.0-beta.156";
|
||||
|
|
|
@ -1 +1 @@
|
|||
export const version = "abi/5.0.0-beta.155";
|
||||
export const version = "abi/5.0.0-beta.156";
|
||||
|
|
|
@ -486,6 +486,10 @@ function parseModifiers(value, params) {
|
|||
params.payable = true;
|
||||
params.stateMutability = "payable";
|
||||
break;
|
||||
case "nonpayable":
|
||||
params.payable = false;
|
||||
params.stateMutability = "nonpayable";
|
||||
break;
|
||||
case "pure":
|
||||
params.constant = true;
|
||||
params.stateMutability = "pure";
|
||||
|
|
|
@ -1 +1 @@
|
|||
export declare const version = "abi/5.0.0-beta.155";
|
||||
export declare const version = "abi/5.0.0-beta.156";
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "abi/5.0.0-beta.155";
|
||||
exports.version = "abi/5.0.0-beta.156";
|
||||
|
|
|
@ -510,6 +510,10 @@ function parseModifiers(value, params) {
|
|||
params.payable = true;
|
||||
params.stateMutability = "payable";
|
||||
break;
|
||||
case "nonpayable":
|
||||
params.payable = false;
|
||||
params.stateMutability = "nonpayable";
|
||||
break;
|
||||
case "pure":
|
||||
params.constant = true;
|
||||
params.stateMutability = "pure";
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0x0bef5f228f1e35b0a6f0881da7a0b4d700b1c30380a5bf1a438d95f728e56ac3",
|
||||
"tarballHash": "0x03c2682593f06045039a553285c72ba60f2313738637c5aed8509c634051aadb",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.0-beta.155"
|
||||
"version": "5.0.0-beta.156"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
export const version = "abi/5.0.0-beta.155";
|
||||
export const version = "abi/5.0.0-beta.156";
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -4806,7 +4806,7 @@ class Description {
|
|||
}
|
||||
}
|
||||
|
||||
const version$4 = "abi/5.0.0-beta.155";
|
||||
const version$4 = "abi/5.0.0-beta.156";
|
||||
|
||||
"use strict";
|
||||
const logger$4 = new Logger(version$4);
|
||||
|
@ -5292,6 +5292,10 @@ function parseModifiers(value, params) {
|
|||
params.payable = true;
|
||||
params.stateMutability = "payable";
|
||||
break;
|
||||
case "nonpayable":
|
||||
params.payable = false;
|
||||
params.stateMutability = "nonpayable";
|
||||
break;
|
||||
case "pure":
|
||||
params.constant = true;
|
||||
params.stateMutability = "pure";
|
||||
|
@ -15870,7 +15874,7 @@ var browser$2 = /*#__PURE__*/Object.freeze({
|
|||
encode: encode$1
|
||||
});
|
||||
|
||||
const version$l = "web/5.0.0-beta.141";
|
||||
const version$l = "web/5.0.0-beta.142";
|
||||
|
||||
"use strict";
|
||||
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
|
@ -15989,7 +15993,12 @@ function fetchJson(connection, json, processFunc) {
|
|||
return;
|
||||
}
|
||||
timer = null;
|
||||
reject(logger$p.makeError("timeout", Logger.errors.TIMEOUT, { timeout: timeout }));
|
||||
reject(logger$p.makeError("timeout", Logger.errors.TIMEOUT, {
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
timeout: timeout,
|
||||
url: url
|
||||
}));
|
||||
}, timeout);
|
||||
}
|
||||
});
|
||||
|
@ -16013,6 +16022,8 @@ function fetchJson(connection, json, processFunc) {
|
|||
if (response == null) {
|
||||
runningTimeout.cancel();
|
||||
logger$p.throwError("missing response", Logger.errors.SERVER_ERROR, {
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
serverError: error,
|
||||
url: url
|
||||
});
|
||||
|
@ -16028,6 +16039,8 @@ function fetchJson(connection, json, processFunc) {
|
|||
status: response.statusCode,
|
||||
headers: response.headers,
|
||||
body: body,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
|
@ -16041,6 +16054,8 @@ function fetchJson(connection, json, processFunc) {
|
|||
logger$p.throwError("invalid JSON", Logger.errors.SERVER_ERROR, {
|
||||
body: body,
|
||||
error: error,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
|
@ -16052,7 +16067,10 @@ function fetchJson(connection, json, processFunc) {
|
|||
catch (error) {
|
||||
logger$p.throwError("processing response error", Logger.errors.SERVER_ERROR, {
|
||||
body: json,
|
||||
error: error
|
||||
error: error,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -19861,7 +19879,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
|
|||
Indexed: Indexed
|
||||
});
|
||||
|
||||
const version$o = "ethers/5.0.0-beta.191";
|
||||
const version$o = "ethers/5.0.0-beta.192";
|
||||
|
||||
"use strict";
|
||||
const logger$E = new Logger(version$o);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4998,7 +4998,7 @@
|
|||
var _version$8 = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "abi/5.0.0-beta.155";
|
||||
exports.version = "abi/5.0.0-beta.156";
|
||||
});
|
||||
|
||||
var _version$9 = unwrapExports(_version$8);
|
||||
|
@ -5517,6 +5517,10 @@
|
|||
params.payable = true;
|
||||
params.stateMutability = "payable";
|
||||
break;
|
||||
case "nonpayable":
|
||||
params.payable = false;
|
||||
params.stateMutability = "nonpayable";
|
||||
break;
|
||||
case "pure":
|
||||
params.constant = true;
|
||||
params.stateMutability = "pure";
|
||||
|
@ -17572,7 +17576,7 @@
|
|||
var _version$G = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "web/5.0.0-beta.141";
|
||||
exports.version = "web/5.0.0-beta.142";
|
||||
});
|
||||
|
||||
var _version$H = unwrapExports(_version$G);
|
||||
|
@ -17774,7 +17778,12 @@
|
|||
return;
|
||||
}
|
||||
timer = null;
|
||||
reject(logger.makeError("timeout", lib.Logger.errors.TIMEOUT, { timeout: timeout }));
|
||||
reject(logger.makeError("timeout", lib.Logger.errors.TIMEOUT, {
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
timeout: timeout,
|
||||
url: url
|
||||
}));
|
||||
}, timeout);
|
||||
}
|
||||
});
|
||||
|
@ -17807,6 +17816,8 @@
|
|||
if (response == null) {
|
||||
runningTimeout.cancel();
|
||||
logger.throwError("missing response", lib.Logger.errors.SERVER_ERROR, {
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
serverError: error_1,
|
||||
url: url
|
||||
});
|
||||
|
@ -17823,6 +17834,8 @@
|
|||
status: response.statusCode,
|
||||
headers: response.headers,
|
||||
body: body,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
|
@ -17836,6 +17849,8 @@
|
|||
logger.throwError("invalid JSON", lib.Logger.errors.SERVER_ERROR, {
|
||||
body: body,
|
||||
error: error,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
|
@ -17852,7 +17867,10 @@
|
|||
error_2 = _a.sent();
|
||||
logger.throwError("processing response error", lib.Logger.errors.SERVER_ERROR, {
|
||||
body: json,
|
||||
error: error_2
|
||||
error: error_2,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
return [3 /*break*/, 8];
|
||||
case 8: return [2 /*return*/, json];
|
||||
|
@ -22932,7 +22950,7 @@
|
|||
var _version$M = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.0-beta.191";
|
||||
exports.version = "ethers/5.0.0-beta.192";
|
||||
});
|
||||
|
||||
var _version$N = unwrapExports(_version$M);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
export declare const version = "ethers/5.0.0-beta.191";
|
||||
export declare const version = "ethers/5.0.0-beta.192";
|
||||
|
|
|
@ -1 +1 @@
|
|||
export const version = "ethers/5.0.0-beta.191";
|
||||
export const version = "ethers/5.0.0-beta.192";
|
||||
|
|
|
@ -1 +1 @@
|
|||
export declare const version = "ethers/5.0.0-beta.191";
|
||||
export declare const version = "ethers/5.0.0-beta.192";
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.0-beta.191";
|
||||
exports.version = "ethers/5.0.0-beta.192";
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0xa66669ff741f946f58b2b150bf7c545445f44df8e967f1c437091da6a0a17e06",
|
||||
"tarballHash": "0xea0caed1ba912a862c62ef68af8d32beb9ffa62c7af52ad24699ad2913940ded",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.0-beta.191"
|
||||
"version": "5.0.0-beta.192"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
export const version = "ethers/5.0.0-beta.191";
|
||||
export const version = "ethers/5.0.0-beta.192";
|
||||
|
|
|
@ -1 +1 @@
|
|||
export declare const version = "web/5.0.0-beta.141";
|
||||
export declare const version = "web/5.0.0-beta.142";
|
||||
|
|
|
@ -1 +1 @@
|
|||
export const version = "web/5.0.0-beta.141";
|
||||
export const version = "web/5.0.0-beta.142";
|
||||
|
|
|
@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||
};
|
||||
import http from "http";
|
||||
import https from "https";
|
||||
import { URL } from "url";
|
||||
import { parse } from "url";
|
||||
import { Logger } from "@ethersproject/logger";
|
||||
import { version } from "./_version";
|
||||
const logger = new Logger(version);
|
||||
|
@ -48,6 +48,13 @@ function getResponse(request) {
|
|||
request.on("error", (error) => { reject(error); });
|
||||
});
|
||||
}
|
||||
// The URL.parse uses null instead of the empty string
|
||||
function nonnull(value) {
|
||||
if (value == null) {
|
||||
return "";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
export function getUrl(href, options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (options == null) {
|
||||
|
@ -56,17 +63,17 @@ export function getUrl(href, options) {
|
|||
// @TODO: Once we drop support for node 8, we can pass the href
|
||||
// firectly into request and skip adding the components
|
||||
// to this request object
|
||||
const url = new URL(href);
|
||||
const url = parse(href);
|
||||
const request = {
|
||||
protocol: url.protocol,
|
||||
hostname: url.hostname,
|
||||
port: url.port,
|
||||
path: (url.pathname + url.search),
|
||||
protocol: nonnull(url.protocol),
|
||||
hostname: nonnull(url.hostname),
|
||||
port: nonnull(url.port),
|
||||
path: (nonnull(url.pathname) + nonnull(url.search)),
|
||||
method: (options.method || "GET"),
|
||||
headers: (options.headers || {}),
|
||||
};
|
||||
let req = null;
|
||||
switch (url.protocol) {
|
||||
switch (nonnull(url.protocol)) {
|
||||
case "http:":
|
||||
req = http.request(request);
|
||||
break;
|
||||
|
|
|
@ -74,7 +74,12 @@ export function fetchJson(connection, json, processFunc) {
|
|||
return;
|
||||
}
|
||||
timer = null;
|
||||
reject(logger.makeError("timeout", Logger.errors.TIMEOUT, { timeout: timeout }));
|
||||
reject(logger.makeError("timeout", Logger.errors.TIMEOUT, {
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
timeout: timeout,
|
||||
url: url
|
||||
}));
|
||||
}, timeout);
|
||||
}
|
||||
});
|
||||
|
@ -98,6 +103,8 @@ export function fetchJson(connection, json, processFunc) {
|
|||
if (response == null) {
|
||||
runningTimeout.cancel();
|
||||
logger.throwError("missing response", Logger.errors.SERVER_ERROR, {
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
serverError: error,
|
||||
url: url
|
||||
});
|
||||
|
@ -113,6 +120,8 @@ export function fetchJson(connection, json, processFunc) {
|
|||
status: response.statusCode,
|
||||
headers: response.headers,
|
||||
body: body,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
|
@ -126,6 +135,8 @@ export function fetchJson(connection, json, processFunc) {
|
|||
logger.throwError("invalid JSON", Logger.errors.SERVER_ERROR, {
|
||||
body: body,
|
||||
error: error,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
|
@ -137,7 +148,10 @@ export function fetchJson(connection, json, processFunc) {
|
|||
catch (error) {
|
||||
logger.throwError("processing response error", Logger.errors.SERVER_ERROR, {
|
||||
body: json,
|
||||
error: error
|
||||
error: error,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
export declare const version = "web/5.0.0-beta.141";
|
||||
export declare const version = "web/5.0.0-beta.142";
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "web/5.0.0-beta.141";
|
||||
exports.version = "web/5.0.0-beta.142";
|
||||
|
|
|
@ -79,6 +79,13 @@ function getResponse(request) {
|
|||
request.on("error", function (error) { reject(error); });
|
||||
});
|
||||
}
|
||||
// The URL.parse uses null instead of the empty string
|
||||
function nonnull(value) {
|
||||
if (value == null) {
|
||||
return "";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
function getUrl(href, options) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var url, request, req, response;
|
||||
|
@ -88,17 +95,17 @@ function getUrl(href, options) {
|
|||
if (options == null) {
|
||||
options = {};
|
||||
}
|
||||
url = new url_1.URL(href);
|
||||
url = url_1.parse(href);
|
||||
request = {
|
||||
protocol: url.protocol,
|
||||
hostname: url.hostname,
|
||||
port: url.port,
|
||||
path: (url.pathname + url.search),
|
||||
protocol: nonnull(url.protocol),
|
||||
hostname: nonnull(url.hostname),
|
||||
port: nonnull(url.port),
|
||||
path: (nonnull(url.pathname) + nonnull(url.search)),
|
||||
method: (options.method || "GET"),
|
||||
headers: (options.headers || {}),
|
||||
};
|
||||
req = null;
|
||||
switch (url.protocol) {
|
||||
switch (nonnull(url.protocol)) {
|
||||
case "http:":
|
||||
req = http_1.default.request(request);
|
||||
break;
|
||||
|
|
|
@ -102,7 +102,12 @@ function fetchJson(connection, json, processFunc) {
|
|||
return;
|
||||
}
|
||||
timer = null;
|
||||
reject(logger.makeError("timeout", logger_1.Logger.errors.TIMEOUT, { timeout: timeout }));
|
||||
reject(logger.makeError("timeout", logger_1.Logger.errors.TIMEOUT, {
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
timeout: timeout,
|
||||
url: url
|
||||
}));
|
||||
}, timeout);
|
||||
}
|
||||
});
|
||||
|
@ -135,6 +140,8 @@ function fetchJson(connection, json, processFunc) {
|
|||
if (response == null) {
|
||||
runningTimeout.cancel();
|
||||
logger.throwError("missing response", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
serverError: error_1,
|
||||
url: url
|
||||
});
|
||||
|
@ -151,6 +158,8 @@ function fetchJson(connection, json, processFunc) {
|
|||
status: response.statusCode,
|
||||
headers: response.headers,
|
||||
body: body,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
|
@ -164,6 +173,8 @@ function fetchJson(connection, json, processFunc) {
|
|||
logger.throwError("invalid JSON", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
body: body,
|
||||
error: error,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
}
|
||||
|
@ -180,7 +191,10 @@ function fetchJson(connection, json, processFunc) {
|
|||
error_2 = _a.sent();
|
||||
logger.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
|
||||
body: json,
|
||||
error: error_2
|
||||
error: error_2,
|
||||
requestBody: (options.body || null),
|
||||
requestMethod: options.method,
|
||||
url: url
|
||||
});
|
||||
return [3 /*break*/, 8];
|
||||
case 8: return [2 /*return*/, json];
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0x982253f72136485683558734cc569b58d181623ca7f6dcd62f18764d850046b7",
|
||||
"tarballHash": "0x5705c313d09677ed9a0ee8566ee8f9d5f0ad961456a2abbc0b4d7106d3463b9c",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.0-beta.141"
|
||||
"version": "5.0.0-beta.142"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
export const version = "web/5.0.0-beta.141";
|
||||
export const version = "web/5.0.0-beta.142";
|
||||
|
|
Loading…
Reference in New Issue