@harmoniclabs/uplc
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -141,3 +141,3 @@ "use strict"; | ||
if (varDbn === undefined) { | ||
console.log(env, "\"".concat(varName, "\""), Object.keys(env)[0] === varName); | ||
// console.log( env, `"${varName}"`, Object.keys( env )[0] === varName ) | ||
throwIllFormed(); | ||
@@ -205,2 +205,5 @@ } | ||
var hex = str.slice(0, i); | ||
// we can handle it but plutus conformance doesn't allow it | ||
if (hex.length % 2 === 1) | ||
throw new Error("invalid bytestring value"); | ||
sliceTrimIncr(i); | ||
@@ -310,4 +313,7 @@ return { | ||
} | ||
if (str.startsWith("boolean")) { | ||
sliceTrimIncr(7); | ||
if (str.startsWith("bool")) { | ||
if (str.startsWith("boolean")) | ||
sliceTrimIncr(7); | ||
else | ||
sliceTrimIncr(4); | ||
return { | ||
@@ -381,2 +387,5 @@ type: UPLCTerms_1.constT.bool, | ||
function parseUPLCText(str) { | ||
str = str.trim(); | ||
if (str.startsWith("(program")) | ||
str = str.slice(str.indexOf("(", 1), str.length - 1); | ||
return _parseUPLCText(str, {}, 0).term; | ||
@@ -383,0 +392,0 @@ } |
@@ -9,1 +9,3 @@ export * from "./Application.js"; | ||
export * from "./UPLCVar/index.js"; | ||
export * from "./Constr.js"; | ||
export * from "./Case.js"; |
@@ -25,1 +25,3 @@ "use strict"; | ||
__exportStar(require("./UPLCVar/index.js"), exports); | ||
__exportStar(require("./Constr.js"), exports); | ||
__exportStar(require("./Case.js"), exports); |
{ | ||
"name": "@harmoniclabs/uplc", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "", | ||
@@ -41,6 +41,6 @@ "main": "./dist/index.js", | ||
"peerDependencies": { | ||
"@harmoniclabs/pair": "^1.0.0", | ||
"@harmoniclabs/bytestring": "^1.0.0", | ||
"@harmoniclabs/cbor": "^1.3.0", | ||
"@harmoniclabs/crypto": "^0.2.3", | ||
"@harmoniclabs/pair": "^1.0.0", | ||
"@harmoniclabs/plutus-data": "^1.2.0" | ||
@@ -52,2 +52,3 @@ }, | ||
"@types/jest": "^28.1.4", | ||
"@types/node": "^20.11.27", | ||
"jest": "^29.4.3", | ||
@@ -54,0 +55,0 @@ "tsc-alias": "^1.7.1", |
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
224013
887
4757
7