@avalw/search-worker 2.3.5 → 2.3.6
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/bin/cli.js +4 -6
- package/index.js +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* AVALW Search Worker CLI v2.3.
|
|
4
|
+
* AVALW Search Worker CLI v2.3.6
|
|
5
5
|
* Distributed Cache Worker for AVALW Search Network
|
|
6
6
|
*
|
|
7
7
|
* Features:
|
|
@@ -133,7 +133,7 @@ Or set environment variable:
|
|
|
133
133
|
// Print banner
|
|
134
134
|
console.log('');
|
|
135
135
|
console.log('===============================================================');
|
|
136
|
-
console.log(' AVALW SEARCH WORKER v2.3.
|
|
136
|
+
console.log(' AVALW SEARCH WORKER v2.3.6 - Intelligent Distributed Cache');
|
|
137
137
|
console.log('===============================================================');
|
|
138
138
|
console.log('');
|
|
139
139
|
|
|
@@ -185,13 +185,11 @@ const worker = new SearchWorker({
|
|
|
185
185
|
},
|
|
186
186
|
|
|
187
187
|
onCacheHit: (key) => {
|
|
188
|
-
|
|
189
|
-
console.log(` [CACHE HIT] Served: "${query.substring(0, 30)}..."`);
|
|
188
|
+
// Privacy: Don't log search queries
|
|
190
189
|
},
|
|
191
190
|
|
|
192
191
|
onCacheStore: (key) => {
|
|
193
|
-
|
|
194
|
-
console.log(` [CACHED] Stored: "${query.substring(0, 30)}..."`);
|
|
192
|
+
// Privacy: Don't log search queries
|
|
195
193
|
},
|
|
196
194
|
|
|
197
195
|
onError: (err) => {
|
package/index.js
CHANGED