@fulmenhq/tsfulmen 0.3.2 → 0.3.3
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/CHANGELOG.md +14 -0
- package/dist/appidentity/index.d.ts +15 -5
- package/dist/appidentity/index.js +12 -7
- package/dist/appidentity/index.js.map +1 -1
- package/dist/bin/prometheus-cli.js +12 -7
- package/dist/bin/prometheus-cli.js.map +1 -1
- package/dist/bin/schema-cli.js.map +1 -1
- package/dist/config/index.d.ts +69 -11
- package/dist/config/index.js +18 -7
- package/dist/config/index.js.map +1 -1
- package/dist/foundry/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/reports/license-inventory.csv +1 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/signals/index.d.ts +1 -1
- package/dist/telemetry/http/index.js.map +1 -1
- package/dist/telemetry/prometheus/index.js +12 -7
- package/dist/telemetry/prometheus/index.js.map +1 -1
- package/dist/{types-Dv5TERCM.d.ts → types-CHDvDRCf.d.ts} +17 -1
- package/package.json +1 -1
|
@@ -6752,10 +6752,11 @@ function deepFreeze(obj) {
|
|
|
6752
6752
|
});
|
|
6753
6753
|
return obj;
|
|
6754
6754
|
}
|
|
6755
|
-
async function registerEmbeddedIdentity(data) {
|
|
6755
|
+
async function registerEmbeddedIdentity(data, options) {
|
|
6756
6756
|
if (isRegistered) {
|
|
6757
6757
|
throw AppIdentityError.alreadyRegistered();
|
|
6758
6758
|
}
|
|
6759
|
+
const skipValidation = options?.skipValidation ?? false;
|
|
6759
6760
|
let identity;
|
|
6760
6761
|
if (typeof data === "string") {
|
|
6761
6762
|
let parsed;
|
|
@@ -6766,15 +6767,19 @@ async function registerEmbeddedIdentity(data) {
|
|
|
6766
6767
|
error instanceof Error ? error : new Error(String(error))
|
|
6767
6768
|
);
|
|
6768
6769
|
}
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6770
|
+
if (!skipValidation) {
|
|
6771
|
+
const result = await validateDataBySchemaId(parsed, APP_IDENTITY_SCHEMA_ID);
|
|
6772
|
+
if (!result.valid) {
|
|
6773
|
+
throw AppIdentityError.embeddedValidationFailed(result.diagnostics);
|
|
6774
|
+
}
|
|
6772
6775
|
}
|
|
6773
6776
|
identity = parsed;
|
|
6774
6777
|
} else {
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
+
if (!skipValidation) {
|
|
6779
|
+
const result = await validateDataBySchemaId(data, APP_IDENTITY_SCHEMA_ID);
|
|
6780
|
+
if (!result.valid) {
|
|
6781
|
+
throw AppIdentityError.embeddedValidationFailed(result.diagnostics);
|
|
6782
|
+
}
|
|
6778
6783
|
}
|
|
6779
6784
|
identity = data;
|
|
6780
6785
|
}
|