@tinacms/search 0.0.0-c8b1d84-20241003015733 → 0.0.0-cef656e-20250119001929
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.js +11 -5
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -17,6 +17,10 @@ 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
|
));
|
|
@@ -185,9 +189,9 @@ var SearchIndexer = class {
|
|
|
185
189
|
return async (collection, contentPaths) => {
|
|
186
190
|
const templateInfo = this.schema.getTemplatesForCollectable(collection);
|
|
187
191
|
await (0, import_graphql.sequential)(contentPaths, async (path) => {
|
|
188
|
-
const data = await (0, import_graphql.transformDocumentIntoPayload)(
|
|
189
|
-
`${collection.path}/${path}`,
|
|
190
|
-
(0, import_graphql.transformDocument)(
|
|
192
|
+
const data = await (0, import_graphql.transformDocumentIntoPayload)({
|
|
193
|
+
fullPath: `${collection.path}/${path}`,
|
|
194
|
+
rawData: (0, import_graphql.transformDocument)(
|
|
191
195
|
path,
|
|
192
196
|
await (0, import_graphql.loadAndParseWithAliases)(
|
|
193
197
|
this.bridge,
|
|
@@ -197,8 +201,9 @@ var SearchIndexer = class {
|
|
|
197
201
|
),
|
|
198
202
|
this.schema
|
|
199
203
|
),
|
|
200
|
-
this.schema
|
|
201
|
-
|
|
204
|
+
tinaSchema: this.schema,
|
|
205
|
+
context: {}
|
|
206
|
+
});
|
|
202
207
|
await itemCallback(
|
|
203
208
|
processDocumentForIndexing(
|
|
204
209
|
data["_values"],
|
|
@@ -275,6 +280,7 @@ var LocalSearchIndexClient = class {
|
|
|
275
280
|
}
|
|
276
281
|
async onStartIndexing() {
|
|
277
282
|
this.searchIndex = await (0, import_search_index.default)({
|
|
283
|
+
// @ts-ignore
|
|
278
284
|
db: this.memoryLevel,
|
|
279
285
|
stopwords: this.stopwords,
|
|
280
286
|
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-cef656e-20250119001929",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index-client.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"search-index": "4.0.0",
|
|
34
34
|
"sqlite-level": "^1.2.0",
|
|
35
35
|
"stopword": "^3.1.1",
|
|
36
|
-
"@tinacms/graphql": "0.0.0-
|
|
37
|
-
"@tinacms/schema-tools": "
|
|
36
|
+
"@tinacms/graphql": "0.0.0-cef656e-20250119001929",
|
|
37
|
+
"@tinacms/schema-tools": "1.7.0"
|
|
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.9.0",
|
|
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.6.
|
|
56
|
-
"@tinacms/scripts": "1.
|
|
55
|
+
"typescript": "^5.6.3",
|
|
56
|
+
"@tinacms/scripts": "1.3.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"types": "pnpm tsc",
|