We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db4e215 commit 48fbe59Copy full SHA for 48fbe59
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@nostrwatch/nostrawl",
3
- "version": "0.0.3",
+ "version": "0.0.4",
4
"description": "A nostr library for continously retrieving events from nostr relays based on a set of filters.",
5
"main": "src/index.js",
6
"license": "MIT",
src/classes/Trawler.js
@@ -79,8 +79,8 @@ class NTTrawler {
79
path: this.options.cache.path,
80
compression: true
81
});
82
- this?.options?.after_cacheOpen(this.cache)
83
- //console.log('cache opened')
+ if(this?.options && this.options instanceof Function)
+ this?.options?.after_cacheOpen(this.cache)
84
}
85
86
async trawl(chunk, $job){
0 commit comments