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.es.js
CHANGED
|
@@ -8801,12 +8801,6 @@ var DefaultPubMedCache = /** @class */ (function (_super) {
|
|
|
8801
8801
|
return DefaultPubMedCache;
|
|
8802
8802
|
}(DefaultStringQueryCache));
|
|
8803
8803
|
|
|
8804
|
-
function fetchMutationAlignerLink(pfamDomainId, mutationAlignerUrlTemplate) {
|
|
8805
|
-
if (mutationAlignerUrlTemplate === void 0) { mutationAlignerUrlTemplate = DEFAULT_MUTATION_ALIGNER_PROXY_URL_TEMPLATE; }
|
|
8806
|
-
return request
|
|
8807
|
-
.get(getUrl(mutationAlignerUrlTemplate, { pfamDomainId: pfamDomainId }))
|
|
8808
|
-
.accept('application/json');
|
|
8809
|
-
}
|
|
8810
8804
|
var MutationAlignerCache = /** @class */ (function (_super) {
|
|
8811
8805
|
__extends(MutationAlignerCache, _super);
|
|
8812
8806
|
function MutationAlignerCache(mutationAlignerUrlTemplate) {
|
|
@@ -8824,11 +8818,21 @@ var MutationAlignerCache = /** @class */ (function (_super) {
|
|
|
8824
8818
|
configurable: true,
|
|
8825
8819
|
writable: true,
|
|
8826
8820
|
value: function (pfamAccession) {
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8821
|
+
// The code below is only to check if there is data for a specific domain
|
|
8822
|
+
// Since mutation aligner is not HTTPS we need to use proxy for that
|
|
8823
|
+
// We can enable this check again if we can directly query the API
|
|
8824
|
+
// For now we just return the link without checking the existence of the data
|
|
8825
|
+
// return fetchMutationAlignerLink(
|
|
8826
|
+
// pfamAccession,
|
|
8827
|
+
// this.mutationAlignerUrlTemplate
|
|
8828
|
+
// )
|
|
8829
|
+
// .then(res =>
|
|
8830
|
+
// Promise.resolve(
|
|
8831
|
+
// `http://mutationaligner.org/domains/${res.body.pfamId}`
|
|
8832
|
+
// )
|
|
8833
|
+
// )
|
|
8834
|
+
// .catch(e => Promise.reject(e));
|
|
8835
|
+
return Promise.resolve("http://mutationaligner.org/domains/" + pfamAccession);
|
|
8832
8836
|
}
|
|
8833
8837
|
});
|
|
8834
8838
|
return MutationAlignerCache;
|