@buildplease/webkit 1.0.2 → 1.0.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.
@@ -405,28 +405,34 @@ declare class HttpRequestInterceptorPipeline {
405
405
  //#endregion
406
406
  //#region src/networking/http-error.d.ts
407
407
  interface HttpErrorOptions {
408
- /** HTTP status code returned by the remote system. */
408
+ /** HTTP status code. */
409
409
  readonly statusCode: number;
410
- /** Machine-readable error code for programmatic handling. */
411
- readonly code: string;
412
- /** Human-readable error description. */
413
- readonly message: string;
414
410
  /**
415
- * Structured error details.
416
- *
411
+ * Error code.
417
412
  * @default undefined
413
+ * @example "not_found"
418
414
  */
419
- readonly details?: Readonly<Record<string, string[]>>;
415
+ readonly code?: string;
420
416
  /**
421
- * Original transport error.
422
- *
417
+ * Error message.
418
+ * @default undefined
419
+ * @example "Not found"
420
+ */
421
+ readonly message?: string;
422
+ /**
423
+ * Error details.
424
+ * @default undefined
425
+ */
426
+ readonly details?: unknown;
427
+ /**
428
+ * Original error.
423
429
  * @default undefined
424
430
  */
425
431
  readonly cause?: unknown;
426
432
  }
427
433
  declare class HttpError extends Error {
428
434
  readonly statusCode: HttpErrorOptions['statusCode'];
429
- readonly code: HttpErrorOptions['code'];
435
+ readonly code?: HttpErrorOptions['code'];
430
436
  readonly details?: HttpErrorOptions['details'];
431
437
  constructor(options: HttpErrorOptions);
432
438
  }
@@ -405,28 +405,34 @@ declare class HttpRequestInterceptorPipeline {
405
405
  //#endregion
406
406
  //#region src/networking/http-error.d.ts
407
407
  interface HttpErrorOptions {
408
- /** HTTP status code returned by the remote system. */
408
+ /** HTTP status code. */
409
409
  readonly statusCode: number;
410
- /** Machine-readable error code for programmatic handling. */
411
- readonly code: string;
412
- /** Human-readable error description. */
413
- readonly message: string;
414
410
  /**
415
- * Structured error details.
416
- *
411
+ * Error code.
417
412
  * @default undefined
413
+ * @example "not_found"
418
414
  */
419
- readonly details?: Readonly<Record<string, string[]>>;
415
+ readonly code?: string;
420
416
  /**
421
- * Original transport error.
422
- *
417
+ * Error message.
418
+ * @default undefined
419
+ * @example "Not found"
420
+ */
421
+ readonly message?: string;
422
+ /**
423
+ * Error details.
424
+ * @default undefined
425
+ */
426
+ readonly details?: unknown;
427
+ /**
428
+ * Original error.
423
429
  * @default undefined
424
430
  */
425
431
  readonly cause?: unknown;
426
432
  }
427
433
  declare class HttpError extends Error {
428
434
  readonly statusCode: HttpErrorOptions['statusCode'];
429
- readonly code: HttpErrorOptions['code'];
435
+ readonly code?: HttpErrorOptions['code'];
430
436
  readonly details?: HttpErrorOptions['details'];
431
437
  constructor(options: HttpErrorOptions);
432
438
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildplease/webkit",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "keywords": [],
5
5
  "repository": {
6
6
  "type": "git",