@cedarjs/api-server 1.0.0-canary.12340 → 1.0.0-canary.12342
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 +7 -2
- package/dist/fastify.d.ts.map +1 -1
- package/dist/fastify.js +6 -1
- package/package.json +10 -10
package/dist/bin.js
CHANGED
|
@@ -157,18 +157,23 @@ async function loadFastifyConfig() {
|
|
|
157
157
|
}
|
|
158
158
|
if (!isServerConfigLoaded) {
|
|
159
159
|
console.log(`Loading server config from ${serverConfigPath}`);
|
|
160
|
-
|
|
160
|
+
console.log(`Loading server config from URL file://${serverConfigPath}`);
|
|
161
|
+
console.log(
|
|
162
|
+
`Loading server config from URL ${(0, import_url.pathToFileURL)(serverConfigPath).href}`
|
|
163
|
+
);
|
|
164
|
+
const config3 = await import((0, import_url.pathToFileURL)(serverConfigPath).href);
|
|
161
165
|
serverConfigFile = { ...config3.default };
|
|
162
166
|
isServerConfigLoaded = true;
|
|
163
167
|
}
|
|
164
168
|
return serverConfigFile;
|
|
165
169
|
}
|
|
166
|
-
var import_fs, import_path, import_fastify, import_store, import_project_config2, DEFAULT_OPTIONS, isServerConfigLoaded, serverConfigFile, createFastifyInstance, fastify_default;
|
|
170
|
+
var import_fs, import_path, import_url, import_fastify, import_store, import_project_config2, DEFAULT_OPTIONS, isServerConfigLoaded, serverConfigFile, createFastifyInstance, fastify_default;
|
|
167
171
|
var init_fastify = __esm({
|
|
168
172
|
"src/fastify.ts"() {
|
|
169
173
|
"use strict";
|
|
170
174
|
import_fs = __toESM(require("fs"));
|
|
171
175
|
import_path = __toESM(require("path"));
|
|
176
|
+
import_url = require("url");
|
|
172
177
|
import_fastify = __toESM(require("fastify"));
|
|
173
178
|
import_store = require("@cedarjs/context/dist/store");
|
|
174
179
|
import_project_config2 = require("@cedarjs/project-config");
|
package/dist/fastify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAOpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,eAAO,MAAM,eAAe;;;;CAI3B,CAAA;AAiBD,wBAAsB,iBAAiB;YAb7B,oBAAoB;sBACV,mBAAmB;GAsCtC;AAED,eAAO,MAAM,qBAAqB,aACtB,oBAAoB,KAC7B,OAAO,CAAC,eAAe,CAWzB,CAAA;AAED,eAAe,qBAAqB,CAAA"}
|
package/dist/fastify.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(fastify_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(fastify_exports);
|
|
37
37
|
var import_fs = __toESM(require("fs"));
|
|
38
38
|
var import_path = __toESM(require("path"));
|
|
39
|
+
var import_url = require("url");
|
|
39
40
|
var import_fastify = __toESM(require("fastify"));
|
|
40
41
|
var import_store = require("@cedarjs/context/dist/store");
|
|
41
42
|
var import_project_config = require("@cedarjs/project-config");
|
|
@@ -65,7 +66,11 @@ async function loadFastifyConfig() {
|
|
|
65
66
|
}
|
|
66
67
|
if (!isServerConfigLoaded) {
|
|
67
68
|
console.log(`Loading server config from ${serverConfigPath}`);
|
|
68
|
-
|
|
69
|
+
console.log(`Loading server config from URL file://${serverConfigPath}`);
|
|
70
|
+
console.log(
|
|
71
|
+
`Loading server config from URL ${(0, import_url.pathToFileURL)(serverConfigPath).href}`
|
|
72
|
+
);
|
|
73
|
+
const config = await import((0, import_url.pathToFileURL)(serverConfigPath).href);
|
|
69
74
|
serverConfigFile = { ...config.default };
|
|
70
75
|
isServerConfigLoaded = true;
|
|
71
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api-server",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.12342+33399e9ae",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"test:watch": "vitest watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cedarjs/context": "1.0.0-canary.
|
|
33
|
-
"@cedarjs/fastify-web": "1.0.0-canary.
|
|
34
|
-
"@cedarjs/internal": "1.0.0-canary.
|
|
35
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
36
|
-
"@cedarjs/web-server": "1.0.0-canary.
|
|
32
|
+
"@cedarjs/context": "1.0.0-canary.12342",
|
|
33
|
+
"@cedarjs/fastify-web": "1.0.0-canary.12342",
|
|
34
|
+
"@cedarjs/internal": "1.0.0-canary.12342",
|
|
35
|
+
"@cedarjs/project-config": "1.0.0-canary.12342",
|
|
36
|
+
"@cedarjs/web-server": "1.0.0-canary.12342",
|
|
37
37
|
"@fastify/multipart": "9.0.3",
|
|
38
38
|
"@fastify/url-data": "6.0.3",
|
|
39
39
|
"chalk": "4.1.2",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"yargs": "17.7.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@cedarjs/framework-tools": "1.0.0-canary.
|
|
54
|
+
"@cedarjs/framework-tools": "1.0.0-canary.12342",
|
|
55
55
|
"@types/aws-lambda": "8.10.145",
|
|
56
56
|
"@types/lodash": "4.17.15",
|
|
57
57
|
"@types/qs": "6.9.16",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"pino-abstract-transport": "1.2.0",
|
|
62
62
|
"tsx": "4.19.4",
|
|
63
63
|
"typescript": "5.6.2",
|
|
64
|
-
"vitest": "2.
|
|
64
|
+
"vitest": "3.2.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@cedarjs/graphql-server": "1.0.0-canary.
|
|
67
|
+
"@cedarjs/graphql-server": "1.0.0-canary.12342"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@cedarjs/graphql-server": {
|
|
71
71
|
"optional": true
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "33399e9aebf450c073507aa5b1410653e7f034f4"
|
|
75
75
|
}
|