@jbrowse/plugin-text-indexing 2.15.0 → 2.15.2

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.
@@ -13,5 +13,5 @@ export declare class TextIndexRpcMethod extends RpcMethodType {
13
13
  indexType?: indexType;
14
14
  tracks: Track[];
15
15
  statusCallback: (message: string) => void;
16
- }, rpcDriverClassName: string): Promise<never[]>;
16
+ }, rpcDriverClassName: string): Promise<void>;
17
17
  }
@@ -13,22 +13,18 @@ class TextIndexRpcMethod extends RpcMethodType_1.default {
13
13
  this.name = 'TextIndexRpcMethod';
14
14
  }
15
15
  async execute(args, rpcDriverClassName) {
16
- const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
17
- const { tracks, outLocation, exclude, attributes, assemblies, indexType, signal, statusCallback, } = deserializedArgs;
16
+ const { tracks, outLocation, exclude, attributes, assemblies, indexType, signal, statusCallback, } = await this.deserializeArguments(args, rpcDriverClassName);
18
17
  (0, util_1.checkAbortSignal)(signal);
19
- const indexingParams = {
20
- outLocation,
18
+ await (0, text_indexing_1.indexTracks)({
19
+ outDir: outLocation,
21
20
  tracks,
22
- exclude,
23
- attributes,
24
- assemblies,
21
+ featureTypesToExclude: exclude,
22
+ attributesToIndex: attributes,
23
+ assemblyNames: assemblies,
25
24
  indexType,
26
25
  statusCallback,
27
26
  signal,
28
- };
29
- await (0, text_indexing_1.indexTracks)(indexingParams);
30
- statusCallback('Indexing Complete.');
31
- return [];
27
+ });
32
28
  }
33
29
  }
34
30
  exports.TextIndexRpcMethod = TextIndexRpcMethod;
@@ -13,5 +13,5 @@ export declare class TextIndexRpcMethod extends RpcMethodType {
13
13
  indexType?: indexType;
14
14
  tracks: Track[];
15
15
  statusCallback: (message: string) => void;
16
- }, rpcDriverClassName: string): Promise<never[]>;
16
+ }, rpcDriverClassName: string): Promise<void>;
17
17
  }
@@ -7,21 +7,17 @@ export class TextIndexRpcMethod extends RpcMethodType {
7
7
  this.name = 'TextIndexRpcMethod';
8
8
  }
9
9
  async execute(args, rpcDriverClassName) {
10
- const deserializedArgs = await this.deserializeArguments(args, rpcDriverClassName);
11
- const { tracks, outLocation, exclude, attributes, assemblies, indexType, signal, statusCallback, } = deserializedArgs;
10
+ const { tracks, outLocation, exclude, attributes, assemblies, indexType, signal, statusCallback, } = await this.deserializeArguments(args, rpcDriverClassName);
12
11
  checkAbortSignal(signal);
13
- const indexingParams = {
14
- outLocation,
12
+ await indexTracks({
13
+ outDir: outLocation,
15
14
  tracks,
16
- exclude,
17
- attributes,
18
- assemblies,
15
+ featureTypesToExclude: exclude,
16
+ attributesToIndex: attributes,
17
+ assemblyNames: assemblies,
19
18
  indexType,
20
19
  statusCallback,
21
20
  signal,
22
- };
23
- await indexTracks(indexingParams);
24
- statusCallback('Indexing Complete.');
25
- return [];
21
+ });
26
22
  }
27
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-text-indexing",
3
- "version": "2.15.0",
3
+ "version": "2.15.2",
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": "^2.15.0"
39
+ "@jbrowse/text-indexing": "^2.15.2"
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": "87eeb1fbf8311dbf88d5e75b5a265f03beffdda8"
54
+ "gitHead": "8a58cefbfe39af4c97bcb6ead354d72c9fef9224"
55
55
  }