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.2 to 1.0.3

2

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

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

@@ -32,2 +32,3 @@ 'use strict';

self._path = self._options.path || './data';
self._prefix = (self._options.prefix) ? (self._options.prefix + '.') : '';
self._ready = { incoming: false, outgoing: false, retained: false, subscriptions: false, wills: false };

@@ -50,3 +51,3 @@ self.ready = false;

var _name = name;
var filename = Path.join(self._path, _name + '.db');
var filename = Path.join(self._path, self._prefix + _name + '.db');
var storage = new NeDB({

@@ -53,0 +54,0 @@ filename: filename,

@@ -29,3 +29,4 @@ [![Build Status](https://img.shields.io/travis/ovhemert/aedes-persistence-nedb.svg)](https://travis-ci.org/ovhemert/aedes-persistence-nedb)

var persistence = new NedbPersistence({
path: './db' // defaults to './data'
path: './db' // defaults to './data',
prefix: 'mqtt' // defaults to ''
});

@@ -32,0 +33,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