@inflector/aura 0.6.4 → 0.6.6

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.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAmLA,wBAAgB,KAAK,CAAC,MAAM,UAAQ,QAgDnC;AA0aD,wBAAsB,GAAG,kBAsExB"}
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAmLA,wBAAgB,KAAK,CAAC,MAAM,UAAQ,QAgDnC;AA0aD,wBAAsB,GAAG,kBA2ExB"}
package/dist/bin.js CHANGED
@@ -581,8 +581,13 @@ export async function dev() {
581
581
  target: Config.Url,
582
582
  changeOrigin: true,
583
583
  secure: false,
584
+ agent: new (await import("node:http")).Agent({
585
+ keepAlive: false, // fresh socket every time, no lazy pool
586
+ }),
587
+ ws: false, // disable websocket proxying if unused
584
588
  configure(proxy, _options) {
585
589
  proxy.on("proxyReq", (proxyReq, req, res) => {
590
+ proxyReq.setHeader("Connection", "close");
586
591
  if (AURA_KEY) {
587
592
  proxyReq.setHeader("Authorization", `Bearer ${AURA_KEY}`);
588
593
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/aura",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",