@tinacms/search 1.0.29 → 1.0.30

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 +3 -4
  2. package/package.json +5 -6
package/dist/index.js CHANGED
@@ -265,7 +265,6 @@ var SearchIndexer = class {
265
265
  var import_sqlite_level = require("sqlite-level");
266
266
  var import_search_index = __toESM(require("search-index"));
267
267
  var import_memory_level = require("memory-level");
268
- var import_node_fetch = __toESM(require("node-fetch"));
269
268
  var zlib = __toESM(require("zlib"));
270
269
  var DEFAULT_TOKEN_SPLIT_REGEX = /[\p{L}\d_]+/gu;
271
270
  var LocalSearchIndexClient = class {
@@ -318,10 +317,10 @@ var TinaCMSSearchIndexClient = class extends LocalSearchIndexClient {
318
317
  this.indexerToken = options.indexerToken;
319
318
  }
320
319
  async onFinishIndexing() {
321
- const headers = new import_node_fetch.Headers();
320
+ const headers = new Headers();
322
321
  headers.append("x-api-key", this.indexerToken || "bogus");
323
322
  headers.append("Content-Type", "application/json");
324
- let res = await (0, import_node_fetch.default)(`${this.apiUrl}/upload/${this.branch}`, {
323
+ let res = await fetch(`${this.apiUrl}/upload/${this.branch}`, {
325
324
  method: "GET",
326
325
  headers
327
326
  });
@@ -344,7 +343,7 @@ var TinaCMSSearchIndexClient = class extends LocalSearchIndexClient {
344
343
  }
345
344
  const buffer = sqliteLevel.db.serialize();
346
345
  await sqliteLevel.close();
347
- res = await (0, import_node_fetch.default)(signedUrl, {
346
+ res = await fetch(signedUrl, {
348
347
  method: "PUT",
349
348
  body: zlib.gzipSync(buffer)
350
349
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/search",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index-client.mjs",
6
6
  "typings": "dist/index.d.ts",
@@ -30,12 +30,11 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "memory-level": "^1.0.0",
33
- "node-fetch": "2",
34
33
  "search-index": "4.0.0",
35
34
  "sqlite-level": "^1.2.0",
36
35
  "stopword": "^3.1.1",
37
- "@tinacms/graphql": "1.5.2",
38
- "@tinacms/schema-tools": "1.6.2"
36
+ "@tinacms/graphql": "1.5.3",
37
+ "@tinacms/schema-tools": "1.6.3"
39
38
  },
40
39
  "publishConfig": {
41
40
  "registry": "https://registry.npmjs.org"
@@ -47,14 +46,14 @@
47
46
  "devDependencies": {
48
47
  "@types/jest": "^29.5.13",
49
48
  "@types/micromatch": "^4.0.9",
50
- "@types/node": "^22.5.5",
49
+ "@types/node": "^22.7.3",
51
50
  "@types/search-index": "^3.2.4",
52
51
  "jest": "^29.7.0",
53
52
  "jest-diff": "^29.7.0",
54
53
  "jest-file-snapshot": "^0.7.0",
55
54
  "jest-matcher-utils": "^29.7.0",
56
55
  "typescript": "^5.6.2",
57
- "@tinacms/scripts": "1.2.1"
56
+ "@tinacms/scripts": "1.2.2"
58
57
  },
59
58
  "scripts": {
60
59
  "types": "pnpm tsc",