@helios-lang/contract-utils 0.2.78 → 0.2.79
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,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helios-lang/contract-utils",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.79",
|
|
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",
|
|
7
7
|
"exports": {
|
|
8
|
-
".":
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./src/index.js",
|
|
10
|
+
"require": "./src/index.js",
|
|
11
|
+
"types": "./types/index.d.ts"
|
|
12
|
+
},
|
|
9
13
|
"./set-fs-build-cache": "./src/context/set-fs-build-cache.js"
|
|
10
14
|
},
|
|
11
15
|
"sideEffects": [
|
|
@@ -120,6 +120,7 @@ export class DagCompiler {
|
|
|
120
120
|
sourceMap: optimSourceMap
|
|
121
121
|
} = this.lib.compile(sourceCode, moduleDeps, {
|
|
122
122
|
optimize: true,
|
|
123
|
+
debug: this.config.debug ?? false,
|
|
123
124
|
hashDependencies: hashDepHashes,
|
|
124
125
|
allValidatorHashTypes: hashTypes,
|
|
125
126
|
allValidatorIndices: validatorIndices ?? undefined,
|
package/src/hl2ts.js
CHANGED
|
@@ -162,7 +162,7 @@ function readFiles(filePaths) {
|
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* @param {string} fileName
|
|
165
|
-
* @returns {
|
|
165
|
+
* @returns {string | undefined}
|
|
166
166
|
*/
|
|
167
167
|
function findPackageJson(fileName = "package.json") {
|
|
168
168
|
let dir = process.cwd()
|
|
@@ -179,7 +179,7 @@ function findPackageJson(fileName = "package.json") {
|
|
|
179
179
|
if (found) {
|
|
180
180
|
return path
|
|
181
181
|
} else {
|
|
182
|
-
return
|
|
182
|
+
return undefined
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DagCompiler.d.ts","sourceRoot":"","sources":["../../src/context/DagCompiler.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DagCompiler.d.ts","sourceRoot":"","sources":["../../src/context/DagCompiler.js"],"names":[],"mappings":"AAuZA;;;GAGG;AACH,iDAHW,eAAe,GACb,MAAM,EAAE,CAsBpB;AApaD;;;;;;;GAOG;AAEH;;;;GAIG;AACH;;;;;;;GAOG;AAEH;;GAEG;AACH;IA6BI;;;OAGG;IACH,iBAHW,WAAW,UACX,iBAAiB,EAO3B;IArCD;;;;OAIG;IACH,qBAAG;IAEH;;;;OAIG;IACH,wBAAM;IAEN;;;;OAIG;IACH,kCAAgB;IAEhB;;;;OAIG;IACH,iCAAe;IAaf;;;;;;OAMG;IACH,kBANW,eAAe,EAAE,cACjB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,aACxB,OAAO,mBACP,MAAM,CAAC;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAC,GAC9B,iBAAiB,CA2L7B;IAED;;;;;OAKG;IACH,4BAsCC;IAED;;;;;OAKG;IACH,yBA8BC;IAED;;;;;OAKG;IACH,qBAoBC;IAED;;;;;OAKG;IACH,4BAeC;CACJ;uBAzYY,OAAO,mBAAmB,EAAE,QAAQ;0BACpC,OAAO,mBAAmB,EAAE,WAAW;yBACvC,OAAO,kBAAkB,EAAE,UAAU;8BACrC,OAAO,+BAA+B,EAAE,eAAe;0BACvD,OAAO,sBAAsB,EAAE,WAAW;0CAC1C,OAAO,sBAAsB,EAAE,2BAA2B;gCAI1D,UAAU,GAAG;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;;;;gCAIS;IACR,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,EAAE;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,2BAA2B,CAAA;KAAC,CAAA;IACzD,SAAS,EAAE;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;KAAC,CAAA;CACzC"}
|