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

@coya/database

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coya/database - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

10

database.js

@@ -30,4 +30,10 @@ const crypto = require('crypto');

static createCappedCollection(collectionName, size, max) {
logs.info('Creating capped collection "' + collectionName + '" of size = ' + size + ' and max = ' + max + '...');
return db.createCollection(collectionName, {capped: true, size:size, max: max});
return Database.collectionExists(collectionName)
.then(function(exists) {
if(!exists) {
logs.info('Creating capped collection "' + collectionName + '" of size = ' + size + ' and max = ' + max + '...');
return db.createCollection(collectionName, {capped: true, size: size, max: max});
}
return Promise.resolve();
});
}

@@ -34,0 +40,0 @@

2

package.json
{
"name": "@coya/database",
"version": "0.0.9",
"version": "0.0.10",
"description": "MongoDB database service",

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