@taquito/michel-codec 16.1.2-beta-RC.0 → 16.2.0-beta-RC.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/base58.js +3 -14
- package/dist/lib/base58.js.map +1 -1
- package/dist/lib/scan.js +3 -3
- package/dist/lib/scan.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-michel-codec.es6.js +8 -17
- package/dist/taquito-michel-codec.es6.js.map +1 -1
- package/dist/taquito-michel-codec.umd.js +10 -21
- package/dist/taquito-michel-codec.umd.js.map +1 -1
- package/dist/types/base58.d.ts +0 -9
- package/package.json +5 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoMichelCodec = {}));
|
|
5
|
-
})(this, (function (exports) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taquito/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@taquito/core'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoMichelCodec = {}, global.core));
|
|
5
|
+
})(this, (function (exports, core) { 'use strict';
|
|
6
6
|
|
|
7
7
|
// Michelson abstract syntax tree types https://tezos.gitlab.io/whitedoc/michelson.html#concrete-syntax
|
|
8
8
|
const sourceReference = Symbol('source_reference');
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
yield { t: Literal.Ident, v: src.slice(start, i), first: start, last: i };
|
|
54
54
|
}
|
|
55
|
-
else if (src.length - i > 1 && src.
|
|
55
|
+
else if (src.length - i > 1 && src.substring(i, i + 2) === '0x') {
|
|
56
56
|
// Bytes
|
|
57
57
|
i += 2;
|
|
58
58
|
while (i < src.length && isHex.test(src[i])) {
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
yield { t: Literal.Comment, v: src.slice(start, i), first: start, last: i };
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
else if (src.length - i > 1 && src.
|
|
108
|
+
else if (src.length - i > 1 && src.substring(i, i + 2) === '/*') {
|
|
109
109
|
// C style comment
|
|
110
110
|
i += 2;
|
|
111
|
-
while (i < src.length && !(src.length - i > 1 && src.
|
|
111
|
+
while (i < src.length && !(src.length - i > 1 && src.substring(i, i + 2) === '*/')) {
|
|
112
112
|
i++;
|
|
113
113
|
}
|
|
114
114
|
if (i === src.length) {
|
|
@@ -1352,24 +1352,13 @@
|
|
|
1352
1352
|
this.name = 'Base58DecodingError';
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
/**
|
|
1356
|
-
* @category Error
|
|
1357
|
-
* @description
|
|
1358
|
-
*/
|
|
1359
|
-
class InvalidMessageError extends Error {
|
|
1360
|
-
constructor(message) {
|
|
1361
|
-
super(message);
|
|
1362
|
-
this.message = message;
|
|
1363
|
-
this.name = 'InvalidMessageError';
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
1355
|
// https://tools.ietf.org/html/rfc6234
|
|
1367
1356
|
function sha256(msg) {
|
|
1368
1357
|
// pad the message
|
|
1369
1358
|
const r = (msg.length + 9) % 64;
|
|
1370
1359
|
const pad = r === 0 ? 0 : 64 - r;
|
|
1371
1360
|
if (msg.length > 268435455) {
|
|
1372
|
-
throw new InvalidMessageError(
|
|
1361
|
+
throw new core.InvalidMessageError('', `: Invalid length ${msg.length} is too big -- SHA-256.`);
|
|
1373
1362
|
}
|
|
1374
1363
|
const l = msg.length << 3;
|
|
1375
1364
|
const buffer = [
|
|
@@ -5716,8 +5705,8 @@ ${err.data
|
|
|
5716
5705
|
|
|
5717
5706
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5718
5707
|
const VERSION = {
|
|
5719
|
-
"commitHash": "
|
|
5720
|
-
"version": "16.
|
|
5708
|
+
"commitHash": "babcbaf464fd3571a3b88cf7023fefe87809d86d",
|
|
5709
|
+
"version": "16.2.0-beta-RC.0"
|
|
5721
5710
|
};
|
|
5722
5711
|
|
|
5723
5712
|
exports.Contract = Contract;
|