@takeshape/errors 11.102.4 → 11.103.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.
@@ -0,0 +1,6 @@
1
+ import { BaseError } from '../base-error.ts';
2
+ export declare class AbortError extends BaseError {
3
+ static code: string;
4
+ static statusCode: number;
5
+ reportToSentry: boolean;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseError } from "../base-error.js";
2
+ export class AbortError extends BaseError {
3
+ static code = 'AbortError';
4
+ static statusCode = 499; // Client Closed Request (non-standard, used by nginx)
5
+ reportToSentry = false;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { AbortError } from './abort-error.ts';
2
+ export declare class UserAbortError extends AbortError {
3
+ static code: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { AbortError } from "./abort-error.js";
2
+ export class UserAbortError extends AbortError {
3
+ static code = 'UserAbortError';
4
+ }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './abort/abort-error.ts';
2
+ export * from './abort/user-abort-error.ts';
1
3
  export * from './agent-execution-error.ts';
2
4
  export * from './api-indexing/index.ts';
3
5
  export * from './authorization.ts';
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ export * from "./abort/abort-error.js";
2
+ export * from "./abort/user-abort-error.js";
1
3
  export * from "./agent-execution-error.js";
2
4
  export * from "./api-indexing/index.js";
3
5
  export * from "./authorization.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/errors",
3
- "version": "11.102.4",
3
+ "version": "11.103.3",
4
4
  "description": "Custom error objects.",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {