Skip to content

Commit

Permalink
fix(transport): node bridge version parsing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan authored and marekrjpolak committed Sep 10, 2024
1 parent bf893a5 commit 7a6ff56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/transport/src/transports/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ export class BridgeTransport extends AbstractTransport {
this.version = response.payload.version;

if (this.latestVersion) {
this.isOutdated = versionUtils.isNewer(this.latestVersion, this.version);
this.isOutdated = versionUtils.isNewer(
this.latestVersion,
// node bridge version is in format "3.0.0-bundled.24.10.0"
this.version.split('-')[0],
);
}
this.useProtocolMessages = !!response.payload.protocolMessages;

Expand Down

0 comments on commit 7a6ff56

Please sign in to comment.