2018-08-10 19:25:29 +03:00
|
|
|
{
|
2018-09-03 23:05:50 +03:00
|
|
|
"name": "codex.docs",
|
2018-08-10 19:25:29 +03:00
|
|
|
"version": "0.0.0",
|
2019-03-08 15:38:22 +03:00
|
|
|
"bin": {
|
|
|
|
"generatePassword": "bin/generatePassword.js"
|
|
|
|
},
|
2018-08-10 19:25:29 +03:00
|
|
|
"scripts": {
|
2018-10-07 19:15:10 +03:00
|
|
|
"start": "cross-env NODE_ENV=production nodemon ./bin/www",
|
|
|
|
"start:dev": "cross-env NODE_ENV=development nodemon ./bin/www",
|
|
|
|
"test": "cross-env NODE_ENV=testing mocha --recursive ./test",
|
2018-09-07 19:24:09 +03:00
|
|
|
"lint": "eslint --fix --cache ./src/**/*.js",
|
2019-03-08 15:38:22 +03:00
|
|
|
"build": "webpack ./src/frontend/js/app.js --o='./public/dist/[name].bundle.js' --output-library=Docs --output-public-path=/dist/ -p --mode=production",
|
|
|
|
"build:dev": "webpack ./src/frontend/js/app.js --o='./public/dist/[name].bundle.js' --output-library=Docs --output-public-path=/dist/ -p --mode=development --watch",
|
Authentication (#22)
* Authorization added
* added secret to password, md5 hashing, removed promise from verifyToken, deleted links when not authorized
* added dbinsert script
* turned verifyToken to middleware, added description for dbinsert, added hidden csrf field in auth form
* added middlewares, user model and controller
* JSDoc fix
* wrong password processing fix
* added comments to dbinsert script, moved salt and passHash to singe db doc
* Moved salt to .env, upgradedscript for generating password was, fixed comments and JSDoc
* Deleted using salt (now user is only one), changed verifying password to bcrypt.compare, added httpyOnly property to jwt cookie
2019-03-06 13:22:57 +03:00
|
|
|
"precommit": "yarn lint && yarn test --exit",
|
2019-03-12 16:23:10 +03:00
|
|
|
"generatePassword": "node ./generatePassword.js",
|
|
|
|
"editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,image,inline-code,marker}@latest"
|
2018-08-10 19:25:29 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-10-03 12:26:41 +03:00
|
|
|
"@babel/polyfill": "^7.0.0",
|
Authentication (#22)
* Authorization added
* added secret to password, md5 hashing, removed promise from verifyToken, deleted links when not authorized
* added dbinsert script
* turned verifyToken to middleware, added description for dbinsert, added hidden csrf field in auth form
* added middlewares, user model and controller
* JSDoc fix
* wrong password processing fix
* added comments to dbinsert script, moved salt and passHash to singe db doc
* Moved salt to .env, upgradedscript for generating password was, fixed comments and JSDoc
* Deleted using salt (now user is only one), changed verifying password to bcrypt.compare, added httpyOnly property to jwt cookie
2019-03-06 13:22:57 +03:00
|
|
|
"bcrypt": "^3.0.3",
|
2018-08-17 13:58:44 +03:00
|
|
|
"body-parser": "latest",
|
Authentication (#22)
* Authorization added
* added secret to password, md5 hashing, removed promise from verifyToken, deleted links when not authorized
* added dbinsert script
* turned verifyToken to middleware, added description for dbinsert, added hidden csrf field in auth form
* added middlewares, user model and controller
* JSDoc fix
* wrong password processing fix
* added comments to dbinsert script, moved salt and passHash to singe db doc
* Moved salt to .env, upgradedscript for generating password was, fixed comments and JSDoc
* Deleted using salt (now user is only one), changed verifying password to bcrypt.compare, added httpyOnly property to jwt cookie
2019-03-06 13:22:57 +03:00
|
|
|
"commander": "^2.19.0",
|
2018-08-10 19:25:29 +03:00
|
|
|
"cookie-parser": "~1.4.3",
|
Authentication (#22)
* Authorization added
* added secret to password, md5 hashing, removed promise from verifyToken, deleted links when not authorized
* added dbinsert script
* turned verifyToken to middleware, added description for dbinsert, added hidden csrf field in auth form
* added middlewares, user model and controller
* JSDoc fix
* wrong password processing fix
* added comments to dbinsert script, moved salt and passHash to singe db doc
* Moved salt to .env, upgradedscript for generating password was, fixed comments and JSDoc
* Deleted using salt (now user is only one), changed verifying password to bcrypt.compare, added httpyOnly property to jwt cookie
2019-03-06 13:22:57 +03:00
|
|
|
"csurf": "^1.9.0",
|
2018-10-20 17:54:15 +03:00
|
|
|
"debug": "~4.1.0",
|
Authentication (#22)
* Authorization added
* added secret to password, md5 hashing, removed promise from verifyToken, deleted links when not authorized
* added dbinsert script
* turned verifyToken to middleware, added description for dbinsert, added hidden csrf field in auth form
* added middlewares, user model and controller
* JSDoc fix
* wrong password processing fix
* added comments to dbinsert script, moved salt and passHash to singe db doc
* Moved salt to .env, upgradedscript for generating password was, fixed comments and JSDoc
* Deleted using salt (now user is only one), changed verifying password to bcrypt.compare, added httpyOnly property to jwt cookie
2019-03-06 13:22:57 +03:00
|
|
|
"dotenv": "^6.2.0",
|
2019-01-19 17:09:11 +03:00
|
|
|
"eslint-plugin-standard": "^4.0.0",
|
2018-08-10 19:25:29 +03:00
|
|
|
"express": "~4.16.0",
|
2019-03-11 18:44:00 +03:00
|
|
|
"file-type": "^10.7.1",
|
2018-10-20 17:54:15 +03:00
|
|
|
"http-errors": "~1.7.1",
|
2019-03-11 18:44:00 +03:00
|
|
|
"jsonwebtoken": "^8.4.0",
|
|
|
|
"mime": "^2.4.0",
|
|
|
|
"mkdirp": "^0.5.1",
|
2019-02-18 10:42:12 +03:00
|
|
|
"module-dispatcher": "^2.0.0",
|
2018-08-10 19:25:29 +03:00
|
|
|
"morgan": "~1.9.0",
|
2018-08-17 13:58:44 +03:00
|
|
|
"multer": "^1.3.1",
|
|
|
|
"nedb": "^1.8.0",
|
2019-03-11 18:44:00 +03:00
|
|
|
"node-fetch": "^2.3.0",
|
2018-08-17 13:58:44 +03:00
|
|
|
"nodemon": "^1.18.3",
|
2018-09-18 13:10:44 +03:00
|
|
|
"normalize.css": "^8.0.0",
|
2018-10-20 17:54:15 +03:00
|
|
|
"twig": "~1.12.0",
|
2018-08-17 13:58:44 +03:00
|
|
|
"uuid4": "^1.0.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2018-09-07 19:24:09 +03:00
|
|
|
"@babel/core": "^7.0.0",
|
2018-09-19 01:47:32 +03:00
|
|
|
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
|
|
"@babel/preset-env": "^7.1.0",
|
2019-03-08 15:38:22 +03:00
|
|
|
"@editorjs/code": "^2.4.0",
|
|
|
|
"@editorjs/delimiter": "^1.1.0",
|
2019-03-12 16:23:10 +03:00
|
|
|
"@editorjs/editorjs": "^2.11.8",
|
|
|
|
"@editorjs/header": "^2.2.2",
|
2019-03-08 15:38:22 +03:00
|
|
|
"@editorjs/image": "^2.1.0",
|
|
|
|
"@editorjs/inline-code": "^1.3.0",
|
2019-03-12 16:23:10 +03:00
|
|
|
"@editorjs/list": "^1.3.1",
|
2019-03-08 15:38:22 +03:00
|
|
|
"@editorjs/marker": "^1.2.0",
|
2018-09-07 19:24:09 +03:00
|
|
|
"autoprefixer": "^9.1.3",
|
|
|
|
"babel": "^6.23.0",
|
2018-10-07 19:25:12 +03:00
|
|
|
"babel-eslint": "^10.0.1",
|
2018-09-07 19:24:09 +03:00
|
|
|
"babel-loader": "^8.0.2",
|
2018-08-17 13:58:44 +03:00
|
|
|
"chai": "^4.1.2",
|
|
|
|
"chai-http": "^4.0.0",
|
2018-10-07 19:15:10 +03:00
|
|
|
"cross-env": "^5.2.0",
|
2018-09-07 19:24:09 +03:00
|
|
|
"css-loader": "^1.0.0",
|
|
|
|
"cssnano": "^4.1.0",
|
2018-08-17 13:58:44 +03:00
|
|
|
"eslint": "^5.3.0",
|
|
|
|
"eslint-config-codex": "github:codex-team/eslint-config",
|
|
|
|
"eslint-plugin-chai-friendly": "^0.4.1",
|
2019-01-19 17:09:11 +03:00
|
|
|
"eslint-plugin-import": "^2.14.0",
|
|
|
|
"eslint-plugin-node": "^8.0.1",
|
2018-10-20 17:54:15 +03:00
|
|
|
"highlight.js": "^9.13.1",
|
|
|
|
"husky": "^1.1.2",
|
2018-10-03 12:26:41 +03:00
|
|
|
"mini-css-extract-plugin": "^0.4.3",
|
2018-08-17 13:58:44 +03:00
|
|
|
"mocha": "^5.2.0",
|
2018-10-07 19:15:10 +03:00
|
|
|
"mocha-sinon": "^2.1.0",
|
2018-10-20 17:54:15 +03:00
|
|
|
"nyc": "^13.1.0",
|
2018-09-07 19:24:09 +03:00
|
|
|
"postcss": "^7.0.2",
|
|
|
|
"postcss-apply": "^0.11.0",
|
2018-10-20 17:54:15 +03:00
|
|
|
"postcss-color-hex-alpha": "^5.0.2",
|
|
|
|
"postcss-color-mod-function": "^3.0.3",
|
|
|
|
"postcss-custom-media": "^7.0.7",
|
|
|
|
"postcss-custom-properties": "^8.0.8",
|
|
|
|
"postcss-custom-selectors": "^5.1.2",
|
2018-09-07 19:24:09 +03:00
|
|
|
"postcss-font-family-system-ui": "^4.1.0",
|
|
|
|
"postcss-loader": "^3.0.0",
|
2018-10-20 17:54:15 +03:00
|
|
|
"postcss-media-minmax": "^4.0.0",
|
|
|
|
"postcss-nested": "^4.1.0",
|
2018-09-07 19:24:09 +03:00
|
|
|
"postcss-nested-ancestors": "^2.0.0",
|
2018-10-20 17:54:15 +03:00
|
|
|
"postcss-nesting": "^7.0.0",
|
2018-09-07 19:24:09 +03:00
|
|
|
"postcss-smart-import": "^0.7.6",
|
2019-03-11 18:44:00 +03:00
|
|
|
"rimraf": "^2.6.3",
|
2018-10-20 17:54:15 +03:00
|
|
|
"sinon": "^7.0.0",
|
2018-09-07 19:24:09 +03:00
|
|
|
"webpack": "^4.17.1",
|
|
|
|
"webpack-cli": "^3.1.0"
|
2018-08-10 19:25:29 +03:00
|
|
|
}
|
|
|
|
}
|