@hot-updater/core 0.25.9 → 0.25.10

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/index.cjs CHANGED
@@ -1,6 +1,54 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
1
22
 
23
+ //#endregion
24
+ let path = require("path");
25
+ path = __toESM(path);
26
+
27
+ //#region src/hotUpdateDirUtil.ts
28
+ const HOT_UPDATE_DIR_NAME = ".hot-updater";
29
+ const HOT_UPDATE_OUTPUT_DIR_NAME = "output";
30
+ const HOT_UPDATE_LOG_DIR_NAME = "log";
31
+ const HotUpdateDirUtil = {
32
+ dirName: HOT_UPDATE_DIR_NAME,
33
+ outputDirName: HOT_UPDATE_OUTPUT_DIR_NAME,
34
+ logDirName: HOT_UPDATE_LOG_DIR_NAME,
35
+ outputGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_OUTPUT_DIR_NAME}`,
36
+ logGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_LOG_DIR_NAME}`,
37
+ getDirPath: ({ cwd }) => {
38
+ return path.default.join(cwd, HOT_UPDATE_DIR_NAME);
39
+ },
40
+ getDefaultOutputPath: ({ cwd }) => {
41
+ return path.default.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_OUTPUT_DIR_NAME);
42
+ },
43
+ getLogDirPath: ({ cwd }) => {
44
+ return path.default.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_LOG_DIR_NAME);
45
+ }
46
+ };
47
+
48
+ //#endregion
2
49
  //#region src/uuid.ts
3
50
  const NIL_UUID = "00000000-0000-0000-0000-000000000000";
4
51
 
5
52
  //#endregion
53
+ exports.HotUpdateDirUtil = HotUpdateDirUtil;
6
54
  exports.NIL_UUID = NIL_UUID;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,27 @@
1
+ //#region src/hotUpdateDirUtil.d.ts
2
+ declare const HotUpdateDirUtil: {
3
+ readonly dirName: ".hot-updater";
4
+ readonly outputDirName: "output";
5
+ readonly logDirName: "log";
6
+ readonly outputGitignorePath: ".hot-updater/output";
7
+ readonly logGitignorePath: ".hot-updater/log";
8
+ readonly getDirPath: ({
9
+ cwd
10
+ }: {
11
+ cwd: string;
12
+ }) => string;
13
+ readonly getDefaultOutputPath: ({
14
+ cwd
15
+ }: {
16
+ cwd: string;
17
+ }) => string;
18
+ readonly getLogDirPath: ({
19
+ cwd
20
+ }: {
21
+ cwd: string;
22
+ }) => string;
23
+ };
24
+ //#endregion
1
25
  //#region src/types.d.ts
2
26
  type Platform = "ios" | "android";
3
27
  type BundleMetadata = {
@@ -171,4 +195,4 @@ type UpdateBundleParams = {
171
195
  //#region src/uuid.d.ts
172
196
  declare const NIL_UUID = "00000000-0000-0000-0000-000000000000";
173
197
  //#endregion
174
- export { AppUpdateInfo, AppVersionGetBundlesArgs, Bundle, BundleMetadata, FingerprintGetBundlesArgs, GetBundlesArgs, NIL_UUID, Platform, SnakeCaseBundle, UpdateBundleParams, UpdateInfo, UpdateStatus, UpdateStrategy };
198
+ export { AppUpdateInfo, AppVersionGetBundlesArgs, Bundle, BundleMetadata, FingerprintGetBundlesArgs, GetBundlesArgs, HotUpdateDirUtil, NIL_UUID, Platform, SnakeCaseBundle, UpdateBundleParams, UpdateInfo, UpdateStatus, UpdateStrategy };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,27 @@
1
+ //#region src/hotUpdateDirUtil.d.ts
2
+ declare const HotUpdateDirUtil: {
3
+ readonly dirName: ".hot-updater";
4
+ readonly outputDirName: "output";
5
+ readonly logDirName: "log";
6
+ readonly outputGitignorePath: ".hot-updater/output";
7
+ readonly logGitignorePath: ".hot-updater/log";
8
+ readonly getDirPath: ({
9
+ cwd
10
+ }: {
11
+ cwd: string;
12
+ }) => string;
13
+ readonly getDefaultOutputPath: ({
14
+ cwd
15
+ }: {
16
+ cwd: string;
17
+ }) => string;
18
+ readonly getLogDirPath: ({
19
+ cwd
20
+ }: {
21
+ cwd: string;
22
+ }) => string;
23
+ };
24
+ //#endregion
1
25
  //#region src/types.d.ts
2
26
  type Platform = "ios" | "android";
3
27
  type BundleMetadata = {
@@ -171,4 +195,4 @@ type UpdateBundleParams = {
171
195
  //#region src/uuid.d.ts
172
196
  declare const NIL_UUID = "00000000-0000-0000-0000-000000000000";
173
197
  //#endregion
174
- export { AppUpdateInfo, AppVersionGetBundlesArgs, Bundle, BundleMetadata, FingerprintGetBundlesArgs, GetBundlesArgs, NIL_UUID, Platform, SnakeCaseBundle, UpdateBundleParams, UpdateInfo, UpdateStatus, UpdateStrategy };
198
+ export { AppUpdateInfo, AppVersionGetBundlesArgs, Bundle, BundleMetadata, FingerprintGetBundlesArgs, GetBundlesArgs, HotUpdateDirUtil, NIL_UUID, Platform, SnakeCaseBundle, UpdateBundleParams, UpdateInfo, UpdateStatus, UpdateStrategy };
package/dist/index.js CHANGED
@@ -1,5 +1,29 @@
1
+ import path from "path";
2
+
3
+ //#region src/hotUpdateDirUtil.ts
4
+ const HOT_UPDATE_DIR_NAME = ".hot-updater";
5
+ const HOT_UPDATE_OUTPUT_DIR_NAME = "output";
6
+ const HOT_UPDATE_LOG_DIR_NAME = "log";
7
+ const HotUpdateDirUtil = {
8
+ dirName: HOT_UPDATE_DIR_NAME,
9
+ outputDirName: HOT_UPDATE_OUTPUT_DIR_NAME,
10
+ logDirName: HOT_UPDATE_LOG_DIR_NAME,
11
+ outputGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_OUTPUT_DIR_NAME}`,
12
+ logGitignorePath: `${HOT_UPDATE_DIR_NAME}/${HOT_UPDATE_LOG_DIR_NAME}`,
13
+ getDirPath: ({ cwd }) => {
14
+ return path.join(cwd, HOT_UPDATE_DIR_NAME);
15
+ },
16
+ getDefaultOutputPath: ({ cwd }) => {
17
+ return path.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_OUTPUT_DIR_NAME);
18
+ },
19
+ getLogDirPath: ({ cwd }) => {
20
+ return path.join(cwd, HOT_UPDATE_DIR_NAME, HOT_UPDATE_LOG_DIR_NAME);
21
+ }
22
+ };
23
+
24
+ //#endregion
1
25
  //#region src/uuid.ts
2
26
  const NIL_UUID = "00000000-0000-0000-0000-000000000000";
3
27
 
4
28
  //#endregion
5
- export { NIL_UUID };
29
+ export { HotUpdateDirUtil, NIL_UUID };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/core",
3
- "version": "0.25.9",
3
+ "version": "0.25.10",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,