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

ric-utils-misc

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

ric-utils-misc - npm Package Compare versions

Comparing version 1.0.60 to 1.0.61

22

lib/query.js

@@ -136,19 +136,15 @@ /*

function capped(db, name, size, callback) {
db.collection(name, (err, collection) => {
const collection = db.collection(name);
collection.isCapped((err, capped) => {
if (err) {
return callback(new Error(err));
return callback(null, collection);
}
collection.isCapped((err, capped) => {
if (err) {
return callback(null, collection);
}
if (capped) {
return callback(null, collection);
}
if (capped) {
return callback(null, collection);
}
db.command({ convertToCapped: name, size, autoIndexId: true }, err => {
callback(err ? new Error(err) : null, collection);
});
db.command({ convertToCapped: name, size, autoIndexId: true }, err => {
callback(err ? new Error(err) : null, collection);
});

@@ -155,0 +151,0 @@ });

{
"name": "ric-utils-misc",
"version": "1.0.60",
"version": "1.0.61",
"description": "Miscellaneous utility functions",

@@ -5,0 +5,0 @@ "main": "index",

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