@hanzogui/helpers-node 8.2.1 → 8.3.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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}\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AAC;AAC1F,IAAIE,4BAA4B,GAAG,CAAC,CAAC;AACrChB,QAAQ,CAACgB,4BAA4B,EAAE;EACrCC,oBAAoB,EAAEA,CAAA,KAAMA;AAC9B,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGN,YAAY,CAACG,4BAA4B,CAAC;AAC3D,IAAII,wBAAwB,GAAGC,OAAO,CAAC,+BAAqB,CAAC;AAC7D,eAAeJ,oBAAoBA,CAACK,KAAK,EAAE;EACzC,IAAI;IAAEC,GAAG,GAAG;EAAI,CAAC,GAAGD,KAAK;EACzB,OAAO;IACLE,QAAQ,EAAE,QAAQ;IAClBC,UAAU,EAAE,CACV,YAAY,CACb;IACDC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAEN,wBAAwB,CAACO,uBAAuB,EAAE;MAClEJ;IACF,CAAC;EACH,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EA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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":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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.native.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,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,IAAIV,iBAAiB,CAACO,IAAI,CAAC,EACrC,IAAI,CAACL,YAAY,CAACS,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/Cb,SAAS,CAACW,EAAE,EAAEI,GAAG,EAAE;MAAEE,GAAG,EAAEA,CAAA,KAAML,IAAI,CAACG,GAAG,CAAC;MAAEG,UAAU,EAAE,EAAEJ,IAAI,GAAGX,gBAAgB,CAACS,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACI;IAAW,CAAC,CAAC;EACxH;EACA,OAAOP,EAAE;AACX,CAAC;AACD,IAAIQ,UAAU,GAAGA,CAACC,MAAM,EAAEC,GAAG,EAAEC,YAAY,MAAMZ,WAAW,CAACU,MAAM,EAAEC,GAAG,EAAE,SAAS,CAAC,EAAEC,YAAY,IAAIZ,WAAW,CAACY,YAAY,EAAED,GAAG,EAAE,SAAS,CAAC,CAAC;AAChJ,IAAIE,YAAY,GAAIF,GAAG,IAAKX,WAAW,CAACV,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEwB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAEH,GAAG,CAAC;AAC1F,IAAII,aAAa,GAAG,CAAC,CAAC;AACtBC,MAAM,CAACC,OAAO,GAAGJ,YAAY,CAACE,aAAa,CAAC;AAC5CN,UAAU,CAACM,aAAa,EAAEG,OAAO,CAAC,4BAAkB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC;AACtER,UAAU,CAACM,aAAa,EAAEG,OAAO,CAAC,+BAAqB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC;AACzER,UAAU,CAACM,aAAa,EAAEG,OAAO,CAAC,2BAAiB,CAAC,EAAEF,MAAM,CAACC,OAAO,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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.getDefa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CAAC,CAAC,OAAOQ,GAAG,EAAE;IACZC,OAAO,CAACC,KAAK,CAAC,gCAAgCF,GAAG,CAACG,OAAO,IAAIH,GAAG,CAACI,KAAK,EAAE,CAAC;IACzE,OAAO;MACLb,MAAM,EAAE,KAAK;MACbC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAEP,2BAA2B,CAACQ,oBAAoB,EAAE;QACnEN;MACF,CAAC;IACH,CAAC;EACH;AACF","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/helpers-node",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"clean:build": "hanzogui-build clean:build"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@hanzogui/types": "8.
|
|
23
|
+
"@hanzogui/types": "8.3.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@hanzogui/build": "8.
|
|
26
|
+
"@hanzogui/build": "8.3.0",
|
|
27
27
|
"fs-extra": "^11.2.0"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|