@naylence/runtime 0.4.10 → 0.4.12
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 +19 -10
- package/dist/browser/index.mjs +19 -10
- package/dist/cjs/naylence/fame/security/auth/authorization-profile-factory.js +1 -1
- package/dist/cjs/naylence/fame/security/auth/policy/pattern-matcher.js +16 -7
- package/dist/cjs/version.js +2 -2
- package/dist/esm/naylence/fame/security/auth/authorization-profile-factory.js +1 -1
- package/dist/esm/naylence/fame/security/auth/policy/pattern-matcher.js +16 -7
- package/dist/esm/version.js +2 -2
- package/dist/node/index.cjs +19 -10
- package/dist/node/index.mjs +19 -10
- package/dist/node/node.cjs +19 -10
- package/dist/node/node.mjs +19 -10
- package/dist/types/naylence/fame/security/auth/policy/pattern-matcher.d.ts +4 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/browser/index.cjs
CHANGED
|
@@ -525,12 +525,12 @@ async function ensureRuntimeFactoriesRegistered(registry = factory.Registry) {
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
// This file is auto-generated during build - do not edit manually
|
|
528
|
-
// Generated from package.json version: 0.4.
|
|
528
|
+
// Generated from package.json version: 0.4.12
|
|
529
529
|
/**
|
|
530
530
|
* The package version, injected at build time.
|
|
531
531
|
* @internal
|
|
532
532
|
*/
|
|
533
|
-
const VERSION = '0.4.
|
|
533
|
+
const VERSION = '0.4.12';
|
|
534
534
|
|
|
535
535
|
let initialized = false;
|
|
536
536
|
const runtimePlugin = {
|
|
@@ -22044,7 +22044,7 @@ const DEFAULT_POLICY_SOURCE = {
|
|
|
22044
22044
|
const POLICY_LOCALFILE_PROFILE = {
|
|
22045
22045
|
type: 'PolicyAuthorizer',
|
|
22046
22046
|
verifier: DEFAULT_VERIFIER_CONFIG,
|
|
22047
|
-
|
|
22047
|
+
policy_source: DEFAULT_POLICY_SOURCE,
|
|
22048
22048
|
};
|
|
22049
22049
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_DEFAULT, DEFAULT_PROFILE, { source: 'authorization-profile-factory' });
|
|
22050
22050
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_OAUTH2, OAUTH2_PROFILE, { source: 'authorization-profile-factory' });
|
|
@@ -22273,6 +22273,10 @@ const VALID_EFFECTS = ['allow', 'deny'];
|
|
|
22273
22273
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
22274
22274
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
22275
22275
|
*
|
|
22276
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
22277
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
22278
|
+
* while `**` matches across all separators.
|
|
22279
|
+
*
|
|
22276
22280
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
22277
22281
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
22278
22282
|
*/
|
|
@@ -22310,10 +22314,15 @@ function escapeRegex(str) {
|
|
|
22310
22314
|
* Converts a glob pattern to a regex pattern.
|
|
22311
22315
|
*
|
|
22312
22316
|
* Glob syntax:
|
|
22313
|
-
* - `*` matches a single segment (
|
|
22314
|
-
* - `**` matches any number of segments (including zero)
|
|
22317
|
+
* - `*` matches a single segment (not crossing `.`, `/`, or `@` separators)
|
|
22318
|
+
* - `**` matches any number of segments (including zero), crossing all separators
|
|
22319
|
+
* - `?` matches a single character (not a separator)
|
|
22315
22320
|
* - Other characters are matched literally
|
|
22316
22321
|
*
|
|
22322
|
+
* The multi-separator approach treats `.`, `/`, and `@` as equivalent segment
|
|
22323
|
+
* separators. This provides clean semantics for both logical addresses
|
|
22324
|
+
* (e.g., `name@domain.fabric`) and physical addresses (e.g., `name@/path/to/node`).
|
|
22325
|
+
*
|
|
22317
22326
|
* @param glob - The glob pattern to convert
|
|
22318
22327
|
* @returns A regex pattern string (without anchors)
|
|
22319
22328
|
*/
|
|
@@ -22323,19 +22332,19 @@ function globToRegex(glob) {
|
|
|
22323
22332
|
while (i < glob.length) {
|
|
22324
22333
|
if (glob[i] === '*') {
|
|
22325
22334
|
if (glob[i + 1] === '*') {
|
|
22326
|
-
// `**` matches any characters (including
|
|
22335
|
+
// `**` matches any characters (including all separators)
|
|
22327
22336
|
parts.push('.*');
|
|
22328
22337
|
i += 2;
|
|
22329
22338
|
}
|
|
22330
22339
|
else {
|
|
22331
|
-
// `*` matches any characters except
|
|
22332
|
-
parts.push('[
|
|
22340
|
+
// `*` matches any characters except separators (., /, @)
|
|
22341
|
+
parts.push('[^./@]*');
|
|
22333
22342
|
i += 1;
|
|
22334
22343
|
}
|
|
22335
22344
|
}
|
|
22336
22345
|
else if (glob[i] === '?') {
|
|
22337
|
-
// `?` matches a single character (not a
|
|
22338
|
-
parts.push('[
|
|
22346
|
+
// `?` matches a single character (not a separator)
|
|
22347
|
+
parts.push('[^./@]');
|
|
22339
22348
|
i += 1;
|
|
22340
22349
|
}
|
|
22341
22350
|
else {
|
package/dist/browser/index.mjs
CHANGED
|
@@ -523,12 +523,12 @@ async function ensureRuntimeFactoriesRegistered(registry = Registry) {
|
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
// This file is auto-generated during build - do not edit manually
|
|
526
|
-
// Generated from package.json version: 0.4.
|
|
526
|
+
// Generated from package.json version: 0.4.12
|
|
527
527
|
/**
|
|
528
528
|
* The package version, injected at build time.
|
|
529
529
|
* @internal
|
|
530
530
|
*/
|
|
531
|
-
const VERSION = '0.4.
|
|
531
|
+
const VERSION = '0.4.12';
|
|
532
532
|
|
|
533
533
|
let initialized = false;
|
|
534
534
|
const runtimePlugin = {
|
|
@@ -22042,7 +22042,7 @@ const DEFAULT_POLICY_SOURCE = {
|
|
|
22042
22042
|
const POLICY_LOCALFILE_PROFILE = {
|
|
22043
22043
|
type: 'PolicyAuthorizer',
|
|
22044
22044
|
verifier: DEFAULT_VERIFIER_CONFIG,
|
|
22045
|
-
|
|
22045
|
+
policy_source: DEFAULT_POLICY_SOURCE,
|
|
22046
22046
|
};
|
|
22047
22047
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_DEFAULT, DEFAULT_PROFILE, { source: 'authorization-profile-factory' });
|
|
22048
22048
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_OAUTH2, OAUTH2_PROFILE, { source: 'authorization-profile-factory' });
|
|
@@ -22271,6 +22271,10 @@ const VALID_EFFECTS = ['allow', 'deny'];
|
|
|
22271
22271
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
22272
22272
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
22273
22273
|
*
|
|
22274
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
22275
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
22276
|
+
* while `**` matches across all separators.
|
|
22277
|
+
*
|
|
22274
22278
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
22275
22279
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
22276
22280
|
*/
|
|
@@ -22308,10 +22312,15 @@ function escapeRegex(str) {
|
|
|
22308
22312
|
* Converts a glob pattern to a regex pattern.
|
|
22309
22313
|
*
|
|
22310
22314
|
* Glob syntax:
|
|
22311
|
-
* - `*` matches a single segment (
|
|
22312
|
-
* - `**` matches any number of segments (including zero)
|
|
22315
|
+
* - `*` matches a single segment (not crossing `.`, `/`, or `@` separators)
|
|
22316
|
+
* - `**` matches any number of segments (including zero), crossing all separators
|
|
22317
|
+
* - `?` matches a single character (not a separator)
|
|
22313
22318
|
* - Other characters are matched literally
|
|
22314
22319
|
*
|
|
22320
|
+
* The multi-separator approach treats `.`, `/`, and `@` as equivalent segment
|
|
22321
|
+
* separators. This provides clean semantics for both logical addresses
|
|
22322
|
+
* (e.g., `name@domain.fabric`) and physical addresses (e.g., `name@/path/to/node`).
|
|
22323
|
+
*
|
|
22315
22324
|
* @param glob - The glob pattern to convert
|
|
22316
22325
|
* @returns A regex pattern string (without anchors)
|
|
22317
22326
|
*/
|
|
@@ -22321,19 +22330,19 @@ function globToRegex(glob) {
|
|
|
22321
22330
|
while (i < glob.length) {
|
|
22322
22331
|
if (glob[i] === '*') {
|
|
22323
22332
|
if (glob[i + 1] === '*') {
|
|
22324
|
-
// `**` matches any characters (including
|
|
22333
|
+
// `**` matches any characters (including all separators)
|
|
22325
22334
|
parts.push('.*');
|
|
22326
22335
|
i += 2;
|
|
22327
22336
|
}
|
|
22328
22337
|
else {
|
|
22329
|
-
// `*` matches any characters except
|
|
22330
|
-
parts.push('[
|
|
22338
|
+
// `*` matches any characters except separators (., /, @)
|
|
22339
|
+
parts.push('[^./@]*');
|
|
22331
22340
|
i += 1;
|
|
22332
22341
|
}
|
|
22333
22342
|
}
|
|
22334
22343
|
else if (glob[i] === '?') {
|
|
22335
|
-
// `?` matches a single character (not a
|
|
22336
|
-
parts.push('[
|
|
22344
|
+
// `?` matches a single character (not a separator)
|
|
22345
|
+
parts.push('[^./@]');
|
|
22337
22346
|
i += 1;
|
|
22338
22347
|
}
|
|
22339
22348
|
else {
|
|
@@ -89,7 +89,7 @@ const DEFAULT_POLICY_SOURCE = {
|
|
|
89
89
|
const POLICY_LOCALFILE_PROFILE = {
|
|
90
90
|
type: 'PolicyAuthorizer',
|
|
91
91
|
verifier: DEFAULT_VERIFIER_CONFIG,
|
|
92
|
-
|
|
92
|
+
policy_source: DEFAULT_POLICY_SOURCE,
|
|
93
93
|
};
|
|
94
94
|
(0, profile_registry_js_1.registerProfile)(authorizer_factory_js_1.AUTHORIZER_FACTORY_BASE_TYPE, exports.PROFILE_NAME_DEFAULT, DEFAULT_PROFILE, { source: 'authorization-profile-factory' });
|
|
95
95
|
(0, profile_registry_js_1.registerProfile)(authorizer_factory_js_1.AUTHORIZER_FACTORY_BASE_TYPE, exports.PROFILE_NAME_OAUTH2, OAUTH2_PROFILE, { source: 'authorization-profile-factory' });
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
7
7
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
8
8
|
*
|
|
9
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
10
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
11
|
+
* while `**` matches across all separators.
|
|
12
|
+
*
|
|
9
13
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
10
14
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
11
15
|
*/
|
|
@@ -52,10 +56,15 @@ function escapeRegex(str) {
|
|
|
52
56
|
* Converts a glob pattern to a regex pattern.
|
|
53
57
|
*
|
|
54
58
|
* Glob syntax:
|
|
55
|
-
* - `*` matches a single segment (
|
|
56
|
-
* - `**` matches any number of segments (including zero)
|
|
59
|
+
* - `*` matches a single segment (not crossing `.`, `/`, or `@` separators)
|
|
60
|
+
* - `**` matches any number of segments (including zero), crossing all separators
|
|
61
|
+
* - `?` matches a single character (not a separator)
|
|
57
62
|
* - Other characters are matched literally
|
|
58
63
|
*
|
|
64
|
+
* The multi-separator approach treats `.`, `/`, and `@` as equivalent segment
|
|
65
|
+
* separators. This provides clean semantics for both logical addresses
|
|
66
|
+
* (e.g., `name@domain.fabric`) and physical addresses (e.g., `name@/path/to/node`).
|
|
67
|
+
*
|
|
59
68
|
* @param glob - The glob pattern to convert
|
|
60
69
|
* @returns A regex pattern string (without anchors)
|
|
61
70
|
*/
|
|
@@ -65,19 +74,19 @@ function globToRegex(glob) {
|
|
|
65
74
|
while (i < glob.length) {
|
|
66
75
|
if (glob[i] === '*') {
|
|
67
76
|
if (glob[i + 1] === '*') {
|
|
68
|
-
// `**` matches any characters (including
|
|
77
|
+
// `**` matches any characters (including all separators)
|
|
69
78
|
parts.push('.*');
|
|
70
79
|
i += 2;
|
|
71
80
|
}
|
|
72
81
|
else {
|
|
73
|
-
// `*` matches any characters except
|
|
74
|
-
parts.push('[
|
|
82
|
+
// `*` matches any characters except separators (., /, @)
|
|
83
|
+
parts.push('[^./@]*');
|
|
75
84
|
i += 1;
|
|
76
85
|
}
|
|
77
86
|
}
|
|
78
87
|
else if (glob[i] === '?') {
|
|
79
|
-
// `?` matches a single character (not a
|
|
80
|
-
parts.push('[
|
|
88
|
+
// `?` matches a single character (not a separator)
|
|
89
|
+
parts.push('[^./@]');
|
|
81
90
|
i += 1;
|
|
82
91
|
}
|
|
83
92
|
else {
|
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.4.
|
|
3
|
+
// Generated from package.json version: 0.4.12
|
|
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.4.
|
|
10
|
+
exports.VERSION = '0.4.12';
|
|
@@ -86,7 +86,7 @@ const DEFAULT_POLICY_SOURCE = {
|
|
|
86
86
|
const POLICY_LOCALFILE_PROFILE = {
|
|
87
87
|
type: 'PolicyAuthorizer',
|
|
88
88
|
verifier: DEFAULT_VERIFIER_CONFIG,
|
|
89
|
-
|
|
89
|
+
policy_source: DEFAULT_POLICY_SOURCE,
|
|
90
90
|
};
|
|
91
91
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_DEFAULT, DEFAULT_PROFILE, { source: 'authorization-profile-factory' });
|
|
92
92
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_OAUTH2, OAUTH2_PROFILE, { source: 'authorization-profile-factory' });
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
6
6
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
7
7
|
*
|
|
8
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
9
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
10
|
+
* while `**` matches across all separators.
|
|
11
|
+
*
|
|
8
12
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
9
13
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
10
14
|
*/
|
|
@@ -42,10 +46,15 @@ function escapeRegex(str) {
|
|
|
42
46
|
* Converts a glob pattern to a regex pattern.
|
|
43
47
|
*
|
|
44
48
|
* Glob syntax:
|
|
45
|
-
* - `*` matches a single segment (
|
|
46
|
-
* - `**` matches any number of segments (including zero)
|
|
49
|
+
* - `*` matches a single segment (not crossing `.`, `/`, or `@` separators)
|
|
50
|
+
* - `**` matches any number of segments (including zero), crossing all separators
|
|
51
|
+
* - `?` matches a single character (not a separator)
|
|
47
52
|
* - Other characters are matched literally
|
|
48
53
|
*
|
|
54
|
+
* The multi-separator approach treats `.`, `/`, and `@` as equivalent segment
|
|
55
|
+
* separators. This provides clean semantics for both logical addresses
|
|
56
|
+
* (e.g., `name@domain.fabric`) and physical addresses (e.g., `name@/path/to/node`).
|
|
57
|
+
*
|
|
49
58
|
* @param glob - The glob pattern to convert
|
|
50
59
|
* @returns A regex pattern string (without anchors)
|
|
51
60
|
*/
|
|
@@ -55,19 +64,19 @@ function globToRegex(glob) {
|
|
|
55
64
|
while (i < glob.length) {
|
|
56
65
|
if (glob[i] === '*') {
|
|
57
66
|
if (glob[i + 1] === '*') {
|
|
58
|
-
// `**` matches any characters (including
|
|
67
|
+
// `**` matches any characters (including all separators)
|
|
59
68
|
parts.push('.*');
|
|
60
69
|
i += 2;
|
|
61
70
|
}
|
|
62
71
|
else {
|
|
63
|
-
// `*` matches any characters except
|
|
64
|
-
parts.push('[
|
|
72
|
+
// `*` matches any characters except separators (., /, @)
|
|
73
|
+
parts.push('[^./@]*');
|
|
65
74
|
i += 1;
|
|
66
75
|
}
|
|
67
76
|
}
|
|
68
77
|
else if (glob[i] === '?') {
|
|
69
|
-
// `?` matches a single character (not a
|
|
70
|
-
parts.push('[
|
|
78
|
+
// `?` matches a single character (not a separator)
|
|
79
|
+
parts.push('[^./@]');
|
|
71
80
|
i += 1;
|
|
72
81
|
}
|
|
73
82
|
else {
|
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.4.
|
|
2
|
+
// Generated from package.json version: 0.4.12
|
|
3
3
|
/**
|
|
4
4
|
* The package version, injected at build time.
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export const VERSION = '0.4.
|
|
7
|
+
export const VERSION = '0.4.12';
|
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.4.
|
|
17
|
+
// Generated from package.json version: 0.4.12
|
|
18
18
|
/**
|
|
19
19
|
* The package version, injected at build time.
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
|
-
const VERSION = '0.4.
|
|
22
|
+
const VERSION = '0.4.12';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -21931,7 +21931,7 @@ const DEFAULT_POLICY_SOURCE = {
|
|
|
21931
21931
|
const POLICY_LOCALFILE_PROFILE = {
|
|
21932
21932
|
type: 'PolicyAuthorizer',
|
|
21933
21933
|
verifier: DEFAULT_VERIFIER_CONFIG,
|
|
21934
|
-
|
|
21934
|
+
policy_source: DEFAULT_POLICY_SOURCE,
|
|
21935
21935
|
};
|
|
21936
21936
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_DEFAULT, DEFAULT_PROFILE, { source: 'authorization-profile-factory' });
|
|
21937
21937
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_OAUTH2, OAUTH2_PROFILE, { source: 'authorization-profile-factory' });
|
|
@@ -22160,6 +22160,10 @@ const VALID_EFFECTS = ['allow', 'deny'];
|
|
|
22160
22160
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
22161
22161
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
22162
22162
|
*
|
|
22163
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
22164
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
22165
|
+
* while `**` matches across all separators.
|
|
22166
|
+
*
|
|
22163
22167
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
22164
22168
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
22165
22169
|
*/
|
|
@@ -22197,10 +22201,15 @@ function escapeRegex(str) {
|
|
|
22197
22201
|
* Converts a glob pattern to a regex pattern.
|
|
22198
22202
|
*
|
|
22199
22203
|
* Glob syntax:
|
|
22200
|
-
* - `*` matches a single segment (
|
|
22201
|
-
* - `**` matches any number of segments (including zero)
|
|
22204
|
+
* - `*` matches a single segment (not crossing `.`, `/`, or `@` separators)
|
|
22205
|
+
* - `**` matches any number of segments (including zero), crossing all separators
|
|
22206
|
+
* - `?` matches a single character (not a separator)
|
|
22202
22207
|
* - Other characters are matched literally
|
|
22203
22208
|
*
|
|
22209
|
+
* The multi-separator approach treats `.`, `/`, and `@` as equivalent segment
|
|
22210
|
+
* separators. This provides clean semantics for both logical addresses
|
|
22211
|
+
* (e.g., `name@domain.fabric`) and physical addresses (e.g., `name@/path/to/node`).
|
|
22212
|
+
*
|
|
22204
22213
|
* @param glob - The glob pattern to convert
|
|
22205
22214
|
* @returns A regex pattern string (without anchors)
|
|
22206
22215
|
*/
|
|
@@ -22210,19 +22219,19 @@ function globToRegex(glob) {
|
|
|
22210
22219
|
while (i < glob.length) {
|
|
22211
22220
|
if (glob[i] === '*') {
|
|
22212
22221
|
if (glob[i + 1] === '*') {
|
|
22213
|
-
// `**` matches any characters (including
|
|
22222
|
+
// `**` matches any characters (including all separators)
|
|
22214
22223
|
parts.push('.*');
|
|
22215
22224
|
i += 2;
|
|
22216
22225
|
}
|
|
22217
22226
|
else {
|
|
22218
|
-
// `*` matches any characters except
|
|
22219
|
-
parts.push('[
|
|
22227
|
+
// `*` matches any characters except separators (., /, @)
|
|
22228
|
+
parts.push('[^./@]*');
|
|
22220
22229
|
i += 1;
|
|
22221
22230
|
}
|
|
22222
22231
|
}
|
|
22223
22232
|
else if (glob[i] === '?') {
|
|
22224
|
-
// `?` matches a single character (not a
|
|
22225
|
-
parts.push('[
|
|
22233
|
+
// `?` matches a single character (not a separator)
|
|
22234
|
+
parts.push('[^./@]');
|
|
22226
22235
|
i += 1;
|
|
22227
22236
|
}
|
|
22228
22237
|
else {
|
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.4.
|
|
16
|
+
// Generated from package.json version: 0.4.12
|
|
17
17
|
/**
|
|
18
18
|
* The package version, injected at build time.
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
|
-
const VERSION = '0.4.
|
|
21
|
+
const VERSION = '0.4.12';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -21930,7 +21930,7 @@ const DEFAULT_POLICY_SOURCE = {
|
|
|
21930
21930
|
const POLICY_LOCALFILE_PROFILE = {
|
|
21931
21931
|
type: 'PolicyAuthorizer',
|
|
21932
21932
|
verifier: DEFAULT_VERIFIER_CONFIG,
|
|
21933
|
-
|
|
21933
|
+
policy_source: DEFAULT_POLICY_SOURCE,
|
|
21934
21934
|
};
|
|
21935
21935
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_DEFAULT, DEFAULT_PROFILE, { source: 'authorization-profile-factory' });
|
|
21936
21936
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_OAUTH2, OAUTH2_PROFILE, { source: 'authorization-profile-factory' });
|
|
@@ -22159,6 +22159,10 @@ const VALID_EFFECTS = ['allow', 'deny'];
|
|
|
22159
22159
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
22160
22160
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
22161
22161
|
*
|
|
22162
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
22163
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
22164
|
+
* while `**` matches across all separators.
|
|
22165
|
+
*
|
|
22162
22166
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
22163
22167
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
22164
22168
|
*/
|
|
@@ -22196,10 +22200,15 @@ function escapeRegex(str) {
|
|
|
22196
22200
|
* Converts a glob pattern to a regex pattern.
|
|
22197
22201
|
*
|
|
22198
22202
|
* Glob syntax:
|
|
22199
|
-
* - `*` matches a single segment (
|
|
22200
|
-
* - `**` matches any number of segments (including zero)
|
|
22203
|
+
* - `*` matches a single segment (not crossing `.`, `/`, or `@` separators)
|
|
22204
|
+
* - `**` matches any number of segments (including zero), crossing all separators
|
|
22205
|
+
* - `?` matches a single character (not a separator)
|
|
22201
22206
|
* - Other characters are matched literally
|
|
22202
22207
|
*
|
|
22208
|
+
* The multi-separator approach treats `.`, `/`, and `@` as equivalent segment
|
|
22209
|
+
* separators. This provides clean semantics for both logical addresses
|
|
22210
|
+
* (e.g., `name@domain.fabric`) and physical addresses (e.g., `name@/path/to/node`).
|
|
22211
|
+
*
|
|
22203
22212
|
* @param glob - The glob pattern to convert
|
|
22204
22213
|
* @returns A regex pattern string (without anchors)
|
|
22205
22214
|
*/
|
|
@@ -22209,19 +22218,19 @@ function globToRegex(glob) {
|
|
|
22209
22218
|
while (i < glob.length) {
|
|
22210
22219
|
if (glob[i] === '*') {
|
|
22211
22220
|
if (glob[i + 1] === '*') {
|
|
22212
|
-
// `**` matches any characters (including
|
|
22221
|
+
// `**` matches any characters (including all separators)
|
|
22213
22222
|
parts.push('.*');
|
|
22214
22223
|
i += 2;
|
|
22215
22224
|
}
|
|
22216
22225
|
else {
|
|
22217
|
-
// `*` matches any characters except
|
|
22218
|
-
parts.push('[
|
|
22226
|
+
// `*` matches any characters except separators (., /, @)
|
|
22227
|
+
parts.push('[^./@]*');
|
|
22219
22228
|
i += 1;
|
|
22220
22229
|
}
|
|
22221
22230
|
}
|
|
22222
22231
|
else if (glob[i] === '?') {
|
|
22223
|
-
// `?` matches a single character (not a
|
|
22224
|
-
parts.push('[
|
|
22232
|
+
// `?` matches a single character (not a separator)
|
|
22233
|
+
parts.push('[^./@]');
|
|
22225
22234
|
i += 1;
|
|
22226
22235
|
}
|
|
22227
22236
|
else {
|
package/dist/node/node.cjs
CHANGED
|
@@ -4436,12 +4436,12 @@ async function ensureRuntimeFactoriesRegistered(registry = factory.Registry) {
|
|
|
4436
4436
|
}
|
|
4437
4437
|
|
|
4438
4438
|
// This file is auto-generated during build - do not edit manually
|
|
4439
|
-
// Generated from package.json version: 0.4.
|
|
4439
|
+
// Generated from package.json version: 0.4.12
|
|
4440
4440
|
/**
|
|
4441
4441
|
* The package version, injected at build time.
|
|
4442
4442
|
* @internal
|
|
4443
4443
|
*/
|
|
4444
|
-
const VERSION = '0.4.
|
|
4444
|
+
const VERSION = '0.4.12';
|
|
4445
4445
|
|
|
4446
4446
|
let initialized = false;
|
|
4447
4447
|
const runtimePlugin = {
|
|
@@ -23138,7 +23138,7 @@ const DEFAULT_POLICY_SOURCE = {
|
|
|
23138
23138
|
const POLICY_LOCALFILE_PROFILE = {
|
|
23139
23139
|
type: 'PolicyAuthorizer',
|
|
23140
23140
|
verifier: DEFAULT_VERIFIER_CONFIG,
|
|
23141
|
-
|
|
23141
|
+
policy_source: DEFAULT_POLICY_SOURCE,
|
|
23142
23142
|
};
|
|
23143
23143
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_DEFAULT, DEFAULT_PROFILE, { source: 'authorization-profile-factory' });
|
|
23144
23144
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_OAUTH2, OAUTH2_PROFILE, { source: 'authorization-profile-factory' });
|
|
@@ -23367,6 +23367,10 @@ const VALID_EFFECTS = ['allow', 'deny'];
|
|
|
23367
23367
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
23368
23368
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
23369
23369
|
*
|
|
23370
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
23371
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
23372
|
+
* while `**` matches across all separators.
|
|
23373
|
+
*
|
|
23370
23374
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
23371
23375
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
23372
23376
|
*/
|
|
@@ -23404,10 +23408,15 @@ function escapeRegex(str) {
|
|
|
23404
23408
|
* Converts a glob pattern to a regex pattern.
|
|
23405
23409
|
*
|
|
23406
23410
|
* Glob syntax:
|
|
23407
|
-
* - `*` matches a single segment (
|
|
23408
|
-
* - `**` matches any number of segments (including zero)
|
|
23411
|
+
* - `*` matches a single segment (not crossing `.`, `/`, or `@` separators)
|
|
23412
|
+
* - `**` matches any number of segments (including zero), crossing all separators
|
|
23413
|
+
* - `?` matches a single character (not a separator)
|
|
23409
23414
|
* - Other characters are matched literally
|
|
23410
23415
|
*
|
|
23416
|
+
* The multi-separator approach treats `.`, `/`, and `@` as equivalent segment
|
|
23417
|
+
* separators. This provides clean semantics for both logical addresses
|
|
23418
|
+
* (e.g., `name@domain.fabric`) and physical addresses (e.g., `name@/path/to/node`).
|
|
23419
|
+
*
|
|
23411
23420
|
* @param glob - The glob pattern to convert
|
|
23412
23421
|
* @returns A regex pattern string (without anchors)
|
|
23413
23422
|
*/
|
|
@@ -23417,19 +23426,19 @@ function globToRegex(glob) {
|
|
|
23417
23426
|
while (i < glob.length) {
|
|
23418
23427
|
if (glob[i] === '*') {
|
|
23419
23428
|
if (glob[i + 1] === '*') {
|
|
23420
|
-
// `**` matches any characters (including
|
|
23429
|
+
// `**` matches any characters (including all separators)
|
|
23421
23430
|
parts.push('.*');
|
|
23422
23431
|
i += 2;
|
|
23423
23432
|
}
|
|
23424
23433
|
else {
|
|
23425
|
-
// `*` matches any characters except
|
|
23426
|
-
parts.push('[
|
|
23434
|
+
// `*` matches any characters except separators (., /, @)
|
|
23435
|
+
parts.push('[^./@]*');
|
|
23427
23436
|
i += 1;
|
|
23428
23437
|
}
|
|
23429
23438
|
}
|
|
23430
23439
|
else if (glob[i] === '?') {
|
|
23431
|
-
// `?` matches a single character (not a
|
|
23432
|
-
parts.push('[
|
|
23440
|
+
// `?` matches a single character (not a separator)
|
|
23441
|
+
parts.push('[^./@]');
|
|
23433
23442
|
i += 1;
|
|
23434
23443
|
}
|
|
23435
23444
|
else {
|
package/dist/node/node.mjs
CHANGED
|
@@ -4435,12 +4435,12 @@ async function ensureRuntimeFactoriesRegistered(registry = Registry) {
|
|
|
4435
4435
|
}
|
|
4436
4436
|
|
|
4437
4437
|
// This file is auto-generated during build - do not edit manually
|
|
4438
|
-
// Generated from package.json version: 0.4.
|
|
4438
|
+
// Generated from package.json version: 0.4.12
|
|
4439
4439
|
/**
|
|
4440
4440
|
* The package version, injected at build time.
|
|
4441
4441
|
* @internal
|
|
4442
4442
|
*/
|
|
4443
|
-
const VERSION = '0.4.
|
|
4443
|
+
const VERSION = '0.4.12';
|
|
4444
4444
|
|
|
4445
4445
|
let initialized = false;
|
|
4446
4446
|
const runtimePlugin = {
|
|
@@ -23137,7 +23137,7 @@ const DEFAULT_POLICY_SOURCE = {
|
|
|
23137
23137
|
const POLICY_LOCALFILE_PROFILE = {
|
|
23138
23138
|
type: 'PolicyAuthorizer',
|
|
23139
23139
|
verifier: DEFAULT_VERIFIER_CONFIG,
|
|
23140
|
-
|
|
23140
|
+
policy_source: DEFAULT_POLICY_SOURCE,
|
|
23141
23141
|
};
|
|
23142
23142
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_DEFAULT, DEFAULT_PROFILE, { source: 'authorization-profile-factory' });
|
|
23143
23143
|
registerProfile(AUTHORIZER_FACTORY_BASE_TYPE, PROFILE_NAME_OAUTH2, OAUTH2_PROFILE, { source: 'authorization-profile-factory' });
|
|
@@ -23366,6 +23366,10 @@ const VALID_EFFECTS = ['allow', 'deny'];
|
|
|
23366
23366
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
23367
23367
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
23368
23368
|
*
|
|
23369
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
23370
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
23371
|
+
* while `**` matches across all separators.
|
|
23372
|
+
*
|
|
23369
23373
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
23370
23374
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
23371
23375
|
*/
|
|
@@ -23403,10 +23407,15 @@ function escapeRegex(str) {
|
|
|
23403
23407
|
* Converts a glob pattern to a regex pattern.
|
|
23404
23408
|
*
|
|
23405
23409
|
* Glob syntax:
|
|
23406
|
-
* - `*` matches a single segment (
|
|
23407
|
-
* - `**` matches any number of segments (including zero)
|
|
23410
|
+
* - `*` matches a single segment (not crossing `.`, `/`, or `@` separators)
|
|
23411
|
+
* - `**` matches any number of segments (including zero), crossing all separators
|
|
23412
|
+
* - `?` matches a single character (not a separator)
|
|
23408
23413
|
* - Other characters are matched literally
|
|
23409
23414
|
*
|
|
23415
|
+
* The multi-separator approach treats `.`, `/`, and `@` as equivalent segment
|
|
23416
|
+
* separators. This provides clean semantics for both logical addresses
|
|
23417
|
+
* (e.g., `name@domain.fabric`) and physical addresses (e.g., `name@/path/to/node`).
|
|
23418
|
+
*
|
|
23410
23419
|
* @param glob - The glob pattern to convert
|
|
23411
23420
|
* @returns A regex pattern string (without anchors)
|
|
23412
23421
|
*/
|
|
@@ -23416,19 +23425,19 @@ function globToRegex(glob) {
|
|
|
23416
23425
|
while (i < glob.length) {
|
|
23417
23426
|
if (glob[i] === '*') {
|
|
23418
23427
|
if (glob[i + 1] === '*') {
|
|
23419
|
-
// `**` matches any characters (including
|
|
23428
|
+
// `**` matches any characters (including all separators)
|
|
23420
23429
|
parts.push('.*');
|
|
23421
23430
|
i += 2;
|
|
23422
23431
|
}
|
|
23423
23432
|
else {
|
|
23424
|
-
// `*` matches any characters except
|
|
23425
|
-
parts.push('[
|
|
23433
|
+
// `*` matches any characters except separators (., /, @)
|
|
23434
|
+
parts.push('[^./@]*');
|
|
23426
23435
|
i += 1;
|
|
23427
23436
|
}
|
|
23428
23437
|
}
|
|
23429
23438
|
else if (glob[i] === '?') {
|
|
23430
|
-
// `?` matches a single character (not a
|
|
23431
|
-
parts.push('[
|
|
23439
|
+
// `?` matches a single character (not a separator)
|
|
23440
|
+
parts.push('[^./@]');
|
|
23432
23441
|
i += 1;
|
|
23433
23442
|
}
|
|
23434
23443
|
else {
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* - Glob patterns: `*` (single segment), `**` (any depth), `?` (single char)
|
|
6
6
|
* - Regex patterns: patterns starting with `^` (for advanced/BSL use only)
|
|
7
7
|
*
|
|
8
|
+
* Segment separators: `.`, `/`, and `@` are all treated as equivalent segment
|
|
9
|
+
* boundaries. The `*` wildcard matches any characters except these separators,
|
|
10
|
+
* while `**` matches across all separators.
|
|
11
|
+
*
|
|
8
12
|
* The OSS/basic policy uses glob-only matching via `compileGlobPattern()`.
|
|
9
13
|
* The advanced/BSL policy may use `compilePattern()` which interprets `^` as regex.
|
|
10
14
|
*/
|
package/dist/types/version.d.ts
CHANGED