New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-socket

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-socket - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

11

build/index.js

@@ -26,10 +26,15 @@ 'use strict';

function postSave(opts, doc) {
var type = opts.type;
var channelFn = opts.channelFn;
var publish = doc.constructor.publish;
var documentObj = doc.toObject();
var channel = opts.channelFn(documentObj);
var entity = doc.toObject();
var channel = channelFn(entity);
publish({
channel: channel,
message: documentObj
message: {
type: type,
entity: entity
}
});
}
{
"name": "mongoose-socket",
"version": "1.0.3",
"version": "1.0.4",
"description": "Mongoose plugin that publishes socket notifications whenever a document is saved",

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