Socket
Socket
Sign inDemoInstall

nsq-publisher

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nsq-publisher - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

15

index.js

@@ -12,2 +12,8 @@ const Promise = require('bluebird');

createTopicAsync() {
return request.postAsync(
`${this.dataUrl}:${this.dataPort}/topic/create?topic=${this.topic}`
);
}
createTopic(callback) {

@@ -21,2 +27,11 @@ request.postAsync(

publishAsync(message) {
return new Promise((res, rej) => {
this.publish(message, (err) => {
if (err) { rej(err); }
else { res(); }
});
});
}
publish(message, callback) {

@@ -23,0 +38,0 @@

2

package.json
{
"name": "nsq-publisher",
"version": "0.0.3",
"version": "0.0.4",
"description": "Simple way to create topics and publish messages in NSQ",

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

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