@hot-updater/expo 0.18.1 → 0.18.3
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 +25 -25
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +25 -25
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -762,7 +762,7 @@ const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, command
|
|
|
762
762
|
type,
|
|
763
763
|
escapedCommand,
|
|
764
764
|
commandId: `${commandId}`,
|
|
765
|
-
timestamp: new Date(),
|
|
765
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
766
766
|
piped,
|
|
767
767
|
result,
|
|
768
768
|
options
|
|
@@ -1883,7 +1883,7 @@ const getFromStream = (source, from = "stdout") => {
|
|
|
1883
1883
|
if (sourceStream === null || sourceStream === void 0) throw new TypeError(getInvalidStdioOptionMessage(fdNumber, from, options, isWritable));
|
|
1884
1884
|
return sourceStream;
|
|
1885
1885
|
};
|
|
1886
|
-
const SUBPROCESS_OPTIONS = new WeakMap();
|
|
1886
|
+
const SUBPROCESS_OPTIONS = /* @__PURE__ */ new WeakMap();
|
|
1887
1887
|
const getFdNumber = (fileDescriptors, fdName, isWritable) => {
|
|
1888
1888
|
const fdNumber = parseFdNumber(fdName, isWritable);
|
|
1889
1889
|
validateFdNumber(fdNumber, fdName, isWritable, fileDescriptors);
|
|
@@ -2012,7 +2012,7 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
|
|
|
2012
2012
|
ipcEmitter.connected = false;
|
|
2013
2013
|
ipcEmitter.emit("disconnect");
|
|
2014
2014
|
};
|
|
2015
|
-
const INCOMING_MESSAGES = new WeakMap();
|
|
2015
|
+
const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
2016
2016
|
|
|
2017
2017
|
//#endregion
|
|
2018
2018
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
|
|
@@ -2029,7 +2029,7 @@ const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
|
|
|
2029
2029
|
});
|
|
2030
2030
|
return ipcEmitter;
|
|
2031
2031
|
};
|
|
2032
|
-
const IPC_EMITTERS = new WeakMap();
|
|
2032
|
+
const IPC_EMITTERS = /* @__PURE__ */ new WeakMap();
|
|
2033
2033
|
const forwardEvents = ({ ipcEmitter, anyProcess, channel, isSubprocess }) => {
|
|
2034
2034
|
const boundOnMessage = onMessage.bind(void 0, {
|
|
2035
2035
|
anyProcess,
|
|
@@ -2128,7 +2128,7 @@ const RESPONSE_TYPE = "execa:ipc:response";
|
|
|
2128
2128
|
//#endregion
|
|
2129
2129
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
|
|
2130
2130
|
const startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
2131
|
-
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, new Set());
|
|
2131
|
+
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
|
|
2132
2132
|
const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
|
|
2133
2133
|
const onMessageSent = createDeferred();
|
|
2134
2134
|
const id = strict ? wrappedMessage.id : void 0;
|
|
@@ -2153,7 +2153,7 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
|
|
|
2153
2153
|
await Promise.all(outgoingMessages.map(({ onMessageSent }) => onMessageSent));
|
|
2154
2154
|
}
|
|
2155
2155
|
};
|
|
2156
|
-
const OUTGOING_MESSAGES = new WeakMap();
|
|
2156
|
+
const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
2157
2157
|
const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
|
|
2158
2158
|
const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
|
|
2159
2159
|
|
|
@@ -2225,7 +2225,7 @@ const getSendMethod = (anyProcess) => {
|
|
|
2225
2225
|
PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
|
|
2226
2226
|
return sendMethod;
|
|
2227
2227
|
};
|
|
2228
|
-
const PROCESS_SEND_METHODS = new WeakMap();
|
|
2228
|
+
const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
|
|
2229
2229
|
|
|
2230
2230
|
//#endregion
|
|
2231
2231
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
|
|
@@ -2542,14 +2542,14 @@ const CR_BINARY = CR.codePointAt(0);
|
|
|
2542
2542
|
function isStream(stream, { checkOpen = true } = {}) {
|
|
2543
2543
|
return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
|
|
2544
2544
|
}
|
|
2545
|
-
function isWritableStream
|
|
2545
|
+
function isWritableStream(stream, { checkOpen = true } = {}) {
|
|
2546
2546
|
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";
|
|
2547
2547
|
}
|
|
2548
|
-
function isReadableStream
|
|
2548
|
+
function isReadableStream(stream, { checkOpen = true } = {}) {
|
|
2549
2549
|
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";
|
|
2550
2550
|
}
|
|
2551
2551
|
function isDuplexStream(stream, options) {
|
|
2552
|
-
return isWritableStream
|
|
2552
|
+
return isWritableStream(stream, options) && isReadableStream(stream, options);
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
2555
|
//#endregion
|
|
@@ -2636,7 +2636,7 @@ function h({ preventCancel: r = !1 } = {}) {
|
|
|
2636
2636
|
//#endregion
|
|
2637
2637
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
|
|
2638
2638
|
const getAsyncIterable = (stream) => {
|
|
2639
|
-
if (isReadableStream
|
|
2639
|
+
if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
|
|
2640
2640
|
if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
|
|
2641
2641
|
if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
|
|
2642
2642
|
throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
@@ -3335,10 +3335,10 @@ const KNOWN_STDIO_STRINGS = new Set([
|
|
|
3335
3335
|
"overlapped",
|
|
3336
3336
|
"pipe"
|
|
3337
3337
|
]);
|
|
3338
|
-
const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
3339
|
-
const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
3340
|
-
const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
|
|
3341
|
-
const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
|
|
3338
|
+
const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
3339
|
+
const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
3340
|
+
const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
|
|
3341
|
+
const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
|
|
3342
3342
|
const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
|
|
3343
3343
|
const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
|
|
3344
3344
|
const isObject = (value) => typeof value === "object" && value !== null;
|
|
@@ -3502,10 +3502,10 @@ const guessStreamDirection = {
|
|
|
3502
3502
|
iterable: alwaysInput,
|
|
3503
3503
|
asyncIterable: alwaysInput,
|
|
3504
3504
|
uint8Array: alwaysInput,
|
|
3505
|
-
webStream: (value) => isWritableStream(value) ? "output" : "input",
|
|
3505
|
+
webStream: (value) => isWritableStream$1(value) ? "output" : "input",
|
|
3506
3506
|
nodeStream(value) {
|
|
3507
|
-
if (!isReadableStream
|
|
3508
|
-
return isWritableStream
|
|
3507
|
+
if (!isReadableStream(value, { checkOpen: false })) return "output";
|
|
3508
|
+
return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
|
|
3509
3509
|
},
|
|
3510
3510
|
webTransform: anyDirection,
|
|
3511
3511
|
duplex: anyDirection,
|
|
@@ -3635,7 +3635,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
|
|
|
3635
3635
|
optionName: "input"
|
|
3636
3636
|
}];
|
|
3637
3637
|
const getInputType = (input) => {
|
|
3638
|
-
if (isReadableStream
|
|
3638
|
+
if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
|
|
3639
3639
|
if (typeof input === "string") return "string";
|
|
3640
3640
|
if (isUint8Array(input)) return "uint8Array";
|
|
3641
3641
|
throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
|
|
@@ -4773,7 +4773,7 @@ var MergedStream = class extends node_stream.PassThrough {
|
|
|
4773
4773
|
#aborted = new Set([]);
|
|
4774
4774
|
#onFinished;
|
|
4775
4775
|
#unpipeEvent = Symbol("unpipe");
|
|
4776
|
-
#streamPromises = new WeakMap();
|
|
4776
|
+
#streamPromises = /* @__PURE__ */ new WeakMap();
|
|
4777
4777
|
add(stream) {
|
|
4778
4778
|
validateStream(stream);
|
|
4779
4779
|
if (this.#streams.has(stream)) return;
|
|
@@ -4953,7 +4953,7 @@ const abortSourceStream = (source) => {
|
|
|
4953
4953
|
//#endregion
|
|
4954
4954
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
|
|
4955
4955
|
const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
|
|
4956
|
-
const pipeGroups = new Map();
|
|
4956
|
+
const pipeGroups = /* @__PURE__ */ new Map();
|
|
4957
4957
|
for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
|
|
4958
4958
|
for (const { stream } of stdioItems.filter(({ type }) => TRANSFORM_TYPES.has(type))) pipeTransform(subprocess, stream, direction, fdNumber);
|
|
4959
4959
|
for (const { stream } of stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type))) pipeStdioItem({
|
|
@@ -5359,7 +5359,7 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
|
|
|
5359
5359
|
} catch {}
|
|
5360
5360
|
MERGED_STREAMS.delete(destinationStream);
|
|
5361
5361
|
};
|
|
5362
|
-
const MERGED_STREAMS = new WeakMap();
|
|
5362
|
+
const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
|
|
5363
5363
|
const SOURCE_LISTENERS_PER_PIPE = 2;
|
|
5364
5364
|
const DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
5365
5365
|
|
|
@@ -5845,9 +5845,9 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
|
|
|
5845
5845
|
//#endregion
|
|
5846
5846
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
|
|
5847
5847
|
const initializeConcurrentStreams = () => ({
|
|
5848
|
-
readableDestroy: new WeakMap(),
|
|
5849
|
-
writableFinal: new WeakMap(),
|
|
5850
|
-
writableDestroy: new WeakMap()
|
|
5848
|
+
readableDestroy: /* @__PURE__ */ new WeakMap(),
|
|
5849
|
+
writableFinal: /* @__PURE__ */ new WeakMap(),
|
|
5850
|
+
writableDestroy: /* @__PURE__ */ new WeakMap()
|
|
5851
5851
|
});
|
|
5852
5852
|
const addConcurrentStream = (concurrentStreams, stream, waitName) => {
|
|
5853
5853
|
const weakMap = concurrentStreams[waitName];
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -766,7 +766,7 @@ const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, command
|
|
|
766
766
|
type,
|
|
767
767
|
escapedCommand,
|
|
768
768
|
commandId: `${commandId}`,
|
|
769
|
-
timestamp: new Date(),
|
|
769
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
770
770
|
piped,
|
|
771
771
|
result,
|
|
772
772
|
options
|
|
@@ -1887,7 +1887,7 @@ const getFromStream = (source, from = "stdout") => {
|
|
|
1887
1887
|
if (sourceStream === null || sourceStream === void 0) throw new TypeError(getInvalidStdioOptionMessage(fdNumber, from, options, isWritable));
|
|
1888
1888
|
return sourceStream;
|
|
1889
1889
|
};
|
|
1890
|
-
const SUBPROCESS_OPTIONS = new WeakMap();
|
|
1890
|
+
const SUBPROCESS_OPTIONS = /* @__PURE__ */ new WeakMap();
|
|
1891
1891
|
const getFdNumber = (fileDescriptors, fdName, isWritable) => {
|
|
1892
1892
|
const fdNumber = parseFdNumber(fdName, isWritable);
|
|
1893
1893
|
validateFdNumber(fdNumber, fdName, isWritable, fileDescriptors);
|
|
@@ -2016,7 +2016,7 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
|
|
|
2016
2016
|
ipcEmitter.connected = false;
|
|
2017
2017
|
ipcEmitter.emit("disconnect");
|
|
2018
2018
|
};
|
|
2019
|
-
const INCOMING_MESSAGES = new WeakMap();
|
|
2019
|
+
const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
2020
2020
|
|
|
2021
2021
|
//#endregion
|
|
2022
2022
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
|
|
@@ -2033,7 +2033,7 @@ const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
|
|
|
2033
2033
|
});
|
|
2034
2034
|
return ipcEmitter;
|
|
2035
2035
|
};
|
|
2036
|
-
const IPC_EMITTERS = new WeakMap();
|
|
2036
|
+
const IPC_EMITTERS = /* @__PURE__ */ new WeakMap();
|
|
2037
2037
|
const forwardEvents = ({ ipcEmitter, anyProcess, channel, isSubprocess }) => {
|
|
2038
2038
|
const boundOnMessage = onMessage.bind(void 0, {
|
|
2039
2039
|
anyProcess,
|
|
@@ -2132,7 +2132,7 @@ const RESPONSE_TYPE = "execa:ipc:response";
|
|
|
2132
2132
|
//#endregion
|
|
2133
2133
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
|
|
2134
2134
|
const startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
2135
|
-
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, new Set());
|
|
2135
|
+
if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
|
|
2136
2136
|
const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
|
|
2137
2137
|
const onMessageSent = createDeferred();
|
|
2138
2138
|
const id = strict ? wrappedMessage.id : void 0;
|
|
@@ -2157,7 +2157,7 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
|
|
|
2157
2157
|
await Promise.all(outgoingMessages.map(({ onMessageSent }) => onMessageSent));
|
|
2158
2158
|
}
|
|
2159
2159
|
};
|
|
2160
|
-
const OUTGOING_MESSAGES = new WeakMap();
|
|
2160
|
+
const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
2161
2161
|
const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
|
|
2162
2162
|
const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
|
|
2163
2163
|
|
|
@@ -2229,7 +2229,7 @@ const getSendMethod = (anyProcess) => {
|
|
|
2229
2229
|
PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
|
|
2230
2230
|
return sendMethod;
|
|
2231
2231
|
};
|
|
2232
|
-
const PROCESS_SEND_METHODS = new WeakMap();
|
|
2232
|
+
const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
|
|
2233
2233
|
|
|
2234
2234
|
//#endregion
|
|
2235
2235
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
|
|
@@ -2546,14 +2546,14 @@ const CR_BINARY = CR.codePointAt(0);
|
|
|
2546
2546
|
function isStream(stream, { checkOpen = true } = {}) {
|
|
2547
2547
|
return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
|
|
2548
2548
|
}
|
|
2549
|
-
function isWritableStream
|
|
2549
|
+
function isWritableStream(stream, { checkOpen = true } = {}) {
|
|
2550
2550
|
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";
|
|
2551
2551
|
}
|
|
2552
|
-
function isReadableStream
|
|
2552
|
+
function isReadableStream(stream, { checkOpen = true } = {}) {
|
|
2553
2553
|
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";
|
|
2554
2554
|
}
|
|
2555
2555
|
function isDuplexStream(stream, options) {
|
|
2556
|
-
return isWritableStream
|
|
2556
|
+
return isWritableStream(stream, options) && isReadableStream(stream, options);
|
|
2557
2557
|
}
|
|
2558
2558
|
|
|
2559
2559
|
//#endregion
|
|
@@ -2640,7 +2640,7 @@ function h({ preventCancel: r = !1 } = {}) {
|
|
|
2640
2640
|
//#endregion
|
|
2641
2641
|
//#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
|
|
2642
2642
|
const getAsyncIterable = (stream) => {
|
|
2643
|
-
if (isReadableStream
|
|
2643
|
+
if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
|
|
2644
2644
|
if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
|
|
2645
2645
|
if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
|
|
2646
2646
|
throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
@@ -3339,10 +3339,10 @@ const KNOWN_STDIO_STRINGS = new Set([
|
|
|
3339
3339
|
"overlapped",
|
|
3340
3340
|
"pipe"
|
|
3341
3341
|
]);
|
|
3342
|
-
const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
3343
|
-
const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
3344
|
-
const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
|
|
3345
|
-
const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
|
|
3342
|
+
const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
3343
|
+
const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
3344
|
+
const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
|
|
3345
|
+
const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
|
|
3346
3346
|
const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
|
|
3347
3347
|
const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
|
|
3348
3348
|
const isObject = (value) => typeof value === "object" && value !== null;
|
|
@@ -3506,10 +3506,10 @@ const guessStreamDirection = {
|
|
|
3506
3506
|
iterable: alwaysInput,
|
|
3507
3507
|
asyncIterable: alwaysInput,
|
|
3508
3508
|
uint8Array: alwaysInput,
|
|
3509
|
-
webStream: (value) => isWritableStream(value) ? "output" : "input",
|
|
3509
|
+
webStream: (value) => isWritableStream$1(value) ? "output" : "input",
|
|
3510
3510
|
nodeStream(value) {
|
|
3511
|
-
if (!isReadableStream
|
|
3512
|
-
return isWritableStream
|
|
3511
|
+
if (!isReadableStream(value, { checkOpen: false })) return "output";
|
|
3512
|
+
return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
|
|
3513
3513
|
},
|
|
3514
3514
|
webTransform: anyDirection,
|
|
3515
3515
|
duplex: anyDirection,
|
|
@@ -3639,7 +3639,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
|
|
|
3639
3639
|
optionName: "input"
|
|
3640
3640
|
}];
|
|
3641
3641
|
const getInputType = (input) => {
|
|
3642
|
-
if (isReadableStream
|
|
3642
|
+
if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
|
|
3643
3643
|
if (typeof input === "string") return "string";
|
|
3644
3644
|
if (isUint8Array(input)) return "uint8Array";
|
|
3645
3645
|
throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
|
|
@@ -4777,7 +4777,7 @@ var MergedStream = class extends PassThrough {
|
|
|
4777
4777
|
#aborted = new Set([]);
|
|
4778
4778
|
#onFinished;
|
|
4779
4779
|
#unpipeEvent = Symbol("unpipe");
|
|
4780
|
-
#streamPromises = new WeakMap();
|
|
4780
|
+
#streamPromises = /* @__PURE__ */ new WeakMap();
|
|
4781
4781
|
add(stream) {
|
|
4782
4782
|
validateStream(stream);
|
|
4783
4783
|
if (this.#streams.has(stream)) return;
|
|
@@ -4957,7 +4957,7 @@ const abortSourceStream = (source) => {
|
|
|
4957
4957
|
//#endregion
|
|
4958
4958
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
|
|
4959
4959
|
const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
|
|
4960
|
-
const pipeGroups = new Map();
|
|
4960
|
+
const pipeGroups = /* @__PURE__ */ new Map();
|
|
4961
4961
|
for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
|
|
4962
4962
|
for (const { stream } of stdioItems.filter(({ type }) => TRANSFORM_TYPES.has(type))) pipeTransform(subprocess, stream, direction, fdNumber);
|
|
4963
4963
|
for (const { stream } of stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type))) pipeStdioItem({
|
|
@@ -5363,7 +5363,7 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
|
|
|
5363
5363
|
} catch {}
|
|
5364
5364
|
MERGED_STREAMS.delete(destinationStream);
|
|
5365
5365
|
};
|
|
5366
|
-
const MERGED_STREAMS = new WeakMap();
|
|
5366
|
+
const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
|
|
5367
5367
|
const SOURCE_LISTENERS_PER_PIPE = 2;
|
|
5368
5368
|
const DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
5369
5369
|
|
|
@@ -5849,9 +5849,9 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
|
|
|
5849
5849
|
//#endregion
|
|
5850
5850
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
|
|
5851
5851
|
const initializeConcurrentStreams = () => ({
|
|
5852
|
-
readableDestroy: new WeakMap(),
|
|
5853
|
-
writableFinal: new WeakMap(),
|
|
5854
|
-
writableDestroy: new WeakMap()
|
|
5852
|
+
readableDestroy: /* @__PURE__ */ new WeakMap(),
|
|
5853
|
+
writableFinal: /* @__PURE__ */ new WeakMap(),
|
|
5854
|
+
writableDestroy: /* @__PURE__ */ new WeakMap()
|
|
5855
5855
|
});
|
|
5856
5856
|
const addConcurrentStream = (concurrentStreams, stream, waitName) => {
|
|
5857
5857
|
const weakMap = concurrentStreams[waitName];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/expo",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.3",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"package.json"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@hot-updater/
|
|
25
|
-
"@hot-updater/
|
|
24
|
+
"@hot-updater/plugin-core": "0.18.3",
|
|
25
|
+
"@hot-updater/bare": "0.18.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.8.7",
|