@orkestrel/terminal 0.0.15 → 0.0.17

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.
@@ -310,7 +310,7 @@ var TerminalError = class extends Error {
310
310
  * ```
311
311
  */
312
312
  function isTerminalError(value) {
313
- return value instanceof TerminalError;
313
+ return (0, _orkestrel_contract.isInstance)(value, TerminalError);
314
314
  }
315
315
  //#endregion
316
316
  //#region src/core/validators.ts
@@ -1215,7 +1215,7 @@ function globalFetch(input, init) {
1215
1215
  * @returns True if the value is a host `Error` or `DOMException` named `AbortError`; false otherwise
1216
1216
  */
1217
1217
  function isAbortError(error) {
1218
- return (error instanceof DOMException || error instanceof Error) && error.name === "AbortError";
1218
+ return (0, _orkestrel_contract.isError)(error) && error.name === "AbortError";
1219
1219
  }
1220
1220
  /**
1221
1221
  * Checks whether `url` is an insecure remote endpoint — a plain `http://` URL whose host is not a
@@ -1448,7 +1448,7 @@ var Prompt = class {
1448
1448
  if ((0, _orkestrel_form.isFieldError)(error.context)) return [error.context];
1449
1449
  const named = error.context?.field;
1450
1450
  return [{
1451
- field: typeof named === "string" ? named : this.#field(form, field),
1451
+ field: (0, _orkestrel_contract.isString)(named) ? named : this.#field(form, field),
1452
1452
  message: error.message
1453
1453
  }];
1454
1454
  }