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

aagent.js

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aagent.js - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

1

libs/aa.js

@@ -17,3 +17,2 @@ const EventEmitter = require('events');

eventBus.on('message_for_light', async (ws, subject, body) => {
console.error('new message: ', subject, ws.peer, Date.now());
if (subject === 'light/aa_request' && body.aa_address === this.address) {

@@ -20,0 +19,0 @@ const params = {address: body.aa_address, messages: body.unit.messages};

2

package.json
{
"name": "aagent.js",
"version": "0.0.1",
"version": "0.0.2",
"description": "It is CLI and library to work with Autonomous Agents on Obyte",

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

@@ -50,15 +50,15 @@ # aagent.js

aa.events.on('new_request', (request) => {
console.log('new request', request);
console.error('new request', request);
});
aa.events.on('new_response', (err, response, vars) => {
console.log('new response', response, vars);
console.error('new response', response, vars);
});
aa.events.on('new_aa_definition', (definition) => {
console.log('new aa definition', definition);
console.error('new aa definition', definition);
});
aa.events.on('new_aa_definition_saved', (definition) => {
console.log('new aa definition saved', definition);
console.error('new aa definition saved', definition);
});

@@ -69,3 +69,3 @@

}, (err, params, vars) => {
console.log(err, params, vars);
console.error(err, params, vars);
});

@@ -98,3 +98,3 @@

}, (request, body) => {
console.log(request, body);
console.error(request, body);
});

@@ -110,3 +110,3 @@ ```

}, (err, params, vars, body) => {
console.log(err, params, vars, body);
console.error(err, params, vars, body);
});

@@ -118,3 +118,3 @@ ```

}, (definition, body) => {
console.log(definition, body);
console.error(definition, body);
});

@@ -126,3 +126,3 @@ ```

}, (definition, body) => {
console.log(definition, body);
console.error(definition, body);
});

@@ -136,3 +136,3 @@ ```

aa.events.on('new_request', (request, body) => {
console.log('new request', request, body);
console.error('new request', request, body);
});

@@ -149,3 +149,3 @@ ```

aa.events.on('new_response', (err, params, vars, body) => {
console.log('new response', err, params, vars, body);
console.error('new response', err, params, vars, body);
});

@@ -164,3 +164,3 @@ ```

aa.events.on('new_aa_definition', (definition, body) => {
console.log('new aa definition', definition, body);
console.error('new aa definition', definition, body);
});

@@ -177,3 +177,3 @@ ```

aa.events.on('new_aa_definition_saved', (definition, body) => {
console.log('new aa definition saved', definition, body);
console.error('new aa definition saved', definition, body);
});

@@ -180,0 +180,0 @@ ```

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