Rename jugglingdb to loopback-data
This commit is contained in:
parent
a35d2b7365
commit
1cf4338298
2
index.js
2
index.js
|
@ -15,4 +15,4 @@ loopback.Memory = require('./lib/connectors/memory');
|
|||
* Types
|
||||
*/
|
||||
|
||||
loopback.GeoPoint = require('jugglingdb/lib/geo').GeoPoint;
|
||||
loopback.GeoPoint = require('loopback-data/lib/geo').GeoPoint;
|
|
@ -2,8 +2,8 @@
|
|||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var DataSource = require('jugglingdb').DataSource
|
||||
, ModelBuilder = require('jugglingdb').ModelBuilder
|
||||
var DataSource = require('loopback-data').DataSource
|
||||
, ModelBuilder = require('loopback-data').ModelBuilder
|
||||
, assert = require('assert')
|
||||
, RemoteObjects = require('sl-remoting');
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ var Connector = require('./base-connector')
|
|||
, util = require('util')
|
||||
, inherits = util.inherits
|
||||
, assert = require('assert')
|
||||
, JdbMemory = require('jugglingdb/lib/adapters/memory');
|
||||
, JdbMemory = require('loopback-data/lib/adapters/memory');
|
||||
|
||||
/**
|
||||
* Create a new `Memory` connector with the given `options`.
|
||||
|
|
|
@ -8,8 +8,8 @@ var express = require('express')
|
|||
, path = require('path')
|
||||
, proto = require('./application')
|
||||
, utils = require('express/node_modules/connect').utils
|
||||
, DataSource = require('jugglingdb').DataSource
|
||||
, ModelBuilder = require('jugglingdb').ModelBuilder
|
||||
, DataSource = require('loopback-data').DataSource
|
||||
, ModelBuilder = require('loopback-data').ModelBuilder
|
||||
, assert = require('assert')
|
||||
, i8n = require('inflection');
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ var ACLSchema = {
|
|||
// readAccess, writeAccess --> public, userId, role
|
||||
|
||||
module.exports = function(dataSource) {
|
||||
dataSource = dataSource || new require('jugglingdb').ModelBuilder();
|
||||
dataSource = dataSource || new require('loopback-data').ModelBuilder();
|
||||
var ACL = dataSource.define('ACL', ACLSchema);
|
||||
return ACL;
|
||||
}
|
|
@ -89,7 +89,7 @@ function generateKey(hmacKey, algorithm) {
|
|||
}
|
||||
|
||||
module.exports = function (dataSource) {
|
||||
dataSource = dataSource || new require('jugglingdb').ModelBuilder();
|
||||
dataSource = dataSource || new require('loopback-data').ModelBuilder();
|
||||
|
||||
// var AuthenticationScheme = dataSource.define('AuthenticationScheme', AuthenticationSchemeSchema);
|
||||
// ApplicationSchema.authenticationSchemes = [AuthenticationScheme];
|
||||
|
|
|
@ -20,7 +20,7 @@ var InstallationSchema = {
|
|||
};
|
||||
|
||||
module.exports = function(dataSource) {
|
||||
dataSource = dataSource || new require('jugglingdb').ModelBuilder();
|
||||
dataSource = dataSource || new require('loopback-data').ModelBuilder();
|
||||
var Installation = dataSource.define('Installation', InstallationSchema);
|
||||
return Installation;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ var RoleSchema = {
|
|||
}
|
||||
|
||||
module.exports = function(dataSource) {
|
||||
dataSource = dataSource || new require('jugglingdb').ModelBuilder();
|
||||
dataSource = dataSource || new require('loopback-data').ModelBuilder();
|
||||
var Role = dataSource.define('Role', RoleSchema);
|
||||
return Role;
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
"dependencies": {
|
||||
"debug": "latest",
|
||||
"express": "~3.1.1",
|
||||
"jugglingdb": "git+ssh://git@github.com:strongloop/jugglingdb.git",
|
||||
"loopback-data": "git+ssh://git@github.com:strongloop/loopback-data.git",
|
||||
"sl-remoting": "git+ssh://git@github.com:strongloop/sl-remoting.git",
|
||||
"inflection": "~1.2.5"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue