@baseplate-dev/fastify-generators 0.5.1 → 0.5.2
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/CHANGELOG.md +578 -0
- package/dist/constants/fastify-packages.d.ts +5 -5
- package/dist/constants/fastify-packages.js +5 -5
- package/dist/generators/auth/auth-context/auth-context.generator.d.ts +1 -0
- package/dist/generators/auth/auth-context/auth-context.generator.d.ts.map +1 -1
- package/dist/generators/auth/auth-context/generated/index.d.ts +3 -0
- package/dist/generators/auth/auth-context/generated/index.d.ts.map +1 -1
- package/dist/generators/auth/auth-context/generated/template-renderers.d.ts +1 -0
- package/dist/generators/auth/auth-context/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/auth/auth-context/generated/typed-templates.d.ts +4 -0
- package/dist/generators/auth/auth-context/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/auth/auth-context/templates/module/utils/auth-context.utils.ts +1 -1
- package/dist/generators/auth/authorizer-utils-stub/authorizer-utils-stub.generator.d.ts +1 -0
- package/dist/generators/auth/authorizer-utils-stub/authorizer-utils-stub.generator.d.ts.map +1 -1
- package/dist/generators/auth/authorizer-utils-stub/generated/index.d.ts +2 -0
- package/dist/generators/auth/authorizer-utils-stub/generated/index.d.ts.map +1 -1
- package/dist/generators/auth/authorizer-utils-stub/generated/template-renderers.d.ts +1 -0
- package/dist/generators/auth/authorizer-utils-stub/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/auth/authorizer-utils-stub/generated/typed-templates.d.ts +2 -0
- package/dist/generators/auth/authorizer-utils-stub/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/core/app-module/app-module.generator.d.ts.map +1 -1
- package/dist/generators/core/app-module/app-module.generator.js.map +1 -1
- package/dist/generators/core/axios/axios.generator.d.ts.map +1 -1
- package/dist/generators/core/axios/axios.generator.js +6 -1
- package/dist/generators/core/axios/axios.generator.js.map +1 -1
- package/dist/generators/core/error-handler-service/error-handler-service.generator.d.ts +2 -0
- package/dist/generators/core/error-handler-service/error-handler-service.generator.d.ts.map +1 -1
- package/dist/generators/core/error-handler-service/generated/index.d.ts +1 -0
- package/dist/generators/core/error-handler-service/generated/index.d.ts.map +1 -1
- package/dist/generators/core/error-handler-service/generated/ts-import-providers.d.ts +3 -0
- package/dist/generators/core/error-handler-service/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/generators/core/error-handler-service/generated/ts-import-providers.js +2 -0
- package/dist/generators/core/error-handler-service/generated/ts-import-providers.js.map +1 -1
- package/dist/generators/core/error-handler-service/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/core/error-handler-service/generated/typed-templates.js +1 -0
- package/dist/generators/core/error-handler-service/generated/typed-templates.js.map +1 -1
- package/dist/generators/core/error-handler-service/templates/src/plugins/error-handler.ts +5 -0
- package/dist/generators/core/error-handler-service/templates/src/utils/http-errors.ts +16 -0
- package/dist/generators/core/fastify-graceful-shutdown/fastify-graceful-shutdown.generator.d.ts +1 -0
- package/dist/generators/core/fastify-graceful-shutdown/fastify-graceful-shutdown.generator.d.ts.map +1 -1
- package/dist/generators/core/fastify-graceful-shutdown/generated/index.d.ts +2 -0
- package/dist/generators/core/fastify-graceful-shutdown/generated/index.d.ts.map +1 -1
- package/dist/generators/core/fastify-graceful-shutdown/generated/template-renderers.d.ts +1 -0
- package/dist/generators/core/fastify-graceful-shutdown/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/core/fastify-graceful-shutdown/generated/typed-templates.d.ts +1 -0
- package/dist/generators/core/fastify-graceful-shutdown/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/core/fastify-sentry/fastify-sentry.generator.d.ts +1 -0
- package/dist/generators/core/fastify-sentry/fastify-sentry.generator.d.ts.map +1 -1
- package/dist/generators/core/fastify-sentry/generated/index.d.ts +2 -0
- package/dist/generators/core/fastify-sentry/generated/index.d.ts.map +1 -1
- package/dist/generators/core/fastify-sentry/generated/template-renderers.d.ts +1 -0
- package/dist/generators/core/fastify-sentry/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/core/fastify-sentry/generated/typed-templates.d.ts +1 -0
- package/dist/generators/core/fastify-sentry/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/core/logger-service/logger-service.generator.js +4 -3
- package/dist/generators/core/logger-service/logger-service.generator.js.map +1 -1
- package/dist/generators/core/service-file/service-file.generator.js +2 -2
- package/dist/generators/core/service-file/service-file.generator.js.map +1 -1
- package/dist/generators/prisma/_shared/crud-method/primary-key-input.js +2 -2
- package/dist/generators/prisma/_shared/crud-method/primary-key-input.js.map +1 -1
- package/dist/generators/prisma/data-utils/data-utils.generator.d.ts +1 -0
- package/dist/generators/prisma/data-utils/data-utils.generator.d.ts.map +1 -1
- package/dist/generators/prisma/data-utils/generated/index.d.ts +2 -0
- package/dist/generators/prisma/data-utils/generated/index.d.ts.map +1 -1
- package/dist/generators/prisma/data-utils/generated/template-renderers.d.ts +1 -0
- package/dist/generators/prisma/data-utils/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/prisma/data-utils/generated/typed-templates.d.ts +2 -0
- package/dist/generators/prisma/data-utils/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/prisma/data-utils/templates/src/utils/data-operations/field-definitions.ts +9 -41
- package/dist/generators/prisma/index.d.ts +1 -0
- package/dist/generators/prisma/index.d.ts.map +1 -1
- package/dist/generators/prisma/index.js +1 -0
- package/dist/generators/prisma/index.js.map +1 -1
- package/dist/generators/prisma/prisma-authorizer-utils/generated/index.d.ts +2 -0
- package/dist/generators/prisma/prisma-authorizer-utils/generated/index.d.ts.map +1 -1
- package/dist/generators/prisma/prisma-authorizer-utils/generated/template-renderers.d.ts +1 -0
- package/dist/generators/prisma/prisma-authorizer-utils/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/prisma/prisma-authorizer-utils/generated/typed-templates.d.ts +2 -0
- package/dist/generators/prisma/prisma-authorizer-utils/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/prisma/prisma-authorizer-utils/prisma-authorizer-utils.generator.d.ts +1 -0
- package/dist/generators/prisma/prisma-authorizer-utils/prisma-authorizer-utils.generator.d.ts.map +1 -1
- package/dist/generators/prisma/prisma-model-authorizer/index.d.ts +2 -0
- package/dist/generators/prisma/prisma-model-authorizer/index.d.ts.map +1 -0
- package/dist/generators/prisma/prisma-model-authorizer/index.js +2 -0
- package/dist/generators/prisma/prisma-model-authorizer/index.js.map +1 -0
- package/dist/generators/prisma/prisma-model-authorizer/prisma-model-authorizer.generator.d.ts +54 -0
- package/dist/generators/prisma/prisma-model-authorizer/prisma-model-authorizer.generator.d.ts.map +1 -0
- package/dist/generators/prisma/prisma-model-authorizer/prisma-model-authorizer.generator.js +96 -0
- package/dist/generators/prisma/prisma-model-authorizer/prisma-model-authorizer.generator.js.map +1 -0
- package/dist/generators/stripe/fastify-stripe/fastify-stripe.generator.d.ts +1 -0
- package/dist/generators/stripe/fastify-stripe/fastify-stripe.generator.d.ts.map +1 -1
- package/dist/generators/stripe/fastify-stripe/generated/index.d.ts +2 -0
- package/dist/generators/stripe/fastify-stripe/generated/index.d.ts.map +1 -1
- package/dist/generators/stripe/fastify-stripe/generated/template-renderers.d.ts +1 -0
- package/dist/generators/stripe/fastify-stripe/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/stripe/fastify-stripe/generated/typed-templates.d.ts +2 -0
- package/dist/generators/stripe/fastify-stripe/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/yoga/yoga-plugin/generated/index.d.ts +4 -0
- package/dist/generators/yoga/yoga-plugin/generated/index.d.ts.map +1 -1
- package/dist/generators/yoga/yoga-plugin/generated/template-renderers.d.ts +1 -0
- package/dist/generators/yoga/yoga-plugin/generated/template-renderers.d.ts.map +1 -1
- package/dist/generators/yoga/yoga-plugin/generated/typed-templates.d.ts +4 -0
- package/dist/generators/yoga/yoga-plugin/generated/typed-templates.d.ts.map +1 -1
- package/dist/generators/yoga/yoga-plugin/yoga-plugin.generator.d.ts +2 -0
- package/dist/generators/yoga/yoga-plugin/yoga-plugin.generator.d.ts.map +1 -1
- package/dist/generators/yoga/yoga-plugin/yoga-plugin.generator.js.map +1 -1
- package/dist/types/service-output.d.ts.map +1 -1
- package/dist/types/service-output.js.map +1 -1
- package/dist/writers/pothos/scalars.d.ts.map +1 -1
- package/dist/writers/pothos/scalars.js.map +1 -1
- package/dist/writers/prisma-schema/model-writer.js +2 -2
- package/dist/writers/prisma-schema/model-writer.js.map +1 -1
- package/package.json +10 -10
|
@@ -45,6 +45,7 @@ export declare const authContextGenerator: import("@baseplate-dev/sync").Generat
|
|
|
45
45
|
InternalServerError: {};
|
|
46
46
|
logError: {};
|
|
47
47
|
NotFoundError: {};
|
|
48
|
+
TooManyRequestsError: {};
|
|
48
49
|
UnauthorizedError: {};
|
|
49
50
|
}>>;
|
|
50
51
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").AuthAuthContextPaths>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-context.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/auth/auth-context/auth-context.generator.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"auth-context.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/auth/auth-context/auth-context.generator.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6D/B,CAAC"}
|
|
@@ -52,6 +52,7 @@ export declare const AUTH_AUTH_CONTEXT_GENERATED: {
|
|
|
52
52
|
InternalServerError: {};
|
|
53
53
|
logError: {};
|
|
54
54
|
NotFoundError: {};
|
|
55
|
+
TooManyRequestsError: {};
|
|
55
56
|
UnauthorizedError: {};
|
|
56
57
|
}>>;
|
|
57
58
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").AuthAuthContextPaths>;
|
|
@@ -95,6 +96,7 @@ export declare const AUTH_AUTH_CONTEXT_GENERATED: {
|
|
|
95
96
|
InternalServerError: {};
|
|
96
97
|
logError: {};
|
|
97
98
|
NotFoundError: {};
|
|
99
|
+
TooManyRequestsError: {};
|
|
98
100
|
UnauthorizedError: {};
|
|
99
101
|
}>>;
|
|
100
102
|
}, {
|
|
@@ -121,6 +123,7 @@ export declare const AUTH_AUTH_CONTEXT_GENERATED: {
|
|
|
121
123
|
InternalServerError: {};
|
|
122
124
|
logError: {};
|
|
123
125
|
NotFoundError: {};
|
|
126
|
+
TooManyRequestsError: {};
|
|
124
127
|
UnauthorizedError: {};
|
|
125
128
|
}>>;
|
|
126
129
|
}, Record<never, Record<never, never>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/auth-context/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/auth-context/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAC"}
|
|
@@ -30,6 +30,7 @@ export declare const AUTH_AUTH_CONTEXT_RENDERERS: {
|
|
|
30
30
|
InternalServerError: {};
|
|
31
31
|
logError: {};
|
|
32
32
|
NotFoundError: {};
|
|
33
|
+
TooManyRequestsError: {};
|
|
33
34
|
UnauthorizedError: {};
|
|
34
35
|
}>>;
|
|
35
36
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").AuthAuthContextPaths>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/auth-context/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE;QACT,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,2BAA2B,CAAC,SAAS,CAC7C,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAqCD,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/auth-context/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE;QACT,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,2BAA2B,CAAC,SAAS,CAC7C,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAqCD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvC,CAAC"}
|
|
@@ -34,6 +34,7 @@ export declare const mainGroup: {
|
|
|
34
34
|
InternalServerError: {};
|
|
35
35
|
logError: {};
|
|
36
36
|
NotFoundError: {};
|
|
37
|
+
TooManyRequestsError: {};
|
|
37
38
|
UnauthorizedError: {};
|
|
38
39
|
}>>;
|
|
39
40
|
}, {
|
|
@@ -60,6 +61,7 @@ export declare const mainGroup: {
|
|
|
60
61
|
InternalServerError: {};
|
|
61
62
|
logError: {};
|
|
62
63
|
NotFoundError: {};
|
|
64
|
+
TooManyRequestsError: {};
|
|
63
65
|
UnauthorizedError: {};
|
|
64
66
|
}>>;
|
|
65
67
|
}, Record<never, Record<never, never>>>;
|
|
@@ -101,6 +103,7 @@ export declare const AUTH_AUTH_CONTEXT_TEMPLATES: {
|
|
|
101
103
|
InternalServerError: {};
|
|
102
104
|
logError: {};
|
|
103
105
|
NotFoundError: {};
|
|
106
|
+
TooManyRequestsError: {};
|
|
104
107
|
UnauthorizedError: {};
|
|
105
108
|
}>>;
|
|
106
109
|
}, {
|
|
@@ -127,6 +130,7 @@ export declare const AUTH_AUTH_CONTEXT_TEMPLATES: {
|
|
|
127
130
|
InternalServerError: {};
|
|
128
131
|
logError: {};
|
|
129
132
|
NotFoundError: {};
|
|
133
|
+
TooManyRequestsError: {};
|
|
130
134
|
UnauthorizedError: {};
|
|
131
135
|
}>>;
|
|
132
136
|
}, Record<never, Record<never, never>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/auth-context/generated/typed-templates.ts"],"names":[],"mappings":"AAmEA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/auth-context/generated/typed-templates.ts"],"names":[],"mappings":"AAmEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIrB,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgB,CAAC"}
|
|
@@ -26,7 +26,7 @@ export function createAuthContextFromSessionInfo(
|
|
|
26
26
|
},
|
|
27
27
|
userId: session?.type === 'user' ? session.userId : undefined,
|
|
28
28
|
userIdOrThrow: () => {
|
|
29
|
-
if (
|
|
29
|
+
if (session?.type !== 'user') {
|
|
30
30
|
throw new UnauthorizedError('User session is required');
|
|
31
31
|
}
|
|
32
32
|
return session.userId;
|
|
@@ -34,6 +34,7 @@ export declare const authorizerUtilsStubGenerator: import("@baseplate-dev/sync")
|
|
|
34
34
|
InternalServerError: {};
|
|
35
35
|
logError: {};
|
|
36
36
|
NotFoundError: {};
|
|
37
|
+
TooManyRequestsError: {};
|
|
37
38
|
UnauthorizedError: {};
|
|
38
39
|
}>>;
|
|
39
40
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").PrismaAuthorizerUtilsStubPaths>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorizer-utils-stub.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/auth/authorizer-utils-stub/authorizer-utils-stub.generator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"authorizer-utils-stub.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/auth/authorizer-utils-stub/authorizer-utils-stub.generator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBvC,CAAC"}
|
|
@@ -36,6 +36,7 @@ export declare const PRISMA_AUTHORIZER_UTILS_STUB_GENERATED: {
|
|
|
36
36
|
InternalServerError: {};
|
|
37
37
|
logError: {};
|
|
38
38
|
NotFoundError: {};
|
|
39
|
+
TooManyRequestsError: {};
|
|
39
40
|
UnauthorizedError: {};
|
|
40
41
|
}>>;
|
|
41
42
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").PrismaAuthorizerUtilsStubPaths>;
|
|
@@ -61,6 +62,7 @@ export declare const PRISMA_AUTHORIZER_UTILS_STUB_GENERATED: {
|
|
|
61
62
|
InternalServerError: {};
|
|
62
63
|
logError: {};
|
|
63
64
|
NotFoundError: {};
|
|
65
|
+
TooManyRequestsError: {};
|
|
64
66
|
UnauthorizedError: {};
|
|
65
67
|
}>>;
|
|
66
68
|
serviceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/authorizer-utils-stub/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/authorizer-utils-stub/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlD,CAAC"}
|
|
@@ -19,6 +19,7 @@ export declare const PRISMA_AUTHORIZER_UTILS_STUB_RENDERERS: {
|
|
|
19
19
|
InternalServerError: {};
|
|
20
20
|
logError: {};
|
|
21
21
|
NotFoundError: {};
|
|
22
|
+
TooManyRequestsError: {};
|
|
22
23
|
UnauthorizedError: {};
|
|
23
24
|
}>>;
|
|
24
25
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").PrismaAuthorizerUtilsStubPaths>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/authorizer-utils-stub/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;AAE9E,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE;QACT,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,sCAAsC,CAAC,SAAS,CACxD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA6CD,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/authorizer-utils-stub/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,sBAAsB,CAAC;AAE9E,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE;QACT,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,sCAAsC,CAAC,SAAS,CACxD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA6CD,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlD,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare const mainGroup: {
|
|
|
8
8
|
InternalServerError: {};
|
|
9
9
|
logError: {};
|
|
10
10
|
NotFoundError: {};
|
|
11
|
+
TooManyRequestsError: {};
|
|
11
12
|
UnauthorizedError: {};
|
|
12
13
|
}>>;
|
|
13
14
|
serviceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -31,6 +32,7 @@ export declare const PRISMA_AUTHORIZER_UTILS_STUB_TEMPLATES: {
|
|
|
31
32
|
InternalServerError: {};
|
|
32
33
|
logError: {};
|
|
33
34
|
NotFoundError: {};
|
|
35
|
+
TooManyRequestsError: {};
|
|
34
36
|
UnauthorizedError: {};
|
|
35
37
|
}>>;
|
|
36
38
|
serviceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/authorizer-utils-stub/generated/typed-templates.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/auth/authorizer-utils-stub/generated/typed-templates.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;CAAuB,CAAC;AAE9C,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;CAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-module.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/app-module/app-module.generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AA+B3E,QAAA,MAAM,qBAAqB;;;CAGxB,CAAC;AAEJ,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"app-module.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/app-module/app-module.generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AA+B3E,QAAA,MAAM,qBAAqB;;;CAGxB,CAAC;AAEJ,MAAM,WAAW,iBAAkB,SAAQ,8BAA8B,CACvE,OAAO,qBAAqB,CAC7B;IACC,eAAe,IAAI,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,iBAAiB,+DACuB,CAAC;AAEtD,MAAM,WAAW,wBAAwB;IACvC,iBAAiB,IAAI,cAAc,CAAC;IACpC,aAAa,IAAI,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,wBAAwB,sEAC+B,CAAC;AAiBrE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;EAmH7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-module.generator.js","sourceRoot":"","sources":["../../../../src/generators/core/app-module/app-module.generator.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,eAAe,EACf,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,2BAA2B,EAC3B,cAAc,EACd,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,qBAAqB,GAAG,2BAA2B,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChE,YAAY,EAAE,CAAC,CAAC,SAAS,EAAkC;IAC3D,aAAa,EAAE,CAAC,CAAC,KAAK,EAAU;CACjC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"app-module.generator.js","sourceRoot":"","sources":["../../../../src/generators/core/app-module/app-module.generator.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,iBA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AClB,QAAQ,EAAE,yBAAyB,CAAC,SAAS,CAAC,KAAK;4BACnD,WAAW,EAAE,GAAG,YAAY,WAAW;4BACvC,kBAAkB,EAAE;gCAClB,qBAAqB;6BACtB;4BACD,SAAS,EAAE;gCACT,WAAW,EAAE,WAAW,CAAC,uBAAuB,CAC9C,eAAe,CAAC,aAAa;qCAC1B,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;qCACxC,QAAQ,EAAE,EACb,IAAI,CACL;gCACD,eAAe,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,QAAQ;gCAC3C,mBAAmB,EAAE,WAAW,CAAC,sBAAsB,CACrD,cAAc,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE,CACrD,WAAW,CAAC,qBAAqB,CAAC,KAAK,CAAC,CACzC,CACF;6BACF;yBACF,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/axios/axios.generator.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"axios.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/axios/axios.generator.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;EA2CzB,CAAC"}
|
|
@@ -30,7 +30,12 @@ export const axiosGenerator = createGenerator({
|
|
|
30
30
|
destination: paths.axios,
|
|
31
31
|
}));
|
|
32
32
|
errorHandlerServiceConfig.contextActions.set('getAxiosErrorInfo', tsTemplate `
|
|
33
|
-
|
|
33
|
+
const axiosErrorInfo = ${axiosImports.getAxiosErrorInfo.fragment()}(error);
|
|
34
|
+
if (axiosErrorInfo) {
|
|
35
|
+
for (const [key, value] of Object.entries(axiosErrorInfo)) {
|
|
36
|
+
context[key] = value;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
34
39
|
`);
|
|
35
40
|
},
|
|
36
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios.generator.js","sourceRoot":"","sources":["../../../../src/generators/core/axios/axios.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACV,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;IAC5C,IAAI,EAAE,YAAY;IAClB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI;QACtC,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,IAAI;QAC1C,YAAY,EAAE,sBAAsB,CAAC;YACnC,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,CAAC;SACvD,CAAC;QACF,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,yBAAyB,EAAE,iCAAiC;gBAC5D,cAAc,EAAE,sBAAsB;gBACtC,YAAY,EAAE,oBAAoB;gBAClC,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,QAAQ;aAC3C;YACD,GAAG,CAAC,EAAE,yBAAyB,EAAE,cAAc,EAAE,YAAY,EAAE,KAAK,EAAE;gBACpE,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK;4BAC9C,WAAW,EAAE,KAAK,CAAC,KAAK;yBACzB,CAAC,CACH,CAAC;wBAEF,yBAAyB,CAAC,cAAc,CAAC,GAAG,CAC1C,mBAAmB,EACnB,UAAU,CAAA;yCACiB,YAAY,CAAC,iBAAiB,CAAC,QAAQ,EAAE
|
|
1
|
+
{"version":3,"file":"axios.generator.js","sourceRoot":"","sources":["../../../../src/generators/core/axios/axios.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACV,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;IAC5C,IAAI,EAAE,YAAY;IAClB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI;QACtC,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,IAAI;QAC1C,YAAY,EAAE,sBAAsB,CAAC;YACnC,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,CAAC;SACvD,CAAC;QACF,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,yBAAyB,EAAE,iCAAiC;gBAC5D,cAAc,EAAE,sBAAsB;gBACtC,YAAY,EAAE,oBAAoB;gBAClC,KAAK,EAAE,oBAAoB,CAAC,KAAK,CAAC,QAAQ;aAC3C;YACD,GAAG,CAAC,EAAE,yBAAyB,EAAE,cAAc,EAAE,YAAY,EAAE,KAAK,EAAE;gBACpE,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,oBAAoB,CAAC,SAAS,CAAC,KAAK;4BAC9C,WAAW,EAAE,KAAK,CAAC,KAAK;yBACzB,CAAC,CACH,CAAC;wBAEF,yBAAyB,CAAC,cAAc,CAAC,GAAG,CAC1C,mBAAmB,EACnB,UAAU,CAAA;yCACiB,YAAY,CAAC,iBAAiB,CAAC,QAAQ,EAAE;;;;;;eAMnE,CACF,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -21,6 +21,7 @@ export declare const errorHandlerServiceGenerator: import("@baseplate-dev/sync")
|
|
|
21
21
|
InternalServerError: {};
|
|
22
22
|
logError: {};
|
|
23
23
|
NotFoundError: {};
|
|
24
|
+
TooManyRequestsError: {};
|
|
24
25
|
UnauthorizedError: {};
|
|
25
26
|
}>>;
|
|
26
27
|
}, {
|
|
@@ -53,6 +54,7 @@ export declare const errorHandlerServiceGenerator: import("@baseplate-dev/sync")
|
|
|
53
54
|
InternalServerError: {};
|
|
54
55
|
logError: {};
|
|
55
56
|
NotFoundError: {};
|
|
57
|
+
TooManyRequestsError: {};
|
|
56
58
|
UnauthorizedError: {};
|
|
57
59
|
}>>;
|
|
58
60
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").CoreErrorHandlerServicePaths>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-handler-service.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/error-handler-service/error-handler-service.generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAqBrE,eAAO,MACL,UAAU,sYACV,iCAAiC;;;mBACjC,uCAAuC;;;GAUxC,CAAC;AAEF,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"error-handler-service.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/error-handler-service/error-handler-service.generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAqBrE,eAAO,MACL,UAAU,sYACV,iCAAiC;;;mBACjC,uCAAuC;;;GAUxC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsFvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhD,CAAC"}
|
|
@@ -7,6 +7,7 @@ export declare const errorHandlerServiceImportsSchema: {
|
|
|
7
7
|
InternalServerError: {};
|
|
8
8
|
logError: {};
|
|
9
9
|
NotFoundError: {};
|
|
10
|
+
TooManyRequestsError: {};
|
|
10
11
|
UnauthorizedError: {};
|
|
11
12
|
};
|
|
12
13
|
export type ErrorHandlerServiceImportsProvider = TsImportMapProviderFromSchema<typeof errorHandlerServiceImportsSchema>;
|
|
@@ -18,6 +19,7 @@ export declare const errorHandlerServiceImportsProvider: import("@baseplate-dev/
|
|
|
18
19
|
InternalServerError: {};
|
|
19
20
|
logError: {};
|
|
20
21
|
NotFoundError: {};
|
|
22
|
+
TooManyRequestsError: {};
|
|
21
23
|
UnauthorizedError: {};
|
|
22
24
|
}>>;
|
|
23
25
|
export declare const CORE_ERROR_HANDLER_SERVICE_IMPORTS: {
|
|
@@ -30,6 +32,7 @@ export declare const CORE_ERROR_HANDLER_SERVICE_IMPORTS: {
|
|
|
30
32
|
InternalServerError: {};
|
|
31
33
|
logError: {};
|
|
32
34
|
NotFoundError: {};
|
|
35
|
+
TooManyRequestsError: {};
|
|
33
36
|
UnauthorizedError: {};
|
|
34
37
|
}>>;
|
|
35
38
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAcpF,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAcpF,eAAO,MAAM,gCAAgC;;;;;;;;;;CAU3C,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,6BAA6B,CAC5E,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;GAG5C,CAAC;AAgCJ,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;CAE9C,CAAC"}
|
|
@@ -9,6 +9,7 @@ export const errorHandlerServiceImportsSchema = createTsImportMapSchema({
|
|
|
9
9
|
InternalServerError: {},
|
|
10
10
|
logError: {},
|
|
11
11
|
NotFoundError: {},
|
|
12
|
+
TooManyRequestsError: {},
|
|
12
13
|
UnauthorizedError: {},
|
|
13
14
|
});
|
|
14
15
|
export const errorHandlerServiceImportsProvider = createReadOnlyProviderType('error-handler-service-imports');
|
|
@@ -30,6 +31,7 @@ const coreErrorHandlerServiceImportsTask = createGeneratorTask({
|
|
|
30
31
|
InternalServerError: paths.httpErrors,
|
|
31
32
|
logError: paths.errorLogger,
|
|
32
33
|
NotFoundError: paths.httpErrors,
|
|
34
|
+
TooManyRequestsError: paths.httpErrors,
|
|
33
35
|
UnauthorizedError: paths.httpErrors,
|
|
34
36
|
}),
|
|
35
37
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/ts-import-providers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAEvE,MAAM,CAAC,MAAM,gCAAgC,GAAG,uBAAuB,CAAC;IACtE,eAAe,EAAE,EAAE;IACnB,cAAc,EAAE,EAAE;IAClB,+BAA+B,EAAE,EAAE;IACnC,SAAS,EAAE,EAAE;IACb,mBAAmB,EAAE,EAAE;IACvB,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,EAAE;CACtB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,kCAAkC,GAC7C,0BAA0B,CACxB,+BAA+B,CAChC,CAAC;AAEJ,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAC7D,YAAY,EAAE;QACZ,KAAK,EAAE,gCAAgC,CAAC,QAAQ;KACjD;IACD,OAAO,EAAE;QACP,0BAA0B,EACxB,kCAAkC,CAAC,MAAM,CAAC,YAAY,CAAC;KAC1D;IACD,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,0BAA0B,EAAE,iBAAiB,CAC3C,gCAAgC,EAChC;oBACE,eAAe,EAAE,KAAK,CAAC,UAAU;oBACjC,cAAc,EAAE,KAAK,CAAC,UAAU;oBAChC,+BAA+B,EAAE,KAAK,CAAC,GAAG;oBAC1C,SAAS,EAAE,KAAK,CAAC,UAAU;oBAC3B,mBAAmB,EAAE,KAAK,CAAC,UAAU;oBACrC,QAAQ,EAAE,KAAK,CAAC,WAAW;oBAC3B,aAAa,EAAE,KAAK,CAAC,UAAU;oBAC/B,iBAAiB,EAAE,KAAK,CAAC,UAAU;iBACpC,CACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,IAAI,EAAE,kCAAkC;CACzC,CAAC"}
|
|
1
|
+
{"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/ts-import-providers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAEvE,MAAM,CAAC,MAAM,gCAAgC,GAAG,uBAAuB,CAAC;IACtE,eAAe,EAAE,EAAE;IACnB,cAAc,EAAE,EAAE;IAClB,+BAA+B,EAAE,EAAE;IACnC,SAAS,EAAE,EAAE;IACb,mBAAmB,EAAE,EAAE;IACvB,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,EAAE;IACjB,oBAAoB,EAAE,EAAE;IACxB,iBAAiB,EAAE,EAAE;CACtB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,kCAAkC,GAC7C,0BAA0B,CACxB,+BAA+B,CAChC,CAAC;AAEJ,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAC7D,YAAY,EAAE;QACZ,KAAK,EAAE,gCAAgC,CAAC,QAAQ;KACjD;IACD,OAAO,EAAE;QACP,0BAA0B,EACxB,kCAAkC,CAAC,MAAM,CAAC,YAAY,CAAC;KAC1D;IACD,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,0BAA0B,EAAE,iBAAiB,CAC3C,gCAAgC,EAChC;oBACE,eAAe,EAAE,KAAK,CAAC,UAAU;oBACjC,cAAc,EAAE,KAAK,CAAC,UAAU;oBAChC,+BAA+B,EAAE,KAAK,CAAC,GAAG;oBAC1C,SAAS,EAAE,KAAK,CAAC,UAAU;oBAC3B,mBAAmB,EAAE,KAAK,CAAC,UAAU;oBACrC,QAAQ,EAAE,KAAK,CAAC,WAAW;oBAC3B,aAAa,EAAE,KAAK,CAAC,UAAU;oBAC/B,oBAAoB,EAAE,KAAK,CAAC,UAAU;oBACtC,iBAAiB,EAAE,KAAK,CAAC,UAAU;iBACpC,CACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,IAAI,EAAE,kCAAkC;CACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/typed-templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/typed-templates.ts"],"names":[],"mappings":"AAsEA,eAAO,MAAM,UAAU;;;;;CAAsB,CAAC;AAE9C,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;CAIhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../src/generators/core/error-handler-service/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,4BAA4B,EAAE,MAAM,sEAAsE,CAAC;AACpH,OAAO,EAAE,4BAA4B,EAAE,MAAM,sEAAsE,CAAC;AAEpH,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;IAC9C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE,EAAE,oBAAoB,EAAE,4BAA4B,EAAE;IAC1E,IAAI,EAAE,sBAAsB;IAC5B,4BAA4B,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IACjE,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,2CAA2C,CAC5C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,oBAAoB,CAAC;IACvC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE,EAAE,oBAAoB,EAAE,4BAA4B,EAAE;IAC1E,IAAI,EAAE,cAAc;IACpB,cAAc,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChC,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,2CA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B,cAAc,EAAE;QACd,eAAe,EAAE,EAAE;QACnB,cAAc,EAAE,EAAE;QAClB,SAAS,EAAE,EAAE;QACb,mBAAmB,EAAE,EAAE;QACvB,aAAa,EAAE,EAAE;QACjB,oBAAoB,EAAE,EAAE;QACxB,iBAAiB,EAAE,EAAE;KACtB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,uCAAuC,CACxC;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,GAAG,GAAG,oBAAoB,CAAC;IAC/B,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,KAAK;IACX,cAAc,EAAE,EAAE,+BAA+B,EAAE,EAAE,EAAE;IACvD,4BAA4B,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IAChD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,+BAA+B,CAAC;KACtE;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC;AAE9C,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,kBAAkB;IAClB,WAAW;IACX,UAAU;CACX,CAAC"}
|
|
@@ -53,6 +53,11 @@ export const errorHandlerPlugin = fp((fastify, opts, done) => {
|
|
|
53
53
|
logError(error);
|
|
54
54
|
|
|
55
55
|
if (error instanceof HttpError) {
|
|
56
|
+
if (error.headers) {
|
|
57
|
+
for (const [key, value] of Object.entries(error.headers)) {
|
|
58
|
+
void reply.header(key, value);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
56
61
|
await reply.code(error.statusCode).send({
|
|
57
62
|
...error.extraData,
|
|
58
63
|
message: error.message,
|
|
@@ -6,6 +6,7 @@ export class HttpError extends Error {
|
|
|
6
6
|
public code?: string,
|
|
7
7
|
public extraData?: Record<string, unknown>,
|
|
8
8
|
public statusCode = 500,
|
|
9
|
+
public headers?: Record<string, string>,
|
|
9
10
|
) {
|
|
10
11
|
super(message);
|
|
11
12
|
}
|
|
@@ -51,6 +52,21 @@ export class NotFoundError extends HttpError {
|
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
export class TooManyRequestsError extends HttpError {
|
|
56
|
+
constructor(
|
|
57
|
+
message: string,
|
|
58
|
+
code = 'TOO_MANY_REQUESTS',
|
|
59
|
+
extraData?: Record<string, unknown>,
|
|
60
|
+
) {
|
|
61
|
+
const retryAfterMs = extraData?.retryAfterMs;
|
|
62
|
+
const headers =
|
|
63
|
+
typeof retryAfterMs === 'number'
|
|
64
|
+
? { 'Retry-After': String(Math.ceil(retryAfterMs / 1000)) }
|
|
65
|
+
: undefined;
|
|
66
|
+
super(message, code, extraData, 429, headers);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
54
70
|
export class InternalServerError extends HttpError {
|
|
55
71
|
constructor(
|
|
56
72
|
message: string,
|
package/dist/generators/core/fastify-graceful-shutdown/fastify-graceful-shutdown.generator.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare const fastifyGracefulShutdownGenerator: import("@baseplate-dev/sy
|
|
|
21
21
|
InternalServerError: {};
|
|
22
22
|
logError: {};
|
|
23
23
|
NotFoundError: {};
|
|
24
|
+
TooManyRequestsError: {};
|
|
24
25
|
UnauthorizedError: {};
|
|
25
26
|
}>>;
|
|
26
27
|
loggerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
package/dist/generators/core/fastify-graceful-shutdown/fastify-graceful-shutdown.generator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify-graceful-shutdown.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/fastify-graceful-shutdown/fastify-graceful-shutdown.generator.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"fastify-graceful-shutdown.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/fastify-graceful-shutdown/fastify-graceful-shutdown.generator.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+C3C,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare const CORE_FASTIFY_GRACEFUL_SHUTDOWN_GENERATED: {
|
|
|
20
20
|
InternalServerError: {};
|
|
21
21
|
logError: {};
|
|
22
22
|
NotFoundError: {};
|
|
23
|
+
TooManyRequestsError: {};
|
|
23
24
|
UnauthorizedError: {};
|
|
24
25
|
}>>;
|
|
25
26
|
loggerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -39,6 +40,7 @@ export declare const CORE_FASTIFY_GRACEFUL_SHUTDOWN_GENERATED: {
|
|
|
39
40
|
InternalServerError: {};
|
|
40
41
|
logError: {};
|
|
41
42
|
NotFoundError: {};
|
|
43
|
+
TooManyRequestsError: {};
|
|
42
44
|
UnauthorizedError: {};
|
|
43
45
|
}>>;
|
|
44
46
|
loggerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-graceful-shutdown/generated/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wCAAwC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-graceful-shutdown/generated/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpD,CAAC"}
|
|
@@ -19,6 +19,7 @@ export declare const CORE_FASTIFY_GRACEFUL_SHUTDOWN_RENDERERS: {
|
|
|
19
19
|
InternalServerError: {};
|
|
20
20
|
logError: {};
|
|
21
21
|
NotFoundError: {};
|
|
22
|
+
TooManyRequestsError: {};
|
|
22
23
|
UnauthorizedError: {};
|
|
23
24
|
}>>;
|
|
24
25
|
loggerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
package/dist/generators/core/fastify-graceful-shutdown/generated/template-renderers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-graceful-shutdown/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,OAAO,EAAE,wCAAwC,EAAE,MAAM,sBAAsB,CAAC;AAEhF,MAAM,WAAW,oCAAoC;IACnD,gBAAgB,EAAE;QAChB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,wCAAwC,CAAC,gBAAgB,CACjE,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA8CD,eAAO,MAAM,wCAAwC
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-graceful-shutdown/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,OAAO,EAAE,wCAAwC,EAAE,MAAM,sBAAsB,CAAC;AAEhF,MAAM,WAAW,oCAAoC;IACnD,gBAAgB,EAAE;QAChB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,wCAAwC,CAAC,gBAAgB,CACjE,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA8CD,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;CAGpD,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare const CORE_FASTIFY_GRACEFUL_SHUTDOWN_TEMPLATES: {
|
|
|
8
8
|
InternalServerError: {};
|
|
9
9
|
logError: {};
|
|
10
10
|
NotFoundError: {};
|
|
11
|
+
TooManyRequestsError: {};
|
|
11
12
|
UnauthorizedError: {};
|
|
12
13
|
}>>;
|
|
13
14
|
loggerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-graceful-shutdown/generated/typed-templates.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,wCAAwC
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-graceful-shutdown/generated/typed-templates.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;CAAuB,CAAC"}
|
|
@@ -69,6 +69,7 @@ export declare const fastifySentryGenerator: import("@baseplate-dev/sync").Gener
|
|
|
69
69
|
InternalServerError: {};
|
|
70
70
|
logError: {};
|
|
71
71
|
NotFoundError: {};
|
|
72
|
+
TooManyRequestsError: {};
|
|
72
73
|
UnauthorizedError: {};
|
|
73
74
|
}>>;
|
|
74
75
|
fastifySentryConfigValues: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/utils").FieldMapValues<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify-sentry.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/fastify-sentry/fastify-sentry.generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAsCrE,QAAA,MAEE,2BAA2B;;;;iBAmB5B,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"fastify-sentry.generator.d.ts","sourceRoot":"","sources":["../../../../src/generators/core/fastify-sentry/fastify-sentry.generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAsCrE,QAAA,MAEE,2BAA2B;;;;iBAmB5B,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsLjC,CAAC"}
|
|
@@ -35,6 +35,7 @@ export declare const CORE_FASTIFY_SENTRY_GENERATED: {
|
|
|
35
35
|
InternalServerError: {};
|
|
36
36
|
logError: {};
|
|
37
37
|
NotFoundError: {};
|
|
38
|
+
TooManyRequestsError: {};
|
|
38
39
|
UnauthorizedError: {};
|
|
39
40
|
}>>;
|
|
40
41
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").CoreFastifySentryPaths>;
|
|
@@ -64,6 +65,7 @@ export declare const CORE_FASTIFY_SENTRY_GENERATED: {
|
|
|
64
65
|
InternalServerError: {};
|
|
65
66
|
logError: {};
|
|
66
67
|
NotFoundError: {};
|
|
68
|
+
TooManyRequestsError: {};
|
|
67
69
|
UnauthorizedError: {};
|
|
68
70
|
}>>;
|
|
69
71
|
}, Record<never, Record<never, never>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-sentry/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-sentry/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzC,CAAC"}
|
|
@@ -25,6 +25,7 @@ export declare const CORE_FASTIFY_SENTRY_RENDERERS: {
|
|
|
25
25
|
InternalServerError: {};
|
|
26
26
|
logError: {};
|
|
27
27
|
NotFoundError: {};
|
|
28
|
+
TooManyRequestsError: {};
|
|
28
29
|
UnauthorizedError: {};
|
|
29
30
|
}>>;
|
|
30
31
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").CoreFastifySentryPaths>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-sentry/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,6BAA6B,CAAC,UAAU,CAChD,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,MAAM,EAAE;QACN,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,6BAA6B,CAAC,MAAM,CAC5C,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAqDD,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-sentry/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AASzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,6BAA6B,CAAC,UAAU,CAChD,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,MAAM,EAAE;QACN,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,6BAA6B,CAAC,MAAM,CAC5C,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAqDD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;CAGzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-sentry/generated/typed-templates.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../src/generators/core/fastify-sentry/generated/typed-templates.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyB,CAAC"}
|
|
@@ -33,13 +33,14 @@ export const loggerServiceGenerator = createGenerator({
|
|
|
33
33
|
run({ typescriptFile, loggerServiceConfigValues: { mixins }, paths }) {
|
|
34
34
|
return {
|
|
35
35
|
build: async (builder) => {
|
|
36
|
-
const loggerOptions = {};
|
|
37
36
|
// log level vs. number for better log parsing
|
|
38
|
-
loggerOptions
|
|
37
|
+
const loggerOptions = {
|
|
38
|
+
formatters: `{
|
|
39
39
|
level(level) {
|
|
40
40
|
return { level };
|
|
41
41
|
},
|
|
42
|
-
}
|
|
42
|
+
}`,
|
|
43
|
+
};
|
|
43
44
|
if (mixins.size > 0) {
|
|
44
45
|
loggerOptions.mixin = TsCodeUtils.template `
|
|
45
46
|
function mixin() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-service.generator.js","sourceRoot":"","sources":["../../../../src/generators/core/logger-service/logger-service.generator.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACX,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CACJ,SAAS,EACT,2BAA2B,EAC3B,iCAAiC,EAClC,GAAG,wBAAwB,CAC1B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,GAAG,EAA0B;CACxC,CAAC,EACF;IACE,MAAM,EAAE,gBAAgB;IACxB,WAAW,EAAE,YAAY;CAC1B,CACF,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC;IACpD,IAAI,EAAE,qBAAqB;IAC3B,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,SAAS;QAChB,YAAY,EAAE,sBAAsB,CAAC;YACnC,IAAI,EAAE,sBAAsB,CAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,CAAC;YACxD,GAAG,EAAE,sBAAsB,CAAC,gBAAgB,EAAE,CAAC,aAAa,CAAC,CAAC;SAC/D,CAAC;QACF,OAAO,EAAE,kBAAkB,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,EAAE;YACvD,OAAO,CAAC,kBAAkB,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QACnD,CAAC,CAAC;QACF,KAAK,EAAE,6BAA6B,CAAC,KAAK,CAAC,IAAI;QAC/C,OAAO,EAAE,6BAA6B,CAAC,OAAO,CAAC,IAAI;QACnD,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,KAAK,EAAE,6BAA6B,CAAC,KAAK,CAAC,QAAQ;gBACnD,cAAc,EAAE,sBAAsB;gBACtC,yBAAyB,EAAE,iCAAiC;aAC7D;YACD,GAAG,CAAC,EAAE,cAAc,EAAE,yBAAyB,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE;gBAClE,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,aAAa,GAA4C
|
|
1
|
+
{"version":3,"file":"logger-service.generator.js","sourceRoot":"","sources":["../../../../src/generators/core/logger-service/logger-service.generator.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACX,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB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E,sBAAsB;gBACtC,yBAAyB,EAAE,iCAAiC;aAC7D;YACD,GAAG,CAAC,EAAE,cAAc,EAAE,yBAAyB,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE;gBAClE,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,8CAA8C;wBAC9C,MAAM,aAAa,GAA4C;4BAC7D,UAAU,EAAE;;;;EAIxB;yBACW,CAAC;wBAEF,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;4BACpB,aAAa,CAAC,KAAK,GAAG,WAAW,CAAC,QAAQ,CAAA;;2BAE7B,WAAW,CAAC,sBAAsB,CAAC,MAAM,CAAC;kBACnD,CAAC;wBACP,CAAC;wBAED,MAAM,OAAO,CAAC,KAAK,CACjB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,6BAA6B,CAAC,SAAS,CAAC,MAAM;4BACxD,SAAS,EAAE;gCACT,kBAAkB,EAChB,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,GAAG,CAAC;oCACnC,CAAC,CAAC,WAAW,CAAC,sBAAsB,CAAC,aAAa,CAAC;oCACnD,CAAC,CAAC,EAAE;6BACT;4BACD,WAAW,EAAE,KAAK,CAAC,MAAM;yBAC1B,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -60,10 +60,10 @@ export const serviceFileGenerator = createGenerator({
|
|
|
60
60
|
build: async (builder) => {
|
|
61
61
|
const orderedHeaders = headersContainer
|
|
62
62
|
.getValue()
|
|
63
|
-
.
|
|
63
|
+
.toSorted((a, b) => compareStrings(a.name, b.name));
|
|
64
64
|
const orderedMethods = methodsContainer
|
|
65
65
|
.getValue()
|
|
66
|
-
.
|
|
66
|
+
.toSorted((a, b) => a.order - b.order);
|
|
67
67
|
if (orderedMethods.length > 0 || orderedHeaders.length > 0) {
|
|
68
68
|
const mergedMethods = mergeFragmentsWithHoistedFragmentsPresorted([
|
|
69
69
|
...orderedHeaders.map((h) => h.fragment),
|