@jbrowse/plugin-authentication
Version:
JBrowse 2 Authentication
16 lines (15 loc) • 463 B
JavaScript
import { RemoteFileWithRangeCache } from '@jbrowse/core/util/io';
export class GoogleDriveFile extends 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;
}
}