@bobfrankston/mailx-store 0.1.31 → 0.1.32
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/db.js +8 -0
- package/package.json +3 -3
package/db.js
CHANGED
|
@@ -2670,6 +2670,14 @@ export class MailxDB {
|
|
|
2670
2670
|
extraWhere.push("LOWER(f.name) LIKE ?");
|
|
2671
2671
|
extraParams.push(`%${v.toLowerCase()}%`);
|
|
2672
2672
|
}
|
|
2673
|
+
else if (/^(AND|OR|NOT)$/.test(part)) {
|
|
2674
|
+
// FTS5 boolean operators — pass through verbatim (must be uppercase).
|
|
2675
|
+
// Without this branch, `hoddie AND git` got wildcarded into
|
|
2676
|
+
// `hoddie* AND* git*`, which FTS5 reads as three required terms
|
|
2677
|
+
// (one of them being any word starting with "AND") — so a real
|
|
2678
|
+
// match like "Peter Hoddie" + "github" returned zero hits.
|
|
2679
|
+
ftsQuery += `${part} `;
|
|
2680
|
+
}
|
|
2673
2681
|
else {
|
|
2674
2682
|
// Unqualified — search everything.
|
|
2675
2683
|
let term = part.replace(/^\/|\/$/g, "");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx-store",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@bobfrankston/mailx-types": "^0.1.18",
|
|
13
|
-
"@bobfrankston/mailx-settings": "^0.1.
|
|
13
|
+
"@bobfrankston/mailx-settings": "^0.1.22",
|
|
14
14
|
"@bobfrankston/mailx-bus": "^0.1.2",
|
|
15
15
|
"mailparser": "^3.7.2"
|
|
16
16
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
".transformedSnapshot": {
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@bobfrankston/mailx-types": "^0.1.18",
|
|
33
|
-
"@bobfrankston/mailx-settings": "^0.1.
|
|
33
|
+
"@bobfrankston/mailx-settings": "^0.1.22",
|
|
34
34
|
"@bobfrankston/mailx-bus": "^0.1.2",
|
|
35
35
|
"mailparser": "^3.7.2"
|
|
36
36
|
}
|