@clarigen/cli 1.0.0-next.19 → 1.0.0-next.20

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.
@@ -447,7 +447,7 @@ function generateContractMeta(contract) {
447
447
  const variableLines = contract.variables.map((v) => {
448
448
  let varLine = `${(0, import_core3.toCamelCase)(v.name)}: `;
449
449
  const type = jsTypeFromAbiType(v.type);
450
- const varJSON = (0, import_util.inspect)(v, false, null, false);
450
+ const varJSON = serialize(v);
451
451
  varLine += `${varJSON} as TypedAbiVariable<${type}>`;
452
452
  return varLine;
453
453
  });
package/dist/index.js CHANGED
@@ -503,7 +503,7 @@ function generateContractMeta(contract) {
503
503
  const variableLines = contract.variables.map((v) => {
504
504
  let varLine = `${(0, import_core3.toCamelCase)(v.name)}: `;
505
505
  const type = jsTypeFromAbiType(v.type);
506
- const varJSON = (0, import_util.inspect)(v, false, null, false);
506
+ const varJSON = serialize(v);
507
507
  varLine += `${varJSON} as TypedAbiVariable<${type}>`;
508
508
  return varLine;
509
509
  });
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": "1.0.0-next.19",
5
+ "version": "1.0.0-next.20",
6
6
  "license": "MIT",
7
7
  "types": "./dist/index.d.ts",
8
8
  "main": "./dist/index.js",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "d6b6fc199e367698d566f38ee3343b04a418c829"
71
+ "gitHead": "dad58c8368bb8a539346ca43f5a0d6b6371d2378"
72
72
  }
@@ -26,7 +26,7 @@ export function generateContractMeta(contract: ContractMeta) {
26
26
  const variableLines = contract.variables.map((v) => {
27
27
  let varLine = `${toCamelCase(v.name)}: `;
28
28
  const type = jsTypeFromAbiType(v.type);
29
- const varJSON = inspect(v, false, null, false);
29
+ const varJSON = serialize(v);
30
30
  varLine += `${varJSON} as TypedAbiVariable<${type}>`;
31
31
  return varLine;
32
32
  });