@jbrowse/core 2.6.2 → 2.6.3
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/PluginManager.d.ts +2 -2
- package/package.json +2 -2
- package/pluggableElementTypes/RpcMethodType.js +2 -3
- package/rpc/WebWorkerRpcDriver.js +3 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/util/io/RemoteFileWithRangeCache.js +1 -1
- package/util/types/index.d.ts +2 -0
- package/util/types/index.js +15 -1
|
@@ -15,7 +15,7 @@ function binaryRangeFetch(url, start, end, options = {}) {
|
|
|
15
15
|
const globalRangeCache = new http_range_fetcher_1.HttpRangeFetcher({
|
|
16
16
|
fetch: binaryRangeFetch,
|
|
17
17
|
size: 500 * 1024 ** 2,
|
|
18
|
-
chunkSize: 128 *
|
|
18
|
+
chunkSize: 128 * 1024,
|
|
19
19
|
maxFetchSize: 100 * 1024 ** 2,
|
|
20
20
|
minimumTTL: 24 * 60 * 60 * 1000, // 1 day
|
|
21
21
|
});
|
package/util/types/index.d.ts
CHANGED
|
@@ -211,6 +211,8 @@ export interface LocalPathLocation extends SnapshotIn<typeof MULocalPathLocation
|
|
|
211
211
|
export interface UriLocation extends SnapshotIn<typeof MUUriLocation> {
|
|
212
212
|
}
|
|
213
213
|
export declare function isUriLocation(location: unknown): location is UriLocation;
|
|
214
|
+
export declare function isLocalPathLocation(location: unknown): location is LocalPathLocation;
|
|
215
|
+
export declare function isBlobLocation(location: unknown): location is BlobLocation;
|
|
214
216
|
export declare class AuthNeededError extends Error {
|
|
215
217
|
message: string;
|
|
216
218
|
url: string;
|
package/util/types/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.isRetryException = exports.isAuthNeededException = exports.RetryError = exports.AuthNeededError = exports.isUriLocation = exports.isAbstractMenuManager = exports.isRootModelWithInternetAccounts = exports.isAppRootModel = exports.isTrackViewModel = exports.isDisplayModel = exports.isTrackModel = exports.isViewModel = exports.isSelectionContainer = exports.isSessionWithSessionPlugins = exports.isSessionModelWithConnectionEditing = exports.isSessionModelWithConnections = exports.isSessionModelWithWidgets = exports.isSessionWithAddTracks = exports.isSessionModelWithConfigEditing = exports.isSessionModel = exports.isViewContainer = void 0;
|
|
17
|
+
exports.isRetryException = exports.isAuthNeededException = exports.RetryError = exports.AuthNeededError = exports.isBlobLocation = exports.isLocalPathLocation = exports.isUriLocation = exports.isAbstractMenuManager = exports.isRootModelWithInternetAccounts = exports.isAppRootModel = exports.isTrackViewModel = exports.isDisplayModel = exports.isTrackModel = exports.isViewModel = exports.isSelectionContainer = exports.isSessionWithSessionPlugins = exports.isSessionModelWithConnectionEditing = exports.isSessionModelWithConnections = exports.isSessionModelWithWidgets = exports.isSessionWithAddTracks = exports.isSessionModelWithConfigEditing = exports.isSessionModel = exports.isViewContainer = void 0;
|
|
18
18
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
19
19
|
__exportStar(require("./util"), exports);
|
|
20
20
|
function isViewContainer(thing) {
|
|
@@ -122,6 +122,20 @@ function isUriLocation(location) {
|
|
|
122
122
|
!!location.uri);
|
|
123
123
|
}
|
|
124
124
|
exports.isUriLocation = isUriLocation;
|
|
125
|
+
function isLocalPathLocation(location) {
|
|
126
|
+
return (typeof location === 'object' &&
|
|
127
|
+
location !== null &&
|
|
128
|
+
'localPath' in location &&
|
|
129
|
+
!!location.localPath);
|
|
130
|
+
}
|
|
131
|
+
exports.isLocalPathLocation = isLocalPathLocation;
|
|
132
|
+
function isBlobLocation(location) {
|
|
133
|
+
return (typeof location === 'object' &&
|
|
134
|
+
location !== null &&
|
|
135
|
+
'blobId' in location &&
|
|
136
|
+
!!location.blobId);
|
|
137
|
+
}
|
|
138
|
+
exports.isBlobLocation = isBlobLocation;
|
|
125
139
|
class AuthNeededError extends Error {
|
|
126
140
|
constructor(message, url) {
|
|
127
141
|
super(message);
|