@sebspark/openapi-core 4.0.2 → 4.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -0
- package/package.json +9 -3
package/dist/index.d.ts
CHANGED
|
@@ -724,4 +724,4 @@ type BaseClient = {
|
|
|
724
724
|
delete: <U extends string, A extends RequestArgs | never, R extends APIResponse<unknown, unknown>>(url: U, args?: A, opts?: RequestOptions) => Promise<R>;
|
|
725
725
|
};
|
|
726
726
|
|
|
727
|
-
export { APIResponse, APIServerDefinition, APIServerOptions, ArrayFormat, AsyncApiComponentsObject, AsyncApiDocument, AsyncOperationObject, AvroArray, AvroEnum, AvroField, AvroMap, AvroPrimitive, AvroRecord, AvroSchema, AvroUnion, BadGatewayError, BadRequestError, BaseClient, CallbackObject, ChannelItemObject, ClientErrorCode, ClientOptions, ComponentsObject, ConflictError, ContactObject, CorrelationIdObject, DefaultValue, DiscriminatorObject, EncodingObject, ErrorCode, Example, ExampleObject, ExpectationFailedError, ExternalDocumentationObject, FailedDependencyError, ForbiddenError, GatewayTimeoutError, GenericRouteHandler, GoneError, HTTPVersionNotSupportedError, HeaderObject, HeaderStyle, HttpError, HttpMethod, IMATeapotError, InfoObject, InsufficientStorageError, InternalServerError, LengthRequiredError, LicenseObject, LinkObject, LockedError, LoopDetectedError, LowerCaseHeaders, MediaTypeObject, MessageObject, MessageTraitObject, MethodNotAllowedError, MisdirectedRequestError, NetworkAuthenticationRequiredError, NotAcceptableError, NotExtendedError, NotFoundError, NotImplementedError, OAuthFlowObject, OAuthFlowsObject, OpenApiDocument, OperationObject, OperationTraitObject, ParameterIn, ParameterObject, ParameterStyle, PartiallySerialized, PathItemObject, PayloadRequestArgs, PayloadTooLargeError, PaymentRequiredError, PreconditionFailedError, PreconditionRequiredError, ProxyAuthenticationRequiredError, QueryParams, RangeNotSatisfiableError, ReferenceObject, RequestArgs, RequestBodyObject, RequestHeaderFieldsTooLargeError, RequestOptions, RequestTimeoutError, ResponseObject, ResponsesObject, Route, RouteHandler, SchemaEnum, SchemaObject, SchemaType, SecurityRequirementObject, SecuritySchemeObject, SecuritySchemeType, Serialized, ServerErrorCode, ServerObject, ServerVariableObject, ServiceUnavailableError, TagObject, TooEarlyError, TooManyRequestsError, URITooLongError, UnauthorizedError, UnavailableForLegalReasonsError, UnprocessableEntityError, UnsupportedMediaTypeError, UpgradeRequiredError, VariantAlsoNegotiatesError, Verb, XMLObject, createHttpError, fromAxiosError };
|
|
727
|
+
export { type APIResponse, type APIServerDefinition, type APIServerOptions, type ArrayFormat, type AsyncApiComponentsObject, type AsyncApiDocument, type AsyncOperationObject, type AvroArray, type AvroEnum, type AvroField, type AvroMap, type AvroPrimitive, type AvroRecord, type AvroSchema, type AvroUnion, BadGatewayError, BadRequestError, type BaseClient, type CallbackObject, type ChannelItemObject, type ClientErrorCode, type ClientOptions, type ComponentsObject, ConflictError, type ContactObject, type CorrelationIdObject, type DefaultValue, type DiscriminatorObject, type EncodingObject, type ErrorCode, type Example, type ExampleObject, ExpectationFailedError, type ExternalDocumentationObject, FailedDependencyError, ForbiddenError, GatewayTimeoutError, type GenericRouteHandler, GoneError, HTTPVersionNotSupportedError, type HeaderObject, type HeaderStyle, HttpError, type HttpMethod, IMATeapotError, type InfoObject, InsufficientStorageError, InternalServerError, LengthRequiredError, type LicenseObject, type LinkObject, LockedError, LoopDetectedError, type LowerCaseHeaders, type MediaTypeObject, type MessageObject, type MessageTraitObject, MethodNotAllowedError, MisdirectedRequestError, NetworkAuthenticationRequiredError, NotAcceptableError, NotExtendedError, NotFoundError, NotImplementedError, type OAuthFlowObject, type OAuthFlowsObject, type OpenApiDocument, type OperationObject, type OperationTraitObject, type ParameterIn, type ParameterObject, type ParameterStyle, type PartiallySerialized, type PathItemObject, type PayloadRequestArgs, PayloadTooLargeError, PaymentRequiredError, PreconditionFailedError, PreconditionRequiredError, ProxyAuthenticationRequiredError, type QueryParams, RangeNotSatisfiableError, type ReferenceObject, type RequestArgs, type RequestBodyObject, RequestHeaderFieldsTooLargeError, type RequestOptions, RequestTimeoutError, type ResponseObject, type ResponsesObject, type Route, type RouteHandler, type SchemaEnum, type SchemaObject, type SchemaType, type SecurityRequirementObject, type SecuritySchemeObject, type SecuritySchemeType, type Serialized, type ServerErrorCode, type ServerObject, type ServerVariableObject, ServiceUnavailableError, type TagObject, TooEarlyError, TooManyRequestsError, URITooLongError, UnauthorizedError, UnavailableForLegalReasonsError, UnprocessableEntityError, UnsupportedMediaTypeError, UpgradeRequiredError, VariantAlsoNegotiatesError, type Verb, type XMLObject, createHttpError, fromAxiosError };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/errors.ts
|
|
2
|
-
import {inspect} from "util";
|
|
3
|
-
var HttpError = class extends Error {
|
|
2
|
+
import { inspect } from "util";
|
|
3
|
+
var HttpError = class _HttpError extends Error {
|
|
4
|
+
statusCode;
|
|
4
5
|
constructor(statusCode, message, cause) {
|
|
5
6
|
super(message);
|
|
6
7
|
if (cause) {
|
|
@@ -8,7 +9,7 @@ var HttpError = class extends Error {
|
|
|
8
9
|
this.cause = cause;
|
|
9
10
|
}
|
|
10
11
|
this.statusCode = statusCode;
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
12
|
+
Object.setPrototypeOf(this, _HttpError.prototype);
|
|
12
13
|
}
|
|
13
14
|
toJSON(showStack = false) {
|
|
14
15
|
const serialized = {
|
|
@@ -360,3 +361,4 @@ export {
|
|
|
360
361
|
createHttpError,
|
|
361
362
|
fromAxiosError
|
|
362
363
|
};
|
|
364
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/errors.ts"],"sourcesContent":["import type { AxiosError } from 'axios'\n// biome-ignore lint/style/useNodejsImportProtocol: use 'util' for RN Metro + polyfill support\nimport { inspect } from 'util'\n\nexport type ClientErrorCode =\n | 400\n | 401\n | 402\n | 403\n | 404\n | 405\n | 406\n | 407\n | 408\n | 409\n | 410\n | 411\n | 412\n | 413\n | 414\n | 415\n | 416\n | 417\n | 418\n | 421\n | 422\n | 423\n | 424\n | 425\n | 426\n | 428\n | 429\n | 431\n | 451\nexport type ServerErrorCode =\n | 500\n | 501\n | 502\n | 503\n | 504\n | 505\n | 506\n | 507\n | 508\n | 510\n | 511\nexport type ErrorCode = ClientErrorCode | ServerErrorCode\n\ntype SerializedError = {\n message: string\n stack?: string\n}\n\n// Base HttpError class\nexport class HttpError extends Error {\n statusCode: number\n\n constructor(statusCode: number, message: string, cause?: Error) {\n super(message)\n if (cause) {\n this.stack = undefined\n this.cause = cause\n }\n this.statusCode = statusCode\n Object.setPrototypeOf(this, HttpError.prototype)\n }\n\n toJSON(showStack = false) {\n const serialized: SerializedError = {\n message: this.message,\n }\n if (showStack) {\n serialized.stack = inspect(this)\n }\n return serialized\n }\n}\n\n// Specific error classes extending HttpError\nexport class BadRequestError extends HttpError {\n constructor(message = 'Bad Request', cause?: Error) {\n super(400, message, cause)\n }\n}\n\nexport class UnauthorizedError extends HttpError {\n constructor(message = 'Unauthorized', cause?: Error) {\n super(401, message, cause)\n }\n}\n\nexport class PaymentRequiredError extends HttpError {\n constructor(message = 'Payment Required', cause?: Error) {\n super(402, message, cause)\n }\n}\n\nexport class ForbiddenError extends HttpError {\n constructor(message = 'Forbidden', cause?: Error) {\n super(403, message, cause)\n }\n}\n\nexport class NotFoundError extends HttpError {\n constructor(message = 'Not Found', cause?: Error) {\n super(404, message, cause)\n }\n}\n\nexport class MethodNotAllowedError extends HttpError {\n constructor(message = 'Method Not Allowed', cause?: Error) {\n super(405, message, cause)\n }\n}\n\nexport class NotAcceptableError extends HttpError {\n constructor(message = 'Not Acceptable', cause?: Error) {\n super(406, message, cause)\n }\n}\n\nexport class ProxyAuthenticationRequiredError extends HttpError {\n constructor(message = 'Proxy Authentication Required', cause?: Error) {\n super(407, message, cause)\n }\n}\n\nexport class RequestTimeoutError extends HttpError {\n constructor(message = 'Request Timeout', cause?: Error) {\n super(408, message, cause)\n }\n}\n\nexport class ConflictError extends HttpError {\n constructor(message = 'Conflict', cause?: Error) {\n super(409, message, cause)\n }\n}\n\nexport class GoneError extends HttpError {\n constructor(message = 'Gone', cause?: Error) {\n super(410, message, cause)\n }\n}\n\nexport class LengthRequiredError extends HttpError {\n constructor(message = 'Length Required', cause?: Error) {\n super(411, message, cause)\n }\n}\n\nexport class PreconditionFailedError extends HttpError {\n constructor(message = 'Precondition Failed', cause?: Error) {\n super(412, message, cause)\n }\n}\n\nexport class PayloadTooLargeError extends HttpError {\n constructor(message = 'Payload Too Large', cause?: Error) {\n super(413, message, cause)\n }\n}\n\nexport class URITooLongError extends HttpError {\n constructor(message = 'URI Too Long', cause?: Error) {\n super(414, message, cause)\n }\n}\n\nexport class UnsupportedMediaTypeError extends HttpError {\n constructor(message = 'Unsupported Media Type', cause?: Error) {\n super(415, message, cause)\n }\n}\n\nexport class RangeNotSatisfiableError extends HttpError {\n constructor(message = 'Range Not Satisfiable', cause?: Error) {\n super(416, message, cause)\n }\n}\n\nexport class ExpectationFailedError extends HttpError {\n constructor(message = 'Expectation Failed', cause?: Error) {\n super(417, message, cause)\n }\n}\n\nexport class IMATeapotError extends HttpError {\n constructor(message = \"I'm a teapot\", cause?: Error) {\n super(418, message, cause)\n }\n}\n\nexport class MisdirectedRequestError extends HttpError {\n constructor(message = 'Misdirected Request', cause?: Error) {\n super(421, message, cause)\n }\n}\n\nexport class UnprocessableEntityError extends HttpError {\n constructor(message = 'Unprocessable Entity', cause?: Error) {\n super(422, message, cause)\n }\n}\n\nexport class LockedError extends HttpError {\n constructor(message = 'Locked', cause?: Error) {\n super(423, message, cause)\n }\n}\n\nexport class FailedDependencyError extends HttpError {\n constructor(message = 'Failed Dependency', cause?: Error) {\n super(424, message, cause)\n }\n}\n\nexport class TooEarlyError extends HttpError {\n constructor(message = 'Too Early', cause?: Error) {\n super(425, message, cause)\n }\n}\n\nexport class UpgradeRequiredError extends HttpError {\n constructor(message = 'Upgrade Required', cause?: Error) {\n super(426, message, cause)\n }\n}\n\nexport class PreconditionRequiredError extends HttpError {\n constructor(message = 'Precondition Required', cause?: Error) {\n super(428, message, cause)\n }\n}\n\nexport class TooManyRequestsError extends HttpError {\n constructor(message = 'Too Many Requests', cause?: Error) {\n super(429, message, cause)\n }\n}\n\nexport class RequestHeaderFieldsTooLargeError extends HttpError {\n constructor(message = 'Request Header Fields Too Large', cause?: Error) {\n super(431, message, cause)\n }\n}\n\nexport class UnavailableForLegalReasonsError extends HttpError {\n constructor(message = 'Unavailable For Legal Reasons', cause?: Error) {\n super(451, message, cause)\n }\n}\n\n// 500 Range Error Classes\nexport class InternalServerError extends HttpError {\n constructor(message = 'Internal Server Error', cause?: Error) {\n super(500, message, cause)\n }\n}\n\nexport class NotImplementedError extends HttpError {\n constructor(message = 'Not Implemented', cause?: Error) {\n super(501, message, cause)\n }\n}\n\nexport class BadGatewayError extends HttpError {\n constructor(message = 'Bad Gateway', cause?: Error) {\n super(502, message, cause)\n }\n}\n\nexport class ServiceUnavailableError extends HttpError {\n constructor(message = 'Service Unavailable', cause?: Error) {\n super(503, message, cause)\n }\n}\n\nexport class GatewayTimeoutError extends HttpError {\n constructor(message = 'Gateway Timeout', cause?: Error) {\n super(504, message, cause)\n }\n}\n\nexport class HTTPVersionNotSupportedError extends HttpError {\n constructor(message = 'HTTP Version Not Supported', cause?: Error) {\n super(505, message, cause)\n }\n}\n\nexport class VariantAlsoNegotiatesError extends HttpError {\n constructor(message = 'Variant Also Negotiates', cause?: Error) {\n super(506, message, cause)\n }\n}\n\nexport class InsufficientStorageError extends HttpError {\n constructor(message = 'Insufficient Storage', cause?: Error) {\n super(507, message, cause)\n }\n}\n\nexport class LoopDetectedError extends HttpError {\n constructor(message = 'Loop Detected', cause?: Error) {\n super(508, message, cause)\n }\n}\n\nexport class NotExtendedError extends HttpError {\n constructor(message = 'Not Extended', cause?: Error) {\n super(510, message, cause)\n }\n}\n\nexport class NetworkAuthenticationRequiredError extends HttpError {\n constructor(message = 'Network Authentication Required', cause?: Error) {\n super(511, message, cause)\n }\n}\n\n// Function to create an error based on status code\nexport const createHttpError = (\n statusCode: ErrorCode,\n message?: string,\n cause?: Error\n): HttpError => {\n switch (statusCode) {\n case 400:\n return new BadRequestError(message, cause)\n case 401:\n return new UnauthorizedError(message, cause)\n case 402:\n return new PaymentRequiredError(message, cause)\n case 403:\n return new ForbiddenError(message, cause)\n case 404:\n return new NotFoundError(message, cause)\n case 405:\n return new MethodNotAllowedError(message, cause)\n case 406:\n return new NotAcceptableError(message, cause)\n case 407:\n return new ProxyAuthenticationRequiredError(message, cause)\n case 408:\n return new RequestTimeoutError(message, cause)\n case 409:\n return new ConflictError(message, cause)\n case 410:\n return new GoneError(message, cause)\n case 411:\n return new LengthRequiredError(message, cause)\n case 412:\n return new PreconditionFailedError(message, cause)\n case 413:\n return new PayloadTooLargeError(message, cause)\n case 414:\n return new URITooLongError(message, cause)\n case 415:\n return new UnsupportedMediaTypeError(message, cause)\n case 416:\n return new RangeNotSatisfiableError(message, cause)\n case 417:\n return new ExpectationFailedError(message, cause)\n case 418:\n return new IMATeapotError(message, cause)\n case 421:\n return new MisdirectedRequestError(message, cause)\n case 422:\n return new UnprocessableEntityError(message, cause)\n case 423:\n return new LockedError(message, cause)\n case 424:\n return new FailedDependencyError(message, cause)\n case 425:\n return new TooEarlyError(message, cause)\n case 426:\n return new UpgradeRequiredError(message, cause)\n case 428:\n return new PreconditionRequiredError(message, cause)\n case 429:\n return new TooManyRequestsError(message, cause)\n case 431:\n return new RequestHeaderFieldsTooLargeError(message, cause)\n case 451:\n return new UnavailableForLegalReasonsError(message, cause)\n case 500:\n return new InternalServerError(message, cause)\n case 501:\n return new NotImplementedError(message, cause)\n case 502:\n return new BadGatewayError(message, cause)\n case 503:\n return new ServiceUnavailableError(message, cause)\n case 504:\n return new GatewayTimeoutError(message, cause)\n case 505:\n return new HTTPVersionNotSupportedError(message, cause)\n case 506:\n return new VariantAlsoNegotiatesError(message, cause)\n case 507:\n return new InsufficientStorageError(message, cause)\n case 508:\n return new LoopDetectedError(message, cause)\n case 510:\n return new NotExtendedError(message, cause)\n case 511:\n return new NetworkAuthenticationRequiredError(message, cause)\n default:\n return new HttpError(statusCode, message ?? 'Error', cause)\n }\n}\n\nexport const fromAxiosError = (axiosError: AxiosError): HttpError => {\n // Default to 500 Internal Server Error if the status code is not available\n const statusCode = (axiosError.response?.status || 500) as ErrorCode\n const message = axiosError.response?.statusText || 'Internal Server Error'\n\n // The internal error can contain more specific details about the Axios error\n const cause = new Error(axiosError.message)\n cause.name = axiosError.name\n cause.stack = axiosError.stack\n // If the error response has a data property pass it along\n cause.cause = axiosError?.response?.data\n\n return createHttpError(statusCode, message, cause)\n}\n"],"mappings":";AAEA,SAAS,eAAe;AAoDjB,IAAM,YAAN,MAAM,mBAAkB,MAAM;AAAA,EACnC;AAAA,EAEA,YAAY,YAAoB,SAAiB,OAAe;AAC9D,UAAM,OAAO;AACb,QAAI,OAAO;AACT,WAAK,QAAQ;AACb,WAAK,QAAQ;AAAA,IACf;AACA,SAAK,aAAa;AAClB,WAAO,eAAe,MAAM,WAAU,SAAS;AAAA,EACjD;AAAA,EAEA,OAAO,YAAY,OAAO;AACxB,UAAM,aAA8B;AAAA,MAClC,SAAS,KAAK;AAAA,IAChB;AACA,QAAI,WAAW;AACb,iBAAW,QAAQ,QAAQ,IAAI;AAAA,IACjC;AACA,WAAO;AAAA,EACT;AACF;AAGO,IAAM,kBAAN,cAA8B,UAAU;AAAA,EAC7C,YAAY,UAAU,eAAe,OAAe;AAClD,UAAM,KAAK,SAAS,KAAK;AAAA,EAC3B;AACF;AAEO,IAAM,oBAAN,cAAgC,UAAU;AAAA,EAC/C,YAAY,UAAU,gBAAgB,OAAe;AACnD,UAAM,KAAK,SAAS,KAAK;AAAA,EAC3B;AACF;AAEO,IAAM,uBAAN,cAAmC,UAAU;AAAA,EAClD,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,IAC3D,KAAK;AACH,aAAO,IAAI,oBAAoB,SAAS,KAAK;AAAA,IAC/C,KAAK;AACH,aAAO,IAAI,oBAAoB,SAAS,KAAK;AAAA,IAC/C,KAAK;AACH,aAAO,IAAI,gBAAgB,SAAS,KAAK;AAAA,IAC3C,KAAK;AACH,aAAO,IAAI,wBAAwB,SAAS,KAAK;AAAA,IACnD,KAAK;AACH,aAAO,IAAI,oBAAoB,SAAS,KAAK;AAAA,IAC/C,KAAK;AACH,aAAO,IAAI,6BAA6B,SAAS,KAAK;AAAA,IACxD,KAAK;AACH,aAAO,IAAI,2BAA2B,SAAS,KAAK;AAAA,IACtD,KAAK;AACH,aAAO,IAAI,yBAAyB,SAAS,KAAK;AAAA,IACpD,KAAK;AACH,aAAO,IAAI,kBAAkB,SAAS,KAAK;AAAA,IAC7C,KAAK;AACH,aAAO,IAAI,iBAAiB,SAAS,KAAK;AAAA,IAC5C,KAAK;AACH,aAAO,IAAI,mCAAmC,SAAS,KAAK;AAAA,IAC9D;AACE,aAAO,IAAI,UAAU,YAAY,WAAW,SAAS,KAAK;AAAA,EAC9D;AACF;AAEO,IAAM,iBAAiB,CAAC,eAAsC;AAEnE,QAAM,aAAc,WAAW,UAAU,UAAU;AACnD,QAAM,UAAU,WAAW,UAAU,cAAc;AAGnD,QAAM,QAAQ,IAAI,MAAM,WAAW,OAAO;AAC1C,QAAM,OAAO,WAAW;AACxB,QAAM,QAAQ,WAAW;AAEzB,QAAM,QAAQ,YAAY,UAAU;AAEpC,SAAO,gBAAgB,YAAY,SAAS,KAAK;AACnD;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebspark/openapi-core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
8
14
|
"files": [
|
|
9
15
|
"dist"
|
|
10
16
|
],
|
|
11
17
|
"scripts": {
|
|
12
|
-
"build": "tsup
|
|
18
|
+
"build": "tsup src/index.ts --config tsup.config.ts",
|
|
13
19
|
"dev": "tsc --watch --noEmit",
|
|
14
20
|
"lint": "biome check .",
|
|
15
21
|
"test": "vitest run --passWithNoTests --coverage",
|
|
@@ -17,7 +23,7 @@
|
|
|
17
23
|
},
|
|
18
24
|
"devDependencies": {
|
|
19
25
|
"@sebspark/tsconfig": "*",
|
|
20
|
-
"tsup
|
|
26
|
+
"tsup": "8.5.0",
|
|
21
27
|
"typescript": "5.9.3",
|
|
22
28
|
"vitest": "4.0.6"
|
|
23
29
|
},
|