@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
package/PluginManager.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ type PluggableElementTypeGroup = 'renderer' | 'adapter' | 'display' | 'track' |
|
|
|
31
31
|
declare class TypeRecord<ElementClass extends PluggableElementBase> {
|
|
32
32
|
typeName: string;
|
|
33
33
|
baseClass: {
|
|
34
|
-
new (...args:
|
|
34
|
+
new (...args: unknown[]): ElementClass;
|
|
35
35
|
} | (Function & {
|
|
36
36
|
prototype: ElementClass;
|
|
37
37
|
});
|
|
@@ -39,7 +39,7 @@ declare class TypeRecord<ElementClass extends PluggableElementBase> {
|
|
|
39
39
|
[name: string]: ElementClass;
|
|
40
40
|
};
|
|
41
41
|
constructor(typeName: string, baseClass: {
|
|
42
|
-
new (...args:
|
|
42
|
+
new (...args: unknown[]): ElementClass;
|
|
43
43
|
} | (Function & {
|
|
44
44
|
prototype: ElementClass;
|
|
45
45
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/core",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "JBrowse 2 core libraries used by plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"access": "public",
|
|
75
75
|
"directory": "dist"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "ed402c87efb0904858d602c363bd1757d5742129"
|
|
78
78
|
}
|
|
@@ -56,9 +56,8 @@ class RpcMethodType extends PluggableElementBase_1.default {
|
|
|
56
56
|
}
|
|
57
57
|
catch (error) {
|
|
58
58
|
if ((0, types_1.isAuthNeededException)(error)) {
|
|
59
|
-
const retryAccount =
|
|
60
|
-
|
|
61
|
-
(_a = this.pluginManager.rootModel) === null || _a === void 0 ? void 0 : _a.createEphemeralInternetAccount(`HTTPBasicInternetAccount-${new URL(error.url).origin}`, {}, error.url);
|
|
59
|
+
const retryAccount = // @ts-expect-error
|
|
60
|
+
(_a = this.pluginManager.rootModel) === null || _a === void 0 ? void 0 : _a.createEphemeralInternetAccount(`HTTPBasicInternetAccount-${new URL(error.url).origin}`, {}, error.url);
|
|
62
61
|
throw new types_1.RetryError('Retrying with created internet account', retryAccount.internetAccountId);
|
|
63
62
|
}
|
|
64
63
|
throw error;
|
|
@@ -36,6 +36,9 @@ class WebWorkerRpcDriver extends BaseRpcDriver_1.default {
|
|
|
36
36
|
// one for each worker, because we want to do our own state-group-aware
|
|
37
37
|
// load balancing rather than using librpc's builtin round-robin
|
|
38
38
|
const instance = this.makeWorkerInstance();
|
|
39
|
+
// @ts-ignore this is used to avoid warning in jbrowse-web startup
|
|
40
|
+
// (because this file is referred to via src, declare.d.ts file is in
|
|
41
|
+
// e.g. products/jbrowse-web)
|
|
39
42
|
const worker = new WebWorkerHandle({ workers: [instance] });
|
|
40
43
|
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
41
44
|
if (isSafari) {
|