@markw65/monkeyc-optimizer 1.1.90 → 1.1.91

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.
@@ -18,30 +18,30 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var optimizer_exports = {};
20
20
  __export(optimizer_exports, {
21
- StateNodeAttributes: () => import_chunk_BOVSYC7N.StateNodeAttributes,
22
- buildConfigDescription: () => import_chunk_BOVSYC7N.buildConfigDescription,
23
- buildOptimizedProject: () => import_chunk_BOVSYC7N.buildOptimizedProject,
21
+ StateNodeAttributes: () => import_chunk_OCIRSLOJ.StateNodeAttributes,
22
+ buildConfigDescription: () => import_chunk_OCIRSLOJ.buildConfigDescription,
23
+ buildOptimizedProject: () => import_chunk_OCIRSLOJ.buildOptimizedProject,
24
24
  copyRecursiveAsNeeded: () => import_chunk_KHQPCXSJ.copyRecursiveAsNeeded,
25
- defaultConfig: () => import_chunk_BOVSYC7N.defaultConfig,
26
- display: () => import_chunk_BOVSYC7N.display,
27
- generateOneConfig: () => import_chunk_BOVSYC7N.generateOneConfig,
28
- generateOptimizedProject: () => import_chunk_BOVSYC7N.generateOptimizedProject,
29
- getConfig: () => import_chunk_BOVSYC7N.getConfig,
30
- getFnMapAnalysis: () => import_chunk_BOVSYC7N.getFnMapAnalysis,
31
- getProjectAnalysis: () => import_chunk_BOVSYC7N.getProjectAnalysis,
32
- get_jungle: () => import_chunk_BOVSYC7N.get_jungle,
33
- isErrorWithLocation: () => import_chunk_BOVSYC7N.isErrorWithLocation,
34
- launchSimulator: () => import_chunk_BOVSYC7N.launchSimulator,
35
- manifestProducts: () => import_chunk_BOVSYC7N.manifestProducts,
36
- mctree: () => import_chunk_BOVSYC7N.mctree,
37
- simulateProgram: () => import_chunk_BOVSYC7N.simulateProgram
25
+ defaultConfig: () => import_chunk_OCIRSLOJ.defaultConfig,
26
+ display: () => import_chunk_OCIRSLOJ.display,
27
+ generateOneConfig: () => import_chunk_OCIRSLOJ.generateOneConfig,
28
+ generateOptimizedProject: () => import_chunk_OCIRSLOJ.generateOptimizedProject,
29
+ getConfig: () => import_chunk_OCIRSLOJ.getConfig,
30
+ getFnMapAnalysis: () => import_chunk_OCIRSLOJ.getFnMapAnalysis,
31
+ getProjectAnalysis: () => import_chunk_OCIRSLOJ.getProjectAnalysis,
32
+ get_jungle: () => import_chunk_OCIRSLOJ.get_jungle,
33
+ isErrorWithLocation: () => import_chunk_OCIRSLOJ.isErrorWithLocation,
34
+ launchSimulator: () => import_chunk_OCIRSLOJ.launchSimulator,
35
+ manifestProducts: () => import_chunk_OCIRSLOJ.manifestProducts,
36
+ mctree: () => import_chunk_OCIRSLOJ.mctree,
37
+ simulateProgram: () => import_chunk_OCIRSLOJ.simulateProgram
38
38
  });
39
39
  module.exports = __toCommonJS(optimizer_exports);
40
- var import_chunk_BOVSYC7N = require("./chunk-BOVSYC7N.cjs");
40
+ var import_chunk_OCIRSLOJ = require("./chunk-OCIRSLOJ.cjs");
41
41
  var import_chunk_KHQPCXSJ = require("./chunk-KHQPCXSJ.cjs");
42
42
  var import_chunk_UBAYZSM3 = require("./chunk-UBAYZSM3.cjs");
43
43
  var import_chunk_VS2QQHAK = require("./chunk-VS2QQHAK.cjs");
44
- (0, import_chunk_BOVSYC7N.init_optimizer)();
44
+ (0, import_chunk_OCIRSLOJ.init_optimizer)();
45
45
  // Annotate the CommonJS export names for ESM import in node:
46
46
  0 && (module.exports = {
47
47
  StateNodeAttributes,
@@ -18,25 +18,25 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var sdk_util_exports = {};
20
20
  __export(sdk_util_exports, {
21
- SectionKinds: () => import_chunk_BOVSYC7N.SectionKinds,
22
- appSupport: () => import_chunk_BOVSYC7N.appSupport,
23
- connectiq: () => import_chunk_BOVSYC7N.connectiq,
24
- getDeviceInfo: () => import_chunk_BOVSYC7N.getDeviceInfo,
25
- getFunctionDocumentation: () => import_chunk_BOVSYC7N.getFunctionDocumentation,
26
- getLanguages: () => import_chunk_BOVSYC7N.getLanguages,
27
- getSdkPath: () => import_chunk_BOVSYC7N.getSdkPath,
28
- isWin: () => import_chunk_BOVSYC7N.isWin,
29
- optimizeProgram: () => import_chunk_BOVSYC7N.optimizeProgram,
30
- readPrg: () => import_chunk_BOVSYC7N.readPrg,
31
- readPrgWithOffsets: () => import_chunk_BOVSYC7N.readPrgWithOffsets,
32
- xmlUtil: () => import_chunk_BOVSYC7N.xml_util_exports
21
+ SectionKinds: () => import_chunk_OCIRSLOJ.SectionKinds,
22
+ appSupport: () => import_chunk_OCIRSLOJ.appSupport,
23
+ connectiq: () => import_chunk_OCIRSLOJ.connectiq,
24
+ getDeviceInfo: () => import_chunk_OCIRSLOJ.getDeviceInfo,
25
+ getFunctionDocumentation: () => import_chunk_OCIRSLOJ.getFunctionDocumentation,
26
+ getLanguages: () => import_chunk_OCIRSLOJ.getLanguages,
27
+ getSdkPath: () => import_chunk_OCIRSLOJ.getSdkPath,
28
+ isWin: () => import_chunk_OCIRSLOJ.isWin,
29
+ optimizeProgram: () => import_chunk_OCIRSLOJ.optimizeProgram,
30
+ readPrg: () => import_chunk_OCIRSLOJ.readPrg,
31
+ readPrgWithOffsets: () => import_chunk_OCIRSLOJ.readPrgWithOffsets,
32
+ xmlUtil: () => import_chunk_OCIRSLOJ.xml_util_exports
33
33
  });
34
34
  module.exports = __toCommonJS(sdk_util_exports);
35
- var import_chunk_BOVSYC7N = require("./chunk-BOVSYC7N.cjs");
35
+ var import_chunk_OCIRSLOJ = require("./chunk-OCIRSLOJ.cjs");
36
36
  var import_chunk_KHQPCXSJ = require("./chunk-KHQPCXSJ.cjs");
37
37
  var import_chunk_UBAYZSM3 = require("./chunk-UBAYZSM3.cjs");
38
38
  var import_chunk_VS2QQHAK = require("./chunk-VS2QQHAK.cjs");
39
- (0, import_chunk_BOVSYC7N.init_sdk_util)();
39
+ (0, import_chunk_OCIRSLOJ.init_sdk_util)();
40
40
  // Annotate the CommonJS export names for ESM import in node:
41
41
  0 && (module.exports = {
42
42
  SectionKinds,
@@ -215,4 +215,6 @@ export declare function getStateNodeDeclsWithExactFromType(state: ProgramStateAn
215
215
  exact: boolean;
216
216
  }[];
217
217
  export declare function typeFromEnumValue(arg: EnumType["value"] | null): UnionType | NumberType | LongType | FloatType | DoubleType | CharType | StringType | ArrayType | DictionaryType | MethodType | ModuleType | FunctionType | ClassType | ObjectType | EnumType | SymbolType | TypedefType;
218
+ export type ActiveTypeMap = Map<ExactOrUnion, Set<ExactOrUnion>>;
219
+ export declare function guardRecursiveTypedef<T>(activeTypeMap: ActiveTypeMap, a: ExactOrUnion, b: ExactOrUnion, callback: (a: ExactOrUnion, b: ExactOrUnion) => T): true | T;
218
220
  export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="node" />
2
+ export declare function unzipYauzl(filepath: string, process: (fileName: string, data: Buffer) => void): Promise<void>;
3
+ export declare function unzip7(filepath: string, process: (fileName: string, data: Buffer) => void): Promise<void>;
@@ -21,17 +21,17 @@ __export(worker_thread_exports, {
21
21
  default: () => worker_thread_default
22
22
  });
23
23
  module.exports = __toCommonJS(worker_thread_exports);
24
- var import_chunk_BOVSYC7N = require("./chunk-BOVSYC7N.cjs");
24
+ var import_chunk_OCIRSLOJ = require("./chunk-OCIRSLOJ.cjs");
25
25
  var import_chunk_KHQPCXSJ = require("./chunk-KHQPCXSJ.cjs");
26
26
  var import_chunk_UBAYZSM3 = require("./chunk-UBAYZSM3.cjs");
27
27
  var import_chunk_VS2QQHAK = require("./chunk-VS2QQHAK.cjs");
28
28
  var import_node_worker_threads = require("node:worker_threads");
29
29
  var require_worker_thread = (0, import_chunk_VS2QQHAK.__commonJS)({
30
30
  "src/worker-thread.ts"() {
31
- (0, import_chunk_BOVSYC7N.init_worker_task)();
31
+ (0, import_chunk_OCIRSLOJ.init_worker_task)();
32
32
  if (import_node_worker_threads.parentPort) {
33
33
  import_node_worker_threads.parentPort.on("message", async (task) => {
34
- return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_BOVSYC7N.performTask)(task));
34
+ return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_OCIRSLOJ.performTask)(task));
35
35
  });
36
36
  }
37
37
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markw65/monkeyc-optimizer",
3
3
  "type": "commonjs",
4
- "version": "1.1.90",
4
+ "version": "1.1.91",
5
5
  "description": "Source to source optimizer for Garmin Monkey C code",
6
6
  "main": "build/optimizer.cjs",
7
7
  "types": "build/src/optimizer.d.ts",
@@ -56,7 +56,8 @@
56
56
  "author": "markw65",
57
57
  "license": "MIT",
58
58
  "dependencies": {
59
- "@markw65/prettier-plugin-monkeyc": "^1.0.61"
59
+ "@markw65/prettier-plugin-monkeyc": "^1.0.61",
60
+ "7z-wasm": "^1.2.0"
60
61
  },
61
62
  "devDependencies": {
62
63
  "@markw65/peggy-optimizer": "^1.0.1",