quickmongo
Advanced tools
Comparing version 1.0.9 to 1.1.0
module.exports = { | ||
Base: require("./src/Base"), | ||
Database: require("./src/Main"), | ||
Error: require("./src/Error"), | ||
MemoryStorage: require("./src/Cache"), | ||
@@ -6,0 +5,0 @@ Schema: require("./src/Schema"), |
{ | ||
"name": "quickmongo", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "Quick mongodb wrapper for beginners.", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"exports": { | ||
".": [ | ||
{ | ||
"require": "./index.js", | ||
"import": "./esm/index.mjs" | ||
}, | ||
"./index.js" | ||
], | ||
"./esm": "./esm/index.mjs" | ||
}, | ||
"scripts": { | ||
@@ -7,0 +18,0 @@ "docsgen": "jsdoc --configure .jsdoc.json --verbose", |
@@ -7,3 +7,3 @@ # QuickMongo | ||
# Documentation | ||
**[QuickMongo](https://quickmongo.snowflakedev.xyz)** | ||
**[QuickMongo](https://quickmongo.js.org)** | ||
@@ -10,0 +10,0 @@ # Features |
@@ -281,3 +281,3 @@ const Base = require("./Base"); | ||
if (!Array.isArray(data)) throw new Error("Data type must be Array.", "DataTypeError"); | ||
if (data.length < 1) return []; | ||
if (data.length < 1) return; | ||
let start = Date.now(); | ||
@@ -284,0 +284,0 @@ this.emit("debug", `Queued ${data.length} entries!`); |
@@ -61,3 +61,3 @@ const _ = require("lodash"); | ||
let arb = data.filter(i => i.ID.startsWith(key)); | ||
if (ops.sort && typeof ops.sort === 'string') { | ||
if (ops && ops.sort && typeof ops.sort === 'string') { | ||
if (ops.sort.startsWith('.')) ops.sort = ops.sort.slice(1); | ||
@@ -64,0 +64,0 @@ ops.sort = ops.sort.split('.'); |
47228
13
937