@irrelon/battlescript 4.0.0 → 4.0.1

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.
@@ -14,11 +14,21 @@ import {version} from "../package.json";
14
14
  import {readFileSync} from "fs";
15
15
  import {writeFileSync} from "node:fs";
16
16
 
17
- const sourceResolverAsync: SourceResolverAsync = (filePath: string) => {
17
+ export {
18
+ fromFullAstToSourceCode,
19
+ fromMiniAstToBinary,
20
+ fromMiniAstToSourceCode,
21
+ fromSourceCodeToBinary,
22
+ fromSourceCodeToFullAst,
23
+ fromSourceCodeToMiniAst,
24
+ miniAstFromBinaryBuffer
25
+ }
26
+
27
+ export const sourceResolverAsync: SourceResolverAsync = (filePath: string) => {
18
28
  return readFile(filePath, "utf-8")
19
29
  };
20
30
 
21
- const sourceResolverSync: SourceResolverSync = (filePath: string): string => {
31
+ export const sourceResolverSync: SourceResolverSync = (filePath: string): string => {
22
32
  return readFileSync(filePath, "utf-8")
23
33
  };
24
34
 
package/bin/index.js CHANGED
@@ -31998,7 +31998,7 @@ function miniAstFromBinaryBuffer(data) {
31998
31998
  };
31999
31999
  }
32000
32000
 
32001
- var version = "4.0.0";
32001
+ var version = "4.0.1";
32002
32002
  var binaryVersion = 9;
32003
32003
 
32004
32004
  function miniAstToBinary$1(json, options = {}) {
@@ -31999,7 +31999,7 @@ function miniAstFromBinaryBuffer(data) {
31999
31999
  };
32000
32000
  }
32001
32001
 
32002
- var version = "4.0.0";
32002
+ var version = "4.0.1";
32003
32003
  var binaryVersion = 9;
32004
32004
 
32005
32005
  function miniAstToBinary$1(json, options = {}) {
@@ -43227,8 +43227,17 @@ function changeExtension(filePath, newExt) {
43227
43227
  exports.changeExtension = changeExtension;
43228
43228
  exports.fromAst = fromAst;
43229
43229
  exports.fromBinary = fromBinary;
43230
+ exports.fromFullAstToSourceCode = fromFullAstToSourceCode;
43230
43231
  exports.fromMiniAst = fromMiniAst;
43232
+ exports.fromMiniAstToBinary = fromMiniAstToBinary;
43233
+ exports.fromMiniAstToSourceCode = fromMiniAstToSourceCode;
43234
+ exports.fromSourceCodeToBinary = fromSourceCodeToBinary;
43235
+ exports.fromSourceCodeToFullAst = fromSourceCodeToFullAst;
43236
+ exports.fromSourceCodeToMiniAst = fromSourceCodeToMiniAst;
43237
+ exports.miniAstFromBinaryBuffer = miniAstFromBinaryBuffer;
43231
43238
  exports.miniAstToBinary = miniAstToBinary;
43239
+ exports.sourceResolverAsync = sourceResolverAsync;
43240
+ exports.sourceResolverSync = sourceResolverSync;
43232
43241
  exports.toAst = toAst;
43233
43242
  exports.toAstSync = toAstSync;
43234
43243
  exports.toBinary = toBinary;