hot-updater 0.29.4 → 0.29.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/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{keyGeneration-BUwsQluQ.mjs → keyGeneration-C-wo8uCK.mjs} +54 -2
- package/dist/{keyGeneration-DtcuI22w.cjs → keyGeneration-DnXZHcmM.cjs} +54 -2
- package/package.json +15 -14
package/dist/config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_keyGeneration = require("./keyGeneration-
|
|
2
|
+
const require_keyGeneration = require("./keyGeneration-DnXZHcmM.cjs");
|
|
3
3
|
//#region src/config.ts
|
|
4
4
|
const defineConfig = (config) => {
|
|
5
5
|
return config;
|
package/dist/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createAndInjectFingerprintFiles, c as generateFingerprints, n as getPublicKeyFromPrivate, o as createFingerprintJSON, r as loadPrivateKey, s as generateFingerprint, u as readLocalFingerprint } from "./keyGeneration-
|
|
1
|
+
import { a as createAndInjectFingerprintFiles, c as generateFingerprints, n as getPublicKeyFromPrivate, o as createFingerprintJSON, r as loadPrivateKey, s as generateFingerprint, u as readLocalFingerprint } from "./keyGeneration-C-wo8uCK.mjs";
|
|
2
2
|
//#region src/config.ts
|
|
3
3
|
const defineConfig = (config) => {
|
|
4
4
|
return config;
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_keyGeneration = require("./keyGeneration-
|
|
2
|
+
const require_keyGeneration = require("./keyGeneration-DnXZHcmM.cjs");
|
|
3
3
|
let node_events = require("node:events");
|
|
4
4
|
let node_child_process = require("node:child_process");
|
|
5
5
|
node_child_process = require_keyGeneration.__toESM(node_child_process);
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { S as __toESM, _ as parsePlist, a as createAndInjectFingerprintFiles, b as __commonJSMin, c as generateFingerprints, d as getFingerprintDiff, f as showFingerprintDiff, g as IosConfigParser, h as warnIfExpoCNG, i as saveKeyPair, l as nativeFingerprint, m as require_out, n as getPublicKeyFromPrivate, p as isFingerprintEquals, r as loadPrivateKey, t as generateKeyPair, u as readLocalFingerprint, v as require_base64_js, x as __require, y as AndroidConfigParser } from "./keyGeneration-
|
|
2
|
+
import { S as __toESM, _ as parsePlist, a as createAndInjectFingerprintFiles, b as __commonJSMin, c as generateFingerprints, d as getFingerprintDiff, f as showFingerprintDiff, g as IosConfigParser, h as warnIfExpoCNG, i as saveKeyPair, l as nativeFingerprint, m as require_out, n as getPublicKeyFromPrivate, p as isFingerprintEquals, r as loadPrivateKey, t as generateKeyPair, u as readLocalFingerprint, v as require_base64_js, x as __require, y as AndroidConfigParser } from "./keyGeneration-C-wo8uCK.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
|
|
5
5
|
import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
@@ -1356,7 +1356,7 @@ var XMLParser = class {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
};
|
|
1358
1358
|
//#endregion
|
|
1359
|
-
//#region ../../node_modules/.pnpm/path-expression-matcher@1.
|
|
1359
|
+
//#region ../../node_modules/.pnpm/path-expression-matcher@1.2.0/node_modules/path-expression-matcher/src/Expression.js
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Expression - Parses and stores a tag pattern expression
|
|
1362
1362
|
*
|
|
@@ -1507,7 +1507,7 @@ var Expression = class {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
1509
|
//#endregion
|
|
1510
|
-
//#region ../../node_modules/.pnpm/path-expression-matcher@1.
|
|
1510
|
+
//#region ../../node_modules/.pnpm/path-expression-matcher@1.2.0/node_modules/path-expression-matcher/src/Matcher.js
|
|
1511
1511
|
/**
|
|
1512
1512
|
* Matcher - Tracks current path in XML/JSON tree and matches against Expressions
|
|
1513
1513
|
*
|
|
@@ -1524,6 +1524,18 @@ var Expression = class {
|
|
|
1524
1524
|
* const expr = new Expression("root.users.user");
|
|
1525
1525
|
* matcher.matches(expr); // true
|
|
1526
1526
|
*/
|
|
1527
|
+
/**
|
|
1528
|
+
* Names of methods that mutate Matcher state.
|
|
1529
|
+
* Any attempt to call these on a read-only view throws a TypeError.
|
|
1530
|
+
* @type {Set<string>}
|
|
1531
|
+
*/
|
|
1532
|
+
const MUTATING_METHODS = new Set([
|
|
1533
|
+
"push",
|
|
1534
|
+
"pop",
|
|
1535
|
+
"reset",
|
|
1536
|
+
"updateCurrent",
|
|
1537
|
+
"restore"
|
|
1538
|
+
]);
|
|
1527
1539
|
var Matcher = class {
|
|
1528
1540
|
/**
|
|
1529
1541
|
* Create a new Matcher
|
|
@@ -1784,6 +1796,46 @@ var Matcher = class {
|
|
|
1784
1796
|
this.path = snapshot.path.map((node) => ({ ...node }));
|
|
1785
1797
|
this.siblingStacks = snapshot.siblingStacks.map((map) => new Map(map));
|
|
1786
1798
|
}
|
|
1799
|
+
/**
|
|
1800
|
+
* Return a read-only view of this matcher.
|
|
1801
|
+
*
|
|
1802
|
+
* The returned object exposes all query/inspection methods but throws a
|
|
1803
|
+
* TypeError if any state-mutating method is called (`push`, `pop`, `reset`,
|
|
1804
|
+
* `updateCurrent`, `restore`). Property reads (e.g. `.path`, `.separator`)
|
|
1805
|
+
* are allowed but the returned arrays/objects are frozen so callers cannot
|
|
1806
|
+
* mutate internal state through them either.
|
|
1807
|
+
*
|
|
1808
|
+
* @returns {ReadOnlyMatcher} A proxy that forwards read operations and blocks writes.
|
|
1809
|
+
*
|
|
1810
|
+
* @example
|
|
1811
|
+
* const matcher = new Matcher();
|
|
1812
|
+
* matcher.push("root", {});
|
|
1813
|
+
*
|
|
1814
|
+
* const ro = matcher.readOnly();
|
|
1815
|
+
* ro.matches(expr); // ✓ works
|
|
1816
|
+
* ro.getCurrentTag(); // ✓ works
|
|
1817
|
+
* ro.push("child", {}); // ✗ throws TypeError
|
|
1818
|
+
* ro.reset(); // ✗ throws TypeError
|
|
1819
|
+
*/
|
|
1820
|
+
readOnly() {
|
|
1821
|
+
return new Proxy(this, {
|
|
1822
|
+
get(target, prop, receiver) {
|
|
1823
|
+
if (MUTATING_METHODS.has(prop)) return () => {
|
|
1824
|
+
throw new TypeError(`Cannot call '${prop}' on a read-only Matcher. Obtain a writable instance to mutate state.`);
|
|
1825
|
+
};
|
|
1826
|
+
const value = Reflect.get(target, prop, receiver);
|
|
1827
|
+
if (prop === "path" || prop === "siblingStacks") return Object.freeze(Array.isArray(value) ? value.map((item) => item instanceof Map ? Object.freeze(new Map(item)) : Object.freeze({ ...item })) : value);
|
|
1828
|
+
if (typeof value === "function") return value.bind(target);
|
|
1829
|
+
return value;
|
|
1830
|
+
},
|
|
1831
|
+
set(_target, prop) {
|
|
1832
|
+
throw new TypeError(`Cannot set property '${String(prop)}' on a read-only Matcher.`);
|
|
1833
|
+
},
|
|
1834
|
+
deleteProperty(_target, prop) {
|
|
1835
|
+
throw new TypeError(`Cannot delete property '${String(prop)}' from a read-only Matcher.`);
|
|
1836
|
+
}
|
|
1837
|
+
});
|
|
1838
|
+
}
|
|
1787
1839
|
};
|
|
1788
1840
|
//#endregion
|
|
1789
1841
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.1.3/node_modules/fast-xml-builder/src/orderedJs2Xml.js
|
|
@@ -1359,7 +1359,7 @@ var XMLParser = class {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
};
|
|
1361
1361
|
//#endregion
|
|
1362
|
-
//#region ../../node_modules/.pnpm/path-expression-matcher@1.
|
|
1362
|
+
//#region ../../node_modules/.pnpm/path-expression-matcher@1.2.0/node_modules/path-expression-matcher/src/Expression.js
|
|
1363
1363
|
/**
|
|
1364
1364
|
* Expression - Parses and stores a tag pattern expression
|
|
1365
1365
|
*
|
|
@@ -1510,7 +1510,7 @@ var Expression = class {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
};
|
|
1512
1512
|
//#endregion
|
|
1513
|
-
//#region ../../node_modules/.pnpm/path-expression-matcher@1.
|
|
1513
|
+
//#region ../../node_modules/.pnpm/path-expression-matcher@1.2.0/node_modules/path-expression-matcher/src/Matcher.js
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Matcher - Tracks current path in XML/JSON tree and matches against Expressions
|
|
1516
1516
|
*
|
|
@@ -1527,6 +1527,18 @@ var Expression = class {
|
|
|
1527
1527
|
* const expr = new Expression("root.users.user");
|
|
1528
1528
|
* matcher.matches(expr); // true
|
|
1529
1529
|
*/
|
|
1530
|
+
/**
|
|
1531
|
+
* Names of methods that mutate Matcher state.
|
|
1532
|
+
* Any attempt to call these on a read-only view throws a TypeError.
|
|
1533
|
+
* @type {Set<string>}
|
|
1534
|
+
*/
|
|
1535
|
+
const MUTATING_METHODS = new Set([
|
|
1536
|
+
"push",
|
|
1537
|
+
"pop",
|
|
1538
|
+
"reset",
|
|
1539
|
+
"updateCurrent",
|
|
1540
|
+
"restore"
|
|
1541
|
+
]);
|
|
1530
1542
|
var Matcher = class {
|
|
1531
1543
|
/**
|
|
1532
1544
|
* Create a new Matcher
|
|
@@ -1787,6 +1799,46 @@ var Matcher = class {
|
|
|
1787
1799
|
this.path = snapshot.path.map((node) => ({ ...node }));
|
|
1788
1800
|
this.siblingStacks = snapshot.siblingStacks.map((map) => new Map(map));
|
|
1789
1801
|
}
|
|
1802
|
+
/**
|
|
1803
|
+
* Return a read-only view of this matcher.
|
|
1804
|
+
*
|
|
1805
|
+
* The returned object exposes all query/inspection methods but throws a
|
|
1806
|
+
* TypeError if any state-mutating method is called (`push`, `pop`, `reset`,
|
|
1807
|
+
* `updateCurrent`, `restore`). Property reads (e.g. `.path`, `.separator`)
|
|
1808
|
+
* are allowed but the returned arrays/objects are frozen so callers cannot
|
|
1809
|
+
* mutate internal state through them either.
|
|
1810
|
+
*
|
|
1811
|
+
* @returns {ReadOnlyMatcher} A proxy that forwards read operations and blocks writes.
|
|
1812
|
+
*
|
|
1813
|
+
* @example
|
|
1814
|
+
* const matcher = new Matcher();
|
|
1815
|
+
* matcher.push("root", {});
|
|
1816
|
+
*
|
|
1817
|
+
* const ro = matcher.readOnly();
|
|
1818
|
+
* ro.matches(expr); // ✓ works
|
|
1819
|
+
* ro.getCurrentTag(); // ✓ works
|
|
1820
|
+
* ro.push("child", {}); // ✗ throws TypeError
|
|
1821
|
+
* ro.reset(); // ✗ throws TypeError
|
|
1822
|
+
*/
|
|
1823
|
+
readOnly() {
|
|
1824
|
+
return new Proxy(this, {
|
|
1825
|
+
get(target, prop, receiver) {
|
|
1826
|
+
if (MUTATING_METHODS.has(prop)) return () => {
|
|
1827
|
+
throw new TypeError(`Cannot call '${prop}' on a read-only Matcher. Obtain a writable instance to mutate state.`);
|
|
1828
|
+
};
|
|
1829
|
+
const value = Reflect.get(target, prop, receiver);
|
|
1830
|
+
if (prop === "path" || prop === "siblingStacks") return Object.freeze(Array.isArray(value) ? value.map((item) => item instanceof Map ? Object.freeze(new Map(item)) : Object.freeze({ ...item })) : value);
|
|
1831
|
+
if (typeof value === "function") return value.bind(target);
|
|
1832
|
+
return value;
|
|
1833
|
+
},
|
|
1834
|
+
set(_target, prop) {
|
|
1835
|
+
throw new TypeError(`Cannot set property '${String(prop)}' on a read-only Matcher.`);
|
|
1836
|
+
},
|
|
1837
|
+
deleteProperty(_target, prop) {
|
|
1838
|
+
throw new TypeError(`Cannot delete property '${String(prop)}' from a read-only Matcher.`);
|
|
1839
|
+
}
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1790
1842
|
};
|
|
1791
1843
|
//#endregion
|
|
1792
1844
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.1.3/node_modules/fast-xml-builder/src/orderedJs2Xml.js
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hot-updater",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.29.
|
|
4
|
+
"version": "0.29.6",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hot-updater": "./dist/index.cjs"
|
|
7
7
|
},
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"jiti": "2.6.1",
|
|
48
48
|
"kysely": "0.28.9",
|
|
49
49
|
"sql-formatter": "15.6.10",
|
|
50
|
-
"@hot-updater/
|
|
51
|
-
"@hot-updater/apple-helper": "0.29.
|
|
52
|
-
"@hot-updater/
|
|
53
|
-
"@hot-updater/core": "0.29.
|
|
54
|
-
"@hot-updater/
|
|
55
|
-
"@hot-updater/
|
|
56
|
-
"@hot-updater/
|
|
50
|
+
"@hot-updater/cli-tools": "0.29.6",
|
|
51
|
+
"@hot-updater/apple-helper": "0.29.6",
|
|
52
|
+
"@hot-updater/console": "0.29.6",
|
|
53
|
+
"@hot-updater/core": "0.29.6",
|
|
54
|
+
"@hot-updater/android-helper": "0.29.6",
|
|
55
|
+
"@hot-updater/plugin-core": "0.29.6",
|
|
56
|
+
"@hot-updater/server": "0.29.6"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@bacons/xcode": "1.0.0-alpha.24",
|
|
@@ -72,12 +72,13 @@
|
|
|
72
72
|
"plist": "^3.1.0",
|
|
73
73
|
"read-package-up": "^11.0.0",
|
|
74
74
|
"semver": "^7.6.3",
|
|
75
|
-
"
|
|
76
|
-
"@hot-updater/
|
|
77
|
-
"@hot-updater/
|
|
78
|
-
"@hot-updater/firebase": "0.29.
|
|
79
|
-
"@hot-updater/
|
|
80
|
-
"@hot-updater/
|
|
75
|
+
"typescript": "6.0.2",
|
|
76
|
+
"@hot-updater/aws": "0.29.6",
|
|
77
|
+
"@hot-updater/cloudflare": "0.29.6",
|
|
78
|
+
"@hot-updater/firebase": "0.29.6",
|
|
79
|
+
"@hot-updater/server": "0.29.6",
|
|
80
|
+
"@hot-updater/supabase": "0.29.6",
|
|
81
|
+
"@hot-updater/test-utils": "0.29.6"
|
|
81
82
|
},
|
|
82
83
|
"peerDependencies": {
|
|
83
84
|
"@hot-updater/aws": "*",
|