@tinacms/search 0.0.0-cef656e-20250119001929 → 0.0.0-d20d4ee-20250329210608

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -9
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -27,14 +27,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
29
  // src/index.ts
30
- var src_exports = {};
31
- __export(src_exports, {
30
+ var index_exports = {};
31
+ __export(index_exports, {
32
32
  LocalSearchIndexClient: () => LocalSearchIndexClient,
33
33
  SearchIndexer: () => SearchIndexer,
34
34
  TinaCMSSearchIndexClient: () => TinaCMSSearchIndexClient,
35
35
  si: () => import_search_index2.default
36
36
  });
37
- module.exports = __toCommonJS(src_exports);
37
+ module.exports = __toCommonJS(index_exports);
38
38
  var import_search_index2 = __toESM(require("search-index"));
39
39
 
40
40
  // src/indexer/index.ts
@@ -189,9 +189,9 @@ var SearchIndexer = class {
189
189
  return async (collection, contentPaths) => {
190
190
  const templateInfo = this.schema.getTemplatesForCollectable(collection);
191
191
  await (0, import_graphql.sequential)(contentPaths, async (path) => {
192
- const data = await (0, import_graphql.transformDocumentIntoPayload)({
193
- fullPath: `${collection.path}/${path}`,
194
- rawData: (0, import_graphql.transformDocument)(
192
+ const data = await (0, import_graphql.transformDocumentIntoPayload)(
193
+ `${collection.path}/${path}`,
194
+ (0, import_graphql.transformDocument)(
195
195
  path,
196
196
  await (0, import_graphql.loadAndParseWithAliases)(
197
197
  this.bridge,
@@ -201,9 +201,8 @@ var SearchIndexer = class {
201
201
  ),
202
202
  this.schema
203
203
  ),
204
- tinaSchema: this.schema,
205
- context: {}
206
- });
204
+ this.schema
205
+ );
207
206
  await itemCallback(
208
207
  processDocumentForIndexing(
209
208
  data["_values"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/search",
3
- "version": "0.0.0-cef656e-20250119001929",
3
+ "version": "0.0.0-d20d4ee-20250329210608",
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.0",
35
- "stopword": "^3.1.1",
36
- "@tinacms/graphql": "0.0.0-cef656e-20250119001929",
37
- "@tinacms/schema-tools": "1.7.0"
34
+ "sqlite-level": "^1.2.1",
35
+ "stopword": "^3.1.4",
36
+ "@tinacms/graphql": "0.0.0-d20d4ee-20250329210608",
37
+ "@tinacms/schema-tools": "1.7.2"
38
38
  },
39
39
  "publishConfig": {
40
40
  "registry": "https://registry.npmjs.org"
@@ -46,14 +46,14 @@
46
46
  "devDependencies": {
47
47
  "@types/jest": "^29.5.14",
48
48
  "@types/micromatch": "^4.0.9",
49
- "@types/node": "^22.9.0",
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.6.3",
56
- "@tinacms/scripts": "1.3.1"
55
+ "typescript": "^5.7.3",
56
+ "@tinacms/scripts": "1.3.3"
57
57
  },
58
58
  "scripts": {
59
59
  "types": "pnpm tsc",