@cedarjs/api-server 5.0.0-canary.2461 → 5.0.0-canary.2463
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
CHANGED
|
@@ -352,7 +352,7 @@ var init_lambdaLoader = __esm({
|
|
|
352
352
|
const imports = foundFunctions.map(async (fnPath) => {
|
|
353
353
|
const ts = Date.now();
|
|
354
354
|
const routeName = path2.basename(fnPath).replace(".js", "");
|
|
355
|
-
const routePath =
|
|
355
|
+
const routePath = `/${routeName}`;
|
|
356
356
|
const fnImport = await import(pathToFileURL2(fnPath).href);
|
|
357
357
|
const handler3 = (() => {
|
|
358
358
|
if ("handler" in fnImport) {
|
package/dist/cjs/bin.js
CHANGED
|
@@ -374,7 +374,7 @@ var init_lambdaLoader = __esm({
|
|
|
374
374
|
const imports = foundFunctions.map(async (fnPath) => {
|
|
375
375
|
const ts = Date.now();
|
|
376
376
|
const routeName = import_node_path.default.basename(fnPath).replace(".js", "");
|
|
377
|
-
const routePath =
|
|
377
|
+
const routePath = `/${routeName}`;
|
|
378
378
|
const fnImport = await import((0, import_node_url.pathToFileURL)(fnPath).href);
|
|
379
379
|
const handler3 = (() => {
|
|
380
380
|
if ("handler" in fnImport) {
|
|
@@ -58,7 +58,7 @@ const setLambdaFunctions = async (foundFunctions) => {
|
|
|
58
58
|
const imports = foundFunctions.map(async (fnPath) => {
|
|
59
59
|
const ts = Date.now();
|
|
60
60
|
const routeName = import_node_path.default.basename(fnPath).replace(".js", "");
|
|
61
|
-
const routePath =
|
|
61
|
+
const routePath = `/${routeName}`;
|
|
62
62
|
const fnImport = await import((0, import_node_url.pathToFileURL)(fnPath).href);
|
|
63
63
|
const handler = (() => {
|
|
64
64
|
if ("handler" in fnImport) {
|
|
@@ -20,7 +20,7 @@ const setLambdaFunctions = async (foundFunctions) => {
|
|
|
20
20
|
const imports = foundFunctions.map(async (fnPath) => {
|
|
21
21
|
const ts = Date.now();
|
|
22
22
|
const routeName = path.basename(fnPath).replace(".js", "");
|
|
23
|
-
const routePath =
|
|
23
|
+
const routePath = `/${routeName}`;
|
|
24
24
|
const fnImport = await import(pathToFileURL(fnPath).href);
|
|
25
25
|
const handler = (() => {
|
|
26
26
|
if ("handler" in fnImport) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api-server",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2463",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -133,11 +133,11 @@
|
|
|
133
133
|
"test:watch": "vitest watch"
|
|
134
134
|
},
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@cedarjs/context": "5.0.0-canary.
|
|
137
|
-
"@cedarjs/fastify-web": "5.0.0-canary.
|
|
138
|
-
"@cedarjs/internal": "5.0.0-canary.
|
|
139
|
-
"@cedarjs/project-config": "5.0.0-canary.
|
|
140
|
-
"@cedarjs/web-server": "5.0.0-canary.
|
|
136
|
+
"@cedarjs/context": "5.0.0-canary.2463",
|
|
137
|
+
"@cedarjs/fastify-web": "5.0.0-canary.2463",
|
|
138
|
+
"@cedarjs/internal": "5.0.0-canary.2463",
|
|
139
|
+
"@cedarjs/project-config": "5.0.0-canary.2463",
|
|
140
|
+
"@cedarjs/web-server": "5.0.0-canary.2463",
|
|
141
141
|
"@fastify/multipart": "9.4.0",
|
|
142
142
|
"@fastify/url-data": "6.0.3",
|
|
143
143
|
"ansis": "4.2.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"yargs": "17.7.2"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
|
-
"@cedarjs/framework-tools": "5.0.0-canary.
|
|
158
|
+
"@cedarjs/framework-tools": "5.0.0-canary.2463",
|
|
159
159
|
"@types/aws-lambda": "8.10.162",
|
|
160
160
|
"@types/dotenv-defaults": "^5.0.0",
|
|
161
161
|
"@types/split2": "4.2.3",
|