@naylence/runtime 0.4.4 → 0.4.5
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 +12 -4
- package/dist/browser/index.mjs +13 -5
- package/dist/cjs/naylence/fame/security/auth/authorization-profile-factory.js +10 -2
- package/dist/cjs/version.js +2 -2
- package/dist/esm/naylence/fame/security/auth/authorization-profile-factory.js +11 -3
- package/dist/esm/version.js +2 -2
- package/dist/node/index.cjs +12 -4
- package/dist/node/index.mjs +13 -5
- package/dist/node/node.cjs +12 -4
- package/dist/node/node.mjs +13 -5
- 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.5
|
|
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.5';
|
|
534
534
|
|
|
535
535
|
let initialized = false;
|
|
536
536
|
const runtimePlugin = {
|
|
@@ -22062,13 +22062,21 @@ function normalizeConfig$w(config) {
|
|
|
22062
22062
|
return { profile: canonicalProfile };
|
|
22063
22063
|
}
|
|
22064
22064
|
function resolveProfileName$2(candidate) {
|
|
22065
|
-
|
|
22065
|
+
let direct = coerceProfileString$2(candidate.profile);
|
|
22066
|
+
if (direct && factory.ExpressionEvaluator.isExpression(direct)) {
|
|
22067
|
+
const evaluated = factory.ExpressionEvaluator.evaluate(direct);
|
|
22068
|
+
direct = coerceProfileString$2(evaluated);
|
|
22069
|
+
}
|
|
22066
22070
|
if (direct) {
|
|
22067
22071
|
return direct;
|
|
22068
22072
|
}
|
|
22069
22073
|
const legacyKeys = ['profile_name', 'profileName'];
|
|
22070
22074
|
for (const legacyKey of legacyKeys) {
|
|
22071
|
-
|
|
22075
|
+
let legacyValue = coerceProfileString$2(candidate[legacyKey]);
|
|
22076
|
+
if (legacyValue && factory.ExpressionEvaluator.isExpression(legacyValue)) {
|
|
22077
|
+
const evaluated = factory.ExpressionEvaluator.evaluate(legacyValue);
|
|
22078
|
+
legacyValue = coerceProfileString$2(evaluated);
|
|
22079
|
+
}
|
|
22072
22080
|
if (legacyValue) {
|
|
22073
22081
|
return legacyValue;
|
|
22074
22082
|
}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parseAddressComponents, FlowFlags, FameAddress, DEFAULT_POLLING_TIMEOUT_MS, extractEnvelopeAndContext, createChannelMessage, generateId, createFameEnvelope, parseAddress, formatAddress, formatAddressFromComponents, FameResponseType, localDeliveryContext, Binding, DeliveryOriginType, makeResponse, isFameMessageResponse, parseRequest, makeRequest, DEFAULT_INVOKE_TIMEOUT_MILLIS, parseResponse, ConnectorState, ConnectorStateUtils, FameFabric, isFameMessageService, isFameRPCService, FameServiceProxy, generateIdAsync, snakeToCamelObject, getDefaultFameConfigResolver, setDefaultFameConfigResolver, SigningMaterial, AuthorizationContextSchema, FameDeliveryContextSchema, SecurityContextSchema, withFabric, FameEnvelopeSchema, deserializeEnvelope, FameChannelMessage, SINK_CAPABILITY, FameFabricFactory, serializeEnvelope, createAuthorizationContext } from '@naylence/core';
|
|
2
2
|
export * from '@naylence/core';
|
|
3
3
|
import { z, ZodError } from 'zod';
|
|
4
|
-
import { Registry, AbstractResourceFactory, createResource as createResource$1, createDefaultResource, registerFactory, Expressions, ExtensionManager, ExpressionEvaluationPolicy, configValidator } from '@naylence/factory';
|
|
4
|
+
import { Registry, AbstractResourceFactory, createResource as createResource$1, createDefaultResource, registerFactory, Expressions, ExtensionManager, ExpressionEvaluationPolicy, ExpressionEvaluator, configValidator } from '@naylence/factory';
|
|
5
5
|
import { sign, hashes, verify } from '@noble/ed25519';
|
|
6
6
|
import { sha256, sha512 } from '@noble/hashes/sha2.js';
|
|
7
7
|
import { chacha20poly1305 } from '@noble/ciphers/chacha.js';
|
|
@@ -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.5
|
|
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.5';
|
|
532
532
|
|
|
533
533
|
let initialized = false;
|
|
534
534
|
const runtimePlugin = {
|
|
@@ -22060,13 +22060,21 @@ function normalizeConfig$w(config) {
|
|
|
22060
22060
|
return { profile: canonicalProfile };
|
|
22061
22061
|
}
|
|
22062
22062
|
function resolveProfileName$2(candidate) {
|
|
22063
|
-
|
|
22063
|
+
let direct = coerceProfileString$2(candidate.profile);
|
|
22064
|
+
if (direct && ExpressionEvaluator.isExpression(direct)) {
|
|
22065
|
+
const evaluated = ExpressionEvaluator.evaluate(direct);
|
|
22066
|
+
direct = coerceProfileString$2(evaluated);
|
|
22067
|
+
}
|
|
22064
22068
|
if (direct) {
|
|
22065
22069
|
return direct;
|
|
22066
22070
|
}
|
|
22067
22071
|
const legacyKeys = ['profile_name', 'profileName'];
|
|
22068
22072
|
for (const legacyKey of legacyKeys) {
|
|
22069
|
-
|
|
22073
|
+
let legacyValue = coerceProfileString$2(candidate[legacyKey]);
|
|
22074
|
+
if (legacyValue && ExpressionEvaluator.isExpression(legacyValue)) {
|
|
22075
|
+
const evaluated = ExpressionEvaluator.evaluate(legacyValue);
|
|
22076
|
+
legacyValue = coerceProfileString$2(evaluated);
|
|
22077
|
+
}
|
|
22070
22078
|
if (legacyValue) {
|
|
22071
22079
|
return legacyValue;
|
|
22072
22080
|
}
|
|
@@ -146,13 +146,21 @@ function normalizeConfig(config) {
|
|
|
146
146
|
return { profile: canonicalProfile };
|
|
147
147
|
}
|
|
148
148
|
function resolveProfileName(candidate) {
|
|
149
|
-
|
|
149
|
+
let direct = coerceProfileString(candidate.profile);
|
|
150
|
+
if (direct && factory_1.ExpressionEvaluator.isExpression(direct)) {
|
|
151
|
+
const evaluated = factory_1.ExpressionEvaluator.evaluate(direct);
|
|
152
|
+
direct = coerceProfileString(evaluated);
|
|
153
|
+
}
|
|
150
154
|
if (direct) {
|
|
151
155
|
return direct;
|
|
152
156
|
}
|
|
153
157
|
const legacyKeys = ['profile_name', 'profileName'];
|
|
154
158
|
for (const legacyKey of legacyKeys) {
|
|
155
|
-
|
|
159
|
+
let legacyValue = coerceProfileString(candidate[legacyKey]);
|
|
160
|
+
if (legacyValue && factory_1.ExpressionEvaluator.isExpression(legacyValue)) {
|
|
161
|
+
const evaluated = factory_1.ExpressionEvaluator.evaluate(legacyValue);
|
|
162
|
+
legacyValue = coerceProfileString(evaluated);
|
|
163
|
+
}
|
|
156
164
|
if (legacyValue) {
|
|
157
165
|
return legacyValue;
|
|
158
166
|
}
|
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.5
|
|
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.5';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Expressions } from '@naylence/factory';
|
|
1
|
+
import { Expressions, ExpressionEvaluator } from '@naylence/factory';
|
|
2
2
|
import { getLogger } from '../../util/logging.js';
|
|
3
3
|
import { AUTHORIZER_FACTORY_BASE_TYPE, AuthorizerFactory, } from './authorizer-factory.js';
|
|
4
4
|
const logger = getLogger('naylence.fame.security.auth.authorization_profile_factory');
|
|
@@ -142,13 +142,21 @@ function normalizeConfig(config) {
|
|
|
142
142
|
return { profile: canonicalProfile };
|
|
143
143
|
}
|
|
144
144
|
function resolveProfileName(candidate) {
|
|
145
|
-
|
|
145
|
+
let direct = coerceProfileString(candidate.profile);
|
|
146
|
+
if (direct && ExpressionEvaluator.isExpression(direct)) {
|
|
147
|
+
const evaluated = ExpressionEvaluator.evaluate(direct);
|
|
148
|
+
direct = coerceProfileString(evaluated);
|
|
149
|
+
}
|
|
146
150
|
if (direct) {
|
|
147
151
|
return direct;
|
|
148
152
|
}
|
|
149
153
|
const legacyKeys = ['profile_name', 'profileName'];
|
|
150
154
|
for (const legacyKey of legacyKeys) {
|
|
151
|
-
|
|
155
|
+
let legacyValue = coerceProfileString(candidate[legacyKey]);
|
|
156
|
+
if (legacyValue && ExpressionEvaluator.isExpression(legacyValue)) {
|
|
157
|
+
const evaluated = ExpressionEvaluator.evaluate(legacyValue);
|
|
158
|
+
legacyValue = coerceProfileString(evaluated);
|
|
159
|
+
}
|
|
152
160
|
if (legacyValue) {
|
|
153
161
|
return legacyValue;
|
|
154
162
|
}
|
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.5
|
|
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.5';
|
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.5
|
|
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.5';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -21949,13 +21949,21 @@ function normalizeConfig$w(config) {
|
|
|
21949
21949
|
return { profile: canonicalProfile };
|
|
21950
21950
|
}
|
|
21951
21951
|
function resolveProfileName$2(candidate) {
|
|
21952
|
-
|
|
21952
|
+
let direct = coerceProfileString$2(candidate.profile);
|
|
21953
|
+
if (direct && factory.ExpressionEvaluator.isExpression(direct)) {
|
|
21954
|
+
const evaluated = factory.ExpressionEvaluator.evaluate(direct);
|
|
21955
|
+
direct = coerceProfileString$2(evaluated);
|
|
21956
|
+
}
|
|
21953
21957
|
if (direct) {
|
|
21954
21958
|
return direct;
|
|
21955
21959
|
}
|
|
21956
21960
|
const legacyKeys = ['profile_name', 'profileName'];
|
|
21957
21961
|
for (const legacyKey of legacyKeys) {
|
|
21958
|
-
|
|
21962
|
+
let legacyValue = coerceProfileString$2(candidate[legacyKey]);
|
|
21963
|
+
if (legacyValue && factory.ExpressionEvaluator.isExpression(legacyValue)) {
|
|
21964
|
+
const evaluated = factory.ExpressionEvaluator.evaluate(legacyValue);
|
|
21965
|
+
legacyValue = coerceProfileString$2(evaluated);
|
|
21966
|
+
}
|
|
21959
21967
|
if (legacyValue) {
|
|
21960
21968
|
return legacyValue;
|
|
21961
21969
|
}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parseAddressComponents, FlowFlags, FameAddress, DEFAULT_POLLING_TIMEOUT_MS, extractEnvelopeAndContext, createChannelMessage, generateId, createFameEnvelope, parseAddress, formatAddress, formatAddressFromComponents, FameResponseType, localDeliveryContext, Binding, DeliveryOriginType, makeResponse, isFameMessageResponse, parseRequest, makeRequest, DEFAULT_INVOKE_TIMEOUT_MILLIS, parseResponse, ConnectorState, ConnectorStateUtils, FameFabric, isFameMessageService, isFameRPCService, FameServiceProxy, generateIdAsync, snakeToCamelObject, getDefaultFameConfigResolver, setDefaultFameConfigResolver, SigningMaterial, AuthorizationContextSchema, FameDeliveryContextSchema, SecurityContextSchema, withFabric, FameEnvelopeSchema, SINK_CAPABILITY, FameFabricFactory, serializeEnvelope, createAuthorizationContext, deserializeEnvelope, FameChannelMessage } from '@naylence/core';
|
|
2
2
|
export * from '@naylence/core';
|
|
3
3
|
import { z, ZodError } from 'zod';
|
|
4
|
-
import { AbstractResourceFactory, createResource as createResource$1, createDefaultResource, registerFactory, Expressions, ExtensionManager, ExpressionEvaluationPolicy, Registry, configValidator } from '@naylence/factory';
|
|
4
|
+
import { AbstractResourceFactory, createResource as createResource$1, createDefaultResource, registerFactory, Expressions, ExtensionManager, ExpressionEvaluationPolicy, Registry, ExpressionEvaluator, configValidator } from '@naylence/factory';
|
|
5
5
|
import { sign, hashes, verify } from '@noble/ed25519';
|
|
6
6
|
import { sha256, sha512 } from '@noble/hashes/sha2.js';
|
|
7
7
|
import { chacha20poly1305 } from '@noble/ciphers/chacha.js';
|
|
@@ -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.5
|
|
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.5';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Fame protocol specific error classes with WebSocket close codes and proper inheritance.
|
|
@@ -21948,13 +21948,21 @@ function normalizeConfig$w(config) {
|
|
|
21948
21948
|
return { profile: canonicalProfile };
|
|
21949
21949
|
}
|
|
21950
21950
|
function resolveProfileName$2(candidate) {
|
|
21951
|
-
|
|
21951
|
+
let direct = coerceProfileString$2(candidate.profile);
|
|
21952
|
+
if (direct && ExpressionEvaluator.isExpression(direct)) {
|
|
21953
|
+
const evaluated = ExpressionEvaluator.evaluate(direct);
|
|
21954
|
+
direct = coerceProfileString$2(evaluated);
|
|
21955
|
+
}
|
|
21952
21956
|
if (direct) {
|
|
21953
21957
|
return direct;
|
|
21954
21958
|
}
|
|
21955
21959
|
const legacyKeys = ['profile_name', 'profileName'];
|
|
21956
21960
|
for (const legacyKey of legacyKeys) {
|
|
21957
|
-
|
|
21961
|
+
let legacyValue = coerceProfileString$2(candidate[legacyKey]);
|
|
21962
|
+
if (legacyValue && ExpressionEvaluator.isExpression(legacyValue)) {
|
|
21963
|
+
const evaluated = ExpressionEvaluator.evaluate(legacyValue);
|
|
21964
|
+
legacyValue = coerceProfileString$2(evaluated);
|
|
21965
|
+
}
|
|
21958
21966
|
if (legacyValue) {
|
|
21959
21967
|
return legacyValue;
|
|
21960
21968
|
}
|
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.5
|
|
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.5';
|
|
4445
4445
|
|
|
4446
4446
|
let initialized = false;
|
|
4447
4447
|
const runtimePlugin = {
|
|
@@ -23154,13 +23154,21 @@ function normalizeConfig$w(config) {
|
|
|
23154
23154
|
return { profile: canonicalProfile };
|
|
23155
23155
|
}
|
|
23156
23156
|
function resolveProfileName$2(candidate) {
|
|
23157
|
-
|
|
23157
|
+
let direct = coerceProfileString$2(candidate.profile);
|
|
23158
|
+
if (direct && factory.ExpressionEvaluator.isExpression(direct)) {
|
|
23159
|
+
const evaluated = factory.ExpressionEvaluator.evaluate(direct);
|
|
23160
|
+
direct = coerceProfileString$2(evaluated);
|
|
23161
|
+
}
|
|
23158
23162
|
if (direct) {
|
|
23159
23163
|
return direct;
|
|
23160
23164
|
}
|
|
23161
23165
|
const legacyKeys = ['profile_name', 'profileName'];
|
|
23162
23166
|
for (const legacyKey of legacyKeys) {
|
|
23163
|
-
|
|
23167
|
+
let legacyValue = coerceProfileString$2(candidate[legacyKey]);
|
|
23168
|
+
if (legacyValue && factory.ExpressionEvaluator.isExpression(legacyValue)) {
|
|
23169
|
+
const evaluated = factory.ExpressionEvaluator.evaluate(legacyValue);
|
|
23170
|
+
legacyValue = coerceProfileString$2(evaluated);
|
|
23171
|
+
}
|
|
23164
23172
|
if (legacyValue) {
|
|
23165
23173
|
return legacyValue;
|
|
23166
23174
|
}
|
package/dist/node/node.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FlowFlags, ConnectorState, generateId, ConnectorStateUtils, FameResponseType, createFameEnvelope, parseAddressComponents, FameAddress, DEFAULT_POLLING_TIMEOUT_MS, extractEnvelopeAndContext, createChannelMessage, parseAddress, formatAddress, formatAddressFromComponents, localDeliveryContext, Binding, DeliveryOriginType, makeResponse, isFameMessageResponse, parseRequest, makeRequest, DEFAULT_INVOKE_TIMEOUT_MILLIS, parseResponse, FameFabric, isFameMessageService, isFameRPCService, FameServiceProxy, generateIdAsync, snakeToCamelObject, getDefaultFameConfigResolver, setDefaultFameConfigResolver, SigningMaterial, AuthorizationContextSchema, FameDeliveryContextSchema, SecurityContextSchema, withFabric, FameEnvelopeSchema, serializeEnvelope, FameChannelMessage, deserializeEnvelope, SINK_CAPABILITY, FameFabricFactory, createAuthorizationContext } from '@naylence/core';
|
|
2
2
|
export * from '@naylence/core';
|
|
3
|
-
import { ExtensionManager, ExpressionEvaluationPolicy, AbstractResourceFactory, createResource as createResource$1, createDefaultResource, Registry, registerFactory, Expressions, configValidator } from '@naylence/factory';
|
|
3
|
+
import { ExtensionManager, ExpressionEvaluationPolicy, AbstractResourceFactory, createResource as createResource$1, createDefaultResource, Registry, registerFactory, Expressions, ExpressionEvaluator, configValidator } from '@naylence/factory';
|
|
4
4
|
import { z, ZodError } from 'zod';
|
|
5
5
|
import fs from 'node:fs';
|
|
6
6
|
import fsPromises from 'node:fs/promises';
|
|
@@ -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.5
|
|
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.5';
|
|
4444
4444
|
|
|
4445
4445
|
let initialized = false;
|
|
4446
4446
|
const runtimePlugin = {
|
|
@@ -23153,13 +23153,21 @@ function normalizeConfig$w(config) {
|
|
|
23153
23153
|
return { profile: canonicalProfile };
|
|
23154
23154
|
}
|
|
23155
23155
|
function resolveProfileName$2(candidate) {
|
|
23156
|
-
|
|
23156
|
+
let direct = coerceProfileString$2(candidate.profile);
|
|
23157
|
+
if (direct && ExpressionEvaluator.isExpression(direct)) {
|
|
23158
|
+
const evaluated = ExpressionEvaluator.evaluate(direct);
|
|
23159
|
+
direct = coerceProfileString$2(evaluated);
|
|
23160
|
+
}
|
|
23157
23161
|
if (direct) {
|
|
23158
23162
|
return direct;
|
|
23159
23163
|
}
|
|
23160
23164
|
const legacyKeys = ['profile_name', 'profileName'];
|
|
23161
23165
|
for (const legacyKey of legacyKeys) {
|
|
23162
|
-
|
|
23166
|
+
let legacyValue = coerceProfileString$2(candidate[legacyKey]);
|
|
23167
|
+
if (legacyValue && ExpressionEvaluator.isExpression(legacyValue)) {
|
|
23168
|
+
const evaluated = ExpressionEvaluator.evaluate(legacyValue);
|
|
23169
|
+
legacyValue = coerceProfileString$2(evaluated);
|
|
23170
|
+
}
|
|
23163
23171
|
if (legacyValue) {
|
|
23164
23172
|
return legacyValue;
|
|
23165
23173
|
}
|
package/dist/types/version.d.ts
CHANGED