Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aa-hooks

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aa-hooks - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"name": "aa-hooks",
"version": "0.0.7",
"version": "0.0.8",
"description": "Library for working with autonomous agent events",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -36,2 +36,3 @@

newEventsOnly: false, // default: false
parallelProcessing: false // default: false
});

@@ -38,0 +39,0 @@

@@ -14,2 +14,3 @@ const { v4: uuidv4 } = require('uuid');

newEventsOnly: false,
parallelProcessing: false
};

@@ -36,2 +37,3 @@

this.startTs = Math.floor(config.newEventsOnly ? new Date().getTime() / 1000 : 0);
this.#parallelProcessing = config.parallelProcessing || false;

@@ -111,4 +113,8 @@ eventBus.on('headless_wallet_ready', async () => {

async #responseHandler(res) {
const unlock = await mutex.lock('responseHandler');
let unlock;
if (!this.#parallelProcessing) {
unlock = await mutex.lock('responseHandler');
}
if (res.timestamp >= this.startTs) {

@@ -124,3 +130,5 @@ const eventId = await this.#findId(res);

return await unlock();
if (unlock) {
return await unlock();
}
}

@@ -127,0 +135,0 @@ }

@@ -8,2 +8,3 @@ export class Hooks {

newEventsOnly: boolean;
parallelProcessing: boolean;
});

@@ -10,0 +11,0 @@ /** @private */

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc