@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.
@@ -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.951
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.951';
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: dst must match, src can be anything
30191
- if (frame.dst === this._routingNode.id) {
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 not addressed to us, ignore it
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,
@@ -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.951
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.951';
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: dst must match, src can be anything
30189
- if (frame.dst === this._routingNode.id) {
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 not addressed to us, ignore it
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: dst must match, src can be anything
224
- if (frame.dst === this._routingNode.id) {
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 not addressed to us, ignore it
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,
@@ -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.951
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.951';
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: dst must match, src can be anything
220
- if (frame.dst === this._routingNode.id) {
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 not addressed to us, ignore it
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,
@@ -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.951
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.951';
7
+ export const VERSION = '0.3.5-test.952';
@@ -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.951
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.951';
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: dst must match, src can be anything
36372
- if (frame.dst === this._routingNode.id) {
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 not addressed to us, ignore it
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,
@@ -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.951
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.951';
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: dst must match, src can be anything
36371
- if (frame.dst === this._routingNode.id) {
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 not addressed to us, ignore it
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,
@@ -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.951
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.951';
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: dst must match, src can be anything
32948
- if (frame.dst === this._routingNode.id) {
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 not addressed to us, ignore it
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,
@@ -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.951
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.951';
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: dst must match, src can be anything
32947
- if (frame.dst === this._routingNode.id) {
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 not addressed to us, ignore it
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,
@@ -2,4 +2,4 @@
2
2
  * The package version, injected at build time.
3
3
  * @internal
4
4
  */
5
- export declare const VERSION = "0.3.5-test.951";
5
+ export declare const VERSION = "0.3.5-test.952";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naylence/runtime",
3
- "version": "0.3.5-test.951",
3
+ "version": "0.3.5-test.952",
4
4
  "type": "module",
5
5
  "description": "Naylence Runtime - Complete TypeScript runtime",
6
6
  "author": "Naylence Dev <naylencedev@gmail.com>",