@cedarjs/api-server 2.0.0 → 2.0.1-next.23

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
@@ -153,7 +153,7 @@ async function loadFastifyConfig() {
153
153
  }
154
154
  return serverConfigFile;
155
155
  }
156
- var DEFAULT_OPTIONS, isServerConfigLoaded, serverConfigFile, createFastifyInstance, fastify_default;
156
+ var DEFAULT_OPTIONS, isServerConfigLoaded, serverConfigFile, createFastifyInstance;
157
157
  var init_fastify = __esm({
158
158
  "src/fastify.ts"() {
159
159
  "use strict";
@@ -181,7 +181,6 @@ var init_fastify = __esm({
181
181
  });
182
182
  return fastify2;
183
183
  };
184
- fastify_default = createFastifyInstance;
185
184
  }
186
185
  });
187
186
 
@@ -717,7 +716,7 @@ async function handler2(options) {
717
716
  options.apiPort,
718
717
  options.apiRootPath
719
718
  ].join("");
720
- const webFastify = await fastify_default();
719
+ const webFastify = await createFastifyInstance();
721
720
  webFastify.register(redwoodFastifyWeb, {
722
721
  redwood: {
723
722
  apiProxyTarget
@@ -2,7 +2,7 @@ import ansis from "ansis";
2
2
  import { redwoodFastifyWeb, coerceRootPath } from "@cedarjs/fastify-web";
3
3
  import { getWebHost, getWebPort, getAPIHost, getAPIPort } from "./cliHelpers.js";
4
4
  import { createServer as createApiServer } from "./createServer.js";
5
- import createFastifyInstance from "./fastify.js";
5
+ import { createFastifyInstance } from "./fastify.js";
6
6
  async function handler(options) {
7
7
  const timeStart = Date.now();
8
8
  console.log(ansis.dim.italic("Starting API and Web Servers..."));
package/dist/cjs/bin.js CHANGED
@@ -169,7 +169,7 @@ async function loadFastifyConfig() {
169
169
  }
170
170
  return serverConfigFile;
171
171
  }
172
- var import_fs, import_path, import_url, import_fastify, import_store, import_project_config2, DEFAULT_OPTIONS, isServerConfigLoaded, serverConfigFile, createFastifyInstance, fastify_default;
172
+ var import_fs, import_path, import_url, import_fastify, import_store, import_project_config2, DEFAULT_OPTIONS, isServerConfigLoaded, serverConfigFile, createFastifyInstance;
173
173
  var init_fastify = __esm({
174
174
  "src/fastify.ts"() {
175
175
  "use strict";
@@ -203,7 +203,6 @@ var init_fastify = __esm({
203
203
  });
204
204
  return fastify2;
205
205
  };
206
- fastify_default = createFastifyInstance;
207
206
  }
208
207
  });
209
208
 
@@ -741,7 +740,7 @@ async function handler2(options) {
741
740
  options.apiPort,
742
741
  options.apiRootPath
743
742
  ].join("");
744
- const webFastify = await fastify_default();
743
+ const webFastify = await createFastifyInstance();
745
744
  webFastify.register(import_fastify_web2.redwoodFastifyWeb, {
746
745
  redwood: {
747
746
  apiProxyTarget
@@ -35,7 +35,7 @@ var import_ansis = __toESM(require("ansis"), 1);
35
35
  var import_fastify_web = require("@cedarjs/fastify-web");
36
36
  var import_cliHelpers = require("./cliHelpers.js");
37
37
  var import_createServer = require("./createServer.js");
38
- var import_fastify = __toESM(require("./fastify.js"), 1);
38
+ var import_fastify = require("./fastify.js");
39
39
  async function handler(options) {
40
40
  const timeStart = Date.now();
41
41
  console.log(import_ansis.default.dim.italic("Starting API and Web Servers..."));
@@ -51,7 +51,7 @@ async function handler(options) {
51
51
  options.apiPort,
52
52
  options.apiRootPath
53
53
  ].join("");
54
- const webFastify = await (0, import_fastify.default)();
54
+ const webFastify = await (0, import_fastify.createFastifyInstance)();
55
55
  webFastify.register(import_fastify_web.redwoodFastifyWeb, {
56
56
  redwood: {
57
57
  apiProxyTarget
@@ -10,5 +10,4 @@ export declare function loadFastifyConfig(): Promise<{
10
10
  configureFastify: FastifySideConfigFn;
11
11
  }>;
12
12
  export declare const createFastifyInstance: (options?: FastifyServerOptions) => Promise<FastifyInstance>;
13
- export default createFastifyInstance;
14
13
  //# sourceMappingURL=fastify.d.ts.map
@@ -1 +1 @@
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,YAAY,CAAA;AAGrD,eAAO,MAAM,eAAe;;;;CAI3B,CAAA;AAiBD,wBAAsB,iBAAiB;YAb7B,oBAAoB;sBACV,mBAAmB;GAsCtC;AAED,eAAO,MAAM,qBAAqB,GAChC,UAAU,oBAAoB,KAC7B,OAAO,CAAC,eAAe,CAWzB,CAAA;AAED,eAAe,qBAAqB,CAAA"}
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,YAAY,CAAA;AAGrD,eAAO,MAAM,eAAe;;;;CAI3B,CAAA;AAiBD,wBAAsB,iBAAiB;YAb7B,oBAAoB;sBACV,mBAAmB;GAsCtC;AAED,eAAO,MAAM,qBAAqB,GAChC,UAAU,oBAAoB,KAC7B,OAAO,CAAC,eAAe,CAWzB,CAAA"}
@@ -30,7 +30,6 @@ var fastify_exports = {};
30
30
  __export(fastify_exports, {
31
31
  DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
32
32
  createFastifyInstance: () => createFastifyInstance,
33
- default: () => fastify_default,
34
33
  loadFastifyConfig: () => loadFastifyConfig
35
34
  });
36
35
  module.exports = __toCommonJS(fastify_exports);
@@ -84,7 +83,6 @@ const createFastifyInstance = async (options) => {
84
83
  });
85
84
  return fastify;
86
85
  };
87
- var fastify_default = createFastifyInstance;
88
86
  // Annotate the CommonJS export names for ESM import in node:
89
87
  0 && (module.exports = {
90
88
  DEFAULT_OPTIONS,
File without changes
package/dist/cjs/watch.js CHANGED
File without changes
package/dist/fastify.d.ts CHANGED
@@ -10,5 +10,4 @@ export declare function loadFastifyConfig(): Promise<{
10
10
  configureFastify: FastifySideConfigFn;
11
11
  }>;
12
12
  export declare const createFastifyInstance: (options?: FastifyServerOptions) => Promise<FastifyInstance>;
13
- export default createFastifyInstance;
14
13
  //# sourceMappingURL=fastify.d.ts.map
@@ -1 +1 @@
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,YAAY,CAAA;AAGrD,eAAO,MAAM,eAAe;;;;CAI3B,CAAA;AAiBD,wBAAsB,iBAAiB;YAb7B,oBAAoB;sBACV,mBAAmB;GAsCtC;AAED,eAAO,MAAM,qBAAqB,GAChC,UAAU,oBAAoB,KAC7B,OAAO,CAAC,eAAe,CAWzB,CAAA;AAED,eAAe,qBAAqB,CAAA"}
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,YAAY,CAAA;AAGrD,eAAO,MAAM,eAAe;;;;CAI3B,CAAA;AAiBD,wBAAsB,iBAAiB;YAb7B,oBAAoB;sBACV,mBAAmB;GAsCtC;AAED,eAAO,MAAM,qBAAqB,GAChC,UAAU,oBAAoB,KAC7B,OAAO,CAAC,eAAe,CAWzB,CAAA"}
package/dist/fastify.js CHANGED
@@ -48,10 +48,8 @@ const createFastifyInstance = async (options) => {
48
48
  });
49
49
  return fastify;
50
50
  };
51
- var fastify_default = createFastifyInstance;
52
51
  export {
53
52
  DEFAULT_OPTIONS,
54
53
  createFastifyInstance,
55
- fastify_default as default,
56
54
  loadFastifyConfig
57
55
  };
File without changes
package/dist/watch.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api-server",
3
- "version": "2.0.0",
3
+ "version": "2.0.1-next.23+ee9637a66",
4
4
  "description": "CedarJS's HTTP server for Serverless Functions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -69,6 +69,10 @@
69
69
  "types": "./dist/cjs/cliHelpers.d.ts",
70
70
  "default": "./dist/cjs/cliHelpers.js"
71
71
  },
72
+ "./cjs/bothCliConfigHandler": {
73
+ "types": "./dist/cjs/bothCLIConfigHandler.d.ts",
74
+ "default": "./dist/cjs/bothCLIConfigHandler.js"
75
+ },
72
76
  "./watch": {
73
77
  "import": {
74
78
  "types": "./dist/watch.d.ts",
@@ -107,11 +111,11 @@
107
111
  "test:watch": "vitest watch"
108
112
  },
109
113
  "dependencies": {
110
- "@cedarjs/context": "2.0.0",
111
- "@cedarjs/fastify-web": "2.0.0",
112
- "@cedarjs/internal": "2.0.0",
113
- "@cedarjs/project-config": "2.0.0",
114
- "@cedarjs/web-server": "2.0.0",
114
+ "@cedarjs/context": "2.0.1-next.23+ee9637a66",
115
+ "@cedarjs/fastify-web": "2.0.1-next.23+ee9637a66",
116
+ "@cedarjs/internal": "2.0.1-next.23+ee9637a66",
117
+ "@cedarjs/project-config": "2.0.1-next.23+ee9637a66",
118
+ "@cedarjs/web-server": "2.0.1-next.23+ee9637a66",
115
119
  "@fastify/multipart": "9.0.3",
116
120
  "@fastify/url-data": "6.0.3",
117
121
  "chalk": "4.1.2",
@@ -133,11 +137,11 @@
133
137
  "@types/dotenv-defaults": "^2.0.4",
134
138
  "@types/qs": "6.9.16",
135
139
  "@types/split2": "4.2.3",
136
- "@types/yargs": "17.0.33",
140
+ "@types/yargs": "17.0.35",
137
141
  "memfs": "4.17.2",
138
142
  "pino-abstract-transport": "1.2.0",
139
143
  "tsx": "4.20.5",
140
- "typescript": "5.9.2",
144
+ "typescript": "5.9.3",
141
145
  "vitest": "3.2.4"
142
146
  },
143
147
  "peerDependencies": {
@@ -151,5 +155,5 @@
151
155
  "publishConfig": {
152
156
  "access": "public"
153
157
  },
154
- "gitHead": "8ca868abf6694a49d0745a41437a60328aba31a4"
158
+ "gitHead": "ee9637a6646277cf451b4bc1f84718a97f336889"
155
159
  }