hot-updater 0.1.5 → 0.2.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.
@@ -0,0 +1,5 @@
1
+ import { type Config } from "@hot-updater/plugin-core";
2
+ import type { AddressInfo } from "net";
3
+ export declare const CONSOLE_DEFAULT_PORT = 1422;
4
+ export declare const getConsolePort: (config?: Config) => Promise<number>;
5
+ export declare const openConsole: (port: number, listeningListener?: ((info: AddressInfo) => void) | undefined) => Promise<void>;
@@ -0,0 +1,8 @@
1
+ import { type Platform } from "@hot-updater/plugin-core";
2
+ export interface DeployOptions {
3
+ targetAppVersion?: string;
4
+ platform?: Platform;
5
+ forceUpdate: boolean;
6
+ interactive: boolean;
7
+ }
8
+ export declare const deploy: (options: DeployOptions) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const generateSecretKey: () => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const prune: () => Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare const banner: string;
2
+ export declare const printBanner: () => void;
package/dist/config.cjs CHANGED
@@ -1,30 +1,38 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/config.ts
21
- var config_exports = {};
22
- __export(config_exports, {
23
- defineConfig: () => defineConfig
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = function(exports1, definition) {
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = function(obj, prop) {
13
+ return Object.prototype.hasOwnProperty.call(obj, prop);
14
+ };
15
+ })();
16
+ (()=>{
17
+ __webpack_require__.r = function(exports1) {
18
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
19
+ value: 'Module'
20
+ });
21
+ Object.defineProperty(exports1, '__esModule', {
22
+ value: true
23
+ });
24
+ };
25
+ })();
26
+ var __webpack_exports__ = {};
27
+ __webpack_require__.r(__webpack_exports__);
28
+ __webpack_require__.d(__webpack_exports__, {
29
+ defineConfig: function() {
30
+ return defineConfig;
31
+ }
24
32
  });
25
- module.exports = __toCommonJS(config_exports);
26
- var defineConfig = async (config) => typeof config === "function" ? await config() : config;
27
- // Annotate the CommonJS export names for ESM import in node:
28
- 0 && (module.exports = {
29
- defineConfig
33
+ const defineConfig = async (config)=>"function" == typeof config ? await config() : config;
34
+ var __webpack_export_target__ = exports;
35
+ for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
36
+ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
37
+ value: true
30
38
  });
package/dist/config.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- import { Config } from '@hot-updater/plugin-core';
2
-
3
- declare const defineConfig: (config: Config | (() => Config) | (() => Promise<Config>)) => Promise<Config>;
4
-
5
- export { defineConfig };
1
+ import type { Config } from "@hot-updater/plugin-core";
2
+ export declare const defineConfig: (config: Config | (() => Config) | (() => Promise<Config>)) => Promise<Config>;
package/dist/config.js CHANGED
@@ -1,10 +1,4 @@
1
- import {
2
- init_esm_shims
3
- } from "./chunk-M76SRQA4.js";
4
-
5
- // src/config.ts
6
- init_esm_shims();
7
- var defineConfig = async (config) => typeof config === "function" ? await config() : config;
8
- export {
9
- defineConfig
10
- };
1
+ import __rslib_shim_module__ from 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ const defineConfig = async (config)=>"function" == typeof config ? await config() : config;
4
+ export { defineConfig };