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.
- package/dist/commands/console.d.ts +5 -0
- package/dist/commands/deploy.d.ts +8 -0
- package/dist/commands/generateSecretKey.d.ts +1 -0
- package/dist/commands/prune.d.ts +1 -0
- package/dist/components/banner.d.ts +2 -0
- package/dist/config.cjs +35 -27
- package/dist/config.d.ts +2 -5
- package/dist/config.js +4 -10
- package/dist/index.cjs +15431 -361
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15328 -352
- package/dist/packageJson.d.ts +2 -0
- package/dist/plugins/babel.cjs +17015 -15137
- package/dist/plugins/babel.cjs.LICENSE.txt +8 -0
- package/dist/plugins/babel.d.ts +2 -5
- package/dist/plugins/babel.js +16971 -15101
- package/dist/plugins/babel.js.LICENSE.txt +8 -0
- package/dist/prompts/getPlatform.d.ts +1 -0
- package/dist/utils/createZip.d.ts +1 -0
- package/dist/utils/delay.d.ts +1 -0
- package/dist/utils/formatDate.d.ts +2 -0
- package/dist/utils/getDefaultTargetAppVersion.d.ts +4 -0
- package/dist/utils/getFileHash.d.ts +1 -0
- package/dist/utils/git.d.ts +2 -0
- package/dist/utils/toRotated.d.ts +1 -0
- package/package.json +17 -13
- package/LICENSE +0 -21
- package/dist/chunk-M76SRQA4.js +0 -48
- package/dist/config.d.cts +0 -5
- package/dist/index.d.cts +0 -1
- package/dist/plugins/babel.d.cts +0 -5
|
@@ -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>;
|
package/dist/config.cjs
CHANGED
|
@@ -1,30 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
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
|
-
|
|
3
|
-
|
|
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 };
|