@moda-ai/cli 1.15.0 → 1.15.1
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/harness-report.js
CHANGED
|
@@ -907,6 +907,12 @@ function normalizeGraphItemFieldAliases(collection, item) {
|
|
|
907
907
|
else if (typeof item.target === 'string')
|
|
908
908
|
item.to = item.target;
|
|
909
909
|
}
|
|
910
|
+
// Pre-1.14 analysts (e.g. a hosted container whose baked CLI predates the
|
|
911
|
+
// rename) emit the relationship type as `kind`. Observed in production:
|
|
912
|
+
// hosted reports failing validation with "relationships.<id> must include
|
|
913
|
+
// string type" while carrying the value under `kind`.
|
|
914
|
+
if (typeof item.type !== 'string' && typeof item.kind === 'string')
|
|
915
|
+
item.type = item.kind;
|
|
910
916
|
}
|
|
911
917
|
}
|
|
912
918
|
/** Canonical evidence path for graph items: prefer explicit sourcePath, then evidence. */
|
package/package.json
CHANGED