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

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;
156
+ var DEFAULT_OPTIONS, isServerConfigLoaded, serverConfigFile, createFastifyInstance, fastify_default;
157
157
  var init_fastify = __esm({
158
158
  "src/fastify.ts"() {
159
159
  "use strict";
@@ -181,6 +181,7 @@ var init_fastify = __esm({
181
181
  });
182
182
  return fastify2;
183
183
  };
184
+ fastify_default = createFastifyInstance;
184
185
  }
185
186
  });
186
187
 
@@ -716,7 +717,7 @@ async function handler2(options) {
716
717
  options.apiPort,
717
718
  options.apiRootPath
718
719
  ].join("");
719
- const webFastify = await createFastifyInstance();
720
+ const webFastify = await fastify_default();
720
721
  webFastify.register(redwoodFastifyWeb, {
721
722
  redwood: {
722
723
  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;
172
+ var import_fs, import_path, import_url, import_fastify, import_store, import_project_config2, DEFAULT_OPTIONS, isServerConfigLoaded, serverConfigFile, createFastifyInstance, fastify_default;
173
173
  var init_fastify = __esm({
174
174
  "src/fastify.ts"() {
175
175
  "use strict";
@@ -203,6 +203,7 @@ var init_fastify = __esm({
203
203
  });
204
204
  return fastify2;
205
205
  };
206
+ fastify_default = createFastifyInstance;
206
207
  }
207
208
  });
208
209
 
@@ -740,7 +741,7 @@ async function handler2(options) {
740
741
  options.apiPort,
741
742
  options.apiRootPath
742
743
  ].join("");
743
- const webFastify = await createFastifyInstance();
744
+ const webFastify = await fastify_default();
744
745
  webFastify.register(import_fastify_web2.redwoodFastifyWeb, {
745
746
  redwood: {
746
747
  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 = require("./fastify.js");
38
+ var import_fastify = __toESM(require("./fastify.js"), 1);
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.createFastifyInstance)();
54
+ const webFastify = await (0, import_fastify.default)();
55
55
  webFastify.register(import_fastify_web.redwoodFastifyWeb, {
56
56
  redwood: {
57
57
  apiProxyTarget
@@ -10,4 +10,5 @@ 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;
13
14
  //# 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"}
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"}
@@ -30,6 +30,7 @@ var fastify_exports = {};
30
30
  __export(fastify_exports, {
31
31
  DEFAULT_OPTIONS: () => DEFAULT_OPTIONS,
32
32
  createFastifyInstance: () => createFastifyInstance,
33
+ default: () => fastify_default,
33
34
  loadFastifyConfig: () => loadFastifyConfig
34
35
  });
35
36
  module.exports = __toCommonJS(fastify_exports);
@@ -83,6 +84,7 @@ const createFastifyInstance = async (options) => {
83
84
  });
84
85
  return fastify;
85
86
  };
87
+ var fastify_default = createFastifyInstance;
86
88
  // Annotate the CommonJS export names for ESM import in node:
87
89
  0 && (module.exports = {
88
90
  DEFAULT_OPTIONS,
package/dist/fastify.d.ts CHANGED
@@ -10,4 +10,5 @@ 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;
13
14
  //# 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"}
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"}
package/dist/fastify.js CHANGED
@@ -48,8 +48,10 @@ const createFastifyInstance = async (options) => {
48
48
  });
49
49
  return fastify;
50
50
  };
51
+ var fastify_default = createFastifyInstance;
51
52
  export {
52
53
  DEFAULT_OPTIONS,
53
54
  createFastifyInstance,
55
+ fastify_default as default,
54
56
  loadFastifyConfig
55
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api-server",
3
- "version": "2.0.1-next.23+ee9637a66",
3
+ "version": "2.0.1",
4
4
  "description": "CedarJS's HTTP server for Serverless Functions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -69,10 +69,6 @@
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
- },
76
72
  "./watch": {
77
73
  "import": {
78
74
  "types": "./dist/watch.d.ts",
@@ -111,11 +107,11 @@
111
107
  "test:watch": "vitest watch"
112
108
  },
113
109
  "dependencies": {
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",
110
+ "@cedarjs/context": "2.0.1",
111
+ "@cedarjs/fastify-web": "2.0.1",
112
+ "@cedarjs/internal": "2.0.1",
113
+ "@cedarjs/project-config": "2.0.1",
114
+ "@cedarjs/web-server": "2.0.1",
119
115
  "@fastify/multipart": "9.0.3",
120
116
  "@fastify/url-data": "6.0.3",
121
117
  "chalk": "4.1.2",
@@ -132,20 +128,20 @@
132
128
  "yargs": "17.7.2"
133
129
  },
134
130
  "devDependencies": {
135
- "@cedarjs/framework-tools": "2.0.0",
131
+ "@cedarjs/framework-tools": "2.0.1",
136
132
  "@types/aws-lambda": "8.10.152",
137
133
  "@types/dotenv-defaults": "^2.0.4",
138
134
  "@types/qs": "6.9.16",
139
135
  "@types/split2": "4.2.3",
140
- "@types/yargs": "17.0.35",
136
+ "@types/yargs": "17.0.33",
141
137
  "memfs": "4.17.2",
142
138
  "pino-abstract-transport": "1.2.0",
143
139
  "tsx": "4.20.5",
144
- "typescript": "5.9.3",
140
+ "typescript": "5.9.2",
145
141
  "vitest": "3.2.4"
146
142
  },
147
143
  "peerDependencies": {
148
- "@cedarjs/graphql-server": "2.0.0"
144
+ "@cedarjs/graphql-server": "2.0.1"
149
145
  },
150
146
  "peerDependenciesMeta": {
151
147
  "@cedarjs/graphql-server": {
@@ -155,5 +151,5 @@
155
151
  "publishConfig": {
156
152
  "access": "public"
157
153
  },
158
- "gitHead": "ee9637a6646277cf451b4bc1f84718a97f336889"
154
+ "gitHead": "857071cda8373db8db3248e3a58560e3fdef0240"
159
155
  }