@naylence/runtime 0.3.18 → 0.3.19

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.18
518
+ // Generated from package.json version: 0.3.19
519
519
  /**
520
520
  * The package version, injected at build time.
521
521
  * @internal
522
522
  */
523
- const VERSION = '0.3.18';
523
+ const VERSION = '0.3.19';
524
524
 
525
525
  let initialized = false;
526
526
  const runtimePlugin = {
@@ -25863,9 +25863,15 @@ class DefaultSecurityManager {
25863
25863
  hasNodeAttachValidation(authorizer)) {
25864
25864
  try {
25865
25865
  const validated = await authorizer.validateNodeAttachRequest(_node, envelope.frame, authResult);
25866
- if (validated) {
25867
- finalAuthResult = validated;
25866
+ if (validated === undefined) {
25867
+ logger$z.warning('node_attach_validation_rejected', {
25868
+ envp_id: envelope.id,
25869
+ frame_type: envelope.frame.type,
25870
+ origin_type: context.originType ?? 'unknown',
25871
+ });
25872
+ return null;
25868
25873
  }
25874
+ finalAuthResult = validated;
25869
25875
  }
25870
25876
  catch (error) {
25871
25877
  logger$z.error('node_attach_authorization_validation_failed', {
@@ -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.18
516
+ // Generated from package.json version: 0.3.19
517
517
  /**
518
518
  * The package version, injected at build time.
519
519
  * @internal
520
520
  */
521
- const VERSION = '0.3.18';
521
+ const VERSION = '0.3.19';
522
522
 
523
523
  let initialized = false;
524
524
  const runtimePlugin = {
@@ -25861,9 +25861,15 @@ class DefaultSecurityManager {
25861
25861
  hasNodeAttachValidation(authorizer)) {
25862
25862
  try {
25863
25863
  const validated = await authorizer.validateNodeAttachRequest(_node, envelope.frame, authResult);
25864
- if (validated) {
25865
- finalAuthResult = validated;
25864
+ if (validated === undefined) {
25865
+ logger$z.warning('node_attach_validation_rejected', {
25866
+ envp_id: envelope.id,
25867
+ frame_type: envelope.frame.type,
25868
+ origin_type: context.originType ?? 'unknown',
25869
+ });
25870
+ return null;
25866
25871
  }
25872
+ finalAuthResult = validated;
25867
25873
  }
25868
25874
  catch (error) {
25869
25875
  logger$z.error('node_attach_authorization_validation_failed', {
@@ -692,9 +692,15 @@ class DefaultSecurityManager {
692
692
  hasNodeAttachValidation(authorizer)) {
693
693
  try {
694
694
  const validated = await authorizer.validateNodeAttachRequest(_node, envelope.frame, authResult);
695
- if (validated) {
696
- finalAuthResult = validated;
695
+ if (validated === undefined) {
696
+ logger.warning('node_attach_validation_rejected', {
697
+ envp_id: envelope.id,
698
+ frame_type: envelope.frame.type,
699
+ origin_type: context.originType ?? 'unknown',
700
+ });
701
+ return null;
697
702
  }
703
+ finalAuthResult = validated;
698
704
  }
699
705
  catch (error) {
700
706
  logger.error('node_attach_authorization_validation_failed', {
@@ -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.18
3
+ // Generated from package.json version: 0.3.19
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.18';
10
+ exports.VERSION = '0.3.19';
@@ -689,9 +689,15 @@ export class DefaultSecurityManager {
689
689
  hasNodeAttachValidation(authorizer)) {
690
690
  try {
691
691
  const validated = await authorizer.validateNodeAttachRequest(_node, envelope.frame, authResult);
692
- if (validated) {
693
- finalAuthResult = validated;
692
+ if (validated === undefined) {
693
+ logger.warning('node_attach_validation_rejected', {
694
+ envp_id: envelope.id,
695
+ frame_type: envelope.frame.type,
696
+ origin_type: context.originType ?? 'unknown',
697
+ });
698
+ return null;
694
699
  }
700
+ finalAuthResult = validated;
695
701
  }
696
702
  catch (error) {
697
703
  logger.error('node_attach_authorization_validation_failed', {
@@ -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.18
2
+ // Generated from package.json version: 0.3.19
3
3
  /**
4
4
  * The package version, injected at build time.
5
5
  * @internal
6
6
  */
7
- export const VERSION = '0.3.18';
7
+ export const VERSION = '0.3.19';
@@ -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.18
17
+ // Generated from package.json version: 0.3.19
18
18
  /**
19
19
  * The package version, injected at build time.
20
20
  * @internal
21
21
  */
22
- const VERSION = '0.3.18';
22
+ const VERSION = '0.3.19';
23
23
 
24
24
  /**
25
25
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -25750,9 +25750,15 @@ class DefaultSecurityManager {
25750
25750
  hasNodeAttachValidation(authorizer)) {
25751
25751
  try {
25752
25752
  const validated = await authorizer.validateNodeAttachRequest(_node, envelope.frame, authResult);
25753
- if (validated) {
25754
- finalAuthResult = validated;
25753
+ if (validated === undefined) {
25754
+ logger$z.warning('node_attach_validation_rejected', {
25755
+ envp_id: envelope.id,
25756
+ frame_type: envelope.frame.type,
25757
+ origin_type: context.originType ?? 'unknown',
25758
+ });
25759
+ return null;
25755
25760
  }
25761
+ finalAuthResult = validated;
25756
25762
  }
25757
25763
  catch (error) {
25758
25764
  logger$z.error('node_attach_authorization_validation_failed', {
@@ -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.18
16
+ // Generated from package.json version: 0.3.19
17
17
  /**
18
18
  * The package version, injected at build time.
19
19
  * @internal
20
20
  */
21
- const VERSION = '0.3.18';
21
+ const VERSION = '0.3.19';
22
22
 
23
23
  /**
24
24
  * Fame protocol specific error classes with WebSocket close codes and proper inheritance.
@@ -25749,9 +25749,15 @@ class DefaultSecurityManager {
25749
25749
  hasNodeAttachValidation(authorizer)) {
25750
25750
  try {
25751
25751
  const validated = await authorizer.validateNodeAttachRequest(_node, envelope.frame, authResult);
25752
- if (validated) {
25753
- finalAuthResult = validated;
25752
+ if (validated === undefined) {
25753
+ logger$z.warning('node_attach_validation_rejected', {
25754
+ envp_id: envelope.id,
25755
+ frame_type: envelope.frame.type,
25756
+ origin_type: context.originType ?? 'unknown',
25757
+ });
25758
+ return null;
25754
25759
  }
25760
+ finalAuthResult = validated;
25755
25761
  }
25756
25762
  catch (error) {
25757
25763
  logger$z.error('node_attach_authorization_validation_failed', {
@@ -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.18
4429
+ // Generated from package.json version: 0.3.19
4430
4430
  /**
4431
4431
  * The package version, injected at build time.
4432
4432
  * @internal
4433
4433
  */
4434
- const VERSION = '0.3.18';
4434
+ const VERSION = '0.3.19';
4435
4435
 
4436
4436
  let initialized = false;
4437
4437
  const runtimePlugin = {
@@ -26938,9 +26938,15 @@ class DefaultSecurityManager {
26938
26938
  hasNodeAttachValidation(authorizer)) {
26939
26939
  try {
26940
26940
  const validated = await authorizer.validateNodeAttachRequest(_node, envelope.frame, authResult);
26941
- if (validated) {
26942
- finalAuthResult = validated;
26941
+ if (validated === undefined) {
26942
+ logger$C.warning('node_attach_validation_rejected', {
26943
+ envp_id: envelope.id,
26944
+ frame_type: envelope.frame.type,
26945
+ origin_type: context.originType ?? 'unknown',
26946
+ });
26947
+ return null;
26943
26948
  }
26949
+ finalAuthResult = validated;
26944
26950
  }
26945
26951
  catch (error) {
26946
26952
  logger$C.error('node_attach_authorization_validation_failed', {
@@ -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.18
4428
+ // Generated from package.json version: 0.3.19
4429
4429
  /**
4430
4430
  * The package version, injected at build time.
4431
4431
  * @internal
4432
4432
  */
4433
- const VERSION = '0.3.18';
4433
+ const VERSION = '0.3.19';
4434
4434
 
4435
4435
  let initialized = false;
4436
4436
  const runtimePlugin = {
@@ -26937,9 +26937,15 @@ class DefaultSecurityManager {
26937
26937
  hasNodeAttachValidation(authorizer)) {
26938
26938
  try {
26939
26939
  const validated = await authorizer.validateNodeAttachRequest(_node, envelope.frame, authResult);
26940
- if (validated) {
26941
- finalAuthResult = validated;
26940
+ if (validated === undefined) {
26941
+ logger$C.warning('node_attach_validation_rejected', {
26942
+ envp_id: envelope.id,
26943
+ frame_type: envelope.frame.type,
26944
+ origin_type: context.originType ?? 'unknown',
26945
+ });
26946
+ return null;
26942
26947
  }
26948
+ finalAuthResult = validated;
26943
26949
  }
26944
26950
  catch (error) {
26945
26951
  logger$C.error('node_attach_authorization_validation_failed', {
@@ -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.18";
5
+ export declare const VERSION = "0.3.19";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naylence/runtime",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "type": "module",
5
5
  "description": "Naylence Runtime - Complete TypeScript runtime",
6
6
  "author": "Naylence Dev <naylencedev@gmail.com>",