Comparing version 0.0.1 to 0.0.2
@@ -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}; |
{ | ||
"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 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16851
341