@jbrowse/plugin-text-indexing 3.7.0 → 4.0.1
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.
|
@@ -2,10 +2,7 @@ import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
|
2
2
|
import { checkStopToken } from '@jbrowse/core/util/stopToken';
|
|
3
3
|
import { indexTracks } from '@jbrowse/text-indexing';
|
|
4
4
|
export class TextIndexRpcMethod extends RpcMethodType {
|
|
5
|
-
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.name = 'TextIndexRpcMethod';
|
|
8
|
-
}
|
|
5
|
+
name = 'TextIndexRpcMethod';
|
|
9
6
|
async execute(args, _rpcDriverClassName) {
|
|
10
7
|
const { tracks, outLocation, exclude, attributes, assemblies, indexType, stopToken, statusCallback, } = args;
|
|
11
8
|
checkStopToken(stopToken);
|
package/esm/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import { TextIndexRpcMethod } from
|
|
2
|
+
import { TextIndexRpcMethod } from "./TextIndexRpcMethod/TextIndexRpcMethod.js";
|
|
3
3
|
export default class TextIndexingPlugin extends Plugin {
|
|
4
|
-
|
|
5
|
-
super(...arguments);
|
|
6
|
-
this.name = 'TextIndexingPlugin';
|
|
7
|
-
}
|
|
4
|
+
name = 'TextIndexingPlugin';
|
|
8
5
|
install(pluginManager) {
|
|
9
6
|
pluginManager.addRpcMethod(() => new TextIndexRpcMethod(pluginManager));
|
|
10
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-text-indexing",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "JBrowse 2 text indexing rpc method",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -15,41 +15,33 @@
|
|
|
15
15
|
"directory": "plugins/text-indexing"
|
|
16
16
|
},
|
|
17
17
|
"author": "JBrowse Team",
|
|
18
|
-
"
|
|
19
|
-
"srcMain": "src/index.ts",
|
|
20
|
-
"main": "dist/index.js",
|
|
18
|
+
"main": "esm/index.js",
|
|
21
19
|
"files": [
|
|
22
|
-
"dist",
|
|
23
20
|
"esm"
|
|
24
21
|
],
|
|
25
|
-
"scripts": {
|
|
26
|
-
"build": "npm-run-all build:*",
|
|
27
|
-
"test": "cd ../..; jest --passWithNoTests plugins/text-indexing",
|
|
28
|
-
"prepublishOnly": "yarn test",
|
|
29
|
-
"prepack": "yarn build && yarn useDist",
|
|
30
|
-
"postpack": "yarn useSrc",
|
|
31
|
-
"useDist": "node ../../scripts/useDist.js",
|
|
32
|
-
"useSrc": "node ../../scripts/useSrc.js",
|
|
33
|
-
"prebuild": "npm run clean",
|
|
34
|
-
"build:esm": "tsc --build tsconfig.build.esm.json",
|
|
35
|
-
"build:commonjs": "tsc --build tsconfig.build.commonjs.json",
|
|
36
|
-
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
|
-
},
|
|
38
22
|
"dependencies": {
|
|
39
|
-
"@jbrowse/core": "^
|
|
40
|
-
"@jbrowse/text-indexing": "^
|
|
41
|
-
"mobx": "^6.0.0",
|
|
42
|
-
"mobx-react": "^9.0.0",
|
|
43
|
-
"mobx-state-tree": "^5.0.0"
|
|
23
|
+
"@jbrowse/core": "^4.0.1",
|
|
24
|
+
"@jbrowse/text-indexing": "^4.0.1"
|
|
44
25
|
},
|
|
45
26
|
"peerDependencies": {
|
|
46
27
|
"react": ">=18.0.0"
|
|
47
28
|
},
|
|
48
|
-
"distModule": "esm/index.js",
|
|
49
|
-
"srcModule": "src/index.ts",
|
|
50
|
-
"module": "esm/index.js",
|
|
51
29
|
"publishConfig": {
|
|
52
30
|
"access": "public"
|
|
53
31
|
},
|
|
54
|
-
"
|
|
55
|
-
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "pnpm run /^build:/",
|
|
35
|
+
"test": "cd ../..; jest --passWithNoTests plugins/text-indexing",
|
|
36
|
+
"prebuild": "pnpm clean",
|
|
37
|
+
"build:esm": "tsc -p tsconfig.build.esm.json",
|
|
38
|
+
"clean": "rimraf esm *.tsbuildinfo"
|
|
39
|
+
},
|
|
40
|
+
"types": "esm/index.d.ts",
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./esm/index.d.ts",
|
|
44
|
+
"import": "./esm/index.js"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType';
|
|
2
|
-
import type { Track, indexType } from '@jbrowse/text-indexing';
|
|
3
|
-
export declare class TextIndexRpcMethod extends RpcMethodType {
|
|
4
|
-
name: string;
|
|
5
|
-
execute(args: {
|
|
6
|
-
sessionId: string;
|
|
7
|
-
stopToken?: string;
|
|
8
|
-
outLocation?: string;
|
|
9
|
-
attributes?: string[];
|
|
10
|
-
exclude?: string[];
|
|
11
|
-
assemblies?: string[];
|
|
12
|
-
indexType?: indexType;
|
|
13
|
-
tracks: Track[];
|
|
14
|
-
statusCallback: (message: string) => void;
|
|
15
|
-
}, _rpcDriverClassName: string): Promise<void>;
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TextIndexRpcMethod = void 0;
|
|
7
|
-
const RpcMethodType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/RpcMethodType"));
|
|
8
|
-
const stopToken_1 = require("@jbrowse/core/util/stopToken");
|
|
9
|
-
const text_indexing_1 = require("@jbrowse/text-indexing");
|
|
10
|
-
class TextIndexRpcMethod extends RpcMethodType_1.default {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.name = 'TextIndexRpcMethod';
|
|
14
|
-
}
|
|
15
|
-
async execute(args, _rpcDriverClassName) {
|
|
16
|
-
const { tracks, outLocation, exclude, attributes, assemblies, indexType, stopToken, statusCallback, } = args;
|
|
17
|
-
(0, stopToken_1.checkStopToken)(stopToken);
|
|
18
|
-
await (0, text_indexing_1.indexTracks)({
|
|
19
|
-
outDir: outLocation,
|
|
20
|
-
tracks,
|
|
21
|
-
featureTypesToExclude: exclude,
|
|
22
|
-
attributesToIndex: attributes,
|
|
23
|
-
assemblyNames: assemblies,
|
|
24
|
-
indexType,
|
|
25
|
-
statusCallback,
|
|
26
|
-
stopToken,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.TextIndexRpcMethod = TextIndexRpcMethod;
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
|
|
7
|
-
const TextIndexRpcMethod_1 = require("./TextIndexRpcMethod/TextIndexRpcMethod");
|
|
8
|
-
class TextIndexingPlugin extends Plugin_1.default {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.name = 'TextIndexingPlugin';
|
|
12
|
-
}
|
|
13
|
-
install(pluginManager) {
|
|
14
|
-
pluginManager.addRpcMethod(() => new TextIndexRpcMethod_1.TextIndexRpcMethod(pluginManager));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.default = TextIndexingPlugin;
|