2013-04-09 16:02:36 +00:00
|
|
|
{
|
2013-07-16 17:49:25 +00:00
|
|
|
"name": "loopback",
|
2017-11-29 20:49:28 +00:00
|
|
|
"version": "3.17.0",
|
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",
|
2017-01-31 12:22:22 +00:00
|
|
|
"coverage": "nyc report --reporter=text-lcov | coveralls",
|
|
|
|
"test": "nyc 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",
|
2017-03-03 14:53:49 +00:00
|
|
|
"isemail": "^2.2.1",
|
2016-09-22 10:31:51 +00:00
|
|
|
"loopback-connector-remote": "^3.0.0",
|
2017-08-02 13:40:48 +00:00
|
|
|
"loopback-datasource-juggler": "^3.9.3",
|
2017-03-03 14:53:49 +00:00
|
|
|
"loopback-phase": "^3.0.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",
|
2017-10-12 19:08:04 +00:00
|
|
|
"strong-globalize": "^3.1.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": {
|
2017-01-27 10:29:39 +00:00
|
|
|
"babel-preset-es2015": "^6.22.0",
|
|
|
|
"babelify": "^7.3.0",
|
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",
|
2017-01-31 12:22:22 +00:00
|
|
|
"coveralls": "^2.11.15",
|
2016-11-22 14:30:04 +00:00
|
|
|
"dirty-chai": "^1.2.2",
|
2017-12-12 12:08:05 +00:00
|
|
|
"eslint": "^4.13.1",
|
2017-12-12 08:33:15 +00:00
|
|
|
"eslint-config-loopback": "^10.0.0",
|
2017-12-12 12:08:05 +00:00
|
|
|
"eslint-plugin-mocha": "^4.11.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",
|
2017-12-12 08:33:15 +00:00
|
|
|
"grunt-eslint": "^20.1.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",
|
2017-04-07 19:09:31 +00:00
|
|
|
"karma-browserify": "^5.1.1",
|
2016-08-02 08:59:21 +00:00
|
|
|
"karma-chrome-launcher": "^1.0.1",
|
2017-01-27 10:29:39 +00:00
|
|
|
"karma-es6-shim": "^1.0.0",
|
2016-08-02 08:59:21 +00:00
|
|
|
"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",
|
2017-01-31 12:22:22 +00:00
|
|
|
"nyc": "^10.1.2",
|
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",
|
2017-05-23 01:13:27 +00:00
|
|
|
"strong-error-handler": "^2.1.0",
|
2017-05-23 01:14:38 +00:00
|
|
|
"strong-task-emitter": "^0.0.6",
|
2017-02-09 15:17:10 +00:00
|
|
|
"supertest": "^3.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
|
|
|
}
|