@abi-software/flatmapvuer 1.2.0-beta.3 → 1.2.0-beta.4
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/flatmapvuer.js +2395 -2405
- package/dist/flatmapvuer.umd.cjs +79 -79
- package/package.json +1 -1
- package/src/App.vue +0 -1
- package/src/services/flatmapQueries.js +6 -5
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -222,7 +222,7 @@ let FlatmapQueries = function () {
|
|
|
222
222
|
this.origins = []
|
|
223
223
|
this.components = []
|
|
224
224
|
if (!keastIds || keastIds.length == 0) return
|
|
225
|
-
|
|
225
|
+
|
|
226
226
|
let prom1 = this.queryForConnectivity(keastIds, signal) // This on returns a promise so dont need 'await'
|
|
227
227
|
let prom2 = await this.pubmedQueryOnIds(eventData)
|
|
228
228
|
let results = await Promise.all([prom1, prom2])
|
|
@@ -281,10 +281,10 @@ let FlatmapQueries = function () {
|
|
|
281
281
|
if (node.length === 1) { // If the node is in the form [id]
|
|
282
282
|
console.error("Server returns a single node", node)
|
|
283
283
|
return node[0]
|
|
284
|
-
} else {
|
|
284
|
+
} else {
|
|
285
285
|
if (node.length === 2 && node[1].length === 0) { // If the node is in the form [id, []]
|
|
286
286
|
return node[0]
|
|
287
|
-
} else {
|
|
287
|
+
} else {
|
|
288
288
|
return false // If the node is in the form [id, [id1, id2]]
|
|
289
289
|
}
|
|
290
290
|
}
|
|
@@ -294,7 +294,7 @@ let FlatmapQueries = function () {
|
|
|
294
294
|
|
|
295
295
|
// Check if the node is a single node or a node with multiple children
|
|
296
296
|
let nodeIsSingle = this.findIfNodeIsSingle(node)
|
|
297
|
-
|
|
297
|
+
|
|
298
298
|
// Case where node is in the form [id]
|
|
299
299
|
if (nodeIsSingle) {
|
|
300
300
|
return lookUp[nodeIsSingle]
|
|
@@ -467,7 +467,8 @@ let FlatmapQueries = function () {
|
|
|
467
467
|
this.pubmedSearchUrl = function (ids) {
|
|
468
468
|
let url = 'https://pubmed.ncbi.nlm.nih.gov/?'
|
|
469
469
|
let params = new URLSearchParams()
|
|
470
|
-
|
|
470
|
+
const decodedIDs = ids.map((id) => decodeURIComponent(id));
|
|
471
|
+
params.append('term', decodedIDs);
|
|
471
472
|
return url + params.toString()
|
|
472
473
|
}
|
|
473
474
|
}
|