@clarigen/cli 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,8 +17,7 @@ const generateInterface = async ({ provider: _provider, contractFile, contractAd
17
17
  '--costs',
18
18
  '--assets',
19
19
  ]);
20
- if (receipt.stderr &&
21
- !receipt.stderr.includes('Used unimplemented cost function')) {
20
+ if (native_bin_1.hasStdErr(receipt.stderr)) {
22
21
  throw new Error(`Error on ${contractFile}:
23
22
  ${receipt.stderr}
24
23
  `);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@clarigen/cli",
3
3
  "description": "A CLI for generating a Typescript interface for a Clarity contract.",
4
4
  "author": "Hank Stoever",
5
- "version": "0.3.1",
5
+ "version": "0.3.2",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "files": [
@@ -45,8 +45,8 @@
45
45
  "ts-node": "^9.1.1"
46
46
  },
47
47
  "dependencies": {
48
- "@clarigen/core": "0.3.1",
49
- "@clarigen/native-bin": "0.3.1",
48
+ "@clarigen/core": "0.3.2",
49
+ "@clarigen/native-bin": "0.3.2",
50
50
  "@ltd/j-toml": "1.12.2",
51
51
  "@oclif/command": "^1.8.0",
52
52
  "@oclif/config": "^1.17.0",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "7fa176bead2d770807bbb77d86aae5f5d7543e2b"
62
+ "gitHead": "5625d6c342e16966b58c08103f459aaf322158ab"
63
63
  }
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  NativeClarityBinProvider,
3
3
  createClarityBin,
4
+ hasStdErr,
4
5
  } from '@clarigen/native-bin';
5
6
  import {
6
7
  ClarityAbi,
@@ -31,10 +32,7 @@ export const generateInterface = async ({
31
32
  '--costs',
32
33
  '--assets',
33
34
  ]);
34
- if (
35
- receipt.stderr &&
36
- !receipt.stderr.includes('Used unimplemented cost function')
37
- ) {
35
+ if (hasStdErr(receipt.stderr)) {
38
36
  throw new Error(`Error on ${contractFile}:
39
37
  ${receipt.stderr}
40
38
  `);