Skip to content

Commit

Permalink
Updated package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Jan 12, 2014
1 parent 5b6bfe2 commit a3a7ece
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/Model.js
Expand Up @@ -80,13 +80,15 @@ function Model(database, collection, schema, options) {
enumerable: false
});

var _instance = null;
Object.defineProperty(this, 'Instance', {
value: Instance.forModel(this),
get: function() { return _instance = _instance || Instance.forModel(this) },
enumerable: false
});

var _cache = options.cache;
Object.defineProperty(this, 'cache', {
value: options.cache || new NoOpCache(),
get: function() { return _cache = _cache || new NoOpCache(); },
enumerable: false
})

Expand Down
14 changes: 12 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "iridium",
"version": "2.9.2",
"version": "2.9.3",
"author": "Benjamin Pannell <admin@sierrasoftworks.com>",
"description": "A custom lightweight ORM for MongoDB designed for power-users",
"homepage": "https://sierrasoftworks.com/iridium",
Expand Down Expand Up @@ -28,5 +28,15 @@
"devDependencies": {
"mocha": "*",
"should": "*"
}
},

"keywords": [
"mongodb",
"orm",
"odm",
"iridium",
"validation",
"transformation",
"preprocessing"
]
}

0 comments on commit a3a7ece

Please sign in to comment.