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

fh-wfm-mongoose-store

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-wfm-mongoose-store - npm Package Compare versions

Comparing version 0.4.4-pre.2 to 0.4.4-pre.3

18

lib/listen.js

@@ -98,4 +98,20 @@ 'use strict';

.on('delete', crudlFunctions.remove)
.on('list', crudlFunctions.list);
.on('list', function(filter) {
filter = filter || {};
var _self = this;
//(Optional) Different filters may require topic UIDs.
//This can avoid the scenario where list done topics are publised with the
//wrong results
var topicUid = filter.topicUid;
filter = _.omit(filter, 'topicUid');
crudlFunctions.list(filter).then(function(filteredList) {
_self.mediator.publish(self.topics.getTopic('list', 'done', topicUid), filteredList);
}).catch(function(err) {
_self.mediator.publish(self.topics.getTopic('list', 'done', topicUid), err);
});
});
console.log('listening for: ', this.topics.getTopic());

@@ -102,0 +118,0 @@ };

2

package.json
{
"name": "fh-wfm-mongoose-store",
"version": "0.4.4-pre.2",
"version": "0.4.4-pre.3",
"description": "Direct mongoose storage",

@@ -5,0 +5,0 @@ "main": "./lib/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