@staff0rd/assist 0.768.0 → 0.768.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/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.768.0",
9
+ version: "0.768.2",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -46189,7 +46189,10 @@ function relayLinkMessage(state, msg) {
46189
46189
  // src/commands/sessions/daemon/links/onLinkLine.ts
46190
46190
  function onHello(ctx, msg) {
46191
46191
  const verdict = acceptPeerHello(ctx.spec.name, msg);
46192
+ const previousVersion = ctx.peer?.version;
46192
46193
  if (verdict.peer) ctx.peer = verdict.peer;
46194
+ if (verdict.peer && verdict.peer.version !== previousVersion)
46195
+ ctx.deps.onStateChanged();
46193
46196
  if (verdict.kind === "reject") {
46194
46197
  disconnectLink(ctx);
46195
46198
  return failLink(ctx, verdict.reason);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.768.0",
3
+ "version": "0.768.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {