@cedarjs/api-server 4.0.0-canary.13862 → 4.0.0-canary.13863
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.13863+1eab09c501",
|
|
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.13863",
|
|
117
|
+
"@cedarjs/fastify-web": "4.0.0-canary.13863",
|
|
118
|
+
"@cedarjs/internal": "4.0.0-canary.13863",
|
|
119
|
+
"@cedarjs/project-config": "4.0.0-canary.13863",
|
|
120
|
+
"@cedarjs/web-server": "4.0.0-canary.13863",
|
|
121
121
|
"@fastify/multipart": "9.4.0",
|
|
122
122
|
"@fastify/url-data": "6.0.3",
|
|
123
123
|
"ansis": "4.2.0",
|
|
@@ -131,10 +131,11 @@
|
|
|
131
131
|
"pretty-bytes": "5.6.0",
|
|
132
132
|
"pretty-ms": "7.0.1",
|
|
133
133
|
"split2": "4.2.0",
|
|
134
|
+
"termi-link": "1.1.0",
|
|
134
135
|
"yargs": "17.7.2"
|
|
135
136
|
},
|
|
136
137
|
"devDependencies": {
|
|
137
|
-
"@cedarjs/framework-tools": "4.0.0-canary.
|
|
138
|
+
"@cedarjs/framework-tools": "4.0.0-canary.13863",
|
|
138
139
|
"@types/aws-lambda": "8.10.161",
|
|
139
140
|
"@types/dotenv-defaults": "^5.0.0",
|
|
140
141
|
"@types/split2": "4.2.3",
|
|
@@ -147,7 +148,7 @@
|
|
|
147
148
|
"vitest": "3.2.4"
|
|
148
149
|
},
|
|
149
150
|
"peerDependencies": {
|
|
150
|
-
"@cedarjs/graphql-server": "4.0.0-canary.
|
|
151
|
+
"@cedarjs/graphql-server": "4.0.0-canary.13863"
|
|
151
152
|
},
|
|
152
153
|
"peerDependenciesMeta": {
|
|
153
154
|
"@cedarjs/graphql-server": {
|
|
@@ -157,5 +158,5 @@
|
|
|
157
158
|
"publishConfig": {
|
|
158
159
|
"access": "public"
|
|
159
160
|
},
|
|
160
|
-
"gitHead": "
|
|
161
|
+
"gitHead": "1eab09c501b833158bd1f18ca600a9bb33ac2c30"
|
|
161
162
|
}
|