Skip to content

Commit

Permalink
remove unused dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
biggora committed Jan 21, 2017
1 parent 99dbf38 commit 3dd32a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
/**
* Module dependencies
*/
var fs = require('fs');
var schema = require('./lib/schema');
var pkg = require('./package');
var abc = require('./lib/abstract-class');
var vld = require('./lib/validatable');
var Schema = schema.Schema;

exports.models = {};
exports.schema = {};
exports.schema = {models:{}};
exports.Schema = Schema;
exports.AbstractClass = abc.AbstractClass;
exports.Validatable = vld.Validatable;
Expand All @@ -25,6 +23,10 @@ exports.init = function (trinte) {
}
};

exports.model = function (name){
return this.schema.models[name.toLowerCase()];
};

exports.version = pkg.version;

exports.__defineGetter__('test', function () {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "caminte",
"description": "ORM for every database: redis, mysql, neo4j, mongodb, rethinkdb, postgres, sqlite, tingodb",
"version": "0.3.2",
"version": "0.3.3",
"author": {
"name": "Aleksej Gordejev",
"email": "[email protected]",
Expand Down

0 comments on commit 3dd32a0

Please sign in to comment.