hot-updater 0.19.5 → 0.19.6
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/chunk-BLXvPPr8.js +30 -0
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +7 -7
- package/dist/config.d.ts +7 -7
- package/dist/config.js +2 -2
- package/dist/fingerprint-CR9fxyym.cjs +7937 -0
- package/dist/fingerprint-CUOWrVz2.js +7884 -0
- package/dist/index.cjs +12787 -20366
- package/dist/index.js +12760 -20336
- package/dist/{picocolors-OFVOrezl.js → picocolors-DR-zskCv.js} +2 -29
- package/dist/plugins/babel.js +2 -1
- package/package.json +9 -9
- package/dist/fingerprint-B0eg9rrR.cjs +0 -140
- package/dist/fingerprint-LuSkVvkB.js +0 -110
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
|
|
3
|
+
//#region rolldown:runtime
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __commonJS = (cb, mod) => function() {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
15
|
+
key = keys[i];
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: ((k) => from[k]).bind(null, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { __commonJS, __require, __toESM };
|
package/dist/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_fingerprint = require('./fingerprint-
|
|
1
|
+
const require_fingerprint = require('./fingerprint-CR9fxyym.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/config.ts
|
|
4
4
|
const defineConfig = (config) => {
|
|
@@ -6,7 +6,7 @@ const defineConfig = (config) => {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
exports.
|
|
9
|
+
exports.createAndInjectFingerprintFiles = require_fingerprint.createAndInjectFingerprintFiles;
|
|
10
10
|
exports.defineConfig = defineConfig;
|
|
11
11
|
exports.generateFingerprint = require_fingerprint.generateFingerprint;
|
|
12
12
|
exports.generateFingerprints = require_fingerprint.generateFingerprints;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigInput, HotUpdaterConfigOptions } from "@hot-updater/plugin-core";
|
|
1
|
+
import { ConfigInput, HotUpdaterConfigOptions, Platform } from "@hot-updater/plugin-core";
|
|
2
2
|
import { FingerprintSource } from "@expo/fingerprint";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/fingerprint/index.d.ts
|
|
@@ -7,16 +7,16 @@ type FingerprintResult = {
|
|
|
7
7
|
hash: string;
|
|
8
8
|
sources: FingerprintSource[];
|
|
9
9
|
};
|
|
10
|
-
/**
|
|
11
|
-
* Calculates the fingerprint of the native parts project of the project.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
10
|
declare const generateFingerprints: () => Promise<{
|
|
15
11
|
ios: FingerprintResult;
|
|
16
12
|
android: FingerprintResult;
|
|
17
13
|
}>;
|
|
18
14
|
declare const generateFingerprint: (platform: "ios" | "android") => Promise<FingerprintResult>;
|
|
19
|
-
declare const
|
|
15
|
+
declare const createAndInjectFingerprintFiles: ({
|
|
16
|
+
platform
|
|
17
|
+
}?: {
|
|
18
|
+
platform?: Platform;
|
|
19
|
+
}) => Promise<{
|
|
20
20
|
ios: FingerprintResult;
|
|
21
21
|
android: FingerprintResult;
|
|
22
22
|
}>;
|
|
@@ -28,4 +28,4 @@ declare const readLocalFingerprint: () => Promise<{
|
|
|
28
28
|
//#region src/config.d.ts
|
|
29
29
|
declare const defineConfig: (config: ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput)) => ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput);
|
|
30
30
|
//#endregion
|
|
31
|
-
export {
|
|
31
|
+
export { createAndInjectFingerprintFiles, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigInput, HotUpdaterConfigOptions } from "@hot-updater/plugin-core";
|
|
1
|
+
import { ConfigInput, HotUpdaterConfigOptions, Platform } from "@hot-updater/plugin-core";
|
|
2
2
|
import { FingerprintSource } from "@expo/fingerprint";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/fingerprint/index.d.ts
|
|
@@ -7,16 +7,16 @@ type FingerprintResult = {
|
|
|
7
7
|
hash: string;
|
|
8
8
|
sources: FingerprintSource[];
|
|
9
9
|
};
|
|
10
|
-
/**
|
|
11
|
-
* Calculates the fingerprint of the native parts project of the project.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
10
|
declare const generateFingerprints: () => Promise<{
|
|
15
11
|
ios: FingerprintResult;
|
|
16
12
|
android: FingerprintResult;
|
|
17
13
|
}>;
|
|
18
14
|
declare const generateFingerprint: (platform: "ios" | "android") => Promise<FingerprintResult>;
|
|
19
|
-
declare const
|
|
15
|
+
declare const createAndInjectFingerprintFiles: ({
|
|
16
|
+
platform
|
|
17
|
+
}?: {
|
|
18
|
+
platform?: Platform;
|
|
19
|
+
}) => Promise<{
|
|
20
20
|
ios: FingerprintResult;
|
|
21
21
|
android: FingerprintResult;
|
|
22
22
|
}>;
|
|
@@ -28,4 +28,4 @@ declare const readLocalFingerprint: () => Promise<{
|
|
|
28
28
|
//#region src/config.d.ts
|
|
29
29
|
declare const defineConfig: (config: ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput)) => ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput);
|
|
30
30
|
//#endregion
|
|
31
|
-
export {
|
|
31
|
+
export { createAndInjectFingerprintFiles, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
package/dist/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createAndInjectFingerprintFiles, generateFingerprint, generateFingerprints, readLocalFingerprint } from "./fingerprint-CUOWrVz2.js";
|
|
2
2
|
|
|
3
3
|
//#region src/config.ts
|
|
4
4
|
const defineConfig = (config) => {
|
|
@@ -6,4 +6,4 @@ const defineConfig = (config) => {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
export {
|
|
9
|
+
export { createAndInjectFingerprintFiles, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|