2013-04-09 16:02:36 +00:00
|
|
|
{
|
2013-07-16 17:49:25 +00:00
|
|
|
"name": "loopback",
|
2016-12-05 09:15:39 +00:00
|
|
|
"version": "3.1.0",
|
2016-01-19 13:49:23 +00:00
|
|
|
"publishConfig": {
|
2015-12-22 13:01:29 +00:00
|
|
|
"tag": "next"
|
|
|
|
},
|
2014-07-26 04:14:27 +00:00
|
|
|
"description": "LoopBack: Open Source Framework for Node.js",
|
2014-05-12 16:22:09 +00:00
|
|
|
"homepage": "http://loopback.io",
|
2013-10-29 21:12:23 +00:00
|
|
|
"keywords": [
|
2014-09-06 18:28:58 +00:00
|
|
|
"web",
|
2014-05-24 00:48:37 +00:00
|
|
|
"restful",
|
|
|
|
"rest",
|
|
|
|
"api",
|
2014-05-27 17:54:39 +00:00
|
|
|
"express",
|
|
|
|
"restify",
|
|
|
|
"koa",
|
2014-05-24 00:48:37 +00:00
|
|
|
"auth",
|
|
|
|
"security",
|
|
|
|
"oracle",
|
|
|
|
"mysql",
|
|
|
|
"nosql",
|
|
|
|
"mongo",
|
|
|
|
"mongodb",
|
|
|
|
"sqlserver",
|
|
|
|
"mssql",
|
2014-05-27 17:24:26 +00:00
|
|
|
"postgres",
|
2014-05-27 17:58:26 +00:00
|
|
|
"postgresql",
|
2014-05-27 17:43:36 +00:00
|
|
|
"soap",
|
2013-10-29 21:12:23 +00:00
|
|
|
"StrongLoop",
|
2014-05-27 17:43:36 +00:00
|
|
|
"framework",
|
2014-05-27 17:54:39 +00:00
|
|
|
"mobile",
|
2013-10-29 21:12:23 +00:00
|
|
|
"mBaaS"
|
|
|
|
],
|
2013-04-09 16:02:36 +00:00
|
|
|
"scripts": {
|
2016-08-29 21:41:02 +00:00
|
|
|
"lint": "grunt eslint",
|
2014-06-23 12:44:19 +00:00
|
|
|
"test": "grunt mocha-and-karma"
|
2013-04-09 16:02:36 +00:00
|
|
|
},
|
2016-11-15 12:48:29 +00:00
|
|
|
"engines": {
|
|
|
|
"node": ">=4.0.0"
|
|
|
|
},
|
2013-04-09 16:02:36 +00:00
|
|
|
"dependencies": {
|
2016-08-02 08:59:21 +00:00
|
|
|
"async": "^2.0.1",
|
2015-03-05 00:30:03 +00:00
|
|
|
"bcryptjs": "^2.1.0",
|
2015-12-17 18:34:10 +00:00
|
|
|
"bluebird": "^3.1.1",
|
2015-03-05 00:30:03 +00:00
|
|
|
"body-parser": "^1.12.0",
|
2014-06-27 08:36:06 +00:00
|
|
|
"canonical-json": "0.0.4",
|
2015-03-05 00:30:03 +00:00
|
|
|
"debug": "^2.1.2",
|
2015-02-26 15:29:29 +00:00
|
|
|
"depd": "^1.0.0",
|
2015-03-05 00:30:03 +00:00
|
|
|
"ejs": "^2.3.1",
|
2016-06-17 07:52:37 +00:00
|
|
|
"express": "^4.14.0",
|
2015-03-05 00:30:03 +00:00
|
|
|
"inflection": "^1.6.0",
|
2016-09-22 10:31:51 +00:00
|
|
|
"loopback-connector-remote": "^3.0.0",
|
|
|
|
"loopback-datasource-juggler": "^3.0.0",
|
2016-09-06 10:50:03 +00:00
|
|
|
"isemail": "^1.2.0",
|
2014-12-10 08:36:45 +00:00
|
|
|
"loopback-phase": "^1.2.0",
|
2016-08-02 08:59:21 +00:00
|
|
|
"nodemailer": "^2.5.0",
|
|
|
|
"nodemailer-stub-transport": "^1.0.0",
|
2015-03-05 00:30:03 +00:00
|
|
|
"serve-favicon": "^2.2.0",
|
2014-12-15 07:14:26 +00:00
|
|
|
"stable": "^0.1.5",
|
2016-09-16 19:31:48 +00:00
|
|
|
"strong-globalize": "^2.7.0",
|
2016-09-22 10:31:51 +00:00
|
|
|
"strong-remoting": "^3.0.0",
|
2013-11-20 21:31:30 +00:00
|
|
|
"uid2": "0.0.3",
|
2015-03-05 00:30:03 +00:00
|
|
|
"underscore.string": "^3.0.3"
|
2013-04-09 16:02:36 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2016-08-02 08:59:21 +00:00
|
|
|
"browserify": "^13.1.0",
|
|
|
|
"chai": "^3.5.0",
|
2016-05-31 14:50:04 +00:00
|
|
|
"cookie-parser": "^1.3.4",
|
2016-11-22 14:30:04 +00:00
|
|
|
"dirty-chai": "^1.2.2",
|
2015-03-05 00:30:03 +00:00
|
|
|
"es5-shim": "^4.1.0",
|
2016-12-06 14:40:42 +00:00
|
|
|
"eslint-config-loopback": "^6.0.0",
|
2016-08-16 11:51:42 +00:00
|
|
|
"express-session": "^1.14.0",
|
2016-08-02 08:59:21 +00:00
|
|
|
"grunt": "^1.0.1",
|
|
|
|
"grunt-browserify": "^5.0.0",
|
|
|
|
"grunt-cli": "^1.2.0",
|
|
|
|
"grunt-contrib-uglify": "^2.0.0",
|
|
|
|
"grunt-contrib-watch": "^1.0.0",
|
2016-12-06 14:40:42 +00:00
|
|
|
"grunt-eslint": "^19.0.0",
|
2016-08-02 08:59:21 +00:00
|
|
|
"grunt-karma": "^2.0.0",
|
2015-03-05 00:30:03 +00:00
|
|
|
"grunt-mocha-test": "^0.12.7",
|
2016-08-02 08:59:21 +00:00
|
|
|
"karma": "^1.1.2",
|
|
|
|
"karma-browserify": "^4.4.2",
|
|
|
|
"karma-chrome-launcher": "^1.0.1",
|
|
|
|
"karma-firefox-launcher": "^1.0.0",
|
|
|
|
"karma-html2js-preprocessor": "^1.0.0",
|
|
|
|
"karma-junit-reporter": "~1.0.0",
|
|
|
|
"karma-mocha": "^1.1.1",
|
2016-05-03 14:43:45 +00:00
|
|
|
"karma-phantomjs-launcher": "^1.0.0",
|
2016-08-02 08:59:21 +00:00
|
|
|
"karma-script-launcher": "^1.0.0",
|
2015-04-20 16:23:44 +00:00
|
|
|
"loopback-boot": "^2.7.0",
|
2016-07-28 14:36:23 +00:00
|
|
|
"loopback-context": "^1.0.0",
|
2016-08-02 08:59:21 +00:00
|
|
|
"mocha": "^3.0.0",
|
2016-05-03 14:43:45 +00:00
|
|
|
"phantomjs-prebuilt": "^2.1.7",
|
2015-03-13 15:50:30 +00:00
|
|
|
"sinon": "^1.13.0",
|
2016-04-27 11:15:24 +00:00
|
|
|
"sinon-chai": "^2.8.0",
|
2016-08-02 08:59:21 +00:00
|
|
|
"strong-error-handler": "^1.0.1",
|
2015-03-05 00:30:03 +00:00
|
|
|
"strong-task-emitter": "^0.0.6",
|
2016-08-02 08:59:21 +00:00
|
|
|
"supertest": "^2.0.0"
|
2013-09-04 23:50:47 +00:00
|
|
|
},
|
2013-09-10 23:21:20 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/strongloop/loopback"
|
|
|
|
},
|
2014-02-12 00:01:51 +00:00
|
|
|
"browser": {
|
|
|
|
"express": "./lib/browser-express.js",
|
Middleware phases - initial implementation
Modify the app and router implementation, so that the middleware is
executed in order defined by phases.
Predefined phases:
'initial', 'session', 'auth', 'parse', 'routes', 'files', 'final'
Methods defined via `app.use`, `app.route` and friends are executed
as the first thing in 'routes' phase.
API usage:
app.middleware('initial', compression());
app.middleware('initial:before', serveFavicon());
app.middleware('files:after', loopback.urlNotFound());
app.middleware('final:after', errorHandler());
Middleware flavours:
// regular handler
function handler(req, res, next) {
// do stuff
next();
}
// error handler
function errorHandler(err, req, res, next) {
// handle error and/or call next
next(err);
}
2014-11-05 19:07:58 +00:00
|
|
|
"./lib/server-app.js": "./lib/browser-express.js",
|
2014-02-12 00:01:51 +00:00
|
|
|
"connect": false,
|
2014-12-08 22:59:21 +00:00
|
|
|
"nodemailer": false,
|
2015-03-05 00:30:03 +00:00
|
|
|
"supertest": false,
|
2015-02-26 15:29:29 +00:00
|
|
|
"depd": "loopback-datasource-juggler/lib/browser.depd.js",
|
2014-12-08 22:59:21 +00:00
|
|
|
"bcrypt": false
|
2014-02-12 00:01:51 +00:00
|
|
|
},
|
2016-05-03 08:19:45 +00:00
|
|
|
"config": {
|
|
|
|
"ci": {
|
|
|
|
"debug": "*,-mocha:*,-eslint:*"
|
|
|
|
}
|
|
|
|
},
|
2016-02-18 15:38:54 +00:00
|
|
|
"license": "MIT"
|
2013-09-05 00:01:42 +00:00
|
|
|
}
|