igv 2.10.3 → 2.10.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/README.md +10 -10
- package/dist/igv.esm.js +8 -5
- package/dist/igv.esm.min.js +3 -3
- package/dist/igv.esm.min.js.map +1 -1
- package/dist/igv.js +5 -5
- package/dist/igv.min.js +3 -3
- package/dist/igv.min.js.map +1 -1
- package/package.json +2 -2
package/dist/igv.js
CHANGED
|
@@ -7866,7 +7866,7 @@
|
|
|
7866
7866
|
|
|
7867
7867
|
|
|
7868
7868
|
function isFile(object) {
|
|
7869
|
-
return object.hasOwnProperty("name");
|
|
7869
|
+
return object instanceof File || typeof object !== "function" && object.hasOwnProperty("name") && object.hasOwnProperty("size") && object.hasOwnProperty("type");
|
|
7870
7870
|
}
|
|
7871
7871
|
|
|
7872
7872
|
const isFilePath = isFile; // deprecated
|
|
@@ -22906,7 +22906,7 @@
|
|
|
22906
22906
|
}
|
|
22907
22907
|
};
|
|
22908
22908
|
|
|
22909
|
-
const _version = "2.10.
|
|
22909
|
+
const _version = "2.10.4";
|
|
22910
22910
|
|
|
22911
22911
|
function version$1() {
|
|
22912
22912
|
return _version;
|
|
@@ -30762,7 +30762,7 @@
|
|
|
30762
30762
|
this.indexURL = config.indexURL;
|
|
30763
30763
|
this.indexed = config.indexed;
|
|
30764
30764
|
|
|
30765
|
-
if (
|
|
30765
|
+
if (isFile(this.config.url)) {
|
|
30766
30766
|
this.filename = this.config.url.name;
|
|
30767
30767
|
} else if (isDataURL(this.config.url)) {
|
|
30768
30768
|
this.indexed = false; // by definition
|
|
@@ -58062,7 +58062,7 @@
|
|
|
58062
58062
|
this.header = await this.getHeader(); // cricital, don't remove'
|
|
58063
58063
|
|
|
58064
58064
|
if (undefined === this.visibilityWindow && this.config.indexed !== false) {
|
|
58065
|
-
const fn =
|
|
58065
|
+
const fn = isFile(this.config.url) ? this.config.url.name : this.config.url;
|
|
58066
58066
|
|
|
58067
58067
|
if (isString(fn) && fn.toLowerCase().includes("gnomad")) {
|
|
58068
58068
|
this.visibilityWindow = 1000; // these are known to be very dense
|
|
@@ -64132,7 +64132,7 @@
|
|
|
64132
64132
|
}
|
|
64133
64133
|
|
|
64134
64134
|
const locaTrackFiles = trackJson.filter(track => {
|
|
64135
|
-
track.url &&
|
|
64135
|
+
track.url && isFile(track.url);
|
|
64136
64136
|
});
|
|
64137
64137
|
|
|
64138
64138
|
if (locaTrackFiles.length > 0) {
|