@taquito/local-forging 24.2.0 → 24.3.0-beta.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/errors.js +13 -13
- package/dist/lib/michelson/codec.js +1 -1
- package/dist/lib/schema/operation.js +15 -4
- package/dist/lib/version.js +2 -2
- package/dist/taquito-local-forging.es6.js +31 -20
- package/dist/taquito-local-forging.es6.js.map +1 -1
- package/dist/taquito-local-forging.umd.js +31 -20
- package/dist/taquito-local-forging.umd.js.map +1 -1
- package/dist/types/errors.d.ts +13 -13
- package/dist/types/michelson/codec.d.ts +2 -2
- package/dist/types/utils.d.ts +1 -1
- package/package.json +24 -11
- package/LICENSE +0 -202
package/dist/lib/errors.js
CHANGED
|
@@ -5,7 +5,7 @@ const core_1 = require("@taquito/core");
|
|
|
5
5
|
const constants_1 = require("./constants");
|
|
6
6
|
/**
|
|
7
7
|
* @category Error
|
|
8
|
-
*
|
|
8
|
+
* Error that indicates an invalid operation content being passed or used
|
|
9
9
|
*/ class InvalidOperationSchemaError extends core_1.ParameterValidationError {
|
|
10
10
|
constructor(operation, errorDetail) {
|
|
11
11
|
super();
|
|
@@ -19,7 +19,7 @@ const constants_1 = require("./constants");
|
|
|
19
19
|
exports.InvalidOperationSchemaError = InvalidOperationSchemaError;
|
|
20
20
|
/**
|
|
21
21
|
* @category Error
|
|
22
|
-
*
|
|
22
|
+
* Error that indicates an entrypoint name exceeding maximum length
|
|
23
23
|
*/
|
|
24
24
|
class OversizedEntryPointError extends core_1.ParameterValidationError {
|
|
25
25
|
constructor(entrypoint) {
|
|
@@ -32,7 +32,7 @@ class OversizedEntryPointError extends core_1.ParameterValidationError {
|
|
|
32
32
|
exports.OversizedEntryPointError = OversizedEntryPointError;
|
|
33
33
|
/**
|
|
34
34
|
* @category Error
|
|
35
|
-
*
|
|
35
|
+
* Error that indicates an invalid ballot value being used
|
|
36
36
|
*/
|
|
37
37
|
class InvalidBallotValueError extends core_1.ParameterValidationError {
|
|
38
38
|
constructor(ballotValue) {
|
|
@@ -45,7 +45,7 @@ class InvalidBallotValueError extends core_1.ParameterValidationError {
|
|
|
45
45
|
exports.InvalidBallotValueError = InvalidBallotValueError;
|
|
46
46
|
/**
|
|
47
47
|
* @category Error
|
|
48
|
-
*
|
|
48
|
+
* Error that indicates a failure when trying to decode ballot value
|
|
49
49
|
*/
|
|
50
50
|
class DecodeBallotValueError extends core_1.ParameterValidationError {
|
|
51
51
|
constructor(ballotValue) {
|
|
@@ -58,7 +58,7 @@ class DecodeBallotValueError extends core_1.ParameterValidationError {
|
|
|
58
58
|
exports.DecodeBallotValueError = DecodeBallotValueError;
|
|
59
59
|
/**
|
|
60
60
|
* @category Error
|
|
61
|
-
*
|
|
61
|
+
* Error that indicates unexpected Michelson Value being passed or used
|
|
62
62
|
*/
|
|
63
63
|
class UnexpectedMichelsonValueError extends core_1.ParameterValidationError {
|
|
64
64
|
constructor(value) {
|
|
@@ -71,7 +71,7 @@ class UnexpectedMichelsonValueError extends core_1.ParameterValidationError {
|
|
|
71
71
|
exports.UnexpectedMichelsonValueError = UnexpectedMichelsonValueError;
|
|
72
72
|
/**
|
|
73
73
|
* @category Error
|
|
74
|
-
*
|
|
74
|
+
* Error that indicates a failure when trying to decode an operation
|
|
75
75
|
*/
|
|
76
76
|
class OperationDecodingError extends core_1.ParameterValidationError {
|
|
77
77
|
constructor(message) {
|
|
@@ -83,7 +83,7 @@ class OperationDecodingError extends core_1.ParameterValidationError {
|
|
|
83
83
|
exports.OperationDecodingError = OperationDecodingError;
|
|
84
84
|
/**
|
|
85
85
|
* @category Error
|
|
86
|
-
*
|
|
86
|
+
* Error that indicates a failure when trying to encode an operation
|
|
87
87
|
*/
|
|
88
88
|
class OperationEncodingError extends core_1.ParameterValidationError {
|
|
89
89
|
constructor(message) {
|
|
@@ -95,7 +95,7 @@ class OperationEncodingError extends core_1.ParameterValidationError {
|
|
|
95
95
|
exports.OperationEncodingError = OperationEncodingError;
|
|
96
96
|
/**
|
|
97
97
|
* @category Error
|
|
98
|
-
*
|
|
98
|
+
* Error that indicates an unsupported operation being passed or used
|
|
99
99
|
*/
|
|
100
100
|
class UnsupportedOperationError extends core_1.ParameterValidationError {
|
|
101
101
|
constructor(op) {
|
|
@@ -108,7 +108,7 @@ class UnsupportedOperationError extends core_1.ParameterValidationError {
|
|
|
108
108
|
exports.UnsupportedOperationError = UnsupportedOperationError;
|
|
109
109
|
/**
|
|
110
110
|
* @cateogry Error
|
|
111
|
-
*
|
|
111
|
+
* Error that indicates an unsupported pvm being passed or used
|
|
112
112
|
*/
|
|
113
113
|
class UnsupportedPvmKindError extends core_1.ParameterValidationError {
|
|
114
114
|
constructor(pvm) {
|
|
@@ -121,7 +121,7 @@ class UnsupportedPvmKindError extends core_1.ParameterValidationError {
|
|
|
121
121
|
exports.UnsupportedPvmKindError = UnsupportedPvmKindError;
|
|
122
122
|
/**
|
|
123
123
|
* @category Error
|
|
124
|
-
*
|
|
124
|
+
* Error that indicates an unsupported pvm to decode
|
|
125
125
|
*/
|
|
126
126
|
class DecodePvmKindError extends core_1.ParameterValidationError {
|
|
127
127
|
constructor(pvm) {
|
|
@@ -134,7 +134,7 @@ class DecodePvmKindError extends core_1.ParameterValidationError {
|
|
|
134
134
|
exports.DecodePvmKindError = DecodePvmKindError;
|
|
135
135
|
/**
|
|
136
136
|
* @category Error
|
|
137
|
-
*
|
|
137
|
+
* Error that indicates an invalid Smart Rollup Address (sr1)
|
|
138
138
|
*/
|
|
139
139
|
class InvalidSmartRollupAddressError extends core_1.ParameterValidationError {
|
|
140
140
|
constructor(address, errorDetail) {
|
|
@@ -149,7 +149,7 @@ class InvalidSmartRollupAddressError extends core_1.ParameterValidationError {
|
|
|
149
149
|
exports.InvalidSmartRollupAddressError = InvalidSmartRollupAddressError;
|
|
150
150
|
/**
|
|
151
151
|
* @category Error
|
|
152
|
-
*
|
|
152
|
+
* Error that indicates an invalid Smart Rollup commitment hash (src1)
|
|
153
153
|
*/
|
|
154
154
|
class InvalidSmartRollupCommitmentHashError extends core_1.ParameterValidationError {
|
|
155
155
|
constructor(hash, errorDetail) {
|
|
@@ -164,7 +164,7 @@ class InvalidSmartRollupCommitmentHashError extends core_1.ParameterValidationEr
|
|
|
164
164
|
exports.InvalidSmartRollupCommitmentHashError = InvalidSmartRollupCommitmentHashError;
|
|
165
165
|
/**
|
|
166
166
|
* @category Error
|
|
167
|
-
*
|
|
167
|
+
* Error that indicates an invalid dal commitment (sh)
|
|
168
168
|
*/
|
|
169
169
|
class InvalidDalCommitmentError extends core_1.ParameterValidationError {
|
|
170
170
|
constructor(commitment, errorDetail) {
|
|
@@ -88,7 +88,7 @@ const extractRequiredLen = (value, bytesLength = 4) => {
|
|
|
88
88
|
};
|
|
89
89
|
exports.extractRequiredLen = extractRequiredLen;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* parse bytes into multiple items of an array
|
|
92
92
|
* @param value Uint8ArrayConsumer class of forged segment to parse
|
|
93
93
|
* @param bytesLength default 4 bytes for length of variable bytes
|
|
94
94
|
* @returns array of Uint8Array values for each array item
|
|
@@ -195,7 +195,10 @@ const operationDecoder = (decoders) => (value) => {
|
|
|
195
195
|
if (typeof decodedObj !== 'object') {
|
|
196
196
|
throw new errors_1.OperationDecodingError('Invalid operation, cannot be decoded.');
|
|
197
197
|
}
|
|
198
|
-
return
|
|
198
|
+
return {
|
|
199
|
+
kind: operationName,
|
|
200
|
+
...decodedObj,
|
|
201
|
+
};
|
|
199
202
|
};
|
|
200
203
|
exports.operationDecoder = operationDecoder;
|
|
201
204
|
const schemaEncoder = (encoders) => (schema) => (value) => {
|
|
@@ -231,16 +234,24 @@ const schemaDecoder = (decoders) => (schema) => (value) => {
|
|
|
231
234
|
throw new errors_1.OperationDecodingError('Unable to decode value');
|
|
232
235
|
}
|
|
233
236
|
}
|
|
234
|
-
return
|
|
237
|
+
return {
|
|
238
|
+
...prev,
|
|
239
|
+
[key]: decoded,
|
|
240
|
+
};
|
|
235
241
|
}
|
|
236
242
|
else {
|
|
237
243
|
const decoder = decoders[valueToEncode];
|
|
238
244
|
const result = decoder(value);
|
|
239
245
|
if (typeof result !== 'undefined') {
|
|
240
|
-
return
|
|
246
|
+
return {
|
|
247
|
+
...prev,
|
|
248
|
+
[key]: result,
|
|
249
|
+
};
|
|
241
250
|
}
|
|
242
251
|
else {
|
|
243
|
-
return
|
|
252
|
+
return {
|
|
253
|
+
...prev,
|
|
254
|
+
};
|
|
244
255
|
}
|
|
245
256
|
}
|
|
246
257
|
}, {});
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "24.
|
|
6
|
+
"commitHash": "27675679db6515e8b092195ef5c58c2c0ea5f5c8",
|
|
7
|
+
"version": "24.3.0-beta.0"
|
|
8
8
|
};
|
|
@@ -298,7 +298,7 @@ const entrypointMappingReverse = (() => {
|
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* @category Error
|
|
301
|
-
*
|
|
301
|
+
* Error that indicates an invalid operation content being passed or used
|
|
302
302
|
*/ class InvalidOperationSchemaError extends ParameterValidationError {
|
|
303
303
|
constructor(operation, errorDetail) {
|
|
304
304
|
super();
|
|
@@ -311,7 +311,7 @@ const entrypointMappingReverse = (() => {
|
|
|
311
311
|
}
|
|
312
312
|
/**
|
|
313
313
|
* @category Error
|
|
314
|
-
*
|
|
314
|
+
* Error that indicates an entrypoint name exceeding maximum length
|
|
315
315
|
*/
|
|
316
316
|
class OversizedEntryPointError extends ParameterValidationError {
|
|
317
317
|
constructor(entrypoint) {
|
|
@@ -323,7 +323,7 @@ class OversizedEntryPointError extends ParameterValidationError {
|
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
325
|
* @category Error
|
|
326
|
-
*
|
|
326
|
+
* Error that indicates an invalid ballot value being used
|
|
327
327
|
*/
|
|
328
328
|
class InvalidBallotValueError extends ParameterValidationError {
|
|
329
329
|
constructor(ballotValue) {
|
|
@@ -335,7 +335,7 @@ class InvalidBallotValueError extends ParameterValidationError {
|
|
|
335
335
|
}
|
|
336
336
|
/**
|
|
337
337
|
* @category Error
|
|
338
|
-
*
|
|
338
|
+
* Error that indicates a failure when trying to decode ballot value
|
|
339
339
|
*/
|
|
340
340
|
class DecodeBallotValueError extends ParameterValidationError {
|
|
341
341
|
constructor(ballotValue) {
|
|
@@ -347,7 +347,7 @@ class DecodeBallotValueError extends ParameterValidationError {
|
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
349
|
* @category Error
|
|
350
|
-
*
|
|
350
|
+
* Error that indicates unexpected Michelson Value being passed or used
|
|
351
351
|
*/
|
|
352
352
|
class UnexpectedMichelsonValueError extends ParameterValidationError {
|
|
353
353
|
constructor(value) {
|
|
@@ -359,7 +359,7 @@ class UnexpectedMichelsonValueError extends ParameterValidationError {
|
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
361
|
* @category Error
|
|
362
|
-
*
|
|
362
|
+
* Error that indicates a failure when trying to decode an operation
|
|
363
363
|
*/
|
|
364
364
|
class OperationDecodingError extends ParameterValidationError {
|
|
365
365
|
constructor(message) {
|
|
@@ -370,7 +370,7 @@ class OperationDecodingError extends ParameterValidationError {
|
|
|
370
370
|
}
|
|
371
371
|
/**
|
|
372
372
|
* @category Error
|
|
373
|
-
*
|
|
373
|
+
* Error that indicates a failure when trying to encode an operation
|
|
374
374
|
*/
|
|
375
375
|
class OperationEncodingError extends ParameterValidationError {
|
|
376
376
|
constructor(message) {
|
|
@@ -381,7 +381,7 @@ class OperationEncodingError extends ParameterValidationError {
|
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
383
|
* @category Error
|
|
384
|
-
*
|
|
384
|
+
* Error that indicates an unsupported operation being passed or used
|
|
385
385
|
*/
|
|
386
386
|
class UnsupportedOperationError extends ParameterValidationError {
|
|
387
387
|
constructor(op) {
|
|
@@ -393,7 +393,7 @@ class UnsupportedOperationError extends ParameterValidationError {
|
|
|
393
393
|
}
|
|
394
394
|
/**
|
|
395
395
|
* @cateogry Error
|
|
396
|
-
*
|
|
396
|
+
* Error that indicates an unsupported pvm being passed or used
|
|
397
397
|
*/
|
|
398
398
|
class UnsupportedPvmKindError extends ParameterValidationError {
|
|
399
399
|
constructor(pvm) {
|
|
@@ -405,7 +405,7 @@ class UnsupportedPvmKindError extends ParameterValidationError {
|
|
|
405
405
|
}
|
|
406
406
|
/**
|
|
407
407
|
* @category Error
|
|
408
|
-
*
|
|
408
|
+
* Error that indicates an unsupported pvm to decode
|
|
409
409
|
*/
|
|
410
410
|
class DecodePvmKindError extends ParameterValidationError {
|
|
411
411
|
constructor(pvm) {
|
|
@@ -417,7 +417,7 @@ class DecodePvmKindError extends ParameterValidationError {
|
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @category Error
|
|
420
|
-
*
|
|
420
|
+
* Error that indicates an invalid Smart Rollup Address (sr1)
|
|
421
421
|
*/
|
|
422
422
|
class InvalidSmartRollupAddressError extends ParameterValidationError {
|
|
423
423
|
constructor(address, errorDetail) {
|
|
@@ -431,7 +431,7 @@ class InvalidSmartRollupAddressError extends ParameterValidationError {
|
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
433
|
* @category Error
|
|
434
|
-
*
|
|
434
|
+
* Error that indicates an invalid Smart Rollup commitment hash (src1)
|
|
435
435
|
*/
|
|
436
436
|
class InvalidSmartRollupCommitmentHashError extends ParameterValidationError {
|
|
437
437
|
constructor(hash, errorDetail) {
|
|
@@ -445,7 +445,7 @@ class InvalidSmartRollupCommitmentHashError extends ParameterValidationError {
|
|
|
445
445
|
}
|
|
446
446
|
/**
|
|
447
447
|
* @category Error
|
|
448
|
-
*
|
|
448
|
+
* Error that indicates an invalid dal commitment (sh)
|
|
449
449
|
*/
|
|
450
450
|
class InvalidDalCommitmentError extends ParameterValidationError {
|
|
451
451
|
constructor(commitment, errorDetail) {
|
|
@@ -561,7 +561,7 @@ const extractRequiredLen = (value, bytesLength = 4) => {
|
|
|
561
561
|
return value.consume(valueLen);
|
|
562
562
|
};
|
|
563
563
|
/**
|
|
564
|
-
*
|
|
564
|
+
* parse bytes into multiple items of an array
|
|
565
565
|
* @param value Uint8ArrayConsumer class of forged segment to parse
|
|
566
566
|
* @param bytesLength default 4 bytes for length of variable bytes
|
|
567
567
|
* @returns array of Uint8Array values for each array item
|
|
@@ -1405,7 +1405,10 @@ const operationDecoder = (decoders) => (value) => {
|
|
|
1405
1405
|
if (typeof decodedObj !== 'object') {
|
|
1406
1406
|
throw new OperationDecodingError('Invalid operation, cannot be decoded.');
|
|
1407
1407
|
}
|
|
1408
|
-
return
|
|
1408
|
+
return {
|
|
1409
|
+
kind: operationName,
|
|
1410
|
+
...decodedObj,
|
|
1411
|
+
};
|
|
1409
1412
|
};
|
|
1410
1413
|
const schemaEncoder = (encoders) => (schema) => (value) => {
|
|
1411
1414
|
const keys = Object.keys(schema);
|
|
@@ -1439,16 +1442,24 @@ const schemaDecoder = (decoders) => (schema) => (value) => {
|
|
|
1439
1442
|
throw new OperationDecodingError('Unable to decode value');
|
|
1440
1443
|
}
|
|
1441
1444
|
}
|
|
1442
|
-
return
|
|
1445
|
+
return {
|
|
1446
|
+
...prev,
|
|
1447
|
+
[key]: decoded,
|
|
1448
|
+
};
|
|
1443
1449
|
}
|
|
1444
1450
|
else {
|
|
1445
1451
|
const decoder = decoders[valueToEncode];
|
|
1446
1452
|
const result = decoder(value);
|
|
1447
1453
|
if (typeof result !== 'undefined') {
|
|
1448
|
-
return
|
|
1454
|
+
return {
|
|
1455
|
+
...prev,
|
|
1456
|
+
[key]: result,
|
|
1457
|
+
};
|
|
1449
1458
|
}
|
|
1450
1459
|
else {
|
|
1451
|
-
return
|
|
1460
|
+
return {
|
|
1461
|
+
...prev,
|
|
1462
|
+
};
|
|
1452
1463
|
}
|
|
1453
1464
|
}
|
|
1454
1465
|
}, {});
|
|
@@ -1650,8 +1661,8 @@ var ProtocolsHash;
|
|
|
1650
1661
|
|
|
1651
1662
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
1652
1663
|
const VERSION = {
|
|
1653
|
-
"commitHash": "
|
|
1654
|
-
"version": "24.
|
|
1664
|
+
"commitHash": "27675679db6515e8b092195ef5c58c2c0ea5f5c8",
|
|
1665
|
+
"version": "24.3.0-beta.0"
|
|
1655
1666
|
};
|
|
1656
1667
|
|
|
1657
1668
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-local-forging.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-local-forging.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* @category Error
|
|
302
|
-
*
|
|
302
|
+
* Error that indicates an invalid operation content being passed or used
|
|
303
303
|
*/ class InvalidOperationSchemaError extends core.ParameterValidationError {
|
|
304
304
|
constructor(operation, errorDetail) {
|
|
305
305
|
super();
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* @category Error
|
|
315
|
-
*
|
|
315
|
+
* Error that indicates an entrypoint name exceeding maximum length
|
|
316
316
|
*/
|
|
317
317
|
class OversizedEntryPointError extends core.ParameterValidationError {
|
|
318
318
|
constructor(entrypoint) {
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
}
|
|
325
325
|
/**
|
|
326
326
|
* @category Error
|
|
327
|
-
*
|
|
327
|
+
* Error that indicates an invalid ballot value being used
|
|
328
328
|
*/
|
|
329
329
|
class InvalidBallotValueError extends core.ParameterValidationError {
|
|
330
330
|
constructor(ballotValue) {
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
}
|
|
337
337
|
/**
|
|
338
338
|
* @category Error
|
|
339
|
-
*
|
|
339
|
+
* Error that indicates a failure when trying to decode ballot value
|
|
340
340
|
*/
|
|
341
341
|
class DecodeBallotValueError extends core.ParameterValidationError {
|
|
342
342
|
constructor(ballotValue) {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
350
|
* @category Error
|
|
351
|
-
*
|
|
351
|
+
* Error that indicates unexpected Michelson Value being passed or used
|
|
352
352
|
*/
|
|
353
353
|
class UnexpectedMichelsonValueError extends core.ParameterValidationError {
|
|
354
354
|
constructor(value) {
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
}
|
|
361
361
|
/**
|
|
362
362
|
* @category Error
|
|
363
|
-
*
|
|
363
|
+
* Error that indicates a failure when trying to decode an operation
|
|
364
364
|
*/
|
|
365
365
|
class OperationDecodingError extends core.ParameterValidationError {
|
|
366
366
|
constructor(message) {
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
373
|
* @category Error
|
|
374
|
-
*
|
|
374
|
+
* Error that indicates a failure when trying to encode an operation
|
|
375
375
|
*/
|
|
376
376
|
class OperationEncodingError extends core.ParameterValidationError {
|
|
377
377
|
constructor(message) {
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
}
|
|
383
383
|
/**
|
|
384
384
|
* @category Error
|
|
385
|
-
*
|
|
385
|
+
* Error that indicates an unsupported operation being passed or used
|
|
386
386
|
*/
|
|
387
387
|
class UnsupportedOperationError extends core.ParameterValidationError {
|
|
388
388
|
constructor(op) {
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
396
|
* @cateogry Error
|
|
397
|
-
*
|
|
397
|
+
* Error that indicates an unsupported pvm being passed or used
|
|
398
398
|
*/
|
|
399
399
|
class UnsupportedPvmKindError extends core.ParameterValidationError {
|
|
400
400
|
constructor(pvm) {
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* @category Error
|
|
409
|
-
*
|
|
409
|
+
* Error that indicates an unsupported pvm to decode
|
|
410
410
|
*/
|
|
411
411
|
class DecodePvmKindError extends core.ParameterValidationError {
|
|
412
412
|
constructor(pvm) {
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
420
420
|
* @category Error
|
|
421
|
-
*
|
|
421
|
+
* Error that indicates an invalid Smart Rollup Address (sr1)
|
|
422
422
|
*/
|
|
423
423
|
class InvalidSmartRollupAddressError extends core.ParameterValidationError {
|
|
424
424
|
constructor(address, errorDetail) {
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
}
|
|
433
433
|
/**
|
|
434
434
|
* @category Error
|
|
435
|
-
*
|
|
435
|
+
* Error that indicates an invalid Smart Rollup commitment hash (src1)
|
|
436
436
|
*/
|
|
437
437
|
class InvalidSmartRollupCommitmentHashError extends core.ParameterValidationError {
|
|
438
438
|
constructor(hash, errorDetail) {
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
448
|
* @category Error
|
|
449
|
-
*
|
|
449
|
+
* Error that indicates an invalid dal commitment (sh)
|
|
450
450
|
*/
|
|
451
451
|
class InvalidDalCommitmentError extends core.ParameterValidationError {
|
|
452
452
|
constructor(commitment, errorDetail) {
|
|
@@ -562,7 +562,7 @@
|
|
|
562
562
|
return value.consume(valueLen);
|
|
563
563
|
};
|
|
564
564
|
/**
|
|
565
|
-
*
|
|
565
|
+
* parse bytes into multiple items of an array
|
|
566
566
|
* @param value Uint8ArrayConsumer class of forged segment to parse
|
|
567
567
|
* @param bytesLength default 4 bytes for length of variable bytes
|
|
568
568
|
* @returns array of Uint8Array values for each array item
|
|
@@ -1406,7 +1406,10 @@
|
|
|
1406
1406
|
if (typeof decodedObj !== 'object') {
|
|
1407
1407
|
throw new OperationDecodingError('Invalid operation, cannot be decoded.');
|
|
1408
1408
|
}
|
|
1409
|
-
return
|
|
1409
|
+
return {
|
|
1410
|
+
kind: operationName,
|
|
1411
|
+
...decodedObj,
|
|
1412
|
+
};
|
|
1410
1413
|
};
|
|
1411
1414
|
const schemaEncoder = (encoders) => (schema) => (value) => {
|
|
1412
1415
|
const keys = Object.keys(schema);
|
|
@@ -1440,16 +1443,24 @@
|
|
|
1440
1443
|
throw new OperationDecodingError('Unable to decode value');
|
|
1441
1444
|
}
|
|
1442
1445
|
}
|
|
1443
|
-
return
|
|
1446
|
+
return {
|
|
1447
|
+
...prev,
|
|
1448
|
+
[key]: decoded,
|
|
1449
|
+
};
|
|
1444
1450
|
}
|
|
1445
1451
|
else {
|
|
1446
1452
|
const decoder = decoders[valueToEncode];
|
|
1447
1453
|
const result = decoder(value);
|
|
1448
1454
|
if (typeof result !== 'undefined') {
|
|
1449
|
-
return
|
|
1455
|
+
return {
|
|
1456
|
+
...prev,
|
|
1457
|
+
[key]: result,
|
|
1458
|
+
};
|
|
1450
1459
|
}
|
|
1451
1460
|
else {
|
|
1452
|
-
return
|
|
1461
|
+
return {
|
|
1462
|
+
...prev,
|
|
1463
|
+
};
|
|
1453
1464
|
}
|
|
1454
1465
|
}
|
|
1455
1466
|
}, {});
|
|
@@ -1651,8 +1662,8 @@
|
|
|
1651
1662
|
|
|
1652
1663
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
1653
1664
|
const VERSION = {
|
|
1654
|
-
"commitHash": "
|
|
1655
|
-
"version": "24.
|
|
1665
|
+
"commitHash": "27675679db6515e8b092195ef5c58c2c0ea5f5c8",
|
|
1666
|
+
"version": "24.3.0-beta.0"
|
|
1656
1667
|
};
|
|
1657
1668
|
|
|
1658
1669
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-local-forging.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-local-forging.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/types/errors.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ParameterValidationError } from '@taquito/core';
|
|
|
2
2
|
import { OperationContents } from '@taquito/rpc';
|
|
3
3
|
/**
|
|
4
4
|
* @category Error
|
|
5
|
-
*
|
|
5
|
+
* Error that indicates an invalid operation content being passed or used
|
|
6
6
|
*/ export declare class InvalidOperationSchemaError extends ParameterValidationError {
|
|
7
7
|
readonly operation: OperationContents;
|
|
8
8
|
readonly errorDetail?: string | undefined;
|
|
@@ -10,7 +10,7 @@ import { OperationContents } from '@taquito/rpc';
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* @category Error
|
|
13
|
-
*
|
|
13
|
+
* Error that indicates an entrypoint name exceeding maximum length
|
|
14
14
|
*/
|
|
15
15
|
export declare class OversizedEntryPointError extends ParameterValidationError {
|
|
16
16
|
readonly entrypoint: string;
|
|
@@ -18,7 +18,7 @@ export declare class OversizedEntryPointError extends ParameterValidationError {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* @category Error
|
|
21
|
-
*
|
|
21
|
+
* Error that indicates an invalid ballot value being used
|
|
22
22
|
*/
|
|
23
23
|
export declare class InvalidBallotValueError extends ParameterValidationError {
|
|
24
24
|
readonly ballotValue: string;
|
|
@@ -26,7 +26,7 @@ export declare class InvalidBallotValueError extends ParameterValidationError {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* @category Error
|
|
29
|
-
*
|
|
29
|
+
* Error that indicates a failure when trying to decode ballot value
|
|
30
30
|
*/
|
|
31
31
|
export declare class DecodeBallotValueError extends ParameterValidationError {
|
|
32
32
|
readonly ballotValue: string;
|
|
@@ -34,7 +34,7 @@ export declare class DecodeBallotValueError extends ParameterValidationError {
|
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* @category Error
|
|
37
|
-
*
|
|
37
|
+
* Error that indicates unexpected Michelson Value being passed or used
|
|
38
38
|
*/
|
|
39
39
|
export declare class UnexpectedMichelsonValueError extends ParameterValidationError {
|
|
40
40
|
readonly value: string;
|
|
@@ -42,7 +42,7 @@ export declare class UnexpectedMichelsonValueError extends ParameterValidationEr
|
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* @category Error
|
|
45
|
-
*
|
|
45
|
+
* Error that indicates a failure when trying to decode an operation
|
|
46
46
|
*/
|
|
47
47
|
export declare class OperationDecodingError extends ParameterValidationError {
|
|
48
48
|
readonly message: string;
|
|
@@ -50,7 +50,7 @@ export declare class OperationDecodingError extends ParameterValidationError {
|
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* @category Error
|
|
53
|
-
*
|
|
53
|
+
* Error that indicates a failure when trying to encode an operation
|
|
54
54
|
*/
|
|
55
55
|
export declare class OperationEncodingError extends ParameterValidationError {
|
|
56
56
|
readonly message: string;
|
|
@@ -58,7 +58,7 @@ export declare class OperationEncodingError extends ParameterValidationError {
|
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* @category Error
|
|
61
|
-
*
|
|
61
|
+
* Error that indicates an unsupported operation being passed or used
|
|
62
62
|
*/
|
|
63
63
|
export declare class UnsupportedOperationError extends ParameterValidationError {
|
|
64
64
|
readonly op: string;
|
|
@@ -66,7 +66,7 @@ export declare class UnsupportedOperationError extends ParameterValidationError
|
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* @cateogry Error
|
|
69
|
-
*
|
|
69
|
+
* Error that indicates an unsupported pvm being passed or used
|
|
70
70
|
*/
|
|
71
71
|
export declare class UnsupportedPvmKindError extends ParameterValidationError {
|
|
72
72
|
readonly pvm: string;
|
|
@@ -74,7 +74,7 @@ export declare class UnsupportedPvmKindError extends ParameterValidationError {
|
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @category Error
|
|
77
|
-
*
|
|
77
|
+
* Error that indicates an unsupported pvm to decode
|
|
78
78
|
*/
|
|
79
79
|
export declare class DecodePvmKindError extends ParameterValidationError {
|
|
80
80
|
readonly pvm: string;
|
|
@@ -82,7 +82,7 @@ export declare class DecodePvmKindError extends ParameterValidationError {
|
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* @category Error
|
|
85
|
-
*
|
|
85
|
+
* Error that indicates an invalid Smart Rollup Address (sr1)
|
|
86
86
|
*/
|
|
87
87
|
export declare class InvalidSmartRollupAddressError extends ParameterValidationError {
|
|
88
88
|
readonly address: string;
|
|
@@ -91,7 +91,7 @@ export declare class InvalidSmartRollupAddressError extends ParameterValidationE
|
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* @category Error
|
|
94
|
-
*
|
|
94
|
+
* Error that indicates an invalid Smart Rollup commitment hash (src1)
|
|
95
95
|
*/
|
|
96
96
|
export declare class InvalidSmartRollupCommitmentHashError extends ParameterValidationError {
|
|
97
97
|
readonly hash: string;
|
|
@@ -100,7 +100,7 @@ export declare class InvalidSmartRollupCommitmentHashError extends ParameterVali
|
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* @category Error
|
|
103
|
-
*
|
|
103
|
+
* Error that indicates an invalid dal commitment (sh)
|
|
104
104
|
*/
|
|
105
105
|
export declare class InvalidDalCommitmentError extends ParameterValidationError {
|
|
106
106
|
readonly commitment: string;
|
|
@@ -27,9 +27,9 @@ export declare const scriptEncoder: Encoder<{
|
|
|
27
27
|
export declare const scriptDecoder: Decoder;
|
|
28
28
|
export declare const valueEncoder: Encoder<MichelsonValue>;
|
|
29
29
|
export declare const valueDecoder: Decoder;
|
|
30
|
-
export declare const extractRequiredLen: (value: Uint8ArrayConsumer, bytesLength?: number) => Uint8Array
|
|
30
|
+
export declare const extractRequiredLen: (value: Uint8ArrayConsumer, bytesLength?: number) => Uint8Array<ArrayBufferLike>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* parse bytes into multiple items of an array
|
|
33
33
|
* @param value Uint8ArrayConsumer class of forged segment to parse
|
|
34
34
|
* @param bytesLength default 4 bytes for length of variable bytes
|
|
35
35
|
* @returns array of Uint8Array values for each array item
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const concat: (...arr: Uint8Array[]) => Uint8Array
|
|
1
|
+
export declare const concat: (...arr: Uint8Array[]) => Uint8Array<ArrayBufferLike>;
|
|
2
2
|
export declare const toHexString: (bytes: Uint8Array) => string;
|
|
3
3
|
export declare const pad: (num: number, paddingLen?: number) => string;
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/local-forging",
|
|
3
|
-
"version": "24.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "24.3.0-beta.0",
|
|
4
|
+
"description": "Local Tezos operation forging for Taquito.",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"taquito",
|
|
6
7
|
"tezos",
|
|
8
|
+
"typescript",
|
|
7
9
|
"blockchain",
|
|
8
|
-
"
|
|
10
|
+
"forging",
|
|
11
|
+
"operations"
|
|
9
12
|
],
|
|
10
13
|
"main": "dist/taquito-local-forging.umd.js",
|
|
11
14
|
"module": "dist/taquito-local-forging.es6.js",
|
|
@@ -17,14 +20,24 @@
|
|
|
17
20
|
"publishConfig": {
|
|
18
21
|
"access": "public"
|
|
19
22
|
},
|
|
20
|
-
"author": "
|
|
23
|
+
"author": "ECAD Labs Inc <info@ecadlabs.com>",
|
|
24
|
+
"contributors": [
|
|
25
|
+
"Jev Björsell (jevonearth)",
|
|
26
|
+
"Roxane Letourneau <roxane@ecadlabs.com>",
|
|
27
|
+
"Davis Sawali <davis.sawali@ecadlabs.com>",
|
|
28
|
+
"Simon Boissonneault-Robert <simon@ecadlabs.com>"
|
|
29
|
+
],
|
|
30
|
+
"homepage": "https://taquito.io/",
|
|
21
31
|
"repository": {
|
|
22
32
|
"type": "git",
|
|
23
|
-
"url": ""
|
|
33
|
+
"url": "git+https://github.com/ecadlabs/taquito.git"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/ecadlabs/taquito/issues"
|
|
24
37
|
},
|
|
25
38
|
"license": "Apache-2.0",
|
|
26
39
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
40
|
+
"node": ">=22"
|
|
28
41
|
},
|
|
29
42
|
"scripts": {
|
|
30
43
|
"test": "jest --coverage",
|
|
@@ -67,14 +80,14 @@
|
|
|
67
80
|
]
|
|
68
81
|
},
|
|
69
82
|
"dependencies": {
|
|
70
|
-
"@taquito/core": "^24.
|
|
71
|
-
"@taquito/utils": "^24.
|
|
83
|
+
"@taquito/core": "^24.3.0-beta.0",
|
|
84
|
+
"@taquito/utils": "^24.3.0-beta.0",
|
|
72
85
|
"bignumber.js": "^9.1.2",
|
|
73
86
|
"fast-text-encoding": "^1.0.6",
|
|
74
87
|
"whatwg-url": "^15.1.0"
|
|
75
88
|
},
|
|
76
89
|
"devDependencies": {
|
|
77
|
-
"@taquito/rpc": "^24.
|
|
90
|
+
"@taquito/rpc": "^24.3.0-beta.0",
|
|
78
91
|
"@types/bluebird": "^3.5.42",
|
|
79
92
|
"@types/estree": "^1.0.5",
|
|
80
93
|
"@types/fast-text-encoding": "^1.0.3",
|
|
@@ -104,9 +117,9 @@
|
|
|
104
117
|
"ts-loader": "^9.5.1",
|
|
105
118
|
"ts-node": "^10.9.2",
|
|
106
119
|
"ts-toolbelt": "^9.6.0",
|
|
107
|
-
"typescript": "
|
|
120
|
+
"typescript": "^5.9.3",
|
|
108
121
|
"webpack": "^5.94.0",
|
|
109
122
|
"webpack-cli": "^5.1.4"
|
|
110
123
|
},
|
|
111
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "551e35aeff7d6dcde1c72284238c0ed3c3aae77e"
|
|
112
125
|
}
|
package/LICENSE
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
http://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|