@holochain/client 0.16.10 → 0.16.11

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.
@@ -34,7 +34,7 @@ export class AdminWebsocket {
34
34
  // Check if we are in the launcher's environment, and if so, redirect the url to connect to
35
35
  const env = getLauncherEnvironment();
36
36
  if (env?.ADMIN_INTERFACE_PORT) {
37
- url = new URL(`ws://127.0.0.1:${env.ADMIN_INTERFACE_PORT}`);
37
+ url = new URL(`ws://localhost:${env.ADMIN_INTERFACE_PORT}`);
38
38
  }
39
39
  const wsClient = await WsClient.connect(url);
40
40
  return new AdminWebsocket(wsClient, defaultTimeout);
@@ -44,7 +44,7 @@ export class AppWebsocket extends Emittery {
44
44
  // Check if we are in the launcher's environment, and if so, redirect the url to connect to
45
45
  const env = getLauncherEnvironment();
46
46
  if (env?.APP_INTERFACE_PORT) {
47
- url = new URL(`ws://127.0.0.1:${env.APP_INTERFACE_PORT}`);
47
+ url = new URL(`ws://localhost:${env.APP_INTERFACE_PORT}`);
48
48
  }
49
49
  const wsClient = await WsClient.connect(url);
50
50
  const appWebsocket = new AppWebsocket(wsClient, defaultTimeout, env?.INSTALLED_APP_ID);
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.41.0"
8
+ "packageVersion": "7.43.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holochain/client",
3
- "version": "0.16.10",
3
+ "version": "0.16.11",
4
4
  "description": "A JavaScript client for the Holochain Conductor API",
5
5
  "author": "Holochain Foundation <info@holochain.org> (http://holochain.org)",
6
6
  "license": "CAL-1.0",
@@ -31,6 +31,7 @@
31
31
  "lib"
32
32
  ],
33
33
  "scripts": {
34
+ "prepublishOnly": "npm run build",
34
35
  "lint": "eslint --fix --ext .ts src test .eslintrc.cjs",
35
36
  "test:app-agent": "RUST_LOG=error RUST_BACKTRACE=1 node --loader ts-node/esm test/e2e/app-agent-websocket.ts",
36
37
  "test:utils": "RUST_LOG=error RUST_BACKTRACE=1 node --loader ts-node/esm test/e2e/utils.ts",