From 77e842d2a34eba85a1c4d8a4e4fc159803292697 Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Mon, 11 Nov 2013 13:35:54 -0800 Subject: [PATCH 1/2] Fix bundle model name casing --- lib/models/email.js | 2 +- lib/models/model.js | 4 ++-- lib/models/session.js | 4 ++-- lib/models/user.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/models/email.js b/lib/models/email.js index d2c33bc2..eb079d67 100644 --- a/lib/models/email.js +++ b/lib/models/email.js @@ -21,4 +21,4 @@ var properties = { * Extends from the built in `loopback.Model` type. */ -var Email = module.exports = Model.extend('email', properties); +var Email = module.exports = Model.extend('Email', properties); diff --git a/lib/models/model.js b/lib/models/model.js index 72b43ebb..9d2f2ef3 100644 --- a/lib/models/model.js +++ b/lib/models/model.js @@ -9,7 +9,7 @@ var modeler = new ModelBuilder(); * Define the built in loopback.Model. */ -var Model = module.exports = modeler.define('model'); +var Model = module.exports = modeler.define('Model'); Model.shared = true; @@ -113,4 +113,4 @@ Model.setup = function () { } // setup the initial model -Model.setup(); \ No newline at end of file +Model.setup(); diff --git a/lib/models/session.js b/lib/models/session.js index 704edf5c..9099db1a 100644 --- a/lib/models/session.js +++ b/lib/models/session.js @@ -20,7 +20,7 @@ var properties = { * Extends from the built in `loopback.Model` type. */ -var Session = module.exports = Model.extend('session', properties); +var Session = module.exports = Model.extend('Session', properties); /** * Create a cryptographically random session id. @@ -53,4 +53,4 @@ Session.beforeCreate = function (next, data) { next(); } }); -} \ No newline at end of file +} diff --git a/lib/models/user.js b/lib/models/user.js index 86f44f74..581262be 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -45,7 +45,7 @@ var properties = { * Extends from the built in `loopback.Model` type. */ -var User = module.exports = Model.extend('user', properties); +var User = module.exports = Model.extend('User', properties); /** * Login a user by with the given `credentials`. From e382626675553eece38258f977ff8afb6874f52b Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Mon, 11 Nov 2013 13:39:02 -0800 Subject: [PATCH 2/2] Bump verison --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c7462b98..d03d0bda 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "Platform", "mBaaS" ], - "version": "1.2.0", + "version": "1.2.1", "scripts": { "test": "mocha -R spec", "blanket": {