hot-updater 0.20.10 → 0.20.11
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 +2 -1
- package/dist/config.d.cts +8 -1
- package/dist/config.d.ts +8 -1
- package/dist/config.js +2 -2
- package/dist/{fingerprint-GdFiNHO5.js → fingerprint-CvRtj7M7.js} +10 -5
- package/dist/{fingerprint-CIcTVPau.cjs → fingerprint-DNKLuLyV.cjs} +15 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require('./picocolors-y8lGs7d-.cjs');
|
|
2
|
-
const require_fingerprint = require('./fingerprint-
|
|
2
|
+
const require_fingerprint = require('./fingerprint-DNKLuLyV.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/config.ts
|
|
5
5
|
const defineConfig = (config) => {
|
|
@@ -8,6 +8,7 @@ const defineConfig = (config) => {
|
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.createAndInjectFingerprintFiles = require_fingerprint.createAndInjectFingerprintFiles;
|
|
11
|
+
exports.createFingerprintJSON = require_fingerprint.createFingerprintJSON;
|
|
11
12
|
exports.defineConfig = defineConfig;
|
|
12
13
|
exports.generateFingerprint = require_fingerprint.generateFingerprint;
|
|
13
14
|
exports.generateFingerprints = require_fingerprint.generateFingerprints;
|
package/dist/config.d.cts
CHANGED
|
@@ -26,6 +26,13 @@ declare const createAndInjectFingerprintFiles: ({
|
|
|
26
26
|
androidPaths: string[];
|
|
27
27
|
iosPaths: string[];
|
|
28
28
|
}>;
|
|
29
|
+
declare const createFingerprintJSON: (fingerprint: {
|
|
30
|
+
ios: FingerprintResult;
|
|
31
|
+
android: FingerprintResult;
|
|
32
|
+
}) => Promise<{
|
|
33
|
+
ios: FingerprintResult;
|
|
34
|
+
android: FingerprintResult;
|
|
35
|
+
}>;
|
|
29
36
|
declare const readLocalFingerprint: () => Promise<{
|
|
30
37
|
ios: FingerprintResult | null;
|
|
31
38
|
android: FingerprintResult | null;
|
|
@@ -34,4 +41,4 @@ declare const readLocalFingerprint: () => Promise<{
|
|
|
34
41
|
//#region src/config.d.ts
|
|
35
42
|
declare const defineConfig: (config: ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput)) => ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput);
|
|
36
43
|
//#endregion
|
|
37
|
-
export { createAndInjectFingerprintFiles, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
|
44
|
+
export { createAndInjectFingerprintFiles, createFingerprintJSON, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
package/dist/config.d.ts
CHANGED
|
@@ -26,6 +26,13 @@ declare const createAndInjectFingerprintFiles: ({
|
|
|
26
26
|
androidPaths: string[];
|
|
27
27
|
iosPaths: string[];
|
|
28
28
|
}>;
|
|
29
|
+
declare const createFingerprintJSON: (fingerprint: {
|
|
30
|
+
ios: FingerprintResult;
|
|
31
|
+
android: FingerprintResult;
|
|
32
|
+
}) => Promise<{
|
|
33
|
+
ios: FingerprintResult;
|
|
34
|
+
android: FingerprintResult;
|
|
35
|
+
}>;
|
|
29
36
|
declare const readLocalFingerprint: () => Promise<{
|
|
30
37
|
ios: FingerprintResult | null;
|
|
31
38
|
android: FingerprintResult | null;
|
|
@@ -34,4 +41,4 @@ declare const readLocalFingerprint: () => Promise<{
|
|
|
34
41
|
//#region src/config.d.ts
|
|
35
42
|
declare const defineConfig: (config: ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput)) => ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput);
|
|
36
43
|
//#endregion
|
|
37
|
-
export { createAndInjectFingerprintFiles, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
|
44
|
+
export { createAndInjectFingerprintFiles, createFingerprintJSON, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
package/dist/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./picocolors-BnzanxXs.js";
|
|
2
|
-
import { createAndInjectFingerprintFiles, generateFingerprint, generateFingerprints, readLocalFingerprint } from "./fingerprint-
|
|
2
|
+
import { createAndInjectFingerprintFiles, createFingerprintJSON, generateFingerprint, generateFingerprints, readLocalFingerprint } from "./fingerprint-CvRtj7M7.js";
|
|
3
3
|
|
|
4
4
|
//#region src/config.ts
|
|
5
5
|
const defineConfig = (config) => {
|
|
@@ -7,4 +7,4 @@ const defineConfig = (config) => {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
|
-
export { createAndInjectFingerprintFiles, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
|
10
|
+
export { createAndInjectFingerprintFiles, createFingerprintJSON, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
|
@@ -14955,7 +14955,8 @@ function getOtaFingerprintOptions(platform, path$11, options) {
|
|
|
14955
14955
|
"WORKSPACE.bazel"
|
|
14956
14956
|
]),
|
|
14957
14957
|
"android/**/*",
|
|
14958
|
-
"ios/**/*"
|
|
14958
|
+
"ios/**/*",
|
|
14959
|
+
...options.ignorePaths ?? []
|
|
14959
14960
|
],
|
|
14960
14961
|
sourceSkips: SourceSkips.GitIgnore | SourceSkips.PackageJsonScriptsAll | SourceSkips.PackageJsonAndroidAndIosScriptsIfNotContainRun | SourceSkips.ExpoConfigAll | SourceSkips.ExpoConfigVersions | SourceSkips.ExpoConfigNames | SourceSkips.ExpoConfigRuntimeVersionIfString | SourceSkips.ExpoConfigAssets | SourceSkips.ExpoConfigExtraSection | SourceSkips.ExpoConfigEASProject | SourceSkips.ExpoConfigSchemes,
|
|
14961
14962
|
extraSources: processExtraSources(options.extraSources ?? [], path$11),
|
|
@@ -15027,12 +15028,11 @@ const generateFingerprint = async (platform) => {
|
|
|
15027
15028
|
};
|
|
15028
15029
|
const createAndInjectFingerprintFiles = async ({ platform } = {}) => {
|
|
15029
15030
|
const localFingerprint = await readLocalFingerprint();
|
|
15030
|
-
const FINGERPRINT_FILE_PATH = path.join(getCwd(), "fingerprint.json");
|
|
15031
15031
|
const newFingerprint = await generateFingerprints();
|
|
15032
15032
|
const androidPaths = [];
|
|
15033
15033
|
const iosPaths = [];
|
|
15034
15034
|
if (!localFingerprint || !platform) {
|
|
15035
|
-
await
|
|
15035
|
+
await createFingerprintJSON(newFingerprint);
|
|
15036
15036
|
const { paths: _androidPaths } = await setFingerprintHash("android", newFingerprint.android.hash);
|
|
15037
15037
|
androidPaths.push(..._androidPaths);
|
|
15038
15038
|
const { paths: _iosPaths } = await setFingerprintHash("ios", newFingerprint.ios.hash);
|
|
@@ -15043,7 +15043,7 @@ const createAndInjectFingerprintFiles = async ({ platform } = {}) => {
|
|
|
15043
15043
|
ios: localFingerprint.ios || newFingerprint.ios,
|
|
15044
15044
|
[platform]: newFingerprint[platform]
|
|
15045
15045
|
};
|
|
15046
|
-
await
|
|
15046
|
+
await createFingerprintJSON(nextFingerprints);
|
|
15047
15047
|
const { paths: _platformPaths } = await setFingerprintHash(platform, newFingerprint[platform].hash);
|
|
15048
15048
|
switch (platform) {
|
|
15049
15049
|
case "android":
|
|
@@ -15060,6 +15060,11 @@ const createAndInjectFingerprintFiles = async ({ platform } = {}) => {
|
|
|
15060
15060
|
iosPaths
|
|
15061
15061
|
};
|
|
15062
15062
|
};
|
|
15063
|
+
const createFingerprintJSON = async (fingerprint) => {
|
|
15064
|
+
const FINGERPRINT_FILE_PATH = path.join(getCwd(), "fingerprint.json");
|
|
15065
|
+
await fs.promises.writeFile(FINGERPRINT_FILE_PATH, JSON.stringify(fingerprint, null, 2));
|
|
15066
|
+
return fingerprint;
|
|
15067
|
+
};
|
|
15063
15068
|
const readLocalFingerprint = async () => {
|
|
15064
15069
|
const FINGERPRINT_FILE_PATH = path.join(getCwd(), "fingerprint.json");
|
|
15065
15070
|
try {
|
|
@@ -15071,4 +15076,4 @@ const readLocalFingerprint = async () => {
|
|
|
15071
15076
|
};
|
|
15072
15077
|
|
|
15073
15078
|
//#endregion
|
|
15074
|
-
export { AndroidConfigParser, IosConfigParser, createAndInjectFingerprintFiles, generateFingerprint, generateFingerprints, getFingerprintDiff, isFingerprintEquals, nativeFingerprint, readLocalFingerprint, require_base64_js, require_out, require_plist, showFingerprintDiff };
|
|
15079
|
+
export { AndroidConfigParser, IosConfigParser, createAndInjectFingerprintFiles, createFingerprintJSON, generateFingerprint, generateFingerprints, getFingerprintDiff, isFingerprintEquals, nativeFingerprint, readLocalFingerprint, require_base64_js, require_out, require_plist, showFingerprintDiff };
|
|
@@ -14960,7 +14960,8 @@ function getOtaFingerprintOptions(platform, path$14, options) {
|
|
|
14960
14960
|
"WORKSPACE.bazel"
|
|
14961
14961
|
]),
|
|
14962
14962
|
"android/**/*",
|
|
14963
|
-
"ios/**/*"
|
|
14963
|
+
"ios/**/*",
|
|
14964
|
+
...options.ignorePaths ?? []
|
|
14964
14965
|
],
|
|
14965
14966
|
sourceSkips: __expo_fingerprint.SourceSkips.GitIgnore | __expo_fingerprint.SourceSkips.PackageJsonScriptsAll | __expo_fingerprint.SourceSkips.PackageJsonAndroidAndIosScriptsIfNotContainRun | __expo_fingerprint.SourceSkips.ExpoConfigAll | __expo_fingerprint.SourceSkips.ExpoConfigVersions | __expo_fingerprint.SourceSkips.ExpoConfigNames | __expo_fingerprint.SourceSkips.ExpoConfigRuntimeVersionIfString | __expo_fingerprint.SourceSkips.ExpoConfigAssets | __expo_fingerprint.SourceSkips.ExpoConfigExtraSection | __expo_fingerprint.SourceSkips.ExpoConfigEASProject | __expo_fingerprint.SourceSkips.ExpoConfigSchemes,
|
|
14966
14967
|
extraSources: processExtraSources(options.extraSources ?? [], path$14),
|
|
@@ -15032,12 +15033,11 @@ const generateFingerprint = async (platform) => {
|
|
|
15032
15033
|
};
|
|
15033
15034
|
const createAndInjectFingerprintFiles = async ({ platform } = {}) => {
|
|
15034
15035
|
const localFingerprint = await readLocalFingerprint();
|
|
15035
|
-
const FINGERPRINT_FILE_PATH = path.default.join((0, __hot_updater_plugin_core.getCwd)(), "fingerprint.json");
|
|
15036
15036
|
const newFingerprint = await generateFingerprints();
|
|
15037
15037
|
const androidPaths = [];
|
|
15038
15038
|
const iosPaths = [];
|
|
15039
15039
|
if (!localFingerprint || !platform) {
|
|
15040
|
-
await
|
|
15040
|
+
await createFingerprintJSON(newFingerprint);
|
|
15041
15041
|
const { paths: _androidPaths } = await setFingerprintHash("android", newFingerprint.android.hash);
|
|
15042
15042
|
androidPaths.push(..._androidPaths);
|
|
15043
15043
|
const { paths: _iosPaths } = await setFingerprintHash("ios", newFingerprint.ios.hash);
|
|
@@ -15048,7 +15048,7 @@ const createAndInjectFingerprintFiles = async ({ platform } = {}) => {
|
|
|
15048
15048
|
ios: localFingerprint.ios || newFingerprint.ios,
|
|
15049
15049
|
[platform]: newFingerprint[platform]
|
|
15050
15050
|
};
|
|
15051
|
-
await
|
|
15051
|
+
await createFingerprintJSON(nextFingerprints);
|
|
15052
15052
|
const { paths: _platformPaths } = await setFingerprintHash(platform, newFingerprint[platform].hash);
|
|
15053
15053
|
switch (platform) {
|
|
15054
15054
|
case "android":
|
|
@@ -15065,6 +15065,11 @@ const createAndInjectFingerprintFiles = async ({ platform } = {}) => {
|
|
|
15065
15065
|
iosPaths
|
|
15066
15066
|
};
|
|
15067
15067
|
};
|
|
15068
|
+
const createFingerprintJSON = async (fingerprint) => {
|
|
15069
|
+
const FINGERPRINT_FILE_PATH = path.default.join((0, __hot_updater_plugin_core.getCwd)(), "fingerprint.json");
|
|
15070
|
+
await fs.default.promises.writeFile(FINGERPRINT_FILE_PATH, JSON.stringify(fingerprint, null, 2));
|
|
15071
|
+
return fingerprint;
|
|
15072
|
+
};
|
|
15068
15073
|
const readLocalFingerprint = async () => {
|
|
15069
15074
|
const FINGERPRINT_FILE_PATH = path.default.join((0, __hot_updater_plugin_core.getCwd)(), "fingerprint.json");
|
|
15070
15075
|
try {
|
|
@@ -15094,6 +15099,12 @@ Object.defineProperty(exports, 'createAndInjectFingerprintFiles', {
|
|
|
15094
15099
|
return createAndInjectFingerprintFiles;
|
|
15095
15100
|
}
|
|
15096
15101
|
});
|
|
15102
|
+
Object.defineProperty(exports, 'createFingerprintJSON', {
|
|
15103
|
+
enumerable: true,
|
|
15104
|
+
get: function () {
|
|
15105
|
+
return createFingerprintJSON;
|
|
15106
|
+
}
|
|
15107
|
+
});
|
|
15097
15108
|
Object.defineProperty(exports, 'generateFingerprint', {
|
|
15098
15109
|
enumerable: true,
|
|
15099
15110
|
get: function () {
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const require_picocolors$1 = require('./picocolors-y8lGs7d-.cjs');
|
|
3
|
-
const require_fingerprint = require('./fingerprint-
|
|
3
|
+
const require_fingerprint = require('./fingerprint-DNKLuLyV.cjs');
|
|
4
4
|
let node_events = require("node:events");
|
|
5
5
|
node_events = require_picocolors$1.__toESM(node_events);
|
|
6
6
|
let node_child_process = require("node:child_process");
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { __commonJS, __require, __toESM, require_picocolors } from "./picocolors-BnzanxXs.js";
|
|
3
|
-
import { AndroidConfigParser, IosConfigParser, createAndInjectFingerprintFiles, generateFingerprints, getFingerprintDiff, isFingerprintEquals, nativeFingerprint, readLocalFingerprint, require_base64_js, require_out, require_plist, showFingerprintDiff } from "./fingerprint-
|
|
3
|
+
import { AndroidConfigParser, IosConfigParser, createAndInjectFingerprintFiles, generateFingerprints, getFingerprintDiff, isFingerprintEquals, nativeFingerprint, readLocalFingerprint, require_base64_js, require_out, require_plist, showFingerprintDiff } from "./fingerprint-CvRtj7M7.js";
|
|
4
4
|
import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
|
|
5
5
|
import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
6
6
|
import path from "node:path";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hot-updater",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.11",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hot-updater": "./dist/index.js"
|
|
7
7
|
},
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"cosmiconfig": "9.0.0",
|
|
54
54
|
"cosmiconfig-typescript-loader": "5.0.0",
|
|
55
55
|
"es-git": "0.4.0",
|
|
56
|
-
"@hot-updater/
|
|
57
|
-
"@hot-updater/
|
|
58
|
-
"@hot-updater/core": "0.20.
|
|
56
|
+
"@hot-updater/console": "0.20.11",
|
|
57
|
+
"@hot-updater/core": "0.20.11",
|
|
58
|
+
"@hot-updater/plugin-core": "0.20.11"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"fast-xml-parser": "^5.2.3",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"read-package-up": "^11.0.0",
|
|
87
87
|
"semver": "^7.6.3",
|
|
88
88
|
"uuidv7": "^1.0.2",
|
|
89
|
-
"@hot-updater/
|
|
90
|
-
"@hot-updater/
|
|
91
|
-
"@hot-updater/
|
|
92
|
-
"@hot-updater/supabase": "0.20.
|
|
89
|
+
"@hot-updater/aws": "0.20.11",
|
|
90
|
+
"@hot-updater/cloudflare": "0.20.11",
|
|
91
|
+
"@hot-updater/firebase": "0.20.11",
|
|
92
|
+
"@hot-updater/supabase": "0.20.11"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
95
|
"@hot-updater/aws": "*",
|