react-mutation-mapper 0.8.109 → 0.8.111
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/index.es.js +15 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +15 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8838,12 +8838,6 @@ var DefaultPubMedCache = /** @class */ (function (_super) {
|
|
|
8838
8838
|
return DefaultPubMedCache;
|
|
8839
8839
|
}(DefaultStringQueryCache));
|
|
8840
8840
|
|
|
8841
|
-
function fetchMutationAlignerLink(pfamDomainId, mutationAlignerUrlTemplate) {
|
|
8842
|
-
if (mutationAlignerUrlTemplate === void 0) { mutationAlignerUrlTemplate = DEFAULT_MUTATION_ALIGNER_PROXY_URL_TEMPLATE; }
|
|
8843
|
-
return request__default["default"]
|
|
8844
|
-
.get(getUrl(mutationAlignerUrlTemplate, { pfamDomainId: pfamDomainId }))
|
|
8845
|
-
.accept('application/json');
|
|
8846
|
-
}
|
|
8847
8841
|
var MutationAlignerCache = /** @class */ (function (_super) {
|
|
8848
8842
|
tslib.__extends(MutationAlignerCache, _super);
|
|
8849
8843
|
function MutationAlignerCache(mutationAlignerUrlTemplate) {
|
|
@@ -8861,11 +8855,21 @@ var MutationAlignerCache = /** @class */ (function (_super) {
|
|
|
8861
8855
|
configurable: true,
|
|
8862
8856
|
writable: true,
|
|
8863
8857
|
value: function (pfamAccession) {
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8858
|
+
// The code below is only to check if there is data for a specific domain
|
|
8859
|
+
// Since mutation aligner is not HTTPS we need to use proxy for that
|
|
8860
|
+
// We can enable this check again if we can directly query the API
|
|
8861
|
+
// For now we just return the link without checking the existence of the data
|
|
8862
|
+
// return fetchMutationAlignerLink(
|
|
8863
|
+
// pfamAccession,
|
|
8864
|
+
// this.mutationAlignerUrlTemplate
|
|
8865
|
+
// )
|
|
8866
|
+
// .then(res =>
|
|
8867
|
+
// Promise.resolve(
|
|
8868
|
+
// `http://mutationaligner.org/domains/${res.body.pfamId}`
|
|
8869
|
+
// )
|
|
8870
|
+
// )
|
|
8871
|
+
// .catch(e => Promise.reject(e));
|
|
8872
|
+
return Promise.resolve("http://mutationaligner.org/domains/" + pfamAccession);
|
|
8869
8873
|
}
|
|
8870
8874
|
});
|
|
8871
8875
|
return MutationAlignerCache;
|