Skip to content

Commit

Permalink
Merge pull request #14 from bolorundurovj/dev
Browse files Browse the repository at this point in the history
Improve Intellisense
  • Loading branch information
bolorundurovj authored Jan 23, 2022
2 parents 5468eaa + 123c206 commit 73fb6fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/core/db.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const fs = require("fs");
const Util = require("../utils");
const AkivaDBError = require("../utils/ErrorHandler");
const BaseCollection = require("./collection");
const Collection = require("./collection");
const { EventEmitter } = require("events");

const characterFormat = /[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/;
Expand Down Expand Up @@ -68,7 +67,7 @@ class Database extends EventEmitter {
/**
* The hub to interact with the collections
* @param {!Object} opts The options for the collection
* @returns {BaseCollection}
* @returns {Collection} The Collection
*/
collection(opts) {
if (typeof opts.name !== "string")
Expand All @@ -95,7 +94,7 @@ class Database extends EventEmitter {

if (this.collections.has(opts.name)) return this.collections.get(opts.name);

const col = new BaseCollection(this, opts);
const col = new Collection(this, opts);

this.collections.set(opts.name, col);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "akivadb",
"version": "1.0.1-alpha.3",
"version": "1.0.1-alpha.4",
"description": "A Lightweight Schema-Free Object-Oriented LocalDatabase for Development and Educational Purposes",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 73fb6fa

Please sign in to comment.