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

pubsubr

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pubsubr - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

23

lib/request.js

@@ -7,14 +7,15 @@ const request = require('request');

filter = JSON.stringify(filter);
request(`${api}?filter=${filter}`, function (err, result) {
if (err) throw err;
result.forEach((item) => {
const payload = utils.decodeTopic(item.topic);
let message = item.message;
try {
message = JSON.parse(message);
} catch (err) {}
payload.message = message;
handler(null, payload);
});
request(`${api}?filter=${filter}`, function (err, res, result) {
result = JSON.parse(result);
if (err) throw err;
result.forEach((item) => {
const payload = utils.decodeTopic(item.topic);
let message = item.message;
try {
message = JSON.parse(message);
} catch (err) {}
payload.message = message;
handler(null, payload);
});
});
};
{
"name": "pubsubr",
"version": "0.1.0",
"version": "0.1.1",
"description": "pub and sub to loopback components",

@@ -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