hot-updater 0.1.3 → 0.1.4

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/config.cjs CHANGED
@@ -23,7 +23,7 @@ __export(config_exports, {
23
23
  defineConfig: () => defineConfig
24
24
  });
25
25
  module.exports = __toCommonJS(config_exports);
26
- var defineConfig = (config) => typeof config === "function" ? config() : config;
26
+ var defineConfig = async (config) => typeof config === "function" ? await config() : config;
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
  0 && (module.exports = {
29
29
  defineConfig
package/dist/config.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Config } from '@hot-updater/plugin-core';
2
2
 
3
- declare const defineConfig: (config: Config | (() => Config)) => Config;
3
+ declare const defineConfig: (config: Config | (() => Config) | (() => Promise<Config>)) => Promise<Config>;
4
4
 
5
5
  export { defineConfig };
package/dist/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Config } from '@hot-updater/plugin-core';
2
2
 
3
- declare const defineConfig: (config: Config | (() => Config)) => Config;
3
+ declare const defineConfig: (config: Config | (() => Config) | (() => Promise<Config>)) => Promise<Config>;
4
4
 
5
5
  export { defineConfig };
package/dist/config.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk-XCQPUXG2.js";
2
2
 
3
3
  // src/config.ts
4
- var defineConfig = (config) => typeof config === "function" ? config() : config;
4
+ var defineConfig = async (config) => typeof config === "function" ? await config() : config;
5
5
  export {
6
6
  defineConfig
7
7
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hot-updater",
3
3
  "type": "module",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "bin": {
6
6
  "hot-updater": "./dist/index.js"
7
7
  },
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@clack/prompts": "^0.7.0",
32
32
  "@hono/node-server": "^1.13.4",
33
- "@hot-updater/console": "0.1.3",
33
+ "@hot-updater/console": "0.1.4",
34
34
  "boxen": "^8.0.1",
35
35
  "commander": "^11.1.0",
36
36
  "cosmiconfig": "^9.0.0",
@@ -40,8 +40,8 @@
40
40
  "plist": "^3.1.0",
41
41
  "read-package-up": "^11.0.0",
42
42
  "workspace-tools": "^0.36.4",
43
- "@hot-updater/plugin-core": "0.1.3",
44
- "@hot-updater/utils": "0.1.3"
43
+ "@hot-updater/plugin-core": "0.1.4",
44
+ "@hot-updater/utils": "0.1.4"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/connect": "^3.4.38",