@jskit-ai/kernel 0.1.157 → 0.1.158

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.
@@ -223,15 +223,15 @@ function resolveInstalledViteProxyEntries(installedPackages = [], { proxyTarget
223
223
  }
224
224
 
225
225
  ownerByPath.set(routePath, packageId);
226
- proxyEntries[routePath] = Object.freeze({
226
+ proxyEntries[routePath] = {
227
227
  target,
228
228
  ...(Object.hasOwn(config, "changeOrigin") ? { changeOrigin: config.changeOrigin === true } : {}),
229
229
  ...(Object.hasOwn(config, "ws") ? { ws: config.ws === true } : {})
230
- });
230
+ };
231
231
  }
232
232
  }
233
233
 
234
- return Object.freeze(proxyEntries);
234
+ return proxyEntries;
235
235
  }
236
236
 
237
237
  async function resolveInstalledClientPackageIds(options) {
@@ -470,6 +470,8 @@ test("resolveInstalledViteProxyEntries derives proxy config directly from packag
470
470
  ws: true
471
471
  }
472
472
  });
473
+ proxy["/socket.io"].prependPath = false;
474
+ assert.equal(proxy["/socket.io"].prependPath, false);
473
475
  });
474
476
 
475
477
  test("resolveInstalledViteProxyEntries rejects ambiguous package proxy paths", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/kernel",
3
- "version": "0.1.157",
3
+ "version": "0.1.158",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "json-rest-schema": "^1.0.17"