@helios-lang/contract-utils 0.1.24 → 0.1.25

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helios-lang/contract-utils",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Convenience and type-safety utilities for using Helios validators from within Typescript",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -169,8 +169,8 @@ export class LoadedScriptsWriter {
169
169
 
170
170
  this.combined.write(
171
171
  `export const ${m.name} = {
172
- $name: "${m.name}",
173
- $purpose: "${m.purpose}",
172
+ $name: "${m.name}" as "${m.name}",
173
+ $purpose: "${m.purpose}" as "${m.purpose}",
174
174
  $sourceCode: ${JSON.stringify(m.sourceCode)} as string,
175
175
  $dependencies: [${m.moduleDepedencies.join(", ")}],
176
176
  }
@@ -218,8 +218,8 @@ export class LoadedScriptsWriter {
218
218
 
219
219
  this.combined.write(
220
220
  `export const ${v.name} = {
221
- $name: "${v.name}",
222
- $purpose: "${v.purpose}",
221
+ $name: "${v.name}" as "${v.name}",
222
+ $purpose: "${v.purpose}" as "${v.purpose}",
223
223
  $sourceCode: ${JSON.stringify(v.sourceCode)} as string,
224
224
  $dependencies: [${v.moduleDepedencies.join(", ")}],
225
225
  $hashDependencies: [${v.hashDependencies.filter((d) => d != v.name).join(", ")}],