@crossdelta/infrastructure 0.12.1 → 0.12.2

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/index.cjs CHANGED
@@ -1170,11 +1170,8 @@ var generateHandleBlock = (handle, level, basicAuth) => {
1170
1170
  ${inner}
1171
1171
  }`, level);
1172
1172
  };
1173
- var generateRouteBlock = (route, encode, useOnDemandTls) => {
1173
+ var generateRouteBlock = (route, encode) => {
1174
1174
  const body = [];
1175
- if (useOnDemandTls) {
1176
- body.push(" tls {", " on_demand", " }");
1177
- }
1178
1175
  if (!route.redirect && encode?.length) {
1179
1176
  body.push(` encode ${encode.join(" ")}`);
1180
1177
  }
@@ -1233,10 +1230,9 @@ var generateCaddyfile = (config) => {
1233
1230
  const healthCheckBlock = `:${healthCheck.port} {
1234
1231
  respond ${healthCheck.path} 200
1235
1232
  }`;
1236
- const useOnDemandTls = config.onDemandTls != null;
1237
1233
  const blocks = [
1238
1234
  generateGlobalBlock(config),
1239
- ...config.routes.map((route) => generateRouteBlock(route, config.encode, useOnDemandTls)),
1235
+ ...config.routes.map((route) => generateRouteBlock(route, config.encode)),
1240
1236
  healthCheckBlock,
1241
1237
  ...config.catchAllUpstream && config.onDemandTls ? [generateCatchAllBlock(config.catchAllUpstream, config.encode)] : []
1242
1238
  ];
package/dist/index.js CHANGED
@@ -1074,11 +1074,8 @@ var generateHandleBlock = (handle, level, basicAuth) => {
1074
1074
  ${inner}
1075
1075
  }`, level);
1076
1076
  };
1077
- var generateRouteBlock = (route, encode, useOnDemandTls) => {
1077
+ var generateRouteBlock = (route, encode) => {
1078
1078
  const body = [];
1079
- if (useOnDemandTls) {
1080
- body.push(" tls {", " on_demand", " }");
1081
- }
1082
1079
  if (!route.redirect && encode?.length) {
1083
1080
  body.push(` encode ${encode.join(" ")}`);
1084
1081
  }
@@ -1137,10 +1134,9 @@ var generateCaddyfile = (config) => {
1137
1134
  const healthCheckBlock = `:${healthCheck.port} {
1138
1135
  respond ${healthCheck.path} 200
1139
1136
  }`;
1140
- const useOnDemandTls = config.onDemandTls != null;
1141
1137
  const blocks = [
1142
1138
  generateGlobalBlock(config),
1143
- ...config.routes.map((route) => generateRouteBlock(route, config.encode, useOnDemandTls)),
1139
+ ...config.routes.map((route) => generateRouteBlock(route, config.encode)),
1144
1140
  healthCheckBlock,
1145
1141
  ...config.catchAllUpstream && config.onDemandTls ? [generateCatchAllBlock(config.catchAllUpstream, config.encode)] : []
1146
1142
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossdelta/infrastructure",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {