@cedarjs/api-server 6.0.0-canary.2842 → 6.0.0-canary.2844

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.
@@ -1 +1 @@
1
- {"version":3,"file":"apiCLIConfig.d.ts","sourceRoot":"","sources":["../src/apiCLIConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,eAAO,MAAM,WAAW,4CAA4C,CAAA;AAEpE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,QA0BpD;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,gBAAgB,iBAGtD"}
1
+ {"version":3,"file":"apiCLIConfig.d.ts","sourceRoot":"","sources":["../src/apiCLIConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,eAAO,MAAM,WAAW,4CAA4C,CAAA;AAEpE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,QAwBpD;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,gBAAgB,iBAGtD"}
@@ -7,7 +7,7 @@ function builder(yargs) {
7
7
  alias: "p"
8
8
  },
9
9
  host: {
10
- description: "The host to listen at. Note that you most likely want this to be '0.0.0.0' in production",
10
+ description: "The host to listen at",
11
11
  type: "string"
12
12
  },
13
13
  apiRootPath: {
package/dist/bin.js CHANGED
@@ -24,7 +24,7 @@ function getAPIHost({ isPublicSide = false } = {}) {
24
24
  host ??= process.env.HOST;
25
25
  }
26
26
  host ??= getConfig().api.host;
27
- host ??= process.env.NODE_ENV === "production" ? "0.0.0.0" : "::";
27
+ host ??= "::";
28
28
  return host;
29
29
  }
30
30
  function getAPIPort({ isPublicSide = false } = {}) {
@@ -50,7 +50,7 @@ function getWebHost({ isPublicSide = false } = {}) {
50
50
  host ??= process.env.HOST;
51
51
  }
52
52
  host ??= getConfig().web.host;
53
- host ??= process.env.NODE_ENV === "production" ? "0.0.0.0" : "::";
53
+ host ??= "::";
54
54
  return host;
55
55
  }
56
56
  function getWebPort({ isPublicSide = false } = {}) {
@@ -976,7 +976,7 @@ function builder(yargs2) {
976
976
  alias: "p"
977
977
  },
978
978
  host: {
979
- description: "The host to listen at. Note that you most likely want this to be '0.0.0.0' in production",
979
+ description: "The host to listen at",
980
980
  type: "string"
981
981
  },
982
982
  apiRootPath: {
@@ -1007,7 +1007,7 @@ function builder2(yargs2) {
1007
1007
  alias: ["web-port"]
1008
1008
  },
1009
1009
  webHost: {
1010
- description: "The host for the web server to listen on. Note that you most likely want this to be '0.0.0.0' in production",
1010
+ description: "The host for the web server to listen on",
1011
1011
  type: "string",
1012
1012
  alias: ["web-host"]
1013
1013
  },
@@ -1017,7 +1017,7 @@ function builder2(yargs2) {
1017
1017
  alias: ["api-port"]
1018
1018
  },
1019
1019
  apiHost: {
1020
- description: "The host for the api server to listen on. Note that you most likely want this to be '0.0.0.0' in production",
1020
+ description: "The host for the api server to listen on",
1021
1021
  type: "string",
1022
1022
  alias: ["api-host"]
1023
1023
  },
@@ -1 +1 @@
1
- {"version":3,"file":"bothCLIConfig.d.ts","sourceRoot":"","sources":["../src/bothCLIConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,eAAO,MAAM,WAAW,qDAAqD,CAAA;AAE7E,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,QA+BrD;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,iBAAiB,iBAGvD"}
1
+ {"version":3,"file":"bothCLIConfig.d.ts","sourceRoot":"","sources":["../src/bothCLIConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,eAAO,MAAM,WAAW,qDAAqD,CAAA;AAE7E,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,QA6BrD;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,iBAAiB,iBAGvD"}
@@ -7,7 +7,7 @@ function builder(yargs) {
7
7
  alias: ["web-port"]
8
8
  },
9
9
  webHost: {
10
- description: "The host for the web server to listen on. Note that you most likely want this to be '0.0.0.0' in production",
10
+ description: "The host for the web server to listen on",
11
11
  type: "string",
12
12
  alias: ["web-host"]
13
13
  },
@@ -17,7 +17,7 @@ function builder(yargs) {
17
17
  alias: ["api-port"]
18
18
  },
19
19
  apiHost: {
20
- description: "The host for the api server to listen on. Note that you most likely want this to be '0.0.0.0' in production",
20
+ description: "The host for the api server to listen on",
21
21
  type: "string",
22
22
  alias: ["api-host"]
23
23
  },
@@ -1 +1 @@
1
- {"version":3,"file":"cliHelpers.d.ts","sourceRoot":"","sources":["../src/cliHelpers.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,wBAAgB,UAAU,CAAC,EAAE,YAAoB,EAAE,GAAE,WAAgB,UAYpE;AAED,wBAAgB,UAAU,CAAC,EAAE,YAAoB,EAAE,GAAE,WAAgB,UAcpE;AAED,wBAAgB,cAAc,WAE7B;AAED,wBAAgB,UAAU,CAAC,EAAE,YAAoB,EAAE,GAAE,WAAgB,UAYpE;AAED,wBAAgB,UAAU,CAAC,EAAE,YAAoB,EAAE,GAAE,WAAgB,UAcpE"}
1
+ {"version":3,"file":"cliHelpers.d.ts","sourceRoot":"","sources":["../src/cliHelpers.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,wBAAgB,UAAU,CAAC,EAAE,YAAoB,EAAE,GAAE,WAAgB,UAepE;AAED,wBAAgB,UAAU,CAAC,EAAE,YAAoB,EAAE,GAAE,WAAgB,UAcpE;AAED,wBAAgB,cAAc,WAE7B;AAED,wBAAgB,UAAU,CAAC,EAAE,YAAoB,EAAE,GAAE,WAAgB,UAepE;AAED,wBAAgB,UAAU,CAAC,EAAE,YAAoB,EAAE,GAAE,WAAgB,UAcpE"}
@@ -7,7 +7,7 @@ function getAPIHost({ isPublicSide = false } = {}) {
7
7
  host ??= process.env.HOST;
8
8
  }
9
9
  host ??= getConfig().api.host;
10
- host ??= process.env.NODE_ENV === "production" ? "0.0.0.0" : "::";
10
+ host ??= "::";
11
11
  return host;
12
12
  }
13
13
  function getAPIPort({ isPublicSide = false } = {}) {
@@ -33,7 +33,7 @@ function getWebHost({ isPublicSide = false } = {}) {
33
33
  host ??= process.env.HOST;
34
34
  }
35
35
  host ??= getConfig().web.host;
36
- host ??= process.env.NODE_ENV === "production" ? "0.0.0.0" : "::";
36
+ host ??= "::";
37
37
  return host;
38
38
  }
39
39
  function getWebPort({ isPublicSide = false } = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api-server",
3
- "version": "6.0.0-canary.2842",
3
+ "version": "6.0.0-canary.2844",
4
4
  "description": "CedarJS's HTTP server for Serverless Functions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -92,11 +92,11 @@
92
92
  "test:watch": "vitest watch"
93
93
  },
94
94
  "dependencies": {
95
- "@cedarjs/api": "6.0.0-canary.2842",
96
- "@cedarjs/context": "6.0.0-canary.2842",
97
- "@cedarjs/fastify-web": "6.0.0-canary.2842",
98
- "@cedarjs/project-config": "6.0.0-canary.2842",
99
- "@cedarjs/web-server": "6.0.0-canary.2842",
95
+ "@cedarjs/api": "6.0.0-canary.2844",
96
+ "@cedarjs/context": "6.0.0-canary.2844",
97
+ "@cedarjs/fastify-web": "6.0.0-canary.2844",
98
+ "@cedarjs/project-config": "6.0.0-canary.2844",
99
+ "@cedarjs/web-server": "6.0.0-canary.2844",
100
100
  "@fastify/multipart": "9.4.0",
101
101
  "@fastify/url-data": "6.0.3",
102
102
  "ansis": "4.3.1",
@@ -113,7 +113,7 @@
113
113
  "yargs": "17.7.3"
114
114
  },
115
115
  "devDependencies": {
116
- "@cedarjs/framework-tools": "6.0.0-canary.2842",
116
+ "@cedarjs/framework-tools": "6.0.0-canary.2844",
117
117
  "@types/aws-lambda": "8.10.162",
118
118
  "@types/dotenv-defaults": "^5.0.0",
119
119
  "@types/split2": "4.2.3",
@@ -128,7 +128,7 @@
128
128
  "vitest": "4.1.10"
129
129
  },
130
130
  "peerDependencies": {
131
- "@cedarjs/graphql-server": "6.0.0-canary.2842"
131
+ "@cedarjs/graphql-server": "6.0.0-canary.2844"
132
132
  },
133
133
  "peerDependenciesMeta": {
134
134
  "@cedarjs/graphql-server": {