@taquito/michel-codec
Advanced tools
Comparing version 17.1.0-beta-RC.0 to 17.1.0-beta-RC.1
@@ -7,3 +7,3 @@ "use strict"; | ||
const michelson_validator_1 = require("./michelson-validator"); | ||
const error_1 = require("./error"); | ||
const errors_1 = require("./errors"); | ||
class Contract { | ||
@@ -19,3 +19,3 @@ constructor(contract, opt) { | ||
if (expr === null) { | ||
throw new error_1.InvalidContractError('empty contract'); | ||
throw new errors_1.InvalidContractError('empty contract'); | ||
} | ||
@@ -31,3 +31,3 @@ if (michelson_validator_1.assertMichelsonContract(expr)) { | ||
if (expr === null) { | ||
throw new error_1.InvalidTypeExpressionError('empty type expression'); | ||
throw new errors_1.InvalidTypeExpressionError('empty type expression'); | ||
} | ||
@@ -45,3 +45,3 @@ // remove assertTypeAnnotationsValid from if block because: () => void || throw error | ||
if (expr === null) { | ||
throw new error_1.InvalidDataExpressionError('empty data expression'); | ||
throw new errors_1.InvalidDataExpressionError('empty data expression'); | ||
} | ||
@@ -71,3 +71,3 @@ if (michelson_validator_1.assertMichelsonData(expr)) { | ||
if (t === null) { | ||
throw new error_1.InvalidEntrypointError(ep === null || ep === void 0 ? void 0 : ep.toString()); | ||
throw new errors_1.InvalidEntrypointError(ep === null || ep === void 0 ? void 0 : ep.toString()); | ||
} | ||
@@ -74,0 +74,0 @@ this.assertDataValid(d, t); |
@@ -5,3 +5,3 @@ "use strict"; | ||
const base58_1 = require("./base58"); | ||
const error_1 = require("./error"); | ||
const errors_1 = require("./errors"); | ||
/** | ||
@@ -59,3 +59,3 @@ * @category Error | ||
if (c < 0x30 || c > 0x39) { | ||
throw new error_1.LongIntegerError(`unexpected character in integer constant: ${arg[i]}`); | ||
throw new errors_1.LongIntegerError(`unexpected character in integer constant: ${arg[i]}`); | ||
} | ||
@@ -247,3 +247,3 @@ this.append(c - 0x30); | ||
if (data.length !== plen) { | ||
throw new error_1.TezosIdEncodeError(`Incorrect data length for ${id}: ${data.length}`); | ||
throw new errors_1.TezosIdEncodeError(`Incorrect data length for ${id}: ${data.length}`); | ||
} | ||
@@ -311,3 +311,3 @@ return base58_1.encodeBase58Check([...p, ...data]); | ||
if (Number.isNaN(x)) { | ||
throw new error_1.HexParseError(ss); | ||
throw new errors_1.HexParseError(ss); | ||
} | ||
@@ -314,0 +314,0 @@ res.push(x); |
@@ -6,5 +6,5 @@ "use strict"; | ||
exports.VERSION = { | ||
"commitHash": "5e47743ada31a9c8118f836c31b50a94d97255a6", | ||
"version": "17.1.0-beta-RC.0" | ||
"commitHash": "35185f70bf071114f22f169d2e1f7f8747ced2d0", | ||
"version": "17.1.0-beta-RC.1" | ||
}; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@taquito/michel-codec", | ||
"version": "17.1.0-beta-RC.0", | ||
"version": "17.1.0-beta-RC.1", | ||
"description": "Michelson parser/validator/formatter", | ||
@@ -70,3 +70,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@taquito/core": "^17.1.0-beta-RC.0" | ||
"@taquito/core": "^17.1.0-beta-RC.1" | ||
}, | ||
@@ -96,3 +96,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "37b7cea2af882794ddd67b1228df808888af9fc4" | ||
"gitHead": "c0494008115163a124fa466444585d7f3f1de48c" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2036742
24309