@jbrowse/plugin-text-indexing 2.17.0 → 3.0.0
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/dist/TextIndexRpcMethod/TextIndexRpcMethod.d.ts +3 -4
- package/dist/TextIndexRpcMethod/TextIndexRpcMethod.js +5 -5
- package/dist/index.d.ts +1 -1
- package/esm/TextIndexRpcMethod/TextIndexRpcMethod.d.ts +3 -4
- package/esm/TextIndexRpcMethod/TextIndexRpcMethod.js +5 -5
- package/esm/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
2
|
-
import {
|
|
3
|
-
import { indexType, Track } from '@jbrowse/text-indexing';
|
|
2
|
+
import type { Track, indexType } from '@jbrowse/text-indexing';
|
|
4
3
|
export declare class TextIndexRpcMethod extends RpcMethodType {
|
|
5
4
|
name: string;
|
|
6
5
|
execute(args: {
|
|
7
6
|
sessionId: string;
|
|
8
|
-
|
|
7
|
+
stopToken?: string;
|
|
9
8
|
outLocation?: string;
|
|
10
9
|
attributes?: string[];
|
|
11
10
|
exclude?: string[];
|
|
@@ -13,5 +12,5 @@ export declare class TextIndexRpcMethod extends RpcMethodType {
|
|
|
13
12
|
indexType?: indexType;
|
|
14
13
|
tracks: Track[];
|
|
15
14
|
statusCallback: (message: string) => void;
|
|
16
|
-
},
|
|
15
|
+
}, _rpcDriverClassName: string): Promise<void>;
|
|
17
16
|
}
|
|
@@ -5,16 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TextIndexRpcMethod = void 0;
|
|
7
7
|
const RpcMethodType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/RpcMethodType"));
|
|
8
|
-
const
|
|
8
|
+
const stopToken_1 = require("@jbrowse/core/util/stopToken");
|
|
9
9
|
const text_indexing_1 = require("@jbrowse/text-indexing");
|
|
10
10
|
class TextIndexRpcMethod extends RpcMethodType_1.default {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.name = 'TextIndexRpcMethod';
|
|
14
14
|
}
|
|
15
|
-
async execute(args,
|
|
16
|
-
const { tracks, outLocation, exclude, attributes, assemblies, indexType,
|
|
17
|
-
(0,
|
|
15
|
+
async execute(args, _rpcDriverClassName) {
|
|
16
|
+
const { tracks, outLocation, exclude, attributes, assemblies, indexType, stopToken, statusCallback, } = args;
|
|
17
|
+
(0, stopToken_1.checkStopToken)(stopToken);
|
|
18
18
|
await (0, text_indexing_1.indexTracks)({
|
|
19
19
|
outDir: outLocation,
|
|
20
20
|
tracks,
|
|
@@ -23,7 +23,7 @@ class TextIndexRpcMethod extends RpcMethodType_1.default {
|
|
|
23
23
|
assemblyNames: assemblies,
|
|
24
24
|
indexType,
|
|
25
25
|
statusCallback,
|
|
26
|
-
|
|
26
|
+
stopToken,
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
export default class TextIndexingPlugin extends Plugin {
|
|
4
4
|
name: string;
|
|
5
5
|
install(pluginManager: PluginManager): void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
2
|
-
import {
|
|
3
|
-
import { indexType, Track } from '@jbrowse/text-indexing';
|
|
2
|
+
import type { Track, indexType } from '@jbrowse/text-indexing';
|
|
4
3
|
export declare class TextIndexRpcMethod extends RpcMethodType {
|
|
5
4
|
name: string;
|
|
6
5
|
execute(args: {
|
|
7
6
|
sessionId: string;
|
|
8
|
-
|
|
7
|
+
stopToken?: string;
|
|
9
8
|
outLocation?: string;
|
|
10
9
|
attributes?: string[];
|
|
11
10
|
exclude?: string[];
|
|
@@ -13,5 +12,5 @@ export declare class TextIndexRpcMethod extends RpcMethodType {
|
|
|
13
12
|
indexType?: indexType;
|
|
14
13
|
tracks: Track[];
|
|
15
14
|
statusCallback: (message: string) => void;
|
|
16
|
-
},
|
|
15
|
+
}, _rpcDriverClassName: string): Promise<void>;
|
|
17
16
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
2
|
-
import {
|
|
2
|
+
import { checkStopToken } from '@jbrowse/core/util/stopToken';
|
|
3
3
|
import { indexTracks } from '@jbrowse/text-indexing';
|
|
4
4
|
export class TextIndexRpcMethod extends RpcMethodType {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
7
7
|
this.name = 'TextIndexRpcMethod';
|
|
8
8
|
}
|
|
9
|
-
async execute(args,
|
|
10
|
-
const { tracks, outLocation, exclude, attributes, assemblies, indexType,
|
|
11
|
-
|
|
9
|
+
async execute(args, _rpcDriverClassName) {
|
|
10
|
+
const { tracks, outLocation, exclude, attributes, assemblies, indexType, stopToken, statusCallback, } = args;
|
|
11
|
+
checkStopToken(stopToken);
|
|
12
12
|
await indexTracks({
|
|
13
13
|
outDir: outLocation,
|
|
14
14
|
tracks,
|
|
@@ -17,7 +17,7 @@ export class TextIndexRpcMethod extends RpcMethodType {
|
|
|
17
17
|
assemblyNames: assemblies,
|
|
18
18
|
indexType,
|
|
19
19
|
statusCallback,
|
|
20
|
-
|
|
20
|
+
stopToken,
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
export default class TextIndexingPlugin extends Plugin {
|
|
4
4
|
name: string;
|
|
5
5
|
install(pluginManager: PluginManager): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-text-indexing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "JBrowse 2 text indexing rpc method",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jbrowse/text-indexing": "^
|
|
39
|
+
"@jbrowse/text-indexing": "^3.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@jbrowse/core": "^2.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "2c6897f1fa732b1db5b094d1dca197e333e95319"
|
|
55
55
|
}
|