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

@helios-lang/ir

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helios-lang/ir - npm Package Compare versions

Comparing version 0.1.39 to 0.1.40

4

package.json
{
"name": "@helios-lang/ir",
"version": "0.1.39",
"version": "0.1.40",
"description": "Helios-lang intermediate representation",

@@ -38,3 +38,3 @@ "main": "src/index.js",

"@helios-lang/type-utils": "^0.1.20",
"@helios-lang/uplc": "^0.3.8"
"@helios-lang/uplc": "^0.3.10"
},

@@ -41,0 +41,0 @@ "scripts": {

@@ -12,3 +12,3 @@ import { UplcError } from "@helios-lang/uplc"

/**
* Intermediate Representation error call (with optional literal error message)
* Intermediate Representation error call
* @internal

@@ -25,14 +25,6 @@ * @implements {Expr}

/**
* @readonly
* @type {string}
*/
message
/**
* @param {Site} site
* @param {string} message
*/
constructor(site, message = "") {
constructor(site) {
this.site = site
this.message = message
}

@@ -65,3 +57,3 @@

copy(notifyCopy) {
const newExpr = new ErrorExpr(this.site, this.message)
const newExpr = new ErrorExpr(this.site)

@@ -77,4 +69,4 @@ notifyCopy(this, newExpr)

toUplc() {
return new UplcError(this.message, this.site)
return new UplcError(this.site)
}
}

@@ -72,4 +72,4 @@ import { UplcConst } from "@helios-lang/uplc"

toUplc() {
return new UplcConst(this.value)
return new UplcConst(this.value, this.site)
}
}
import { None } from "@helios-lang/type-utils"
import { UplcUnit, builtinsV2 } from "@helios-lang/uplc"
import {
ByteArrayData,
ConstrData,
IntData,
ListData,
MapData,
UplcBool,
UplcByteArray,
UplcDataValue,
UplcInt,
UplcList,
UplcString,
UplcUnit,
builtinsV2
} from "@helios-lang/uplc"
import {
Analysis,

@@ -19,0 +5,0 @@ Analyzer,

@@ -89,3 +89,3 @@ import {

let [raw, sourceMap] =
typeof ir == "string" ? [ir, new Map()] : ir.toStringWithSourceMap()
typeof ir == "string" ? [ir, undefined] : ir.toStringWithSourceMap()

@@ -92,0 +92,0 @@ const src = new Source(raw)

@@ -8,3 +8,3 @@ /**

/**
* Intermediate Representation error call (with optional literal error message)
* Intermediate Representation error call
* @internal

@@ -16,5 +16,4 @@ * @implements {Expr}

* @param {Site} site
* @param {string} message
*/
constructor(site: Site, message?: string);
constructor(site: Site);
/**

@@ -26,7 +25,2 @@ * @readonly

/**
* @readonly
* @type {string}
*/
readonly message: string;
/**
* @type {number}

@@ -33,0 +27,0 @@ */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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