@interopio/bridge 1.1.0 → 1.1.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/changelog.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  # Change Log
4
4
 
5
+ ## 1.1.2 (2026-03-22)
6
+ ### Changed
7
+ - bump @interopio/gateway to 0.25.1
8
+ - bump @interopio/gateway-server to 0.24.0
9
+
10
+ ## 1.1.1 (2026-03-20)
11
+ ### Fixed
12
+ - fix: regression port/host config is not applied
13
+
5
14
  ## 1.1.0 (2026-03-19)
6
15
  ### Added
7
16
  - write bound address port to a file
package/dist/main.js CHANGED
@@ -57,18 +57,17 @@ function gatewayDiscoveryPipeServer({ logger, info, pipeNameProps }) {
57
57
  function onGatewayStarted(log, env = process.env) {
58
58
  return (gateway2) => {
59
59
  const info = JSON.stringify({ ...gateway2.info(), pid: process.pid });
60
- if (isRunningInConnectDesktop()) {
60
+ if (isRunningInConnectDesktop(env)) {
61
61
  const startingContext = parseStartingContext(env);
62
62
  const environment = startingContext.env ?? env.IO_CD_ENV ?? env["GLUE-ENV"] ?? "DEMO";
63
63
  const region = startingContext.region ?? env.IO_CD_REGION ?? env["GLUE-REGION"] ?? "INTEROP.IO";
64
64
  const user = env.USERNAME ?? env.USER;
65
- let discoveryServer;
66
65
  const options = {
67
66
  logger: log,
68
67
  info,
69
68
  pipeNameProps: { environment, region, user }
70
69
  };
71
- discoveryServer = gatewayDiscoveryPipeServer(options);
70
+ gatewayDiscoveryPipeServer(options);
72
71
  } else {
73
72
  log.info(`gateway started: ${info}`);
74
73
  }
@@ -88,7 +87,7 @@ async function serverGatewayConfig(gateway2, bridge, env = process.env) {
88
87
  const gatewayConfig = applicationConfig?.customProperties;
89
88
  port = gatewayConfig?.port ?? 8385;
90
89
  host = gatewayConfig?.ip ?? "127.0.0.1";
91
- route = gatewayConfig?.route;
90
+ route = gatewayConfig?.route ?? "/";
92
91
  }
93
92
  if (enabled) {
94
93
  const environment = startingContext.env ?? env.IO_CD_ENV ?? env["GLUE-ENV"] ?? "DEMO";
@@ -108,16 +107,11 @@ async function serverGatewayConfig(gateway2, bridge, env = process.env) {
108
107
  }
109
108
  }
110
109
  if (enabled) {
111
- return {
112
- host,
113
- port,
114
- management,
110
+ const result = {
115
111
  gateway: {
116
112
  clients: {
117
113
  inactive_seconds: 0
118
114
  },
119
- route,
120
- ping: bridge.wsPingInterval ?? void 0,
121
115
  mesh: {
122
116
  auth: { user: null },
123
117
  node: bridge.uuid,
@@ -152,6 +146,22 @@ async function serverGatewayConfig(gateway2, bridge, env = process.env) {
152
146
  }
153
147
  }
154
148
  };
149
+ if (host !== void 0) {
150
+ result.host = host;
151
+ }
152
+ if (port !== void 0) {
153
+ result.port = port;
154
+ }
155
+ if (route !== void 0) {
156
+ result.gateway.route = route;
157
+ }
158
+ if (bridge.wsPingInterval !== void 0) {
159
+ result.gateway.ping = bridge.wsPingInterval;
160
+ }
161
+ if (management !== void 0) {
162
+ result.management = management;
163
+ }
164
+ return result;
155
165
  }
156
166
  }
157
167
 
@@ -1120,7 +1130,7 @@ var InternalRelays = class {
1120
1130
  // package.json
1121
1131
  var package_default = {
1122
1132
  name: "@interopio/bridge",
1123
- version: "1.1.0",
1133
+ version: "1.1.2",
1124
1134
  license: "see license in license.md",
1125
1135
  author: "interop.io",
1126
1136
  homepage: "https://docs.interop.io/bridge",
@@ -1160,13 +1170,13 @@ var package_default = {
1160
1170
  build: "npm run build:main && npm run build:index"
1161
1171
  },
1162
1172
  dependencies: {
1163
- "@interopio/gateway-server": "^0.23.1",
1173
+ "@interopio/gateway-server": "^0.24.0",
1164
1174
  jsrsasign: "^11.1.1",
1165
1175
  "hrw-hash": "^2.0.3",
1166
1176
  nanoid: "^5.1.7"
1167
1177
  },
1168
1178
  devDependencies: {
1169
- "@interopio/gateway": "^0.25.0",
1179
+ "@interopio/gateway": "^0.25.1",
1170
1180
  "@types/jsrsasign": "^10.5.15",
1171
1181
  "@types/ws": "^8.18.1",
1172
1182
  "rand-seed": "^3.0.0"