New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2 to 0.0.3

2

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

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

@@ -38,3 +38,3 @@

const regSymbolHandler = (triggerUnit, responseObj) => {
const regSymbolHandler = async (triggerUnit, responseObj) => {
const symbol = triggerUnit.messages.find((m => m.app === 'data'))?.payload?.symbol;

@@ -54,9 +54,9 @@ console.error("Reg new symbol: ", symbol);

// custom hook
// custom filter
hooks.register(regSymbolHandler)
.isSuccess()
.customHook(async (responseObj, meta) => {
.customFilter(async (responseObj, meta) => {
const { payload, trigger_unit } = meta;
// this is a filter function
// always returns boolean value*
// always returns boolean value
}, ["payload", "trigger_unit"])

@@ -63,0 +63,0 @@ .triggerDataContainsKey("symbol");

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