@xmoxmo/bncr 0.4.5 → 0.4.6

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
@@ -840,6 +840,12 @@ var plugin = {
840
840
  owner = adopted.owner;
841
841
  previousOwner = adopted.previousOwner;
842
842
  gatewayRuntime.currentBridge = bridge;
843
+ if (rebuilt) {
844
+ gatewayRuntime.serviceRegistered = false;
845
+ gatewayRuntime.channelRegistered = false;
846
+ gatewayRuntime.serviceOwnerApiInstanceId = void 0;
847
+ gatewayRuntime.channelOwnerApiInstanceId = void 0;
848
+ }
843
849
  } else {
844
850
  runtime2 = loadBncrRuntimeSync();
845
851
  bridge = gatewayRuntime.currentBridge || getExistingBridgeSingleton();
package/index.ts CHANGED
@@ -101,6 +101,12 @@ const plugin = {
101
101
  owner = adopted.owner;
102
102
  previousOwner = adopted.previousOwner;
103
103
  gatewayRuntime.currentBridge = bridge;
104
+ if (rebuilt) {
105
+ gatewayRuntime.serviceRegistered = false;
106
+ gatewayRuntime.channelRegistered = false;
107
+ gatewayRuntime.serviceOwnerApiInstanceId = undefined;
108
+ gatewayRuntime.channelOwnerApiInstanceId = undefined;
109
+ }
104
110
  } else {
105
111
  runtime = loadBncrRuntimeSync();
106
112
  bridge = gatewayRuntime.currentBridge || getExistingBridgeSingleton();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmoxmo/bncr",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",