@molecule/app-http-axios 1.2.2 → 1.2.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.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-31T21:25:08.360Z
6
+ Generated: 2026-11-06T02:49:46.809Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-http-axios
@@ -464,6 +464,11 @@ type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTION
464
464
 
465
465
  HTTP error with response details.
466
466
 
467
+ `instanceof HttpError` also recognizes compatible failures carrying the shared
468
+ `Symbol.for('@molecule/app-http/HttpError')` brand, including non-ok auth responses
469
+ and errors from duplicated package copies. Branded producers must provide this
470
+ class's instance fields. Subclasses retain ordinary prototype-based checks.
471
+
467
472
  Request metadata on `config` and `response.config` is limited to method, a
468
473
  credential-redacted URL, and the two boolean notification-suppression controls
469
474
  (`molSilentErrorNotification` and `molSilentRateLimitNotification`). Request bodies,
@@ -486,6 +491,13 @@ declare class HttpError extends Error {
486
491
  config?: FullRequestConfig | undefined
487
492
  errorKey?: string | undefined
488
493
  aborted: boolean
494
+ /**
495
+ * Recognizes the shared failed-request contract without widening subclass checks.
496
+ *
497
+ * @param value - Any value to test.
498
+ * @returns True for a prototype instance, or a compatible branded value checked against the base class.
499
+ */
500
+ static [Symbol.hasInstance](value: unknown): boolean
489
501
  /**
490
502
  * Redacts URL userinfo and credential query/fragment values while preserving the path and
491
503
  * non-secret parameters. Shared by compatible HTTP and auth error/log views.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-http-axios",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Axios HTTP client provider for @molecule/app-http",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",