Merge pull request #4136 from FreeCodeCamp/greenkeeper-update-all

Update all dependencies 🌴
This commit is contained in:
Aniruddh Agarwal
2015-11-06 10:53:26 +08:00
2 changed files with 59 additions and 59 deletions

View File

@ -26,46 +26,46 @@
}, },
"license": "(BSD-3-Clause AND CC-BY-SA-4.0)", "license": "(BSD-3-Clause AND CC-BY-SA-4.0)",
"dependencies": { "dependencies": {
"accepts": "~1.2.5", "accepts": "~1.3.0",
"async": "~0.9.0", "async": "~1.5.0",
"babel": "5.8.23", "babel": "5.8.29",
"babel-core": "5.8.23", "babel-core": "5.8.33",
"babel-eslint": "4.1.1", "babel-eslint": "4.1.3",
"babel-loader": "5.2.2", "babel-loader": "5.3.3",
"bcrypt-nodejs": "~0.0.3", "bcrypt-nodejs": "~0.0.3",
"body-parser": "^1.13.2", "body-parser": "^1.13.2",
"chai-jquery": "~2.0.0", "chai-jquery": "~2.0.0",
"cheerio": "~0.18.0", "cheerio": "~0.19.0",
"classnames": "^2.1.2", "classnames": "^2.1.2",
"clockwork": "~0.1.1", "clockwork": "~0.1.1",
"compression": "~1.2.1", "compression": "~1.6.0",
"connect-mongo": "~0.7.0", "connect-mongo": "~0.8.2",
"cookie-parser": "~1.3.3", "cookie-parser": "~1.4.0",
"csso": "~1.3.11", "csso": "~1.4.1",
"dateformat": "~1.0.11", "dateformat": "~1.0.11",
"debug": "~2.1.0", "debug": "~2.2.0",
"dedent": "^0.4.0", "dedent": "^0.4.0",
"dotenv": "~0.4.0", "dotenv": "~1.2.0",
"errorhandler": "~1.3.0", "errorhandler": "~1.4.2",
"es6-map": "^0.1.1", "es6-map": "^0.1.1",
"eslint": "^1.1.0", "eslint": "^1.1.0",
"eslint-plugin-react": "^3.2.1", "eslint-plugin-react": "^3.2.1",
"express": "~4.10.4", "express": "~4.13.3",
"express-flash": "~0.0.2", "express-flash": "~0.0.2",
"express-session": "~1.9.2", "express-session": "~1.12.1",
"express-state": "^1.2.0", "express-state": "^1.2.0",
"express-validator": "~2.8.0", "express-validator": "~2.18.0",
"fetchr": "^0.5.12", "fetchr": "^0.5.12",
"font-awesome": "~4.3.0", "font-awesome": "~4.4.0",
"forever": "~0.14.1", "forever": "~0.15.1",
"frameguard": "^0.2.2", "frameguard": "^0.2.2",
"github-api": "~0.7.0", "github-api": "~0.10.6",
"gulp": "~3.8.8", "gulp": "~3.9.0",
"gulp-eslint": "~0.9.0", "gulp-eslint": "~1.0.0",
"gulp-inject": "~1.0.2", "gulp-inject": "~3.0.0",
"gulp-jsonlint": "^1.1.0", "gulp-jsonlint": "^1.1.0",
"gulp-less": "^3.0.3", "gulp-less": "^3.0.3",
"gulp-minify-css": "~0.5.1", "gulp-minify-css": "~1.2.1",
"gulp-nodemon": "^2.0.3", "gulp-nodemon": "^2.0.3",
"gulp-notify": "^2.2.0", "gulp-notify": "^2.2.0",
"gulp-plumber": "^1.0.1", "gulp-plumber": "^1.0.1",
@ -74,74 +74,75 @@
"gulp-rev-replace": "^0.4.2", "gulp-rev-replace": "^0.4.2",
"gulp-util": "^3.0.6", "gulp-util": "^3.0.6",
"gulp-webpack": "^1.5.0", "gulp-webpack": "^1.5.0",
"helmet": "~0.9.0", "helmet": "~0.14.0",
"helmet-csp": "^0.2.3", "helmet-csp": "^0.3.0",
"history": "^1.9.0", "history": "^1.9.0",
"jade": "~1.8.0", "jade": "~1.11.0",
"json-loader": "^0.5.2", "json-loader": "^0.5.2",
"less": "~2.5.1", "less": "~2.5.1",
"lodash": "^3.9.3", "lodash": "^3.9.3",
"loopback": "^2.22.0", "loopback": "^2.22.0",
"loopback-boot": "^2.13.0", "loopback-boot": "^2.13.0",
"loopback-component-explorer": "^2.1.1",
"loopback-component-passport": "https://github.com/FreeCodeCamp/loopback-component-passport.git#feature/flashfailure", "loopback-component-passport": "https://github.com/FreeCodeCamp/loopback-component-passport.git#feature/flashfailure",
"loopback-connector-mongodb": "^1.10.0", "loopback-connector-mongodb": "^1.10.0",
"lusca": "~1.0.2", "lusca": "~1.3.0",
"method-override": "~2.3.0", "method-override": "~2.3.0",
"moment": "~2.10.2", "moment": "~2.10.2",
"mongodb": "^2.0.33", "mongodb": "^2.0.33",
"morgan": "~1.5.0", "morgan": "~1.6.1",
"node-libs-browser": "^0.5.2", "node-libs-browser": "^0.5.2",
"node-slack": "0.0.7", "node-slack": "0.0.7",
"node-uuid": "^1.4.3", "node-uuid": "^1.4.3",
"nodemailer": "~1.3.0", "nodemailer": "~1.8.0",
"normalize-url": "^1.3.1", "normalize-url": "^1.3.1",
"object.assign": "^3.0.0", "object.assign": "^4.0.3",
"passport-facebook": "^2.0.0", "passport-facebook": "^2.0.0",
"passport-github": "^0.1.5", "passport-github": "^1.0.0",
"passport-google-oauth2": "^0.1.6", "passport-google-oauth2": "^0.1.6",
"passport-linkedin-oauth2": "^1.2.1", "passport-linkedin-oauth2": "^1.2.1",
"passport-local": "^1.0.0", "passport-local": "^1.0.0",
"passport-oauth": "^1.0.0", "passport-oauth": "^1.0.0",
"passport-twitter": "^1.0.3", "passport-twitter": "^1.0.3",
"pmx": "^0.3.16", "pmx": "^0.5.5",
"ramda": "~0.10.0", "ramda": "~0.18.0",
"react": "^0.13.3", "react": "^0.14.2",
"react-bootstrap": "~0.23.7", "react-bootstrap": "~0.27.3",
"react-motion": "~0.1.0", "react-motion": "~0.3.1",
"react-router": "https://github.com/BerkeleyTrue/react-router.git#freecodecamp", "react-router": "https://github.com/BerkeleyTrue/react-router.git#freecodecamp",
"react-router-bootstrap": "^0.19.2", "react-router-bootstrap": "^0.19.2",
"react-vimeo": "^0.0.3", "react-vimeo": "^0.0.3",
"request": "~2.53.0", "request": "~2.65.0",
"rev-del": "^1.0.5", "rev-del": "^1.0.5",
"rx": "^4.0.0", "rx": "^4.0.0",
"sanitize-html": "~1.6.1", "sanitize-html": "~1.11.1",
"sort-keys": "^1.1.1", "sort-keys": "^1.1.1",
"source-map-support": "^0.3.2", "source-map-support": "^0.3.2",
"store": "https://github.com/berkeleytrue/store.js.git#feature/noop-server", "store": "https://github.com/berkeleytrue/store.js.git#feature/noop-server",
"thundercats": "^3.0.0", "thundercats": "^3.0.0",
"thundercats-react": "^0.3.0", "thundercats-react": "^0.4.0",
"twit": "~1.1.20", "twit": "~2.1.1",
"uglify-js": "~2.4.15", "uglify-js": "~2.5.0",
"url-regex": "^3.0.0", "url-regex": "^3.0.0",
"validator": "^3.22.1", "validator": "^4.2.1",
"webpack": "^1.9.12", "webpack": "^1.9.12",
"xss-filters": "^1.2.6", "xss-filters": "^1.2.6",
"yui": "~3.18.1" "yui": "~3.18.1"
}, },
"devDependencies": { "devDependencies": {
"blessed": "~0.0.37", "blessed": "~0.1.81",
"bower-main-files": "~0.0.4", "bower-main-files": "~0.0.4",
"browser-sync": "~1.8.1", "browser-sync": "~2.9.11",
"browserify": "^10.2.4", "browserify": "^12.0.1",
"chai": "~1.10.0", "chai": "~3.4.0",
"envify": "^3.4.0", "envify": "^3.4.0",
"istanbul": "^0.3.15", "istanbul": "^0.4.0",
"jsonlint": "^1.6.2", "jsonlint": "^1.6.2",
"loopback-explorer": "^1.7.2", "loopback-component-explorer": "^2.1.1",
"loopback-testing": "^1.1.0", "loopback-testing": "^1.1.0",
"mocha": "~2.0.1", "mocha": "~2.3.3",
"multiline": "~1.0.1", "multiline": "~1.0.1",
"supertest": "~0.15.0", "supertest": "~1.1.0",
"tap-nyan": "0.0.2", "tap-nyan": "0.0.2",
"tape": "^4.2.2", "tape": "^4.2.2",
"vinyl-source-stream": "^1.1.0" "vinyl-source-stream": "^1.1.0"

View File

@ -4,27 +4,26 @@ module.exports = function mountLoopBackExplorer(app) {
} }
var explorer; var explorer;
try { try {
explorer = require('loopback-explorer'); explorer = require('loopback-component-explorer');
} catch (err) { } catch (err) {
// Print the message only when the app was started via `app.listen()`. // Print the message only when the app was started via `app.listen()`.
// Do not print any message when the project is used as a component. // Do not print any message when the project is used as a component.
app.once('started', function() { app.once('started', function() {
console.log( console.log(
'Run `npm install loopback-explorer` to enable the LoopBack explorer' 'Run `npm install loopback-component-explorer` to enable ' +
'the LoopBack explorer'
); );
}); });
return; return;
} }
var restApiRoot = app.get('restApiRoot'); var restApiRoot = app.get('restApiRoot');
var mountPath = '/explorer';
var explorerApp = explorer(app, { basePath: restApiRoot }); explorer(app, { basePath: restApiRoot, mountPath });
app.use('/explorer', explorerApp);
app.once('started', function() { app.once('started', function() {
var baseUrl = app.get('url').replace(/\/$/, ''); var baseUrl = app.get('url').replace(/\/$/, '');
// express 4.x (loopback 2.x) uses `mountpath`
// express 3.x (loopback 1.x) uses `route` console.log('Browse your REST API at %s%s', baseUrl, mountPath);
var explorerPath = explorerApp.mountpath || explorerApp.route;
console.log('Browse your REST API at %s%s', baseUrl, explorerPath);
}); });
}; };