@naylence/runtime 0.3.5-test.903 → 0.3.5-test.904
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 +9 -0
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.mjs +9 -1
- package/dist/browser/index.mjs.map +1 -1
- package/dist/cjs/naylence/fame/util/runtime-version.js +15 -332
- package/dist/cjs/naylence/fame/util/runtime-version.js.map +1 -1
- package/dist/cjs/runtime-isomorphic.js +4 -1
- package/dist/cjs/runtime-isomorphic.js.map +1 -1
- package/dist/cjs/version.js +11 -0
- package/dist/cjs/version.js.map +1 -0
- package/dist/esm/naylence/fame/util/runtime-version.js +15 -299
- package/dist/esm/naylence/fame/util/runtime-version.js.map +1 -1
- package/dist/esm/runtime-isomorphic.js +2 -0
- package/dist/esm/runtime-isomorphic.js.map +1 -1
- package/dist/esm/version.js +8 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/node/index.cjs +9 -0
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +9 -1
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.cjs +28 -304
- package/dist/node/node.cjs.map +1 -1
- package/dist/node/node.mjs +28 -305
- package/dist/node/node.mjs.map +1 -1
- package/dist/types/naylence/fame/util/runtime-version.d.ts +12 -0
- package/dist/types/naylence/fame/util/runtime-version.d.ts.map +1 -1
- package/dist/types/runtime-isomorphic.d.ts +1 -0
- package/dist/types/runtime-isomorphic.d.ts.map +1 -1
- package/dist/types/version.d.ts +6 -0
- package/dist/types/version.d.ts.map +1 -0
- package/package.json +4 -3
package/dist/node/node.mjs
CHANGED
|
@@ -5284,6 +5284,14 @@ for (const [name, config] of Object.entries(SQLITE_PROFILES)) {
|
|
|
5284
5284
|
registerStorageProfile(name, config);
|
|
5285
5285
|
}
|
|
5286
5286
|
|
|
5287
|
+
// This file is auto-generated during build - do not edit manually
|
|
5288
|
+
// Generated from package.json version: 0.3.5-test.904
|
|
5289
|
+
/**
|
|
5290
|
+
* The package version, injected at build time.
|
|
5291
|
+
* @internal
|
|
5292
|
+
*/
|
|
5293
|
+
const VERSION = '0.3.5-test.904';
|
|
5294
|
+
|
|
5287
5295
|
/**
|
|
5288
5296
|
* Fame errors module - Fame protocol specific error classes
|
|
5289
5297
|
*/
|
|
@@ -5533,7 +5541,7 @@ class MemoryMetricsEmitter {
|
|
|
5533
5541
|
}
|
|
5534
5542
|
|
|
5535
5543
|
const POOL_WILDCARD_PREFIX = '*.';
|
|
5536
|
-
function readEnvValue$
|
|
5544
|
+
function readEnvValue$1(aliases) {
|
|
5537
5545
|
const processRef = globalThis?.process;
|
|
5538
5546
|
const env = processRef?.env;
|
|
5539
5547
|
if (!env) {
|
|
@@ -5550,7 +5558,7 @@ function readEnvValue$2(aliases) {
|
|
|
5550
5558
|
const DNS_HOSTNAME_PATTERN = /^(?=.{1,253}$)(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.?)+$/;
|
|
5551
5559
|
const DNS_LABEL_PATTERN = /^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;
|
|
5552
5560
|
function getFameRoot() {
|
|
5553
|
-
return (readEnvValue$
|
|
5561
|
+
return (readEnvValue$1(['FAME_ROOT', 'fame_root', 'fameRoot', 'FameRoot']) ??
|
|
5554
5562
|
'fame.fabric');
|
|
5555
5563
|
}
|
|
5556
5564
|
function isPoolLogical(logical) {
|
|
@@ -5760,7 +5768,7 @@ function matchesPoolAddress(address, poolAddress) {
|
|
|
5760
5768
|
return false;
|
|
5761
5769
|
}
|
|
5762
5770
|
catch (error) {
|
|
5763
|
-
if (readEnvValue$
|
|
5771
|
+
if (readEnvValue$1(['NODE_ENV', 'node_env', 'nodeEnv', 'NodeEnv']) !==
|
|
5764
5772
|
'production') {
|
|
5765
5773
|
// eslint-disable-next-line no-console
|
|
5766
5774
|
console.debug('matchesPoolAddress failed', error);
|
|
@@ -27390,7 +27398,7 @@ function toCamelAlias(snakeKey) {
|
|
|
27390
27398
|
.toLowerCase()
|
|
27391
27399
|
.replace(/_([a-z])/g, (_match, char) => char.toUpperCase());
|
|
27392
27400
|
}
|
|
27393
|
-
function readEnvValue
|
|
27401
|
+
function readEnvValue(env, snakeKey) {
|
|
27394
27402
|
if (!env) {
|
|
27395
27403
|
return undefined;
|
|
27396
27404
|
}
|
|
@@ -27414,7 +27422,7 @@ function readEnvValue$1(env, snakeKey) {
|
|
|
27414
27422
|
return undefined;
|
|
27415
27423
|
}
|
|
27416
27424
|
function resolveShowEnvelopesFlag(env) {
|
|
27417
|
-
const candidate = readEnvValue
|
|
27425
|
+
const candidate = readEnvValue(env, ENV_VAR_SHOW_ENVELOPES);
|
|
27418
27426
|
if (typeof candidate !== 'string') {
|
|
27419
27427
|
return false;
|
|
27420
27428
|
}
|
|
@@ -29527,308 +29535,23 @@ var httpListener = /*#__PURE__*/Object.freeze({
|
|
|
29527
29535
|
getHttpListenerInstance: getHttpListenerInstance
|
|
29528
29536
|
});
|
|
29529
29537
|
|
|
29530
|
-
|
|
29531
|
-
|
|
29532
|
-
|
|
29533
|
-
|
|
29534
|
-
|
|
29535
|
-
|
|
29536
|
-
|
|
29537
|
-
|
|
29538
|
-
'../package.json',
|
|
29539
|
-
'./package.json',
|
|
29540
|
-
];
|
|
29541
|
-
let importWithAttributesFn;
|
|
29542
|
-
function getImportWithAttributesFn() {
|
|
29543
|
-
if (importWithAttributesFn !== undefined) {
|
|
29544
|
-
return importWithAttributesFn;
|
|
29545
|
-
}
|
|
29546
|
-
try {
|
|
29547
|
-
importWithAttributesFn = new Function('specifier', 'options', 'return import(specifier, options);');
|
|
29548
|
-
}
|
|
29549
|
-
catch {
|
|
29550
|
-
importWithAttributesFn = null;
|
|
29551
|
-
}
|
|
29552
|
-
return importWithAttributesFn;
|
|
29553
|
-
}
|
|
29554
|
-
let cachedVersion;
|
|
29555
|
-
let embeddedPackageVersion;
|
|
29556
|
-
let embeddedPackageVersionPromise;
|
|
29557
|
-
async function importEmbeddedPackageMetadata() {
|
|
29558
|
-
const importOptions = [
|
|
29559
|
-
{ 'with': { type: 'json' } },
|
|
29560
|
-
{ 'assert': { type: 'json' } },
|
|
29561
|
-
];
|
|
29562
|
-
const importFn = getImportWithAttributesFn();
|
|
29563
|
-
if (!importFn) {
|
|
29564
|
-
return null;
|
|
29565
|
-
}
|
|
29566
|
-
for (const candidatePath of PACKAGE_JSON_RELATIVE_PATHS) {
|
|
29567
|
-
for (const options of importOptions) {
|
|
29568
|
-
try {
|
|
29569
|
-
const result = await importFn(candidatePath, options);
|
|
29570
|
-
const candidate = result.default ?? result;
|
|
29571
|
-
if (candidate && typeof candidate === 'object') {
|
|
29572
|
-
return candidate;
|
|
29573
|
-
}
|
|
29574
|
-
}
|
|
29575
|
-
catch {
|
|
29576
|
-
// Try next option/path combination if current attempt fails.
|
|
29577
|
-
}
|
|
29578
|
-
}
|
|
29579
|
-
}
|
|
29580
|
-
return null;
|
|
29581
|
-
}
|
|
29582
|
-
async function resolveEmbeddedPackageVersion() {
|
|
29583
|
-
if (embeddedPackageVersion !== undefined) {
|
|
29584
|
-
return embeddedPackageVersion;
|
|
29585
|
-
}
|
|
29586
|
-
if (!embeddedPackageVersionPromise) {
|
|
29587
|
-
embeddedPackageVersionPromise = (async () => {
|
|
29588
|
-
const metadata = await importEmbeddedPackageMetadata();
|
|
29589
|
-
return readVersionFromPackageJson(metadata);
|
|
29590
|
-
})();
|
|
29591
|
-
}
|
|
29592
|
-
embeddedPackageVersion = await embeddedPackageVersionPromise;
|
|
29593
|
-
return embeddedPackageVersion;
|
|
29594
|
-
}
|
|
29595
|
-
function readVersionFromPackageJson(candidate) {
|
|
29596
|
-
if (!candidate || typeof candidate !== 'object') {
|
|
29597
|
-
return null;
|
|
29598
|
-
}
|
|
29599
|
-
const { name, version } = candidate;
|
|
29600
|
-
if (name === '@naylence/runtime' && typeof version === 'string') {
|
|
29601
|
-
return version;
|
|
29602
|
-
}
|
|
29603
|
-
return null;
|
|
29604
|
-
}
|
|
29605
|
-
async function tryReadPackageVersion(absolutePath) {
|
|
29606
|
-
try {
|
|
29607
|
-
const [{ readFile }, pathModule] = await Promise.all([
|
|
29608
|
-
import('node:fs/promises'),
|
|
29609
|
-
import('node:path'),
|
|
29610
|
-
]);
|
|
29611
|
-
let candidateDir = pathModule.dirname(absolutePath);
|
|
29612
|
-
for (let depth = 0; depth < 10; depth += 1) {
|
|
29613
|
-
const packageJsonPath = pathModule.join(candidateDir, 'package.json');
|
|
29614
|
-
try {
|
|
29615
|
-
const contents = await readFile(packageJsonPath, 'utf-8');
|
|
29616
|
-
const parsed = JSON.parse(contents);
|
|
29617
|
-
const extracted = readVersionFromPackageJson(parsed);
|
|
29618
|
-
if (extracted) {
|
|
29619
|
-
return extracted;
|
|
29620
|
-
}
|
|
29621
|
-
}
|
|
29622
|
-
catch {
|
|
29623
|
-
// Continue traversing upwards until we exhaust likely directories
|
|
29624
|
-
}
|
|
29625
|
-
const parentDir = pathModule.dirname(candidateDir);
|
|
29626
|
-
if (parentDir === candidateDir) {
|
|
29627
|
-
break;
|
|
29628
|
-
}
|
|
29629
|
-
candidateDir = parentDir;
|
|
29630
|
-
}
|
|
29631
|
-
}
|
|
29632
|
-
catch {
|
|
29633
|
-
// Ignore filesystem failures; callers will continue with other strategies
|
|
29634
|
-
}
|
|
29635
|
-
return null;
|
|
29636
|
-
}
|
|
29637
|
-
async function tryResolveVersionFromModule(resolveFn) {
|
|
29638
|
-
if (!resolveFn) {
|
|
29639
|
-
return null;
|
|
29640
|
-
}
|
|
29641
|
-
try {
|
|
29642
|
-
const entryPoint = resolveFn('@naylence/runtime');
|
|
29643
|
-
return await tryReadPackageVersion(entryPoint);
|
|
29644
|
-
}
|
|
29645
|
-
catch {
|
|
29646
|
-
return null;
|
|
29647
|
-
}
|
|
29648
|
-
}
|
|
29649
|
-
function tryGetProcessCwdFileUrl(processRef) {
|
|
29650
|
-
const candidates = [];
|
|
29651
|
-
if (processRef && typeof processRef.cwd === 'function') {
|
|
29652
|
-
candidates.push(() => processRef.cwd?.());
|
|
29653
|
-
}
|
|
29654
|
-
if (typeof process !== 'undefined' && process && process !== processRef) {
|
|
29655
|
-
const maybeProcess = process;
|
|
29656
|
-
if (maybeProcess &&
|
|
29657
|
-
typeof maybeProcess.cwd === 'function') {
|
|
29658
|
-
candidates.push(() => maybeProcess.cwd?.());
|
|
29659
|
-
}
|
|
29660
|
-
}
|
|
29661
|
-
for (const getPath of candidates) {
|
|
29662
|
-
try {
|
|
29663
|
-
const result = getPath();
|
|
29664
|
-
if (typeof result === 'string' && result.length > 0) {
|
|
29665
|
-
const normalized = result.endsWith('/') ? result : `${result}/`;
|
|
29666
|
-
return new URL('./', `file://${normalized}`);
|
|
29667
|
-
}
|
|
29668
|
-
}
|
|
29669
|
-
catch {
|
|
29670
|
-
// Ignore candidates that throw so we can fall back to other strategies.
|
|
29671
|
-
}
|
|
29672
|
-
}
|
|
29673
|
-
return null;
|
|
29674
|
-
}
|
|
29675
|
-
function tryGetImportMetaUrl() {
|
|
29676
|
-
try {
|
|
29677
|
-
// eslint-disable-next-line no-eval
|
|
29678
|
-
return (0, eval)('import.meta.url');
|
|
29679
|
-
}
|
|
29680
|
-
catch {
|
|
29681
|
-
return undefined;
|
|
29682
|
-
}
|
|
29683
|
-
}
|
|
29684
|
-
function readEnvValue(env, aliases) {
|
|
29685
|
-
if (!env) {
|
|
29686
|
-
return undefined;
|
|
29687
|
-
}
|
|
29688
|
-
for (const alias of aliases) {
|
|
29689
|
-
const value = env[alias];
|
|
29690
|
-
if (typeof value === 'string') {
|
|
29691
|
-
return value;
|
|
29692
|
-
}
|
|
29693
|
-
}
|
|
29694
|
-
return undefined;
|
|
29695
|
-
}
|
|
29696
|
-
function resolveFromEnv(env) {
|
|
29697
|
-
if (!env) {
|
|
29698
|
-
return null;
|
|
29699
|
-
}
|
|
29700
|
-
const explicitRaw = readEnvValue(env, [
|
|
29701
|
-
'NAYLENCE_RUNTIME_VERSION',
|
|
29702
|
-
'naylence_runtime_version',
|
|
29703
|
-
'naylenceRuntimeVersion',
|
|
29704
|
-
'NaylenceRuntimeVersion',
|
|
29705
|
-
]);
|
|
29706
|
-
const explicit = explicitRaw?.trim();
|
|
29707
|
-
if (explicit) {
|
|
29708
|
-
return explicit;
|
|
29709
|
-
}
|
|
29710
|
-
const npmName = readEnvValue(env, ['npm_package_name', 'npmPackageName']);
|
|
29711
|
-
const npmVersion = readEnvValue(env, [
|
|
29712
|
-
'npm_package_version',
|
|
29713
|
-
'npmPackageVersion',
|
|
29714
|
-
]);
|
|
29715
|
-
if (npmName === '@naylence/runtime' && typeof npmVersion === 'string') {
|
|
29716
|
-
return npmVersion;
|
|
29717
|
-
}
|
|
29718
|
-
return null;
|
|
29719
|
-
}
|
|
29720
|
-
async function resolveFromPackageJson() {
|
|
29721
|
-
try {
|
|
29722
|
-
const processRef = globalThis?.process;
|
|
29723
|
-
const cwdUrl = tryGetProcessCwdFileUrl(processRef);
|
|
29724
|
-
try {
|
|
29725
|
-
if (typeof require === 'function') {
|
|
29726
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require
|
|
29727
|
-
const localRequire = require;
|
|
29728
|
-
for (const candidate of PACKAGE_JSON_RELATIVE_PATHS) {
|
|
29729
|
-
try {
|
|
29730
|
-
const result = localRequire(candidate);
|
|
29731
|
-
const extracted = readVersionFromPackageJson(result);
|
|
29732
|
-
if (extracted) {
|
|
29733
|
-
return extracted;
|
|
29734
|
-
}
|
|
29735
|
-
}
|
|
29736
|
-
catch {
|
|
29737
|
-
// Continue trying remaining candidates
|
|
29738
|
-
}
|
|
29739
|
-
}
|
|
29740
|
-
// Fallback: try direct package resolution
|
|
29741
|
-
try {
|
|
29742
|
-
const result = localRequire('@naylence/runtime/package.json');
|
|
29743
|
-
const extracted = readVersionFromPackageJson(result);
|
|
29744
|
-
if (extracted) {
|
|
29745
|
-
return extracted;
|
|
29746
|
-
}
|
|
29747
|
-
}
|
|
29748
|
-
catch {
|
|
29749
|
-
// Continue to next strategy
|
|
29750
|
-
}
|
|
29751
|
-
const resolvedFromLocalRequire = await tryResolveVersionFromModule(typeof localRequire.resolve === 'function'
|
|
29752
|
-
? (specifier) => localRequire.resolve(specifier)
|
|
29753
|
-
: undefined);
|
|
29754
|
-
if (resolvedFromLocalRequire) {
|
|
29755
|
-
return resolvedFromLocalRequire;
|
|
29756
|
-
}
|
|
29757
|
-
}
|
|
29758
|
-
}
|
|
29759
|
-
catch {
|
|
29760
|
-
// ignore and fall through to dynamic require resolution
|
|
29761
|
-
}
|
|
29762
|
-
const { createRequire } = await import('node:module');
|
|
29763
|
-
const importMetaUrl = tryGetImportMetaUrl();
|
|
29764
|
-
const baseSpecifier = importMetaUrl ?? cwdUrl ?? new URL('./', 'file:///');
|
|
29765
|
-
const requireForCurrentModule = createRequire(baseSpecifier);
|
|
29766
|
-
for (const candidate of PACKAGE_JSON_RELATIVE_PATHS) {
|
|
29767
|
-
try {
|
|
29768
|
-
const result = requireForCurrentModule(candidate);
|
|
29769
|
-
const extracted = readVersionFromPackageJson(result);
|
|
29770
|
-
if (extracted) {
|
|
29771
|
-
return extracted;
|
|
29772
|
-
}
|
|
29773
|
-
}
|
|
29774
|
-
catch {
|
|
29775
|
-
// Continue trying remaining candidates
|
|
29776
|
-
}
|
|
29777
|
-
}
|
|
29778
|
-
const moduleResolvedVersion = await tryResolveVersionFromModule(typeof requireForCurrentModule.resolve === 'function'
|
|
29779
|
-
? (specifier) => requireForCurrentModule.resolve(specifier)
|
|
29780
|
-
: undefined);
|
|
29781
|
-
if (moduleResolvedVersion) {
|
|
29782
|
-
return moduleResolvedVersion;
|
|
29783
|
-
}
|
|
29784
|
-
const cwdRequire = cwdUrl ? createRequire(cwdUrl) : null;
|
|
29785
|
-
if (cwdRequire) {
|
|
29786
|
-
const cwdResolvedVersion = await tryResolveVersionFromModule(typeof cwdRequire.resolve === 'function'
|
|
29787
|
-
? (specifier) => cwdRequire.resolve(specifier)
|
|
29788
|
-
: undefined);
|
|
29789
|
-
if (cwdResolvedVersion) {
|
|
29790
|
-
return cwdResolvedVersion;
|
|
29791
|
-
}
|
|
29792
|
-
try {
|
|
29793
|
-
const result = cwdRequire('@naylence/runtime/package.json');
|
|
29794
|
-
const extracted = readVersionFromPackageJson(result);
|
|
29795
|
-
if (extracted) {
|
|
29796
|
-
return extracted;
|
|
29797
|
-
}
|
|
29798
|
-
}
|
|
29799
|
-
catch {
|
|
29800
|
-
// All attempts failed
|
|
29801
|
-
}
|
|
29802
|
-
}
|
|
29803
|
-
}
|
|
29804
|
-
catch {
|
|
29805
|
-
// Ignore failures and fall through to null
|
|
29806
|
-
}
|
|
29807
|
-
return null;
|
|
29808
|
-
}
|
|
29538
|
+
/**
|
|
29539
|
+
* Resolves the runtime version.
|
|
29540
|
+
*
|
|
29541
|
+
* The version is now injected at build time from package.json into version.ts.
|
|
29542
|
+
* This function maintains backward compatibility by returning a Promise.
|
|
29543
|
+
*
|
|
29544
|
+
* @returns The runtime version string, or null if not available.
|
|
29545
|
+
*/
|
|
29809
29546
|
async function resolveRuntimeVersion() {
|
|
29810
|
-
|
|
29811
|
-
return cachedVersion;
|
|
29812
|
-
}
|
|
29813
|
-
const envVersion = resolveFromEnv(globalThis?.process?.env);
|
|
29814
|
-
if (envVersion) {
|
|
29815
|
-
cachedVersion = envVersion;
|
|
29816
|
-
return cachedVersion;
|
|
29817
|
-
}
|
|
29818
|
-
const embeddedVersion = await resolveEmbeddedPackageVersion();
|
|
29819
|
-
if (embeddedVersion) {
|
|
29820
|
-
cachedVersion = embeddedVersion;
|
|
29821
|
-
return cachedVersion;
|
|
29822
|
-
}
|
|
29823
|
-
const packageVersion = await resolveFromPackageJson();
|
|
29824
|
-
cachedVersion = packageVersion ?? null;
|
|
29825
|
-
return cachedVersion;
|
|
29547
|
+
return VERSION || null;
|
|
29826
29548
|
}
|
|
29549
|
+
/**
|
|
29550
|
+
* For testing purposes only. No-op since version is now static.
|
|
29551
|
+
* Kept for backward compatibility with existing tests.
|
|
29552
|
+
*/
|
|
29827
29553
|
function resetCachedRuntimeVersionForTesting() {
|
|
29828
|
-
|
|
29829
|
-
embeddedPackageVersion = undefined;
|
|
29830
|
-
embeddedPackageVersionPromise = undefined;
|
|
29831
|
-
importWithAttributesFn = undefined;
|
|
29554
|
+
// No-op: version is now static and injected at build time
|
|
29832
29555
|
}
|
|
29833
29556
|
|
|
29834
29557
|
function isSinkService(service) {
|
|
@@ -32062,5 +31785,5 @@ var websocketTransportProvisioner = /*#__PURE__*/Object.freeze({
|
|
|
32062
31785
|
WebSocketTransportProvisionerFactory: WebSocketTransportProvisionerFactory
|
|
32063
31786
|
});
|
|
32064
31787
|
|
|
32065
|
-
export { ADMISSION_CLIENT_FACTORY_BASE_TYPE, ATTACHMENT_KEY_VALIDATOR_FACTORY_BASE_TYPE, AUTHORIZER_FACTORY_BASE_TYPE, AUTH_INJECTION_STRATEGY_FACTORY_BASE_TYPE, AnsiColor, AsyncLock, AttachmentKeyValidator, AuthInjectionStrategyFactory, AuthorizerFactory, BackPressureFull, BaseAsyncConnector, BaseNodeEventListener, BindingManager, BindingStoreEntryRecord, BrowserAutoKeyCredentialProvider, BrowserWrappedKeyCredentialProvider, CERTIFICATE_MANAGER_FACTORY_BASE_TYPE, CREDENTIAL_PROVIDER_FACTORY_BASE_TYPE, CRYPTO_LEVEL_SECURITY_ORDER, CertificateManagerFactory, ConnectorConfigDefaults, ConnectorFactory, ConsoleMetricsEmitter, CryptoLevel, FACTORY_META$8 as DEFAULT_WELCOME_FACTORY_META, DefaultCryptoProvider, DefaultHttpServer, DefaultKeyManager, DefaultSecurityManager, DefaultSecurityPolicy, DefaultWelcomeService, DefaultWelcomeServiceFactory, DevFixedKeyCredentialProvider, ENCRYPTION_MANAGER_FACTORY_BASE_TYPE, ENVELOPE_SIGNER_FACTORY_BASE_TYPE, ENVELOPE_VERIFIER_FACTORY_BASE_TYPE, ENV_VAR_DEFAULT_ENCRYPTION_LEVEL, ENV_VAR_HMAC_SECRET, ENV_VAR_JWKS_URL, ENV_VAR_JWT_ALGORITHM$2 as ENV_VAR_JWT_ALGORITHM, ENV_VAR_JWT_AUDIENCE$1 as ENV_VAR_JWT_AUDIENCE, ENV_VAR_JWT_REVERSE_AUTH_AUDIENCE, ENV_VAR_JWT_REVERSE_AUTH_TRUSTED_ISSUER, ENV_VAR_JWT_TRUSTED_ISSUER, ENV_VAR_SHOW_ENVELOPES$1 as ENV_VAR_SHOW_ENVELOPES, EncryptedKeyValueStore, EncryptedStorageProviderBase, EncryptedValue, EncryptionConfiguration, EncryptionManagerFactory, EncryptionResult, EncryptionStatus, EnvCredentialProvider, EnvelopeContext, EnvelopeListenerManager, EnvelopeSecurityHandler, EnvelopeSignerFactory, EnvelopeVerifierFactory, FACTORY_META$9 as FACTORY_META, FAME_FABRIC_FACTORY_BASE_TYPE, FIXED_PREFIX_LEN, FameAuthorizedDeliveryContextSchema, FameConnectError, FameEnvironmentContext, FameError, FameMessageTooLarge, FameNode, FameNodeAuthorizationContextSchema, FameProtocolError, FameTransportClose, FlowController, GRANT_PURPOSE_NODE_ATTACH, HTTP_CONNECTION_GRANT_TYPE, HTTP_STATELESS_CONNECTOR_TYPE, HttpListener, HttpStatelessConnector, InMemoryBinding, InMemoryFanoutBroker, InMemoryKeyValueStore, InMemoryReadWriteChannel, InMemoryStorageProvider, InProcessFameFabric, InProcessFameFabricFactory, IndexedDBKeyValueStore, IndexedDBStorageProvider, InvalidPassphraseError, JWKValidationError, KEY_MANAGER_FACTORY_BASE_TYPE, KEY_STORE_FACTORY_BASE_TYPE, KeyInfo, KeyManagementHandler, KeyManagerFactory, KeyStore, KeyStoreFactory, KeyValidationError, LOAD_BALANCER_STICKINESS_MANAGER_FACTORY_BASE_TYPE, LoadBalancerStickinessManagerFactory, LogLevel, LogLevelNames, MemoryMetricsEmitter, NODE_LIKE_FACTORY_BASE_TYPE, NODE_PLACEMENT_STRATEGY_FACTORY_BASE_TYPE, NoOpMetricsEmitter, NoSecurityPolicy, NodeFactory, NodePlacementStrategyFactory, NoneCredentialProvider, NoopEncryptionManager, NoopKeyValidator, NotAuthorized, PROFILE_NAME_GATED, PROFILE_NAME_GATED_CALLBACK, PROFILE_NAME_OPEN, PROFILE_NAME_OVERLAY, PROFILE_NAME_OVERLAY_CALLBACK, PROFILE_NAME_STRICT_OVERLAY, PromptCredentialProvider, QueueFullError, REPLICA_STICKINESS_MANAGER_FACTORY_BASE_TYPE, REQUIRED_FIELDS_BY_KTY, ReplicaStickinessManagerFactory, RootSessionManager, RouteManager, RpcMixin, RpcProxy, SEALED_ENVELOPE_NONCE_LENGTH, SEALED_ENVELOPE_OVERHEAD, SEALED_ENVELOPE_PRIVATE_KEY_LENGTH, SEALED_ENVELOPE_PUBLIC_KEY_LENGTH, SEALED_ENVELOPE_TAG_LENGTH, SECURE_CHANNEL_MANAGER_FACTORY_BASE_TYPE, SECURITY_MANAGER_FACTORY_BASE_TYPE, SECURITY_POLICY_FACTORY_BASE_TYPE, SQLiteKeyValueStore, SQLiteStorageProvider, STORAGE_PROVIDER_FACTORY_BASE_TYPE, SecretSource, SecretStoreCredentialProvider, SecureChannelFrameHandler, SecureChannelManagerFactory, SecurityAction, SecurityRequirements, Sentinel, SentinelFactory, SessionKeyCredentialProvider, SignaturePolicy, SigningConfig as SigningConfigClass, SigningConfiguration, SimpleLoadBalancerStickinessManager, SimpleLoadBalancerStickinessManagerFactory, StaticCredentialProvider, StorageAESEncryptionManager, TOKEN_ISSUER_FACTORY_BASE_TYPE, TOKEN_PROVIDER_FACTORY_BASE_TYPE, TOKEN_VERIFIER_FACTORY_BASE_TYPE, TRANSPORT_LISTENER_FACTORY_BASE_TYPE, TRANSPORT_PROVISIONER_FACTORY_BASE_TYPE, TaskSpawner, TokenIssuerFactory, TokenProviderFactory, TokenVerifierFactory, TransportListener, TransportProvisionerFactory, TtlValidationError, UpstreamSessionManager, VALID_CURVES_BY_KTY, VALID_KEY_USES, WEBSOCKET_CONNECTION_GRANT_TYPE, WELCOME_SERVICE_FACTORY_BASE_TYPE, WebSocketCloseCode, WebSocketConnector, WebSocketListener, WebSocketState, WelcomeServiceFactory, _NoopFlowController, __runtimePluginLoader, addEnvelopeFields, addLogLevel, addTimestamp, assertConnectionGrant, assertGrant, basicConfig, camelToSnakeCase, capitalizeFirstLetter, color, compareCryptoLevels, compiledPathPattern, consoleTransport, convertWildcardLogicalToDnsConstraint, createConnectorConfig, createEd25519Keypair, createHostLogicalUri, createJwksRouter, createLogicalUri, createNodeDeliveryContext, createApp as createOAuth2ServerApp, createOAuth2TokenRouter, createOpenIDConfigurationRouter, createResource, createRpcProxy, createRsaKeypair, createTransportCloseError, createX25519Keypair, credentialToString, currentTraceId$1 as currentTraceId, debounce, decodeFameDataPayload, deepMerge, defaultJsonEncoder, delay, dropEmpty, enableLogging, extractId, extractPoolAddressBase, extractPoolBase, filterKeysByUse, formatTimestamp, formatTimestampForConsole$1 as formatTimestampForConsole, getCurrentEnvelope, getCurrentNode, getFameRoot, getHttpListenerInstance, getKeyProvider, getKeyStore, getLogger, getNode, getWebsocketListenerInstance, hasCryptoSupport, hostnameToLogical, hostnamesToLogicals, httpGrantToConnectorConfig, isAuthInjectionStrategy, isConnectionGrant, isConnectorConfig, isEnvelopeLoggingEnabled, isFameError, isFameErrorType, isGrant, isHttpConnectionGrant, isNodeLike, isPlainObject$3 as isPlainObject, isPoolAddress, isPoolLogical, isTokenExpired, isTokenProvider, isTokenValid, isWebSocketConnectionGrant, jsonDumps, logicalPatternsToDnsConstraints, logicalToHostname, logicalsToHostnames, matchesPoolAddress, matchesPoolLogical, maybeAwait, nodeWelcomeRouter, nodeWelcomeRouterPlugin, normalizeEncryptionConfig, normalizeEnvelopeSnapshot, normalizeExtendedFameConfig, normalizeHttpConnectionGrant, normalizeInboundCryptoRules, normalizeInboundSigningRules, normalizeOutboundCryptoRules, normalizeOutboundSigningRules, normalizePath, normalizeResponseCryptoRules, normalizeResponseSigningRules, normalizeSecretSource, normalizeSecurityRequirements, normalizeSigningConfig, normalizeWebSocketConnectionGrant, objectToBytes, operation, parseSealedEnvelope, pinoTransport, prettyModel$1 as prettyModel, pushNode, registerDefaultFactories, registerNodePlacementStrategyFactory, registerRuntimeFactories, requireCryptoSupport, retryWithBackoff, main as runOAuth2Server, runWithNodeContext, safeColor, sealedDecrypt, sealedEncrypt, secureDigest, setKeyStore, showEnvelopes$1 as showEnvelopes, sleep, snakeToCamelCase, stringifyNonPrimitives, supportsColor, throttle, urlsafeBase64Decode, urlsafeBase64Encode, validateCacheTtlSec, validateEncryptionKey, validateHostLogical, validateHostLogicals, validateJwkComplete, validateJwkStructure, validateJwkUseField, validateJwtTokenTtlSec, validateKeyCorrelationTtlSec, validateLogical, validateLogicalSegment, validateOAuth2TtlSec, validateSigningKey, validateTtlSec, waitForAll, waitForAllSettled, waitForAny, websocketGrantToConnectorConfig, withEnvelopeContext, withEnvelopeContextAsync, withLegacySnakeCaseKeys, withLock, withNodeContextAsync, withTimeout };
|
|
31788
|
+
export { ADMISSION_CLIENT_FACTORY_BASE_TYPE, ATTACHMENT_KEY_VALIDATOR_FACTORY_BASE_TYPE, AUTHORIZER_FACTORY_BASE_TYPE, AUTH_INJECTION_STRATEGY_FACTORY_BASE_TYPE, AnsiColor, AsyncLock, AttachmentKeyValidator, AuthInjectionStrategyFactory, AuthorizerFactory, BackPressureFull, BaseAsyncConnector, BaseNodeEventListener, BindingManager, BindingStoreEntryRecord, BrowserAutoKeyCredentialProvider, BrowserWrappedKeyCredentialProvider, CERTIFICATE_MANAGER_FACTORY_BASE_TYPE, CREDENTIAL_PROVIDER_FACTORY_BASE_TYPE, CRYPTO_LEVEL_SECURITY_ORDER, CertificateManagerFactory, ConnectorConfigDefaults, ConnectorFactory, ConsoleMetricsEmitter, CryptoLevel, FACTORY_META$8 as DEFAULT_WELCOME_FACTORY_META, DefaultCryptoProvider, DefaultHttpServer, DefaultKeyManager, DefaultSecurityManager, DefaultSecurityPolicy, DefaultWelcomeService, DefaultWelcomeServiceFactory, DevFixedKeyCredentialProvider, ENCRYPTION_MANAGER_FACTORY_BASE_TYPE, ENVELOPE_SIGNER_FACTORY_BASE_TYPE, ENVELOPE_VERIFIER_FACTORY_BASE_TYPE, ENV_VAR_DEFAULT_ENCRYPTION_LEVEL, ENV_VAR_HMAC_SECRET, ENV_VAR_JWKS_URL, ENV_VAR_JWT_ALGORITHM$2 as ENV_VAR_JWT_ALGORITHM, ENV_VAR_JWT_AUDIENCE$1 as ENV_VAR_JWT_AUDIENCE, ENV_VAR_JWT_REVERSE_AUTH_AUDIENCE, ENV_VAR_JWT_REVERSE_AUTH_TRUSTED_ISSUER, ENV_VAR_JWT_TRUSTED_ISSUER, ENV_VAR_SHOW_ENVELOPES$1 as ENV_VAR_SHOW_ENVELOPES, EncryptedKeyValueStore, EncryptedStorageProviderBase, EncryptedValue, EncryptionConfiguration, EncryptionManagerFactory, EncryptionResult, EncryptionStatus, EnvCredentialProvider, EnvelopeContext, EnvelopeListenerManager, EnvelopeSecurityHandler, EnvelopeSignerFactory, EnvelopeVerifierFactory, FACTORY_META$9 as FACTORY_META, FAME_FABRIC_FACTORY_BASE_TYPE, FIXED_PREFIX_LEN, FameAuthorizedDeliveryContextSchema, FameConnectError, FameEnvironmentContext, FameError, FameMessageTooLarge, FameNode, FameNodeAuthorizationContextSchema, FameProtocolError, FameTransportClose, FlowController, GRANT_PURPOSE_NODE_ATTACH, HTTP_CONNECTION_GRANT_TYPE, HTTP_STATELESS_CONNECTOR_TYPE, HttpListener, HttpStatelessConnector, InMemoryBinding, InMemoryFanoutBroker, InMemoryKeyValueStore, InMemoryReadWriteChannel, InMemoryStorageProvider, InProcessFameFabric, InProcessFameFabricFactory, IndexedDBKeyValueStore, IndexedDBStorageProvider, InvalidPassphraseError, JWKValidationError, KEY_MANAGER_FACTORY_BASE_TYPE, KEY_STORE_FACTORY_BASE_TYPE, KeyInfo, KeyManagementHandler, KeyManagerFactory, KeyStore, KeyStoreFactory, KeyValidationError, LOAD_BALANCER_STICKINESS_MANAGER_FACTORY_BASE_TYPE, LoadBalancerStickinessManagerFactory, LogLevel, LogLevelNames, MemoryMetricsEmitter, NODE_LIKE_FACTORY_BASE_TYPE, NODE_PLACEMENT_STRATEGY_FACTORY_BASE_TYPE, NoOpMetricsEmitter, NoSecurityPolicy, NodeFactory, NodePlacementStrategyFactory, NoneCredentialProvider, NoopEncryptionManager, NoopKeyValidator, NotAuthorized, PROFILE_NAME_GATED, PROFILE_NAME_GATED_CALLBACK, PROFILE_NAME_OPEN, PROFILE_NAME_OVERLAY, PROFILE_NAME_OVERLAY_CALLBACK, PROFILE_NAME_STRICT_OVERLAY, PromptCredentialProvider, QueueFullError, REPLICA_STICKINESS_MANAGER_FACTORY_BASE_TYPE, REQUIRED_FIELDS_BY_KTY, ReplicaStickinessManagerFactory, RootSessionManager, RouteManager, RpcMixin, RpcProxy, SEALED_ENVELOPE_NONCE_LENGTH, SEALED_ENVELOPE_OVERHEAD, SEALED_ENVELOPE_PRIVATE_KEY_LENGTH, SEALED_ENVELOPE_PUBLIC_KEY_LENGTH, SEALED_ENVELOPE_TAG_LENGTH, SECURE_CHANNEL_MANAGER_FACTORY_BASE_TYPE, SECURITY_MANAGER_FACTORY_BASE_TYPE, SECURITY_POLICY_FACTORY_BASE_TYPE, SQLiteKeyValueStore, SQLiteStorageProvider, STORAGE_PROVIDER_FACTORY_BASE_TYPE, SecretSource, SecretStoreCredentialProvider, SecureChannelFrameHandler, SecureChannelManagerFactory, SecurityAction, SecurityRequirements, Sentinel, SentinelFactory, SessionKeyCredentialProvider, SignaturePolicy, SigningConfig as SigningConfigClass, SigningConfiguration, SimpleLoadBalancerStickinessManager, SimpleLoadBalancerStickinessManagerFactory, StaticCredentialProvider, StorageAESEncryptionManager, TOKEN_ISSUER_FACTORY_BASE_TYPE, TOKEN_PROVIDER_FACTORY_BASE_TYPE, TOKEN_VERIFIER_FACTORY_BASE_TYPE, TRANSPORT_LISTENER_FACTORY_BASE_TYPE, TRANSPORT_PROVISIONER_FACTORY_BASE_TYPE, TaskSpawner, TokenIssuerFactory, TokenProviderFactory, TokenVerifierFactory, TransportListener, TransportProvisionerFactory, TtlValidationError, UpstreamSessionManager, VALID_CURVES_BY_KTY, VALID_KEY_USES, VERSION, WEBSOCKET_CONNECTION_GRANT_TYPE, WELCOME_SERVICE_FACTORY_BASE_TYPE, WebSocketCloseCode, WebSocketConnector, WebSocketListener, WebSocketState, WelcomeServiceFactory, _NoopFlowController, __runtimePluginLoader, addEnvelopeFields, addLogLevel, addTimestamp, assertConnectionGrant, assertGrant, basicConfig, camelToSnakeCase, capitalizeFirstLetter, color, compareCryptoLevels, compiledPathPattern, consoleTransport, convertWildcardLogicalToDnsConstraint, createConnectorConfig, createEd25519Keypair, createHostLogicalUri, createJwksRouter, createLogicalUri, createNodeDeliveryContext, createApp as createOAuth2ServerApp, createOAuth2TokenRouter, createOpenIDConfigurationRouter, createResource, createRpcProxy, createRsaKeypair, createTransportCloseError, createX25519Keypair, credentialToString, currentTraceId$1 as currentTraceId, debounce, decodeFameDataPayload, deepMerge, defaultJsonEncoder, delay, dropEmpty, enableLogging, extractId, extractPoolAddressBase, extractPoolBase, filterKeysByUse, formatTimestamp, formatTimestampForConsole$1 as formatTimestampForConsole, getCurrentEnvelope, getCurrentNode, getFameRoot, getHttpListenerInstance, getKeyProvider, getKeyStore, getLogger, getNode, getWebsocketListenerInstance, hasCryptoSupport, hostnameToLogical, hostnamesToLogicals, httpGrantToConnectorConfig, isAuthInjectionStrategy, isConnectionGrant, isConnectorConfig, isEnvelopeLoggingEnabled, isFameError, isFameErrorType, isGrant, isHttpConnectionGrant, isNodeLike, isPlainObject$3 as isPlainObject, isPoolAddress, isPoolLogical, isTokenExpired, isTokenProvider, isTokenValid, isWebSocketConnectionGrant, jsonDumps, logicalPatternsToDnsConstraints, logicalToHostname, logicalsToHostnames, matchesPoolAddress, matchesPoolLogical, maybeAwait, nodeWelcomeRouter, nodeWelcomeRouterPlugin, normalizeEncryptionConfig, normalizeEnvelopeSnapshot, normalizeExtendedFameConfig, normalizeHttpConnectionGrant, normalizeInboundCryptoRules, normalizeInboundSigningRules, normalizeOutboundCryptoRules, normalizeOutboundSigningRules, normalizePath, normalizeResponseCryptoRules, normalizeResponseSigningRules, normalizeSecretSource, normalizeSecurityRequirements, normalizeSigningConfig, normalizeWebSocketConnectionGrant, objectToBytes, operation, parseSealedEnvelope, pinoTransport, prettyModel$1 as prettyModel, pushNode, registerDefaultFactories, registerNodePlacementStrategyFactory, registerRuntimeFactories, requireCryptoSupport, retryWithBackoff, main as runOAuth2Server, runWithNodeContext, safeColor, sealedDecrypt, sealedEncrypt, secureDigest, setKeyStore, showEnvelopes$1 as showEnvelopes, sleep, snakeToCamelCase, stringifyNonPrimitives, supportsColor, throttle, urlsafeBase64Decode, urlsafeBase64Encode, validateCacheTtlSec, validateEncryptionKey, validateHostLogical, validateHostLogicals, validateJwkComplete, validateJwkStructure, validateJwkUseField, validateJwtTokenTtlSec, validateKeyCorrelationTtlSec, validateLogical, validateLogicalSegment, validateOAuth2TtlSec, validateSigningKey, validateTtlSec, waitForAll, waitForAllSettled, waitForAny, websocketGrantToConnectorConfig, withEnvelopeContext, withEnvelopeContextAsync, withLegacySnakeCaseKeys, withLock, withNodeContextAsync, withTimeout };
|
|
32066
31789
|
//# sourceMappingURL=node.mjs.map
|