scream-code 0.18.5 → 0.18.7

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.
@@ -3,5 +3,5 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
3
3
  import { dirname as __cjsShimDirname } from 'node:path';
4
4
  const __filename = __cjsShimFileURLToPath(import.meta.url);
5
5
  const __dirname = __cjsShimDirname(__filename);
6
- import { in as handleConnectCommand } from "./dispatch-BFsePVX6.mjs";
6
+ import { in as handleConnectCommand } from "./dispatch-7Mas_Tvb.mjs";
7
7
  export { handleConnectCommand };
package/dist/main.mjs CHANGED
@@ -6,7 +6,7 @@ const __dirname = __cjsShimDirname(__filename);
6
6
  import "./suppress-sqlite-warning-C2VB0doZ.mjs";
7
7
  //#region src/main.ts
8
8
  try {
9
- (await import("./app-DTuYJJwB.mjs")).main();
9
+ (await import("./app-IU7G9gs0.mjs")).main();
10
10
  } catch (error) {
11
11
  process.stderr.write(`${error instanceof Error ? error.stack ?? error.message : String(error)}\n`);
12
12
  process.exit(1);
@@ -5,7 +5,7 @@ const __filename = __cjsShimFileURLToPath(import.meta.url);
5
5
  const __dirname = __cjsShimDirname(__filename);
6
6
  import { n as __esmMin } from "./chunk-D90kvbyJ.mjs";
7
7
  import { c as init_fetch_blob, i as init_esm_min, n as FormData, r as formDataToBlob, s as Blob, t as init_from } from "./from-BMeHuTTE.mjs";
8
- import Ds, { PassThrough, pipeline } from "node:stream";
8
+ import Cs, { PassThrough, pipeline } from "node:stream";
9
9
  import { deprecate, promisify, types } from "node:util";
10
10
  import { format } from "node:url";
11
11
  import http from "node:http";
@@ -131,7 +131,7 @@ async function consumeBody(data) {
131
131
  const { body } = data;
132
132
  if (body === null) return Buffer$1.alloc(0);
133
133
  /* c8 ignore next 3 */
134
- if (!(body instanceof Ds)) return Buffer$1.alloc(0);
134
+ if (!(body instanceof Cs)) return Buffer$1.alloc(0);
135
135
  const accum = [];
136
136
  let accumBytes = 0;
137
137
  try {
@@ -162,7 +162,7 @@ var init_body = __esmMin((() => {
162
162
  init_fetch_error();
163
163
  init_base();
164
164
  init_is();
165
- pipeline$1 = promisify(Ds.pipeline);
165
+ pipeline$1 = promisify(Cs.pipeline);
166
166
  INTERNALS$2 = Symbol("Body internals");
167
167
  Body = class {
168
168
  constructor(body, { size = 0 } = {}) {
@@ -171,13 +171,13 @@ var init_body = __esmMin((() => {
171
171
  else if (isURLSearchParameters(body)) body = Buffer$1.from(body.toString());
172
172
  else if (isBlob(body)) {} else if (Buffer$1.isBuffer(body)) {} else if (types.isAnyArrayBuffer(body)) body = Buffer$1.from(body);
173
173
  else if (ArrayBuffer.isView(body)) body = Buffer$1.from(body.buffer, body.byteOffset, body.byteLength);
174
- else if (body instanceof Ds) {} else if (body instanceof FormData) {
174
+ else if (body instanceof Cs) {} else if (body instanceof FormData) {
175
175
  body = formDataToBlob(body);
176
176
  boundary = body.type.split("=")[1];
177
177
  } else body = Buffer$1.from(String(body));
178
178
  let stream = body;
179
- if (Buffer$1.isBuffer(body)) stream = Ds.Readable.from(body);
180
- else if (isBlob(body)) stream = Ds.Readable.from(body.stream());
179
+ if (Buffer$1.isBuffer(body)) stream = Cs.Readable.from(body);
180
+ else if (isBlob(body)) stream = Cs.Readable.from(body.stream());
181
181
  this[INTERNALS$2] = {
182
182
  body,
183
183
  stream,
@@ -186,7 +186,7 @@ var init_body = __esmMin((() => {
186
186
  error: null
187
187
  };
188
188
  this.size = size;
189
- if (body instanceof Ds) body.on("error", (error_) => {
189
+ if (body instanceof Cs) body.on("error", (error_) => {
190
190
  const error = error_ instanceof FetchBaseError ? error_ : new FetchError(`Invalid response body while trying to fetch ${this.url}: ${error_.message}`, "system", error_);
191
191
  this[INTERNALS$2].error = error;
192
192
  });
@@ -268,7 +268,7 @@ var init_body = __esmMin((() => {
268
268
  let p2;
269
269
  let { body } = instance[INTERNALS$2];
270
270
  if (instance.bodyUsed) throw new Error("cannot clone body after it is used");
271
- if (body instanceof Ds && typeof body.getBoundary !== "function") {
271
+ if (body instanceof Cs && typeof body.getBoundary !== "function") {
272
272
  p1 = new PassThrough({ highWaterMark });
273
273
  p2 = new PassThrough({ highWaterMark });
274
274
  body.pipe(p1);
@@ -287,7 +287,7 @@ var init_body = __esmMin((() => {
287
287
  if (Buffer$1.isBuffer(body) || types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) return null;
288
288
  if (body instanceof FormData) return `multipart/form-data; boundary=${request[INTERNALS$2].boundary}`;
289
289
  if (body && typeof body.getBoundary === "function") return `multipart/form-data;boundary=${getNonSpecFormDataBoundary(body)}`;
290
- if (body instanceof Ds) return null;
290
+ if (body instanceof Cs) return null;
291
291
  return "text/plain;charset=UTF-8";
292
292
  };
293
293
  getTotalBytes = (request) => {
@@ -952,7 +952,7 @@ async function fetch(url, options_) {
952
952
  const abort = () => {
953
953
  const error = new AbortError("The operation was aborted.");
954
954
  reject(error);
955
- if (request.body && request.body instanceof Ds.Readable) request.body.destroy(error);
955
+ if (request.body && request.body instanceof Cs.Readable) request.body.destroy(error);
956
956
  if (!response || !response.body) return;
957
957
  response.body.emit("error", error);
958
958
  };
@@ -1038,7 +1038,7 @@ async function fetch(url, options_) {
1038
1038
  "cookie",
1039
1039
  "cookie2"
1040
1040
  ]) requestOptions.headers.delete(name);
1041
- if (response_.statusCode !== 303 && request.body && options_.body instanceof Ds.Readable) {
1041
+ if (response_.statusCode !== 303 && request.body && options_.body instanceof Cs.Readable) {
1042
1042
  reject(new FetchError("Cannot follow redirect with body being a readable stream", "unsupported-redirect"));
1043
1043
  finalize();
1044
1044
  return;