Skip to content

Commit 47663ca

Browse files
committed
Updated dist files.
1 parent 99c7b1c commit 47663ca

27 files changed

+117
-67
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ Changelog
33

44
This change log is managed by `scripts/cmds/update-versions` but may be manually updated.
55

6+
ethers/v5.0.0-beta.147 (2019-07-23 1:04)
7+
----------------------------------------
8+
9+
- Use the CLI solc instead of solc directly for ABI testcase generation. ([99c7b1c](https://github.com/ethers-io/ethers.js/commit/99c7b1ca94382490b9757fd51375a7ad4259b831))
10+
- Added experimental UTF-8 functions for escaping non-ascii strings. ([b132e32](https://github.com/ethers-io/ethers.js/commit/b132e32172c9d63e59209628dadd5796dd6291c8))
11+
- Bump Solidity version in CLI to 0.5.10. ([6005248](https://github.com/ethers-io/ethers.js/commit/600524842e1a4b857e8428a45c0c7d1baa0624ee))
12+
613
ethers/v5.0.0-beta.146 (2019-07-20 21:06)
714
-----------------------------------------
815

packages/cli/_version.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export declare const version = "5.0.0-beta.133";
1+
export declare const version = "5.0.0-beta.134";

packages/cli/_version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.version = "5.0.0-beta.133";
3+
exports.version = "5.0.0-beta.134";

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ethersproject/cli",
3-
"version": "5.0.0-beta.133",
3+
"version": "5.0.0-beta.134",
44
"description": "Command-Line Interface scripts and releated utilities.",
55
"main": "index.js",
66
"scripts": {
@@ -28,5 +28,5 @@
2828
"publishConfig": {
2929
"access": "public"
3030
},
31-
"tarballHash": "0x791abec776da3fa3fa11ef3301f527739929ab1a7ba186d24f5c75b618a091ea"
31+
"tarballHash": "0xa43400fbcdc8b1642a96f867b45531429e4cdce0bbbbad31f68bfd43b6961e8a"
3232
}

packages/cli/src.ts/_version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = "5.0.0-beta.133";
1+
export const version = "5.0.0-beta.134";

packages/ethers/_version.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export declare const version = "5.0.0-beta.146";
1+
export declare const version = "5.0.0-beta.147";

packages/ethers/_version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.version = "5.0.0-beta.146";
3+
exports.version = "5.0.0-beta.147";

packages/ethers/dist/ethers.js

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14009,7 +14009,7 @@ exports.info = info;
1400914009
},{}],68:[function(require,module,exports){
1401014010
"use strict";
1401114011
Object.defineProperty(exports, "__esModule", { value: true });
14012-
exports.version = "5.0.0-beta.146";
14012+
exports.version = "5.0.0-beta.147";
1401314013

1401414014
},{}],69:[function(require,module,exports){
1401514015
"use strict";
@@ -14168,6 +14168,7 @@ exports.SigningKey = signing_key_1.SigningKey;
1416814168
var strings_1 = require("@ethersproject/strings");
1416914169
exports.formatBytes32String = strings_1.formatBytes32String;
1417014170
exports.parseBytes32String = strings_1.parseBytes32String;
14171+
exports._toEscapedUtf8String = strings_1._toEscapedUtf8String;
1417114172
exports.toUtf8Bytes = strings_1.toUtf8Bytes;
1417214173
exports.toUtf8String = strings_1.toUtf8String;
1417314174
var transactions_1 = require("@ethersproject/transactions");
@@ -18685,7 +18686,7 @@ function toUtf8Bytes(str, form) {
1868518686
exports.toUtf8Bytes = toUtf8Bytes;
1868618687
;
1868718688
// http://stackoverflow.com/questions/13356493/decode-utf-8-with-javascript#13691499
18688-
function toUtf8String(bytes, ignoreErrors) {
18689+
function processUtf8String(bytes, processFunc, ignoreErrors) {
1868918690
bytes = bytes_1.arrayify(bytes);
1869018691
var result = "";
1869118692
var i = 0;
@@ -18694,7 +18695,7 @@ function toUtf8String(bytes, ignoreErrors) {
1869418695
var c = bytes[i++];
1869518696
// 0xxx xxxx
1869618697
if (c >> 7 === 0) {
18697-
result += String.fromCharCode(c);
18698+
result += processFunc(c);
1869818699
continue;
1869918700
}
1870018701
// Multibyte; how many bytes left for this character?
@@ -18778,14 +18779,48 @@ function toUtf8String(bytes, ignoreErrors) {
1877818779
continue;
1877918780
}
1878018781
if (res <= 0xffff) {
18781-
result += String.fromCharCode(res);
18782+
result += processFunc(res);
1878218783
continue;
1878318784
}
1878418785
res -= 0x10000;
18785-
result += String.fromCharCode(((res >> 10) & 0x3ff) + 0xd800, (res & 0x3ff) + 0xdc00);
18786+
result += processFunc(((res >> 10) & 0x3ff) + 0xd800, (res & 0x3ff) + 0xdc00);
1878618787
}
1878718788
return result;
1878818789
}
18790+
function escapeChar(value) {
18791+
var hex = ("0000" + value.toString(16));
18792+
return "\\u" + hex.substring(hex.length - 4);
18793+
}
18794+
function _toEscapedUtf8String(bytes, ignoreErrors) {
18795+
return '"' + processUtf8String(bytes, function (left, right) {
18796+
if (right == null) {
18797+
if (left < 256) {
18798+
switch (left) {
18799+
case 8: return "\\b";
18800+
case 9: return "\\t";
18801+
case 10: return "\\n";
18802+
case 13: return "\\r";
18803+
case 34: return "\\\"";
18804+
case 92: return "\\\\";
18805+
}
18806+
if (left >= 32 && left < 127) {
18807+
return String.fromCharCode(left);
18808+
}
18809+
}
18810+
return escapeChar(left);
18811+
}
18812+
return escapeChar(left) + escapeChar(right);
18813+
}, ignoreErrors) + '"';
18814+
}
18815+
exports._toEscapedUtf8String = _toEscapedUtf8String;
18816+
function toUtf8String(bytes, ignoreErrors) {
18817+
return processUtf8String(bytes, function (left, right) {
18818+
if (right == null) {
18819+
return String.fromCharCode(left);
18820+
}
18821+
return String.fromCharCode(left, right);
18822+
}, ignoreErrors);
18823+
}
1878918824
exports.toUtf8String = toUtf8String;
1879018825
function formatBytes32String(text) {
1879118826
// Get the bytes

packages/ethers/dist/ethers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ethers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethers",
3-
"version": "5.0.0-beta.146",
3+
"version": "5.0.0-beta.147",
44
"description": "Error utility functions for ethers.",
55
"main": "index.js",
66
"scripts": {
@@ -56,5 +56,5 @@
5656
"publishConfig": {
5757
"tag": "next"
5858
},
59-
"tarballHash": "0x9360b235b2db232c03a9ffd7a5608a778a815c9c6cb62ec48733a60a6b179e15"
59+
"tarballHash": "0xf1e4a7160dd3434770165090dccbc143a917afec0e23dd4bd581c0484b11270c"
6060
}

0 commit comments

Comments
 (0)