@naylence/runtime 0.3.20 → 0.3.21

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.
@@ -515,12 +515,12 @@ async function ensureRuntimeFactoriesRegistered(registry = factory.Registry) {
515
515
  }
516
516
 
517
517
  // This file is auto-generated during build - do not edit manually
518
- // Generated from package.json version: 0.3.20
518
+ // Generated from package.json version: 0.3.21
519
519
  /**
520
520
  * The package version, injected at build time.
521
521
  * @internal
522
522
  */
523
- const VERSION = '0.3.20';
523
+ const VERSION = '0.3.21';
524
524
 
525
525
  let initialized = false;
526
526
  const runtimePlugin = {
@@ -13684,6 +13684,11 @@ class TransportListenerFactory extends factory.AbstractResourceFactory {
13684
13684
  static async createTransportListeners(configs, eventListeners, options = {}) {
13685
13685
  const listeners = [];
13686
13686
  for (const config of configs) {
13687
+ // Skip disabled listeners (enabled defaults to true if not specified)
13688
+ const configRecord = config;
13689
+ if (configRecord && configRecord.enabled === false) {
13690
+ continue;
13691
+ }
13687
13692
  const listener = await this.createTransportListener(config ?? undefined, eventListeners, options);
13688
13693
  if (listener) {
13689
13694
  listeners.push(listener);
@@ -513,12 +513,12 @@ async function ensureRuntimeFactoriesRegistered(registry = Registry) {
513
513
  }
514
514
 
515
515
  // This file is auto-generated during build - do not edit manually
516
- // Generated from package.json version: 0.3.20
516
+ // Generated from package.json version: 0.3.21
517
517
  /**
518
518
  * The package version, injected at build time.
519
519
  * @internal
520
520
  */
521
- const VERSION = '0.3.20';
521
+ const VERSION = '0.3.21';
522
522
 
523
523
  let initialized = false;
524
524
  const runtimePlugin = {
@@ -13682,6 +13682,11 @@ class TransportListenerFactory extends AbstractResourceFactory {
13682
13682
  static async createTransportListeners(configs, eventListeners, options = {}) {
13683
13683
  const listeners = [];
13684
13684
  for (const config of configs) {
13685
+ // Skip disabled listeners (enabled defaults to true if not specified)
13686
+ const configRecord = config;
13687
+ if (configRecord && configRecord.enabled === false) {
13688
+ continue;
13689
+ }
13685
13690
  const listener = await this.createTransportListener(config ?? undefined, eventListeners, options);
13686
13691
  if (listener) {
13687
13692
  listeners.push(listener);
@@ -25,6 +25,11 @@ class TransportListenerFactory extends factory_1.AbstractResourceFactory {
25
25
  static async createTransportListeners(configs, eventListeners, options = {}) {
26
26
  const listeners = [];
27
27
  for (const config of configs) {
28
+ // Skip disabled listeners (enabled defaults to true if not specified)
29
+ const configRecord = config;
30
+ if (configRecord && configRecord.enabled === false) {
31
+ continue;
32
+ }
28
33
  const listener = await this.createTransportListener(config ?? undefined, eventListeners, options);
29
34
  if (listener) {
30
35
  listeners.push(listener);
@@ -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.20
3
+ // Generated from package.json version: 0.3.21
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.20';
10
+ exports.VERSION = '0.3.21';
@@ -22,6 +22,11 @@ export class TransportListenerFactory extends AbstractResourceFactory {
22
22
  static async createTransportListeners(configs, eventListeners, options = {}) {
23
23
  const listeners = [];
24
24
  for (const config of configs) {
25
+ // Skip disabled listeners (enabled defaults to true if not specified)
26
+ const configRecord = config;
27
+ if (configRecord && configRecord.enabled === false) {
28
+ continue;
29
+ }
25
30
  const listener = await this.createTransportListener(config ?? undefined, eventListeners, options);
26
31
  if (listener) {
27
32
  listeners.push(listener);
@@ -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.20
2
+ // Generated from package.json version: 0.3.21
3
3
  /**
4
4
  * The package version, injected at build time.
5
5
  * @internal
6
6
  */
7
- export const VERSION = '0.3.20';
7
+ export const VERSION = '0.3.21';
@@ -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.20
17
+ // Generated from package.json version: 0.3.21
18
18
  /**
19
19
  * The package version, injected at build time.
20
20
  * @internal
21
21
  */
22
- const VERSION = '0.3.20';
22
+ const VERSION = '0.3.21';
23
23
 
24
24
  /**
25
25
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -13156,6 +13156,11 @@ class TransportListenerFactory extends factory.AbstractResourceFactory {
13156
13156
  static async createTransportListeners(configs, eventListeners, options = {}) {
13157
13157
  const listeners = [];
13158
13158
  for (const config of configs) {
13159
+ // Skip disabled listeners (enabled defaults to true if not specified)
13160
+ const configRecord = config;
13161
+ if (configRecord && configRecord.enabled === false) {
13162
+ continue;
13163
+ }
13159
13164
  const listener = await this.createTransportListener(config ?? undefined, eventListeners, options);
13160
13165
  if (listener) {
13161
13166
  listeners.push(listener);
@@ -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.20
16
+ // Generated from package.json version: 0.3.21
17
17
  /**
18
18
  * The package version, injected at build time.
19
19
  * @internal
20
20
  */
21
- const VERSION = '0.3.20';
21
+ const VERSION = '0.3.21';
22
22
 
23
23
  /**
24
24
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -13155,6 +13155,11 @@ class TransportListenerFactory extends AbstractResourceFactory {
13155
13155
  static async createTransportListeners(configs, eventListeners, options = {}) {
13156
13156
  const listeners = [];
13157
13157
  for (const config of configs) {
13158
+ // Skip disabled listeners (enabled defaults to true if not specified)
13159
+ const configRecord = config;
13160
+ if (configRecord && configRecord.enabled === false) {
13161
+ continue;
13162
+ }
13158
13163
  const listener = await this.createTransportListener(config ?? undefined, eventListeners, options);
13159
13164
  if (listener) {
13160
13165
  listeners.push(listener);
@@ -4426,12 +4426,12 @@ async function ensureRuntimeFactoriesRegistered(registry = factory.Registry) {
4426
4426
  }
4427
4427
 
4428
4428
  // This file is auto-generated during build - do not edit manually
4429
- // Generated from package.json version: 0.3.20
4429
+ // Generated from package.json version: 0.3.21
4430
4430
  /**
4431
4431
  * The package version, injected at build time.
4432
4432
  * @internal
4433
4433
  */
4434
- const VERSION = '0.3.20';
4434
+ const VERSION = '0.3.21';
4435
4435
 
4436
4436
  let initialized = false;
4437
4437
  const runtimePlugin = {
@@ -15291,6 +15291,11 @@ class TransportListenerFactory extends factory.AbstractResourceFactory {
15291
15291
  static async createTransportListeners(configs, eventListeners, options = {}) {
15292
15292
  const listeners = [];
15293
15293
  for (const config of configs) {
15294
+ // Skip disabled listeners (enabled defaults to true if not specified)
15295
+ const configRecord = config;
15296
+ if (configRecord && configRecord.enabled === false) {
15297
+ continue;
15298
+ }
15294
15299
  const listener = await this.createTransportListener(config ?? undefined, eventListeners, options);
15295
15300
  if (listener) {
15296
15301
  listeners.push(listener);
@@ -4425,12 +4425,12 @@ async function ensureRuntimeFactoriesRegistered(registry = Registry) {
4425
4425
  }
4426
4426
 
4427
4427
  // This file is auto-generated during build - do not edit manually
4428
- // Generated from package.json version: 0.3.20
4428
+ // Generated from package.json version: 0.3.21
4429
4429
  /**
4430
4430
  * The package version, injected at build time.
4431
4431
  * @internal
4432
4432
  */
4433
- const VERSION = '0.3.20';
4433
+ const VERSION = '0.3.21';
4434
4434
 
4435
4435
  let initialized = false;
4436
4436
  const runtimePlugin = {
@@ -15290,6 +15290,11 @@ class TransportListenerFactory extends AbstractResourceFactory {
15290
15290
  static async createTransportListeners(configs, eventListeners, options = {}) {
15291
15291
  const listeners = [];
15292
15292
  for (const config of configs) {
15293
+ // Skip disabled listeners (enabled defaults to true if not specified)
15294
+ const configRecord = config;
15295
+ if (configRecord && configRecord.enabled === false) {
15296
+ continue;
15297
+ }
15293
15298
  const listener = await this.createTransportListener(config ?? undefined, eventListeners, options);
15294
15299
  if (listener) {
15295
15300
  listeners.push(listener);
@@ -4,5 +4,10 @@ export interface TransportListenerConfig extends ResourceConfig {
4
4
  host?: string;
5
5
  port?: number;
6
6
  authorizer?: Record<string, unknown> | null;
7
+ /**
8
+ * Whether this listener is enabled. Defaults to true.
9
+ * Disabled listeners are skipped during node initialization.
10
+ */
11
+ enabled?: boolean;
7
12
  [key: string]: unknown;
8
13
  }
@@ -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.20";
5
+ export declare const VERSION = "0.3.21";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naylence/runtime",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "type": "module",
5
5
  "description": "Naylence Runtime - Complete TypeScript runtime",
6
6
  "author": "Naylence Dev <naylencedev@gmail.com>",