Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@harmoniclabs/plu-ts-onchain

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmoniclabs/plu-ts-onchain - npm Package Compare versions

Comparing version 0.3.0-memory1 to 0.3.0-memory2

9

dist/IR/IRNodes/IRApp.js

@@ -18,2 +18,3 @@ "use strict";

var isIRParentTerm_1 = require("../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRHash_1 = require("../IRHash.js");

@@ -98,5 +99,11 @@ var obj_utils_1 = require("@harmoniclabs/obj-utils");

// keep reference
// const oldParent = this._parent;
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -103,0 +110,0 @@ enumerable: false,

@@ -46,2 +46,3 @@ "use strict";

var IRHash_1 = require("../IRHash.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRCase = /** @class */ (function () {

@@ -126,3 +127,12 @@ function IRCase(constrTerm, continuations, meta, _unsafeHash) {

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -129,0 +139,0 @@ enumerable: false,

@@ -48,2 +48,3 @@ "use strict";

var isIRParentTerm_1 = require("../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRHash_1 = require("../IRHash.js");

@@ -117,4 +118,12 @@ var IRConst = /** @class */ (function () {

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -121,0 +130,0 @@ enumerable: false,

@@ -48,2 +48,3 @@ "use strict";

var IRHash_1 = require("../IRHash.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRConstr = /** @class */ (function () {

@@ -120,3 +121,12 @@ function IRConstr(index, fields, meta, _unsafeHash) {

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -123,0 +133,0 @@ enumerable: false,

@@ -8,2 +8,3 @@ "use strict";

var isIRParentTerm_1 = require("../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRHash_1 = require("../IRHash.js");

@@ -61,4 +62,12 @@ var IRDelayed = /** @class */ (function () {

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -65,0 +74,0 @@ enumerable: false,

@@ -16,2 +16,3 @@ "use strict";

var isIRParentTerm_1 = require("../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRHash_1 = require("../IRHash.js");

@@ -49,4 +50,12 @@ var irErrorBitTag = new Uint8Array([7]);

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -53,0 +62,0 @@ enumerable: false,

@@ -8,2 +8,3 @@ "use strict";

var isIRParentTerm_1 = require("../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRHash_1 = require("../IRHash.js");

@@ -62,4 +63,12 @@ var IRForced = /** @class */ (function () {

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -66,0 +75,0 @@ enumerable: false,

@@ -9,2 +9,3 @@ "use strict";

var isIRParentTerm_1 = require("../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRHash_1 = require("../IRHash.js");

@@ -91,4 +92,12 @@ var IRFunc = /** @class */ (function () {

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -95,0 +104,0 @@ enumerable: false,

@@ -51,2 +51,3 @@ "use strict";

var isIRParentTerm_1 = require("../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRConstr_1 = require("./IRConstr.js");

@@ -139,4 +140,12 @@ var IRCase_1 = require("./IRCase.js");

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -143,0 +152,0 @@ enumerable: false,

@@ -207,3 +207,12 @@ "use strict";

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -210,0 +219,0 @@ enumerable: false,

17

dist/IR/IRNodes/IRNative/index.js

@@ -12,2 +12,3 @@ "use strict";

var isIRParentTerm_1 = require("../../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../../toUPLC/_internal/_modifyChildFromTo.js");
var IRHash_1 = require("../../IRHash.js");

@@ -68,15 +69,11 @@ var obj_utils_1 = require("@harmoniclabs/obj-utils");

// keep reference
// const oldParent = this._parent;
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
// if( oldParent !== undefined && isIRParentTerm( oldParent ) )
// {
// // change reference to a clone for safety
// _modifyChildFromTo(
// oldParent,
// this,
// this.clone()
// );
// }
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -83,0 +80,0 @@ enumerable: false,

@@ -8,2 +8,3 @@ "use strict";

var isIRParentTerm_1 = require("../utils/isIRParentTerm.js");
var _modifyChildFromTo_1 = require("../toUPLC/_internal/_modifyChildFromTo.js");
var IRHash_1 = require("../IRHash.js");

@@ -77,4 +78,12 @@ var IRVar = /** @class */ (function () {

return;
// keep reference
var oldParent = this._parent;
// change parent
this._parent = newParent;
// if has old parent
if (oldParent !== undefined && (0, isIRParentTerm_1.isIRParentTerm)(oldParent)) {
// change reference to a clone for safety
this.hash;
(0, _modifyChildFromTo_1._modifyChildFromTo)(oldParent, this, this.clone());
}
},

@@ -81,0 +90,0 @@ enumerable: false,

{
"name": "@harmoniclabs/plu-ts-onchain",
"version": "0.3.0-memory1",
"version": "0.3.0-memory2",
"description": "An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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