@tinacms/search 0.0.0-e0ddb8c-20241004065742 → 0.0.0-e5c0e91-20250421003142
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/index-client.d.ts +1 -16
- package/dist/index.d.ts +1 -5
- package/dist/index.js +8 -3
- package/package.json +9 -9
package/dist/index-client.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { processDocumentForIndexing } from './indexer/utils';
|
|
3
|
-
export declare const queryToSearchIndexQuery: (query: string, stopwordLanguages?: string[]) => any;
|
|
4
|
-
export declare const optionsToSearchIndexOptions: (options?: {
|
|
5
|
-
limit?: number;
|
|
6
|
-
cursor?: string;
|
|
7
|
-
}) => {};
|
|
8
|
-
export declare const parseSearchIndexResponse: (data: any, options?: {
|
|
9
|
-
limit?: number;
|
|
10
|
-
cursor?: string;
|
|
11
|
-
}) => {
|
|
12
|
-
results: any;
|
|
13
|
-
total: any;
|
|
14
|
-
prevCursor: any;
|
|
15
|
-
nextCursor: string;
|
|
16
|
-
};
|
|
1
|
+
export * from "../src/index-client"
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,20 +17,24 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
23
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
28
|
|
|
25
29
|
// src/index.ts
|
|
26
|
-
var
|
|
27
|
-
__export(
|
|
30
|
+
var index_exports = {};
|
|
31
|
+
__export(index_exports, {
|
|
28
32
|
LocalSearchIndexClient: () => LocalSearchIndexClient,
|
|
29
33
|
SearchIndexer: () => SearchIndexer,
|
|
30
34
|
TinaCMSSearchIndexClient: () => TinaCMSSearchIndexClient,
|
|
31
35
|
si: () => import_search_index2.default
|
|
32
36
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
37
|
+
module.exports = __toCommonJS(index_exports);
|
|
34
38
|
var import_search_index2 = __toESM(require("search-index"));
|
|
35
39
|
|
|
36
40
|
// src/indexer/index.ts
|
|
@@ -275,6 +279,7 @@ var LocalSearchIndexClient = class {
|
|
|
275
279
|
}
|
|
276
280
|
async onStartIndexing() {
|
|
277
281
|
this.searchIndex = await (0, import_search_index.default)({
|
|
282
|
+
// @ts-ignore
|
|
278
283
|
db: this.memoryLevel,
|
|
279
284
|
stopwords: this.stopwords,
|
|
280
285
|
tokenSplitRegex: this.tokenSplitRegex
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/search",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-e5c0e91-20250421003142",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index-client.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"memory-level": "^1.0.0",
|
|
33
33
|
"search-index": "4.0.0",
|
|
34
|
-
"sqlite-level": "^1.2.
|
|
35
|
-
"stopword": "^3.1.
|
|
36
|
-
"@tinacms/graphql": "0.0.0-
|
|
37
|
-
"@tinacms/schema-tools": "0.0.0-
|
|
34
|
+
"sqlite-level": "^1.2.1",
|
|
35
|
+
"stopword": "^3.1.4",
|
|
36
|
+
"@tinacms/graphql": "0.0.0-e5c0e91-20250421003142",
|
|
37
|
+
"@tinacms/schema-tools": "0.0.0-e5c0e91-20250421003142"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"registry": "https://registry.npmjs.org"
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"directory": "packages/@tinacms/search"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/jest": "^29.5.
|
|
47
|
+
"@types/jest": "^29.5.14",
|
|
48
48
|
"@types/micromatch": "^4.0.9",
|
|
49
|
-
"@types/node": "^22.
|
|
49
|
+
"@types/node": "^22.13.1",
|
|
50
50
|
"@types/search-index": "^3.2.4",
|
|
51
51
|
"jest": "^29.7.0",
|
|
52
52
|
"jest-diff": "^29.7.0",
|
|
53
53
|
"jest-file-snapshot": "^0.7.0",
|
|
54
54
|
"jest-matcher-utils": "^29.7.0",
|
|
55
|
-
"typescript": "^5.
|
|
56
|
-
"@tinacms/scripts": "1.
|
|
55
|
+
"typescript": "^5.7.3",
|
|
56
|
+
"@tinacms/scripts": "1.3.4"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"types": "pnpm tsc",
|