react-mutation-mapper 0.8.102 → 0.8.104

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.
@@ -1,11 +1,9 @@
1
1
  export declare function getCivicVariantData(): {
2
2
  id: number;
3
3
  name: string;
4
- geneId: number;
5
4
  description: string;
6
5
  url: string;
7
6
  evidenceCounts: {
8
- type1: number;
7
+ predictiveCount: number;
9
8
  };
10
- evidences: never[];
11
9
  };
package/dist/index.es.js CHANGED
@@ -62,15 +62,16 @@ var CivicCard = /** @class */ (function (_super) {
62
62
  else {
63
63
  for (var name_1 in variantMap) {
64
64
  var variant = variantMap[name_1];
65
- var entryTypes = '';
66
- for (var evidenceType in variant.evidenceCounts) {
67
- entryTypes +=
68
- evidenceType.toLowerCase() +
69
- ': ' +
70
- variant.evidenceCounts[evidenceType] +
71
- ', ';
72
- }
73
- entryTypes = entryTypes.slice(0, -2) + '.';
65
+ var entryTypes = Object.entries(variant.evidenceCounts)
66
+ .filter(function (_a) {
67
+ _a[0]; var value = _a[1];
68
+ return value !== 0;
69
+ })
70
+ .map(function (_a) {
71
+ var key = _a[0], value = _a[1];
72
+ return key.slice(0, -5) + ": " + value;
73
+ }) // Remove "Count" substring from key
74
+ .join(', ');
74
75
  list.push(this.variantItem(name_1, variant.url, variant.name, entryTypes, variant.description));
75
76
  }
76
77
  }
@@ -10266,7 +10267,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
10266
10267
  invoke: function () { return __awaiter(_this, void 0, void 0, function () {
10267
10268
  return __generator(this, function (_a) {
10268
10269
  return [2 /*return*/, this.config.enableCivic
10269
- ? fetchCivicGenes(this.mutationData.result || [], this.getDefaultEntrezGeneId)
10270
+ ? fetchCivicGenes(this.mutationData.result || [])
10270
10271
  : {}];
10271
10272
  });
10272
10273
  }); },