@sjcrh/proteinpaint-shared 2.167.0 → 2.170.0
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 +1 -1
- package/src/common.js +4 -6
- package/src/fetch-helpers.js +7 -2
- package/src/index.js +1 -0
- package/src/manhattan.js +3 -0
- package/src/termdb.usecase.js +2 -1
package/package.json
CHANGED
package/src/common.js
CHANGED
|
@@ -1323,9 +1323,7 @@ const dtTerms_temp = [
|
|
|
1323
1323
|
isleaf: true,
|
|
1324
1324
|
type: 'dtsnvindel',
|
|
1325
1325
|
dt: dtsnvindel,
|
|
1326
|
-
values:
|
|
1327
|
-
mutationClasses.filter(key => key != 'Blank').map(key => [key, { label: mclass[key].label }])
|
|
1328
|
-
)
|
|
1326
|
+
values: {}
|
|
1329
1327
|
},
|
|
1330
1328
|
{
|
|
1331
1329
|
id: 'cnv',
|
|
@@ -1335,7 +1333,7 @@ const dtTerms_temp = [
|
|
|
1335
1333
|
isleaf: true,
|
|
1336
1334
|
type: 'dtcnv',
|
|
1337
1335
|
dt: dtcnv,
|
|
1338
|
-
values:
|
|
1336
|
+
values: {}
|
|
1339
1337
|
},
|
|
1340
1338
|
{
|
|
1341
1339
|
id: 'fusion',
|
|
@@ -1345,7 +1343,7 @@ const dtTerms_temp = [
|
|
|
1345
1343
|
isleaf: true,
|
|
1346
1344
|
type: 'dtfusion',
|
|
1347
1345
|
dt: dtfusionrna,
|
|
1348
|
-
values:
|
|
1346
|
+
values: {}
|
|
1349
1347
|
},
|
|
1350
1348
|
{
|
|
1351
1349
|
id: 'sv',
|
|
@@ -1355,7 +1353,7 @@ const dtTerms_temp = [
|
|
|
1355
1353
|
isleaf: true,
|
|
1356
1354
|
type: 'dtsv',
|
|
1357
1355
|
dt: dtsv,
|
|
1358
|
-
values:
|
|
1356
|
+
values: {}
|
|
1359
1357
|
}
|
|
1360
1358
|
]
|
|
1361
1359
|
// add origin annotations to dt terms
|
package/src/fetch-helpers.js
CHANGED
|
@@ -161,8 +161,13 @@ export async function memFetch(url, init, opts = {}) {
|
|
|
161
161
|
fetch(url, init).then(async r => {
|
|
162
162
|
const response = await processResponse(r)
|
|
163
163
|
if (!r.ok) {
|
|
164
|
-
console.
|
|
165
|
-
throw
|
|
164
|
+
console.trace(response)
|
|
165
|
+
throw (
|
|
166
|
+
'memFetch error ' +
|
|
167
|
+
r.status +
|
|
168
|
+
': ' +
|
|
169
|
+
(typeof response == 'object' ? response.message || response.error : response)
|
|
170
|
+
)
|
|
166
171
|
}
|
|
167
172
|
// to-do: support opt.freeze to enforce deep freeze of data.json()
|
|
168
173
|
dataCache.set(dataKey, response)
|
package/src/index.js
CHANGED
package/src/manhattan.js
ADDED
package/src/termdb.usecase.js
CHANGED