@naylence/runtime 0.3.5-test.938 → 0.3.5-test.939
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/browser/index.cjs +11 -4
- package/dist/browser/index.mjs +11 -4
- package/dist/cjs/naylence/fame/connector/broadcast-channel-connector.browser.js +7 -1
- package/dist/cjs/naylence/fame/node/admission/default-node-attach-client.js +2 -1
- package/dist/cjs/version.js +2 -2
- package/dist/esm/naylence/fame/connector/broadcast-channel-connector.browser.js +7 -1
- package/dist/esm/naylence/fame/node/admission/default-node-attach-client.js +2 -1
- package/dist/esm/version.js +2 -2
- package/dist/node/index.cjs +11 -4
- package/dist/node/index.mjs +11 -4
- package/dist/node/node.cjs +11 -4
- package/dist/node/node.mjs +11 -4
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/browser/index.cjs
CHANGED
|
@@ -98,12 +98,12 @@ installProcessEnvShim();
|
|
|
98
98
|
// --- END ENV SHIM ---
|
|
99
99
|
|
|
100
100
|
// This file is auto-generated during build - do not edit manually
|
|
101
|
-
// Generated from package.json version: 0.3.5-test.
|
|
101
|
+
// Generated from package.json version: 0.3.5-test.939
|
|
102
102
|
/**
|
|
103
103
|
* The package version, injected at build time.
|
|
104
104
|
* @internal
|
|
105
105
|
*/
|
|
106
|
-
const VERSION = '0.3.5-test.
|
|
106
|
+
const VERSION = '0.3.5-test.939';
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -9993,11 +9993,14 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
9993
9993
|
if (typeof document !== 'undefined') {
|
|
9994
9994
|
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
|
9995
9995
|
this.visibilityChangeListenerRegistered = true;
|
|
9996
|
-
// Log initial state
|
|
9996
|
+
// Log initial state with detailed visibility info
|
|
9997
9997
|
logger$_.debug('broadcast_channel_initial_visibility', {
|
|
9998
9998
|
channel: this.channelName,
|
|
9999
9999
|
connector_id: this.connectorId,
|
|
10000
10000
|
visibility: document.hidden ? 'hidden' : 'visible',
|
|
10001
|
+
document_hidden: document.hidden,
|
|
10002
|
+
visibility_state: document.visibilityState,
|
|
10003
|
+
has_focus: document.hasFocus(),
|
|
10001
10004
|
});
|
|
10002
10005
|
}
|
|
10003
10006
|
}
|
|
@@ -10178,6 +10181,9 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
10178
10181
|
logger$_.debug('broadcast_channel_start_in_hidden_tab', {
|
|
10179
10182
|
channel: this.channelName,
|
|
10180
10183
|
connector_id: this.connectorId,
|
|
10184
|
+
document_hidden: document.hidden,
|
|
10185
|
+
visibility_state: document.visibilityState,
|
|
10186
|
+
has_focus: document.hasFocus(),
|
|
10181
10187
|
timestamp: new Date().toISOString(),
|
|
10182
10188
|
});
|
|
10183
10189
|
// Immediately pause if tab is hidden at start time
|
|
@@ -12655,7 +12661,8 @@ class DefaultNodeAttachClient {
|
|
|
12655
12661
|
async awaitAck(connector) {
|
|
12656
12662
|
const deadline = Date.now() + this.timeoutMs;
|
|
12657
12663
|
while (Date.now() < deadline) {
|
|
12658
|
-
|
|
12664
|
+
// Allow both STARTED and PAUSED states (PAUSED = tab hidden but connection alive)
|
|
12665
|
+
if (connector.state !== core.ConnectorState.STARTED && connector.state !== core.ConnectorState.PAUSED) {
|
|
12659
12666
|
let errorMessage = 'Connector closed while waiting for NodeAttachAck';
|
|
12660
12667
|
if (connector.closeCode !== undefined) {
|
|
12661
12668
|
errorMessage += ` (code=${connector.closeCode}`;
|
package/dist/browser/index.mjs
CHANGED
|
@@ -96,12 +96,12 @@ installProcessEnvShim();
|
|
|
96
96
|
// --- END ENV SHIM ---
|
|
97
97
|
|
|
98
98
|
// This file is auto-generated during build - do not edit manually
|
|
99
|
-
// Generated from package.json version: 0.3.5-test.
|
|
99
|
+
// Generated from package.json version: 0.3.5-test.939
|
|
100
100
|
/**
|
|
101
101
|
* The package version, injected at build time.
|
|
102
102
|
* @internal
|
|
103
103
|
*/
|
|
104
|
-
const VERSION = '0.3.5-test.
|
|
104
|
+
const VERSION = '0.3.5-test.939';
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -9991,11 +9991,14 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
9991
9991
|
if (typeof document !== 'undefined') {
|
|
9992
9992
|
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
|
9993
9993
|
this.visibilityChangeListenerRegistered = true;
|
|
9994
|
-
// Log initial state
|
|
9994
|
+
// Log initial state with detailed visibility info
|
|
9995
9995
|
logger$_.debug('broadcast_channel_initial_visibility', {
|
|
9996
9996
|
channel: this.channelName,
|
|
9997
9997
|
connector_id: this.connectorId,
|
|
9998
9998
|
visibility: document.hidden ? 'hidden' : 'visible',
|
|
9999
|
+
document_hidden: document.hidden,
|
|
10000
|
+
visibility_state: document.visibilityState,
|
|
10001
|
+
has_focus: document.hasFocus(),
|
|
9999
10002
|
});
|
|
10000
10003
|
}
|
|
10001
10004
|
}
|
|
@@ -10176,6 +10179,9 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
10176
10179
|
logger$_.debug('broadcast_channel_start_in_hidden_tab', {
|
|
10177
10180
|
channel: this.channelName,
|
|
10178
10181
|
connector_id: this.connectorId,
|
|
10182
|
+
document_hidden: document.hidden,
|
|
10183
|
+
visibility_state: document.visibilityState,
|
|
10184
|
+
has_focus: document.hasFocus(),
|
|
10179
10185
|
timestamp: new Date().toISOString(),
|
|
10180
10186
|
});
|
|
10181
10187
|
// Immediately pause if tab is hidden at start time
|
|
@@ -12653,7 +12659,8 @@ class DefaultNodeAttachClient {
|
|
|
12653
12659
|
async awaitAck(connector) {
|
|
12654
12660
|
const deadline = Date.now() + this.timeoutMs;
|
|
12655
12661
|
while (Date.now() < deadline) {
|
|
12656
|
-
|
|
12662
|
+
// Allow both STARTED and PAUSED states (PAUSED = tab hidden but connection alive)
|
|
12663
|
+
if (connector.state !== ConnectorState.STARTED && connector.state !== ConnectorState.PAUSED) {
|
|
12657
12664
|
let errorMessage = 'Connector closed while waiting for NodeAttachAck';
|
|
12658
12665
|
if (connector.closeCode !== undefined) {
|
|
12659
12666
|
errorMessage += ` (code=${connector.closeCode}`;
|
|
@@ -181,11 +181,14 @@ class BroadcastChannelConnector extends base_async_connector_js_1.BaseAsyncConne
|
|
|
181
181
|
if (typeof document !== 'undefined') {
|
|
182
182
|
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
|
183
183
|
this.visibilityChangeListenerRegistered = true;
|
|
184
|
-
// Log initial state
|
|
184
|
+
// Log initial state with detailed visibility info
|
|
185
185
|
logger.debug('broadcast_channel_initial_visibility', {
|
|
186
186
|
channel: this.channelName,
|
|
187
187
|
connector_id: this.connectorId,
|
|
188
188
|
visibility: document.hidden ? 'hidden' : 'visible',
|
|
189
|
+
document_hidden: document.hidden,
|
|
190
|
+
visibility_state: document.visibilityState,
|
|
191
|
+
has_focus: document.hasFocus(),
|
|
189
192
|
});
|
|
190
193
|
}
|
|
191
194
|
}
|
|
@@ -366,6 +369,9 @@ class BroadcastChannelConnector extends base_async_connector_js_1.BaseAsyncConne
|
|
|
366
369
|
logger.debug('broadcast_channel_start_in_hidden_tab', {
|
|
367
370
|
channel: this.channelName,
|
|
368
371
|
connector_id: this.connectorId,
|
|
372
|
+
document_hidden: document.hidden,
|
|
373
|
+
visibility_state: document.visibilityState,
|
|
374
|
+
has_focus: document.hasFocus(),
|
|
369
375
|
timestamp: new Date().toISOString(),
|
|
370
376
|
});
|
|
371
377
|
// Immediately pause if tab is hidden at start time
|
|
@@ -202,7 +202,8 @@ class DefaultNodeAttachClient {
|
|
|
202
202
|
async awaitAck(connector) {
|
|
203
203
|
const deadline = Date.now() + this.timeoutMs;
|
|
204
204
|
while (Date.now() < deadline) {
|
|
205
|
-
|
|
205
|
+
// Allow both STARTED and PAUSED states (PAUSED = tab hidden but connection alive)
|
|
206
|
+
if (connector.state !== core_1.ConnectorState.STARTED && connector.state !== core_1.ConnectorState.PAUSED) {
|
|
206
207
|
let errorMessage = 'Connector closed while waiting for NodeAttachAck';
|
|
207
208
|
if (connector.closeCode !== undefined) {
|
|
208
209
|
errorMessage += ` (code=${connector.closeCode}`;
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated during build - do not edit manually
|
|
3
|
-
// Generated from package.json version: 0.3.5-test.
|
|
3
|
+
// Generated from package.json version: 0.3.5-test.939
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.VERSION = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* The package version, injected at build time.
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
|
-
exports.VERSION = '0.3.5-test.
|
|
10
|
+
exports.VERSION = '0.3.5-test.939';
|
|
@@ -178,11 +178,14 @@ export class BroadcastChannelConnector extends BaseAsyncConnector {
|
|
|
178
178
|
if (typeof document !== 'undefined') {
|
|
179
179
|
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
|
180
180
|
this.visibilityChangeListenerRegistered = true;
|
|
181
|
-
// Log initial state
|
|
181
|
+
// Log initial state with detailed visibility info
|
|
182
182
|
logger.debug('broadcast_channel_initial_visibility', {
|
|
183
183
|
channel: this.channelName,
|
|
184
184
|
connector_id: this.connectorId,
|
|
185
185
|
visibility: document.hidden ? 'hidden' : 'visible',
|
|
186
|
+
document_hidden: document.hidden,
|
|
187
|
+
visibility_state: document.visibilityState,
|
|
188
|
+
has_focus: document.hasFocus(),
|
|
186
189
|
});
|
|
187
190
|
}
|
|
188
191
|
}
|
|
@@ -363,6 +366,9 @@ export class BroadcastChannelConnector extends BaseAsyncConnector {
|
|
|
363
366
|
logger.debug('broadcast_channel_start_in_hidden_tab', {
|
|
364
367
|
channel: this.channelName,
|
|
365
368
|
connector_id: this.connectorId,
|
|
369
|
+
document_hidden: document.hidden,
|
|
370
|
+
visibility_state: document.visibilityState,
|
|
371
|
+
has_focus: document.hasFocus(),
|
|
366
372
|
timestamp: new Date().toISOString(),
|
|
367
373
|
});
|
|
368
374
|
// Immediately pause if tab is hidden at start time
|
|
@@ -199,7 +199,8 @@ export class DefaultNodeAttachClient {
|
|
|
199
199
|
async awaitAck(connector) {
|
|
200
200
|
const deadline = Date.now() + this.timeoutMs;
|
|
201
201
|
while (Date.now() < deadline) {
|
|
202
|
-
|
|
202
|
+
// Allow both STARTED and PAUSED states (PAUSED = tab hidden but connection alive)
|
|
203
|
+
if (connector.state !== ConnectorState.STARTED && connector.state !== ConnectorState.PAUSED) {
|
|
203
204
|
let errorMessage = 'Connector closed while waiting for NodeAttachAck';
|
|
204
205
|
if (connector.closeCode !== undefined) {
|
|
205
206
|
errorMessage += ` (code=${connector.closeCode}`;
|
package/dist/esm/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated during build - do not edit manually
|
|
2
|
-
// Generated from package.json version: 0.3.5-test.
|
|
2
|
+
// Generated from package.json version: 0.3.5-test.939
|
|
3
3
|
/**
|
|
4
4
|
* The package version, injected at build time.
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export const VERSION = '0.3.5-test.
|
|
7
|
+
export const VERSION = '0.3.5-test.939';
|
package/dist/node/index.cjs
CHANGED
|
@@ -14,12 +14,12 @@ var fastify = require('fastify');
|
|
|
14
14
|
var websocketPlugin = require('@fastify/websocket');
|
|
15
15
|
|
|
16
16
|
// This file is auto-generated during build - do not edit manually
|
|
17
|
-
// Generated from package.json version: 0.3.5-test.
|
|
17
|
+
// Generated from package.json version: 0.3.5-test.939
|
|
18
18
|
/**
|
|
19
19
|
* The package version, injected at build time.
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
|
-
const VERSION = '0.3.5-test.
|
|
22
|
+
const VERSION = '0.3.5-test.939';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -9909,11 +9909,14 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
9909
9909
|
if (typeof document !== 'undefined') {
|
|
9910
9910
|
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
|
9911
9911
|
this.visibilityChangeListenerRegistered = true;
|
|
9912
|
-
// Log initial state
|
|
9912
|
+
// Log initial state with detailed visibility info
|
|
9913
9913
|
logger$_.debug('broadcast_channel_initial_visibility', {
|
|
9914
9914
|
channel: this.channelName,
|
|
9915
9915
|
connector_id: this.connectorId,
|
|
9916
9916
|
visibility: document.hidden ? 'hidden' : 'visible',
|
|
9917
|
+
document_hidden: document.hidden,
|
|
9918
|
+
visibility_state: document.visibilityState,
|
|
9919
|
+
has_focus: document.hasFocus(),
|
|
9917
9920
|
});
|
|
9918
9921
|
}
|
|
9919
9922
|
}
|
|
@@ -10094,6 +10097,9 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
10094
10097
|
logger$_.debug('broadcast_channel_start_in_hidden_tab', {
|
|
10095
10098
|
channel: this.channelName,
|
|
10096
10099
|
connector_id: this.connectorId,
|
|
10100
|
+
document_hidden: document.hidden,
|
|
10101
|
+
visibility_state: document.visibilityState,
|
|
10102
|
+
has_focus: document.hasFocus(),
|
|
10097
10103
|
timestamp: new Date().toISOString(),
|
|
10098
10104
|
});
|
|
10099
10105
|
// Immediately pause if tab is hidden at start time
|
|
@@ -12571,7 +12577,8 @@ class DefaultNodeAttachClient {
|
|
|
12571
12577
|
async awaitAck(connector) {
|
|
12572
12578
|
const deadline = Date.now() + this.timeoutMs;
|
|
12573
12579
|
while (Date.now() < deadline) {
|
|
12574
|
-
|
|
12580
|
+
// Allow both STARTED and PAUSED states (PAUSED = tab hidden but connection alive)
|
|
12581
|
+
if (connector.state !== core.ConnectorState.STARTED && connector.state !== core.ConnectorState.PAUSED) {
|
|
12575
12582
|
let errorMessage = 'Connector closed while waiting for NodeAttachAck';
|
|
12576
12583
|
if (connector.closeCode !== undefined) {
|
|
12577
12584
|
errorMessage += ` (code=${connector.closeCode}`;
|
package/dist/node/index.mjs
CHANGED
|
@@ -13,12 +13,12 @@ import fastify from 'fastify';
|
|
|
13
13
|
import websocketPlugin from '@fastify/websocket';
|
|
14
14
|
|
|
15
15
|
// This file is auto-generated during build - do not edit manually
|
|
16
|
-
// Generated from package.json version: 0.3.5-test.
|
|
16
|
+
// Generated from package.json version: 0.3.5-test.939
|
|
17
17
|
/**
|
|
18
18
|
* The package version, injected at build time.
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
|
-
const VERSION = '0.3.5-test.
|
|
21
|
+
const VERSION = '0.3.5-test.939';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -9908,11 +9908,14 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
9908
9908
|
if (typeof document !== 'undefined') {
|
|
9909
9909
|
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
|
9910
9910
|
this.visibilityChangeListenerRegistered = true;
|
|
9911
|
-
// Log initial state
|
|
9911
|
+
// Log initial state with detailed visibility info
|
|
9912
9912
|
logger$_.debug('broadcast_channel_initial_visibility', {
|
|
9913
9913
|
channel: this.channelName,
|
|
9914
9914
|
connector_id: this.connectorId,
|
|
9915
9915
|
visibility: document.hidden ? 'hidden' : 'visible',
|
|
9916
|
+
document_hidden: document.hidden,
|
|
9917
|
+
visibility_state: document.visibilityState,
|
|
9918
|
+
has_focus: document.hasFocus(),
|
|
9916
9919
|
});
|
|
9917
9920
|
}
|
|
9918
9921
|
}
|
|
@@ -10093,6 +10096,9 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
10093
10096
|
logger$_.debug('broadcast_channel_start_in_hidden_tab', {
|
|
10094
10097
|
channel: this.channelName,
|
|
10095
10098
|
connector_id: this.connectorId,
|
|
10099
|
+
document_hidden: document.hidden,
|
|
10100
|
+
visibility_state: document.visibilityState,
|
|
10101
|
+
has_focus: document.hasFocus(),
|
|
10096
10102
|
timestamp: new Date().toISOString(),
|
|
10097
10103
|
});
|
|
10098
10104
|
// Immediately pause if tab is hidden at start time
|
|
@@ -12570,7 +12576,8 @@ class DefaultNodeAttachClient {
|
|
|
12570
12576
|
async awaitAck(connector) {
|
|
12571
12577
|
const deadline = Date.now() + this.timeoutMs;
|
|
12572
12578
|
while (Date.now() < deadline) {
|
|
12573
|
-
|
|
12579
|
+
// Allow both STARTED and PAUSED states (PAUSED = tab hidden but connection alive)
|
|
12580
|
+
if (connector.state !== ConnectorState.STARTED && connector.state !== ConnectorState.PAUSED) {
|
|
12574
12581
|
let errorMessage = 'Connector closed while waiting for NodeAttachAck';
|
|
12575
12582
|
if (connector.closeCode !== undefined) {
|
|
12576
12583
|
errorMessage += ` (code=${connector.closeCode}`;
|
package/dist/node/node.cjs
CHANGED
|
@@ -5478,12 +5478,12 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
|
|
|
5478
5478
|
}
|
|
5479
5479
|
|
|
5480
5480
|
// This file is auto-generated during build - do not edit manually
|
|
5481
|
-
// Generated from package.json version: 0.3.5-test.
|
|
5481
|
+
// Generated from package.json version: 0.3.5-test.939
|
|
5482
5482
|
/**
|
|
5483
5483
|
* The package version, injected at build time.
|
|
5484
5484
|
* @internal
|
|
5485
5485
|
*/
|
|
5486
|
-
const VERSION = '0.3.5-test.
|
|
5486
|
+
const VERSION = '0.3.5-test.939';
|
|
5487
5487
|
|
|
5488
5488
|
/**
|
|
5489
5489
|
* Fame errors module - Fame protocol specific error classes
|
|
@@ -11646,11 +11646,14 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
11646
11646
|
if (typeof document !== 'undefined') {
|
|
11647
11647
|
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
|
11648
11648
|
this.visibilityChangeListenerRegistered = true;
|
|
11649
|
-
// Log initial state
|
|
11649
|
+
// Log initial state with detailed visibility info
|
|
11650
11650
|
logger$10.debug('broadcast_channel_initial_visibility', {
|
|
11651
11651
|
channel: this.channelName,
|
|
11652
11652
|
connector_id: this.connectorId,
|
|
11653
11653
|
visibility: document.hidden ? 'hidden' : 'visible',
|
|
11654
|
+
document_hidden: document.hidden,
|
|
11655
|
+
visibility_state: document.visibilityState,
|
|
11656
|
+
has_focus: document.hasFocus(),
|
|
11654
11657
|
});
|
|
11655
11658
|
}
|
|
11656
11659
|
}
|
|
@@ -11831,6 +11834,9 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
11831
11834
|
logger$10.debug('broadcast_channel_start_in_hidden_tab', {
|
|
11832
11835
|
channel: this.channelName,
|
|
11833
11836
|
connector_id: this.connectorId,
|
|
11837
|
+
document_hidden: document.hidden,
|
|
11838
|
+
visibility_state: document.visibilityState,
|
|
11839
|
+
has_focus: document.hasFocus(),
|
|
11834
11840
|
timestamp: new Date().toISOString(),
|
|
11835
11841
|
});
|
|
11836
11842
|
// Immediately pause if tab is hidden at start time
|
|
@@ -14263,7 +14269,8 @@ class DefaultNodeAttachClient {
|
|
|
14263
14269
|
async awaitAck(connector) {
|
|
14264
14270
|
const deadline = Date.now() + this.timeoutMs;
|
|
14265
14271
|
while (Date.now() < deadline) {
|
|
14266
|
-
|
|
14272
|
+
// Allow both STARTED and PAUSED states (PAUSED = tab hidden but connection alive)
|
|
14273
|
+
if (connector.state !== core.ConnectorState.STARTED && connector.state !== core.ConnectorState.PAUSED) {
|
|
14267
14274
|
let errorMessage = 'Connector closed while waiting for NodeAttachAck';
|
|
14268
14275
|
if (connector.closeCode !== undefined) {
|
|
14269
14276
|
errorMessage += ` (code=${connector.closeCode}`;
|
package/dist/node/node.mjs
CHANGED
|
@@ -5477,12 +5477,12 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
|
|
|
5477
5477
|
}
|
|
5478
5478
|
|
|
5479
5479
|
// This file is auto-generated during build - do not edit manually
|
|
5480
|
-
// Generated from package.json version: 0.3.5-test.
|
|
5480
|
+
// Generated from package.json version: 0.3.5-test.939
|
|
5481
5481
|
/**
|
|
5482
5482
|
* The package version, injected at build time.
|
|
5483
5483
|
* @internal
|
|
5484
5484
|
*/
|
|
5485
|
-
const VERSION = '0.3.5-test.
|
|
5485
|
+
const VERSION = '0.3.5-test.939';
|
|
5486
5486
|
|
|
5487
5487
|
/**
|
|
5488
5488
|
* Fame errors module - Fame protocol specific error classes
|
|
@@ -11645,11 +11645,14 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
11645
11645
|
if (typeof document !== 'undefined') {
|
|
11646
11646
|
document.addEventListener('visibilitychange', this.visibilityChangeHandler);
|
|
11647
11647
|
this.visibilityChangeListenerRegistered = true;
|
|
11648
|
-
// Log initial state
|
|
11648
|
+
// Log initial state with detailed visibility info
|
|
11649
11649
|
logger$10.debug('broadcast_channel_initial_visibility', {
|
|
11650
11650
|
channel: this.channelName,
|
|
11651
11651
|
connector_id: this.connectorId,
|
|
11652
11652
|
visibility: document.hidden ? 'hidden' : 'visible',
|
|
11653
|
+
document_hidden: document.hidden,
|
|
11654
|
+
visibility_state: document.visibilityState,
|
|
11655
|
+
has_focus: document.hasFocus(),
|
|
11653
11656
|
});
|
|
11654
11657
|
}
|
|
11655
11658
|
}
|
|
@@ -11830,6 +11833,9 @@ let BroadcastChannelConnector$2 = class BroadcastChannelConnector extends BaseAs
|
|
|
11830
11833
|
logger$10.debug('broadcast_channel_start_in_hidden_tab', {
|
|
11831
11834
|
channel: this.channelName,
|
|
11832
11835
|
connector_id: this.connectorId,
|
|
11836
|
+
document_hidden: document.hidden,
|
|
11837
|
+
visibility_state: document.visibilityState,
|
|
11838
|
+
has_focus: document.hasFocus(),
|
|
11833
11839
|
timestamp: new Date().toISOString(),
|
|
11834
11840
|
});
|
|
11835
11841
|
// Immediately pause if tab is hidden at start time
|
|
@@ -14262,7 +14268,8 @@ class DefaultNodeAttachClient {
|
|
|
14262
14268
|
async awaitAck(connector) {
|
|
14263
14269
|
const deadline = Date.now() + this.timeoutMs;
|
|
14264
14270
|
while (Date.now() < deadline) {
|
|
14265
|
-
|
|
14271
|
+
// Allow both STARTED and PAUSED states (PAUSED = tab hidden but connection alive)
|
|
14272
|
+
if (connector.state !== ConnectorState.STARTED && connector.state !== ConnectorState.PAUSED) {
|
|
14266
14273
|
let errorMessage = 'Connector closed while waiting for NodeAttachAck';
|
|
14267
14274
|
if (connector.closeCode !== undefined) {
|
|
14268
14275
|
errorMessage += ` (code=${connector.closeCode}`;
|
package/dist/types/version.d.ts
CHANGED