@markw65/monkeyc-optimizer 1.1.47 → 1.1.49

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,28 +18,28 @@ 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_2ATRIWWT.StateNodeAttributes,
22
- buildOptimizedProject: () => import_chunk_2ATRIWWT.buildOptimizedProject,
21
+ StateNodeAttributes: () => import_chunk_DZ7YMTUE.StateNodeAttributes,
22
+ buildOptimizedProject: () => import_chunk_DZ7YMTUE.buildOptimizedProject,
23
23
  copyRecursiveAsNeeded: () => import_chunk_SG7ODKRM.copyRecursiveAsNeeded,
24
- defaultConfig: () => import_chunk_2ATRIWWT.defaultConfig,
25
- display: () => import_chunk_2ATRIWWT.display,
26
- generateOneConfig: () => import_chunk_2ATRIWWT.generateOneConfig,
27
- generateOptimizedProject: () => import_chunk_2ATRIWWT.generateOptimizedProject,
28
- getConfig: () => import_chunk_2ATRIWWT.getConfig,
29
- getProjectAnalysis: () => import_chunk_2ATRIWWT.getProjectAnalysis,
30
- get_jungle: () => import_chunk_2ATRIWWT.get_jungle,
31
- isErrorWithLocation: () => import_chunk_2ATRIWWT.isErrorWithLocation,
32
- launchSimulator: () => import_chunk_2ATRIWWT.launchSimulator,
33
- manifestProducts: () => import_chunk_2ATRIWWT.manifestProducts,
34
- mctree: () => import_chunk_2ATRIWWT.mctree,
35
- simulateProgram: () => import_chunk_2ATRIWWT.simulateProgram
24
+ defaultConfig: () => import_chunk_DZ7YMTUE.defaultConfig,
25
+ display: () => import_chunk_DZ7YMTUE.display,
26
+ generateOneConfig: () => import_chunk_DZ7YMTUE.generateOneConfig,
27
+ generateOptimizedProject: () => import_chunk_DZ7YMTUE.generateOptimizedProject,
28
+ getConfig: () => import_chunk_DZ7YMTUE.getConfig,
29
+ getProjectAnalysis: () => import_chunk_DZ7YMTUE.getProjectAnalysis,
30
+ get_jungle: () => import_chunk_DZ7YMTUE.get_jungle,
31
+ isErrorWithLocation: () => import_chunk_DZ7YMTUE.isErrorWithLocation,
32
+ launchSimulator: () => import_chunk_DZ7YMTUE.launchSimulator,
33
+ manifestProducts: () => import_chunk_DZ7YMTUE.manifestProducts,
34
+ mctree: () => import_chunk_DZ7YMTUE.mctree,
35
+ simulateProgram: () => import_chunk_DZ7YMTUE.simulateProgram
36
36
  });
37
37
  module.exports = __toCommonJS(optimizer_exports);
38
- var import_chunk_2ATRIWWT = require("./chunk-2ATRIWWT.cjs");
38
+ var import_chunk_DZ7YMTUE = require("./chunk-DZ7YMTUE.cjs");
39
39
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
40
40
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
41
41
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
42
- (0, import_chunk_2ATRIWWT.init_optimizer)();
42
+ (0, import_chunk_DZ7YMTUE.init_optimizer)();
43
43
  // Annotate the CommonJS export names for ESM import in node:
44
44
  0 && (module.exports = {
45
45
  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_2ATRIWWT.SectionKinds,
22
- appSupport: () => import_chunk_2ATRIWWT.appSupport,
23
- connectiq: () => import_chunk_2ATRIWWT.connectiq,
24
- getDeviceInfo: () => import_chunk_2ATRIWWT.getDeviceInfo,
25
- getFunctionDocumentation: () => import_chunk_2ATRIWWT.getFunctionDocumentation,
26
- getLanguages: () => import_chunk_2ATRIWWT.getLanguages,
27
- getSdkPath: () => import_chunk_2ATRIWWT.getSdkPath,
28
- isWin: () => import_chunk_2ATRIWWT.isWin,
29
- optimizeProgram: () => import_chunk_2ATRIWWT.optimizeProgram,
30
- readPrg: () => import_chunk_2ATRIWWT.readPrg,
31
- readPrgWithOffsets: () => import_chunk_2ATRIWWT.readPrgWithOffsets,
32
- xmlUtil: () => import_chunk_2ATRIWWT.xml_util_exports
21
+ SectionKinds: () => import_chunk_DZ7YMTUE.SectionKinds,
22
+ appSupport: () => import_chunk_DZ7YMTUE.appSupport,
23
+ connectiq: () => import_chunk_DZ7YMTUE.connectiq,
24
+ getDeviceInfo: () => import_chunk_DZ7YMTUE.getDeviceInfo,
25
+ getFunctionDocumentation: () => import_chunk_DZ7YMTUE.getFunctionDocumentation,
26
+ getLanguages: () => import_chunk_DZ7YMTUE.getLanguages,
27
+ getSdkPath: () => import_chunk_DZ7YMTUE.getSdkPath,
28
+ isWin: () => import_chunk_DZ7YMTUE.isWin,
29
+ optimizeProgram: () => import_chunk_DZ7YMTUE.optimizeProgram,
30
+ readPrg: () => import_chunk_DZ7YMTUE.readPrg,
31
+ readPrgWithOffsets: () => import_chunk_DZ7YMTUE.readPrgWithOffsets,
32
+ xmlUtil: () => import_chunk_DZ7YMTUE.xml_util_exports
33
33
  });
34
34
  module.exports = __toCommonJS(sdk_util_exports);
35
- var import_chunk_2ATRIWWT = require("./chunk-2ATRIWWT.cjs");
35
+ var import_chunk_DZ7YMTUE = require("./chunk-DZ7YMTUE.cjs");
36
36
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
37
37
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.cjs");
38
38
  var import_chunk_ABYVSU2C = require("./chunk-ABYVSU2C.cjs");
39
- (0, import_chunk_2ATRIWWT.init_sdk_util)();
39
+ (0, import_chunk_DZ7YMTUE.init_sdk_util)();
40
40
  // Annotate the CommonJS export names for ESM import in node:
41
41
  0 && (module.exports = {
42
42
  SectionKinds,
@@ -1,5 +1,16 @@
1
1
  /// <reference types="node" />
2
- export declare function getCFTFontInfoFromBuffer(name: string, data: Buffer, chars?: string): Promise<{
2
+ export type FontInfoOptions = {
3
+ chars?: string;
4
+ charInfoAsArray?: boolean;
5
+ };
6
+ export declare function getCFTFontInfoFromBuffer(name: string, data: Buffer, options?: FontInfoOptions | string): Promise<{
7
+ name: string;
8
+ height: number;
9
+ ascent: number;
10
+ internalLeading: number;
11
+ charInfo: (string | number)[][];
12
+ charInfoNames: string[];
13
+ } | {
3
14
  name: string;
4
15
  height: number;
5
16
  ascent: number;
@@ -11,8 +22,16 @@ export declare function getCFTFontInfoFromBuffer(name: string, data: Buffer, cha
11
22
  glyphAscent: number;
12
23
  glyphDescent: number;
13
24
  }[];
25
+ charInfoNames?: undefined;
14
26
  }>;
15
27
  export declare function getCFTFontInfo(filename: string, chars?: string): Promise<{
28
+ name: string;
29
+ height: number;
30
+ ascent: number;
31
+ internalLeading: number;
32
+ charInfo: (string | number)[][];
33
+ charInfoNames: string[];
34
+ } | {
16
35
  name: string;
17
36
  height: number;
18
37
  ascent: number;
@@ -24,6 +43,7 @@ export declare function getCFTFontInfo(filename: string, chars?: string): Promis
24
43
  glyphAscent: number;
25
44
  glyphDescent: number;
26
45
  }[];
46
+ charInfoNames?: undefined;
27
47
  }>;
28
48
  export declare function getDeviceFontInfo(dirname: string): Promise<{
29
49
  device: string;
@@ -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_2ATRIWWT = require("./chunk-2ATRIWWT.cjs");
24
+ var import_chunk_DZ7YMTUE = require("./chunk-DZ7YMTUE.cjs");
25
25
  var import_chunk_SG7ODKRM = require("./chunk-SG7ODKRM.cjs");
26
26
  var import_chunk_MBTLUWXR = require("./chunk-MBTLUWXR.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, import_chunk_2ATRIWWT.init_worker_task)();
31
+ (0, import_chunk_DZ7YMTUE.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_2ATRIWWT.performTask)(task));
34
+ return import_node_worker_threads.parentPort.postMessage(await (0, import_chunk_DZ7YMTUE.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.47",
4
+ "version": "1.1.49",
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",