@tinacms/search 1.2.14 → 1.2.16
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 +3 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -239,7 +239,7 @@ var SearchIndexer = class {
|
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
// src/client/index.ts
|
|
242
|
-
import
|
|
242
|
+
import { SqliteLevel } from "sqlite-level";
|
|
243
243
|
import createSearchIndex from "search-index";
|
|
244
244
|
import { MemoryLevel } from "memory-level";
|
|
245
245
|
|
|
@@ -545,7 +545,6 @@ var FuzzySearchWrapper = class {
|
|
|
545
545
|
|
|
546
546
|
// src/client/index.ts
|
|
547
547
|
import * as zlib from "node:zlib";
|
|
548
|
-
var SqliteLevel2 = sqliteLevelModule.default?.SqliteLevel ?? sqliteLevelModule.SqliteLevel;
|
|
549
548
|
var DEFAULT_TOKEN_SPLIT_REGEX = /[\p{L}\d_]+/gu;
|
|
550
549
|
var LocalSearchIndexClient = class {
|
|
551
550
|
searchIndex;
|
|
@@ -614,7 +613,7 @@ var LocalSearchIndexClient = class {
|
|
|
614
613
|
};
|
|
615
614
|
}
|
|
616
615
|
async export(filename) {
|
|
617
|
-
const sqliteLevel = new
|
|
616
|
+
const sqliteLevel = new SqliteLevel({ filename });
|
|
618
617
|
const iterator = this.memoryLevel.iterator();
|
|
619
618
|
for await (const [key, value] of iterator) {
|
|
620
619
|
await sqliteLevel.put(key, value);
|
|
@@ -650,7 +649,7 @@ var TinaCMSSearchIndexClient = class extends LocalSearchIndexClient {
|
|
|
650
649
|
return signedUrl;
|
|
651
650
|
}
|
|
652
651
|
async serializeIndex() {
|
|
653
|
-
const sqliteLevel = new
|
|
652
|
+
const sqliteLevel = new SqliteLevel({ filename: ":memory:" });
|
|
654
653
|
const iterator = this.memoryLevel.iterator();
|
|
655
654
|
for await (const [key, value] of iterator) {
|
|
656
655
|
await sqliteLevel.put(key, value);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/search",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.16",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"memory-level": "^1.0.0",
|
|
32
32
|
"search-index": "4.0.0",
|
|
33
|
-
"sqlite-level": "^
|
|
33
|
+
"sqlite-level": "^2.1.0",
|
|
34
34
|
"stopword": "^3.1.4",
|
|
35
|
-
"@tinacms/
|
|
36
|
-
"@tinacms/
|
|
35
|
+
"@tinacms/graphql": "2.4.2",
|
|
36
|
+
"@tinacms/schema-tools": "2.8.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"registry": "https://registry.npmjs.org"
|