@jbrowse/plugin-authentication
Version:
JBrowse 2 Authentication
20 lines (19 loc) • 596 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GoogleDriveFile = void 0;
const io_1 = require("@jbrowse/core/util/io");
class GoogleDriveFile extends io_1.RemoteFileWithRangeCache {
constructor(source, opts) {
super(source, opts);
this.statsPromise = this.fetch(source, {
metadataOnly: true,
}).then(response => response.json());
}
async fetch(input, opts) {
return super.fetch(input, opts);
}
async stat() {
return this.statsPromise;
}
}
exports.GoogleDriveFile = GoogleDriveFile;