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

mongoose-plugin-autoinc-fix

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

mongoose-plugin-autoinc-fix - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

4

lib/index.js

@@ -303,5 +303,5 @@ 'use strict';

// Every time documents in this schema are saved, run this logic.
schema.post('validate', function (next) {
schema.post('validate', function (doc, next) {
// Get reference to the document being saved.
const doc = this;
//const doc: MongooseDocument = this;
// $FlowFixMe

@@ -308,0 +308,0 @@ const alreadyGetId = doc.__maiRanOnce === true;

{
"name": "mongoose-plugin-autoinc-fix",
"version": "0.0.4",
"version": "0.0.5",
"description": "==fix-bug==This plugin allows you to auto-increment any field on any mongoose schema that you wish (forked mongoose-auto-increment in 2018).",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

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