Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "aa-hooks", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Library for working with autonomous agent events", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
![AA hooks](/public/img.svg) | ||
## Hook list | ||
## Hook list | ||
- aaAddressIs | ||
@@ -36,3 +36,3 @@ - triggerAaAddressIs | ||
newEventsOnly: false, // default: false | ||
parallelProcessing: false // default: false | ||
parallelProcessing: false // default: false | ||
}); | ||
@@ -45,3 +45,3 @@ | ||
await hooks.addWatchedAddress("..."); // watch new agent | ||
await hooks.addWatchedAddress("..."); // watch new agent | ||
} | ||
@@ -67,3 +67,2 @@ | ||
<details> | ||
@@ -134,2 +133,3 @@ <summary>Example triggerUnit</summary> | ||
``` | ||
</details> | ||
@@ -212,2 +212,3 @@ | ||
``` | ||
</details> | ||
@@ -229,2 +230,2 @@ | ||
[![Kivach](https://kivach.org/api/banner?repo=byteball/aa-hooks)](https://kivach.org/repo/byteball/aa-hooks) | ||
[![Kivach](https://kivach.org/api/banner?repo=byteball/aa-hooks)](https://kivach.org/repo/byteball/aa-hooks) |
@@ -36,3 +36,4 @@ const { v4: uuidv4 } = require('uuid'); | ||
this.startTs = Math.floor(config.newEventsOnly ? new Date().getTime() / 1000 : 0); | ||
this.#parallelProcessing = config.parallelProcessing || false; | ||
/** @private */ | ||
this.parallelProcessing = config.parallelProcessing || false; | ||
@@ -114,3 +115,3 @@ eventBus.on('headless_wallet_ready', async () => { | ||
if (!this.#parallelProcessing) { | ||
if (!this.parallelProcessing) { | ||
unlock = await mutex.lock('responseHandler'); | ||
@@ -117,0 +118,0 @@ } |
@@ -14,2 +14,4 @@ export class Hooks { | ||
private startTs; | ||
/** @private */ | ||
private parallelProcessing; | ||
/** | ||
@@ -16,0 +18,0 @@ * |
117732
564
226