@naylence/runtime 0.3.13 → 0.3.14

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.
@@ -100,12 +100,12 @@ installProcessEnvShim();
100
100
  // --- END ENV SHIM ---
101
101
 
102
102
  // This file is auto-generated during build - do not edit manually
103
- // Generated from package.json version: 0.3.13
103
+ // Generated from package.json version: 0.3.14
104
104
  /**
105
105
  * The package version, injected at build time.
106
106
  * @internal
107
107
  */
108
- const VERSION = '0.3.13';
108
+ const VERSION = '0.3.14';
109
109
 
110
110
  /**
111
111
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -629,7 +629,7 @@ function getPinoLevel(level) {
629
629
  case exports.LogLevel.CRITICAL:
630
630
  return 'fatal';
631
631
  default:
632
- return 'info';
632
+ return 'warn';
633
633
  }
634
634
  }
635
635
  // Initialize Pino if available (Node.js only)
@@ -708,7 +708,7 @@ function getInitialLogLevel() {
708
708
  }
709
709
  }
710
710
  // Default to INFO - balanced verbosity for most use cases
711
- return exports.LogLevel.INFO;
711
+ return exports.LogLevel.WARNING;
712
712
  }
713
713
  const defaultConfig = {
714
714
  level: getInitialLogLevel(),
@@ -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.13
101
+ // Generated from package.json version: 0.3.14
102
102
  /**
103
103
  * The package version, injected at build time.
104
104
  * @internal
105
105
  */
106
- const VERSION = '0.3.13';
106
+ const VERSION = '0.3.14';
107
107
 
108
108
  /**
109
109
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -627,7 +627,7 @@ function getPinoLevel(level) {
627
627
  case LogLevel.CRITICAL:
628
628
  return 'fatal';
629
629
  default:
630
- return 'info';
630
+ return 'warn';
631
631
  }
632
632
  }
633
633
  // Initialize Pino if available (Node.js only)
@@ -706,7 +706,7 @@ function getInitialLogLevel() {
706
706
  }
707
707
  }
708
708
  // Default to INFO - balanced verbosity for most use cases
709
- return LogLevel.INFO;
709
+ return LogLevel.WARNING;
710
710
  }
711
711
  const defaultConfig = {
712
712
  level: getInitialLogLevel(),
@@ -245,7 +245,7 @@ function getPinoLevel(level) {
245
245
  case logging_types_js_1.LogLevel.CRITICAL:
246
246
  return 'fatal';
247
247
  default:
248
- return 'info';
248
+ return 'warn';
249
249
  }
250
250
  }
251
251
  // Initialize Pino if available (Node.js only)
@@ -324,7 +324,7 @@ function getInitialLogLevel() {
324
324
  }
325
325
  }
326
326
  // Default to INFO - balanced verbosity for most use cases
327
- return logging_types_js_1.LogLevel.INFO;
327
+ return logging_types_js_1.LogLevel.WARNING;
328
328
  }
329
329
  const defaultConfig = {
330
330
  level: getInitialLogLevel(),
package/dist/cjs/node.js CHANGED
@@ -8,6 +8,17 @@ require("./naylence/fame/connector/websocket-connector-node-ssl.js");
8
8
  // registered early so configuration parsing that happens during runtime
9
9
  // initialization can resolve the requested storage profiles.
10
10
  require("./naylence/fame/storage/node-index.js"); // Side-effect: registers SQLite profiles
11
+ // Auto-register the runtime plugin if we are in a Node.js environment
12
+ if (typeof process !== 'undefined' && process.env) {
13
+ const pluginName = '@naylence/runtime';
14
+ const current = process.env.FAME_PLUGINS || '';
15
+ const plugins = current.split(',').map((p) => p.trim());
16
+ if (!plugins.includes(pluginName)) {
17
+ process.env.FAME_PLUGINS = current
18
+ ? `${current},${pluginName}`
19
+ : pluginName;
20
+ }
21
+ }
11
22
  tslib_1.__exportStar(require("./naylence/fame/storage/node-index.js"), exports);
12
23
  tslib_1.__exportStar(require("./runtime-isomorphic.js"), exports);
13
24
  tslib_1.__exportStar(require("./naylence/fame/node/index.js"), exports);
@@ -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.13
3
+ // Generated from package.json version: 0.3.14
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.13';
10
+ exports.VERSION = '0.3.14';
@@ -231,7 +231,7 @@ function getPinoLevel(level) {
231
231
  case LogLevel.CRITICAL:
232
232
  return 'fatal';
233
233
  default:
234
- return 'info';
234
+ return 'warn';
235
235
  }
236
236
  }
237
237
  // Initialize Pino if available (Node.js only)
@@ -310,7 +310,7 @@ function getInitialLogLevel() {
310
310
  }
311
311
  }
312
312
  // Default to INFO - balanced verbosity for most use cases
313
- return LogLevel.INFO;
313
+ return LogLevel.WARNING;
314
314
  }
315
315
  const defaultConfig = {
316
316
  level: getInitialLogLevel(),
package/dist/esm/node.js CHANGED
@@ -4,6 +4,17 @@ import './naylence/fame/connector/websocket-connector-node-ssl.js';
4
4
  // registered early so configuration parsing that happens during runtime
5
5
  // initialization can resolve the requested storage profiles.
6
6
  import './naylence/fame/storage/node-index.js'; // Side-effect: registers SQLite profiles
7
+ // Auto-register the runtime plugin if we are in a Node.js environment
8
+ if (typeof process !== 'undefined' && process.env) {
9
+ const pluginName = '@naylence/runtime';
10
+ const current = process.env.FAME_PLUGINS || '';
11
+ const plugins = current.split(',').map((p) => p.trim());
12
+ if (!plugins.includes(pluginName)) {
13
+ process.env.FAME_PLUGINS = current
14
+ ? `${current},${pluginName}`
15
+ : pluginName;
16
+ }
17
+ }
7
18
  export * from './naylence/fame/storage/node-index.js';
8
19
  export * from './runtime-isomorphic.js';
9
20
  export * from './naylence/fame/node/index.js';
@@ -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.13
2
+ // Generated from package.json version: 0.3.14
3
3
  /**
4
4
  * The package version, injected at build time.
5
5
  * @internal
6
6
  */
7
- export const VERSION = '0.3.13';
7
+ export const VERSION = '0.3.14';
@@ -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.13
17
+ // Generated from package.json version: 0.3.14
18
18
  /**
19
19
  * The package version, injected at build time.
20
20
  * @internal
21
21
  */
22
- const VERSION = '0.3.13';
22
+ const VERSION = '0.3.14';
23
23
 
24
24
  /**
25
25
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -543,7 +543,7 @@ function getPinoLevel(level) {
543
543
  case exports.LogLevel.CRITICAL:
544
544
  return 'fatal';
545
545
  default:
546
- return 'info';
546
+ return 'warn';
547
547
  }
548
548
  }
549
549
  // Initialize Pino if available (Node.js only)
@@ -622,7 +622,7 @@ function getInitialLogLevel() {
622
622
  }
623
623
  }
624
624
  // Default to INFO - balanced verbosity for most use cases
625
- return exports.LogLevel.INFO;
625
+ return exports.LogLevel.WARNING;
626
626
  }
627
627
  const defaultConfig = {
628
628
  level: getInitialLogLevel(),
@@ -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.13
16
+ // Generated from package.json version: 0.3.14
17
17
  /**
18
18
  * The package version, injected at build time.
19
19
  * @internal
20
20
  */
21
- const VERSION = '0.3.13';
21
+ const VERSION = '0.3.14';
22
22
 
23
23
  /**
24
24
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -542,7 +542,7 @@ function getPinoLevel(level) {
542
542
  case LogLevel.CRITICAL:
543
543
  return 'fatal';
544
544
  default:
545
- return 'info';
545
+ return 'warn';
546
546
  }
547
547
  }
548
548
  // Initialize Pino if available (Node.js only)
@@ -621,7 +621,7 @@ function getInitialLogLevel() {
621
621
  }
622
622
  }
623
623
  // Default to INFO - balanced verbosity for most use cases
624
- return LogLevel.INFO;
624
+ return LogLevel.WARNING;
625
625
  }
626
626
  const defaultConfig = {
627
627
  level: getInitialLogLevel(),
@@ -431,7 +431,7 @@ function getPinoLevel(level) {
431
431
  case exports.LogLevel.CRITICAL:
432
432
  return 'fatal';
433
433
  default:
434
- return 'info';
434
+ return 'warn';
435
435
  }
436
436
  }
437
437
  // Initialize Pino if available (Node.js only)
@@ -510,7 +510,7 @@ function getInitialLogLevel() {
510
510
  }
511
511
  }
512
512
  // Default to INFO - balanced verbosity for most use cases
513
- return exports.LogLevel.INFO;
513
+ return exports.LogLevel.WARNING;
514
514
  }
515
515
  const defaultConfig = {
516
516
  level: getInitialLogLevel(),
@@ -5572,12 +5572,12 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
5572
5572
  }
5573
5573
 
5574
5574
  // This file is auto-generated during build - do not edit manually
5575
- // Generated from package.json version: 0.3.13
5575
+ // Generated from package.json version: 0.3.14
5576
5576
  /**
5577
5577
  * The package version, injected at build time.
5578
5578
  * @internal
5579
5579
  */
5580
- const VERSION = '0.3.13';
5580
+ const VERSION = '0.3.14';
5581
5581
 
5582
5582
  /**
5583
5583
  * Fame errors module - Fame protocol specific error classes
@@ -35633,6 +35633,18 @@ async function main() {
35633
35633
  process.on('SIGTERM', () => shutdown('SIGTERM'));
35634
35634
  }
35635
35635
 
35636
+ // Auto-register the runtime plugin if we are in a Node.js environment
35637
+ if (typeof process !== 'undefined' && process.env) {
35638
+ const pluginName = '@naylence/runtime';
35639
+ const current = process.env.FAME_PLUGINS || '';
35640
+ const plugins = current.split(',').map((p) => p.trim());
35641
+ if (!plugins.includes(pluginName)) {
35642
+ process.env.FAME_PLUGINS = current
35643
+ ? `${current},${pluginName}`
35644
+ : pluginName;
35645
+ }
35646
+ }
35647
+
35636
35648
  /**
35637
35649
  * Base abstraction for message delivery policies.
35638
35650
  */
@@ -430,7 +430,7 @@ function getPinoLevel(level) {
430
430
  case LogLevel.CRITICAL:
431
431
  return 'fatal';
432
432
  default:
433
- return 'info';
433
+ return 'warn';
434
434
  }
435
435
  }
436
436
  // Initialize Pino if available (Node.js only)
@@ -509,7 +509,7 @@ function getInitialLogLevel() {
509
509
  }
510
510
  }
511
511
  // Default to INFO - balanced verbosity for most use cases
512
- return LogLevel.INFO;
512
+ return LogLevel.WARNING;
513
513
  }
514
514
  const defaultConfig = {
515
515
  level: getInitialLogLevel(),
@@ -5571,12 +5571,12 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
5571
5571
  }
5572
5572
 
5573
5573
  // This file is auto-generated during build - do not edit manually
5574
- // Generated from package.json version: 0.3.13
5574
+ // Generated from package.json version: 0.3.14
5575
5575
  /**
5576
5576
  * The package version, injected at build time.
5577
5577
  * @internal
5578
5578
  */
5579
- const VERSION = '0.3.13';
5579
+ const VERSION = '0.3.14';
5580
5580
 
5581
5581
  /**
5582
5582
  * Fame errors module - Fame protocol specific error classes
@@ -35632,6 +35632,18 @@ async function main() {
35632
35632
  process.on('SIGTERM', () => shutdown('SIGTERM'));
35633
35633
  }
35634
35634
 
35635
+ // Auto-register the runtime plugin if we are in a Node.js environment
35636
+ if (typeof process !== 'undefined' && process.env) {
35637
+ const pluginName = '@naylence/runtime';
35638
+ const current = process.env.FAME_PLUGINS || '';
35639
+ const plugins = current.split(',').map((p) => p.trim());
35640
+ if (!plugins.includes(pluginName)) {
35641
+ process.env.FAME_PLUGINS = current
35642
+ ? `${current},${pluginName}`
35643
+ : pluginName;
35644
+ }
35645
+ }
35646
+
35635
35647
  /**
35636
35648
  * Base abstraction for message delivery policies.
35637
35649
  */
@@ -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.13";
5
+ export declare const VERSION = "0.3.14";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naylence/runtime",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "type": "module",
5
5
  "description": "Naylence Runtime - Complete TypeScript runtime",
6
6
  "author": "Naylence Dev <naylencedev@gmail.com>",