@hanzogui/helpers-node 8.0.0 → 8.1.1

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.
@@ -31,7 +31,7 @@ async function getDefaultGuiOptions({
31
31
  }) {
32
32
  return {
33
33
  platform: "native",
34
- components: ["hanzogui"],
34
+ components: ["@hanzo/gui"],
35
35
  config: await (0, import_getGuiDefaultPath.getDefaultGuiConfigPath)({
36
36
  cwd
37
37
  })
@@ -34,7 +34,7 @@ async function getDefaultGuiOptions(param) {
34
34
  } = param;
35
35
  return {
36
36
  platform: "native",
37
- components: ["hanzogui"],
37
+ components: ["@hanzo/gui"],
38
38
  config: await (0, import_getGuiDefaultPath.getDefaultGuiConfigPath)({
39
39
  cwd
40
40
  })
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getDefaultGuiOptions_exports","__export","getDefaultGuiOptions","module","exports","import_getGuiDefaultPath","require","param","cwd","platform","components","config","getDefaultGuiConfigPath"],"sources":["../src/getDefaultGuiOptions.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAAAK,4BAAwC;AAExC,IAAAK,wBAAsB,GAAAC,OAAqB;AAAA,eACnCJ,qBAAAK,KAAA;EACR,IAEwB;IAAAC,GAAA;EAAA,IAAAD,KAAA;EACtB,OAAO;IACLE,QAAA,EAAU;IACVC,UAAA,EAAY,CACZ,UAAQ,CACV;IACFC,MAAA,YAAAN,wBAAA,CAAAO,uBAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getDefaultGuiOptions_exports","__export","getDefaultGuiOptions","module","exports","import_getGuiDefaultPath","require","param","cwd","platform","components","config","getDefaultGuiConfigPath"],"sources":["../src/getDefaultGuiOptions.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAAAK,4BAAwC;AAExC,IAAAK,wBAAsB,GAAAC,OAAqB;AAAA,eACnCJ,qBAAAK,KAAA;EACR,IAEwB;IAAAC,GAAA;EAAA,IAAAD,KAAA;EACtB,OAAO;IACLE,QAAA,EAAU;IACVC,UAAA,EAAY,CACZ,YAAQ,CACV;IACFC,MAAA,YAAAN,wBAAA,CAAAO,uBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getGuiDefaultPath_exports","__export","getDefaultGuiConfigPath","module","exports","import_path","require","import_fs_extra","cachedPath","param","cwd","cache","defaultPaths","join","map","p","existing","Promise","all","path","pathExists","findIndex","x","found"],"sources":["../src/getGuiDefaultPath.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAqB,CAAAK,yBAAA;AAErB,IAAAK,WAAA,GAAAC,OAA2B;AAE3B,IAAIC,eAAa,GAAAD,OAAA;AAEjB,IAAAE,UAAA,GAAsB;AAAwB,eACtCN,wBAAAO,KAAA;EACN;IAAAC,GAAQ;IAAAC,KAAA;EAAA,IAAAF,KAAA;EACV,IAIoBE,KAAA,IAAAH,UAAA;IAClB,OAAIA,UAAS;EACX;EACF,IAAAI,YAAA,IAEA,oBAAsB,EAA6D,CAAC,GAAAP,WAClF,CAAAQ,IAAA,6BAAW,EACb,CAAAC,GAAA,WAAAC,CAAA;IACA,OAAM,IAAAV,WACE,CAAAQ,IAAA,EAAAH,GAAQ,EAAIK,CAAA;EAEpB;EACA,IAAIC,QAAQ,UAAAC,OAAA,CAAAC,GAAA,CAAAN,YAAA,CAAAE,GAAA,WAAAK,IAAA;IACV,OAAM,IAAIZ,eAAM,CAAAa,UAAA,EAAAD,IAAA;EAClB,KAAAE,SAAA,WAAAC,CAAA;IAEA,SAAAA,CAAA;EACA;EACF,IAAAC,KAAA,GAAAX,YAAA,CAAAI,QAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","getGuiDefaultPath_exports","__export","getDefaultGuiConfigPath","module","exports","import_path","require","import_fs_extra","cachedPath","param","cwd","cache","defaultPaths","join","map","p","existing","Promise","all","path","pathExists","findIndex","x","found"],"sources":["../src/getGuiDefaultPath.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAqB,CAAAK,yBAAA;AAErB,IAAAK,WAAA,GAAAC,OAA2B;AAE3B,IAAIC,eAAa,GAAAD,OAAA;AAEjB,IAAAE,UAAA,GAAsB;AAAwB,eACtCN,wBAAAO,KAAA;EACN;IAAAC,GAAQ;IAAAC,KAAA;EAAA,IAAAF,KAAA;EACV,IAIoBE,KAAA,IAAAH,UAAA;IAClB,OAAIA,UAAS;EACX;EACF,IAAAI,YAAA,IAEA,oBAAsB,EACpB,CAAC,GAAAP,WAAM,CAAAQ,IAAA,6BAAW,EACpB,CAAAC,GAAA,WAAAC,CAAA;IACA,OAAM,IAAAV,WACE,CAAAQ,IAAA,EAAAH,GAAQ,EAAIK,CAAA;EAEpB;EACA,IAAIC,QAAQ,UAAAC,OAAA,CAAAC,GAAA,CAAAN,YAAA,CAAAE,GAAA,WAAAK,IAAA;IACV,OAAM,IAAIZ,eAAM,CAAAa,UAAA,EAAAD,IAAA;EAClB,KAAAE,SAAA,WAAAC,CAAA;IAEA,SAAAA,CAAA;EACA;EACF,IAAAC,KAAA,GAAAX,YAAA,CAAAI,QAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzogui/helpers-node",
3
- "version": "8.0.0",
3
+ "version": "8.1.1",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -20,10 +20,15 @@
20
20
  "clean:build": "hanzogui-build clean:build"
21
21
  },
22
22
  "dependencies": {
23
- "@hanzogui/types": "8.0.0"
23
+ "@hanzogui/types": "8.1.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@hanzogui/build": "8.0.0",
26
+ "@hanzogui/build": "8.1.1",
27
27
  "fs-extra": "^11.2.0"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/hanzoai/gui.git",
32
+ "directory": "pkgs/core/helpers-node"
28
33
  }
29
34
  }
@@ -9,7 +9,7 @@ export async function getDefaultGuiOptions({
9
9
  }): Promise<GuiOptions> {
10
10
  return {
11
11
  platform: 'native',
12
- components: ['hanzogui'],
12
+ components: ['@hanzo/gui'],
13
13
  config: await getDefaultGuiConfigPath({ cwd }),
14
14
  }
15
15
  }
@@ -16,8 +16,8 @@ export async function getDefaultGuiConfigPath({
16
16
  return cachedPath
17
17
  }
18
18
 
19
- const defaultPaths = ['hanzogui.config.ts', join('src', 'hanzogui.config.ts')].map((p) =>
20
- join(cwd, p)
19
+ const defaultPaths = ['hanzogui.config.ts', join('src', 'hanzogui.config.ts')].map(
20
+ (p) => join(cwd, p)
21
21
  )
22
22
  const existing = (
23
23
  await Promise.all(defaultPaths.map((path) => pathExists(path)))
@@ -6,6 +6,6 @@
6
6
  ],
7
7
  "version": 3,
8
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: ['hanzogui'],\n config: await getDefaultGuiConfigPath({ cwd }),\n }\n}\n"
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
10
  ]
11
11
  }
@@ -6,6 +6,6 @@
6
6
  ],
7
7
  "version": 3,
8
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((p) =>\n 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"
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
10
  ]
11
11
  }