Skip to content

Commit

Permalink
Update igv-utils - fix "isFile" test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Oct 30, 2021
1 parent dce71b4 commit 7571c67
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ class Browser {


const locaTrackFiles = trackJson.filter((track) => {
track.url && FileUtils.isFilePath(track.url)
track.url && FileUtils.isFile(track.url)
})

if (locaTrackFiles.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion js/feature/featureFileReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class FeatureFileReader {
this.indexURL = config.indexURL;
this.indexed = config.indexed;

if (FileUtils.isFilePath(this.config.url)) {
if (FileUtils.isFile(this.config.url)) {
this.filename = this.config.url.name;
} else if (isDataURL(this.config.url)) {
this.indexed = false; // by definition
Expand Down
1 change: 1 addition & 0 deletions js/util/deepCopy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Fast deep copy function, copied from https://github.com/davidmarkclements/rfdc
* Function is copied rather than imported because project does not support es6 import, only 'require'
*/
import {FileUtils} from "../../node_modules/igv-utils/src/index.js";


function cloneArray(a, fn) {
Expand Down
3 changes: 2 additions & 1 deletion js/variant/variantTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ import FeatureSource from '../feature/featureSource.js';
import TrackBase from "../trackBase.js";
import IGVGraphics from "../igv-canvas.js";
import {createCheckbox} from "../igv-icons.js";
import {StringUtils} from "../../node_modules/igv-utils/src/index.js";
import {PaletteColorTable, ColorTable} from "../util/colorPalletes.js";
import {FileUtils, StringUtils} from "../../node_modules/igv-utils/src/index.js";


const isString = StringUtils.isString;

Expand Down
2 changes: 1 addition & 1 deletion js/version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const _version = "2.10.3"
const _version = "2.10.4"
function version() {
return _version;
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "igv",
"version": "2.10.3",
"version": "2.10.4",
"main": "dist/igv.esm.js",
"browser": "dist/igv.js",
"module": "dist/igv.esm.js",
Expand Down Expand Up @@ -52,7 +52,7 @@
"eslint": "^6.4.0",
"esm": "^3.2.25",
"igv-ui": "git+https://github.com/igvteam/igv-ui.git#v1.2.0",
"igv-utils": "git+https://github.com/igvteam/igv-utils.git#v1.3.5",
"igv-utils": "git+https://github.com/igvteam/igv-utils.git#v1.3.6",
"mocha": "^8.1.3",
"regenerator-runtime": "^0.13.3",
"rollup": "^2.28.1",
Expand Down

0 comments on commit 7571c67

Please sign in to comment.