@jbrowse/plugin-legacy-jbrowse 2.4.1 → 2.5.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/JBrowse1Connection/configSchema.d.ts +32 -1
- package/dist/JBrowse1Connection/model.d.ts +26 -1
- package/dist/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.d.ts +2 -2
- package/dist/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js.map +1 -1
- package/dist/JBrowse1TextSearchAdapter/configSchema.d.ts +29 -1
- package/dist/NCListAdapter/configSchema.d.ts +20 -1
- package/esm/JBrowse1Connection/configSchema.d.ts +32 -1
- package/esm/JBrowse1Connection/model.d.ts +26 -1
- package/esm/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.d.ts +2 -2
- package/esm/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js.map +1 -1
- package/esm/JBrowse1TextSearchAdapter/configSchema.d.ts +29 -1
- package/esm/NCListAdapter/configSchema.d.ts +20 -1
- package/package.json +2 -2
- package/src/JBrowse1TextSearchAdapter/HttpMap.test.ts +36 -51
- package/src/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.test.ts +6 -8
- package/src/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.ts +2 -2
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
declare const JBrowse1Connection: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const JBrowse1Connection: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
dataDirLocation: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
locationType: string;
|
|
10
|
+
};
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* #slot
|
|
15
|
+
*/
|
|
16
|
+
assemblyNames: {
|
|
17
|
+
description: string;
|
|
18
|
+
type: string;
|
|
19
|
+
defaultValue: never[];
|
|
20
|
+
};
|
|
21
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
22
|
+
name: {
|
|
23
|
+
type: string;
|
|
24
|
+
defaultValue: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
assemblyNames: {
|
|
28
|
+
type: string;
|
|
29
|
+
defaultValue: never[];
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>, undefined>>;
|
|
2
33
|
export default JBrowse1Connection;
|
|
@@ -3,7 +3,32 @@ export default function (pluginManager: PluginManager): import("mobx-state-tree"
|
|
|
3
3
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
4
4
|
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
5
5
|
} & {
|
|
6
|
-
configuration: import("
|
|
6
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
7
|
+
dataDirLocation: {
|
|
8
|
+
type: string;
|
|
9
|
+
defaultValue: {
|
|
10
|
+
uri: string;
|
|
11
|
+
locationType: string;
|
|
12
|
+
};
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
assemblyNames: {
|
|
16
|
+
description: string;
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: never[];
|
|
19
|
+
};
|
|
20
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
21
|
+
name: {
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
assemblyNames: {
|
|
27
|
+
type: string;
|
|
28
|
+
defaultValue: never[];
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>, undefined>>;
|
|
7
32
|
type: import("mobx-state-tree").ISimpleType<"JBrowse1Connection">;
|
|
8
33
|
}, {
|
|
9
34
|
afterAttach(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseTextSearchAdapter,
|
|
1
|
+
import { BaseTextSearchAdapter, BaseTextSearchArgs, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
3
3
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
4
|
import HttpMap from './HttpMap';
|
|
@@ -26,7 +26,7 @@ export default class JBrowse1TextSearchAdapter extends BaseAdapter implements Ba
|
|
|
26
26
|
* @param query - string query
|
|
27
27
|
*/
|
|
28
28
|
loadIndexFile(query: string): Promise<IndexFile>;
|
|
29
|
-
searchIndex(args:
|
|
29
|
+
searchIndex(args: BaseTextSearchArgs): Promise<BaseResult[]>;
|
|
30
30
|
formatResults(results: SearchResults, tracks: string[], searchType?: string): BaseResult[];
|
|
31
31
|
freeResources(): void;
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JBrowse1TextSearchAdapter.js","sourceRoot":"","sources":["../../src/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.ts"],"names":[],"mappings":";;;;;AAAA,yEAIgD;AAChD,uFAA6D;AAC7D,+DAGoC;AACpC,wDAA+B;AAkB/B,wCAAwC;AACxC,MAAqB,yBACnB,SAAQ,yBAAW;IAOnB,YACE,MAA6B,EAC7B,aAAiC,EACjC,aAA6B;QAE7B,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,CAAA;QAC3C,MAAM,UAAU,GAAG,IAAA,8BAAc,EAAC,MAAM,EAAE,oBAAoB,CA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ACvB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;gBACrB,MAAM,SAAS,GAAG,GAAG,OAAO,IAAI,IAAI,IAAI,KAAK,IAAI,GAAG,EAAE,CAAA;gBACtD,OAAO,IAAI,qBAAU,CAAC;oBACpB,SAAS,EAAE,SAAS;oBACpB,KAAK,EAAE,IAAI;oBACX,gBAAgB,EAAE,MAAM;oBACxB,aAAa,EAAE,MAAM;oBACrB,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC;iBAC5B,CAAC,CAAA;YACJ,CAAC,CAAC;SACH,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,kBAAkB,CAAC,CAAA;IAC9D,CAAC;IAED,aAAa,KAAI,CAAC;CACnB;AAtED,4CAsEC"}
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
declare const _default: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const _default: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
namesIndexLocation: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
locationType: string;
|
|
10
|
+
};
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* #slot
|
|
15
|
+
*/
|
|
16
|
+
tracks: {
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: never[];
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* #slot
|
|
23
|
+
*/
|
|
24
|
+
assemblyNames: {
|
|
25
|
+
type: string;
|
|
26
|
+
defaultValue: never[];
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "textSearchAdapterId">>;
|
|
2
30
|
export default _default;
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
declare const NCListAdapter: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const NCListAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
rootUrlTemplate: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
locationType: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* #slot
|
|
14
|
+
*/
|
|
15
|
+
refNames: {
|
|
16
|
+
type: string;
|
|
17
|
+
defaultValue: never[];
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
21
|
export default NCListAdapter;
|
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
declare const JBrowse1Connection: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const JBrowse1Connection: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
dataDirLocation: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
locationType: string;
|
|
10
|
+
};
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* #slot
|
|
15
|
+
*/
|
|
16
|
+
assemblyNames: {
|
|
17
|
+
description: string;
|
|
18
|
+
type: string;
|
|
19
|
+
defaultValue: never[];
|
|
20
|
+
};
|
|
21
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
22
|
+
name: {
|
|
23
|
+
type: string;
|
|
24
|
+
defaultValue: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
assemblyNames: {
|
|
28
|
+
type: string;
|
|
29
|
+
defaultValue: never[];
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>, undefined>>;
|
|
2
33
|
export default JBrowse1Connection;
|
|
@@ -3,7 +3,32 @@ export default function (pluginManager: PluginManager): import("mobx-state-tree"
|
|
|
3
3
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
4
4
|
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
5
5
|
} & {
|
|
6
|
-
configuration: import("
|
|
6
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
7
|
+
dataDirLocation: {
|
|
8
|
+
type: string;
|
|
9
|
+
defaultValue: {
|
|
10
|
+
uri: string;
|
|
11
|
+
locationType: string;
|
|
12
|
+
};
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
assemblyNames: {
|
|
16
|
+
description: string;
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: never[];
|
|
19
|
+
};
|
|
20
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
21
|
+
name: {
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
assemblyNames: {
|
|
27
|
+
type: string;
|
|
28
|
+
defaultValue: never[];
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "connectionId">>, undefined>>;
|
|
7
32
|
type: import("mobx-state-tree").ISimpleType<"JBrowse1Connection">;
|
|
8
33
|
}, {
|
|
9
34
|
afterAttach(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseTextSearchAdapter,
|
|
1
|
+
import { BaseTextSearchAdapter, BaseTextSearchArgs, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
3
3
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
4
|
import HttpMap from './HttpMap';
|
|
@@ -26,7 +26,7 @@ export default class JBrowse1TextSearchAdapter extends BaseAdapter implements Ba
|
|
|
26
26
|
* @param query - string query
|
|
27
27
|
*/
|
|
28
28
|
loadIndexFile(query: string): Promise<IndexFile>;
|
|
29
|
-
searchIndex(args:
|
|
29
|
+
searchIndex(args: BaseTextSearchArgs): Promise<BaseResult[]>;
|
|
30
30
|
formatResults(results: SearchResults, tracks: string[], searchType?: string): BaseResult[];
|
|
31
31
|
freeResources(): void;
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JBrowse1TextSearchAdapter.js","sourceRoot":"","sources":["../../src/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,GACZ,MAAM,yCAAyC,CAAA;AAChD,OAAO,UAAU,MAAM,sCAAsC,CAAA;AAC7D,OAAO,EAEL,cAAc,GACf,MAAM,6BAA6B,CAAA;AACpC,OAAO,OAAO,MAAM,WAAW,CAAA;AAkB/B,wCAAwC;AACxC,MAAM,CAAC,OAAO,OAAO,yBACnB,SAAQ,WAAW;IAOnB,YACE,MAA6B,EAC7B,aAAiC,EACjC,aAA6B;QAE7B,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,CAAA;QAC3C,MAAM,UAAU,GAAG,cAAc,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;QAC/D,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,UAAU,CAAA;QACnC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC;YACzB,GAAG,EAAE,OAA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AAM,CAAC,CAAC,CAAC,CAAA;gBACrB,MAAM,SAAS,GAAG,GAAG,OAAO,IAAI,IAAI,IAAI,KAAK,IAAI,GAAG,EAAE,CAAA;gBACtD,OAAO,IAAI,UAAU,CAAC;oBACpB,SAAS,EAAE,SAAS;oBACpB,KAAK,EAAE,IAAI;oBACX,gBAAgB,EAAE,MAAM;oBACxB,aAAa,EAAE,MAAM;oBACrB,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC;iBAC5B,CAAC,CAAA;YACJ,CAAC,CAAC;SACH,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,kBAAkB,CAAC,CAAA;IAC9D,CAAC;IAED,aAAa,KAAI,CAAC;CACnB"}
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
declare const _default: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const _default: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
namesIndexLocation: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
locationType: string;
|
|
10
|
+
};
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* #slot
|
|
15
|
+
*/
|
|
16
|
+
tracks: {
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: never[];
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* #slot
|
|
23
|
+
*/
|
|
24
|
+
assemblyNames: {
|
|
25
|
+
type: string;
|
|
26
|
+
defaultValue: never[];
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "textSearchAdapterId">>;
|
|
2
30
|
export default _default;
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
declare const NCListAdapter: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const NCListAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
rootUrlTemplate: {
|
|
6
|
+
type: string;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
uri: string;
|
|
9
|
+
locationType: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* #slot
|
|
14
|
+
*/
|
|
15
|
+
refNames: {
|
|
16
|
+
type: string;
|
|
17
|
+
defaultValue: never[];
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
21
|
export default NCListAdapter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-legacy-jbrowse",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "JBrowse 2 plugin for connecting to and reading JBrowse 1 data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"distModule": "esm/index.js",
|
|
57
57
|
"srcModule": "src/index.ts",
|
|
58
58
|
"module": "esm/index.js",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "d1ca073996d008f0fe9a52f7c1a47ae649dcfdaf"
|
|
60
60
|
}
|
|
@@ -4,61 +4,46 @@ import first from '../../test_data/names/0.json'
|
|
|
4
4
|
import last from '../../test_data/names/f.json'
|
|
5
5
|
import HttpMap from './HttpMap'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (url.includes('names/meta.json')) {
|
|
12
|
-
response = meta
|
|
13
|
-
}
|
|
14
|
-
return Promise.resolve(new Response(JSON.stringify(response)))
|
|
15
|
-
}
|
|
16
|
-
const rootTemplate = path
|
|
17
|
-
.join(__dirname, '..', '..', '..', '..', 'test_data', 'names')
|
|
18
|
-
.replace(/\\/g, '\\\\')
|
|
7
|
+
test('read from meta', async () => {
|
|
8
|
+
const rootTemplate = path
|
|
9
|
+
.join(__dirname, '..', '..', '..', '..', 'test_data', 'names')
|
|
10
|
+
.replace(/\\/g, '\\\\')
|
|
19
11
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
jest.spyOn(global, 'fetch').mockImplementation(url => {
|
|
13
|
+
const response = `${url}`.includes('names/meta.json') ? meta : {}
|
|
14
|
+
return Promise.resolve(new Response(JSON.stringify(response)))
|
|
15
|
+
})
|
|
16
|
+
const hashMap = new HttpMap({ url: rootTemplate })
|
|
17
|
+
await hashMap.getBucket('apple')
|
|
26
18
|
|
|
27
|
-
|
|
19
|
+
// test compress and hash hex characters are set after initial search
|
|
20
|
+
expect(await hashMap.getHashHexCharacters()).toBe(1)
|
|
21
|
+
expect(await hashMap.getCompress()).toBe(0)
|
|
22
|
+
})
|
|
23
|
+
test('get bucket contents', async () => {
|
|
24
|
+
const rootTemplate = path
|
|
25
|
+
.join(__dirname, '..', '..', '..', '..', 'test_data', 'names')
|
|
26
|
+
.replace(/\\/g, '\\\\')
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
function mockFetch(url: string): Promise<Response> {
|
|
35
|
-
let response = {}
|
|
36
|
-
if (url.includes('names/meta.json')) {
|
|
37
|
-
response = meta
|
|
38
|
-
}
|
|
39
|
-
if (url.includes('names/0.json')) {
|
|
40
|
-
response = first
|
|
41
|
-
}
|
|
42
|
-
if (url.includes('names/f.json')) {
|
|
43
|
-
response = last
|
|
44
|
-
}
|
|
45
|
-
return Promise.resolve(new Response(JSON.stringify(response)))
|
|
28
|
+
const spy = jest.spyOn(global, 'fetch')
|
|
29
|
+
spy.mockImplementation(url => {
|
|
30
|
+
let response = {}
|
|
31
|
+
if (`${url}`.includes('names/meta.json')) {
|
|
32
|
+
response = meta
|
|
46
33
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
})
|
|
34
|
+
if (`${url}`.includes('names/0.json')) {
|
|
35
|
+
response = first
|
|
36
|
+
}
|
|
37
|
+
if (`${url}`.includes('names/f.json')) {
|
|
38
|
+
response = last
|
|
39
|
+
}
|
|
40
|
+
return Promise.resolve(new Response(JSON.stringify(response)))
|
|
41
|
+
})
|
|
42
|
+
const hashMap = new HttpMap({ url: rootTemplate })
|
|
57
43
|
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
await hashMap.getBucket('apple')
|
|
45
|
+
expect(spy).toHaveBeenLastCalledWith(`${rootTemplate}/0.json`)
|
|
60
46
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
})
|
|
47
|
+
await hashMap.getBucket('apple3')
|
|
48
|
+
expect(spy).toHaveBeenLastCalledWith(`${rootTemplate}/f.json`)
|
|
64
49
|
})
|
|
@@ -6,15 +6,15 @@ import last from '../../test_data/names/f.json'
|
|
|
6
6
|
import Adapter from './JBrowse1TextSearchAdapter'
|
|
7
7
|
import configSchema from './configSchema'
|
|
8
8
|
|
|
9
|
-
function mockFetch(url:
|
|
9
|
+
function mockFetch(url: RequestInfo | URL) {
|
|
10
10
|
let response = {}
|
|
11
|
-
if (url
|
|
11
|
+
if (`${url}`.includes('names/meta.json')) {
|
|
12
12
|
response = meta
|
|
13
13
|
}
|
|
14
|
-
if (url
|
|
14
|
+
if (`${url}`.includes('names/0.json')) {
|
|
15
15
|
response = first
|
|
16
16
|
}
|
|
17
|
-
if (url
|
|
17
|
+
if (`${url}`.includes('names/f.json')) {
|
|
18
18
|
response = last
|
|
19
19
|
}
|
|
20
20
|
return Promise.resolve(new Response(JSON.stringify(response)))
|
|
@@ -26,8 +26,7 @@ const rootTemplate = path
|
|
|
26
26
|
|
|
27
27
|
test('search upper case', async () => {
|
|
28
28
|
const spy = jest.spyOn(global, 'fetch')
|
|
29
|
-
|
|
30
|
-
spy.mockImplementation(mockFetch as any)
|
|
29
|
+
spy.mockImplementation(mockFetch)
|
|
31
30
|
|
|
32
31
|
const adapter = new Adapter(
|
|
33
32
|
configSchema.create({
|
|
@@ -65,8 +64,7 @@ test('search upper case', async () => {
|
|
|
65
64
|
|
|
66
65
|
test('search lower case', async () => {
|
|
67
66
|
const spy = jest.spyOn(global, 'fetch')
|
|
68
|
-
|
|
69
|
-
spy.mockImplementation(mockFetch as any)
|
|
67
|
+
spy.mockImplementation(mockFetch)
|
|
70
68
|
|
|
71
69
|
const adapter = new Adapter(
|
|
72
70
|
configSchema.create({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseTextSearchAdapter,
|
|
3
|
-
|
|
3
|
+
BaseTextSearchArgs,
|
|
4
4
|
BaseAdapter,
|
|
5
5
|
} from '@jbrowse/core/data_adapters/BaseAdapter'
|
|
6
6
|
import BaseResult from '@jbrowse/core/TextSearch/BaseResults'
|
|
@@ -57,7 +57,7 @@ export default class JBrowse1TextSearchAdapter
|
|
|
57
57
|
return this.httpMap.getBucket(query)
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
async searchIndex(args:
|
|
60
|
+
async searchIndex(args: BaseTextSearchArgs) {
|
|
61
61
|
const { searchType, queryString } = args
|
|
62
62
|
const tracks = this.tracksNames || (await this.httpMap.getTrackNames())
|
|
63
63
|
const str = queryString.toLowerCase()
|