@naylence/runtime 0.3.5-test.951 → 0.3.5-test.952
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 +7 -5
- package/dist/browser/index.mjs +7 -5
- package/dist/cjs/naylence/fame/connector/broadcast-channel-listener.js +5 -3
- package/dist/cjs/version.js +2 -2
- package/dist/esm/naylence/fame/connector/broadcast-channel-listener.js +5 -3
- package/dist/esm/version.js +2 -2
- package/dist/node/index.cjs +7 -5
- package/dist/node/index.mjs +7 -5
- package/dist/node/node.cjs +7 -5
- package/dist/node/node.mjs +7 -5
- 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.952
|
|
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.952';
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -30187,8 +30187,10 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
30187
30187
|
// Try to unwrap as transport frame
|
|
30188
30188
|
const frame = unwrapTransportFrame(record.payload);
|
|
30189
30189
|
if (frame) {
|
|
30190
|
-
// Apply listener's filtering policy:
|
|
30191
|
-
|
|
30190
|
+
// Apply listener's filtering policy: accept frames addressed to us OR with wildcard destination
|
|
30191
|
+
// Wildcard is needed because downstream nodes don't know the sentinel's ID during initial attach
|
|
30192
|
+
const isAddressedToUs = frame.dst === this._routingNode.id || frame.dst === '*';
|
|
30193
|
+
if (isAddressedToUs) {
|
|
30192
30194
|
envelopePayload = frame.payload;
|
|
30193
30195
|
logger$o.debug('broadcast_channel_listener_unwrapped_transport_frame', {
|
|
30194
30196
|
sender_id: senderId,
|
|
@@ -30197,7 +30199,7 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
30197
30199
|
});
|
|
30198
30200
|
}
|
|
30199
30201
|
else {
|
|
30200
|
-
// Frame
|
|
30202
|
+
// Frame addressed to a different node, ignore it
|
|
30201
30203
|
logger$o.debug('broadcast_channel_listener_ignored_frame_wrong_destination', {
|
|
30202
30204
|
sender_id: senderId,
|
|
30203
30205
|
dst: frame.dst,
|
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.952
|
|
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.952';
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -30185,8 +30185,10 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
30185
30185
|
// Try to unwrap as transport frame
|
|
30186
30186
|
const frame = unwrapTransportFrame(record.payload);
|
|
30187
30187
|
if (frame) {
|
|
30188
|
-
// Apply listener's filtering policy:
|
|
30189
|
-
|
|
30188
|
+
// Apply listener's filtering policy: accept frames addressed to us OR with wildcard destination
|
|
30189
|
+
// Wildcard is needed because downstream nodes don't know the sentinel's ID during initial attach
|
|
30190
|
+
const isAddressedToUs = frame.dst === this._routingNode.id || frame.dst === '*';
|
|
30191
|
+
if (isAddressedToUs) {
|
|
30190
30192
|
envelopePayload = frame.payload;
|
|
30191
30193
|
logger$o.debug('broadcast_channel_listener_unwrapped_transport_frame', {
|
|
30192
30194
|
sender_id: senderId,
|
|
@@ -30195,7 +30197,7 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
30195
30197
|
});
|
|
30196
30198
|
}
|
|
30197
30199
|
else {
|
|
30198
|
-
// Frame
|
|
30200
|
+
// Frame addressed to a different node, ignore it
|
|
30199
30201
|
logger$o.debug('broadcast_channel_listener_ignored_frame_wrong_destination', {
|
|
30200
30202
|
sender_id: senderId,
|
|
30201
30203
|
dst: frame.dst,
|
|
@@ -220,8 +220,10 @@ class BroadcastChannelListener extends transport_listener_js_1.TransportListener
|
|
|
220
220
|
// Try to unwrap as transport frame
|
|
221
221
|
const frame = (0, transport_frame_js_1.unwrapTransportFrame)(record.payload);
|
|
222
222
|
if (frame) {
|
|
223
|
-
// Apply listener's filtering policy:
|
|
224
|
-
|
|
223
|
+
// Apply listener's filtering policy: accept frames addressed to us OR with wildcard destination
|
|
224
|
+
// Wildcard is needed because downstream nodes don't know the sentinel's ID during initial attach
|
|
225
|
+
const isAddressedToUs = frame.dst === this._routingNode.id || frame.dst === '*';
|
|
226
|
+
if (isAddressedToUs) {
|
|
225
227
|
envelopePayload = frame.payload;
|
|
226
228
|
logger.debug('broadcast_channel_listener_unwrapped_transport_frame', {
|
|
227
229
|
sender_id: senderId,
|
|
@@ -230,7 +232,7 @@ class BroadcastChannelListener extends transport_listener_js_1.TransportListener
|
|
|
230
232
|
});
|
|
231
233
|
}
|
|
232
234
|
else {
|
|
233
|
-
// Frame
|
|
235
|
+
// Frame addressed to a different node, ignore it
|
|
234
236
|
logger.debug('broadcast_channel_listener_ignored_frame_wrong_destination', {
|
|
235
237
|
sender_id: senderId,
|
|
236
238
|
dst: frame.dst,
|
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.952
|
|
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.952';
|
|
@@ -216,8 +216,10 @@ export class BroadcastChannelListener extends TransportListener {
|
|
|
216
216
|
// Try to unwrap as transport frame
|
|
217
217
|
const frame = unwrapTransportFrame(record.payload);
|
|
218
218
|
if (frame) {
|
|
219
|
-
// Apply listener's filtering policy:
|
|
220
|
-
|
|
219
|
+
// Apply listener's filtering policy: accept frames addressed to us OR with wildcard destination
|
|
220
|
+
// Wildcard is needed because downstream nodes don't know the sentinel's ID during initial attach
|
|
221
|
+
const isAddressedToUs = frame.dst === this._routingNode.id || frame.dst === '*';
|
|
222
|
+
if (isAddressedToUs) {
|
|
221
223
|
envelopePayload = frame.payload;
|
|
222
224
|
logger.debug('broadcast_channel_listener_unwrapped_transport_frame', {
|
|
223
225
|
sender_id: senderId,
|
|
@@ -226,7 +228,7 @@ export class BroadcastChannelListener extends TransportListener {
|
|
|
226
228
|
});
|
|
227
229
|
}
|
|
228
230
|
else {
|
|
229
|
-
// Frame
|
|
231
|
+
// Frame addressed to a different node, ignore it
|
|
230
232
|
logger.debug('broadcast_channel_listener_ignored_frame_wrong_destination', {
|
|
231
233
|
sender_id: senderId,
|
|
232
234
|
dst: frame.dst,
|
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.952
|
|
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.952';
|
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.952
|
|
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.952';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -36368,8 +36368,10 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
36368
36368
|
// Try to unwrap as transport frame
|
|
36369
36369
|
const frame = unwrapTransportFrame(record.payload);
|
|
36370
36370
|
if (frame) {
|
|
36371
|
-
// Apply listener's filtering policy:
|
|
36372
|
-
|
|
36371
|
+
// Apply listener's filtering policy: accept frames addressed to us OR with wildcard destination
|
|
36372
|
+
// Wildcard is needed because downstream nodes don't know the sentinel's ID during initial attach
|
|
36373
|
+
const isAddressedToUs = frame.dst === this._routingNode.id || frame.dst === '*';
|
|
36374
|
+
if (isAddressedToUs) {
|
|
36373
36375
|
envelopePayload = frame.payload;
|
|
36374
36376
|
logger$a.debug('broadcast_channel_listener_unwrapped_transport_frame', {
|
|
36375
36377
|
sender_id: senderId,
|
|
@@ -36378,7 +36380,7 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
36378
36380
|
});
|
|
36379
36381
|
}
|
|
36380
36382
|
else {
|
|
36381
|
-
// Frame
|
|
36383
|
+
// Frame addressed to a different node, ignore it
|
|
36382
36384
|
logger$a.debug('broadcast_channel_listener_ignored_frame_wrong_destination', {
|
|
36383
36385
|
sender_id: senderId,
|
|
36384
36386
|
dst: frame.dst,
|
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.952
|
|
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.952';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -36367,8 +36367,10 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
36367
36367
|
// Try to unwrap as transport frame
|
|
36368
36368
|
const frame = unwrapTransportFrame(record.payload);
|
|
36369
36369
|
if (frame) {
|
|
36370
|
-
// Apply listener's filtering policy:
|
|
36371
|
-
|
|
36370
|
+
// Apply listener's filtering policy: accept frames addressed to us OR with wildcard destination
|
|
36371
|
+
// Wildcard is needed because downstream nodes don't know the sentinel's ID during initial attach
|
|
36372
|
+
const isAddressedToUs = frame.dst === this._routingNode.id || frame.dst === '*';
|
|
36373
|
+
if (isAddressedToUs) {
|
|
36372
36374
|
envelopePayload = frame.payload;
|
|
36373
36375
|
logger$a.debug('broadcast_channel_listener_unwrapped_transport_frame', {
|
|
36374
36376
|
sender_id: senderId,
|
|
@@ -36377,7 +36379,7 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
36377
36379
|
});
|
|
36378
36380
|
}
|
|
36379
36381
|
else {
|
|
36380
|
-
// Frame
|
|
36382
|
+
// Frame addressed to a different node, ignore it
|
|
36381
36383
|
logger$a.debug('broadcast_channel_listener_ignored_frame_wrong_destination', {
|
|
36382
36384
|
sender_id: senderId,
|
|
36383
36385
|
dst: frame.dst,
|
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.952
|
|
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.952';
|
|
5487
5487
|
|
|
5488
5488
|
/**
|
|
5489
5489
|
* Fame errors module - Fame protocol specific error classes
|
|
@@ -32944,8 +32944,10 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
32944
32944
|
// Try to unwrap as transport frame
|
|
32945
32945
|
const frame = unwrapTransportFrame(record.payload);
|
|
32946
32946
|
if (frame) {
|
|
32947
|
-
// Apply listener's filtering policy:
|
|
32948
|
-
|
|
32947
|
+
// Apply listener's filtering policy: accept frames addressed to us OR with wildcard destination
|
|
32948
|
+
// Wildcard is needed because downstream nodes don't know the sentinel's ID during initial attach
|
|
32949
|
+
const isAddressedToUs = frame.dst === this._routingNode.id || frame.dst === '*';
|
|
32950
|
+
if (isAddressedToUs) {
|
|
32949
32951
|
envelopePayload = frame.payload;
|
|
32950
32952
|
logger$n.debug('broadcast_channel_listener_unwrapped_transport_frame', {
|
|
32951
32953
|
sender_id: senderId,
|
|
@@ -32954,7 +32956,7 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
32954
32956
|
});
|
|
32955
32957
|
}
|
|
32956
32958
|
else {
|
|
32957
|
-
// Frame
|
|
32959
|
+
// Frame addressed to a different node, ignore it
|
|
32958
32960
|
logger$n.debug('broadcast_channel_listener_ignored_frame_wrong_destination', {
|
|
32959
32961
|
sender_id: senderId,
|
|
32960
32962
|
dst: frame.dst,
|
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.952
|
|
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.952';
|
|
5486
5486
|
|
|
5487
5487
|
/**
|
|
5488
5488
|
* Fame errors module - Fame protocol specific error classes
|
|
@@ -32943,8 +32943,10 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
32943
32943
|
// Try to unwrap as transport frame
|
|
32944
32944
|
const frame = unwrapTransportFrame(record.payload);
|
|
32945
32945
|
if (frame) {
|
|
32946
|
-
// Apply listener's filtering policy:
|
|
32947
|
-
|
|
32946
|
+
// Apply listener's filtering policy: accept frames addressed to us OR with wildcard destination
|
|
32947
|
+
// Wildcard is needed because downstream nodes don't know the sentinel's ID during initial attach
|
|
32948
|
+
const isAddressedToUs = frame.dst === this._routingNode.id || frame.dst === '*';
|
|
32949
|
+
if (isAddressedToUs) {
|
|
32948
32950
|
envelopePayload = frame.payload;
|
|
32949
32951
|
logger$n.debug('broadcast_channel_listener_unwrapped_transport_frame', {
|
|
32950
32952
|
sender_id: senderId,
|
|
@@ -32953,7 +32955,7 @@ class BroadcastChannelListener extends TransportListener {
|
|
|
32953
32955
|
});
|
|
32954
32956
|
}
|
|
32955
32957
|
else {
|
|
32956
|
-
// Frame
|
|
32958
|
+
// Frame addressed to a different node, ignore it
|
|
32957
32959
|
logger$n.debug('broadcast_channel_listener_ignored_frame_wrong_destination', {
|
|
32958
32960
|
sender_id: senderId,
|
|
32959
32961
|
dst: frame.dst,
|
package/dist/types/version.d.ts
CHANGED