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