@bitblit/ratchet-epsilon-common 4.0.184-alpha → 4.0.200-alpha
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/lib/epsilon-global-handler.d.ts +1 -1
- package/lib/http/error/bad-gateway.d.ts +2 -2
- package/lib/http/error/bad-request-error.d.ts +2 -2
- package/lib/http/error/conflict-error.d.ts +2 -2
- package/lib/http/error/forbidden-error.d.ts +2 -2
- package/lib/http/error/gateway-timeout.d.ts +2 -2
- package/lib/http/error/method-not-allowed-error.d.ts +2 -2
- package/lib/http/error/misconfigured-error.d.ts +2 -2
- package/lib/http/error/not-found-error.d.ts +2 -2
- package/lib/http/error/not-implemented.d.ts +2 -2
- package/lib/http/error/request-timeout-error.d.ts +2 -2
- package/lib/http/error/service-unavailable.d.ts +2 -2
- package/lib/http/error/too-many-requests-error.d.ts +2 -2
- package/lib/http/error/unauthorized-error.d.ts +2 -2
- package/lib/http/response-util.d.ts +2 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +18 -33
- package/lib/http/error/epsilon-http-error.d.ts +0 -41
- package/lib/http/error/epsilon-http-error.spec.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitblit/ratchet-epsilon-common",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.200-alpha",
|
|
4
4
|
"description": "Tiny adapter to simplify building API gateway Lambda APIS",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"bin": {
|
|
@@ -62,50 +62,35 @@
|
|
|
62
62
|
},
|
|
63
63
|
"license": "Apache-2.0",
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@aws-sdk/abort-controller": "3.
|
|
66
|
-
"@aws-sdk/client-s3": "3.
|
|
67
|
-
"@aws-sdk/client-sns": "3.
|
|
68
|
-
"@aws-sdk/client-sqs": "3.
|
|
69
|
-
"@aws-sdk/types": "3.
|
|
70
|
-
"@aws-sdk/util-waiter": "3.
|
|
71
|
-
"@bitblit/ratchet-aws": "4.0.
|
|
72
|
-
"@bitblit/ratchet-common": "4.0.
|
|
73
|
-
"@bitblit/ratchet-misc": "4.0.
|
|
74
|
-
"@bitblit/ratchet-node-only": "4.0.
|
|
65
|
+
"@aws-sdk/abort-controller": "3.370.0",
|
|
66
|
+
"@aws-sdk/client-s3": "3.370.0",
|
|
67
|
+
"@aws-sdk/client-sns": "3.370.0",
|
|
68
|
+
"@aws-sdk/client-sqs": "3.370.0",
|
|
69
|
+
"@aws-sdk/types": "3.370.0",
|
|
70
|
+
"@aws-sdk/util-waiter": "3.370.0",
|
|
71
|
+
"@bitblit/ratchet-aws": "4.0.200-alpha",
|
|
72
|
+
"@bitblit/ratchet-common": "4.0.200-alpha",
|
|
73
|
+
"@bitblit/ratchet-misc": "4.0.200-alpha",
|
|
74
|
+
"@bitblit/ratchet-node-only": "4.0.200-alpha",
|
|
75
75
|
"clear": "0.1.0",
|
|
76
76
|
"commander": "11.0.0",
|
|
77
77
|
"cross-fetch": "4.0.0",
|
|
78
78
|
"js-yaml": "4.1.0",
|
|
79
79
|
"jsonwebtoken": "9.0.1",
|
|
80
80
|
"jwks-rsa": "3.0.1",
|
|
81
|
-
"luxon": "3.
|
|
81
|
+
"luxon": "3.4.0",
|
|
82
82
|
"reflect-metadata": "0.1.13",
|
|
83
83
|
"route-parser": "0.0.5",
|
|
84
84
|
"rxjs": "7.8.1",
|
|
85
85
|
"strip-js": "1.2.0",
|
|
86
86
|
"swagger-model-validator": "3.0.21"
|
|
87
87
|
},
|
|
88
|
-
"resolutions": {
|
|
89
|
-
"ansi-regex": "^6.0.1",
|
|
90
|
-
"ajv": "^6.12.6",
|
|
91
|
-
"browserslist": "^4.21.7",
|
|
92
|
-
"express": "^4.18.2",
|
|
93
|
-
"glob-parent": "^6.0.2",
|
|
94
|
-
"jose": "^4.14.4",
|
|
95
|
-
"json5": "^2.2.3",
|
|
96
|
-
"lodash": "^4.17.21",
|
|
97
|
-
"minimist": "^1.2.8",
|
|
98
|
-
"node-fetch": "^3.3.1",
|
|
99
|
-
"nth-check": "^2.1.1",
|
|
100
|
-
"object-path": "^0.11.8",
|
|
101
|
-
"path-parse": "^1.0.7",
|
|
102
|
-
"shelljs": "^0.8.5",
|
|
103
|
-
"sanitize-html": "^2.10.0",
|
|
104
|
-
"tmpl": "^1.0.5",
|
|
105
|
-
"y18n": "^5.0.8"
|
|
106
|
-
},
|
|
107
88
|
"peerDependencies": {
|
|
108
89
|
"@apollo/server": "^4.7.5",
|
|
90
|
+
"@bitblit/ratchet-aws": "4.0.200-alpha",
|
|
91
|
+
"@bitblit/ratchet-common": "4.0.200-alpha",
|
|
92
|
+
"@bitblit/ratchet-misc": "4.0.200-alpha",
|
|
93
|
+
"@bitblit/ratchet-node-only": "4.0.200-alpha",
|
|
109
94
|
"graphql": "^16.7.1"
|
|
110
95
|
},
|
|
111
96
|
"peerDependenciesMeta": {
|
|
@@ -117,8 +102,8 @@
|
|
|
117
102
|
}
|
|
118
103
|
},
|
|
119
104
|
"devDependencies": {
|
|
120
|
-
"@apollo/server": "4.
|
|
121
|
-
"@bitblit/ratchet-jest": "4.0.
|
|
105
|
+
"@apollo/server": "4.9.1",
|
|
106
|
+
"@bitblit/ratchet-jest": "4.0.200-alpha",
|
|
122
107
|
"@types/aws-lambda": "8.10.119",
|
|
123
108
|
"aws-sdk-client-mock": "3.0.0",
|
|
124
109
|
"graphql": "16.7.1",
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export declare class EpsilonHttpError<T = void> extends Error {
|
|
2
|
-
private static readonly EPSILON_HTTP_ERROR_FLAG_KEY;
|
|
3
|
-
private _httpStatusCode;
|
|
4
|
-
private _errors;
|
|
5
|
-
private _detailErrorCode;
|
|
6
|
-
private _endUserErrors;
|
|
7
|
-
private _details;
|
|
8
|
-
private _requestId;
|
|
9
|
-
private _wrappedError;
|
|
10
|
-
constructor(...errors: string[]);
|
|
11
|
-
static combineErrorStringsWithDefault(errors: string[], defMessage?: string): string;
|
|
12
|
-
setFormattedErrorMessage(format: string, ...input: any[]): void;
|
|
13
|
-
withFormattedErrorMessage(format: string, ...input: any[]): EpsilonHttpError<T>;
|
|
14
|
-
withHttpStatusCode(httpStatusCode: number): EpsilonHttpError<T>;
|
|
15
|
-
withErrors(errors: string[]): EpsilonHttpError<T>;
|
|
16
|
-
withDetailErrorCode(detailErrorCode: number): EpsilonHttpError<T>;
|
|
17
|
-
withEndUserErrors(endUserErrors: string[]): EpsilonHttpError<T>;
|
|
18
|
-
withDetails(details: T): EpsilonHttpError<T>;
|
|
19
|
-
withRequestId(requestId: string): EpsilonHttpError<T>;
|
|
20
|
-
withWrappedError(err: Error): EpsilonHttpError<T>;
|
|
21
|
-
isWrappedError(): boolean;
|
|
22
|
-
static wrapError<T = void>(err: Error): EpsilonHttpError<T>;
|
|
23
|
-
static objectIsEpsilonHttpError(obj: any): boolean;
|
|
24
|
-
get httpStatusCode(): number;
|
|
25
|
-
get errors(): string[];
|
|
26
|
-
get detailErrorCode(): number;
|
|
27
|
-
get endUserErrors(): string[];
|
|
28
|
-
get details(): T;
|
|
29
|
-
get requestId(): string;
|
|
30
|
-
get wrappedError(): Error;
|
|
31
|
-
set httpStatusCode(value: number);
|
|
32
|
-
set errors(value: string[]);
|
|
33
|
-
set detailErrorCode(value: number);
|
|
34
|
-
set endUserErrors(value: string[]);
|
|
35
|
-
set details(value: T);
|
|
36
|
-
set requestId(value: string);
|
|
37
|
-
set wrappedError(value: Error);
|
|
38
|
-
static errorIsX0x(errIn: Error, xClass: number): boolean;
|
|
39
|
-
static errorIs40x(err: Error): boolean;
|
|
40
|
-
static errorIs50x(err: Error): boolean;
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|