hot-updater 0.12.7 → 0.13.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,5 +1,4 @@
1
- import { type Config } from "@hot-updater/plugin-core";
1
+ import { type ConfigResponse } from "@hot-updater/plugin-core";
2
2
  import type { AddressInfo } from "net";
3
- export declare const CONSOLE_DEFAULT_PORT = 1422;
4
- export declare const getConsolePort: (config?: Config) => Promise<number>;
3
+ export declare const getConsolePort: (config?: ConfigResponse) => Promise<number>;
5
4
  export declare const openConsole: (port: number, listeningListener?: ((info: AddressInfo) => void) | undefined) => Promise<void>;
@@ -4,5 +4,7 @@ export interface DeployOptions {
4
4
  platform?: Platform;
5
5
  forceUpdate: boolean;
6
6
  interactive: boolean;
7
+ channel: string;
8
+ message?: string;
7
9
  }
8
10
  export declare const deploy: (options: DeployOptions) => Promise<void>;
package/dist/config.cjs CHANGED
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  defineConfig: ()=>defineConfig
28
28
  });
29
- const defineConfig = async (config)=>config;
29
+ const defineConfig = (config)=>config;
30
30
  var __webpack_export_target__ = exports;
31
31
  for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
32
32
  if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
package/dist/config.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { Config, HotUpdaterConfigOptions } from "@hot-updater/plugin-core";
2
- export declare const defineConfig: (config: Config | ((options: HotUpdaterConfigOptions) => Config) | ((options: HotUpdaterConfigOptions) => Promise<Config>)) => Promise<Config | ((options: HotUpdaterConfigOptions) => Config) | ((options: HotUpdaterConfigOptions) => Promise<Config>)>;
1
+ import type { ConfigInput, HotUpdaterConfigOptions } from "@hot-updater/plugin-core";
2
+ export declare const defineConfig: (config: ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput)) => ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput);
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import __rslib_shim_module__ from 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
- const defineConfig = async (config)=>config;
3
+ const defineConfig = (config)=>config;
4
4
  export { defineConfig };