@markw65/monkeyc-optimizer 1.1.80 → 1.1.81
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-3KM4FHVN.cjs → chunk-W4QVHCFN.cjs} +320 -284
- package/build/{chunk-NHZRKHZO.cjs → chunk-X7QCZR3F.cjs} +10 -5
- package/build/optimizer.cjs +20 -20
- package/build/sdk-util.cjs +15 -15
- package/build/util.cjs +26 -26
- package/build/worker-thread.cjs +4 -4
- package/package.json +1 -1
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_X7QCZR3F_exports = {};
|
|
30
|
+
__export(chunk_X7QCZR3F_exports, {
|
|
31
31
|
AwaitedError: () => AwaitedError,
|
|
32
32
|
GenericQueue: () => GenericQueue,
|
|
33
33
|
bumpLogging: () => bumpLogging,
|
|
@@ -55,7 +55,7 @@ __export(chunk_NHZRKHZO_exports, {
|
|
|
55
55
|
spawnByLine: () => spawnByLine,
|
|
56
56
|
wouldLog: () => wouldLog
|
|
57
57
|
});
|
|
58
|
-
module.exports = __toCommonJS(
|
|
58
|
+
module.exports = __toCommonJS(chunk_X7QCZR3F_exports);
|
|
59
59
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
60
60
|
var child_process = __toESM(require("child_process"));
|
|
61
61
|
var fsc = __toESM(require("fs"));
|
|
@@ -2936,7 +2936,11 @@ var require_micromatch = (0, import_chunk_ABYVSU2C.__commonJS)({
|
|
|
2936
2936
|
var braces = require_braces();
|
|
2937
2937
|
var picomatch = require_picomatch2();
|
|
2938
2938
|
var utils = require_utils2();
|
|
2939
|
-
var isEmptyString = (
|
|
2939
|
+
var isEmptyString = (v) => v === "" || v === "./";
|
|
2940
|
+
var hasBraces = (v) => {
|
|
2941
|
+
const index = v.indexOf("{");
|
|
2942
|
+
return index > -1 && v.indexOf("}", index) > -1;
|
|
2943
|
+
};
|
|
2940
2944
|
var micromatch = (list, patterns, options) => {
|
|
2941
2945
|
patterns = [].concat(patterns);
|
|
2942
2946
|
list = [].concat(list);
|
|
@@ -3076,7 +3080,7 @@ var require_micromatch = (0, import_chunk_ABYVSU2C.__commonJS)({
|
|
|
3076
3080
|
micromatch.braces = (pattern, options) => {
|
|
3077
3081
|
if (typeof pattern !== "string")
|
|
3078
3082
|
throw new TypeError("Expected a string");
|
|
3079
|
-
if (options && options.nobrace === true ||
|
|
3083
|
+
if (options && options.nobrace === true || !hasBraces(pattern)) {
|
|
3080
3084
|
return [pattern];
|
|
3081
3085
|
}
|
|
3082
3086
|
return braces(pattern, options);
|
|
@@ -3086,6 +3090,7 @@ var require_micromatch = (0, import_chunk_ABYVSU2C.__commonJS)({
|
|
|
3086
3090
|
throw new TypeError("Expected a string");
|
|
3087
3091
|
return micromatch.braces(pattern, { ...options, expand: true });
|
|
3088
3092
|
};
|
|
3093
|
+
micromatch.hasBraces = hasBraces;
|
|
3089
3094
|
module2.exports = micromatch;
|
|
3090
3095
|
}
|
|
3091
3096
|
});
|
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: () =>
|
|
24
|
-
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: () =>
|
|
21
|
+
StateNodeAttributes: () => import_chunk_W4QVHCFN.StateNodeAttributes,
|
|
22
|
+
buildConfigDescription: () => import_chunk_W4QVHCFN.buildConfigDescription,
|
|
23
|
+
buildOptimizedProject: () => import_chunk_W4QVHCFN.buildOptimizedProject,
|
|
24
|
+
copyRecursiveAsNeeded: () => import_chunk_X7QCZR3F.copyRecursiveAsNeeded,
|
|
25
|
+
defaultConfig: () => import_chunk_W4QVHCFN.defaultConfig,
|
|
26
|
+
display: () => import_chunk_W4QVHCFN.display,
|
|
27
|
+
generateOneConfig: () => import_chunk_W4QVHCFN.generateOneConfig,
|
|
28
|
+
generateOptimizedProject: () => import_chunk_W4QVHCFN.generateOptimizedProject,
|
|
29
|
+
getConfig: () => import_chunk_W4QVHCFN.getConfig,
|
|
30
|
+
getFnMapAnalysis: () => import_chunk_W4QVHCFN.getFnMapAnalysis,
|
|
31
|
+
getProjectAnalysis: () => import_chunk_W4QVHCFN.getProjectAnalysis,
|
|
32
|
+
get_jungle: () => import_chunk_W4QVHCFN.get_jungle,
|
|
33
|
+
isErrorWithLocation: () => import_chunk_W4QVHCFN.isErrorWithLocation,
|
|
34
|
+
launchSimulator: () => import_chunk_W4QVHCFN.launchSimulator,
|
|
35
|
+
manifestProducts: () => import_chunk_W4QVHCFN.manifestProducts,
|
|
36
|
+
mctree: () => import_chunk_W4QVHCFN.mctree,
|
|
37
|
+
simulateProgram: () => import_chunk_W4QVHCFN.simulateProgram
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(optimizer_exports);
|
|
40
|
-
var
|
|
41
|
-
var
|
|
40
|
+
var import_chunk_W4QVHCFN = require("./chunk-W4QVHCFN.cjs");
|
|
41
|
+
var import_chunk_X7QCZR3F = require("./chunk-X7QCZR3F.cjs");
|
|
42
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_W4QVHCFN.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_W4QVHCFN.SectionKinds,
|
|
22
|
+
appSupport: () => import_chunk_W4QVHCFN.appSupport,
|
|
23
|
+
connectiq: () => import_chunk_W4QVHCFN.connectiq,
|
|
24
|
+
getDeviceInfo: () => import_chunk_W4QVHCFN.getDeviceInfo,
|
|
25
|
+
getFunctionDocumentation: () => import_chunk_W4QVHCFN.getFunctionDocumentation,
|
|
26
|
+
getLanguages: () => import_chunk_W4QVHCFN.getLanguages,
|
|
27
|
+
getSdkPath: () => import_chunk_W4QVHCFN.getSdkPath,
|
|
28
|
+
isWin: () => import_chunk_W4QVHCFN.isWin,
|
|
29
|
+
optimizeProgram: () => import_chunk_W4QVHCFN.optimizeProgram,
|
|
30
|
+
readPrg: () => import_chunk_W4QVHCFN.readPrg,
|
|
31
|
+
readPrgWithOffsets: () => import_chunk_W4QVHCFN.readPrgWithOffsets,
|
|
32
|
+
xmlUtil: () => import_chunk_W4QVHCFN.xml_util_exports
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(sdk_util_exports);
|
|
35
|
-
var
|
|
36
|
-
var
|
|
35
|
+
var import_chunk_W4QVHCFN = require("./chunk-W4QVHCFN.cjs");
|
|
36
|
+
var import_chunk_X7QCZR3F = require("./chunk-X7QCZR3F.cjs");
|
|
37
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_W4QVHCFN.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/util.cjs
CHANGED
|
@@ -18,35 +18,35 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var util_exports = {};
|
|
20
20
|
__export(util_exports, {
|
|
21
|
-
AwaitedError: () =>
|
|
22
|
-
GenericQueue: () =>
|
|
23
|
-
bumpLogging: () =>
|
|
24
|
-
copyRecursiveAsNeeded: () =>
|
|
25
|
-
every: () =>
|
|
26
|
-
first_modified: () =>
|
|
27
|
-
forEach: () =>
|
|
28
|
-
globSome: () =>
|
|
29
|
-
globa: () =>
|
|
30
|
-
last_modified: () =>
|
|
31
|
-
log: () =>
|
|
32
|
-
logPromise: () =>
|
|
33
|
-
logger: () =>
|
|
34
|
-
map: () =>
|
|
35
|
-
popcount: () =>
|
|
36
|
-
promiseAll: () =>
|
|
37
|
-
pushUnique: () =>
|
|
38
|
-
readByLine: () =>
|
|
39
|
-
reduce: () =>
|
|
40
|
-
sameArrays: () =>
|
|
41
|
-
setBanner: () =>
|
|
42
|
-
some: () =>
|
|
43
|
-
spawnByLine: () =>
|
|
44
|
-
wouldLog: () =>
|
|
21
|
+
AwaitedError: () => import_chunk_X7QCZR3F.AwaitedError,
|
|
22
|
+
GenericQueue: () => import_chunk_X7QCZR3F.GenericQueue,
|
|
23
|
+
bumpLogging: () => import_chunk_X7QCZR3F.bumpLogging,
|
|
24
|
+
copyRecursiveAsNeeded: () => import_chunk_X7QCZR3F.copyRecursiveAsNeeded,
|
|
25
|
+
every: () => import_chunk_X7QCZR3F.every,
|
|
26
|
+
first_modified: () => import_chunk_X7QCZR3F.first_modified,
|
|
27
|
+
forEach: () => import_chunk_X7QCZR3F.forEach,
|
|
28
|
+
globSome: () => import_chunk_X7QCZR3F.globSome,
|
|
29
|
+
globa: () => import_chunk_X7QCZR3F.globa,
|
|
30
|
+
last_modified: () => import_chunk_X7QCZR3F.last_modified,
|
|
31
|
+
log: () => import_chunk_X7QCZR3F.log,
|
|
32
|
+
logPromise: () => import_chunk_X7QCZR3F.logPromise,
|
|
33
|
+
logger: () => import_chunk_X7QCZR3F.logger,
|
|
34
|
+
map: () => import_chunk_X7QCZR3F.map,
|
|
35
|
+
popcount: () => import_chunk_X7QCZR3F.popcount,
|
|
36
|
+
promiseAll: () => import_chunk_X7QCZR3F.promiseAll,
|
|
37
|
+
pushUnique: () => import_chunk_X7QCZR3F.pushUnique,
|
|
38
|
+
readByLine: () => import_chunk_X7QCZR3F.readByLine,
|
|
39
|
+
reduce: () => import_chunk_X7QCZR3F.reduce,
|
|
40
|
+
sameArrays: () => import_chunk_X7QCZR3F.sameArrays,
|
|
41
|
+
setBanner: () => import_chunk_X7QCZR3F.setBanner,
|
|
42
|
+
some: () => import_chunk_X7QCZR3F.some,
|
|
43
|
+
spawnByLine: () => import_chunk_X7QCZR3F.spawnByLine,
|
|
44
|
+
wouldLog: () => import_chunk_X7QCZR3F.wouldLog
|
|
45
45
|
});
|
|
46
46
|
module.exports = __toCommonJS(util_exports);
|
|
47
|
-
var
|
|
47
|
+
var import_chunk_X7QCZR3F = require("./chunk-X7QCZR3F.cjs");
|
|
48
48
|
var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
|
|
49
|
-
(0,
|
|
49
|
+
(0, import_chunk_X7QCZR3F.init_util)();
|
|
50
50
|
// Annotate the CommonJS export names for ESM import in node:
|
|
51
51
|
0 && (module.exports = {
|
|
52
52
|
AwaitedError,
|
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
|
|
25
|
-
var
|
|
24
|
+
var import_chunk_W4QVHCFN = require("./chunk-W4QVHCFN.cjs");
|
|
25
|
+
var import_chunk_X7QCZR3F = require("./chunk-X7QCZR3F.cjs");
|
|
26
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_W4QVHCFN.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_W4QVHCFN.performTask)(task));
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}
|
package/package.json
CHANGED