@cedarjs/api-server 4.0.0-canary.13862 → 4.0.0-canary.13864
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
|
@@ -328,6 +328,7 @@ import path2 from "node:path";
|
|
|
328
328
|
import { pathToFileURL as pathToFileURL2 } from "node:url";
|
|
329
329
|
import ansis from "ansis";
|
|
330
330
|
import fg from "fast-glob";
|
|
331
|
+
import { terminalLink } from "termi-link";
|
|
331
332
|
import { buildCedarContext, wrapLegacyHandler } from "@cedarjs/api/runtime";
|
|
332
333
|
import { getPaths as getPaths2 } from "@cedarjs/project-config";
|
|
333
334
|
var LAMBDA_FUNCTIONS, CEDAR_HANDLERS, cedarRouteManifest, setLambdaFunctions, loadFunctionsFromDist, findApiDistFunctions, lambdaRequestHandler;
|
|
@@ -393,7 +394,7 @@ var init_lambdaLoader = __esm({
|
|
|
393
394
|
entry: fnPath
|
|
394
395
|
});
|
|
395
396
|
console.log(
|
|
396
|
-
ansis.magenta("/" + routeName),
|
|
397
|
+
terminalLink(ansis.magenta("/" + routeName), pathToFileURL2(fnPath).href),
|
|
397
398
|
ansis.dim.italic(Date.now() - ts + " ms")
|
|
398
399
|
);
|
|
399
400
|
});
|
package/dist/cjs/bin.js
CHANGED
|
@@ -346,7 +346,7 @@ var init_utils2 = __esm({
|
|
|
346
346
|
});
|
|
347
347
|
|
|
348
348
|
// src/plugins/lambdaLoader.ts
|
|
349
|
-
var import_node_path, import_node_url, import_ansis, import_fast_glob, import_runtime, import_project_config3, LAMBDA_FUNCTIONS, CEDAR_HANDLERS, cedarRouteManifest, setLambdaFunctions, loadFunctionsFromDist, findApiDistFunctions, lambdaRequestHandler;
|
|
349
|
+
var import_node_path, import_node_url, import_ansis, import_fast_glob, import_termi_link, import_runtime, import_project_config3, LAMBDA_FUNCTIONS, CEDAR_HANDLERS, cedarRouteManifest, setLambdaFunctions, loadFunctionsFromDist, findApiDistFunctions, lambdaRequestHandler;
|
|
350
350
|
var init_lambdaLoader = __esm({
|
|
351
351
|
"src/plugins/lambdaLoader.ts"() {
|
|
352
352
|
"use strict";
|
|
@@ -354,6 +354,7 @@ var init_lambdaLoader = __esm({
|
|
|
354
354
|
import_node_url = require("node:url");
|
|
355
355
|
import_ansis = __toESM(require("ansis"), 1);
|
|
356
356
|
import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
357
|
+
import_termi_link = require("termi-link");
|
|
357
358
|
import_runtime = require("@cedarjs/api/runtime");
|
|
358
359
|
import_project_config3 = require("@cedarjs/project-config");
|
|
359
360
|
init_awsLambdaFastify();
|
|
@@ -415,7 +416,7 @@ var init_lambdaLoader = __esm({
|
|
|
415
416
|
entry: fnPath
|
|
416
417
|
});
|
|
417
418
|
console.log(
|
|
418
|
-
import_ansis.default.magenta("/" + routeName),
|
|
419
|
+
(0, import_termi_link.terminalLink)(import_ansis.default.magenta("/" + routeName), (0, import_node_url.pathToFileURL)(fnPath).href),
|
|
419
420
|
import_ansis.default.dim.italic(Date.now() - ts + " ms")
|
|
420
421
|
);
|
|
421
422
|
});
|
|
@@ -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;
|
|
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;AAGhB,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,kBAuGhE,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;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAC/B,KAAK,cAAc,CAAC,oBAAoB,CAAC,EACzC,OAAO,YAAY,kBAqEpB,CAAA"}
|
|
@@ -40,6 +40,7 @@ var import_node_path = __toESM(require("node:path"), 1);
|
|
|
40
40
|
var import_node_url = require("node:url");
|
|
41
41
|
var import_ansis = __toESM(require("ansis"), 1);
|
|
42
42
|
var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
43
|
+
var import_termi_link = require("termi-link");
|
|
43
44
|
var import_runtime = require("@cedarjs/api/runtime");
|
|
44
45
|
var import_project_config = require("@cedarjs/project-config");
|
|
45
46
|
var import_awsLambdaFastify = require("../requestHandlers/awsLambdaFastify.js");
|
|
@@ -102,7 +103,7 @@ const setLambdaFunctions = async (foundFunctions) => {
|
|
|
102
103
|
entry: fnPath
|
|
103
104
|
});
|
|
104
105
|
console.log(
|
|
105
|
-
import_ansis.default.magenta("/" + routeName),
|
|
106
|
+
(0, import_termi_link.terminalLink)(import_ansis.default.magenta("/" + routeName), (0, import_node_url.pathToFileURL)(fnPath).href),
|
|
106
107
|
import_ansis.default.dim.italic(Date.now() - ts + " ms")
|
|
107
108
|
);
|
|
108
109
|
});
|
|
@@ -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;
|
|
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;AAGhB,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,kBAuGhE,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;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAC/B,KAAK,cAAc,CAAC,oBAAoB,CAAC,EACzC,OAAO,YAAY,kBAqEpB,CAAA"}
|
|
@@ -2,6 +2,7 @@ import path from "node:path";
|
|
|
2
2
|
import { pathToFileURL } from "node:url";
|
|
3
3
|
import ansis from "ansis";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
|
+
import { terminalLink } from "termi-link";
|
|
5
6
|
import { buildCedarContext, wrapLegacyHandler } from "@cedarjs/api/runtime";
|
|
6
7
|
import { getPaths } from "@cedarjs/project-config";
|
|
7
8
|
import { requestHandler } from "../requestHandlers/awsLambdaFastify.js";
|
|
@@ -64,7 +65,7 @@ const setLambdaFunctions = async (foundFunctions) => {
|
|
|
64
65
|
entry: fnPath
|
|
65
66
|
});
|
|
66
67
|
console.log(
|
|
67
|
-
ansis.magenta("/" + routeName),
|
|
68
|
+
terminalLink(ansis.magenta("/" + routeName), pathToFileURL(fnPath).href),
|
|
68
69
|
ansis.dim.italic(Date.now() - ts + " ms")
|
|
69
70
|
);
|
|
70
71
|
});
|
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.13864+6143202249",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -82,6 +82,16 @@
|
|
|
82
82
|
"types": "./dist/cjs/watch.d.ts",
|
|
83
83
|
"default": "./dist/cjs/watch.js"
|
|
84
84
|
}
|
|
85
|
+
},
|
|
86
|
+
"./requestHandlers": {
|
|
87
|
+
"import": {
|
|
88
|
+
"types": "./dist/requestHandlers/awsLambdaFastify.d.ts",
|
|
89
|
+
"default": "./dist/requestHandlers/awsLambdaFastify.js"
|
|
90
|
+
},
|
|
91
|
+
"require": {
|
|
92
|
+
"types": "./dist/cjs/requestHandlers/awsLambdaFastify.d.ts",
|
|
93
|
+
"default": "./dist/cjs/requestHandlers/awsLambdaFastify.js"
|
|
94
|
+
}
|
|
85
95
|
}
|
|
86
96
|
},
|
|
87
97
|
"main": "./dist/createServer.js",
|
|
@@ -113,11 +123,11 @@
|
|
|
113
123
|
"test:watch": "vitest watch"
|
|
114
124
|
},
|
|
115
125
|
"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.
|
|
126
|
+
"@cedarjs/context": "4.0.0-canary.13864",
|
|
127
|
+
"@cedarjs/fastify-web": "4.0.0-canary.13864",
|
|
128
|
+
"@cedarjs/internal": "4.0.0-canary.13864",
|
|
129
|
+
"@cedarjs/project-config": "4.0.0-canary.13864",
|
|
130
|
+
"@cedarjs/web-server": "4.0.0-canary.13864",
|
|
121
131
|
"@fastify/multipart": "9.4.0",
|
|
122
132
|
"@fastify/url-data": "6.0.3",
|
|
123
133
|
"ansis": "4.2.0",
|
|
@@ -131,10 +141,11 @@
|
|
|
131
141
|
"pretty-bytes": "5.6.0",
|
|
132
142
|
"pretty-ms": "7.0.1",
|
|
133
143
|
"split2": "4.2.0",
|
|
144
|
+
"termi-link": "1.1.0",
|
|
134
145
|
"yargs": "17.7.2"
|
|
135
146
|
},
|
|
136
147
|
"devDependencies": {
|
|
137
|
-
"@cedarjs/framework-tools": "4.0.0-canary.
|
|
148
|
+
"@cedarjs/framework-tools": "4.0.0-canary.13864",
|
|
138
149
|
"@types/aws-lambda": "8.10.161",
|
|
139
150
|
"@types/dotenv-defaults": "^5.0.0",
|
|
140
151
|
"@types/split2": "4.2.3",
|
|
@@ -147,7 +158,7 @@
|
|
|
147
158
|
"vitest": "3.2.4"
|
|
148
159
|
},
|
|
149
160
|
"peerDependencies": {
|
|
150
|
-
"@cedarjs/graphql-server": "4.0.0-canary.
|
|
161
|
+
"@cedarjs/graphql-server": "4.0.0-canary.13864"
|
|
151
162
|
},
|
|
152
163
|
"peerDependenciesMeta": {
|
|
153
164
|
"@cedarjs/graphql-server": {
|
|
@@ -157,5 +168,5 @@
|
|
|
157
168
|
"publishConfig": {
|
|
158
169
|
"access": "public"
|
|
159
170
|
},
|
|
160
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "614320224990c781870b0f412c3fd5a058de64e5"
|
|
161
172
|
}
|