@abi-software/flatmapvuer 1.9.0-beta.3 → 1.9.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.9.0-beta.3",
3
+ "version": "1.9.0-beta.5",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
@@ -65,6 +65,7 @@
65
65
  "cypress": "^13.6.6",
66
66
  "cypress-multi-reporters": "^1.6.4",
67
67
  "cypress-wait-until": "^2.0.1",
68
+ "cypress-visual-regression": "^5.3.0",
68
69
  "eslint": "^8.56.0",
69
70
  "eslint-plugin-cypress": "^2.15.1",
70
71
  "eslint-plugin-vue": "^9.19.2",
@@ -27,9 +27,13 @@ async function getReferenceConnectivitiesByAPI(mapImp, resource, flatmapQueries)
27
27
  }
28
28
 
29
29
  function getKnowledgeSource(mapImp) {
30
+ return getKnowledgeSourceFromProvenance(mapImp.provenance);
31
+ }
32
+
33
+ function getKnowledgeSourceFromProvenance(provenance) {
30
34
  let mapKnowledgeSource = '';
31
- if (mapImp.provenance?.connectivity) {
32
- const sckanProvenance = mapImp.provenance.connectivity;
35
+ if (provenance?.connectivity) {
36
+ const sckanProvenance = provenance.connectivity;
33
37
  if ('knowledge-source' in sckanProvenance) {
34
38
  mapKnowledgeSource = sckanProvenance['knowledge-source'];
35
39
  } else if ('npo' in sckanProvenance) {
@@ -97,5 +101,6 @@ export {
97
101
  getReferenceConnectivitiesByAPI,
98
102
  loadAndStoreKnowledge,
99
103
  getKnowledgeSource,
104
+ getKnowledgeSourceFromProvenance,
100
105
  refreshFlatmapKnowledgeCache,
101
106
  }