@cedarjs/api-server 4.0.0-canary.13851 → 4.0.0-canary.13853
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/bin.js +3 -1
- package/dist/cjs/bin.js +3 -1
- package/dist/cjs/plugins/lambdaLoader.d.ts +1 -1
- package/dist/cjs/plugins/lambdaLoader.d.ts.map +1 -1
- package/dist/cjs/plugins/lambdaLoader.js +3 -1
- package/dist/plugins/lambdaLoader.d.ts +1 -1
- package/dist/plugins/lambdaLoader.d.ts.map +1 -1
- package/dist/plugins/lambdaLoader.js +3 -1
- package/package.json +9 -9
package/dist/bin.js
CHANGED
|
@@ -370,7 +370,9 @@ var init_lambdaLoader = __esm({
|
|
|
370
370
|
}
|
|
371
371
|
return void 0;
|
|
372
372
|
})();
|
|
373
|
-
|
|
373
|
+
if (handler3) {
|
|
374
|
+
LAMBDA_FUNCTIONS.set(routeName, handler3);
|
|
375
|
+
}
|
|
374
376
|
if (cedarHandler) {
|
|
375
377
|
CEDAR_HANDLERS.set(routeName, cedarHandler);
|
|
376
378
|
} else if (handler3) {
|
package/dist/cjs/bin.js
CHANGED
|
@@ -392,7 +392,9 @@ var init_lambdaLoader = __esm({
|
|
|
392
392
|
}
|
|
393
393
|
return void 0;
|
|
394
394
|
})();
|
|
395
|
-
|
|
395
|
+
if (handler3) {
|
|
396
|
+
LAMBDA_FUNCTIONS.set(routeName, handler3);
|
|
397
|
+
}
|
|
396
398
|
if (cedarHandler) {
|
|
397
399
|
CEDAR_HANDLERS.set(routeName, cedarHandler);
|
|
398
400
|
} else if (handler3) {
|
|
@@ -2,7 +2,7 @@ import type { Handler } from 'aws-lambda';
|
|
|
2
2
|
import type { Options as FastGlobOptions } from 'fast-glob';
|
|
3
3
|
import type { FastifyReply, FastifyRequest, RequestGenericInterface } from 'fastify';
|
|
4
4
|
import type { CedarHandler, CedarRouteRecord } from '@cedarjs/api/runtime';
|
|
5
|
-
export declare const LAMBDA_FUNCTIONS: Map<string, Handler
|
|
5
|
+
export declare const LAMBDA_FUNCTIONS: Map<string, Handler>;
|
|
6
6
|
export declare const CEDAR_HANDLERS: Map<string, CedarHandler>;
|
|
7
7
|
/**
|
|
8
8
|
* Exports a copy of the Cedar route manifest.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambdaLoader.d.ts","sourceRoot":"","sources":["../../../src/plugins/lambdaLoader.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,KAAK,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,uBAAuB,EACxB,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAEjB,MAAM,sBAAsB,CAAA;AAO7B,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"lambdaLoader.d.ts","sourceRoot":"","sources":["../../../src/plugins/lambdaLoader.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,KAAK,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,uBAAuB,EACxB,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAEjB,MAAM,sBAAsB,CAAA;AAO7B,eAAO,MAAM,gBAAgB,sBAA6B,CAAA;AAC1D,eAAO,MAAM,cAAc,2BAAkC,CAAA;AAG7D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,0BAAgC,CAAA;AAIlE,eAAO,MAAM,kBAAkB,GAAU,gBAAgB,MAAM,EAAE,kBAwGhE,CAAA;AAED,KAAK,4BAA4B,GAAG;IAClC,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC1C,CAAA;AAGD,eAAO,MAAM,qBAAqB,GAChC,UAAS,4BAAiC,kBAe3C,CAAA;AA0BD,UAAU,oBAAqB,SAAQ,uBAAuB;IAC5D,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF;AAED;;;;IAII;AACJ,eAAO,MAAM,oBAAoB,GAC/B,KAAK,cAAc,CAAC,oBAAoB,CAAC,EACzC,OAAO,YAAY,kBAqEpB,CAAA"}
|
|
@@ -79,7 +79,9 @@ const setLambdaFunctions = async (foundFunctions) => {
|
|
|
79
79
|
}
|
|
80
80
|
return void 0;
|
|
81
81
|
})();
|
|
82
|
-
|
|
82
|
+
if (handler) {
|
|
83
|
+
LAMBDA_FUNCTIONS.set(routeName, handler);
|
|
84
|
+
}
|
|
83
85
|
if (cedarHandler) {
|
|
84
86
|
CEDAR_HANDLERS.set(routeName, cedarHandler);
|
|
85
87
|
} else if (handler) {
|
|
@@ -2,7 +2,7 @@ import type { Handler } from 'aws-lambda';
|
|
|
2
2
|
import type { Options as FastGlobOptions } from 'fast-glob';
|
|
3
3
|
import type { FastifyReply, FastifyRequest, RequestGenericInterface } from 'fastify';
|
|
4
4
|
import type { CedarHandler, CedarRouteRecord } from '@cedarjs/api/runtime';
|
|
5
|
-
export declare const LAMBDA_FUNCTIONS: Map<string, Handler
|
|
5
|
+
export declare const LAMBDA_FUNCTIONS: Map<string, Handler>;
|
|
6
6
|
export declare const CEDAR_HANDLERS: Map<string, CedarHandler>;
|
|
7
7
|
/**
|
|
8
8
|
* Exports a copy of the Cedar route manifest.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambdaLoader.d.ts","sourceRoot":"","sources":["../../src/plugins/lambdaLoader.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,KAAK,EAAE,OAAO,IAAI,eA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(foundFunctions) => {
|
|
|
41
41
|
}
|
|
42
42
|
return void 0;
|
|
43
43
|
})();
|
|
44
|
-
|
|
44
|
+
if (handler) {
|
|
45
|
+
LAMBDA_FUNCTIONS.set(routeName, handler);
|
|
46
|
+
}
|
|
45
47
|
if (cedarHandler) {
|
|
46
48
|
CEDAR_HANDLERS.set(routeName, cedarHandler);
|
|
47
49
|
} else if (handler) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api-server",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13853+ec09c39ba9",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
"test:watch": "vitest watch"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@cedarjs/context": "4.0.0-canary.
|
|
117
|
-
"@cedarjs/fastify-web": "4.0.0-canary.
|
|
118
|
-
"@cedarjs/internal": "4.0.0-canary.
|
|
119
|
-
"@cedarjs/project-config": "4.0.0-canary.
|
|
120
|
-
"@cedarjs/web-server": "4.0.0-canary.
|
|
116
|
+
"@cedarjs/context": "4.0.0-canary.13853",
|
|
117
|
+
"@cedarjs/fastify-web": "4.0.0-canary.13853",
|
|
118
|
+
"@cedarjs/internal": "4.0.0-canary.13853",
|
|
119
|
+
"@cedarjs/project-config": "4.0.0-canary.13853",
|
|
120
|
+
"@cedarjs/web-server": "4.0.0-canary.13853",
|
|
121
121
|
"@fastify/multipart": "9.4.0",
|
|
122
122
|
"@fastify/url-data": "6.0.3",
|
|
123
123
|
"ansis": "4.2.0",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"yargs": "17.7.2"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@cedarjs/framework-tools": "4.0.0-canary.
|
|
137
|
+
"@cedarjs/framework-tools": "4.0.0-canary.13853",
|
|
138
138
|
"@types/aws-lambda": "8.10.161",
|
|
139
139
|
"@types/dotenv-defaults": "^5.0.0",
|
|
140
140
|
"@types/split2": "4.2.3",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"vitest": "3.2.4"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
|
-
"@cedarjs/graphql-server": "4.0.0-canary.
|
|
150
|
+
"@cedarjs/graphql-server": "4.0.0-canary.13853"
|
|
151
151
|
},
|
|
152
152
|
"peerDependenciesMeta": {
|
|
153
153
|
"@cedarjs/graphql-server": {
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
"publishConfig": {
|
|
158
158
|
"access": "public"
|
|
159
159
|
},
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "ec09c39ba9c667b45c3cba2d41957783f122b8c4"
|
|
161
161
|
}
|