@fulmenhq/tsfulmen 0.3.1 → 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 +23 -0
- package/config/crucible-ts/repository/app-identity/app-identity.example.yaml +8 -0
- package/config/crucible-ts/repository/app-identity/fixtures/valid/typescript-package.yaml +17 -0
- package/config/crucible-ts/repository/app-identity/parity-snapshot.json +28 -0
- package/config/crucible-ts/taxonomy/metrics.yaml +1 -1
- 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
- package/schemas/crucible-ts/config/repository/app-identity/v1.0.0/app-identity.schema.json +34 -0
|
@@ -7528,10 +7528,11 @@ function deepFreeze(obj) {
|
|
|
7528
7528
|
});
|
|
7529
7529
|
return obj;
|
|
7530
7530
|
}
|
|
7531
|
-
async function registerEmbeddedIdentity(data) {
|
|
7531
|
+
async function registerEmbeddedIdentity(data, options) {
|
|
7532
7532
|
if (isRegistered) {
|
|
7533
7533
|
throw AppIdentityError.alreadyRegistered();
|
|
7534
7534
|
}
|
|
7535
|
+
const skipValidation = options?.skipValidation ?? false;
|
|
7535
7536
|
let identity;
|
|
7536
7537
|
if (typeof data === "string") {
|
|
7537
7538
|
let parsed;
|
|
@@ -7542,15 +7543,19 @@ async function registerEmbeddedIdentity(data) {
|
|
|
7542
7543
|
error instanceof Error ? error : new Error(String(error))
|
|
7543
7544
|
);
|
|
7544
7545
|
}
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7546
|
+
if (!skipValidation) {
|
|
7547
|
+
const result = await validateDataBySchemaId(parsed, APP_IDENTITY_SCHEMA_ID);
|
|
7548
|
+
if (!result.valid) {
|
|
7549
|
+
throw AppIdentityError.embeddedValidationFailed(result.diagnostics);
|
|
7550
|
+
}
|
|
7548
7551
|
}
|
|
7549
7552
|
identity = parsed;
|
|
7550
7553
|
} else {
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
+
if (!skipValidation) {
|
|
7555
|
+
const result = await validateDataBySchemaId(data, APP_IDENTITY_SCHEMA_ID);
|
|
7556
|
+
if (!result.valid) {
|
|
7557
|
+
throw AppIdentityError.embeddedValidationFailed(result.diagnostics);
|
|
7558
|
+
}
|
|
7554
7559
|
}
|
|
7555
7560
|
identity = data;
|
|
7556
7561
|
}
|