@hyperionbt/helios-cli
Advanced tools
Comparing version 0.14.4 to 0.15.0
#!/usr/bin/env node | ||
import process from "node:process"; | ||
import { UserError as HeliosError, VERSION as HELIOS_VERSION } from "helios"; | ||
import { CliError, UsageError } from "./utils.js"; | ||
import { calcScriptAddress } from "./cmd/address/index.js"; | ||
import { main as bundle } from "./cmd/bundle/index.js"; | ||
import { compile } from "./cmd/compile/index.js"; | ||
import { evalParam } from "./cmd/eval/index.js"; | ||
const VERSION = "0.14.4"; | ||
import { UserError, RuntimeError, VERSION as HELIOS_VERSION } from "helios"; | ||
import { CliError, UsageError } from "./common/utils.js"; | ||
import addressCmd from "./address.js"; | ||
import bundleCmd from "./bundle.js"; | ||
import compileCmd from "./compile.js"; | ||
import dagCmd from "./dag.js"; | ||
import evalCmd from "./eval.js"; | ||
const VERSION = "0.15.0"; | ||
const USAGE = `Usage: | ||
@@ -47,12 +48,15 @@ helios [-h|--help] <command> <command-options> | ||
case "address": | ||
await calcScriptAddress(args); | ||
await addressCmd(args); | ||
break; | ||
case "bundle": | ||
await bundle(args); | ||
await bundleCmd(args); | ||
break; | ||
case "compile": | ||
await compile(args); | ||
await compileCmd(args); | ||
break; | ||
case "dag": | ||
await dagCmd(args); | ||
break; | ||
case "eval": | ||
await evalParam(args); | ||
await evalCmd(args); | ||
break; | ||
@@ -80,6 +84,3 @@ case "version": | ||
} | ||
else if (e instanceof HeliosError) { | ||
if (e.src.fileIndex !== null) { | ||
console.error(`Error in file-no ${e.src.fileIndex}`); | ||
} | ||
else if (e instanceof UserError || e instanceof RuntimeError) { | ||
console.error(e.message); | ||
@@ -86,0 +87,0 @@ process.exit(4); |
{ | ||
"name": "@hyperionbt/helios-cli", | ||
"version": "0.14.4", | ||
"version": "0.15.0", | ||
"description": "CLI tool for compiling Cardano smart contracts written in Helios, and building Cardano transactions.", | ||
@@ -12,3 +12,3 @@ "main": "./dist/index.js", | ||
"build": "tsc", | ||
"sync-helios": "cp -t ./node_modules/helios ../helios/*" | ||
"sync-helios": "cp -t ./node_modules/helios ../helios/*" | ||
}, | ||
@@ -23,3 +23,3 @@ "repository": { | ||
"dependencies": { | ||
"helios": "npm:@hyperionbt/helios@^0.14.4" | ||
"helios": "npm:@hyperionbt/helios@^0.15.0" | ||
}, | ||
@@ -34,4 +34,4 @@ "keywords": [], | ||
"files": [ | ||
"./dist" | ||
"./dist" | ||
] | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
80984
38
1214
+ Added@hyperionbt/helios@0.15.14(transitive)
- Removed@hyperionbt/helios@0.14.4(transitive)