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

node-simple-collectionmodel

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-simple-collectionmodel - npm Package Compare versions

Comparing version 1.3.43 to 1.3.44

17

lib/collectionModel.js

@@ -612,2 +612,19 @@ 'use strict';

async setSequence(sequence) {
return new Promise((resolve, reject) => {
this.ModelSequence.findOne({ name: this.modelName }, (err, document) => {
if (err) {
return reject(err);
}
if (!document) {
return reject(new Error(`Updated failed; sequence document ${this.modelName} not found`));
}
document.set({
seq: sequence,
});
return resolve(document.save());
});
});
}
async setSequenceExtended(extraName, sequence) {

@@ -614,0 +631,0 @@ if (!extraName) {

2

package.json
{
"name": "node-simple-collectionmodel",
"description": "A simpel and nice collection model for mongoose stuff.",
"version": "1.3.43",
"version": "1.3.44",
"homepage": "https://github.com/5orenso/node-simple-collectionmodel",

@@ -6,0 +6,0 @@ "repository": {

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