Comparing version 2.0.1 to 2.0.2
@@ -40,2 +40,5 @@ const MongoClient = require( "mongodb" ).MongoClient; | ||
}, | ||
Save: async function( key, data, collection = "ComfyDefault" ) { | ||
return comfyDB.Store( key, data, collection ); | ||
}, | ||
Store: async function( key, data, collection = "ComfyDefault" ) { | ||
@@ -42,0 +45,0 @@ if( !comfyDB._DB ) { throw new Error( "No Connection" ); } |
{ | ||
"name": "comfydb", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Comfiest Way To Use A Database!", | ||
@@ -16,3 +16,20 @@ "main": "index.js", | ||
"ComfyDB", | ||
"Instafluff" | ||
"Instafluff", | ||
"Database", | ||
"Comfy", | ||
"DB", | ||
"Mongo", | ||
"MongoDB", | ||
"Wrapper", | ||
"Interface", | ||
"Easy", | ||
"Intuitive", | ||
"Store", | ||
"Save", | ||
"Get", | ||
"Data", | ||
"Info", | ||
"Storage", | ||
"Search", | ||
"Query" | ||
], | ||
@@ -19,0 +36,0 @@ "author": "Instafluff", |
@@ -8,3 +8,3 @@ # ComfyDB | ||
It also takes care of the mundane tasks like setting and maintaining `createdAt` and `updatedAt` fields for each object entry. | ||
It also takes care of mundane tasks like setting and maintaining `createdAt` and `updatedAt` fields for each object entry. | ||
@@ -95,3 +95,3 @@ ```javascript | ||
// Insert/Update JSON object entry by key (e.g. userID, username, timestamp, ... ) | ||
await ComfyDB.Store( key, data, collection = "ComfyDefault" ); | ||
await ComfyDB.Store( key, data, collection = "ComfyDefault" ); // ComfyDB.Save() also works | ||
@@ -98,0 +98,0 @@ // Retrieve object entry by key |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50628
507