@hanzogui/helpers-node 8.3.1 → 8.3.3
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/dist/cjs/getDefaultGuiOptions.js +12 -0
- package/dist/cjs/getDefaultGuiOptions.js.map +1 -0
- package/dist/cjs/getGuiDefaultPath.js +20 -0
- package/dist/cjs/getGuiDefaultPath.js.map +1 -0
- package/dist/cjs/getGuiOptions.js +8 -0
- package/dist/cjs/getGuiOptions.js.map +1 -0
- package/dist/cjs/index.js +7 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/readGuiOptions.js +36 -0
- package/dist/cjs/readGuiOptions.js.map +1 -0
- package/dist/esm/getDefaultGuiOptions.js +9 -0
- package/dist/esm/getDefaultGuiOptions.js.map +1 -0
- package/dist/esm/getGuiDefaultPath.js +17 -0
- package/dist/esm/getGuiDefaultPath.js.map +1 -0
- package/dist/esm/getGuiOptions.js +5 -0
- package/dist/esm/getGuiOptions.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/readGuiOptions.js +33 -0
- package/dist/esm/readGuiOptions.js.map +1 -0
- package/package.json +25 -6
- package/src/getDefaultGuiOptions.ts +1 -1
- package/src/getGuiDefaultPath.ts +1 -1
- package/src/getGuiOptions.ts +4 -2
- package/src/index.ts +3 -3
- package/src/readGuiOptions.ts +2 -2
- package/types/getDefaultGuiOptions.d.ts +3 -4
- package/types/getDefaultGuiOptions.d.ts.map +1 -11
- package/types/getGuiDefaultPath.d.ts +3 -4
- package/types/getGuiDefaultPath.d.ts.map +1 -11
- package/types/getGuiOptions.d.ts +4 -4
- package/types/getGuiOptions.d.ts.map +1 -11
- package/types/index.d.ts +3 -4
- package/types/index.d.ts.map +1 -11
- package/types/readGuiOptions.d.ts +4 -5
- package/types/readGuiOptions.d.ts.map +1 -11
- package/dist/getDefaultGuiOptions.cjs +0 -39
- package/dist/getDefaultGuiOptions.native.js +0 -43
- package/dist/getDefaultGuiOptions.native.js.map +0 -1
- package/dist/getGuiDefaultPath.cjs +0 -46
- package/dist/getGuiDefaultPath.native.js +0 -56
- package/dist/getGuiDefaultPath.native.js.map +0 -1
- package/dist/getGuiOptions.cjs +0 -35
- package/dist/getGuiOptions.native.js +0 -39
- package/dist/getGuiOptions.native.js.map +0 -1
- package/dist/index.cjs +0 -22
- package/dist/index.native.js +0 -25
- package/dist/index.native.js.map +0 -1
- package/dist/readGuiOptions.cjs +0 -66
- package/dist/readGuiOptions.native.js +0 -70
- package/dist/readGuiOptions.native.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDefaultGuiOptions = getDefaultGuiOptions;
|
|
4
|
+
const getGuiDefaultPath_ts_1 = require("./getGuiDefaultPath.js");
|
|
5
|
+
async function getDefaultGuiOptions({ cwd = '.', }) {
|
|
6
|
+
return {
|
|
7
|
+
platform: 'native',
|
|
8
|
+
components: ['@hanzo/gui'],
|
|
9
|
+
config: await (0, getGuiDefaultPath_ts_1.getDefaultGuiConfigPath)({ cwd }),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=getDefaultGuiOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDefaultGuiOptions.js","sourceRoot":"","sources":["../../src/getDefaultGuiOptions.ts"],"names":[],"mappings":";;;AAEA,iEAAgE;AAEzD,KAAK,+BAA+B,EACzC,GAAG,GAAG,GAAG,GAGV;IACC,OAAO;QACL,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,CAAC,YAAY,CAAC;QAC1B,MAAM,EAAE,MAAM,IAAA,8CAAuB,EAAC,EAAE,GAAG,EAAE,CAAC;KAC/C,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDefaultGuiConfigPath = getDefaultGuiConfigPath;
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
5
|
+
const esm_1 = require("fs-extra/esm");
|
|
6
|
+
let cachedPath = '';
|
|
7
|
+
async function getDefaultGuiConfigPath({ cwd = '.', cache = true, }) {
|
|
8
|
+
if (cache && cachedPath) {
|
|
9
|
+
return cachedPath;
|
|
10
|
+
}
|
|
11
|
+
const defaultPaths = ['hanzogui.config.ts', (0, node_path_1.join)('src', 'hanzogui.config.ts')].map((p) => (0, node_path_1.join)(cwd, p));
|
|
12
|
+
const existing = (await Promise.all(defaultPaths.map((path) => (0, esm_1.pathExists)(path)))).findIndex((x) => !!x);
|
|
13
|
+
const found = defaultPaths[existing];
|
|
14
|
+
if (!found) {
|
|
15
|
+
throw new Error(`No found hanzogui.config.ts`);
|
|
16
|
+
}
|
|
17
|
+
cachedPath = found;
|
|
18
|
+
return found;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=getGuiDefaultPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGuiDefaultPath.js","sourceRoot":"","sources":["../../src/getGuiDefaultPath.ts"],"names":[],"mappings":";;;AAAA,yCAAgC;AAEhC,sCAAyC;AAEzC,IAAI,UAAU,GAAG,EAAE,CAAA;AAEZ,KAAK,kCAAkC,EAC5C,GAAG,GAAG,GAAG,EACT,KAAK,GAAG,IAAI,GAKb;IACC,IAAI,KAAK,IAAI,UAAU,EAAE,CAAC;QACxB,OAAO,UAAU,CAAA;IACnB,CAAC;IAED,MAAM,YAAY,GAAG,CAAC,oBAAoB,EAAE,IAAA,gBAAI,EAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAChF,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,gBAAI,EAAC,GAAG,EAAE,CAAC,CAAC,CACpB,CAAA;IACD,MAAM,QAAQ,GAAG,CACf,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,gBAAU,EAAC,IAAI,CAAC,CAAC,CAAC,CAChE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACvB,MAAM,KAAK,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;IACpC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAChD,CAAC;IAED,UAAU,GAAG,KAAK,CAAA;IAClB,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGuiOptions = getGuiOptions;
|
|
4
|
+
const readGuiOptions_ts_1 = require("./readGuiOptions.js");
|
|
5
|
+
async function getGuiOptions({ cwd = '.', }) {
|
|
6
|
+
return (await (0, readGuiOptions_ts_1.readGuiOptions)({ cwd })).options;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=getGuiOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGuiOptions.js","sourceRoot":"","sources":["../../src/getGuiOptions.ts"],"names":[],"mappings":";;;AAEA,2DAAoD;AAE7C,KAAK,wBAAwB,EAClC,GAAG,GAAG,GAAG,GAGV;IACC,OAAO,CAAC,MAAM,IAAA,kCAAc,EAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAA;AAChD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./readGuiOptions.js"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./getGuiDefaultPath.js"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./getGuiOptions.js"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,8DAAmC;AACnC,iEAAsC;AACtC,6DAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readGuiOptions = readGuiOptions;
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
5
|
+
const esm_1 = require("fs-extra/esm");
|
|
6
|
+
const getDefaultGuiOptions_ts_1 = require("./getDefaultGuiOptions.js");
|
|
7
|
+
async function readGuiOptions({ cwd = '.' }) {
|
|
8
|
+
const filePath = (0, node_path_1.join)(cwd, 'hanzogui.json');
|
|
9
|
+
if (!(await (0, esm_1.pathExists)(filePath))) {
|
|
10
|
+
return {
|
|
11
|
+
exists: false,
|
|
12
|
+
options: await (0, getDefaultGuiOptions_ts_1.getDefaultGuiOptions)({ cwd }),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
const options = (await (0, esm_1.readJSON)(filePath));
|
|
17
|
+
if (!Array.isArray(options.components)) {
|
|
18
|
+
throw new Error(`Invalid components: not string[]`);
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
exists: true,
|
|
22
|
+
options: {
|
|
23
|
+
...(!options.config && (await (0, getDefaultGuiOptions_ts_1.getDefaultGuiOptions)({ cwd }))),
|
|
24
|
+
...options,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
console.error(`Error reading hanzogui.json: ${err.message} ${err.stack}`);
|
|
30
|
+
return {
|
|
31
|
+
exists: false,
|
|
32
|
+
options: await (0, getDefaultGuiOptions_ts_1.getDefaultGuiOptions)({ cwd }),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=readGuiOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readGuiOptions.js","sourceRoot":"","sources":["../../src/readGuiOptions.ts"],"names":[],"mappings":";;;AAAA,yCAAgC;AAGhC,sCAAmD;AAEnD,uEAAgE;AAEzD,KAAK,yBAAyB,EAAE,GAAG,GAAG,GAAG,EAAmB;IAIjE,MAAM,QAAQ,GAAG,IAAA,gBAAI,EAAC,GAAG,EAAE,eAAe,CAAC,CAAA;IAE3C,IAAI,CAAC,CAAC,MAAM,IAAA,gBAAU,EAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,MAAM,IAAA,8CAAoB,EAAC,EAAE,GAAG,EAAE,CAAC;SAC7C,CAAA;IACH,CAAC;IAED,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,CAAC,MAAM,IAAA,cAAQ,EAAC,QAAQ,CAAC,CAAe,CAAA;QAExD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;YACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAA;QACrD,CAAC;QAED,OAAO;YACL,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE;gBACP,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,MAAM,IAAA,8CAAoB,EAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;gBAC7D,GAAG,OAAO;aACX;SACF,CAAA;IACH,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,OAAO,CAAC,KAAK,CAAC,gCAAgC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;QAEzE,OAAO;YACL,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,MAAM,IAAA,8CAAoB,EAAC,EAAE,GAAG,EAAE,CAAC;SAC7C,CAAA;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getDefaultGuiConfigPath } from './getGuiDefaultPath.js';
|
|
2
|
+
export async function getDefaultGuiOptions({ cwd = '.', }) {
|
|
3
|
+
return {
|
|
4
|
+
platform: 'native',
|
|
5
|
+
components: ['@hanzo/gui'],
|
|
6
|
+
config: await getDefaultGuiConfigPath({ cwd }),
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=getDefaultGuiOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDefaultGuiOptions.js","sourceRoot":"","sources":["../../src/getDefaultGuiOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,EACzC,GAAG,GAAG,GAAG,GAGV;IACC,OAAO;QACL,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,CAAC,YAAY,CAAC;QAC1B,MAAM,EAAE,MAAM,uBAAuB,CAAC,EAAE,GAAG,EAAE,CAAC;KAC/C,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
import { pathExists } from 'fs-extra/esm';
|
|
3
|
+
let cachedPath = '';
|
|
4
|
+
export async function getDefaultGuiConfigPath({ cwd = '.', cache = true, }) {
|
|
5
|
+
if (cache && cachedPath) {
|
|
6
|
+
return cachedPath;
|
|
7
|
+
}
|
|
8
|
+
const defaultPaths = ['hanzogui.config.ts', join('src', 'hanzogui.config.ts')].map((p) => join(cwd, p));
|
|
9
|
+
const existing = (await Promise.all(defaultPaths.map((path) => pathExists(path)))).findIndex((x) => !!x);
|
|
10
|
+
const found = defaultPaths[existing];
|
|
11
|
+
if (!found) {
|
|
12
|
+
throw new Error(`No found hanzogui.config.ts`);
|
|
13
|
+
}
|
|
14
|
+
cachedPath = found;
|
|
15
|
+
return found;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=getGuiDefaultPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGuiDefaultPath.js","sourceRoot":"","sources":["../../src/getGuiDefaultPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,IAAI,UAAU,GAAG,EAAE,CAAA;AAEnB,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,EAC5C,GAAG,GAAG,GAAG,EACT,KAAK,GAAG,IAAI,GAKb;IACC,IAAI,KAAK,IAAI,UAAU,EAAE,CAAC;QACxB,OAAO,UAAU,CAAA;IACnB,CAAC;IAED,MAAM,YAAY,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAChF,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CACpB,CAAA;IACD,MAAM,QAAQ,GAAG,CACf,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAChE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACvB,MAAM,KAAK,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;IACpC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAChD,CAAC;IAED,UAAU,GAAG,KAAK,CAAA;IAClB,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGuiOptions.js","sourceRoot":"","sources":["../../src/getGuiOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAClC,GAAG,GAAG,GAAG,GAGV;IACC,OAAO,CAAC,MAAM,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAA;AAChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
import { pathExists, readJSON } from 'fs-extra/esm';
|
|
3
|
+
import { getDefaultGuiOptions } from './getDefaultGuiOptions.js';
|
|
4
|
+
export async function readGuiOptions({ cwd = '.' }) {
|
|
5
|
+
const filePath = join(cwd, 'hanzogui.json');
|
|
6
|
+
if (!(await pathExists(filePath))) {
|
|
7
|
+
return {
|
|
8
|
+
exists: false,
|
|
9
|
+
options: await getDefaultGuiOptions({ cwd }),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
try {
|
|
13
|
+
const options = (await readJSON(filePath));
|
|
14
|
+
if (!Array.isArray(options.components)) {
|
|
15
|
+
throw new Error(`Invalid components: not string[]`);
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
exists: true,
|
|
19
|
+
options: {
|
|
20
|
+
...(!options.config && (await getDefaultGuiOptions({ cwd }))),
|
|
21
|
+
...options,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
catch (err) {
|
|
26
|
+
console.error(`Error reading hanzogui.json: ${err.message} ${err.stack}`);
|
|
27
|
+
return {
|
|
28
|
+
exists: false,
|
|
29
|
+
options: await getDefaultGuiOptions({ cwd }),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=readGuiOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readGuiOptions.js","sourceRoot":"","sources":["../../src/readGuiOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGhC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,EAAE,GAAG,GAAG,GAAG,EAAmB;IAIjE,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAA;IAE3C,IAAI,CAAC,CAAC,MAAM,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,MAAM,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC;SAC7C,CAAA;IACH,CAAC;IAED,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAe,CAAA;QAExD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;YACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAA;QACrD,CAAC;QAED,OAAO;YACL,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE;gBACP,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,MAAM,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;gBAC7D,GAAG,OAAO;aACX;SACF,CAAA;IACH,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,OAAO,CAAC,KAAK,CAAC,gCAAgC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC,CAAA;QAEzE,OAAO;YACL,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,MAAM,oBAAoB,CAAC,EAAE,GAAG,EAAE,CAAC;SAC7C,CAAA;IACH,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,29 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/helpers-node",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
7
7
|
"types",
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
|
+
"type": "module",
|
|
10
11
|
"sideEffects": false,
|
|
11
|
-
"main": "./dist",
|
|
12
|
+
"main": "./dist/cjs/index.js",
|
|
13
|
+
"module": "./dist/esm/index.js",
|
|
12
14
|
"types": "./types/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
"./package.json": "./package.json",
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./types/index.d.ts",
|
|
19
|
+
"react-native": "./dist/esm/index.js",
|
|
20
|
+
"browser": "./dist/esm/index.js",
|
|
21
|
+
"module": "./dist/esm/index.js",
|
|
22
|
+
"import": "./dist/esm/index.js",
|
|
23
|
+
"require": "./dist/cjs/index.js",
|
|
24
|
+
"default": "./dist/esm/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
13
27
|
"publishConfig": {
|
|
14
28
|
"access": "public"
|
|
15
29
|
},
|
|
16
30
|
"scripts": {
|
|
17
|
-
"build": "hanzogui-build",
|
|
31
|
+
"build": "hanzogui-build --skip-native",
|
|
18
32
|
"watch": "hanzogui-build --watch",
|
|
19
33
|
"clean": "hanzogui-build clean",
|
|
20
34
|
"clean:build": "hanzogui-build clean:build"
|
|
21
35
|
},
|
|
22
36
|
"dependencies": {
|
|
23
|
-
"@hanzogui/types": "8.3.
|
|
37
|
+
"@hanzogui/types": "8.3.3"
|
|
24
38
|
},
|
|
25
39
|
"devDependencies": {
|
|
26
|
-
"@hanzogui/build": "8.3.
|
|
27
|
-
"fs-extra": "^11.
|
|
40
|
+
"@hanzogui/build": "8.3.3",
|
|
41
|
+
"fs-extra": "^11.4.0"
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/hanzoai/gui.git",
|
|
46
|
+
"directory": "pkgs/core/helpers-node"
|
|
28
47
|
}
|
|
29
48
|
}
|
package/src/getGuiDefaultPath.ts
CHANGED
package/src/getGuiOptions.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GuiOptions } from '@hanzogui/types'
|
|
2
|
+
|
|
3
|
+
import { readGuiOptions } from './readGuiOptions.ts'
|
|
2
4
|
|
|
3
5
|
export async function getGuiOptions({
|
|
4
6
|
cwd = '.',
|
|
5
7
|
}: {
|
|
6
8
|
cwd?: string
|
|
7
|
-
}): Promise<
|
|
9
|
+
}): Promise<GuiOptions> {
|
|
8
10
|
return (await readGuiOptions({ cwd })).options
|
|
9
11
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './readGuiOptions'
|
|
2
|
-
export * from './getGuiDefaultPath'
|
|
3
|
-
export * from './getGuiOptions'
|
|
1
|
+
export * from './readGuiOptions.ts'
|
|
2
|
+
export * from './getGuiDefaultPath.ts'
|
|
3
|
+
export * from './getGuiOptions.ts'
|
package/src/readGuiOptions.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { join } from 'node:path'
|
|
2
2
|
|
|
3
3
|
import type { GuiOptions } from '@hanzogui/types'
|
|
4
|
-
import { pathExists, readJSON } from 'fs-extra'
|
|
4
|
+
import { pathExists, readJSON } from 'fs-extra/esm'
|
|
5
5
|
|
|
6
|
-
import { getDefaultGuiOptions } from './getDefaultGuiOptions'
|
|
6
|
+
import { getDefaultGuiOptions } from './getDefaultGuiOptions.ts'
|
|
7
7
|
|
|
8
8
|
export async function readGuiOptions({ cwd = '.' }: { cwd: string }): Promise<{
|
|
9
9
|
exists: boolean
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { GuiOptions } from
|
|
2
|
-
export declare function getDefaultGuiOptions({ cwd }: {
|
|
3
|
-
|
|
1
|
+
import type { GuiOptions } from '@hanzogui/types';
|
|
2
|
+
export declare function getDefaultGuiOptions({ cwd, }: {
|
|
3
|
+
cwd: string;
|
|
4
4
|
}): Promise<GuiOptions>;
|
|
5
|
-
|
|
6
5
|
//# sourceMappingURL=getDefaultGuiOptions.d.ts.map
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mappings": "AAAA,cAAc,kBAAkB;AAIhC,OAAO,iBAAe,qBAAqB,EACzC,OACC;CACD;IACE,QAAQ",
|
|
3
|
-
"names": [],
|
|
4
|
-
"sources": [
|
|
5
|
-
"src/getDefaultGuiOptions.ts"
|
|
6
|
-
],
|
|
7
|
-
"version": 3,
|
|
8
|
-
"sourcesContent": [
|
|
9
|
-
"import type { GuiOptions } from '@hanzogui/types'\n\nimport { getDefaultGuiConfigPath } from './getGuiDefaultPath'\n\nexport async function getDefaultGuiOptions({\n cwd = '.',\n}: {\n cwd: string\n}): Promise<GuiOptions> {\n return {\n platform: 'native',\n components: ['@hanzo/gui'],\n config: await getDefaultGuiConfigPath({ cwd }),\n }\n}\n"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
{"version":3,"file":"getDefaultGuiOptions.d.ts","sourceRoot":"","sources":["../src/getDefaultGuiOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,wBAAsB,oBAAoB,CAAC,EACzC,GAAS,GACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,OAAO,CAAC,UAAU,CAAC,CAMtB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export declare function getDefaultGuiConfigPath({ cwd, cache }: {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare function getDefaultGuiConfigPath({ cwd, cache, }: {
|
|
2
|
+
cwd?: string;
|
|
3
|
+
cache?: boolean;
|
|
4
4
|
}): Promise<string>;
|
|
5
|
-
|
|
6
5
|
//# sourceMappingURL=getGuiDefaultPath.d.ts.map
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mappings": "AAMA,OAAO,iBAAe,wBAAwB,EAC5C,KACA,SACC;CACD;CAEA;IACE",
|
|
3
|
-
"names": [],
|
|
4
|
-
"sources": [
|
|
5
|
-
"src/getGuiDefaultPath.ts"
|
|
6
|
-
],
|
|
7
|
-
"version": 3,
|
|
8
|
-
"sourcesContent": [
|
|
9
|
-
"import { join } from 'node:path'\n\nimport { pathExists } from 'fs-extra'\n\nlet cachedPath = ''\n\nexport async function getDefaultGuiConfigPath({\n cwd = '.',\n cache = true,\n}: {\n cwd?: string\n // TODO this isn't passed down / could avoid\n cache?: boolean\n}): Promise<string> {\n if (cache && cachedPath) {\n return cachedPath\n }\n\n const defaultPaths = ['hanzogui.config.ts', join('src', 'hanzogui.config.ts')].map(\n (p) => join(cwd, p)\n )\n const existing = (\n await Promise.all(defaultPaths.map((path) => pathExists(path)))\n ).findIndex((x) => !!x)\n const found = defaultPaths[existing]\n if (!found) {\n throw new Error(`No found hanzogui.config.ts`)\n }\n\n cachedPath = found\n return found\n}\n"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
{"version":3,"file":"getGuiDefaultPath.d.ts","sourceRoot":"","sources":["../src/getGuiDefaultPath.ts"],"names":[],"mappings":"AAMA,wBAAsB,uBAAuB,CAAC,EAC5C,GAAS,EACT,KAAY,GACb,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBlB"}
|
package/types/getGuiOptions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { GuiOptions } from '@hanzogui/types';
|
|
2
|
+
export declare function getGuiOptions({ cwd, }: {
|
|
3
|
+
cwd?: string;
|
|
4
|
+
}): Promise<GuiOptions>;
|
|
5
5
|
//# sourceMappingURL=getGuiOptions.d.ts.map
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mappings": "AAEA,OAAO,iBAAe,cAAc,EAClC,OACC;CACD;IACE,eAAe",
|
|
3
|
-
"names": [],
|
|
4
|
-
"sources": [
|
|
5
|
-
"src/getGuiOptions.ts"
|
|
6
|
-
],
|
|
7
|
-
"version": 3,
|
|
8
|
-
"sourcesContent": [
|
|
9
|
-
"import { readGuiOptions } from './readGuiOptions'\n\nexport async function getGuiOptions({\n cwd = '.',\n}: {\n cwd?: string\n}): Promise<import('@hanzogui/types/types').GuiOptions> {\n return (await readGuiOptions({ cwd })).options\n}\n"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
{"version":3,"file":"getGuiOptions.d.ts","sourceRoot":"","sources":["../src/getGuiOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,wBAAsB,aAAa,CAAC,EAClC,GAAS,GACV,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GAAG,OAAO,CAAC,UAAU,CAAC,CAEtB"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
|
|
1
|
+
export * from './readGuiOptions.ts';
|
|
2
|
+
export * from './getGuiDefaultPath.ts';
|
|
3
|
+
export * from './getGuiOptions.ts';
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc",
|
|
3
|
-
"names": [],
|
|
4
|
-
"sources": [
|
|
5
|
-
"src/index.ts"
|
|
6
|
-
],
|
|
7
|
-
"version": 3,
|
|
8
|
-
"sourcesContent": [
|
|
9
|
-
"export * from './readGuiOptions'\nexport * from './getGuiDefaultPath'\nexport * from './getGuiOptions'\n"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { GuiOptions } from
|
|
1
|
+
import type { GuiOptions } from '@hanzogui/types';
|
|
2
2
|
export declare function readGuiOptions({ cwd }: {
|
|
3
|
-
|
|
3
|
+
cwd: string;
|
|
4
4
|
}): Promise<{
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
exists: boolean;
|
|
6
|
+
options: GuiOptions;
|
|
7
7
|
}>;
|
|
8
|
-
|
|
9
8
|
//# sourceMappingURL=readGuiOptions.d.ts.map
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mappings": "AAEA,cAAc,kBAAkB;AAKhC,OAAO,iBAAe,eAAe,EAAE,OAAa;CAAE;IAAgB,QAAQ;CAC5E;CACA,SAAS",
|
|
3
|
-
"names": [],
|
|
4
|
-
"sources": [
|
|
5
|
-
"src/readGuiOptions.ts"
|
|
6
|
-
],
|
|
7
|
-
"version": 3,
|
|
8
|
-
"sourcesContent": [
|
|
9
|
-
"import { join } from 'node:path'\n\nimport type { GuiOptions } from '@hanzogui/types'\nimport { pathExists, readJSON } from 'fs-extra'\n\nimport { getDefaultGuiOptions } from './getDefaultGuiOptions'\n\nexport async function readGuiOptions({ cwd = '.' }: { cwd: string }): Promise<{\n exists: boolean\n options: GuiOptions\n}> {\n const filePath = join(cwd, 'hanzogui.json')\n\n if (!(await pathExists(filePath))) {\n return {\n exists: false,\n options: await getDefaultGuiOptions({ cwd }),\n }\n }\n\n try {\n const options = (await readJSON(filePath)) as GuiOptions\n\n if (!Array.isArray(options.components)) {\n throw new Error(`Invalid components: not string[]`)\n }\n\n return {\n exists: true,\n options: {\n ...(!options.config && (await getDefaultGuiOptions({ cwd }))),\n ...options,\n },\n }\n } catch (err: any) {\n console.error(`Error reading hanzogui.json: ${err.message} ${err.stack}`)\n\n return {\n exists: false,\n options: await getDefaultGuiOptions({ cwd }),\n }\n }\n}\n"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
{"version":3,"file":"readGuiOptions.d.ts","sourceRoot":"","sources":["../src/readGuiOptions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAKjD,wBAAsB,cAAc,CAAC,EAAE,GAAS,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC;IAC5E,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,UAAU,CAAA;CACpB,CAAC,CAgCD"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var getDefaultGuiOptions_exports = {};
|
|
24
|
-
__export(getDefaultGuiOptions_exports, {
|
|
25
|
-
getDefaultGuiOptions: () => getDefaultGuiOptions
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(getDefaultGuiOptions_exports);
|
|
28
|
-
var import_getGuiDefaultPath = require("./getGuiDefaultPath.cjs");
|
|
29
|
-
async function getDefaultGuiOptions({
|
|
30
|
-
cwd = "."
|
|
31
|
-
}) {
|
|
32
|
-
return {
|
|
33
|
-
platform: "native",
|
|
34
|
-
components: ["@hanzo/gui"],
|
|
35
|
-
config: await (0, import_getGuiDefaultPath.getDefaultGuiConfigPath)({
|
|
36
|
-
cwd
|
|
37
|
-
})
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var getDefaultGuiOptions_exports = {};
|
|
26
|
-
__export(getDefaultGuiOptions_exports, {
|
|
27
|
-
getDefaultGuiOptions: () => getDefaultGuiOptions
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(getDefaultGuiOptions_exports);
|
|
30
|
-
var import_getGuiDefaultPath = require("./getGuiDefaultPath.native.js");
|
|
31
|
-
async function getDefaultGuiOptions(param) {
|
|
32
|
-
var {
|
|
33
|
-
cwd = "."
|
|
34
|
-
} = param;
|
|
35
|
-
return {
|
|
36
|
-
platform: "native",
|
|
37
|
-
components: ["@hanzo/gui"],
|
|
38
|
-
config: await (0, import_getGuiDefaultPath.getDefaultGuiConfigPath)({
|
|
39
|
-
cwd
|
|
40
|
-
})
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=getDefaultGuiOptions.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","getDefaultGuiOptions_exports","getDefaultGuiOptions","module","exports","import_getGuiDefaultPath","require","param","cwd","platform","components","config","getDefaultGuiConfigPath"],"sources":["getDefaultGuiOptions.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getDefaultGuiOptions_exports = {};\n__export(getDefaultGuiOptions_exports, {\n getDefaultGuiOptions: () => getDefaultGuiOptions\n});\nmodule.exports = __toCommonJS(getDefaultGuiOptions_exports);\nvar import_getGuiDefaultPath = require(\"./getGuiDefaultPath\");\nasync function getDefaultGuiOptions(param) {\n var { cwd = \".\" } = param;\n return {\n platform: \"native\",\n components: [\n \"@hanzo/gui\"\n ],\n config: await (0, import_getGuiDefaultPath.getDefaultGuiConfigPath)({\n cwd\n })\n };\n}\n//# sourceMappingURL=getDefaultGuiOptions.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAA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":[]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var getGuiDefaultPath_exports = {};
|
|
24
|
-
__export(getGuiDefaultPath_exports, {
|
|
25
|
-
getDefaultGuiConfigPath: () => getDefaultGuiConfigPath
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(getGuiDefaultPath_exports);
|
|
28
|
-
var import_node_path = require("node:path");
|
|
29
|
-
var import_fs_extra = require("fs-extra");
|
|
30
|
-
let cachedPath = "";
|
|
31
|
-
async function getDefaultGuiConfigPath({
|
|
32
|
-
cwd = ".",
|
|
33
|
-
cache = true
|
|
34
|
-
}) {
|
|
35
|
-
if (cache && cachedPath) {
|
|
36
|
-
return cachedPath;
|
|
37
|
-
}
|
|
38
|
-
const defaultPaths = ["hanzogui.config.ts", (0, import_node_path.join)("src", "hanzogui.config.ts")].map(p => (0, import_node_path.join)(cwd, p));
|
|
39
|
-
const existing = (await Promise.all(defaultPaths.map(path => (0, import_fs_extra.pathExists)(path)))).findIndex(x => !!x);
|
|
40
|
-
const found = defaultPaths[existing];
|
|
41
|
-
if (!found) {
|
|
42
|
-
throw new Error(`No found hanzogui.config.ts`);
|
|
43
|
-
}
|
|
44
|
-
cachedPath = found;
|
|
45
|
-
return found;
|
|
46
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var getGuiDefaultPath_exports = {};
|
|
26
|
-
__export(getGuiDefaultPath_exports, {
|
|
27
|
-
getDefaultGuiConfigPath: () => getDefaultGuiConfigPath
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(getGuiDefaultPath_exports);
|
|
30
|
-
var import_path = require("path");
|
|
31
|
-
var import_fs_extra = require("fs-extra");
|
|
32
|
-
var cachedPath = "";
|
|
33
|
-
async function getDefaultGuiConfigPath(param) {
|
|
34
|
-
var {
|
|
35
|
-
cwd = ".",
|
|
36
|
-
cache = true
|
|
37
|
-
} = param;
|
|
38
|
-
if (cache && cachedPath) {
|
|
39
|
-
return cachedPath;
|
|
40
|
-
}
|
|
41
|
-
var defaultPaths = ["hanzogui.config.ts", (0, import_path.join)("src", "hanzogui.config.ts")].map(function (p) {
|
|
42
|
-
return (0, import_path.join)(cwd, p);
|
|
43
|
-
});
|
|
44
|
-
var existing = (await Promise.all(defaultPaths.map(function (path) {
|
|
45
|
-
return (0, import_fs_extra.pathExists)(path);
|
|
46
|
-
}))).findIndex(function (x) {
|
|
47
|
-
return !!x;
|
|
48
|
-
});
|
|
49
|
-
var found = defaultPaths[existing];
|
|
50
|
-
if (!found) {
|
|
51
|
-
throw new Error(`No found hanzogui.config.ts`);
|
|
52
|
-
}
|
|
53
|
-
cachedPath = found;
|
|
54
|
-
return found;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=getGuiDefaultPath.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","getGuiDefaultPath_exports","getDefaultGuiConfigPath","module","exports","import_path","require","import_fs_extra","cachedPath","param","cwd","cache","defaultPaths","join","map","p","existing","Promise","path","pathExists","findIndex","x","found","Error"],"sources":["getGuiDefaultPath.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getGuiDefaultPath_exports = {};\n__export(getGuiDefaultPath_exports, {\n getDefaultGuiConfigPath: () => getDefaultGuiConfigPath\n});\nmodule.exports = __toCommonJS(getGuiDefaultPath_exports);\nvar import_path = require(\"path\");\nvar import_fs_extra = require(\"fs-extra\");\nvar cachedPath = \"\";\nasync function getDefaultGuiConfigPath(param) {\n var { cwd = \".\", cache = true } = param;\n if (cache && cachedPath) {\n return cachedPath;\n }\n var defaultPaths = [\n \"hanzogui.config.ts\",\n (0, import_path.join)(\"src\", \"hanzogui.config.ts\")\n ].map(function(p) {\n return (0, import_path.join)(cwd, p);\n });\n var existing = (await Promise.all(defaultPaths.map(function(path) {\n return (0, import_fs_extra.pathExists)(path);\n }))).findIndex(function(x) {\n return !!x;\n });\n var found = defaultPaths[existing];\n if (!found) {\n throw new Error(`No found hanzogui.config.ts`);\n }\n cachedPath = found;\n return found;\n}\n//# sourceMappingURL=getGuiDefaultPath.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CA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,UAAU,EAAE;IACvB,OAAOA,UAAU;EACnB;EACA,IAAII,YAAY,GAAG,CACjB,oBAAoB,EACpB,CAAC,CAAC,EAAEP,WAAW,CAACQ,IAAI,EAAE,KAAK,EAAE,oBAAoB,CAAC,CACnD,CAACC,GAAG,CAAC,UAASC,CAAC,EAAE;IAChB,OAAO,CAAC,CAAC,EAAEV,WAAW,CAACQ,IAAI,EAAEH,GAAG,EAAEK,CAAC,CAAC;EACtC,CAAC,CAAC;EACF,IAAIC,QAAQ,GAAG,CAAC,MAAMC,OAAO,CAAC9B,GAAG,CAACyB,YAAY,CAACE,GAAG,CAAC,UAASI,IAAI,EAAE;IAChE,OAAO,CAAC,CAAC,EAAEX,eAAe,CAACY,UAAU,EAAED,IAAI,CAAC;EAC9C,CAAC,CAAC,CAAC,EAAEE,SAAS,CAAC,UAASC,CAAC,EAAE;IACzB,OAAO,CAAC,CAACA,CAAC;EACZ,CAAC,CAAC;EACF,IAAIC,KAAK,GAAGV,YAAY,CAACI,QAAQ,CAAC;EAClC,IAAI,CAACM,KAAK,EAAE;IACV,MAAM,IAAIC,KAAK,CAAC,6BAA6B,CAAC;EAChD;EACAf,UAAU,GAAGc,KAAK;EAClB,OAAOA,KAAK;AACd","ignoreList":[]}
|
package/dist/getGuiOptions.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var getGuiOptions_exports = {};
|
|
24
|
-
__export(getGuiOptions_exports, {
|
|
25
|
-
getGuiOptions: () => getGuiOptions
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(getGuiOptions_exports);
|
|
28
|
-
var import_readGuiOptions = require("./readGuiOptions.cjs");
|
|
29
|
-
async function getGuiOptions({
|
|
30
|
-
cwd = "."
|
|
31
|
-
}) {
|
|
32
|
-
return (await (0, import_readGuiOptions.readGuiOptions)({
|
|
33
|
-
cwd
|
|
34
|
-
})).options;
|
|
35
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var getGuiOptions_exports = {};
|
|
26
|
-
__export(getGuiOptions_exports, {
|
|
27
|
-
getGuiOptions: () => getGuiOptions
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(getGuiOptions_exports);
|
|
30
|
-
var import_readGuiOptions = require("./readGuiOptions.native.js");
|
|
31
|
-
async function getGuiOptions(param) {
|
|
32
|
-
var {
|
|
33
|
-
cwd = "."
|
|
34
|
-
} = param;
|
|
35
|
-
return (await (0, import_readGuiOptions.readGuiOptions)({
|
|
36
|
-
cwd
|
|
37
|
-
})).options;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=getGuiOptions.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","getGuiOptions_exports","getGuiOptions","module","exports","import_readGuiOptions","require","param","cwd","readGuiOptions","options"],"sources":["getGuiOptions.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar getGuiOptions_exports = {};\n__export(getGuiOptions_exports, {\n getGuiOptions: () => getGuiOptions\n});\nmodule.exports = __toCommonJS(getGuiOptions_exports);\nvar import_readGuiOptions = require(\"./readGuiOptions\");\nasync function getGuiOptions(param) {\n var { cwd = \".\" } = param;\n return (await (0, import_readGuiOptions.readGuiOptions)({\n cwd\n })).options;\n}\n//# sourceMappingURL=getGuiOptions.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEyB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,qBAAqB,GAAG,CAAC,CAAC;AAC9BhB,QAAQ,CAACgB,qBAAqB,EAAE;EAC9BC,aAAa,EAAEA,CAAA,KAAMA;AACvB,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGN,YAAY,CAACG,qBAAqB,CAAC;AACpD,IAAII,qBAAqB,GAAGC,OAAO,CAAC,4BAAkB,CAAC;AACvD,eAAeJ,aAAaA,CAACK,KAAK,EAAE;EAClC,IAAI;IAAEC,GAAG,GAAG;EAAI,CAAC,GAAGD,KAAK;EACzB,OAAO,CAAC,MAAM,CAAC,CAAC,EAAEF,qBAAqB,CAACI,cAAc,EAAE;IACtDD;EACF,CAAC,CAAC,EAAEE,OAAO;AACb","ignoreList":[]}
|
package/dist/index.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
8
|
-
get: () => from[key],
|
|
9
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
}), mod);
|
|
18
|
-
var index_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
__reExport(index_exports, require("./readGuiOptions.cjs"), module.exports);
|
|
21
|
-
__reExport(index_exports, require("./getGuiDefaultPath.cjs"), module.exports);
|
|
22
|
-
__reExport(index_exports, require("./getGuiOptions.cjs"), module.exports);
|
package/dist/index.native.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
-
get: () => from[key],
|
|
11
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
20
|
-
var index_exports = {};
|
|
21
|
-
module.exports = __toCommonJS(index_exports);
|
|
22
|
-
__reExport(index_exports, require("./readGuiOptions.native.js"), module.exports);
|
|
23
|
-
__reExport(index_exports, require("./getGuiDefaultPath.native.js"), module.exports);
|
|
24
|
-
__reExport(index_exports, require("./getGuiOptions.native.js"), module.exports);
|
|
25
|
-
//# sourceMappingURL=index.native.js.map
|
package/dist/index.native.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__reExport","target","mod","secondTarget","__toCommonJS","value","index_exports","module","exports","require"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./readGuiOptions\"), module.exports);\n__reExport(index_exports, require(\"./getGuiDefaultPath\"), module.exports);\n__reExport(index_exports, require(\"./getGuiOptions\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAG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ACC,OAAO,CAAC;AACzER,UAAU,CAACM,aAAa,EAAEG,OAAO,CAAC,2BAAiB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC","ignoreList":[]}
|
package/dist/readGuiOptions.cjs
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var readGuiOptions_exports = {};
|
|
24
|
-
__export(readGuiOptions_exports, {
|
|
25
|
-
readGuiOptions: () => readGuiOptions
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(readGuiOptions_exports);
|
|
28
|
-
var import_node_path = require("node:path");
|
|
29
|
-
var import_fs_extra = require("fs-extra");
|
|
30
|
-
var import_getDefaultGuiOptions = require("./getDefaultGuiOptions.cjs");
|
|
31
|
-
async function readGuiOptions({
|
|
32
|
-
cwd = "."
|
|
33
|
-
}) {
|
|
34
|
-
const filePath = (0, import_node_path.join)(cwd, "hanzogui.json");
|
|
35
|
-
if (!(await (0, import_fs_extra.pathExists)(filePath))) {
|
|
36
|
-
return {
|
|
37
|
-
exists: false,
|
|
38
|
-
options: await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({
|
|
39
|
-
cwd
|
|
40
|
-
})
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
try {
|
|
44
|
-
const options = await (0, import_fs_extra.readJSON)(filePath);
|
|
45
|
-
if (!Array.isArray(options.components)) {
|
|
46
|
-
throw new Error(`Invalid components: not string[]`);
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
exists: true,
|
|
50
|
-
options: {
|
|
51
|
-
...(!options.config && (await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({
|
|
52
|
-
cwd
|
|
53
|
-
}))),
|
|
54
|
-
...options
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
} catch (err) {
|
|
58
|
-
console.error(`Error reading hanzogui.json: ${err.message} ${err.stack}`);
|
|
59
|
-
return {
|
|
60
|
-
exists: false,
|
|
61
|
-
options: await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({
|
|
62
|
-
cwd
|
|
63
|
-
})
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var readGuiOptions_exports = {};
|
|
26
|
-
__export(readGuiOptions_exports, {
|
|
27
|
-
readGuiOptions: () => readGuiOptions
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(readGuiOptions_exports);
|
|
30
|
-
var import_path = require("path");
|
|
31
|
-
var import_fs_extra = require("fs-extra");
|
|
32
|
-
var import_getDefaultGuiOptions = require("./getDefaultGuiOptions.native.js");
|
|
33
|
-
async function readGuiOptions(param) {
|
|
34
|
-
var {
|
|
35
|
-
cwd = "."
|
|
36
|
-
} = param;
|
|
37
|
-
var filePath = (0, import_path.join)(cwd, "hanzogui.json");
|
|
38
|
-
if (!(await (0, import_fs_extra.pathExists)(filePath))) {
|
|
39
|
-
return {
|
|
40
|
-
exists: false,
|
|
41
|
-
options: await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({
|
|
42
|
-
cwd
|
|
43
|
-
})
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
var options = await (0, import_fs_extra.readJSON)(filePath);
|
|
48
|
-
if (!Array.isArray(options.components)) {
|
|
49
|
-
throw new Error(`Invalid components: not string[]`);
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
exists: true,
|
|
53
|
-
options: {
|
|
54
|
-
...(!options.config && (await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({
|
|
55
|
-
cwd
|
|
56
|
-
}))),
|
|
57
|
-
...options
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
} catch (err) {
|
|
61
|
-
console.error(`Error reading hanzogui.json: ${err.message} ${err.stack}`);
|
|
62
|
-
return {
|
|
63
|
-
exists: false,
|
|
64
|
-
options: await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({
|
|
65
|
-
cwd
|
|
66
|
-
})
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=readGuiOptions.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","readGuiOptions_exports","readGuiOptions","module","exports","import_path","require","import_fs_extra","import_getDefaultGuiOptions","param","cwd","filePath","join","pathExists","exists","options","getDefaultGuiOptions","readJSON","Array","isArray","components","Error","config","err","console","error","message","stack"],"sources":["readGuiOptions.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar readGuiOptions_exports = {};\n__export(readGuiOptions_exports, {\n readGuiOptions: () => readGuiOptions\n});\nmodule.exports = __toCommonJS(readGuiOptions_exports);\nvar import_path = require(\"path\");\nvar import_fs_extra = require(\"fs-extra\");\nvar import_getDefaultGuiOptions = require(\"./getDefaultGuiOptions\");\nasync function readGuiOptions(param) {\n var { cwd = \".\" } = param;\n var filePath = (0, import_path.join)(cwd, \"hanzogui.json\");\n if (!await (0, import_fs_extra.pathExists)(filePath)) {\n return {\n exists: false,\n options: await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({\n cwd\n })\n };\n }\n try {\n var options = await (0, import_fs_extra.readJSON)(filePath);\n if (!Array.isArray(options.components)) {\n throw new Error(`Invalid components: not string[]`);\n }\n return {\n exists: true,\n options: {\n ...!options.config && await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({\n cwd\n }),\n ...options\n }\n };\n } catch (err) {\n console.error(`Error reading hanzogui.json: ${err.message} ${err.stack}`);\n return {\n exists: false,\n options: await (0, import_getDefaultGuiOptions.getDefaultGuiOptions)({\n cwd\n })\n };\n }\n}\n//# sourceMappingURL=readGuiOptions.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI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