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

aedes-persistence-nedb

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aedes-persistence-nedb - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "aedes-persistence-nedb",
"version": "1.0.0",
"version": "1.0.1",
"description": "NeDB persistence for Aedes.",

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

@@ -75,3 +75,4 @@ 'use strict';

if (packet.payload.length > 0) {
self.retained.update({ topic: packet.topic }, packet, { upsert: true }, function (err, num, docs) {
var pkt = transformPacket(packet);
self.retained.update({ topic: packet.topic }, pkt, { upsert: true }, function (err, num, docs) {
return callback(err);

@@ -94,3 +95,4 @@ });

readable.curIndex++;
readable.push(docs[0]);
var packet = transformPacket(docs[0]);
readable.push(packet);
});

@@ -97,0 +99,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