hot-updater 0.18.1 → 0.18.2
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.d.cts +0 -1
- package/dist/config.d.ts +0 -1
- package/dist/index.cjs +37 -37
- package/dist/index.js +68 -68
- package/dist/plugins/babel.cjs +2 -2
- package/dist/plugins/babel.d.cts +0 -1
- package/dist/plugins/babel.d.ts +0 -1
- package/dist/plugins/babel.js +2 -2
- package/package.json +8 -8
package/dist/config.d.cts
CHANGED
|
@@ -2,6 +2,5 @@ import { ConfigInput, HotUpdaterConfigOptions } from "@hot-updater/plugin-core";
|
|
|
2
2
|
|
|
3
3
|
//#region src/config.d.ts
|
|
4
4
|
declare const defineConfig: (config: ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput)) => ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput);
|
|
5
|
-
|
|
6
5
|
//#endregion
|
|
7
6
|
export { defineConfig };
|
package/dist/config.d.ts
CHANGED
|
@@ -2,6 +2,5 @@ import { ConfigInput, HotUpdaterConfigOptions } from "@hot-updater/plugin-core";
|
|
|
2
2
|
|
|
3
3
|
//#region src/config.d.ts
|
|
4
4
|
declare const defineConfig: (config: ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput)) => ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput);
|
|
5
|
-
|
|
6
5
|
//#endregion
|
|
7
6
|
export { defineConfig };
|
package/dist/index.cjs
CHANGED
|
@@ -396,7 +396,7 @@ var require_lrucache = require_picocolors$1.__commonJS({ "../../node_modules/.pn
|
|
|
396
396
|
var LRUCache$2 = class {
|
|
397
397
|
constructor() {
|
|
398
398
|
this.max = 1e3;
|
|
399
|
-
this.map = new Map();
|
|
399
|
+
this.map = /* @__PURE__ */ new Map();
|
|
400
400
|
}
|
|
401
401
|
get(key) {
|
|
402
402
|
const value = this.map.get(key);
|
|
@@ -984,7 +984,7 @@ var require_range = require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/
|
|
|
984
984
|
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
985
985
|
});
|
|
986
986
|
debug("range list", rangeList);
|
|
987
|
-
const rangeMap = new Map();
|
|
987
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
988
988
|
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
989
989
|
for (const comp of comparators) {
|
|
990
990
|
if (isNullSet(comp)) return [comp];
|
|
@@ -9242,7 +9242,7 @@ var require_plist = require_picocolors$1.__commonJS({ "../../node_modules/.pnpm/
|
|
|
9242
9242
|
|
|
9243
9243
|
//#endregion
|
|
9244
9244
|
//#region src/utils/getDefaultTargetAppVersion.ts
|
|
9245
|
-
var import_plist$2 = require_picocolors$1.__toESM(require_plist()
|
|
9245
|
+
var import_plist$2 = require_picocolors$1.__toESM(require_plist());
|
|
9246
9246
|
const getIOSVersion$1 = async (cwd) => {
|
|
9247
9247
|
try {
|
|
9248
9248
|
const plistPath = await findUp("Info.plist", {
|
|
@@ -9371,7 +9371,7 @@ async function getBundleZipTargets(basePath, files) {
|
|
|
9371
9371
|
|
|
9372
9372
|
//#endregion
|
|
9373
9373
|
//#region src/utils/getNativeAppVersion.ts
|
|
9374
|
-
var import_plist$1 = require_picocolors$1.__toESM(require_plist()
|
|
9374
|
+
var import_plist$1 = require_picocolors$1.__toESM(require_plist());
|
|
9375
9375
|
const getNativeAppVersion = async (platform$2) => {
|
|
9376
9376
|
switch (platform$2) {
|
|
9377
9377
|
case "ios": {
|
|
@@ -12154,7 +12154,7 @@ var require_commonjs = require_picocolors$1.__commonJS({ "../../node_modules/.pn
|
|
|
12154
12154
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12155
12155
|
exports.LRUCache = void 0;
|
|
12156
12156
|
const perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
12157
|
-
const warned = new Set();
|
|
12157
|
+
const warned = /* @__PURE__ */ new Set();
|
|
12158
12158
|
/* c8 ignore start */
|
|
12159
12159
|
const PROCESS = typeof process === "object" && !!process ? process : {};
|
|
12160
12160
|
/* c8 ignore start */
|
|
@@ -12417,7 +12417,7 @@ var require_commonjs = require_picocolors$1.__commonJS({ "../../node_modules/.pn
|
|
|
12417
12417
|
if (fetchMethod !== void 0 && typeof fetchMethod !== "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
12418
12418
|
this.#fetchMethod = fetchMethod;
|
|
12419
12419
|
this.#hasFetchMethod = !!fetchMethod;
|
|
12420
|
-
this.#keyMap = new Map();
|
|
12420
|
+
this.#keyMap = /* @__PURE__ */ new Map();
|
|
12421
12421
|
this.#keyList = new Array(max).fill(void 0);
|
|
12422
12422
|
this.#valList = new Array(max).fill(void 0);
|
|
12423
12423
|
this.#next = new UintArray(max);
|
|
@@ -14198,7 +14198,7 @@ const printBanner = () => {
|
|
|
14198
14198
|
|
|
14199
14199
|
//#endregion
|
|
14200
14200
|
//#region src/commands/deploy.ts
|
|
14201
|
-
var import_valid$1 = require_picocolors$1.__toESM(require_valid$1()
|
|
14201
|
+
var import_valid$1 = require_picocolors$1.__toESM(require_valid$1());
|
|
14202
14202
|
const deploy = async (options) => {
|
|
14203
14203
|
printBanner();
|
|
14204
14204
|
const cwd = (0, __hot_updater_plugin_core.getCwd)();
|
|
@@ -15110,7 +15110,7 @@ const getVerboseObject = ({ type: type$1, result, verboseInfo: { escapedCommand,
|
|
|
15110
15110
|
type: type$1,
|
|
15111
15111
|
escapedCommand,
|
|
15112
15112
|
commandId: `${commandId}`,
|
|
15113
|
-
timestamp: new Date(),
|
|
15113
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
15114
15114
|
piped,
|
|
15115
15115
|
result,
|
|
15116
15116
|
options
|
|
@@ -16231,7 +16231,7 @@ const getFromStream = (source, from = "stdout") => {
|
|
|
16231
16231
|
if (sourceStream === null || sourceStream === void 0) throw new TypeError(getInvalidStdioOptionMessage(fdNumber, from, options, isWritable));
|
|
16232
16232
|
return sourceStream;
|
|
16233
16233
|
};
|
|
16234
|
-
const SUBPROCESS_OPTIONS = new WeakMap();
|
|
16234
|
+
const SUBPROCESS_OPTIONS = /* @__PURE__ */ new WeakMap();
|
|
16235
16235
|
const getFdNumber = (fileDescriptors, fdName, isWritable) => {
|
|
16236
16236
|
const fdNumber = parseFdNumber(fdName, isWritable);
|
|
16237
16237
|
validateFdNumber(fdNumber, fdName, isWritable, fileDescriptors);
|
|
@@ -16360,7 +16360,7 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
|
|
|
16360
16360
|
ipcEmitter.connected = false;
|
|
16361
16361
|
ipcEmitter.emit("disconnect");
|
|
16362
16362
|
};
|
|
16363
|
-
const INCOMING_MESSAGES = new WeakMap();
|
|
16363
|
+
const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
16364
16364
|
|
|
16365
16365
|
//#endregion
|
|
16366
16366
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
|
|
@@ -16377,7 +16377,7 @@ const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
|
|
|
16377
16377
|
});
|
|
16378
16378
|
return ipcEmitter;
|
|
16379
16379
|
};
|
|
16380
|
-
const IPC_EMITTERS = new WeakMap();
|
|
16380
|
+
const IPC_EMITTERS = /* @__PURE__ */ new WeakMap();
|
|
16381
16381
|
const forwardEvents = ({ ipcEmitter, anyProcess, channel, isSubprocess }) => {
|
|
16382
16382
|
const boundOnMessage = onMessage.bind(void 0, {
|
|
16383
16383
|
anyProcess,
|
|
@@ -16476,7 +16476,7 @@ const RESPONSE_TYPE = "execa:ipc:response";
|
|
|
16476
16476
|
//#endregion
|
|
16477
16477
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
|
|
16478
16478
|
const startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
16479
|
-
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, new Set());
|
|
16479
|
+
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
|
|
16480
16480
|
const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
|
|
16481
16481
|
const onMessageSent = createDeferred();
|
|
16482
16482
|
const id = strict ? wrappedMessage.id : void 0;
|
|
@@ -16501,7 +16501,7 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
|
|
|
16501
16501
|
await Promise.all(outgoingMessages.map(({ onMessageSent }) => onMessageSent));
|
|
16502
16502
|
}
|
|
16503
16503
|
};
|
|
16504
|
-
const OUTGOING_MESSAGES = new WeakMap();
|
|
16504
|
+
const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
16505
16505
|
const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
|
|
16506
16506
|
const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
|
|
16507
16507
|
|
|
@@ -16573,7 +16573,7 @@ const getSendMethod = (anyProcess) => {
|
|
|
16573
16573
|
PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
|
|
16574
16574
|
return sendMethod;
|
|
16575
16575
|
};
|
|
16576
|
-
const PROCESS_SEND_METHODS = new WeakMap();
|
|
16576
|
+
const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
|
|
16577
16577
|
|
|
16578
16578
|
//#endregion
|
|
16579
16579
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
|
|
@@ -16890,14 +16890,14 @@ const CR_BINARY = CR.codePointAt(0);
|
|
|
16890
16890
|
function isStream(stream$1, { checkOpen = true } = {}) {
|
|
16891
16891
|
return stream$1 !== null && typeof stream$1 === "object" && (stream$1.writable || stream$1.readable || !checkOpen || stream$1.writable === void 0 && stream$1.readable === void 0) && typeof stream$1.pipe === "function";
|
|
16892
16892
|
}
|
|
16893
|
-
function isWritableStream
|
|
16893
|
+
function isWritableStream(stream$1, { checkOpen = true } = {}) {
|
|
16894
16894
|
return isStream(stream$1, { checkOpen }) && (stream$1.writable || !checkOpen) && typeof stream$1.write === "function" && typeof stream$1.end === "function" && typeof stream$1.writable === "boolean" && typeof stream$1.writableObjectMode === "boolean" && typeof stream$1.destroy === "function" && typeof stream$1.destroyed === "boolean";
|
|
16895
16895
|
}
|
|
16896
|
-
function isReadableStream
|
|
16896
|
+
function isReadableStream(stream$1, { checkOpen = true } = {}) {
|
|
16897
16897
|
return isStream(stream$1, { checkOpen }) && (stream$1.readable || !checkOpen) && typeof stream$1.read === "function" && typeof stream$1.readable === "boolean" && typeof stream$1.readableObjectMode === "boolean" && typeof stream$1.destroy === "function" && typeof stream$1.destroyed === "boolean";
|
|
16898
16898
|
}
|
|
16899
16899
|
function isDuplexStream(stream$1, options) {
|
|
16900
|
-
return isWritableStream
|
|
16900
|
+
return isWritableStream(stream$1, options) && isReadableStream(stream$1, options);
|
|
16901
16901
|
}
|
|
16902
16902
|
|
|
16903
16903
|
//#endregion
|
|
@@ -16984,7 +16984,7 @@ function h({ preventCancel: r = !1 } = {}) {
|
|
|
16984
16984
|
//#endregion
|
|
16985
16985
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
|
|
16986
16986
|
const getAsyncIterable = (stream$1) => {
|
|
16987
|
-
if (isReadableStream
|
|
16987
|
+
if (isReadableStream(stream$1, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream$1);
|
|
16988
16988
|
if (typeof stream$1?.[Symbol.asyncIterator] === "function") return stream$1;
|
|
16989
16989
|
if (toString.call(stream$1) === "[object ReadableStream]") return h.call(stream$1);
|
|
16990
16990
|
throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
@@ -17683,10 +17683,10 @@ const KNOWN_STDIO_STRINGS = new Set([
|
|
|
17683
17683
|
"overlapped",
|
|
17684
17684
|
"pipe"
|
|
17685
17685
|
]);
|
|
17686
|
-
const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
17687
|
-
const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
17688
|
-
const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
|
|
17689
|
-
const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
|
|
17686
|
+
const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
17687
|
+
const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
17688
|
+
const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
|
|
17689
|
+
const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
|
|
17690
17690
|
const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
|
|
17691
17691
|
const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
|
|
17692
17692
|
const isObject = (value) => typeof value === "object" && value !== null;
|
|
@@ -17850,10 +17850,10 @@ const guessStreamDirection = {
|
|
|
17850
17850
|
iterable: alwaysInput,
|
|
17851
17851
|
asyncIterable: alwaysInput,
|
|
17852
17852
|
uint8Array: alwaysInput,
|
|
17853
|
-
webStream: (value) => isWritableStream(value) ? "output" : "input",
|
|
17853
|
+
webStream: (value) => isWritableStream$1(value) ? "output" : "input",
|
|
17854
17854
|
nodeStream(value) {
|
|
17855
|
-
if (!isReadableStream
|
|
17856
|
-
return isWritableStream
|
|
17855
|
+
if (!isReadableStream(value, { checkOpen: false })) return "output";
|
|
17856
|
+
return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
|
|
17857
17857
|
},
|
|
17858
17858
|
webTransform: anyDirection,
|
|
17859
17859
|
duplex: anyDirection,
|
|
@@ -17983,7 +17983,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
|
|
|
17983
17983
|
optionName: "input"
|
|
17984
17984
|
}];
|
|
17985
17985
|
const getInputType = (input) => {
|
|
17986
|
-
if (isReadableStream
|
|
17986
|
+
if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
|
|
17987
17987
|
if (typeof input === "string") return "string";
|
|
17988
17988
|
if (isUint8Array(input)) return "uint8Array";
|
|
17989
17989
|
throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
|
|
@@ -19121,7 +19121,7 @@ var MergedStream = class extends node_stream.PassThrough {
|
|
|
19121
19121
|
#aborted = new Set([]);
|
|
19122
19122
|
#onFinished;
|
|
19123
19123
|
#unpipeEvent = Symbol("unpipe");
|
|
19124
|
-
#streamPromises = new WeakMap();
|
|
19124
|
+
#streamPromises = /* @__PURE__ */ new WeakMap();
|
|
19125
19125
|
add(stream$1) {
|
|
19126
19126
|
validateStream(stream$1);
|
|
19127
19127
|
if (this.#streams.has(stream$1)) return;
|
|
@@ -19301,7 +19301,7 @@ const abortSourceStream = (source) => {
|
|
|
19301
19301
|
//#endregion
|
|
19302
19302
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
|
|
19303
19303
|
const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
|
|
19304
|
-
const pipeGroups = new Map();
|
|
19304
|
+
const pipeGroups = /* @__PURE__ */ new Map();
|
|
19305
19305
|
for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
|
|
19306
19306
|
for (const { stream: stream$1 } of stdioItems.filter(({ type: type$1 }) => TRANSFORM_TYPES.has(type$1))) pipeTransform(subprocess, stream$1, direction, fdNumber);
|
|
19307
19307
|
for (const { stream: stream$1 } of stdioItems.filter(({ type: type$1 }) => !TRANSFORM_TYPES.has(type$1))) pipeStdioItem({
|
|
@@ -19707,7 +19707,7 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
|
|
|
19707
19707
|
} catch {}
|
|
19708
19708
|
MERGED_STREAMS.delete(destinationStream);
|
|
19709
19709
|
};
|
|
19710
|
-
const MERGED_STREAMS = new WeakMap();
|
|
19710
|
+
const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
|
|
19711
19711
|
const SOURCE_LISTENERS_PER_PIPE = 2;
|
|
19712
19712
|
const DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
19713
19713
|
|
|
@@ -20193,9 +20193,9 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
|
|
|
20193
20193
|
//#endregion
|
|
20194
20194
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
|
|
20195
20195
|
const initializeConcurrentStreams = () => ({
|
|
20196
|
-
readableDestroy: new WeakMap(),
|
|
20197
|
-
writableFinal: new WeakMap(),
|
|
20198
|
-
writableDestroy: new WeakMap()
|
|
20196
|
+
readableDestroy: /* @__PURE__ */ new WeakMap(),
|
|
20197
|
+
writableFinal: /* @__PURE__ */ new WeakMap(),
|
|
20198
|
+
writableDestroy: /* @__PURE__ */ new WeakMap()
|
|
20199
20199
|
});
|
|
20200
20200
|
const addConcurrentStream = (concurrentStreams, stream$1, waitName) => {
|
|
20201
20201
|
const weakMap = concurrentStreams[waitName];
|
|
@@ -20823,7 +20823,7 @@ const ensureInstallPackages = async (buildPluginPackages) => {
|
|
|
20823
20823
|
message(`Installing ${dependenciesToInstall.join(", ")}...`);
|
|
20824
20824
|
try {
|
|
20825
20825
|
const result = await execa(packageManager, [packageManager === "yarn" ? "add" : "install", ...dependenciesToInstall.map(ensurePackageVersion)]);
|
|
20826
|
-
if (result.stderr) {
|
|
20826
|
+
if (result.exitCode !== 0 && result.stderr) {
|
|
20827
20827
|
__clack_prompts.log.error(result.stderr);
|
|
20828
20828
|
process.exit(1);
|
|
20829
20829
|
}
|
|
@@ -20845,7 +20845,7 @@ const ensureInstallPackages = async (buildPluginPackages) => {
|
|
|
20845
20845
|
...devDependenciesToInstall.map(ensurePackageVersion),
|
|
20846
20846
|
packageManager === "yarn" ? "--dev" : "--save-dev"
|
|
20847
20847
|
]);
|
|
20848
|
-
if (result.stderr) {
|
|
20848
|
+
if (result.exitCode !== 0 && result.stderr) {
|
|
20849
20849
|
__clack_prompts.log.error(result.stderr);
|
|
20850
20850
|
process.exit(1);
|
|
20851
20851
|
}
|
|
@@ -21094,7 +21094,7 @@ var AndroidConfigParser = class {
|
|
|
21094
21094
|
|
|
21095
21095
|
//#endregion
|
|
21096
21096
|
//#region src/utils/configParser/iosParser.ts
|
|
21097
|
-
var import_plist = require_picocolors$1.__toESM(require_plist()
|
|
21097
|
+
var import_plist = require_picocolors$1.__toESM(require_plist());
|
|
21098
21098
|
var IosConfigParser = class {
|
|
21099
21099
|
async getPlistPath() {
|
|
21100
21100
|
const [plistFile] = await (0, globby.globby)("*/Info.plist", {
|
|
@@ -21194,8 +21194,8 @@ const getChannel = async (platform$2) => {
|
|
|
21194
21194
|
|
|
21195
21195
|
//#endregion
|
|
21196
21196
|
//#region src/index.ts
|
|
21197
|
-
var import_picocolors = require_picocolors$1.__toESM(require_picocolors$1.require_picocolors()
|
|
21198
|
-
var import_valid = require_picocolors$1.__toESM(require_valid$1()
|
|
21197
|
+
var import_picocolors = require_picocolors$1.__toESM(require_picocolors$1.require_picocolors());
|
|
21198
|
+
var import_valid = require_picocolors$1.__toESM(require_valid$1());
|
|
21199
21199
|
const DEFAULT_CHANNEL = "production";
|
|
21200
21200
|
const program = new __commander_js_extra_typings.Command();
|
|
21201
21201
|
program.name("hot-updater").description((0, __hot_updater_plugin_core.banner)(version)).version(version);
|
package/dist/index.js
CHANGED
|
@@ -13,9 +13,9 @@ import { Buffer as Buffer$1 } from "node:buffer";
|
|
|
13
13
|
import path$1 from "node:path";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
16
|
-
import
|
|
16
|
+
import fsPromises, { constants } from "node:fs/promises";
|
|
17
17
|
import os, { constants as constants$1 } from "node:os";
|
|
18
|
-
import fs$
|
|
18
|
+
import fs$1, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
|
|
20
20
|
import net from "node:net";
|
|
21
21
|
import * as p$4 from "@clack/prompts";
|
|
@@ -23,7 +23,7 @@ import * as p$3 from "@clack/prompts";
|
|
|
23
23
|
import * as p$2 from "@clack/prompts";
|
|
24
24
|
import * as p$1 from "@clack/prompts";
|
|
25
25
|
import * as p from "@clack/prompts";
|
|
26
|
-
import fs$
|
|
26
|
+
import fs$2 from "fs/promises";
|
|
27
27
|
import { openRepository } from "es-git";
|
|
28
28
|
import { XcodeProject } from "@bacons/xcode";
|
|
29
29
|
import { globby, globbySync } from "globby";
|
|
@@ -400,7 +400,7 @@ var require_lrucache = __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_
|
|
|
400
400
|
var LRUCache$2 = class {
|
|
401
401
|
constructor() {
|
|
402
402
|
this.max = 1e3;
|
|
403
|
-
this.map = new Map();
|
|
403
|
+
this.map = /* @__PURE__ */ new Map();
|
|
404
404
|
}
|
|
405
405
|
get(key) {
|
|
406
406
|
const value = this.map.get(key);
|
|
@@ -988,7 +988,7 @@ var require_range = __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_mod
|
|
|
988
988
|
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
989
989
|
});
|
|
990
990
|
debug("range list", rangeList);
|
|
991
|
-
const rangeMap = new Map();
|
|
991
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
992
992
|
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
993
993
|
for (const comp of comparators) {
|
|
994
994
|
if (isNullSet(comp)) return [comp];
|
|
@@ -1207,7 +1207,7 @@ var require_valid$1 = __commonJS({ "../../node_modules/.pnpm/semver@7.7.2/node_m
|
|
|
1207
1207
|
let isDockerCached;
|
|
1208
1208
|
function hasDockerEnv() {
|
|
1209
1209
|
try {
|
|
1210
|
-
fs$
|
|
1210
|
+
fs$1.statSync("/.dockerenv");
|
|
1211
1211
|
return true;
|
|
1212
1212
|
} catch {
|
|
1213
1213
|
return false;
|
|
@@ -1215,7 +1215,7 @@ function hasDockerEnv() {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
function hasDockerCGroup() {
|
|
1217
1217
|
try {
|
|
1218
|
-
return fs$
|
|
1218
|
+
return fs$1.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
1219
1219
|
} catch {
|
|
1220
1220
|
return false;
|
|
1221
1221
|
}
|
|
@@ -1230,7 +1230,7 @@ function isDocker() {
|
|
|
1230
1230
|
let cachedResult;
|
|
1231
1231
|
const hasContainerEnv = () => {
|
|
1232
1232
|
try {
|
|
1233
|
-
fs$
|
|
1233
|
+
fs$1.statSync("/run/.containerenv");
|
|
1234
1234
|
return true;
|
|
1235
1235
|
} catch {
|
|
1236
1236
|
return false;
|
|
@@ -1250,7 +1250,7 @@ const isWsl = () => {
|
|
|
1250
1250
|
return true;
|
|
1251
1251
|
}
|
|
1252
1252
|
try {
|
|
1253
|
-
return fs$
|
|
1253
|
+
return fs$1.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
|
|
1254
1254
|
} catch {
|
|
1255
1255
|
return false;
|
|
1256
1256
|
}
|
|
@@ -1420,11 +1420,11 @@ const getWslDrivesMountPoint = (() => {
|
|
|
1420
1420
|
const configFilePath = "/etc/wsl.conf";
|
|
1421
1421
|
let isConfigFileExists = false;
|
|
1422
1422
|
try {
|
|
1423
|
-
await
|
|
1423
|
+
await fsPromises.access(configFilePath, constants.F_OK);
|
|
1424
1424
|
isConfigFileExists = true;
|
|
1425
1425
|
} catch {}
|
|
1426
1426
|
if (!isConfigFileExists) return defaultMountPoint;
|
|
1427
|
-
const configContent = await
|
|
1427
|
+
const configContent = await fsPromises.readFile(configFilePath, { encoding: "utf8" });
|
|
1428
1428
|
const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
|
|
1429
1429
|
if (!configMountPoint) return defaultMountPoint;
|
|
1430
1430
|
mountPoint = configMountPoint.groups.mountPoint.trim();
|
|
@@ -1522,7 +1522,7 @@ const baseOpen = async (options) => {
|
|
|
1522
1522
|
const isBundled = !__dirname$1 || __dirname$1 === "/";
|
|
1523
1523
|
let exeLocalXdgOpen = false;
|
|
1524
1524
|
try {
|
|
1525
|
-
await
|
|
1525
|
+
await fsPromises.access(localXdgOpenPath, constants.X_OK);
|
|
1526
1526
|
exeLocalXdgOpen = true;
|
|
1527
1527
|
} catch {}
|
|
1528
1528
|
const useSystemXdgOpen = process$1.versions.electron ?? (platform$1 === "android" || isBundled || !exeLocalXdgOpen);
|
|
@@ -1632,7 +1632,7 @@ async function findUp(name, { cwd = process$1.cwd(), type: type$1 = "file", stop
|
|
|
1632
1632
|
while (directory) {
|
|
1633
1633
|
const filePath = isAbsoluteName ? name : path$1.join(directory, name);
|
|
1634
1634
|
try {
|
|
1635
|
-
const stats = await
|
|
1635
|
+
const stats = await fsPromises.stat(filePath);
|
|
1636
1636
|
if (type$1 === "file" && stats.isFile() || type$1 === "directory" && stats.isDirectory()) return filePath;
|
|
1637
1637
|
} catch {}
|
|
1638
1638
|
if (directory === stopAt || directory === root) break;
|
|
@@ -1647,7 +1647,7 @@ function findUpSync(name, { cwd = process$1.cwd(), type: type$1 = "file", stopAt
|
|
|
1647
1647
|
while (directory) {
|
|
1648
1648
|
const filePath = isAbsoluteName ? name : path$1.join(directory, name);
|
|
1649
1649
|
try {
|
|
1650
|
-
const stats = fs$
|
|
1650
|
+
const stats = fs$1.statSync(filePath, { throwIfNoEntry: false });
|
|
1651
1651
|
if (type$1 === "file" && stats?.isFile() || type$1 === "directory" && stats?.isDirectory()) return filePath;
|
|
1652
1652
|
} catch {}
|
|
1653
1653
|
if (directory === stopAt || directory === root) break;
|
|
@@ -9246,7 +9246,7 @@ var require_plist = __commonJS({ "../../node_modules/.pnpm/plist@3.1.0/node_modu
|
|
|
9246
9246
|
|
|
9247
9247
|
//#endregion
|
|
9248
9248
|
//#region src/utils/getDefaultTargetAppVersion.ts
|
|
9249
|
-
var import_plist$2 = __toESM(require_plist()
|
|
9249
|
+
var import_plist$2 = __toESM(require_plist());
|
|
9250
9250
|
const getIOSVersion$1 = async (cwd) => {
|
|
9251
9251
|
try {
|
|
9252
9252
|
const plistPath = await findUp("Info.plist", {
|
|
@@ -9254,7 +9254,7 @@ const getIOSVersion$1 = async (cwd) => {
|
|
|
9254
9254
|
type: "file"
|
|
9255
9255
|
});
|
|
9256
9256
|
if (!plistPath) return null;
|
|
9257
|
-
const file = await fs$
|
|
9257
|
+
const file = await fs$2.readFile(plistPath, "utf8");
|
|
9258
9258
|
const data = import_plist$2.default.parse(file);
|
|
9259
9259
|
return data["CFBundleShortVersionString"] ?? null;
|
|
9260
9260
|
} catch {
|
|
@@ -9264,7 +9264,7 @@ const getIOSVersion$1 = async (cwd) => {
|
|
|
9264
9264
|
const getAndroidVersion$1 = async (cwd) => {
|
|
9265
9265
|
const buildGradlePath = path.join(cwd, "android", "app", "build.gradle");
|
|
9266
9266
|
try {
|
|
9267
|
-
const buildGradleContent = await fs$
|
|
9267
|
+
const buildGradleContent = await fs$2.readFile(buildGradlePath, "utf8");
|
|
9268
9268
|
const versionNameMatch = buildGradleContent.match(/versionName\s+"([\d.]+)"/);
|
|
9269
9269
|
return versionNameMatch?.[1] ? versionNameMatch[1] : null;
|
|
9270
9270
|
} catch (error) {
|
|
@@ -9291,7 +9291,7 @@ const getDefaultTargetAppVersion = async (cwd, platform$2) => {
|
|
|
9291
9291
|
//#region src/utils/getFileHash.ts
|
|
9292
9292
|
const getFileHashFromFile = async (filepath) => {
|
|
9293
9293
|
try {
|
|
9294
|
-
const fileBuffer = await fs$
|
|
9294
|
+
const fileBuffer = await fs$2.readFile(filepath).catch((error) => {
|
|
9295
9295
|
console.error("Error reading the file:", error);
|
|
9296
9296
|
throw error;
|
|
9297
9297
|
});
|
|
@@ -9375,7 +9375,7 @@ async function getBundleZipTargets(basePath, files) {
|
|
|
9375
9375
|
|
|
9376
9376
|
//#endregion
|
|
9377
9377
|
//#region src/utils/getNativeAppVersion.ts
|
|
9378
|
-
var import_plist$1 = __toESM(require_plist()
|
|
9378
|
+
var import_plist$1 = __toESM(require_plist());
|
|
9379
9379
|
const getNativeAppVersion = async (platform$2) => {
|
|
9380
9380
|
switch (platform$2) {
|
|
9381
9381
|
case "ios": {
|
|
@@ -9415,7 +9415,7 @@ const getPlistVersion = async () => {
|
|
|
9415
9415
|
type: "file"
|
|
9416
9416
|
});
|
|
9417
9417
|
if (!plistPath) return null;
|
|
9418
|
-
const file = await fs$
|
|
9418
|
+
const file = await fs$2.readFile(plistPath, "utf8");
|
|
9419
9419
|
const data = import_plist$1.default.parse(file);
|
|
9420
9420
|
return data["CFBundleShortVersionString"] ?? null;
|
|
9421
9421
|
} catch {
|
|
@@ -9425,7 +9425,7 @@ const getPlistVersion = async () => {
|
|
|
9425
9425
|
const getAndroidVersion = async () => {
|
|
9426
9426
|
const buildGradlePath = path.join(getCwd(), "android", "app", "build.gradle");
|
|
9427
9427
|
try {
|
|
9428
|
-
const buildGradleContent = await fs$
|
|
9428
|
+
const buildGradleContent = await fs$2.readFile(buildGradlePath, "utf8");
|
|
9429
9429
|
const versionNameMatch = buildGradleContent.match(/versionName\s+"([^"]+)"/);
|
|
9430
9430
|
return versionNameMatch?.[1] ?? null;
|
|
9431
9431
|
} catch (error) {
|
|
@@ -9434,7 +9434,7 @@ const getAndroidVersion = async () => {
|
|
|
9434
9434
|
};
|
|
9435
9435
|
|
|
9436
9436
|
//#endregion
|
|
9437
|
-
//#region ../../node_modules/.pnpm/tsdown@0.12.
|
|
9437
|
+
//#region ../../node_modules/.pnpm/tsdown@0.12.6_typescript@5.8.3/node_modules/tsdown/esm-shims.js
|
|
9438
9438
|
const getFilename = () => fileURLToPath(import.meta.url);
|
|
9439
9439
|
const getDirname = () => path$1.dirname(getFilename());
|
|
9440
9440
|
const __dirname = /* @__PURE__ */ getDirname();
|
|
@@ -12164,7 +12164,7 @@ var require_commonjs = __commonJS({ "../../node_modules/.pnpm/lru-cache@10.2.2/n
|
|
|
12164
12164
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12165
12165
|
exports.LRUCache = void 0;
|
|
12166
12166
|
const perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
12167
|
-
const warned = new Set();
|
|
12167
|
+
const warned = /* @__PURE__ */ new Set();
|
|
12168
12168
|
/* c8 ignore start */
|
|
12169
12169
|
const PROCESS = typeof process === "object" && !!process ? process : {};
|
|
12170
12170
|
/* c8 ignore start */
|
|
@@ -12427,7 +12427,7 @@ var require_commonjs = __commonJS({ "../../node_modules/.pnpm/lru-cache@10.2.2/n
|
|
|
12427
12427
|
if (fetchMethod !== void 0 && typeof fetchMethod !== "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
12428
12428
|
this.#fetchMethod = fetchMethod;
|
|
12429
12429
|
this.#hasFetchMethod = !!fetchMethod;
|
|
12430
|
-
this.#keyMap = new Map();
|
|
12430
|
+
this.#keyMap = /* @__PURE__ */ new Map();
|
|
12431
12431
|
this.#keyList = new Array(max).fill(void 0);
|
|
12432
12432
|
this.#valList = new Array(max).fill(void 0);
|
|
12433
12433
|
this.#next = new UintArray(max);
|
|
@@ -14162,11 +14162,11 @@ const _readPackage = (file, normalize$1) => {
|
|
|
14162
14162
|
return json;
|
|
14163
14163
|
};
|
|
14164
14164
|
async function readPackage({ cwd, normalize: normalize$1 = true } = {}) {
|
|
14165
|
-
const packageFile = await
|
|
14165
|
+
const packageFile = await fsPromises.readFile(getPackagePath(cwd), "utf8");
|
|
14166
14166
|
return _readPackage(packageFile, normalize$1);
|
|
14167
14167
|
}
|
|
14168
14168
|
function readPackageSync({ cwd, normalize: normalize$1 = true } = {}) {
|
|
14169
|
-
const packageFile = fs$
|
|
14169
|
+
const packageFile = fs$1.readFileSync(getPackagePath(cwd), "utf8");
|
|
14170
14170
|
return _readPackage(packageFile, normalize$1);
|
|
14171
14171
|
}
|
|
14172
14172
|
|
|
@@ -14208,7 +14208,7 @@ const printBanner$1 = () => {
|
|
|
14208
14208
|
|
|
14209
14209
|
//#endregion
|
|
14210
14210
|
//#region src/commands/deploy.ts
|
|
14211
|
-
var import_valid$1 = __toESM(require_valid$1()
|
|
14211
|
+
var import_valid$1 = __toESM(require_valid$1());
|
|
14212
14212
|
const deploy = async (options) => {
|
|
14213
14213
|
printBanner$1();
|
|
14214
14214
|
const cwd = getCwd();
|
|
@@ -15120,7 +15120,7 @@ const getVerboseObject = ({ type: type$1, result, verboseInfo: { escapedCommand,
|
|
|
15120
15120
|
type: type$1,
|
|
15121
15121
|
escapedCommand,
|
|
15122
15122
|
commandId: `${commandId}`,
|
|
15123
|
-
timestamp: new Date(),
|
|
15123
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
15124
15124
|
piped,
|
|
15125
15125
|
result,
|
|
15126
15126
|
options
|
|
@@ -15205,7 +15205,7 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
15205
15205
|
var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
15206
15206
|
module.exports = isexe$3;
|
|
15207
15207
|
isexe$3.sync = sync$2;
|
|
15208
|
-
var fs$
|
|
15208
|
+
var fs$6 = __require("fs");
|
|
15209
15209
|
function checkPathExt(path$5, options) {
|
|
15210
15210
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
15211
15211
|
if (!pathext) return true;
|
|
@@ -15222,12 +15222,12 @@ var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_mo
|
|
|
15222
15222
|
return checkPathExt(path$5, options);
|
|
15223
15223
|
}
|
|
15224
15224
|
function isexe$3(path$5, options, cb) {
|
|
15225
|
-
fs$
|
|
15225
|
+
fs$6.stat(path$5, function(er, stat) {
|
|
15226
15226
|
cb(er, er ? false : checkStat$1(stat, path$5, options));
|
|
15227
15227
|
});
|
|
15228
15228
|
}
|
|
15229
15229
|
function sync$2(path$5, options) {
|
|
15230
|
-
return checkStat$1(fs$
|
|
15230
|
+
return checkStat$1(fs$6.statSync(path$5), path$5, options);
|
|
15231
15231
|
}
|
|
15232
15232
|
} });
|
|
15233
15233
|
|
|
@@ -15236,14 +15236,14 @@ var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_mo
|
|
|
15236
15236
|
var require_mode = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
|
|
15237
15237
|
module.exports = isexe$2;
|
|
15238
15238
|
isexe$2.sync = sync$1;
|
|
15239
|
-
var fs$
|
|
15239
|
+
var fs$5 = __require("fs");
|
|
15240
15240
|
function isexe$2(path$5, options, cb) {
|
|
15241
|
-
fs$
|
|
15241
|
+
fs$5.stat(path$5, function(er, stat) {
|
|
15242
15242
|
cb(er, er ? false : checkStat(stat, options));
|
|
15243
15243
|
});
|
|
15244
15244
|
}
|
|
15245
15245
|
function sync$1(path$5, options) {
|
|
15246
|
-
return checkStat(fs$
|
|
15246
|
+
return checkStat(fs$5.statSync(path$5), options);
|
|
15247
15247
|
}
|
|
15248
15248
|
function checkStat(stat, options) {
|
|
15249
15249
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -15266,7 +15266,7 @@ var require_mode = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modul
|
|
|
15266
15266
|
//#endregion
|
|
15267
15267
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
15268
15268
|
var require_isexe = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
|
|
15269
|
-
var fs$
|
|
15269
|
+
var fs$4 = __require("fs");
|
|
15270
15270
|
var core;
|
|
15271
15271
|
if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
|
|
15272
15272
|
else core = require_mode();
|
|
@@ -15470,16 +15470,16 @@ var require_shebang_command = __commonJS({ "../../node_modules/.pnpm/shebang-com
|
|
|
15470
15470
|
//#endregion
|
|
15471
15471
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
15472
15472
|
var require_readShebang = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
15473
|
-
const fs$
|
|
15473
|
+
const fs$3 = __require("fs");
|
|
15474
15474
|
const shebangCommand = require_shebang_command();
|
|
15475
15475
|
function readShebang$1(command) {
|
|
15476
15476
|
const size = 150;
|
|
15477
15477
|
const buffer = Buffer.alloc(size);
|
|
15478
15478
|
let fd;
|
|
15479
15479
|
try {
|
|
15480
|
-
fd = fs$
|
|
15481
|
-
fs$
|
|
15482
|
-
fs$
|
|
15480
|
+
fd = fs$3.openSync(command, "r");
|
|
15481
|
+
fs$3.readSync(fd, buffer, 0, size, 0);
|
|
15482
|
+
fs$3.closeSync(fd);
|
|
15483
15483
|
} catch (e) {}
|
|
15484
15484
|
return shebangCommand(buffer.toString());
|
|
15485
15485
|
}
|
|
@@ -16241,7 +16241,7 @@ const getFromStream = (source, from = "stdout") => {
|
|
|
16241
16241
|
if (sourceStream === null || sourceStream === void 0) throw new TypeError(getInvalidStdioOptionMessage(fdNumber, from, options, isWritable));
|
|
16242
16242
|
return sourceStream;
|
|
16243
16243
|
};
|
|
16244
|
-
const SUBPROCESS_OPTIONS = new WeakMap();
|
|
16244
|
+
const SUBPROCESS_OPTIONS = /* @__PURE__ */ new WeakMap();
|
|
16245
16245
|
const getFdNumber = (fileDescriptors, fdName, isWritable) => {
|
|
16246
16246
|
const fdNumber = parseFdNumber(fdName, isWritable);
|
|
16247
16247
|
validateFdNumber(fdNumber, fdName, isWritable, fileDescriptors);
|
|
@@ -16370,7 +16370,7 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
|
|
|
16370
16370
|
ipcEmitter.connected = false;
|
|
16371
16371
|
ipcEmitter.emit("disconnect");
|
|
16372
16372
|
};
|
|
16373
|
-
const INCOMING_MESSAGES = new WeakMap();
|
|
16373
|
+
const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
16374
16374
|
|
|
16375
16375
|
//#endregion
|
|
16376
16376
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
|
|
@@ -16387,7 +16387,7 @@ const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
|
|
|
16387
16387
|
});
|
|
16388
16388
|
return ipcEmitter;
|
|
16389
16389
|
};
|
|
16390
|
-
const IPC_EMITTERS = new WeakMap();
|
|
16390
|
+
const IPC_EMITTERS = /* @__PURE__ */ new WeakMap();
|
|
16391
16391
|
const forwardEvents = ({ ipcEmitter, anyProcess, channel, isSubprocess }) => {
|
|
16392
16392
|
const boundOnMessage = onMessage.bind(void 0, {
|
|
16393
16393
|
anyProcess,
|
|
@@ -16486,7 +16486,7 @@ const RESPONSE_TYPE = "execa:ipc:response";
|
|
|
16486
16486
|
//#endregion
|
|
16487
16487
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
|
|
16488
16488
|
const startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
16489
|
-
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, new Set());
|
|
16489
|
+
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
|
|
16490
16490
|
const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
|
|
16491
16491
|
const onMessageSent = createDeferred();
|
|
16492
16492
|
const id = strict ? wrappedMessage.id : void 0;
|
|
@@ -16511,7 +16511,7 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
|
|
|
16511
16511
|
await Promise.all(outgoingMessages.map(({ onMessageSent }) => onMessageSent));
|
|
16512
16512
|
}
|
|
16513
16513
|
};
|
|
16514
|
-
const OUTGOING_MESSAGES = new WeakMap();
|
|
16514
|
+
const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
16515
16515
|
const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
|
|
16516
16516
|
const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
|
|
16517
16517
|
|
|
@@ -16583,7 +16583,7 @@ const getSendMethod = (anyProcess) => {
|
|
|
16583
16583
|
PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
|
|
16584
16584
|
return sendMethod;
|
|
16585
16585
|
};
|
|
16586
|
-
const PROCESS_SEND_METHODS = new WeakMap();
|
|
16586
|
+
const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
|
|
16587
16587
|
|
|
16588
16588
|
//#endregion
|
|
16589
16589
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
|
|
@@ -16900,14 +16900,14 @@ const CR_BINARY = CR.codePointAt(0);
|
|
|
16900
16900
|
function isStream(stream, { checkOpen = true } = {}) {
|
|
16901
16901
|
return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
|
|
16902
16902
|
}
|
|
16903
|
-
function isWritableStream
|
|
16903
|
+
function isWritableStream(stream, { checkOpen = true } = {}) {
|
|
16904
16904
|
return isStream(stream, { checkOpen }) && (stream.writable || !checkOpen) && typeof stream.write === "function" && typeof stream.end === "function" && typeof stream.writable === "boolean" && typeof stream.writableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
|
|
16905
16905
|
}
|
|
16906
|
-
function isReadableStream
|
|
16906
|
+
function isReadableStream(stream, { checkOpen = true } = {}) {
|
|
16907
16907
|
return isStream(stream, { checkOpen }) && (stream.readable || !checkOpen) && typeof stream.read === "function" && typeof stream.readable === "boolean" && typeof stream.readableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
|
|
16908
16908
|
}
|
|
16909
16909
|
function isDuplexStream(stream, options) {
|
|
16910
|
-
return isWritableStream
|
|
16910
|
+
return isWritableStream(stream, options) && isReadableStream(stream, options);
|
|
16911
16911
|
}
|
|
16912
16912
|
|
|
16913
16913
|
//#endregion
|
|
@@ -16994,7 +16994,7 @@ function h({ preventCancel: r = !1 } = {}) {
|
|
|
16994
16994
|
//#endregion
|
|
16995
16995
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
|
|
16996
16996
|
const getAsyncIterable = (stream) => {
|
|
16997
|
-
if (isReadableStream
|
|
16997
|
+
if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
|
|
16998
16998
|
if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
|
|
16999
16999
|
if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
|
|
17000
17000
|
throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
@@ -17693,10 +17693,10 @@ const KNOWN_STDIO_STRINGS = new Set([
|
|
|
17693
17693
|
"overlapped",
|
|
17694
17694
|
"pipe"
|
|
17695
17695
|
]);
|
|
17696
|
-
const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
17697
|
-
const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
17698
|
-
const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
|
|
17699
|
-
const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
|
|
17696
|
+
const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
17697
|
+
const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
17698
|
+
const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
|
|
17699
|
+
const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
|
|
17700
17700
|
const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
|
|
17701
17701
|
const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
|
|
17702
17702
|
const isObject = (value) => typeof value === "object" && value !== null;
|
|
@@ -17860,10 +17860,10 @@ const guessStreamDirection = {
|
|
|
17860
17860
|
iterable: alwaysInput,
|
|
17861
17861
|
asyncIterable: alwaysInput,
|
|
17862
17862
|
uint8Array: alwaysInput,
|
|
17863
|
-
webStream: (value) => isWritableStream(value) ? "output" : "input",
|
|
17863
|
+
webStream: (value) => isWritableStream$1(value) ? "output" : "input",
|
|
17864
17864
|
nodeStream(value) {
|
|
17865
|
-
if (!isReadableStream
|
|
17866
|
-
return isWritableStream
|
|
17865
|
+
if (!isReadableStream(value, { checkOpen: false })) return "output";
|
|
17866
|
+
return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
|
|
17867
17867
|
},
|
|
17868
17868
|
webTransform: anyDirection,
|
|
17869
17869
|
duplex: anyDirection,
|
|
@@ -17993,7 +17993,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
|
|
|
17993
17993
|
optionName: "input"
|
|
17994
17994
|
}];
|
|
17995
17995
|
const getInputType = (input) => {
|
|
17996
|
-
if (isReadableStream
|
|
17996
|
+
if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
|
|
17997
17997
|
if (typeof input === "string") return "string";
|
|
17998
17998
|
if (isUint8Array(input)) return "uint8Array";
|
|
17999
17999
|
throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
|
|
@@ -19131,7 +19131,7 @@ var MergedStream = class extends PassThrough {
|
|
|
19131
19131
|
#aborted = new Set([]);
|
|
19132
19132
|
#onFinished;
|
|
19133
19133
|
#unpipeEvent = Symbol("unpipe");
|
|
19134
|
-
#streamPromises = new WeakMap();
|
|
19134
|
+
#streamPromises = /* @__PURE__ */ new WeakMap();
|
|
19135
19135
|
add(stream) {
|
|
19136
19136
|
validateStream(stream);
|
|
19137
19137
|
if (this.#streams.has(stream)) return;
|
|
@@ -19311,7 +19311,7 @@ const abortSourceStream = (source) => {
|
|
|
19311
19311
|
//#endregion
|
|
19312
19312
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
|
|
19313
19313
|
const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
|
|
19314
|
-
const pipeGroups = new Map();
|
|
19314
|
+
const pipeGroups = /* @__PURE__ */ new Map();
|
|
19315
19315
|
for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
|
|
19316
19316
|
for (const { stream } of stdioItems.filter(({ type: type$1 }) => TRANSFORM_TYPES.has(type$1))) pipeTransform(subprocess, stream, direction, fdNumber);
|
|
19317
19317
|
for (const { stream } of stdioItems.filter(({ type: type$1 }) => !TRANSFORM_TYPES.has(type$1))) pipeStdioItem({
|
|
@@ -19717,7 +19717,7 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
|
|
|
19717
19717
|
} catch {}
|
|
19718
19718
|
MERGED_STREAMS.delete(destinationStream);
|
|
19719
19719
|
};
|
|
19720
|
-
const MERGED_STREAMS = new WeakMap();
|
|
19720
|
+
const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
|
|
19721
19721
|
const SOURCE_LISTENERS_PER_PIPE = 2;
|
|
19722
19722
|
const DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
19723
19723
|
|
|
@@ -20203,9 +20203,9 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
|
|
|
20203
20203
|
//#endregion
|
|
20204
20204
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
|
|
20205
20205
|
const initializeConcurrentStreams = () => ({
|
|
20206
|
-
readableDestroy: new WeakMap(),
|
|
20207
|
-
writableFinal: new WeakMap(),
|
|
20208
|
-
writableDestroy: new WeakMap()
|
|
20206
|
+
readableDestroy: /* @__PURE__ */ new WeakMap(),
|
|
20207
|
+
writableFinal: /* @__PURE__ */ new WeakMap(),
|
|
20208
|
+
writableDestroy: /* @__PURE__ */ new WeakMap()
|
|
20209
20209
|
});
|
|
20210
20210
|
const addConcurrentStream = (concurrentStreams, stream, waitName) => {
|
|
20211
20211
|
const weakMap = concurrentStreams[waitName];
|
|
@@ -20833,7 +20833,7 @@ const ensureInstallPackages = async (buildPluginPackages) => {
|
|
|
20833
20833
|
message(`Installing ${dependenciesToInstall.join(", ")}...`);
|
|
20834
20834
|
try {
|
|
20835
20835
|
const result = await execa(packageManager, [packageManager === "yarn" ? "add" : "install", ...dependenciesToInstall.map(ensurePackageVersion)]);
|
|
20836
|
-
if (result.stderr) {
|
|
20836
|
+
if (result.exitCode !== 0 && result.stderr) {
|
|
20837
20837
|
p$2.log.error(result.stderr);
|
|
20838
20838
|
process.exit(1);
|
|
20839
20839
|
}
|
|
@@ -20855,7 +20855,7 @@ const ensureInstallPackages = async (buildPluginPackages) => {
|
|
|
20855
20855
|
...devDependenciesToInstall.map(ensurePackageVersion),
|
|
20856
20856
|
packageManager === "yarn" ? "--dev" : "--save-dev"
|
|
20857
20857
|
]);
|
|
20858
|
-
if (result.stderr) {
|
|
20858
|
+
if (result.exitCode !== 0 && result.stderr) {
|
|
20859
20859
|
p$2.log.error(result.stderr);
|
|
20860
20860
|
process.exit(1);
|
|
20861
20861
|
}
|
|
@@ -21104,7 +21104,7 @@ var AndroidConfigParser = class {
|
|
|
21104
21104
|
|
|
21105
21105
|
//#endregion
|
|
21106
21106
|
//#region src/utils/configParser/iosParser.ts
|
|
21107
|
-
var import_plist = __toESM(require_plist()
|
|
21107
|
+
var import_plist = __toESM(require_plist());
|
|
21108
21108
|
var IosConfigParser = class {
|
|
21109
21109
|
async getPlistPath() {
|
|
21110
21110
|
const [plistFile] = await globby("*/Info.plist", {
|
|
@@ -21204,8 +21204,8 @@ const getChannel = async (platform$2) => {
|
|
|
21204
21204
|
|
|
21205
21205
|
//#endregion
|
|
21206
21206
|
//#region src/index.ts
|
|
21207
|
-
var import_picocolors = __toESM(require_picocolors()
|
|
21208
|
-
var import_valid = __toESM(require_valid$1()
|
|
21207
|
+
var import_picocolors = __toESM(require_picocolors());
|
|
21208
|
+
var import_valid = __toESM(require_valid$1());
|
|
21209
21209
|
const DEFAULT_CHANNEL = "production";
|
|
21210
21210
|
const program = new Command();
|
|
21211
21211
|
program.name("hot-updater").description(banner(version)).version(version);
|
package/dist/plugins/babel.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const __hot_updater_plugin_core = require_picocolors$1.__toESM(require("@hot-upd
|
|
|
5
5
|
|
|
6
6
|
//#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/memoize.mjs
|
|
7
7
|
function memoize(fn, options = {}) {
|
|
8
|
-
const { cache = new Map(), getCacheKey } = options;
|
|
8
|
+
const { cache = /* @__PURE__ */ new Map(), getCacheKey } = options;
|
|
9
9
|
const memoizedFn = function(arg) {
|
|
10
10
|
const key = getCacheKey ? getCacheKey(arg) : arg;
|
|
11
11
|
if (cache.has(key)) return cache.get(key);
|
|
@@ -348,7 +348,7 @@ const uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator
|
|
|
348
348
|
|
|
349
349
|
//#endregion
|
|
350
350
|
//#region src/plugins/babel.ts
|
|
351
|
-
var import_picocolors = require_picocolors$1.__toESM(require_picocolors$1.require_picocolors()
|
|
351
|
+
var import_picocolors = require_picocolors$1.__toESM(require_picocolors$1.require_picocolors());
|
|
352
352
|
const NIL_UUID = "00000000-0000-0000-0000-000000000000";
|
|
353
353
|
const getBundleId = () => {
|
|
354
354
|
const buildOutDir = process.env["BUILD_OUT_DIR"];
|
package/dist/plugins/babel.d.cts
CHANGED
package/dist/plugins/babel.d.ts
CHANGED
package/dist/plugins/babel.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getCwd, loadConfigSync } from "@hot-updater/plugin-core";
|
|
|
5
5
|
|
|
6
6
|
//#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/memoize.mjs
|
|
7
7
|
function memoize(fn, options = {}) {
|
|
8
|
-
const { cache = new Map(), getCacheKey } = options;
|
|
8
|
+
const { cache = /* @__PURE__ */ new Map(), getCacheKey } = options;
|
|
9
9
|
const memoizedFn = function(arg) {
|
|
10
10
|
const key = getCacheKey ? getCacheKey(arg) : arg;
|
|
11
11
|
if (cache.has(key)) return cache.get(key);
|
|
@@ -348,7 +348,7 @@ const uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator
|
|
|
348
348
|
|
|
349
349
|
//#endregion
|
|
350
350
|
//#region src/plugins/babel.ts
|
|
351
|
-
var import_picocolors = __toESM(require_picocolors()
|
|
351
|
+
var import_picocolors = __toESM(require_picocolors());
|
|
352
352
|
const NIL_UUID = "00000000-0000-0000-0000-000000000000";
|
|
353
353
|
const getBundleId = () => {
|
|
354
354
|
const buildOutDir = process.env["BUILD_OUT_DIR"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hot-updater",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.2",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hot-updater": "./dist/index.js"
|
|
7
7
|
},
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"es-git": "^0.2.0",
|
|
59
59
|
"fast-xml-parser": "^5.2.3",
|
|
60
60
|
"globby": "^14.1.0",
|
|
61
|
-
"@hot-updater/console": "0.18.
|
|
62
|
-
"@hot-updater/core": "0.18.
|
|
63
|
-
"@hot-updater/plugin-core": "0.18.
|
|
61
|
+
"@hot-updater/console": "0.18.2",
|
|
62
|
+
"@hot-updater/core": "0.18.2",
|
|
63
|
+
"@hot-updater/plugin-core": "0.18.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@babel/core": "7.26.0",
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
"read-package-up": "^11.0.0",
|
|
88
88
|
"semver": "^7.6.3",
|
|
89
89
|
"uuidv7": "^1.0.2",
|
|
90
|
-
"@hot-updater/aws": "0.18.
|
|
91
|
-
"@hot-updater/cloudflare": "0.18.
|
|
92
|
-
"@hot-updater/firebase": "0.18.
|
|
93
|
-
"@hot-updater/supabase": "0.18.
|
|
90
|
+
"@hot-updater/aws": "0.18.2",
|
|
91
|
+
"@hot-updater/cloudflare": "0.18.2",
|
|
92
|
+
"@hot-updater/firebase": "0.18.2",
|
|
93
|
+
"@hot-updater/supabase": "0.18.2"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@hot-updater/aws": "*",
|