@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.
- package/CHANGELOG.md +5 -0
- package/build/api.cjs +39 -39
- package/build/{chunk-BOVSYC7N.cjs → chunk-OCIRSLOJ.cjs} +2780 -2798
- package/build/optimizer.cjs +18 -18
- package/build/sdk-util.cjs +14 -14
- package/build/src/type-flow/types.d.ts +2 -0
- package/build/src/unzip7.d.ts +3 -0
- package/build/worker-thread.cjs +3 -3
- package/package.json +3 -2
package/build/optimizer.cjs
CHANGED
|
@@ -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: () =>
|
|
22
|
-
buildConfigDescription: () =>
|
|
23
|
-
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: () =>
|
|
26
|
-
display: () =>
|
|
27
|
-
generateOneConfig: () =>
|
|
28
|
-
generateOptimizedProject: () =>
|
|
29
|
-
getConfig: () =>
|
|
30
|
-
getFnMapAnalysis: () =>
|
|
31
|
-
getProjectAnalysis: () =>
|
|
32
|
-
get_jungle: () =>
|
|
33
|
-
isErrorWithLocation: () =>
|
|
34
|
-
launchSimulator: () =>
|
|
35
|
-
manifestProducts: () =>
|
|
36
|
-
mctree: () =>
|
|
37
|
-
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
|
|
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,
|
|
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,
|
package/build/sdk-util.cjs
CHANGED
|
@@ -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: () =>
|
|
22
|
-
appSupport: () =>
|
|
23
|
-
connectiq: () =>
|
|
24
|
-
getDeviceInfo: () =>
|
|
25
|
-
getFunctionDocumentation: () =>
|
|
26
|
-
getLanguages: () =>
|
|
27
|
-
getSdkPath: () =>
|
|
28
|
-
isWin: () =>
|
|
29
|
-
optimizeProgram: () =>
|
|
30
|
-
readPrg: () =>
|
|
31
|
-
readPrgWithOffsets: () =>
|
|
32
|
-
xmlUtil: () =>
|
|
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
|
|
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,
|
|
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 {};
|
package/build/worker-thread.cjs
CHANGED
|
@@ -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
|
|
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,
|
|
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,
|
|
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.
|
|
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",
|