New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

log2amqp

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log2amqp - npm Package Compare versions

Comparing version 3.0.0-meta.1 to 3.0.0

2

package.json
{
"name": "log2amqp",
"description": "Log json data to amqp from express routes.",
"version": "3.0.0-meta.1",
"version": "3.0.0",
"author": "Tim Allen <tim@noblesamurai.com>",

@@ -6,0 +6,0 @@ "license": "BSD",

@@ -18,4 +18,4 @@ # log2amqp [![Build Status](https://travis-ci.org/noblesamurai/node-log2amqp.svg?branch=master)](http://travis-ci.org/noblesamurai/node-log2amqp) [![NPM version](https://badge-me.herokuapp.com/api/npm/log2amqp.png)](http://badges.enytc.com/for/npm/log2amqp)

};
const Logger = require('log2amqp')(config);
let logger = Logger();
const AMQPLogger = require('log2amqp');
const logger = new AMQPLogger(config);
payload = { this: 'thing'};

@@ -25,3 +25,15 @@ logger.log('kind', payload);

logger.flush({ meta: {/* ... */} }).then(() => {
// [{ kind: payload }, { kind2: 'chris' }] is flushed to amqp routingKey
// [{ kind: payload }, { kind2: 'chris' }] is flushed to amqp routingKey (schemaVersion === 2)
// OR
/*
[
{ type: 'kind',
data: 'payload'
},
{
type: 'kind2',
data: 'chris'
}
] is flushed to amqp routingKey (schemaVersion === 3)
*/
});

@@ -28,0 +40,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