|
1 | 1 | {
|
2 | 2 | "name": "express-redirect-loop",
|
3 |
| - "description": |
4 |
| - "Prevent redirect loops with sessions since HTTP referrer header is unreliable", |
| 3 | + "description": "Prevent redirect loops with sessions since HTTP referrer header is unreliable", |
5 | 4 | "version": "0.0.4",
|
6 | 5 | "author": "Nick Baugh <[email protected]> (http://niftylettuce.com/)",
|
| 6 | + "ava": { |
| 7 | + "failFast": true, |
| 8 | + "verbose": true, |
| 9 | + "serial": true |
| 10 | + }, |
7 | 11 | "bugs": {
|
8 | 12 | "url": "https://github.com/niftylettuce/express-redirect-loop/issues",
|
9 | 13 |
|
10 | 14 | },
|
| 15 | + "commitlint": { |
| 16 | + "extends": [ |
| 17 | + "@commitlint/config-conventional" |
| 18 | + ] |
| 19 | + }, |
11 | 20 | "contributors": [
|
12 | 21 | "Nick Baugh <[email protected]> (http://niftylettuce.com/)"
|
13 | 22 | ],
|
14 |
| - "dependencies": {}, |
15 |
| - "ava": { |
16 |
| - "failFast": true, |
17 |
| - "verbose": true, |
18 |
| - "serial": true |
| 23 | + "dependencies": { |
| 24 | + "depd": "^1.1.2" |
19 | 25 | },
|
20 | 26 | "devDependencies": {
|
21 |
| - "ava": "^0.22.0", |
22 |
| - "babel-cli": "^6.26.0", |
23 |
| - "babel-preset-env": "^1.6.1", |
24 |
| - "codecov": "^2.3.0", |
25 |
| - "cross-env": "^5.0.5", |
26 |
| - "depd": "^1.1.2", |
27 |
| - "eslint": "^4.5.0", |
28 |
| - "eslint-config-prettier": "^2.9.0", |
29 |
| - "eslint-plugin-prettier": "^2.5.0", |
30 |
| - "express": "^4.16.2", |
| 27 | + "@babel/cli": "^7.1.1", |
| 28 | + "@babel/core": "^7.1.1", |
| 29 | + "@babel/preset-env": "^7.1.0", |
| 30 | + "@commitlint/cli": "^7.1.2", |
| 31 | + "@commitlint/config-conventional": "^7.1.2", |
| 32 | + "ava": "^0.25.0", |
| 33 | + "codecov": "^3.1.0", |
| 34 | + "cross-env": "^5.2.0", |
| 35 | + "eslint": "5.6.1", |
| 36 | + "eslint-config-prettier": "^3.1.0", |
| 37 | + "eslint-config-xo-lass": "^1.0.2", |
| 38 | + "eslint-plugin-node": "^7.0.1", |
| 39 | + "eslint-plugin-prettier": "^2.7.0", |
| 40 | + "express": "^4.16.3", |
31 | 41 | "express-session": "^1.15.6",
|
32 |
| - "fetch-cookie": "^0.7.0", |
33 |
| - "husky": "^0.14.3", |
34 |
| - "lint-staged": "^4.0.4", |
35 |
| - "node-fetch": "^1.7.3", |
36 |
| - "nyc": "^11.1.0", |
37 |
| - "prettier": "^1.6.1", |
38 |
| - "remark-cli": "^4.0.0", |
39 |
| - "remark-preset-github": "^0.0.6", |
40 |
| - "xo": "latest" |
| 42 | + "fetch-cookie": "^0.7.2", |
| 43 | + "fixpack": "^2.3.1", |
| 44 | + "husky": "^1.1.1", |
| 45 | + "lint-staged": "^7.3.0", |
| 46 | + "node-fetch": "^2.2.0", |
| 47 | + "nyc": "^13.0.1", |
| 48 | + "prettier": "^1.14.3", |
| 49 | + "remark-cli": "^5.0.0", |
| 50 | + "remark-preset-github": "^0.0.8", |
| 51 | + "rimraf": "^2.6.2", |
| 52 | + "xo": "^0.23.0" |
41 | 53 | },
|
42 | 54 | "engines": {
|
43 | 55 | "node": ">=8.3"
|
44 | 56 | },
|
| 57 | + "files": "lib", |
45 | 58 | "homepage": "https://github.com/niftylettuce/express-redirect-loop",
|
| 59 | + "husky": { |
| 60 | + "hooks": { |
| 61 | + "pre-commit": "npm test", |
| 62 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 63 | + } |
| 64 | + }, |
46 | 65 | "keywords": [
|
47 |
| - "express", |
48 |
| - "redirect", |
49 |
| - "loop", |
50 |
| - "redirection", |
51 | 66 | "back",
|
52 |
| - "referrer", |
53 |
| - "referer", |
54 |
| - "header", |
55 |
| - "http", |
| 67 | + "bug", |
56 | 68 | "connect",
|
57 |
| - "middleware", |
58 |
| - "route", |
59 | 69 | "endless",
|
| 70 | + "express", |
60 | 71 | "fix",
|
61 |
| - "prevention", |
62 |
| - "prevent", |
63 | 72 | "fix",
|
| 73 | + "header", |
64 | 74 | "hotfix",
|
| 75 | + "http", |
| 76 | + "loop", |
| 77 | + "middleware", |
65 | 78 | "patch",
|
66 |
| - "bug", |
67 |
| - "recursive" |
| 79 | + "prevent", |
| 80 | + "prevention", |
| 81 | + "recursive", |
| 82 | + "redirect", |
| 83 | + "redirection", |
| 84 | + "referer", |
| 85 | + "referrer", |
| 86 | + "route" |
68 | 87 | ],
|
69 | 88 | "license": "MIT",
|
70 | 89 | "lint-staged": {
|
71 |
| - "*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}": [ |
72 |
| - "prettier --write --single-quote --trailing-comma none", |
73 |
| - "git add" |
74 |
| - ], |
75 |
| - "*.md": ["remark . -qfo", "git add"] |
| 90 | + "linters": { |
| 91 | + "*.js": [ |
| 92 | + "xo --fix", |
| 93 | + "git add" |
| 94 | + ], |
| 95 | + "*.md": [ |
| 96 | + "remark . -qfo", |
| 97 | + "git add" |
| 98 | + ], |
| 99 | + "package.json": [ |
| 100 | + "fixpack", |
| 101 | + "git add" |
| 102 | + ] |
| 103 | + } |
76 | 104 | },
|
77 | 105 | "main": "lib/index.js",
|
| 106 | + "prettier": { |
| 107 | + "singleQuote": true, |
| 108 | + "bracketSpacing": true, |
| 109 | + "trailingComma": "none" |
| 110 | + }, |
78 | 111 | "remarkConfig": {
|
79 |
| - "plugins": ["preset-github"] |
| 112 | + "plugins": [ |
| 113 | + "preset-github" |
| 114 | + ] |
80 | 115 | },
|
81 | 116 | "repository": {
|
82 | 117 | "type": "git",
|
83 | 118 | "url": "https://github.com/niftylettuce/express-redirect-loop"
|
84 | 119 | },
|
85 |
| - "xo": { |
86 |
| - "extends": "prettier", |
87 |
| - "plugins": ["prettier"], |
88 |
| - "parserOptions": { |
89 |
| - "sourceType": "script" |
90 |
| - }, |
91 |
| - "rules": { |
92 |
| - "prettier/prettier": [ |
93 |
| - "error", |
94 |
| - { |
95 |
| - "singleQuote": true, |
96 |
| - "bracketSpacing": true, |
97 |
| - "trailingComma": "none" |
98 |
| - } |
99 |
| - ], |
100 |
| - "max-len": [ |
101 |
| - "error", |
102 |
| - { |
103 |
| - "code": 80, |
104 |
| - "ignoreUrls": true |
105 |
| - } |
106 |
| - ], |
107 |
| - "capitalized-comments": "off", |
108 |
| - "camelcase": "off", |
109 |
| - "no-warning-comments": "off" |
110 |
| - }, |
111 |
| - "space": true |
112 |
| - }, |
113 | 120 | "scripts": {
|
| 121 | + "ava": "cross-env NODE_ENV=test ava", |
| 122 | + "build": "npm run build:clean && npm run build:lib", |
| 123 | + "build:clean": "rimraf lib", |
| 124 | + "build:lib": "babel src --out-dir lib", |
114 | 125 | "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
115 |
| - "lint": "xo && remark . -qfo", |
116 |
| - "precommit": "lint-staged && npm test", |
117 |
| - "test": "npm run build && npm run lint && npm run test-coverage", |
118 |
| - "test-coverage": "cross-env NODE_ENV=test nyc ava", |
119 |
| - "build": "node_modules/.bin/babel src --out-dir lib", |
120 |
| - "watch": "node_modules/.bin/babel src --watch --out-dir lib" |
| 126 | + "lint": "xo && remark . -qfo && eslint lib", |
| 127 | + "nyc": "cross-env NODE_ENV=test nyc ava", |
| 128 | + "test": "npm run build && npm run lint && npm run ava", |
| 129 | + "test-coverage": "npm run build && npm run lint && npm run nyc" |
121 | 130 | },
|
122 |
| - "files": "lib" |
| 131 | + "xo": { |
| 132 | + "prettier": true, |
| 133 | + "space": true, |
| 134 | + "extends": [ |
| 135 | + "xo-lass" |
| 136 | + ] |
| 137 | + } |
123 | 138 | }
|
0 commit comments