@markw65/monkeyc-optimizer 1.1.67 → 1.1.69
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 +13 -0
- package/build/api.cjs +37 -37
- package/build/cftinfo.cjs +4 -4
- package/build/{chunk-MBTLUWXR.cjs → chunk-JDC43A3I.cjs} +5 -5
- package/build/{chunk-2OEXWI65.cjs → chunk-YERUPFGW.cjs} +406 -320
- package/build/optimizer.cjs +19 -19
- package/build/sdk-util.cjs +15 -15
- package/build/src/ast.d.ts +1 -1
- package/build/src/optimizer.d.ts +1 -1
- package/build/src/worker-task.d.ts +1 -0
- package/build/worker-thread.cjs +4 -4
- package/package.json +1 -1
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_YERUPFGW.StateNodeAttributes,
|
|
22
|
+
buildConfigDescription: () => import_chunk_YERUPFGW.buildConfigDescription,
|
|
23
|
+
buildOptimizedProject: () => import_chunk_YERUPFGW.buildOptimizedProject,
|
|
24
24
|
copyRecursiveAsNeeded: () => import_chunk_OASVKTK5.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_YERUPFGW.defaultConfig,
|
|
26
|
+
display: () => import_chunk_YERUPFGW.display,
|
|
27
|
+
generateOneConfig: () => import_chunk_YERUPFGW.generateOneConfig,
|
|
28
|
+
generateOptimizedProject: () => import_chunk_YERUPFGW.generateOptimizedProject,
|
|
29
|
+
getConfig: () => import_chunk_YERUPFGW.getConfig,
|
|
30
|
+
getFnMapAnalysis: () => import_chunk_YERUPFGW.getFnMapAnalysis,
|
|
31
|
+
getProjectAnalysis: () => import_chunk_YERUPFGW.getProjectAnalysis,
|
|
32
|
+
get_jungle: () => import_chunk_YERUPFGW.get_jungle,
|
|
33
|
+
isErrorWithLocation: () => import_chunk_YERUPFGW.isErrorWithLocation,
|
|
34
|
+
launchSimulator: () => import_chunk_YERUPFGW.launchSimulator,
|
|
35
|
+
manifestProducts: () => import_chunk_YERUPFGW.manifestProducts,
|
|
36
|
+
mctree: () => import_chunk_YERUPFGW.mctree,
|
|
37
|
+
simulateProgram: () => import_chunk_YERUPFGW.simulateProgram
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(optimizer_exports);
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_YERUPFGW = require("./chunk-YERUPFGW.cjs");
|
|
41
41
|
var import_chunk_OASVKTK5 = require("./chunk-OASVKTK5.cjs");
|
|
42
|
-
var
|
|
42
|
+
var import_chunk_JDC43A3I = require("./chunk-JDC43A3I.cjs");
|
|
43
43
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
44
|
-
(0,
|
|
44
|
+
(0, import_chunk_YERUPFGW.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_YERUPFGW.SectionKinds,
|
|
22
|
+
appSupport: () => import_chunk_YERUPFGW.appSupport,
|
|
23
|
+
connectiq: () => import_chunk_YERUPFGW.connectiq,
|
|
24
|
+
getDeviceInfo: () => import_chunk_YERUPFGW.getDeviceInfo,
|
|
25
|
+
getFunctionDocumentation: () => import_chunk_YERUPFGW.getFunctionDocumentation,
|
|
26
|
+
getLanguages: () => import_chunk_YERUPFGW.getLanguages,
|
|
27
|
+
getSdkPath: () => import_chunk_YERUPFGW.getSdkPath,
|
|
28
|
+
isWin: () => import_chunk_YERUPFGW.isWin,
|
|
29
|
+
optimizeProgram: () => import_chunk_YERUPFGW.optimizeProgram,
|
|
30
|
+
readPrg: () => import_chunk_YERUPFGW.readPrg,
|
|
31
|
+
readPrgWithOffsets: () => import_chunk_YERUPFGW.readPrgWithOffsets,
|
|
32
|
+
xmlUtil: () => import_chunk_YERUPFGW.xml_util_exports
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(sdk_util_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_YERUPFGW = require("./chunk-YERUPFGW.cjs");
|
|
36
36
|
var import_chunk_OASVKTK5 = require("./chunk-OASVKTK5.cjs");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_JDC43A3I = require("./chunk-JDC43A3I.cjs");
|
|
38
38
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
39
|
-
(0,
|
|
39
|
+
(0, import_chunk_YERUPFGW.init_sdk_util)();
|
|
40
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
41
|
0 && (module.exports = {
|
|
42
42
|
SectionKinds,
|
package/build/src/ast.d.ts
CHANGED
|
@@ -42,6 +42,6 @@ export declare function makeIdentifier(name: string, loc?: mctree.SourceLocation
|
|
|
42
42
|
name: string;
|
|
43
43
|
};
|
|
44
44
|
export declare function makeMemberExpression(object: mctree.ScopedName, property: mctree.Identifier): mctree.DottedName;
|
|
45
|
-
export declare function makeScopedName(dotted: string, l?: mctree.SourceLocation): mctree.ScopedName;
|
|
45
|
+
export declare function makeScopedName(dotted: string, l?: mctree.SourceLocation, base?: mctree.ScopedName): mctree.ScopedName;
|
|
46
46
|
export declare function getLiteralNode(node: mctree.Node | null | undefined): null | mctree.Literal | mctree.AsExpression;
|
|
47
47
|
export {};
|
package/build/src/optimizer.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export type Analysis = {
|
|
|
82
82
|
* @param {string[]} dependencyFiles
|
|
83
83
|
* @returns
|
|
84
84
|
*/
|
|
85
|
-
export declare function generateOneConfig(buildConfig: JungleQualifier, manifestXML: xmlUtil.Document, dependencyFiles: string[], config: BuildConfig): Promise<{
|
|
85
|
+
export declare function generateOneConfig(buildConfig: JungleQualifier, manifestXML: xmlUtil.Document, dependencyFiles: string[], config: BuildConfig, key: string): Promise<{
|
|
86
86
|
hasTests: boolean;
|
|
87
87
|
diagnostics: ProgramState["diagnostics"];
|
|
88
88
|
sdkVersion: number | undefined;
|
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_YERUPFGW = require("./chunk-YERUPFGW.cjs");
|
|
25
25
|
var import_chunk_OASVKTK5 = require("./chunk-OASVKTK5.cjs");
|
|
26
|
-
var
|
|
26
|
+
var import_chunk_JDC43A3I = require("./chunk-JDC43A3I.cjs");
|
|
27
27
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
28
28
|
var import_node_worker_threads = require("node:worker_threads");
|
|
29
29
|
var require_worker_thread = (0, import_chunk_ABYVSU2C.__commonJS)({
|
|
30
30
|
"src/worker-thread.ts"() {
|
|
31
|
-
(0,
|
|
31
|
+
(0, import_chunk_YERUPFGW.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_YERUPFGW.performTask)(task));
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}
|
package/package.json
CHANGED