jaypie 1.2.54 → 1.2.56
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/cjs/index.d.cts +75 -0
- package/dist/esm/index.d.ts +75 -13
- package/package.json +18 -12
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export * from '@jaypie/errors';
|
|
2
|
+
export { InternalError as MultiError, InternalError as ProjectError, InternalError as ProjectMultiError, jaypieErrorFromStatus as errorFromStatusCode } from '@jaypie/errors';
|
|
3
|
+
export * from '@jaypie/kit';
|
|
4
|
+
export { log } from '@jaypie/logger';
|
|
5
|
+
export * from '@jaypie/aws';
|
|
6
|
+
export * from '@jaypie/datadog';
|
|
7
|
+
export * from '@jaypie/express';
|
|
8
|
+
export { AwsStreamingHandler, LambdaHandlerFunction, LambdaHandlerOptions, LambdaStreamContext, LambdaStreamHandlerFunction, LambdaStreamHandlerOptions, StreamHandlerContext, lambdaHandler, lambdaStreamHandler, migrationHandler } from '@jaypie/lambda';
|
|
9
|
+
|
|
10
|
+
declare const ERROR: {
|
|
11
|
+
readonly MESSAGE: {
|
|
12
|
+
readonly BAD_GATEWAY: "An unexpected error occurred on an upstream resource";
|
|
13
|
+
readonly BAD_REQUEST: "The request was not properly formatted";
|
|
14
|
+
readonly CONFIGURATION_ERROR: "The application responding to the request encountered a configuration error";
|
|
15
|
+
readonly CORS_ERROR: "The requesting origin is not authorized to this resource";
|
|
16
|
+
readonly FORBIDDEN: "Access to this resource is not authorized";
|
|
17
|
+
readonly GATEWAY_TIMEOUT: "The connection timed out waiting for an upstream resource";
|
|
18
|
+
readonly GONE: "The requested resource is no longer available";
|
|
19
|
+
readonly ILLOGICAL: "The application encountered an illogical condition while processing the request";
|
|
20
|
+
readonly INTERNAL_ERROR: "An unexpected error occurred and the request was unable to complete";
|
|
21
|
+
readonly METHOD_NOT_ALLOWED: "The requested method is not allowed";
|
|
22
|
+
readonly NOT_FOUND: "The requested resource was not found";
|
|
23
|
+
readonly NOT_IMPLEMENTED: "The request was understood but the resource is not implemented";
|
|
24
|
+
readonly REJECTED: "The request was rejected prior to processing";
|
|
25
|
+
readonly TEAPOT: "This resource is a teapot incapable of processing the request";
|
|
26
|
+
readonly TOO_MANY_REQUESTS: "The requesting origin exceeded the request limit";
|
|
27
|
+
readonly UNAUTHORIZED: "The request did not include valid authentication credentials";
|
|
28
|
+
readonly UNAVAILABLE: "The requested resource is temporarily unavailable";
|
|
29
|
+
readonly UNHANDLED: "An unhandled error occurred and the request was unable to complete";
|
|
30
|
+
readonly UNREACHABLE_CODE: "The application encountered an unreachable condition while processing the request";
|
|
31
|
+
};
|
|
32
|
+
readonly TITLE: {
|
|
33
|
+
readonly BAD_GATEWAY: "Bad Gateway";
|
|
34
|
+
readonly BAD_REQUEST: "Bad Request";
|
|
35
|
+
readonly CONFIGURATION_ERROR: "Internal Configuration Error";
|
|
36
|
+
readonly CORS_ERROR: "Unauthorized Origin";
|
|
37
|
+
readonly FORBIDDEN: "Forbidden";
|
|
38
|
+
readonly GATEWAY_TIMEOUT: "Gateway Timeout";
|
|
39
|
+
readonly GONE: "Gone";
|
|
40
|
+
readonly INTERNAL_ERROR: "Internal Application Error";
|
|
41
|
+
readonly METHOD_NOT_ALLOWED: "Method Not Allowed";
|
|
42
|
+
readonly NOT_FOUND: "Not Found";
|
|
43
|
+
readonly NOT_IMPLEMENTED: "Not Implemented";
|
|
44
|
+
readonly REJECTED: "Request Rejected";
|
|
45
|
+
readonly TEAPOT: "Teapot";
|
|
46
|
+
readonly TOO_MANY_REQUESTS: "Too Many Requests";
|
|
47
|
+
readonly UNAUTHORIZED: "Service Unauthorized";
|
|
48
|
+
readonly UNAVAILABLE: "Service Unavailable";
|
|
49
|
+
};
|
|
50
|
+
readonly TYPE: {
|
|
51
|
+
readonly BAD_GATEWAY: "BAD_GATEWAY";
|
|
52
|
+
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
53
|
+
readonly CONFIGURATION_ERROR: "CONFIGURATION_ERROR";
|
|
54
|
+
readonly CORS_ERROR: "CORS_ERROR";
|
|
55
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
56
|
+
readonly GATEWAY_TIMEOUT: "GATEWAY_TIMEOUT";
|
|
57
|
+
readonly GONE: "GONE";
|
|
58
|
+
readonly ILLOGICAL: "ILLOGICAL";
|
|
59
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
60
|
+
readonly METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED";
|
|
61
|
+
readonly MULTI_ERROR: "MULTI_ERROR";
|
|
62
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
63
|
+
readonly NOT_IMPLEMENTED: "NOT_IMPLEMENTED";
|
|
64
|
+
readonly REJECTED: "REJECTED";
|
|
65
|
+
readonly TEAPOT: "TEAPOT";
|
|
66
|
+
readonly TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS";
|
|
67
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
68
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
69
|
+
readonly UNHANDLED: "UNHANDLED";
|
|
70
|
+
readonly UNKNOWN_TYPE: "UNKNOWN_TYPE";
|
|
71
|
+
readonly UNREACHABLE_CODE: "UNREACHABLE_CODE";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { ERROR };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,13 +1,75 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { jaypieErrorFromStatus as errorFromStatusCode } from
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export * from
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export * from '@jaypie/errors';
|
|
2
|
+
export { InternalError as MultiError, InternalError as ProjectError, InternalError as ProjectMultiError, jaypieErrorFromStatus as errorFromStatusCode } from '@jaypie/errors';
|
|
3
|
+
export * from '@jaypie/kit';
|
|
4
|
+
export { log } from '@jaypie/logger';
|
|
5
|
+
export * from '@jaypie/aws';
|
|
6
|
+
export * from '@jaypie/datadog';
|
|
7
|
+
export * from '@jaypie/express';
|
|
8
|
+
export { AwsStreamingHandler, LambdaHandlerFunction, LambdaHandlerOptions, LambdaStreamContext, LambdaStreamHandlerFunction, LambdaStreamHandlerOptions, StreamHandlerContext, lambdaHandler, lambdaStreamHandler, migrationHandler } from '@jaypie/lambda';
|
|
9
|
+
|
|
10
|
+
declare const ERROR: {
|
|
11
|
+
readonly MESSAGE: {
|
|
12
|
+
readonly BAD_GATEWAY: "An unexpected error occurred on an upstream resource";
|
|
13
|
+
readonly BAD_REQUEST: "The request was not properly formatted";
|
|
14
|
+
readonly CONFIGURATION_ERROR: "The application responding to the request encountered a configuration error";
|
|
15
|
+
readonly CORS_ERROR: "The requesting origin is not authorized to this resource";
|
|
16
|
+
readonly FORBIDDEN: "Access to this resource is not authorized";
|
|
17
|
+
readonly GATEWAY_TIMEOUT: "The connection timed out waiting for an upstream resource";
|
|
18
|
+
readonly GONE: "The requested resource is no longer available";
|
|
19
|
+
readonly ILLOGICAL: "The application encountered an illogical condition while processing the request";
|
|
20
|
+
readonly INTERNAL_ERROR: "An unexpected error occurred and the request was unable to complete";
|
|
21
|
+
readonly METHOD_NOT_ALLOWED: "The requested method is not allowed";
|
|
22
|
+
readonly NOT_FOUND: "The requested resource was not found";
|
|
23
|
+
readonly NOT_IMPLEMENTED: "The request was understood but the resource is not implemented";
|
|
24
|
+
readonly REJECTED: "The request was rejected prior to processing";
|
|
25
|
+
readonly TEAPOT: "This resource is a teapot incapable of processing the request";
|
|
26
|
+
readonly TOO_MANY_REQUESTS: "The requesting origin exceeded the request limit";
|
|
27
|
+
readonly UNAUTHORIZED: "The request did not include valid authentication credentials";
|
|
28
|
+
readonly UNAVAILABLE: "The requested resource is temporarily unavailable";
|
|
29
|
+
readonly UNHANDLED: "An unhandled error occurred and the request was unable to complete";
|
|
30
|
+
readonly UNREACHABLE_CODE: "The application encountered an unreachable condition while processing the request";
|
|
31
|
+
};
|
|
32
|
+
readonly TITLE: {
|
|
33
|
+
readonly BAD_GATEWAY: "Bad Gateway";
|
|
34
|
+
readonly BAD_REQUEST: "Bad Request";
|
|
35
|
+
readonly CONFIGURATION_ERROR: "Internal Configuration Error";
|
|
36
|
+
readonly CORS_ERROR: "Unauthorized Origin";
|
|
37
|
+
readonly FORBIDDEN: "Forbidden";
|
|
38
|
+
readonly GATEWAY_TIMEOUT: "Gateway Timeout";
|
|
39
|
+
readonly GONE: "Gone";
|
|
40
|
+
readonly INTERNAL_ERROR: "Internal Application Error";
|
|
41
|
+
readonly METHOD_NOT_ALLOWED: "Method Not Allowed";
|
|
42
|
+
readonly NOT_FOUND: "Not Found";
|
|
43
|
+
readonly NOT_IMPLEMENTED: "Not Implemented";
|
|
44
|
+
readonly REJECTED: "Request Rejected";
|
|
45
|
+
readonly TEAPOT: "Teapot";
|
|
46
|
+
readonly TOO_MANY_REQUESTS: "Too Many Requests";
|
|
47
|
+
readonly UNAUTHORIZED: "Service Unauthorized";
|
|
48
|
+
readonly UNAVAILABLE: "Service Unavailable";
|
|
49
|
+
};
|
|
50
|
+
readonly TYPE: {
|
|
51
|
+
readonly BAD_GATEWAY: "BAD_GATEWAY";
|
|
52
|
+
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
53
|
+
readonly CONFIGURATION_ERROR: "CONFIGURATION_ERROR";
|
|
54
|
+
readonly CORS_ERROR: "CORS_ERROR";
|
|
55
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
56
|
+
readonly GATEWAY_TIMEOUT: "GATEWAY_TIMEOUT";
|
|
57
|
+
readonly GONE: "GONE";
|
|
58
|
+
readonly ILLOGICAL: "ILLOGICAL";
|
|
59
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
60
|
+
readonly METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED";
|
|
61
|
+
readonly MULTI_ERROR: "MULTI_ERROR";
|
|
62
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
63
|
+
readonly NOT_IMPLEMENTED: "NOT_IMPLEMENTED";
|
|
64
|
+
readonly REJECTED: "REJECTED";
|
|
65
|
+
readonly TEAPOT: "TEAPOT";
|
|
66
|
+
readonly TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS";
|
|
67
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
68
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
69
|
+
readonly UNHANDLED: "UNHANDLED";
|
|
70
|
+
readonly UNKNOWN_TYPE: "UNKNOWN_TYPE";
|
|
71
|
+
readonly UNREACHABLE_CODE: "UNREACHABLE_CODE";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { ERROR };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jaypie",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.56",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/finlaysonstudio/jaypie.git"
|
|
@@ -11,9 +11,14 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/esm/index.d.ts",
|
|
16
|
+
"default": "./dist/esm/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/cjs/index.d.cts",
|
|
20
|
+
"default": "./dist/cjs/index.cjs"
|
|
21
|
+
}
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
24
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -32,14 +37,14 @@
|
|
|
32
37
|
"typecheck": "tsc --noEmit"
|
|
33
38
|
},
|
|
34
39
|
"dependencies": {
|
|
35
|
-
"@jaypie/aws": "^1.2.
|
|
36
|
-
"@jaypie/core": "^1.2.
|
|
37
|
-
"@jaypie/datadog": "^1.2.
|
|
38
|
-
"@jaypie/errors": "^1.2.
|
|
39
|
-
"@jaypie/express": "^1.2.
|
|
40
|
-
"@jaypie/kit": "^1.2.
|
|
41
|
-
"@jaypie/lambda": "^1.2.
|
|
42
|
-
"@jaypie/logger": "^1.2.
|
|
40
|
+
"@jaypie/aws": "^1.2.10",
|
|
41
|
+
"@jaypie/core": "^1.2.3",
|
|
42
|
+
"@jaypie/datadog": "^1.2.5",
|
|
43
|
+
"@jaypie/errors": "^1.2.3",
|
|
44
|
+
"@jaypie/express": "^1.2.26",
|
|
45
|
+
"@jaypie/kit": "^1.2.11",
|
|
46
|
+
"@jaypie/lambda": "^1.2.11",
|
|
47
|
+
"@jaypie/logger": "^1.2.18"
|
|
43
48
|
},
|
|
44
49
|
"devDependencies": {
|
|
45
50
|
"@jaypie/types": "^0.1.7",
|
|
@@ -49,6 +54,7 @@
|
|
|
49
54
|
"@typescript-eslint/parser": "^8.46.1",
|
|
50
55
|
"eslint-config-prettier": "^10.1.8",
|
|
51
56
|
"eslint-plugin-prettier": "^5.5.4",
|
|
57
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
52
58
|
"typescript": "^5.9.3",
|
|
53
59
|
"typescript-eslint": "^8.46.1"
|
|
54
60
|
},
|