@firestartr/cli 1.45.0-snapshot-16 → 1.45.0-snapshot-18

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.
Files changed (2) hide show
  1. package/build/index.js +7 -6
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -274531,7 +274531,7 @@ Check the following Claims to ensure that the tfStateKey is unique:
274531
274531
  function validateReferencesInCR(cr, crs) {
274532
274532
  if (isCatalogEntity(cr)) {
274533
274533
  if (getConfiguredProvider() === AllowedProviders.catalog) {
274534
- validateCatalogEntities(cr, crs);
274534
+ //validateCatalogEntities(cr, crs);
274535
274535
  //console.log(`Skip validation ${cr.name}`);
274536
274536
  }
274537
274537
  }
@@ -274546,9 +274546,10 @@ function throwIfRefNotFound(crs, refObj, refStr, crStr) {
274546
274546
  }
274547
274547
  }
274548
274548
  function throwIfRefNotFoundInCatalog(crs, refObj, refStr, crStr) {
274549
- const refKey = `${refObj.kind}-${refObj.name.toLowerCase()}`;
274550
- if (!crs[refKey]) {
274551
- throw new Error(`Error: Reference "${refStr}" in claim for ${crStr} not found`);
274549
+ const catalogEntityName = extractNameCatalogEntity(refObj);
274550
+ const ref = `${refObj.kind}-${catalogEntityName.toLowerCase()}`;
274551
+ if (!crs[ref]) {
274552
+ throw new Error(`Error: Reference "${ref}" in claim for ${crStr} not found`);
274552
274553
  }
274553
274554
  }
274554
274555
  /*
@@ -274591,8 +274592,8 @@ function validateNonCatalogEntities(cr, crs) {
274591
274592
  */
274592
274593
  function validateCatalogEntities(cr, crs) {
274593
274594
  for (const rel of WELL_KNOWN_RELATIONS_CATALOG[cr.kind]) {
274594
- if (lodash_default().has(cr, rel)) {
274595
- const refObject = lodash_default().get(cr, rel);
274595
+ if (_.has(cr, rel)) {
274596
+ const refObject = _.get(cr, rel);
274596
274597
  const catalogEntityName = extractNameCatalogEntity(cr);
274597
274598
  if (!Array.isArray(refObject)) {
274598
274599
  const propertyRef = createCatalogEntityPropertyRef(refObject);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.45.0-snapshot-16",
3
+ "version": "1.45.0-snapshot-18",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",