Socket
Socket
Sign inDemoInstall

@harmoniclabs/uplc

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmoniclabs/uplc - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

15

dist/UPLCTerm/parseUPLCText.js

@@ -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 @@ }

2

dist/UPLCTerms/index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc