├── .gitignore ├── database.sqlite ├── ormconfig.json ├── package-lock.json ├── package.json ├── readme.md ├── src ├── config │ └── config.ts ├── controllers │ ├── AuthController.ts │ └── UserController.ts ├── entity │ └── User.ts ├── index.ts ├── middlewares │ ├── checkJwt.ts │ └── checkRole.ts ├── migration │ └── 1549202832774-CreateAdminUser.ts └── routes │ ├── auth.ts │ ├── index.ts │ └── user.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vscode/ 3 | node_modules/ 4 | build/ 5 | tmp/ 6 | temp/ -------------------------------------------------------------------------------- /database.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andregardi/jwt-express-typeorm/9b4db2334a9988cce86ba0e45e03545f2a09b7e7/database.sqlite -------------------------------------------------------------------------------- /ormconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "sqlite", 3 | "database": "database.sqlite", 4 | "synchronize": true, 5 | "logging": false, 6 | "entities": [ 7 | "src/entity/**/*.ts" 8 | ], 9 | "migrations": [ 10 | "src/migration/**/*.ts" 11 | ], 12 | "subscribers": [ 13 | "src/subscriber/**/*.ts" 14 | ], 15 | "cli": { 16 | "entitiesDir": "src/entity", 17 | "migrationsDir": "src/migration", 18 | "subscribersDir": "src/subscriber" 19 | } 20 | } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jwt-express-typeorm", 3 | "version": "0.0.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@types/bcryptjs": { 8 | "version": "2.4.2", 9 | "resolved": "https://registry.npmjs.org/@types/bcryptjs/-/bcryptjs-2.4.2.tgz", 10 | "integrity": "sha512-LiMQ6EOPob/4yUL66SZzu6Yh77cbzJFYll+ZfaPiPPFswtIlA/Fs1MzdKYA7JApHU49zQTbJGX3PDmCpIdDBRQ==" 11 | }, 12 | "@types/body-parser": { 13 | "version": "1.17.0", 14 | "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.17.0.tgz", 15 | "integrity": "sha512-a2+YeUjPkztKJu5aIF2yArYFQQp8d51wZ7DavSHjFuY1mqVgidGyzEQ41JIVNy82fXj8yPgy2vJmfIywgESW6w==", 16 | "requires": { 17 | "@types/connect": "*", 18 | "@types/node": "*" 19 | } 20 | }, 21 | "@types/connect": { 22 | "version": "3.4.32", 23 | "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.32.tgz", 24 | "integrity": "sha512-4r8qa0quOvh7lGD0pre62CAb1oni1OO6ecJLGCezTmhQ8Fz50Arx9RUszryR8KlgK6avuSXvviL6yWyViQABOg==", 25 | "requires": { 26 | "@types/node": "*" 27 | } 28 | }, 29 | "@types/cors": { 30 | "version": "2.8.4", 31 | "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.4.tgz", 32 | "integrity": "sha512-ipZjBVsm2tF/n8qFGOuGBkUij9X9ZswVi9G3bx/6dz7POpVa6gVHcj1wsX/LVEn9MMF41fxK/PnZPPoTD1UFPw==", 33 | "requires": { 34 | "@types/express": "*" 35 | } 36 | }, 37 | "@types/express": { 38 | "version": "4.16.1", 39 | "resolved": "https://registry.npmjs.org/@types/express/-/express-4.16.1.tgz", 40 | "integrity": "sha512-V0clmJow23WeyblmACoxbHBu2JKlE5TiIme6Lem14FnPW9gsttyHtk6wq7njcdIWH1njAaFgR8gW09lgY98gQg==", 41 | "requires": { 42 | "@types/body-parser": "*", 43 | "@types/express-serve-static-core": "*", 44 | "@types/serve-static": "*" 45 | } 46 | }, 47 | "@types/express-serve-static-core": { 48 | "version": "4.16.1", 49 | "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.16.1.tgz", 50 | "integrity": "sha512-QgbIMRU1EVRry5cIu1ORCQP4flSYqLM1lS5LYyGWfKnFT3E58f0gKto7BR13clBFVrVZ0G0rbLZ1hUpSkgQQOA==", 51 | "requires": { 52 | "@types/node": "*", 53 | "@types/range-parser": "*" 54 | } 55 | }, 56 | "@types/helmet": { 57 | "version": "0.0.42", 58 | "resolved": "https://registry.npmjs.org/@types/helmet/-/helmet-0.0.42.tgz", 59 | "integrity": "sha512-xQjlolRfr7LVa55sGnjtJGcV6/Hf7cfD1IuZo1Do+o3UobOoJJSLIbwkhd9tW18F1Kp4uB77T8TsJ2XKUDwp7g==", 60 | "requires": { 61 | "@types/express": "*" 62 | } 63 | }, 64 | "@types/jsonwebtoken": { 65 | "version": "8.3.0", 66 | "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.3.0.tgz", 67 | "integrity": "sha512-YKnUTR4VxwljbPORPrRon9E3uel1aD8nUdvzqArCCdMTWPvo0gnI2UZkwIHN2QATdj6HYXV/Iq3/KcecAO42Ww==", 68 | "requires": { 69 | "@types/node": "*" 70 | } 71 | }, 72 | "@types/mime": { 73 | "version": "2.0.0", 74 | "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.0.tgz", 75 | "integrity": "sha512-A2TAGbTFdBw9azHbpVd+/FkdW2T6msN1uct1O9bH3vTerEHKZhTXJUQXy+hNq1B0RagfU8U+KBdqiZpxjhOUQA==" 76 | }, 77 | "@types/node": { 78 | "version": "8.10.39", 79 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.39.tgz", 80 | "integrity": "sha512-rE7fktr02J8ybFf6eysife+WF+L4sAHWzw09DgdCebEu+qDwMvv4zl6Bc+825ttGZP73kCKxa3dhJOoGJ8+5mA==" 81 | }, 82 | "@types/range-parser": { 83 | "version": "1.2.3", 84 | "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.3.tgz", 85 | "integrity": "sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==" 86 | }, 87 | "@types/serve-static": { 88 | "version": "1.13.2", 89 | "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.2.tgz", 90 | "integrity": "sha512-/BZ4QRLpH/bNYgZgwhKEh+5AsboDBcUdlBYgzoLX0fpj3Y2gp6EApyOlM3bK53wQS/OE1SrdSYBAbux2D1528Q==", 91 | "requires": { 92 | "@types/express-serve-static-core": "*", 93 | "@types/mime": "*" 94 | } 95 | }, 96 | "@types/strip-bom": { 97 | "version": "3.0.0", 98 | "resolved": "https://registry.npmjs.org/@types/strip-bom/-/strip-bom-3.0.0.tgz", 99 | "integrity": "sha1-FKjsOVbC6B7bdSB5CuzyHCkK69I=" 100 | }, 101 | "@types/strip-json-comments": { 102 | "version": "0.0.30", 103 | "resolved": "https://registry.npmjs.org/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz", 104 | "integrity": "sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==" 105 | }, 106 | "abbrev": { 107 | "version": "1.1.1", 108 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 109 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" 110 | }, 111 | "accepts": { 112 | "version": "1.3.5", 113 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", 114 | "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", 115 | "requires": { 116 | "mime-types": "~2.1.18", 117 | "negotiator": "0.6.1" 118 | } 119 | }, 120 | "ajv": { 121 | "version": "6.8.1", 122 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.8.1.tgz", 123 | "integrity": "sha512-eqxCp82P+JfqL683wwsL73XmFs1eG6qjw+RD3YHx+Jll1r0jNd4dh8QG9NYAeNGA/hnZjeEDgtTskgJULbxpWQ==", 124 | "requires": { 125 | "fast-deep-equal": "^2.0.1", 126 | "fast-json-stable-stringify": "^2.0.0", 127 | "json-schema-traverse": "^0.4.1", 128 | "uri-js": "^4.2.2" 129 | } 130 | }, 131 | "ansi-escapes": { 132 | "version": "3.2.0", 133 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", 134 | "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==" 135 | }, 136 | "ansi-regex": { 137 | "version": "2.1.1", 138 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 139 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 140 | }, 141 | "ansi-styles": { 142 | "version": "3.2.1", 143 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 144 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 145 | "requires": { 146 | "color-convert": "^1.9.0" 147 | } 148 | }, 149 | "ansicolors": { 150 | "version": "0.3.2", 151 | "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", 152 | "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=" 153 | }, 154 | "any-promise": { 155 | "version": "1.3.0", 156 | "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", 157 | "integrity": "sha1-q8av7tzqUugJzcA3au0845Y10X8=" 158 | }, 159 | "app-root-path": { 160 | "version": "2.1.0", 161 | "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-2.1.0.tgz", 162 | "integrity": "sha1-mL9lmTJ+zqGZMJhm6BQDaP0uZGo=" 163 | }, 164 | "aproba": { 165 | "version": "1.2.0", 166 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", 167 | "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" 168 | }, 169 | "are-we-there-yet": { 170 | "version": "1.1.5", 171 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", 172 | "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", 173 | "requires": { 174 | "delegates": "^1.0.0", 175 | "readable-stream": "^2.0.6" 176 | } 177 | }, 178 | "argparse": { 179 | "version": "1.0.10", 180 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 181 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 182 | "requires": { 183 | "sprintf-js": "~1.0.2" 184 | } 185 | }, 186 | "array-find-index": { 187 | "version": "1.0.2", 188 | "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", 189 | "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=" 190 | }, 191 | "array-flatten": { 192 | "version": "1.1.1", 193 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 194 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 195 | }, 196 | "arrify": { 197 | "version": "1.0.1", 198 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", 199 | "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" 200 | }, 201 | "asn1": { 202 | "version": "0.2.4", 203 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", 204 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", 205 | "requires": { 206 | "safer-buffer": "~2.1.0" 207 | } 208 | }, 209 | "assert-plus": { 210 | "version": "1.0.0", 211 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 212 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 213 | }, 214 | "asynckit": { 215 | "version": "0.4.0", 216 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 217 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 218 | }, 219 | "aws-sign2": { 220 | "version": "0.7.0", 221 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 222 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 223 | }, 224 | "aws4": { 225 | "version": "1.8.0", 226 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", 227 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" 228 | }, 229 | "balanced-match": { 230 | "version": "1.0.0", 231 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 232 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 233 | }, 234 | "base64-js": { 235 | "version": "1.3.0", 236 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", 237 | "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==" 238 | }, 239 | "bcrypt-pbkdf": { 240 | "version": "1.0.2", 241 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 242 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", 243 | "requires": { 244 | "tweetnacl": "^0.14.3" 245 | } 246 | }, 247 | "bcryptjs": { 248 | "version": "2.4.3", 249 | "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", 250 | "integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms=" 251 | }, 252 | "body-parser": { 253 | "version": "1.18.3", 254 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz", 255 | "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=", 256 | "requires": { 257 | "bytes": "3.0.0", 258 | "content-type": "~1.0.4", 259 | "debug": "2.6.9", 260 | "depd": "~1.1.2", 261 | "http-errors": "~1.6.3", 262 | "iconv-lite": "0.4.23", 263 | "on-finished": "~2.3.0", 264 | "qs": "6.5.2", 265 | "raw-body": "2.3.3", 266 | "type-is": "~1.6.16" 267 | } 268 | }, 269 | "brace-expansion": { 270 | "version": "1.1.11", 271 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 272 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 273 | "requires": { 274 | "balanced-match": "^1.0.0", 275 | "concat-map": "0.0.1" 276 | } 277 | }, 278 | "buffer": { 279 | "version": "5.2.1", 280 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", 281 | "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", 282 | "requires": { 283 | "base64-js": "^1.0.2", 284 | "ieee754": "^1.1.4" 285 | } 286 | }, 287 | "buffer-equal-constant-time": { 288 | "version": "1.0.1", 289 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 290 | "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" 291 | }, 292 | "builtin-modules": { 293 | "version": "1.1.1", 294 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 295 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" 296 | }, 297 | "bytes": { 298 | "version": "3.0.0", 299 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", 300 | "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" 301 | }, 302 | "camelcase": { 303 | "version": "4.1.0", 304 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", 305 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=" 306 | }, 307 | "camelcase-keys": { 308 | "version": "2.1.0", 309 | "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", 310 | "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", 311 | "requires": { 312 | "camelcase": "^2.0.0", 313 | "map-obj": "^1.0.0" 314 | }, 315 | "dependencies": { 316 | "camelcase": { 317 | "version": "2.1.1", 318 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", 319 | "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" 320 | } 321 | } 322 | }, 323 | "camelize": { 324 | "version": "1.0.0", 325 | "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", 326 | "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=" 327 | }, 328 | "cardinal": { 329 | "version": "2.1.1", 330 | "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", 331 | "integrity": "sha1-fMEFXYItISlU0HsIXeolHMe8VQU=", 332 | "requires": { 333 | "ansicolors": "~0.3.2", 334 | "redeyed": "~2.1.0" 335 | } 336 | }, 337 | "caseless": { 338 | "version": "0.12.0", 339 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 340 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 341 | }, 342 | "chalk": { 343 | "version": "2.4.2", 344 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 345 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 346 | "requires": { 347 | "ansi-styles": "^3.2.1", 348 | "escape-string-regexp": "^1.0.5", 349 | "supports-color": "^5.3.0" 350 | } 351 | }, 352 | "chownr": { 353 | "version": "1.1.1", 354 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", 355 | "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==" 356 | }, 357 | "class-validator": { 358 | "version": "0.9.1", 359 | "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.9.1.tgz", 360 | "integrity": "sha512-3wApflrd3ywVZyx4jaasGoFt8pmo4aGLPPAEKCKCsTRWVGPilahD88q3jQjRQwja50rl9a7rsP5LAxJYwGK8/Q==", 361 | "requires": { 362 | "google-libphonenumber": "^3.1.6", 363 | "validator": "10.4.0" 364 | } 365 | }, 366 | "cli-highlight": { 367 | "version": "1.2.3", 368 | "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-1.2.3.tgz", 369 | "integrity": "sha512-cmc4Y2kJuEpT2KZd9pgWWskpDMMfJu2roIcY1Ya/aIItufF5FKsV/NtA6vvdhSUllR8KJfvQDNmIcskU+MKLDg==", 370 | "requires": { 371 | "chalk": "^2.3.0", 372 | "highlight.js": "^9.6.0", 373 | "mz": "^2.4.0", 374 | "parse5": "^3.0.3", 375 | "yargs": "^10.0.3" 376 | }, 377 | "dependencies": { 378 | "ansi-regex": { 379 | "version": "3.0.0", 380 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 381 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" 382 | }, 383 | "is-fullwidth-code-point": { 384 | "version": "2.0.0", 385 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 386 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 387 | }, 388 | "string-width": { 389 | "version": "2.1.1", 390 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 391 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 392 | "requires": { 393 | "is-fullwidth-code-point": "^2.0.0", 394 | "strip-ansi": "^4.0.0" 395 | } 396 | }, 397 | "strip-ansi": { 398 | "version": "4.0.0", 399 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 400 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 401 | "requires": { 402 | "ansi-regex": "^3.0.0" 403 | } 404 | }, 405 | "yargs": { 406 | "version": "10.1.2", 407 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-10.1.2.tgz", 408 | "integrity": "sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig==", 409 | "requires": { 410 | "cliui": "^4.0.0", 411 | "decamelize": "^1.1.1", 412 | "find-up": "^2.1.0", 413 | "get-caller-file": "^1.0.1", 414 | "os-locale": "^2.0.0", 415 | "require-directory": "^2.1.1", 416 | "require-main-filename": "^1.0.1", 417 | "set-blocking": "^2.0.0", 418 | "string-width": "^2.0.0", 419 | "which-module": "^2.0.0", 420 | "y18n": "^3.2.1", 421 | "yargs-parser": "^8.1.0" 422 | } 423 | } 424 | } 425 | }, 426 | "cli-table": { 427 | "version": "0.3.1", 428 | "resolved": "https://registry.npmjs.org/cli-table/-/cli-table-0.3.1.tgz", 429 | "integrity": "sha1-9TsFJmqLGguTSz0IIebi3FkUriM=", 430 | "requires": { 431 | "colors": "1.0.3" 432 | } 433 | }, 434 | "cli-usage": { 435 | "version": "0.1.8", 436 | "resolved": "https://registry.npmjs.org/cli-usage/-/cli-usage-0.1.8.tgz", 437 | "integrity": "sha512-EZJ+ty1TsqdnhZNt2QbI+ed3IUNHTH31blSOJLVph3oL4IExskPRyCDGJH7RuCBPy3QBmWgpbeUxXPhK0isXIw==", 438 | "requires": { 439 | "marked": "^0.5.0", 440 | "marked-terminal": "^3.0.0" 441 | } 442 | }, 443 | "cliui": { 444 | "version": "4.1.0", 445 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", 446 | "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", 447 | "requires": { 448 | "string-width": "^2.1.1", 449 | "strip-ansi": "^4.0.0", 450 | "wrap-ansi": "^2.0.0" 451 | }, 452 | "dependencies": { 453 | "ansi-regex": { 454 | "version": "3.0.0", 455 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 456 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" 457 | }, 458 | "is-fullwidth-code-point": { 459 | "version": "2.0.0", 460 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 461 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 462 | }, 463 | "string-width": { 464 | "version": "2.1.1", 465 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 466 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 467 | "requires": { 468 | "is-fullwidth-code-point": "^2.0.0", 469 | "strip-ansi": "^4.0.0" 470 | } 471 | }, 472 | "strip-ansi": { 473 | "version": "4.0.0", 474 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 475 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 476 | "requires": { 477 | "ansi-regex": "^3.0.0" 478 | } 479 | } 480 | } 481 | }, 482 | "code-point-at": { 483 | "version": "1.1.0", 484 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 485 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" 486 | }, 487 | "color-convert": { 488 | "version": "1.9.3", 489 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 490 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 491 | "requires": { 492 | "color-name": "1.1.3" 493 | } 494 | }, 495 | "color-name": { 496 | "version": "1.1.3", 497 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 498 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 499 | }, 500 | "colors": { 501 | "version": "1.0.3", 502 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", 503 | "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=" 504 | }, 505 | "combined-stream": { 506 | "version": "1.0.7", 507 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", 508 | "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", 509 | "requires": { 510 | "delayed-stream": "~1.0.0" 511 | } 512 | }, 513 | "concat-map": { 514 | "version": "0.0.1", 515 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 516 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 517 | }, 518 | "console-control-strings": { 519 | "version": "1.1.0", 520 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", 521 | "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" 522 | }, 523 | "content-disposition": { 524 | "version": "0.5.2", 525 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", 526 | "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=" 527 | }, 528 | "content-security-policy-builder": { 529 | "version": "2.0.0", 530 | "resolved": "https://registry.npmjs.org/content-security-policy-builder/-/content-security-policy-builder-2.0.0.tgz", 531 | "integrity": "sha512-j+Nhmj1yfZAikJLImCvPJFE29x/UuBi+/MWqggGGc515JKaZrjuei2RhULJmy0MsstW3E3htl002bwmBNMKr7w==" 532 | }, 533 | "content-type": { 534 | "version": "1.0.4", 535 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 536 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 537 | }, 538 | "cookie": { 539 | "version": "0.3.1", 540 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", 541 | "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" 542 | }, 543 | "cookie-signature": { 544 | "version": "1.0.6", 545 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 546 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 547 | }, 548 | "core-util-is": { 549 | "version": "1.0.2", 550 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 551 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 552 | }, 553 | "cors": { 554 | "version": "2.8.5", 555 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 556 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 557 | "requires": { 558 | "object-assign": "^4", 559 | "vary": "^1" 560 | } 561 | }, 562 | "cross-spawn": { 563 | "version": "5.1.0", 564 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", 565 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", 566 | "requires": { 567 | "lru-cache": "^4.0.1", 568 | "shebang-command": "^1.2.0", 569 | "which": "^1.2.9" 570 | } 571 | }, 572 | "currently-unhandled": { 573 | "version": "0.4.1", 574 | "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", 575 | "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", 576 | "requires": { 577 | "array-find-index": "^1.0.1" 578 | } 579 | }, 580 | "dashdash": { 581 | "version": "1.14.1", 582 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 583 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 584 | "requires": { 585 | "assert-plus": "^1.0.0" 586 | } 587 | }, 588 | "dasherize": { 589 | "version": "2.0.0", 590 | "resolved": "https://registry.npmjs.org/dasherize/-/dasherize-2.0.0.tgz", 591 | "integrity": "sha1-bYCcnNDPe7iVLYD8hPoT1H3bEwg=" 592 | }, 593 | "dateformat": { 594 | "version": "1.0.12", 595 | "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz", 596 | "integrity": "sha1-nxJLZ1lMk3/3BpMuSmQsyo27/uk=", 597 | "requires": { 598 | "get-stdin": "^4.0.1", 599 | "meow": "^3.3.0" 600 | } 601 | }, 602 | "debounce": { 603 | "version": "1.2.0", 604 | "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.0.tgz", 605 | "integrity": "sha512-mYtLl1xfZLi1m4RtQYlZgJUNQjl4ZxVnHzIR8nLLgi4q1YT8o/WM+MK/f8yfcc9s5Ir5zRaPZyZU6xs1Syoocg==" 606 | }, 607 | "debug": { 608 | "version": "2.6.9", 609 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 610 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 611 | "requires": { 612 | "ms": "2.0.0" 613 | } 614 | }, 615 | "decamelize": { 616 | "version": "1.2.0", 617 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 618 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 619 | }, 620 | "deep-extend": { 621 | "version": "0.6.0", 622 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 623 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" 624 | }, 625 | "delayed-stream": { 626 | "version": "1.0.0", 627 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 628 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 629 | }, 630 | "delegates": { 631 | "version": "1.0.0", 632 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", 633 | "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" 634 | }, 635 | "depd": { 636 | "version": "1.1.2", 637 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 638 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 639 | }, 640 | "destroy": { 641 | "version": "1.0.4", 642 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 643 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 644 | }, 645 | "detect-libc": { 646 | "version": "1.0.3", 647 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", 648 | "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=" 649 | }, 650 | "diff": { 651 | "version": "3.5.0", 652 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 653 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==" 654 | }, 655 | "dns-prefetch-control": { 656 | "version": "0.1.0", 657 | "resolved": "https://registry.npmjs.org/dns-prefetch-control/-/dns-prefetch-control-0.1.0.tgz", 658 | "integrity": "sha1-YN20V3dOF48flBXwyrsOhbCzALI=" 659 | }, 660 | "dont-sniff-mimetype": { 661 | "version": "1.0.0", 662 | "resolved": "https://registry.npmjs.org/dont-sniff-mimetype/-/dont-sniff-mimetype-1.0.0.tgz", 663 | "integrity": "sha1-WTKJDcn04vGeXrAqIAJuXl78j1g=" 664 | }, 665 | "dotenv": { 666 | "version": "5.0.1", 667 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-5.0.1.tgz", 668 | "integrity": "sha512-4As8uPrjfwb7VXC+WnLCbXK7y+Ueb2B3zgNCePYfhxS1PYeaO1YTeplffTEcbfLhvFNGLAz90VvJs9yomG7bow==" 669 | }, 670 | "dynamic-dedupe": { 671 | "version": "0.3.0", 672 | "resolved": "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz", 673 | "integrity": "sha1-BuRMIj9eTpTXjvnbI6ZRXOL5YqE=", 674 | "requires": { 675 | "xtend": "^4.0.0" 676 | } 677 | }, 678 | "ecc-jsbn": { 679 | "version": "0.1.2", 680 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 681 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", 682 | "requires": { 683 | "jsbn": "~0.1.0", 684 | "safer-buffer": "^2.1.0" 685 | } 686 | }, 687 | "ecdsa-sig-formatter": { 688 | "version": "1.0.10", 689 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz", 690 | "integrity": "sha1-HFlQAPBKiJffuFAAiSoPTDOvhsM=", 691 | "requires": { 692 | "safe-buffer": "^5.0.1" 693 | } 694 | }, 695 | "ee-first": { 696 | "version": "1.1.1", 697 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 698 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 699 | }, 700 | "encodeurl": { 701 | "version": "1.0.2", 702 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 703 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 704 | }, 705 | "end-of-stream": { 706 | "version": "1.4.1", 707 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", 708 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", 709 | "requires": { 710 | "once": "^1.4.0" 711 | } 712 | }, 713 | "error-ex": { 714 | "version": "1.3.2", 715 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", 716 | "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", 717 | "requires": { 718 | "is-arrayish": "^0.2.1" 719 | } 720 | }, 721 | "escape-html": { 722 | "version": "1.0.3", 723 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 724 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 725 | }, 726 | "escape-string-regexp": { 727 | "version": "1.0.5", 728 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 729 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 730 | }, 731 | "esprima": { 732 | "version": "4.0.1", 733 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 734 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" 735 | }, 736 | "etag": { 737 | "version": "1.8.1", 738 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 739 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 740 | }, 741 | "execa": { 742 | "version": "0.7.0", 743 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", 744 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", 745 | "requires": { 746 | "cross-spawn": "^5.0.1", 747 | "get-stream": "^3.0.0", 748 | "is-stream": "^1.1.0", 749 | "npm-run-path": "^2.0.0", 750 | "p-finally": "^1.0.0", 751 | "signal-exit": "^3.0.0", 752 | "strip-eof": "^1.0.0" 753 | } 754 | }, 755 | "expect-ct": { 756 | "version": "0.1.1", 757 | "resolved": "https://registry.npmjs.org/expect-ct/-/expect-ct-0.1.1.tgz", 758 | "integrity": "sha512-ngXzTfoRGG7fYens3/RMb6yYoVLvLMfmsSllP/mZPxNHgFq41TmPSLF/nLY7fwoclI2vElvAmILFWGUYqdjfCg==" 759 | }, 760 | "express": { 761 | "version": "4.16.4", 762 | "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz", 763 | "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==", 764 | "requires": { 765 | "accepts": "~1.3.5", 766 | "array-flatten": "1.1.1", 767 | "body-parser": "1.18.3", 768 | "content-disposition": "0.5.2", 769 | "content-type": "~1.0.4", 770 | "cookie": "0.3.1", 771 | "cookie-signature": "1.0.6", 772 | "debug": "2.6.9", 773 | "depd": "~1.1.2", 774 | "encodeurl": "~1.0.2", 775 | "escape-html": "~1.0.3", 776 | "etag": "~1.8.1", 777 | "finalhandler": "1.1.1", 778 | "fresh": "0.5.2", 779 | "merge-descriptors": "1.0.1", 780 | "methods": "~1.1.2", 781 | "on-finished": "~2.3.0", 782 | "parseurl": "~1.3.2", 783 | "path-to-regexp": "0.1.7", 784 | "proxy-addr": "~2.0.4", 785 | "qs": "6.5.2", 786 | "range-parser": "~1.2.0", 787 | "safe-buffer": "5.1.2", 788 | "send": "0.16.2", 789 | "serve-static": "1.13.2", 790 | "setprototypeof": "1.1.0", 791 | "statuses": "~1.4.0", 792 | "type-is": "~1.6.16", 793 | "utils-merge": "1.0.1", 794 | "vary": "~1.1.2" 795 | }, 796 | "dependencies": { 797 | "statuses": { 798 | "version": "1.4.0", 799 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", 800 | "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" 801 | } 802 | } 803 | }, 804 | "extend": { 805 | "version": "3.0.2", 806 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 807 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" 808 | }, 809 | "extsprintf": { 810 | "version": "1.3.0", 811 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 812 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 813 | }, 814 | "fast-deep-equal": { 815 | "version": "2.0.1", 816 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 817 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 818 | }, 819 | "fast-json-stable-stringify": { 820 | "version": "2.0.0", 821 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 822 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 823 | }, 824 | "feature-policy": { 825 | "version": "0.2.0", 826 | "resolved": "https://registry.npmjs.org/feature-policy/-/feature-policy-0.2.0.tgz", 827 | "integrity": "sha512-2hGrlv6efG4hscYVZeaYjpzpT6I2OZgYqE2yDUzeAcKj2D1SH0AsEzqJNXzdoglEddcIXQQYop3lD97XpG75Jw==" 828 | }, 829 | "figlet": { 830 | "version": "1.2.1", 831 | "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.2.1.tgz", 832 | "integrity": "sha512-qc8gycfnnfOmfvPl7Fi3JeTbcvdmbZkckyUVGGAM02je7Ookvu+bBfKy1I4FKqTsQHCs3ARJ76ip/k98r+OQuQ==" 833 | }, 834 | "filewatcher": { 835 | "version": "3.0.1", 836 | "resolved": "https://registry.npmjs.org/filewatcher/-/filewatcher-3.0.1.tgz", 837 | "integrity": "sha1-9KGVc1Xdr0Q8zXiolfPVXiPIoDQ=", 838 | "requires": { 839 | "debounce": "^1.0.0" 840 | } 841 | }, 842 | "finalhandler": { 843 | "version": "1.1.1", 844 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", 845 | "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", 846 | "requires": { 847 | "debug": "2.6.9", 848 | "encodeurl": "~1.0.2", 849 | "escape-html": "~1.0.3", 850 | "on-finished": "~2.3.0", 851 | "parseurl": "~1.3.2", 852 | "statuses": "~1.4.0", 853 | "unpipe": "~1.0.0" 854 | }, 855 | "dependencies": { 856 | "statuses": { 857 | "version": "1.4.0", 858 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", 859 | "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" 860 | } 861 | } 862 | }, 863 | "find-up": { 864 | "version": "2.1.0", 865 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", 866 | "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", 867 | "requires": { 868 | "locate-path": "^2.0.0" 869 | } 870 | }, 871 | "forever-agent": { 872 | "version": "0.6.1", 873 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 874 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 875 | }, 876 | "form-data": { 877 | "version": "2.3.3", 878 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", 879 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", 880 | "requires": { 881 | "asynckit": "^0.4.0", 882 | "combined-stream": "^1.0.6", 883 | "mime-types": "^2.1.12" 884 | } 885 | }, 886 | "forwarded": { 887 | "version": "0.1.2", 888 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 889 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 890 | }, 891 | "frameguard": { 892 | "version": "3.0.0", 893 | "resolved": "https://registry.npmjs.org/frameguard/-/frameguard-3.0.0.tgz", 894 | "integrity": "sha1-e8rUae57lukdEs6zlZx4I1qScuk=" 895 | }, 896 | "fresh": { 897 | "version": "0.5.2", 898 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 899 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 900 | }, 901 | "fs-minipass": { 902 | "version": "1.2.5", 903 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz", 904 | "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", 905 | "requires": { 906 | "minipass": "^2.2.1" 907 | } 908 | }, 909 | "fs.realpath": { 910 | "version": "1.0.0", 911 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 912 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 913 | }, 914 | "gauge": { 915 | "version": "2.7.4", 916 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", 917 | "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", 918 | "requires": { 919 | "aproba": "^1.0.3", 920 | "console-control-strings": "^1.0.0", 921 | "has-unicode": "^2.0.0", 922 | "object-assign": "^4.1.0", 923 | "signal-exit": "^3.0.0", 924 | "string-width": "^1.0.1", 925 | "strip-ansi": "^3.0.1", 926 | "wide-align": "^1.1.0" 927 | } 928 | }, 929 | "get-caller-file": { 930 | "version": "1.0.3", 931 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", 932 | "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" 933 | }, 934 | "get-stdin": { 935 | "version": "4.0.1", 936 | "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", 937 | "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=" 938 | }, 939 | "get-stream": { 940 | "version": "3.0.0", 941 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 942 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=" 943 | }, 944 | "getpass": { 945 | "version": "0.1.7", 946 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 947 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 948 | "requires": { 949 | "assert-plus": "^1.0.0" 950 | } 951 | }, 952 | "glob": { 953 | "version": "7.1.3", 954 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", 955 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", 956 | "requires": { 957 | "fs.realpath": "^1.0.0", 958 | "inflight": "^1.0.4", 959 | "inherits": "2", 960 | "minimatch": "^3.0.4", 961 | "once": "^1.3.0", 962 | "path-is-absolute": "^1.0.0" 963 | } 964 | }, 965 | "google-libphonenumber": { 966 | "version": "3.2.2", 967 | "resolved": "https://registry.npmjs.org/google-libphonenumber/-/google-libphonenumber-3.2.2.tgz", 968 | "integrity": "sha512-ubjGeosYPeusjYbUHy76lCniGTTI0k1rIFc+uKBX+jHQLDmWOSUtlFUxaeoLJ+Y+PAMM6dWp+C1HjHx5BI8kEw==" 969 | }, 970 | "graceful-fs": { 971 | "version": "4.1.15", 972 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", 973 | "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==" 974 | }, 975 | "growly": { 976 | "version": "1.3.0", 977 | "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", 978 | "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=" 979 | }, 980 | "har-schema": { 981 | "version": "2.0.0", 982 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 983 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 984 | }, 985 | "har-validator": { 986 | "version": "5.1.3", 987 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", 988 | "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", 989 | "requires": { 990 | "ajv": "^6.5.5", 991 | "har-schema": "^2.0.0" 992 | } 993 | }, 994 | "has-ansi": { 995 | "version": "2.0.0", 996 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", 997 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", 998 | "requires": { 999 | "ansi-regex": "^2.0.0" 1000 | } 1001 | }, 1002 | "has-flag": { 1003 | "version": "3.0.0", 1004 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1005 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 1006 | }, 1007 | "has-unicode": { 1008 | "version": "2.0.1", 1009 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", 1010 | "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" 1011 | }, 1012 | "helmet": { 1013 | "version": "3.15.0", 1014 | "resolved": "https://registry.npmjs.org/helmet/-/helmet-3.15.0.tgz", 1015 | "integrity": "sha512-j9JjtAnWJj09lqe/PEICrhuDaX30TeokXJ9tW6ZPhVH0+LMoihDeJ58CdWeTGzM66p6EiIODmgAaWfdeIWI4Gg==", 1016 | "requires": { 1017 | "dns-prefetch-control": "0.1.0", 1018 | "dont-sniff-mimetype": "1.0.0", 1019 | "expect-ct": "0.1.1", 1020 | "feature-policy": "0.2.0", 1021 | "frameguard": "3.0.0", 1022 | "helmet-crossdomain": "0.3.0", 1023 | "helmet-csp": "2.7.1", 1024 | "hide-powered-by": "1.0.0", 1025 | "hpkp": "2.0.0", 1026 | "hsts": "2.1.0", 1027 | "ienoopen": "1.0.0", 1028 | "nocache": "2.0.0", 1029 | "referrer-policy": "1.1.0", 1030 | "x-xss-protection": "1.1.0" 1031 | } 1032 | }, 1033 | "helmet-crossdomain": { 1034 | "version": "0.3.0", 1035 | "resolved": "https://registry.npmjs.org/helmet-crossdomain/-/helmet-crossdomain-0.3.0.tgz", 1036 | "integrity": "sha512-YiXhj0E35nC4Na5EPE4mTfoXMf9JTGpN4OtB4aLqShKuH9d2HNaJX5MQoglO6STVka0uMsHyG5lCut5Kzsy7Lg==" 1037 | }, 1038 | "helmet-csp": { 1039 | "version": "2.7.1", 1040 | "resolved": "https://registry.npmjs.org/helmet-csp/-/helmet-csp-2.7.1.tgz", 1041 | "integrity": "sha512-sCHwywg4daQ2mY0YYwXSZRsgcCeerUwxMwNixGA7aMLkVmPTYBl7gJoZDHOZyXkqPrtuDT3s2B1A+RLI7WxSdQ==", 1042 | "requires": { 1043 | "camelize": "1.0.0", 1044 | "content-security-policy-builder": "2.0.0", 1045 | "dasherize": "2.0.0", 1046 | "platform": "1.3.5" 1047 | } 1048 | }, 1049 | "hide-powered-by": { 1050 | "version": "1.0.0", 1051 | "resolved": "https://registry.npmjs.org/hide-powered-by/-/hide-powered-by-1.0.0.tgz", 1052 | "integrity": "sha1-SoWtZYgfYoV/xwr3F0oRhNzM4ys=" 1053 | }, 1054 | "highlight.js": { 1055 | "version": "9.14.2", 1056 | "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.14.2.tgz", 1057 | "integrity": "sha512-Nc6YNECYpxyJABGYJAyw7dBAYbXEuIzwzkqoJnwbc1nIpCiN+3ioYf0XrBnLiyyG0JLuJhpPtt2iTSbXiKLoyA==" 1058 | }, 1059 | "homedir-polyfill": { 1060 | "version": "1.0.1", 1061 | "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz", 1062 | "integrity": "sha1-TCu8inWJmP7r9e1oWA921GdotLw=", 1063 | "requires": { 1064 | "parse-passwd": "^1.0.0" 1065 | } 1066 | }, 1067 | "hosted-git-info": { 1068 | "version": "2.7.1", 1069 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", 1070 | "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==" 1071 | }, 1072 | "hpkp": { 1073 | "version": "2.0.0", 1074 | "resolved": "https://registry.npmjs.org/hpkp/-/hpkp-2.0.0.tgz", 1075 | "integrity": "sha1-EOFCJk52IVpdMMROxD3mTe5tFnI=" 1076 | }, 1077 | "hsts": { 1078 | "version": "2.1.0", 1079 | "resolved": "https://registry.npmjs.org/hsts/-/hsts-2.1.0.tgz", 1080 | "integrity": "sha512-zXhh/DqgrTXJ7erTN6Fh5k/xjMhDGXCqdYN3wvxUvGUQvnxcFfUd8E+6vLg/nk3ss1TYMb+DhRl25fYABioTvA==" 1081 | }, 1082 | "http-errors": { 1083 | "version": "1.6.3", 1084 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", 1085 | "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", 1086 | "requires": { 1087 | "depd": "~1.1.2", 1088 | "inherits": "2.0.3", 1089 | "setprototypeof": "1.1.0", 1090 | "statuses": ">= 1.4.0 < 2" 1091 | } 1092 | }, 1093 | "http-signature": { 1094 | "version": "1.2.0", 1095 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 1096 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 1097 | "requires": { 1098 | "assert-plus": "^1.0.0", 1099 | "jsprim": "^1.2.2", 1100 | "sshpk": "^1.7.0" 1101 | } 1102 | }, 1103 | "iconv-lite": { 1104 | "version": "0.4.23", 1105 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", 1106 | "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", 1107 | "requires": { 1108 | "safer-buffer": ">= 2.1.2 < 3" 1109 | } 1110 | }, 1111 | "ieee754": { 1112 | "version": "1.1.12", 1113 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz", 1114 | "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==" 1115 | }, 1116 | "ienoopen": { 1117 | "version": "1.0.0", 1118 | "resolved": "https://registry.npmjs.org/ienoopen/-/ienoopen-1.0.0.tgz", 1119 | "integrity": "sha1-NGpCj0dKrI9QzzeE6i0PFvYr2ms=" 1120 | }, 1121 | "ignore-walk": { 1122 | "version": "3.0.1", 1123 | "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", 1124 | "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", 1125 | "requires": { 1126 | "minimatch": "^3.0.4" 1127 | } 1128 | }, 1129 | "indent-string": { 1130 | "version": "2.1.0", 1131 | "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", 1132 | "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", 1133 | "requires": { 1134 | "repeating": "^2.0.0" 1135 | } 1136 | }, 1137 | "inflight": { 1138 | "version": "1.0.6", 1139 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1140 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1141 | "requires": { 1142 | "once": "^1.3.0", 1143 | "wrappy": "1" 1144 | } 1145 | }, 1146 | "inherits": { 1147 | "version": "2.0.3", 1148 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1149 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 1150 | }, 1151 | "ini": { 1152 | "version": "1.3.5", 1153 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 1154 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" 1155 | }, 1156 | "invert-kv": { 1157 | "version": "1.0.0", 1158 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", 1159 | "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" 1160 | }, 1161 | "ipaddr.js": { 1162 | "version": "1.8.0", 1163 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz", 1164 | "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=" 1165 | }, 1166 | "is-arrayish": { 1167 | "version": "0.2.1", 1168 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 1169 | "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" 1170 | }, 1171 | "is-builtin-module": { 1172 | "version": "1.0.0", 1173 | "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", 1174 | "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", 1175 | "requires": { 1176 | "builtin-modules": "^1.0.0" 1177 | } 1178 | }, 1179 | "is-finite": { 1180 | "version": "1.0.2", 1181 | "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", 1182 | "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", 1183 | "requires": { 1184 | "number-is-nan": "^1.0.0" 1185 | } 1186 | }, 1187 | "is-fullwidth-code-point": { 1188 | "version": "1.0.0", 1189 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1190 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 1191 | "requires": { 1192 | "number-is-nan": "^1.0.0" 1193 | } 1194 | }, 1195 | "is-stream": { 1196 | "version": "1.1.0", 1197 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 1198 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" 1199 | }, 1200 | "is-typedarray": { 1201 | "version": "1.0.0", 1202 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 1203 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 1204 | }, 1205 | "is-utf8": { 1206 | "version": "0.2.1", 1207 | "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", 1208 | "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=" 1209 | }, 1210 | "isarray": { 1211 | "version": "1.0.0", 1212 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1213 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 1214 | }, 1215 | "isexe": { 1216 | "version": "2.0.0", 1217 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1218 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" 1219 | }, 1220 | "isstream": { 1221 | "version": "0.1.2", 1222 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 1223 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 1224 | }, 1225 | "js-yaml": { 1226 | "version": "3.12.1", 1227 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.1.tgz", 1228 | "integrity": "sha512-um46hB9wNOKlwkHgiuyEVAybXBjwFUV0Z/RaHJblRd9DXltue9FTYvzCr9ErQrK9Adz5MU4gHWVaNUfdmrC8qA==", 1229 | "requires": { 1230 | "argparse": "^1.0.7", 1231 | "esprima": "^4.0.0" 1232 | } 1233 | }, 1234 | "jsbn": { 1235 | "version": "0.1.1", 1236 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 1237 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" 1238 | }, 1239 | "json-schema": { 1240 | "version": "0.2.3", 1241 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 1242 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 1243 | }, 1244 | "json-schema-traverse": { 1245 | "version": "0.4.1", 1246 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1247 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 1248 | }, 1249 | "json-stringify-safe": { 1250 | "version": "5.0.1", 1251 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 1252 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 1253 | }, 1254 | "jsonwebtoken": { 1255 | "version": "8.4.0", 1256 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.4.0.tgz", 1257 | "integrity": "sha512-coyXjRTCy0pw5WYBpMvWOMN+Kjaik2MwTUIq9cna/W7NpO9E+iYbumZONAz3hcr+tXFJECoQVrtmIoC3Oz0gvg==", 1258 | "requires": { 1259 | "jws": "^3.1.5", 1260 | "lodash.includes": "^4.3.0", 1261 | "lodash.isboolean": "^3.0.3", 1262 | "lodash.isinteger": "^4.0.4", 1263 | "lodash.isnumber": "^3.0.3", 1264 | "lodash.isplainobject": "^4.0.6", 1265 | "lodash.isstring": "^4.0.1", 1266 | "lodash.once": "^4.0.0", 1267 | "ms": "^2.1.1" 1268 | }, 1269 | "dependencies": { 1270 | "ms": { 1271 | "version": "2.1.1", 1272 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1273 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1274 | } 1275 | } 1276 | }, 1277 | "jsprim": { 1278 | "version": "1.4.1", 1279 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 1280 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 1281 | "requires": { 1282 | "assert-plus": "1.0.0", 1283 | "extsprintf": "1.3.0", 1284 | "json-schema": "0.2.3", 1285 | "verror": "1.10.0" 1286 | } 1287 | }, 1288 | "jwa": { 1289 | "version": "1.2.0", 1290 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.2.0.tgz", 1291 | "integrity": "sha512-Grku9ZST5NNQ3hqNUodSkDfEBqAmGA1R8yiyPHOnLzEKI0GaCQC/XhFmsheXYuXzFQJdILbh+lYBiliqG5R/Vg==", 1292 | "requires": { 1293 | "buffer-equal-constant-time": "1.0.1", 1294 | "ecdsa-sig-formatter": "1.0.10", 1295 | "safe-buffer": "^5.0.1" 1296 | } 1297 | }, 1298 | "jws": { 1299 | "version": "3.2.1", 1300 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.1.tgz", 1301 | "integrity": "sha512-bGA2omSrFUkd72dhh05bIAN832znP4wOU3lfuXtRBuGTbsmNmDXMQg28f0Vsxaxgk4myF5YkKQpz6qeRpMgX9g==", 1302 | "requires": { 1303 | "jwa": "^1.2.0", 1304 | "safe-buffer": "^5.0.1" 1305 | } 1306 | }, 1307 | "lcid": { 1308 | "version": "1.0.0", 1309 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", 1310 | "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", 1311 | "requires": { 1312 | "invert-kv": "^1.0.0" 1313 | } 1314 | }, 1315 | "load-json-file": { 1316 | "version": "1.1.0", 1317 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", 1318 | "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", 1319 | "requires": { 1320 | "graceful-fs": "^4.1.2", 1321 | "parse-json": "^2.2.0", 1322 | "pify": "^2.0.0", 1323 | "pinkie-promise": "^2.0.0", 1324 | "strip-bom": "^2.0.0" 1325 | }, 1326 | "dependencies": { 1327 | "strip-bom": { 1328 | "version": "2.0.0", 1329 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", 1330 | "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", 1331 | "requires": { 1332 | "is-utf8": "^0.2.0" 1333 | } 1334 | } 1335 | } 1336 | }, 1337 | "locate-path": { 1338 | "version": "2.0.0", 1339 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", 1340 | "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", 1341 | "requires": { 1342 | "p-locate": "^2.0.0", 1343 | "path-exists": "^3.0.0" 1344 | } 1345 | }, 1346 | "lodash._arraycopy": { 1347 | "version": "3.0.0", 1348 | "resolved": "https://registry.npmjs.org/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz", 1349 | "integrity": "sha1-due3wfH7klRzdIeKVi7Qaj5Q9uE=" 1350 | }, 1351 | "lodash._arrayeach": { 1352 | "version": "3.0.0", 1353 | "resolved": "https://registry.npmjs.org/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz", 1354 | "integrity": "sha1-urFWsqkNPxu9XGU0AzSeXlkz754=" 1355 | }, 1356 | "lodash._baseassign": { 1357 | "version": "3.2.0", 1358 | "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", 1359 | "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", 1360 | "requires": { 1361 | "lodash._basecopy": "^3.0.0", 1362 | "lodash.keys": "^3.0.0" 1363 | } 1364 | }, 1365 | "lodash._baseclone": { 1366 | "version": "3.3.0", 1367 | "resolved": "https://registry.npmjs.org/lodash._baseclone/-/lodash._baseclone-3.3.0.tgz", 1368 | "integrity": "sha1-MDUZv2OT/n5C802LYw73eU41Qrc=", 1369 | "requires": { 1370 | "lodash._arraycopy": "^3.0.0", 1371 | "lodash._arrayeach": "^3.0.0", 1372 | "lodash._baseassign": "^3.0.0", 1373 | "lodash._basefor": "^3.0.0", 1374 | "lodash.isarray": "^3.0.0", 1375 | "lodash.keys": "^3.0.0" 1376 | } 1377 | }, 1378 | "lodash._basecopy": { 1379 | "version": "3.0.1", 1380 | "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", 1381 | "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=" 1382 | }, 1383 | "lodash._basefor": { 1384 | "version": "3.0.3", 1385 | "resolved": "https://registry.npmjs.org/lodash._basefor/-/lodash._basefor-3.0.3.tgz", 1386 | "integrity": "sha1-dVC06SGO8J+tJDQ7YSAhx5tMIMI=" 1387 | }, 1388 | "lodash._bindcallback": { 1389 | "version": "3.0.1", 1390 | "resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz", 1391 | "integrity": "sha1-5THCdkTPi1epnhftlbNcdIeJOS4=" 1392 | }, 1393 | "lodash._getnative": { 1394 | "version": "3.9.1", 1395 | "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", 1396 | "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=" 1397 | }, 1398 | "lodash.clonedeep": { 1399 | "version": "3.0.2", 1400 | "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz", 1401 | "integrity": "sha1-oKHkDYKl6on/WxR7hETtY9koJ9s=", 1402 | "requires": { 1403 | "lodash._baseclone": "^3.0.0", 1404 | "lodash._bindcallback": "^3.0.0" 1405 | } 1406 | }, 1407 | "lodash.includes": { 1408 | "version": "4.3.0", 1409 | "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", 1410 | "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" 1411 | }, 1412 | "lodash.isarguments": { 1413 | "version": "3.1.0", 1414 | "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", 1415 | "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=" 1416 | }, 1417 | "lodash.isarray": { 1418 | "version": "3.0.4", 1419 | "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", 1420 | "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=" 1421 | }, 1422 | "lodash.isboolean": { 1423 | "version": "3.0.3", 1424 | "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", 1425 | "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" 1426 | }, 1427 | "lodash.isinteger": { 1428 | "version": "4.0.4", 1429 | "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", 1430 | "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" 1431 | }, 1432 | "lodash.isnumber": { 1433 | "version": "3.0.3", 1434 | "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", 1435 | "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" 1436 | }, 1437 | "lodash.isplainobject": { 1438 | "version": "4.0.6", 1439 | "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", 1440 | "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" 1441 | }, 1442 | "lodash.isstring": { 1443 | "version": "4.0.1", 1444 | "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", 1445 | "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" 1446 | }, 1447 | "lodash.keys": { 1448 | "version": "3.1.2", 1449 | "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", 1450 | "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", 1451 | "requires": { 1452 | "lodash._getnative": "^3.0.0", 1453 | "lodash.isarguments": "^3.0.0", 1454 | "lodash.isarray": "^3.0.0" 1455 | } 1456 | }, 1457 | "lodash.once": { 1458 | "version": "4.1.1", 1459 | "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", 1460 | "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" 1461 | }, 1462 | "lodash.toarray": { 1463 | "version": "4.4.0", 1464 | "resolved": "https://registry.npmjs.org/lodash.toarray/-/lodash.toarray-4.4.0.tgz", 1465 | "integrity": "sha1-JMS/zWsvuji/0FlNsRedjptlZWE=" 1466 | }, 1467 | "loud-rejection": { 1468 | "version": "1.6.0", 1469 | "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", 1470 | "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", 1471 | "requires": { 1472 | "currently-unhandled": "^0.4.1", 1473 | "signal-exit": "^3.0.0" 1474 | } 1475 | }, 1476 | "lru-cache": { 1477 | "version": "4.1.5", 1478 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", 1479 | "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", 1480 | "requires": { 1481 | "pseudomap": "^1.0.2", 1482 | "yallist": "^2.1.2" 1483 | }, 1484 | "dependencies": { 1485 | "yallist": { 1486 | "version": "2.1.2", 1487 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 1488 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" 1489 | } 1490 | } 1491 | }, 1492 | "make-error": { 1493 | "version": "1.3.5", 1494 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", 1495 | "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==" 1496 | }, 1497 | "map-age-cleaner": { 1498 | "version": "0.1.3", 1499 | "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", 1500 | "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", 1501 | "requires": { 1502 | "p-defer": "^1.0.0" 1503 | } 1504 | }, 1505 | "map-obj": { 1506 | "version": "1.0.1", 1507 | "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", 1508 | "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=" 1509 | }, 1510 | "marked": { 1511 | "version": "0.5.2", 1512 | "resolved": "https://registry.npmjs.org/marked/-/marked-0.5.2.tgz", 1513 | "integrity": "sha512-fdZvBa7/vSQIZCi4uuwo2N3q+7jJURpMVCcbaX0S1Mg65WZ5ilXvC67MviJAsdjqqgD+CEq4RKo5AYGgINkVAA==" 1514 | }, 1515 | "marked-terminal": { 1516 | "version": "3.2.0", 1517 | "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-3.2.0.tgz", 1518 | "integrity": "sha512-Yr1yVS0BbDG55vx7be1D0mdv+jGs9AW563o/Tt/7FTsId2J0yqhrTeXAqq/Q0DyyXltIn6CSxzesQuFqXgafjQ==", 1519 | "requires": { 1520 | "ansi-escapes": "^3.1.0", 1521 | "cardinal": "^2.1.1", 1522 | "chalk": "^2.4.1", 1523 | "cli-table": "^0.3.1", 1524 | "node-emoji": "^1.4.1", 1525 | "supports-hyperlinks": "^1.0.1" 1526 | } 1527 | }, 1528 | "media-typer": { 1529 | "version": "0.3.0", 1530 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1531 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1532 | }, 1533 | "mem": { 1534 | "version": "1.1.0", 1535 | "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", 1536 | "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", 1537 | "requires": { 1538 | "mimic-fn": "^1.0.0" 1539 | } 1540 | }, 1541 | "meow": { 1542 | "version": "3.7.0", 1543 | "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", 1544 | "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", 1545 | "requires": { 1546 | "camelcase-keys": "^2.0.0", 1547 | "decamelize": "^1.1.2", 1548 | "loud-rejection": "^1.0.0", 1549 | "map-obj": "^1.0.1", 1550 | "minimist": "^1.1.3", 1551 | "normalize-package-data": "^2.3.4", 1552 | "object-assign": "^4.0.1", 1553 | "read-pkg-up": "^1.0.1", 1554 | "redent": "^1.0.0", 1555 | "trim-newlines": "^1.0.0" 1556 | }, 1557 | "dependencies": { 1558 | "minimist": { 1559 | "version": "1.2.0", 1560 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 1561 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" 1562 | } 1563 | } 1564 | }, 1565 | "merge-descriptors": { 1566 | "version": "1.0.1", 1567 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1568 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1569 | }, 1570 | "methods": { 1571 | "version": "1.1.2", 1572 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1573 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1574 | }, 1575 | "mime": { 1576 | "version": "1.4.1", 1577 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", 1578 | "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" 1579 | }, 1580 | "mime-db": { 1581 | "version": "1.37.0", 1582 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", 1583 | "integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==" 1584 | }, 1585 | "mime-types": { 1586 | "version": "2.1.21", 1587 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", 1588 | "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", 1589 | "requires": { 1590 | "mime-db": "~1.37.0" 1591 | } 1592 | }, 1593 | "mimic-fn": { 1594 | "version": "1.2.0", 1595 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", 1596 | "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==" 1597 | }, 1598 | "minimatch": { 1599 | "version": "3.0.4", 1600 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1601 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1602 | "requires": { 1603 | "brace-expansion": "^1.1.7" 1604 | } 1605 | }, 1606 | "minimist": { 1607 | "version": "0.0.8", 1608 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 1609 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" 1610 | }, 1611 | "minipass": { 1612 | "version": "2.3.5", 1613 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz", 1614 | "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==", 1615 | "requires": { 1616 | "safe-buffer": "^5.1.2", 1617 | "yallist": "^3.0.0" 1618 | } 1619 | }, 1620 | "minizlib": { 1621 | "version": "1.2.1", 1622 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.2.1.tgz", 1623 | "integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==", 1624 | "requires": { 1625 | "minipass": "^2.2.1" 1626 | } 1627 | }, 1628 | "mkdirp": { 1629 | "version": "0.5.1", 1630 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 1631 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 1632 | "requires": { 1633 | "minimist": "0.0.8" 1634 | } 1635 | }, 1636 | "ms": { 1637 | "version": "2.0.0", 1638 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1639 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1640 | }, 1641 | "mz": { 1642 | "version": "2.7.0", 1643 | "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", 1644 | "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", 1645 | "requires": { 1646 | "any-promise": "^1.0.0", 1647 | "object-assign": "^4.0.1", 1648 | "thenify-all": "^1.0.0" 1649 | } 1650 | }, 1651 | "nan": { 1652 | "version": "2.10.0", 1653 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", 1654 | "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" 1655 | }, 1656 | "needle": { 1657 | "version": "2.2.4", 1658 | "resolved": "https://registry.npmjs.org/needle/-/needle-2.2.4.tgz", 1659 | "integrity": "sha512-HyoqEb4wr/rsoaIDfTH2aVL9nWtQqba2/HvMv+++m8u0dz808MaagKILxtfeSN7QU7nvbQ79zk3vYOJp9zsNEA==", 1660 | "requires": { 1661 | "debug": "^2.1.2", 1662 | "iconv-lite": "^0.4.4", 1663 | "sax": "^1.2.4" 1664 | } 1665 | }, 1666 | "negotiator": { 1667 | "version": "0.6.1", 1668 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", 1669 | "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" 1670 | }, 1671 | "nice-try": { 1672 | "version": "1.0.5", 1673 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 1674 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" 1675 | }, 1676 | "nocache": { 1677 | "version": "2.0.0", 1678 | "resolved": "https://registry.npmjs.org/nocache/-/nocache-2.0.0.tgz", 1679 | "integrity": "sha1-ICtIAhoMTL3i34DeFaF0Q8i0OYA=" 1680 | }, 1681 | "node-emoji": { 1682 | "version": "1.8.1", 1683 | "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.8.1.tgz", 1684 | "integrity": "sha512-+ktMAh1Jwas+TnGodfCfjUbJKoANqPaJFN0z0iqh41eqD8dvguNzcitVSBSVK1pidz0AqGbLKcoVuVLRVZ/aVg==", 1685 | "requires": { 1686 | "lodash.toarray": "^4.4.0" 1687 | } 1688 | }, 1689 | "node-notifier": { 1690 | "version": "4.6.1", 1691 | "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-4.6.1.tgz", 1692 | "integrity": "sha1-BW0UJE89zBzq3+aK+c/wxUc6M/M=", 1693 | "requires": { 1694 | "cli-usage": "^0.1.1", 1695 | "growly": "^1.2.0", 1696 | "lodash.clonedeep": "^3.0.0", 1697 | "minimist": "^1.1.1", 1698 | "semver": "^5.1.0", 1699 | "shellwords": "^0.1.0", 1700 | "which": "^1.0.5" 1701 | }, 1702 | "dependencies": { 1703 | "minimist": { 1704 | "version": "1.2.0", 1705 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 1706 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" 1707 | } 1708 | } 1709 | }, 1710 | "node-pre-gyp": { 1711 | "version": "0.11.0", 1712 | "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.11.0.tgz", 1713 | "integrity": "sha512-TwWAOZb0j7e9eGaf9esRx3ZcLaE5tQ2lvYy1pb5IAaG1a2e2Kv5Lms1Y4hpj+ciXJRofIxxlt5haeQ/2ANeE0Q==", 1714 | "requires": { 1715 | "detect-libc": "^1.0.2", 1716 | "mkdirp": "^0.5.1", 1717 | "needle": "^2.2.1", 1718 | "nopt": "^4.0.1", 1719 | "npm-packlist": "^1.1.6", 1720 | "npmlog": "^4.0.2", 1721 | "rc": "^1.2.7", 1722 | "rimraf": "^2.6.1", 1723 | "semver": "^5.3.0", 1724 | "tar": "^4" 1725 | } 1726 | }, 1727 | "nopt": { 1728 | "version": "4.0.1", 1729 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", 1730 | "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", 1731 | "requires": { 1732 | "abbrev": "1", 1733 | "osenv": "^0.1.4" 1734 | } 1735 | }, 1736 | "normalize-package-data": { 1737 | "version": "2.4.2", 1738 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.2.tgz", 1739 | "integrity": "sha512-YcMnjqeoUckXTPKZSAsPjUPLxH85XotbpqK3w4RyCwdFQSU5FxxBys8buehkSfg0j9fKvV1hn7O0+8reEgkAiw==", 1740 | "requires": { 1741 | "hosted-git-info": "^2.1.4", 1742 | "is-builtin-module": "^1.0.0", 1743 | "semver": "2 || 3 || 4 || 5", 1744 | "validate-npm-package-license": "^3.0.1" 1745 | } 1746 | }, 1747 | "npm-bundled": { 1748 | "version": "1.0.5", 1749 | "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.5.tgz", 1750 | "integrity": "sha512-m/e6jgWu8/v5niCUKQi9qQl8QdeEduFA96xHDDzFGqly0OOjI7c+60KM/2sppfnUU9JJagf+zs+yGhqSOFj71g==" 1751 | }, 1752 | "npm-packlist": { 1753 | "version": "1.2.0", 1754 | "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.2.0.tgz", 1755 | "integrity": "sha512-7Mni4Z8Xkx0/oegoqlcao/JpPCPEMtUvsmB0q7mgvlMinykJLSRTYuFqoQLYgGY8biuxIeiHO+QNJKbCfljewQ==", 1756 | "requires": { 1757 | "ignore-walk": "^3.0.1", 1758 | "npm-bundled": "^1.0.1" 1759 | } 1760 | }, 1761 | "npm-run-path": { 1762 | "version": "2.0.2", 1763 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 1764 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 1765 | "requires": { 1766 | "path-key": "^2.0.0" 1767 | } 1768 | }, 1769 | "npmlog": { 1770 | "version": "4.1.2", 1771 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", 1772 | "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", 1773 | "requires": { 1774 | "are-we-there-yet": "~1.1.2", 1775 | "console-control-strings": "~1.1.0", 1776 | "gauge": "~2.7.3", 1777 | "set-blocking": "~2.0.0" 1778 | } 1779 | }, 1780 | "number-is-nan": { 1781 | "version": "1.0.1", 1782 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 1783 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" 1784 | }, 1785 | "oauth-sign": { 1786 | "version": "0.9.0", 1787 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 1788 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" 1789 | }, 1790 | "object-assign": { 1791 | "version": "4.1.1", 1792 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1793 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1794 | }, 1795 | "on-finished": { 1796 | "version": "2.3.0", 1797 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1798 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1799 | "requires": { 1800 | "ee-first": "1.1.1" 1801 | } 1802 | }, 1803 | "once": { 1804 | "version": "1.4.0", 1805 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1806 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1807 | "requires": { 1808 | "wrappy": "1" 1809 | } 1810 | }, 1811 | "os-homedir": { 1812 | "version": "1.0.2", 1813 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", 1814 | "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" 1815 | }, 1816 | "os-locale": { 1817 | "version": "2.1.0", 1818 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", 1819 | "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", 1820 | "requires": { 1821 | "execa": "^0.7.0", 1822 | "lcid": "^1.0.0", 1823 | "mem": "^1.1.0" 1824 | } 1825 | }, 1826 | "os-tmpdir": { 1827 | "version": "1.0.2", 1828 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 1829 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" 1830 | }, 1831 | "osenv": { 1832 | "version": "0.1.5", 1833 | "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", 1834 | "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", 1835 | "requires": { 1836 | "os-homedir": "^1.0.0", 1837 | "os-tmpdir": "^1.0.0" 1838 | } 1839 | }, 1840 | "p-defer": { 1841 | "version": "1.0.0", 1842 | "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", 1843 | "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" 1844 | }, 1845 | "p-finally": { 1846 | "version": "1.0.0", 1847 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 1848 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" 1849 | }, 1850 | "p-is-promise": { 1851 | "version": "2.0.0", 1852 | "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.0.0.tgz", 1853 | "integrity": "sha512-pzQPhYMCAgLAKPWD2jC3Se9fEfrD9npNos0y150EeqZll7akhEgGhTW/slB6lHku8AvYGiJ+YJ5hfHKePPgFWg==" 1854 | }, 1855 | "p-limit": { 1856 | "version": "1.3.0", 1857 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", 1858 | "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", 1859 | "requires": { 1860 | "p-try": "^1.0.0" 1861 | } 1862 | }, 1863 | "p-locate": { 1864 | "version": "2.0.0", 1865 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", 1866 | "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", 1867 | "requires": { 1868 | "p-limit": "^1.1.0" 1869 | } 1870 | }, 1871 | "p-try": { 1872 | "version": "1.0.0", 1873 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", 1874 | "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=" 1875 | }, 1876 | "parent-require": { 1877 | "version": "1.0.0", 1878 | "resolved": "https://registry.npmjs.org/parent-require/-/parent-require-1.0.0.tgz", 1879 | "integrity": "sha1-dGoWdjgIOoYLDu9nMssn7UbDKXc=" 1880 | }, 1881 | "parse-json": { 1882 | "version": "2.2.0", 1883 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", 1884 | "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", 1885 | "requires": { 1886 | "error-ex": "^1.2.0" 1887 | } 1888 | }, 1889 | "parse-passwd": { 1890 | "version": "1.0.0", 1891 | "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", 1892 | "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=" 1893 | }, 1894 | "parse5": { 1895 | "version": "3.0.3", 1896 | "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.3.tgz", 1897 | "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==", 1898 | "requires": { 1899 | "@types/node": "*" 1900 | }, 1901 | "dependencies": { 1902 | "@types/node": { 1903 | "version": "10.12.21", 1904 | "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.21.tgz", 1905 | "integrity": "sha512-CBgLNk4o3XMnqMc0rhb6lc77IwShMEglz05deDcn2lQxyXEZivfwgYJu7SMha9V5XcrP6qZuevTHV/QrN2vjKQ==" 1906 | } 1907 | } 1908 | }, 1909 | "parseurl": { 1910 | "version": "1.3.2", 1911 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", 1912 | "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" 1913 | }, 1914 | "path-exists": { 1915 | "version": "3.0.0", 1916 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 1917 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" 1918 | }, 1919 | "path-is-absolute": { 1920 | "version": "1.0.1", 1921 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1922 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 1923 | }, 1924 | "path-key": { 1925 | "version": "2.0.1", 1926 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1927 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" 1928 | }, 1929 | "path-parse": { 1930 | "version": "1.0.6", 1931 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 1932 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" 1933 | }, 1934 | "path-to-regexp": { 1935 | "version": "0.1.7", 1936 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1937 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1938 | }, 1939 | "path-type": { 1940 | "version": "1.1.0", 1941 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", 1942 | "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", 1943 | "requires": { 1944 | "graceful-fs": "^4.1.2", 1945 | "pify": "^2.0.0", 1946 | "pinkie-promise": "^2.0.0" 1947 | } 1948 | }, 1949 | "performance-now": { 1950 | "version": "2.1.0", 1951 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 1952 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 1953 | }, 1954 | "pify": { 1955 | "version": "2.3.0", 1956 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 1957 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" 1958 | }, 1959 | "pinkie": { 1960 | "version": "2.0.4", 1961 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", 1962 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" 1963 | }, 1964 | "pinkie-promise": { 1965 | "version": "2.0.1", 1966 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", 1967 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", 1968 | "requires": { 1969 | "pinkie": "^2.0.0" 1970 | } 1971 | }, 1972 | "platform": { 1973 | "version": "1.3.5", 1974 | "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.5.tgz", 1975 | "integrity": "sha512-TuvHS8AOIZNAlE77WUDiR4rySV/VMptyMfcfeoMgs4P8apaZM3JrnbzBiixKUv+XR6i+BXrQh8WAnjaSPFO65Q==" 1976 | }, 1977 | "process-nextick-args": { 1978 | "version": "2.0.0", 1979 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", 1980 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" 1981 | }, 1982 | "proxy-addr": { 1983 | "version": "2.0.4", 1984 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", 1985 | "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==", 1986 | "requires": { 1987 | "forwarded": "~0.1.2", 1988 | "ipaddr.js": "1.8.0" 1989 | } 1990 | }, 1991 | "pseudomap": { 1992 | "version": "1.0.2", 1993 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 1994 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" 1995 | }, 1996 | "psl": { 1997 | "version": "1.1.31", 1998 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz", 1999 | "integrity": "sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw==" 2000 | }, 2001 | "pump": { 2002 | "version": "3.0.0", 2003 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 2004 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 2005 | "requires": { 2006 | "end-of-stream": "^1.1.0", 2007 | "once": "^1.3.1" 2008 | } 2009 | }, 2010 | "punycode": { 2011 | "version": "2.1.1", 2012 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 2013 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 2014 | }, 2015 | "qs": { 2016 | "version": "6.5.2", 2017 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 2018 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" 2019 | }, 2020 | "range-parser": { 2021 | "version": "1.2.0", 2022 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", 2023 | "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=" 2024 | }, 2025 | "raw-body": { 2026 | "version": "2.3.3", 2027 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz", 2028 | "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==", 2029 | "requires": { 2030 | "bytes": "3.0.0", 2031 | "http-errors": "1.6.3", 2032 | "iconv-lite": "0.4.23", 2033 | "unpipe": "1.0.0" 2034 | } 2035 | }, 2036 | "rc": { 2037 | "version": "1.2.8", 2038 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 2039 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 2040 | "requires": { 2041 | "deep-extend": "^0.6.0", 2042 | "ini": "~1.3.0", 2043 | "minimist": "^1.2.0", 2044 | "strip-json-comments": "~2.0.1" 2045 | }, 2046 | "dependencies": { 2047 | "minimist": { 2048 | "version": "1.2.0", 2049 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 2050 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" 2051 | } 2052 | } 2053 | }, 2054 | "read-pkg": { 2055 | "version": "1.1.0", 2056 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", 2057 | "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", 2058 | "requires": { 2059 | "load-json-file": "^1.0.0", 2060 | "normalize-package-data": "^2.3.2", 2061 | "path-type": "^1.0.0" 2062 | } 2063 | }, 2064 | "read-pkg-up": { 2065 | "version": "1.0.1", 2066 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", 2067 | "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", 2068 | "requires": { 2069 | "find-up": "^1.0.0", 2070 | "read-pkg": "^1.0.0" 2071 | }, 2072 | "dependencies": { 2073 | "find-up": { 2074 | "version": "1.1.2", 2075 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", 2076 | "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", 2077 | "requires": { 2078 | "path-exists": "^2.0.0", 2079 | "pinkie-promise": "^2.0.0" 2080 | } 2081 | }, 2082 | "path-exists": { 2083 | "version": "2.1.0", 2084 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", 2085 | "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", 2086 | "requires": { 2087 | "pinkie-promise": "^2.0.0" 2088 | } 2089 | } 2090 | } 2091 | }, 2092 | "readable-stream": { 2093 | "version": "2.3.6", 2094 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", 2095 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", 2096 | "requires": { 2097 | "core-util-is": "~1.0.0", 2098 | "inherits": "~2.0.3", 2099 | "isarray": "~1.0.0", 2100 | "process-nextick-args": "~2.0.0", 2101 | "safe-buffer": "~5.1.1", 2102 | "string_decoder": "~1.1.1", 2103 | "util-deprecate": "~1.0.1" 2104 | } 2105 | }, 2106 | "redent": { 2107 | "version": "1.0.0", 2108 | "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", 2109 | "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", 2110 | "requires": { 2111 | "indent-string": "^2.1.0", 2112 | "strip-indent": "^1.0.1" 2113 | } 2114 | }, 2115 | "redeyed": { 2116 | "version": "2.1.1", 2117 | "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", 2118 | "integrity": "sha1-iYS1gV2ZyyIEacme7v/jiRPmzAs=", 2119 | "requires": { 2120 | "esprima": "~4.0.0" 2121 | } 2122 | }, 2123 | "referrer-policy": { 2124 | "version": "1.1.0", 2125 | "resolved": "https://registry.npmjs.org/referrer-policy/-/referrer-policy-1.1.0.tgz", 2126 | "integrity": "sha1-NXdOtzW/UPtsB46DM0tHI1AgfXk=" 2127 | }, 2128 | "reflect-metadata": { 2129 | "version": "0.1.13", 2130 | "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz", 2131 | "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" 2132 | }, 2133 | "repeating": { 2134 | "version": "2.0.1", 2135 | "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", 2136 | "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", 2137 | "requires": { 2138 | "is-finite": "^1.0.0" 2139 | } 2140 | }, 2141 | "request": { 2142 | "version": "2.88.0", 2143 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", 2144 | "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", 2145 | "requires": { 2146 | "aws-sign2": "~0.7.0", 2147 | "aws4": "^1.8.0", 2148 | "caseless": "~0.12.0", 2149 | "combined-stream": "~1.0.6", 2150 | "extend": "~3.0.2", 2151 | "forever-agent": "~0.6.1", 2152 | "form-data": "~2.3.2", 2153 | "har-validator": "~5.1.0", 2154 | "http-signature": "~1.2.0", 2155 | "is-typedarray": "~1.0.0", 2156 | "isstream": "~0.1.2", 2157 | "json-stringify-safe": "~5.0.1", 2158 | "mime-types": "~2.1.19", 2159 | "oauth-sign": "~0.9.0", 2160 | "performance-now": "^2.1.0", 2161 | "qs": "~6.5.2", 2162 | "safe-buffer": "^5.1.2", 2163 | "tough-cookie": "~2.4.3", 2164 | "tunnel-agent": "^0.6.0", 2165 | "uuid": "^3.3.2" 2166 | } 2167 | }, 2168 | "require-directory": { 2169 | "version": "2.1.1", 2170 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2171 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" 2172 | }, 2173 | "require-main-filename": { 2174 | "version": "1.0.1", 2175 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", 2176 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" 2177 | }, 2178 | "resolve": { 2179 | "version": "1.10.0", 2180 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", 2181 | "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", 2182 | "requires": { 2183 | "path-parse": "^1.0.6" 2184 | } 2185 | }, 2186 | "rimraf": { 2187 | "version": "2.6.3", 2188 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", 2189 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", 2190 | "requires": { 2191 | "glob": "^7.1.3" 2192 | } 2193 | }, 2194 | "safe-buffer": { 2195 | "version": "5.1.2", 2196 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 2197 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 2198 | }, 2199 | "safer-buffer": { 2200 | "version": "2.1.2", 2201 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 2202 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 2203 | }, 2204 | "sax": { 2205 | "version": "1.2.4", 2206 | "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", 2207 | "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" 2208 | }, 2209 | "semver": { 2210 | "version": "5.6.0", 2211 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", 2212 | "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==" 2213 | }, 2214 | "send": { 2215 | "version": "0.16.2", 2216 | "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", 2217 | "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", 2218 | "requires": { 2219 | "debug": "2.6.9", 2220 | "depd": "~1.1.2", 2221 | "destroy": "~1.0.4", 2222 | "encodeurl": "~1.0.2", 2223 | "escape-html": "~1.0.3", 2224 | "etag": "~1.8.1", 2225 | "fresh": "0.5.2", 2226 | "http-errors": "~1.6.2", 2227 | "mime": "1.4.1", 2228 | "ms": "2.0.0", 2229 | "on-finished": "~2.3.0", 2230 | "range-parser": "~1.2.0", 2231 | "statuses": "~1.4.0" 2232 | }, 2233 | "dependencies": { 2234 | "statuses": { 2235 | "version": "1.4.0", 2236 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", 2237 | "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" 2238 | } 2239 | } 2240 | }, 2241 | "serve-static": { 2242 | "version": "1.13.2", 2243 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", 2244 | "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", 2245 | "requires": { 2246 | "encodeurl": "~1.0.2", 2247 | "escape-html": "~1.0.3", 2248 | "parseurl": "~1.3.2", 2249 | "send": "0.16.2" 2250 | } 2251 | }, 2252 | "set-blocking": { 2253 | "version": "2.0.0", 2254 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 2255 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" 2256 | }, 2257 | "setprototypeof": { 2258 | "version": "1.1.0", 2259 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", 2260 | "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" 2261 | }, 2262 | "shebang-command": { 2263 | "version": "1.2.0", 2264 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 2265 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 2266 | "requires": { 2267 | "shebang-regex": "^1.0.0" 2268 | } 2269 | }, 2270 | "shebang-regex": { 2271 | "version": "1.0.0", 2272 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 2273 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" 2274 | }, 2275 | "shellwords": { 2276 | "version": "0.1.1", 2277 | "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", 2278 | "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==" 2279 | }, 2280 | "signal-exit": { 2281 | "version": "3.0.2", 2282 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 2283 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" 2284 | }, 2285 | "source-map": { 2286 | "version": "0.5.7", 2287 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", 2288 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" 2289 | }, 2290 | "source-map-support": { 2291 | "version": "0.4.18", 2292 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", 2293 | "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", 2294 | "requires": { 2295 | "source-map": "^0.5.6" 2296 | } 2297 | }, 2298 | "spdx-correct": { 2299 | "version": "3.1.0", 2300 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", 2301 | "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", 2302 | "requires": { 2303 | "spdx-expression-parse": "^3.0.0", 2304 | "spdx-license-ids": "^3.0.0" 2305 | } 2306 | }, 2307 | "spdx-exceptions": { 2308 | "version": "2.2.0", 2309 | "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", 2310 | "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==" 2311 | }, 2312 | "spdx-expression-parse": { 2313 | "version": "3.0.0", 2314 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", 2315 | "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", 2316 | "requires": { 2317 | "spdx-exceptions": "^2.1.0", 2318 | "spdx-license-ids": "^3.0.0" 2319 | } 2320 | }, 2321 | "spdx-license-ids": { 2322 | "version": "3.0.3", 2323 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.3.tgz", 2324 | "integrity": "sha512-uBIcIl3Ih6Phe3XHK1NqboJLdGfwr1UN3k6wSD1dZpmPsIkb8AGNbZYJ1fOBk834+Gxy8rpfDxrS6XLEMZMY2g==" 2325 | }, 2326 | "sprintf-js": { 2327 | "version": "1.0.3", 2328 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 2329 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" 2330 | }, 2331 | "sqlite3": { 2332 | "version": "4.0.6", 2333 | "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-4.0.6.tgz", 2334 | "integrity": "sha512-EqBXxHdKiwvNMRCgml86VTL5TK1i0IKiumnfxykX0gh6H6jaKijAXvE9O1N7+omfNSawR2fOmIyJZcfe8HYWpw==", 2335 | "requires": { 2336 | "nan": "~2.10.0", 2337 | "node-pre-gyp": "^0.11.0", 2338 | "request": "^2.87.0" 2339 | } 2340 | }, 2341 | "sshpk": { 2342 | "version": "1.16.1", 2343 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", 2344 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", 2345 | "requires": { 2346 | "asn1": "~0.2.3", 2347 | "assert-plus": "^1.0.0", 2348 | "bcrypt-pbkdf": "^1.0.0", 2349 | "dashdash": "^1.12.0", 2350 | "ecc-jsbn": "~0.1.1", 2351 | "getpass": "^0.1.1", 2352 | "jsbn": "~0.1.0", 2353 | "safer-buffer": "^2.0.2", 2354 | "tweetnacl": "~0.14.0" 2355 | } 2356 | }, 2357 | "statuses": { 2358 | "version": "1.5.0", 2359 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 2360 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 2361 | }, 2362 | "string-width": { 2363 | "version": "1.0.2", 2364 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 2365 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 2366 | "requires": { 2367 | "code-point-at": "^1.0.0", 2368 | "is-fullwidth-code-point": "^1.0.0", 2369 | "strip-ansi": "^3.0.0" 2370 | } 2371 | }, 2372 | "string_decoder": { 2373 | "version": "1.1.1", 2374 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 2375 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 2376 | "requires": { 2377 | "safe-buffer": "~5.1.0" 2378 | } 2379 | }, 2380 | "strip-ansi": { 2381 | "version": "3.0.1", 2382 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 2383 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 2384 | "requires": { 2385 | "ansi-regex": "^2.0.0" 2386 | } 2387 | }, 2388 | "strip-bom": { 2389 | "version": "3.0.0", 2390 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 2391 | "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" 2392 | }, 2393 | "strip-eof": { 2394 | "version": "1.0.0", 2395 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 2396 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" 2397 | }, 2398 | "strip-indent": { 2399 | "version": "1.0.1", 2400 | "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", 2401 | "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", 2402 | "requires": { 2403 | "get-stdin": "^4.0.1" 2404 | } 2405 | }, 2406 | "strip-json-comments": { 2407 | "version": "2.0.1", 2408 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 2409 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" 2410 | }, 2411 | "supports-color": { 2412 | "version": "5.5.0", 2413 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 2414 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 2415 | "requires": { 2416 | "has-flag": "^3.0.0" 2417 | } 2418 | }, 2419 | "supports-hyperlinks": { 2420 | "version": "1.0.1", 2421 | "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-1.0.1.tgz", 2422 | "integrity": "sha512-HHi5kVSefKaJkGYXbDuKbUGRVxqnWGn3J2e39CYcNJEfWciGq2zYtOhXLTlvrOZW1QU7VX67w7fMmWafHX9Pfw==", 2423 | "requires": { 2424 | "has-flag": "^2.0.0", 2425 | "supports-color": "^5.0.0" 2426 | }, 2427 | "dependencies": { 2428 | "has-flag": { 2429 | "version": "2.0.0", 2430 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", 2431 | "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=" 2432 | } 2433 | } 2434 | }, 2435 | "tar": { 2436 | "version": "4.4.8", 2437 | "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.8.tgz", 2438 | "integrity": "sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ==", 2439 | "requires": { 2440 | "chownr": "^1.1.1", 2441 | "fs-minipass": "^1.2.5", 2442 | "minipass": "^2.3.4", 2443 | "minizlib": "^1.1.1", 2444 | "mkdirp": "^0.5.0", 2445 | "safe-buffer": "^5.1.2", 2446 | "yallist": "^3.0.2" 2447 | } 2448 | }, 2449 | "thenify": { 2450 | "version": "3.3.0", 2451 | "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.0.tgz", 2452 | "integrity": "sha1-5p44obq+lpsBCCB5eLn2K4hgSDk=", 2453 | "requires": { 2454 | "any-promise": "^1.0.0" 2455 | } 2456 | }, 2457 | "thenify-all": { 2458 | "version": "1.6.0", 2459 | "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", 2460 | "integrity": "sha1-GhkY1ALY/D+Y+/I02wvMjMEOlyY=", 2461 | "requires": { 2462 | "thenify": ">= 3.1.0 < 4" 2463 | } 2464 | }, 2465 | "tough-cookie": { 2466 | "version": "2.4.3", 2467 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", 2468 | "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", 2469 | "requires": { 2470 | "psl": "^1.1.24", 2471 | "punycode": "^1.4.1" 2472 | }, 2473 | "dependencies": { 2474 | "punycode": { 2475 | "version": "1.4.1", 2476 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 2477 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" 2478 | } 2479 | } 2480 | }, 2481 | "trim-newlines": { 2482 | "version": "1.0.0", 2483 | "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", 2484 | "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=" 2485 | }, 2486 | "ts-node": { 2487 | "version": "3.3.0", 2488 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-3.3.0.tgz", 2489 | "integrity": "sha1-wTxqMCTjC+EYDdUwOPwgkonUv2k=", 2490 | "requires": { 2491 | "arrify": "^1.0.0", 2492 | "chalk": "^2.0.0", 2493 | "diff": "^3.1.0", 2494 | "make-error": "^1.1.1", 2495 | "minimist": "^1.2.0", 2496 | "mkdirp": "^0.5.1", 2497 | "source-map-support": "^0.4.0", 2498 | "tsconfig": "^6.0.0", 2499 | "v8flags": "^3.0.0", 2500 | "yn": "^2.0.0" 2501 | }, 2502 | "dependencies": { 2503 | "minimist": { 2504 | "version": "1.2.0", 2505 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 2506 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" 2507 | } 2508 | } 2509 | }, 2510 | "ts-node-dev": { 2511 | "version": "1.0.0-pre.32", 2512 | "resolved": "https://registry.npmjs.org/ts-node-dev/-/ts-node-dev-1.0.0-pre.32.tgz", 2513 | "integrity": "sha512-hOy2mp5ncnKAJFjuQtfHOk6tqG7FfTnuARDsV5WGSQz0ldPG9iTQLbDn+q2wwNuvjbCfsAeGWwDMJc/73EraPQ==", 2514 | "requires": { 2515 | "dateformat": "~1.0.4-1.2.3", 2516 | "dynamic-dedupe": "^0.3.0", 2517 | "filewatcher": "~3.0.0", 2518 | "minimist": "^1.1.3", 2519 | "mkdirp": "^0.5.1", 2520 | "node-notifier": "^4.0.2", 2521 | "resolve": "^1.0.0", 2522 | "rimraf": "^2.6.1", 2523 | "ts-node": "*", 2524 | "tsconfig": "^7.0.0" 2525 | }, 2526 | "dependencies": { 2527 | "minimist": { 2528 | "version": "1.2.0", 2529 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 2530 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" 2531 | }, 2532 | "tsconfig": { 2533 | "version": "7.0.0", 2534 | "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-7.0.0.tgz", 2535 | "integrity": "sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==", 2536 | "requires": { 2537 | "@types/strip-bom": "^3.0.0", 2538 | "@types/strip-json-comments": "0.0.30", 2539 | "strip-bom": "^3.0.0", 2540 | "strip-json-comments": "^2.0.0" 2541 | } 2542 | } 2543 | } 2544 | }, 2545 | "tsconfig": { 2546 | "version": "6.0.0", 2547 | "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-6.0.0.tgz", 2548 | "integrity": "sha1-aw6DdgA9evGGT434+J3QBZ/80DI=", 2549 | "requires": { 2550 | "strip-bom": "^3.0.0", 2551 | "strip-json-comments": "^2.0.0" 2552 | } 2553 | }, 2554 | "tslib": { 2555 | "version": "1.9.3", 2556 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", 2557 | "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==" 2558 | }, 2559 | "tunnel-agent": { 2560 | "version": "0.6.0", 2561 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 2562 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 2563 | "requires": { 2564 | "safe-buffer": "^5.0.1" 2565 | } 2566 | }, 2567 | "tweetnacl": { 2568 | "version": "0.14.5", 2569 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 2570 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" 2571 | }, 2572 | "type-is": { 2573 | "version": "1.6.16", 2574 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", 2575 | "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", 2576 | "requires": { 2577 | "media-typer": "0.3.0", 2578 | "mime-types": "~2.1.18" 2579 | } 2580 | }, 2581 | "typeorm": { 2582 | "version": "0.2.12", 2583 | "resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.2.12.tgz", 2584 | "integrity": "sha512-y9RWUfzE1rZ4WZM8B2Bj0l/V+EhA1yAyEVzHGD2zCM7YjVpqVg/L7HdSRO16VRaPvlz4rHH4Xt0yWfE+NXZLww==", 2585 | "requires": { 2586 | "app-root-path": "^2.0.1", 2587 | "buffer": "^5.1.0", 2588 | "chalk": "^2.3.2", 2589 | "cli-highlight": "^1.2.3", 2590 | "debug": "^3.1.0", 2591 | "dotenv": "^5.0.1", 2592 | "glob": "^7.1.2", 2593 | "js-yaml": "^3.11.0", 2594 | "mkdirp": "^0.5.1", 2595 | "reflect-metadata": "^0.1.12", 2596 | "tslib": "^1.9.0", 2597 | "xml2js": "^0.4.17", 2598 | "yargonaut": "^1.1.2", 2599 | "yargs": "^12.0.5" 2600 | }, 2601 | "dependencies": { 2602 | "debug": { 2603 | "version": "3.2.6", 2604 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 2605 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 2606 | "requires": { 2607 | "ms": "^2.1.1" 2608 | } 2609 | }, 2610 | "ms": { 2611 | "version": "2.1.1", 2612 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 2613 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 2614 | } 2615 | } 2616 | }, 2617 | "typescript": { 2618 | "version": "2.5.2", 2619 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.5.2.tgz", 2620 | "integrity": "sha1-A4qV99m7tCCxvzW6MdTFwd0//jQ=", 2621 | "dev": true 2622 | }, 2623 | "unpipe": { 2624 | "version": "1.0.0", 2625 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2626 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 2627 | }, 2628 | "uri-js": { 2629 | "version": "4.2.2", 2630 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 2631 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 2632 | "requires": { 2633 | "punycode": "^2.1.0" 2634 | } 2635 | }, 2636 | "util-deprecate": { 2637 | "version": "1.0.2", 2638 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2639 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 2640 | }, 2641 | "utils-merge": { 2642 | "version": "1.0.1", 2643 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2644 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 2645 | }, 2646 | "uuid": { 2647 | "version": "3.3.2", 2648 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", 2649 | "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" 2650 | }, 2651 | "v8flags": { 2652 | "version": "3.1.2", 2653 | "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.1.2.tgz", 2654 | "integrity": "sha512-MtivA7GF24yMPte9Rp/BWGCYQNaUj86zeYxV/x2RRJMKagImbbv3u8iJC57lNhWLPcGLJmHcHmFWkNsplbbLWw==", 2655 | "requires": { 2656 | "homedir-polyfill": "^1.0.1" 2657 | } 2658 | }, 2659 | "validate-npm-package-license": { 2660 | "version": "3.0.4", 2661 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", 2662 | "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", 2663 | "requires": { 2664 | "spdx-correct": "^3.0.0", 2665 | "spdx-expression-parse": "^3.0.0" 2666 | } 2667 | }, 2668 | "validator": { 2669 | "version": "10.4.0", 2670 | "resolved": "https://registry.npmjs.org/validator/-/validator-10.4.0.tgz", 2671 | "integrity": "sha512-Q/wBy3LB1uOyssgNlXSRmaf22NxjvDNZM2MtIQ4jaEOAB61xsh1TQxsq1CgzUMBV1lDrVMogIh8GjG1DYW0zLg==" 2672 | }, 2673 | "vary": { 2674 | "version": "1.1.2", 2675 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2676 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 2677 | }, 2678 | "verror": { 2679 | "version": "1.10.0", 2680 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 2681 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 2682 | "requires": { 2683 | "assert-plus": "^1.0.0", 2684 | "core-util-is": "1.0.2", 2685 | "extsprintf": "^1.2.0" 2686 | } 2687 | }, 2688 | "which": { 2689 | "version": "1.3.1", 2690 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 2691 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 2692 | "requires": { 2693 | "isexe": "^2.0.0" 2694 | } 2695 | }, 2696 | "which-module": { 2697 | "version": "2.0.0", 2698 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 2699 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" 2700 | }, 2701 | "wide-align": { 2702 | "version": "1.1.3", 2703 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 2704 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 2705 | "requires": { 2706 | "string-width": "^1.0.2 || 2" 2707 | } 2708 | }, 2709 | "wrap-ansi": { 2710 | "version": "2.1.0", 2711 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 2712 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 2713 | "requires": { 2714 | "string-width": "^1.0.1", 2715 | "strip-ansi": "^3.0.1" 2716 | } 2717 | }, 2718 | "wrappy": { 2719 | "version": "1.0.2", 2720 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2721 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 2722 | }, 2723 | "x-xss-protection": { 2724 | "version": "1.1.0", 2725 | "resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.1.0.tgz", 2726 | "integrity": "sha512-rx3GzJlgEeZ08MIcDsU2vY2B1QEriUKJTSiNHHUIem6eg9pzVOr2TL3Y4Pd6TMAM5D5azGjcxqI62piITBDHVg==" 2727 | }, 2728 | "xml2js": { 2729 | "version": "0.4.19", 2730 | "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz", 2731 | "integrity": "sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q==", 2732 | "requires": { 2733 | "sax": ">=0.6.0", 2734 | "xmlbuilder": "~9.0.1" 2735 | } 2736 | }, 2737 | "xmlbuilder": { 2738 | "version": "9.0.7", 2739 | "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", 2740 | "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=" 2741 | }, 2742 | "xtend": { 2743 | "version": "4.0.1", 2744 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", 2745 | "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" 2746 | }, 2747 | "y18n": { 2748 | "version": "3.2.1", 2749 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", 2750 | "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" 2751 | }, 2752 | "yallist": { 2753 | "version": "3.0.3", 2754 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", 2755 | "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==" 2756 | }, 2757 | "yargonaut": { 2758 | "version": "1.1.4", 2759 | "resolved": "https://registry.npmjs.org/yargonaut/-/yargonaut-1.1.4.tgz", 2760 | "integrity": "sha512-rHgFmbgXAAzl+1nngqOcwEljqHGG9uUZoPjsdZEs1w5JW9RXYzrSvH/u70C1JE5qFi0qjsdhnUX/dJRpWqitSA==", 2761 | "requires": { 2762 | "chalk": "^1.1.1", 2763 | "figlet": "^1.1.1", 2764 | "parent-require": "^1.0.0" 2765 | }, 2766 | "dependencies": { 2767 | "ansi-styles": { 2768 | "version": "2.2.1", 2769 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", 2770 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" 2771 | }, 2772 | "chalk": { 2773 | "version": "1.1.3", 2774 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 2775 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 2776 | "requires": { 2777 | "ansi-styles": "^2.2.1", 2778 | "escape-string-regexp": "^1.0.2", 2779 | "has-ansi": "^2.0.0", 2780 | "strip-ansi": "^3.0.0", 2781 | "supports-color": "^2.0.0" 2782 | } 2783 | }, 2784 | "supports-color": { 2785 | "version": "2.0.0", 2786 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", 2787 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" 2788 | } 2789 | } 2790 | }, 2791 | "yargs": { 2792 | "version": "12.0.5", 2793 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", 2794 | "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", 2795 | "requires": { 2796 | "cliui": "^4.0.0", 2797 | "decamelize": "^1.2.0", 2798 | "find-up": "^3.0.0", 2799 | "get-caller-file": "^1.0.1", 2800 | "os-locale": "^3.0.0", 2801 | "require-directory": "^2.1.1", 2802 | "require-main-filename": "^1.0.1", 2803 | "set-blocking": "^2.0.0", 2804 | "string-width": "^2.0.0", 2805 | "which-module": "^2.0.0", 2806 | "y18n": "^3.2.1 || ^4.0.0", 2807 | "yargs-parser": "^11.1.1" 2808 | }, 2809 | "dependencies": { 2810 | "ansi-regex": { 2811 | "version": "3.0.0", 2812 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 2813 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" 2814 | }, 2815 | "camelcase": { 2816 | "version": "5.0.0", 2817 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.0.0.tgz", 2818 | "integrity": "sha512-faqwZqnWxbxn+F1d399ygeamQNy3lPp/H9H6rNrqYh4FSVCtcY+3cub1MxA8o9mDd55mM8Aghuu/kuyYA6VTsA==" 2819 | }, 2820 | "cross-spawn": { 2821 | "version": "6.0.5", 2822 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 2823 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 2824 | "requires": { 2825 | "nice-try": "^1.0.4", 2826 | "path-key": "^2.0.1", 2827 | "semver": "^5.5.0", 2828 | "shebang-command": "^1.2.0", 2829 | "which": "^1.2.9" 2830 | } 2831 | }, 2832 | "execa": { 2833 | "version": "1.0.0", 2834 | "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", 2835 | "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", 2836 | "requires": { 2837 | "cross-spawn": "^6.0.0", 2838 | "get-stream": "^4.0.0", 2839 | "is-stream": "^1.1.0", 2840 | "npm-run-path": "^2.0.0", 2841 | "p-finally": "^1.0.0", 2842 | "signal-exit": "^3.0.0", 2843 | "strip-eof": "^1.0.0" 2844 | } 2845 | }, 2846 | "find-up": { 2847 | "version": "3.0.0", 2848 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 2849 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 2850 | "requires": { 2851 | "locate-path": "^3.0.0" 2852 | } 2853 | }, 2854 | "get-stream": { 2855 | "version": "4.1.0", 2856 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 2857 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 2858 | "requires": { 2859 | "pump": "^3.0.0" 2860 | } 2861 | }, 2862 | "invert-kv": { 2863 | "version": "2.0.0", 2864 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", 2865 | "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==" 2866 | }, 2867 | "is-fullwidth-code-point": { 2868 | "version": "2.0.0", 2869 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 2870 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 2871 | }, 2872 | "lcid": { 2873 | "version": "2.0.0", 2874 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", 2875 | "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", 2876 | "requires": { 2877 | "invert-kv": "^2.0.0" 2878 | } 2879 | }, 2880 | "locate-path": { 2881 | "version": "3.0.0", 2882 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", 2883 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", 2884 | "requires": { 2885 | "p-locate": "^3.0.0", 2886 | "path-exists": "^3.0.0" 2887 | } 2888 | }, 2889 | "mem": { 2890 | "version": "4.1.0", 2891 | "resolved": "https://registry.npmjs.org/mem/-/mem-4.1.0.tgz", 2892 | "integrity": "sha512-I5u6Q1x7wxO0kdOpYBB28xueHADYps5uty/zg936CiG8NTe5sJL8EjrCuLneuDW3PlMdZBGDIn8BirEVdovZvg==", 2893 | "requires": { 2894 | "map-age-cleaner": "^0.1.1", 2895 | "mimic-fn": "^1.0.0", 2896 | "p-is-promise": "^2.0.0" 2897 | } 2898 | }, 2899 | "os-locale": { 2900 | "version": "3.1.0", 2901 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", 2902 | "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", 2903 | "requires": { 2904 | "execa": "^1.0.0", 2905 | "lcid": "^2.0.0", 2906 | "mem": "^4.0.0" 2907 | } 2908 | }, 2909 | "p-limit": { 2910 | "version": "2.1.0", 2911 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.1.0.tgz", 2912 | "integrity": "sha512-NhURkNcrVB+8hNfLuysU8enY5xn2KXphsHBaC2YmRNTZRc7RWusw6apSpdEj3jo4CMb6W9nrF6tTnsJsJeyu6g==", 2913 | "requires": { 2914 | "p-try": "^2.0.0" 2915 | } 2916 | }, 2917 | "p-locate": { 2918 | "version": "3.0.0", 2919 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", 2920 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", 2921 | "requires": { 2922 | "p-limit": "^2.0.0" 2923 | } 2924 | }, 2925 | "p-try": { 2926 | "version": "2.0.0", 2927 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.0.0.tgz", 2928 | "integrity": "sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==" 2929 | }, 2930 | "string-width": { 2931 | "version": "2.1.1", 2932 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 2933 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 2934 | "requires": { 2935 | "is-fullwidth-code-point": "^2.0.0", 2936 | "strip-ansi": "^4.0.0" 2937 | } 2938 | }, 2939 | "strip-ansi": { 2940 | "version": "4.0.0", 2941 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 2942 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 2943 | "requires": { 2944 | "ansi-regex": "^3.0.0" 2945 | } 2946 | }, 2947 | "yargs-parser": { 2948 | "version": "11.1.1", 2949 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", 2950 | "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", 2951 | "requires": { 2952 | "camelcase": "^5.0.0", 2953 | "decamelize": "^1.2.0" 2954 | } 2955 | } 2956 | } 2957 | }, 2958 | "yargs-parser": { 2959 | "version": "8.1.0", 2960 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-8.1.0.tgz", 2961 | "integrity": "sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ==", 2962 | "requires": { 2963 | "camelcase": "^4.1.0" 2964 | } 2965 | }, 2966 | "yn": { 2967 | "version": "2.0.0", 2968 | "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", 2969 | "integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=" 2970 | } 2971 | } 2972 | } 2973 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jwt-express-typeorm", 3 | "version": "0.0.1", 4 | "description": "Awesome project developed with TypeORM.", 5 | "devDependencies": { 6 | "ts-node": "3.3.0", 7 | "@types/node": "^8.0.29", 8 | "typescript": "2.5.2" 9 | }, 10 | "dependencies": { 11 | "@types/bcryptjs": "^2.4.2", 12 | "@types/body-parser": "^1.17.0", 13 | "@types/cors": "^2.8.4", 14 | "@types/helmet": "0.0.42", 15 | "@types/jsonwebtoken": "^8.3.0", 16 | "bcryptjs": "^2.4.3", 17 | "body-parser": "^1.18.1", 18 | "class-validator": "^0.9.1", 19 | "cors": "^2.8.5", 20 | "express": "^4.15.4", 21 | "helmet": "^3.15.0", 22 | "jsonwebtoken": "^8.4.0", 23 | "reflect-metadata": "^0.1.10", 24 | "sqlite3": "^4.0.3", 25 | "ts-node-dev": "^1.0.0-pre.32", 26 | "typeorm": "0.2.12" 27 | }, 28 | "scripts": { 29 | "tsc": "tsc", 30 | "start": "set debug=* && ts-node-dev --respawn --transpileOnly ./src/index.ts", 31 | "prod": "tsc && node ./build/app.js", 32 | "migration:run": "ts-node ./node_modules/typeorm/cli.js migration:run" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | 2 | # Creating a Rest API with JWT authentication and role based authorization using TypeScript… 3 | 4 | 5 | 6 | Today, we are going to use TypeScript Express.js and TypeORM to create an enterprise level Rest API with JWT authentication and role based authorization. The objective is to create a repository that you can use as bases for your real life projects. 7 | 8 | Before we start, it is recommended that you are familiar with the following topics. You don’t need to be an expert but, if you never heard about one of those, I selected an introductory reading: 9 | 10 | **What is a Rest API and basics http response codes** 11 | [**What is REST API: a beginner’s guide** 12 | *As this is a beginner's guide I will not be using various technical jargon involved but a simple example and…*medium.com](https://medium.com/@parastripathi/what-is-rest-api-a-beginners-guide-700e4931e67c) 13 | 14 | **What is a JWT and why we use it to make stateless authentications** 15 | [**5 Easy Steps to Understanding JSON Web Tokens (JWT)** 16 | *In this article, the fundamentals of what JSON Web Tokens (JWT) are, and why they are used will be explained. JWT are…*medium.com](https://medium.com/vandium-software/5-easy-steps-to-understanding-json-web-tokens-jwt-1164c0adfcec) 17 | 18 | **What is an ORM (Object-Relational-Mapper)** 19 | [**What is an ORM and Why You Should Use it** 20 | *An introduction to Object-Relational-Mappers*blog.bitsrc.io](https://blog.bitsrc.io/what-is-an-orm-and-why-you-should-use-it-b2b6f75f5e2a) 21 | 22 | ## Why TypeORM? 23 | 24 | ![](https://cdn-images-1.medium.com/max/2000/0*10ldIs5O8Y1kXzDn.png) 25 | 26 | TypeORM allows you to write only one TypeScript Class and, with the synchronize tool, it automatically generates all SQL structure for your entity. With the class-validator package we can use the same model class to make validations. 27 | 28 | It is compatible with MySQL / MariaDB / Postgres / SQLite / Microsoft SQL Server / Oracle / sql.js / MongoDB. You can switch between those databases without having to rewrite your code. 29 | 30 | We are going to start this project with SQLite. I don’t recommend keeping it for production. But, because I don’t know what DB you are going to use, it allows us to make a generic project that you can run with just “npm install”, without having to setup a database server. 31 | 32 | ## Let’s start 33 | 34 | TypeORM has a CLI tool that allow us to generate a base application already in TypeScript. To use this tool we need first to install typeORM as a global dependency: 35 | 36 | npm install -g typeorm 37 | 38 | Now we can set up our application: 39 | 40 | typeorm init --name jwt-express-typeorm --database sqlite --express 41 | 42 | It will create an example express application already in TypeScript with TypeORM and body-parser. Let’s install those dependencies with: 43 | 44 | npm install 45 | 46 | Now, we are going to install some additional dependencies 47 | 48 | npm install -s helmet cors jsonwebtoken bcryptjs class-validator ts-node-dev 49 | 50 | After that, we are going to have the following dependencies 51 | 52 | **helmet** 53 | Help us to secure our application by setting various HTTP headers 54 | 55 | **cors** 56 | Enable cross-origin Requests 57 | 58 | **body-parser** 59 | Parses the client’s request from json into javascript objects 60 | 61 | **jsonwebtoken** 62 | Will handle the jwt operations for us 63 | 64 | **bcryptjs** 65 | Help us to hash user passwords 66 | 67 | **typeorm** 68 | The ORM we are going to use to manipulate database 69 | 70 | **reflect-metadata** 71 | allow some annotations features used with TypeORM 72 | 73 | **class-validator** 74 | A validation package that works really well with TypeORM 75 | 76 | **sqlite3** 77 | We are going to use sqlite as dev database 78 | 79 | **ts-node-dev** 80 | Automatically restarts the server when we change any file 81 | 82 | ### Installing type check dependencies 83 | 84 | Since we are working with TypeScript, it is a good idea to install @types for our dependencies. 85 | 86 | npm install -s @types/bcryptjs @types/body-parser @types/cors @types/helmet @types/jsonwebtoken 87 | 88 | After that you will be able to use autocomplete and typecheck even with the JavaScript packages. 89 | 90 | ## The src folder 91 | 92 | The TypeORM CLI created a src folder which contains all typescript files. Now we are going to modify those files to create our API. 93 | 94 | ![](https://cdn-images-1.medium.com/max/2000/1*ctZ7uPNEt8Xmknjb2OH8eA.png) 95 | 96 | ### Index 97 | 98 | The CLI already created a index.ts file as an entry point to the application. Let’s rewrite to better fit our purposes. 99 | 100 | 101 | 102 | ### The routes 103 | 104 | The CLI also created a routes.ts file. On large projects, it might not be a good idea to put all routes on the same file. We are going to create a routes/folder, with a routes/index.ts which aggregates routes from others files. 105 | 106 | **routes/auth.ts** 107 | 108 | 109 | 110 | **routes/user.ts** 111 | 112 | 113 | 114 | **routes/index.ts** 115 | 116 | 117 | 118 | To access the login route, for example, you will call: 119 | 120 | http://localhost:3000/auth/login 121 | 122 | ### Middleware 123 | 124 | As you can see, the routes call some middlewares before calling the controller. A middleware is really just a function that manipulates your request and call the next middleware. The best way to understand is to create your first middleware. 125 | 126 | **middlewares/checkJwt.ts 127 | **This middleware will be called on every route that requires a logged user. It will check if we have a valid JWT on the request header. If the token is valid, it will call the next function that will be handled by the controller. Otherwise, it will send a response with the 401 (unauthorized) status code. 128 | 129 | 130 | 131 | **middlewares/checkRole.ts** 132 | Even if a user is validly logged in, he may try to access a route that he may not have role authorization to access. This middleware will check if the logged user really have the role required to access this route. If not, respond with 401 (unauthorized) status code. Note that we made roles as an Array of strings. That is because you may need, in the future, multiple roles to access the same route. 133 | 134 | 135 | 136 | ### The config file 137 | 138 | To generate and validate a jwt token we need a secret key. We will be storing it on a config file. You can change your jwtSecret to any string you want. 139 | 140 | **config/config.ts** 141 | 142 | 143 | 144 | ### The User entity 145 | 146 | The CLI already created a “entity/User.ts” file. But we want to change the fields, add validations and create methods for hash the password. So we need to rewrite this class. 147 | 148 | **entity/User.ts** 149 | 150 | 151 | 152 | ### The Controllers 153 | 154 | The CLI also created a folder named controller. You can delete this, and create another named controllers(plural). Then we will create the auth and the user controllers. 155 | 156 | **controllers/AuthController.ts** 157 | 158 | 159 | 160 | **controllers/UserController.ts** 161 | 162 | 163 | 164 | ### A request flow through the files 165 | 166 | We wrote a lot of code and it is ok lose track of in which order each file is called. For that reason I created a simple chart that exemplifies the flow an user’s requests that requires to check a role and uses a function from userController. 167 | 168 | ![](https://cdn-images-1.medium.com/max/2116/1*cYneDhjzkAKDJBTEJ4rDog.png) 169 | 170 | ## Development and Production Scripts 171 | 172 | ![](https://cdn-images-1.medium.com/max/2428/1*l5Eb6PGvHR0AB2XZsdCLBg.png) 173 | 174 | The Node.js itself can’t run, natively, .tsfiles. For that reason is important to know the following tools. 175 | "tsc" — create a /build folder and converts all your .ts to .jsfiles. 176 | "ts-node" — allows node to run .ts projects. Not recommended for production uses. 177 | "ts-node-dev" — same as above, but allows you restart the node server every time you change a file 178 | 179 | To better setup development and production environments, we will modify the script session of the package.json. 180 | 181 | 182 | 183 | Finally, we add a last line called smigration:run. Some windows users get an error trying to run TypeORM migrations from npm. Running it directly from the node modules folder solves the problem. 184 | 185 | ## What about the first user? 186 | 187 | As you can see, even to create a new user we need to already have an ADMIN. This first user will be created by a migration process. Migrations are also very important to maintain your production database. If you are going to use TypeORM in production, I really recommend reading the migration documentation: 188 | [http://typeorm.io/#/migrations](http://typeorm.io/#/migrations) 189 | 190 | Now, let’s create our first migration 191 | 192 | typeorm migration:create -n CreateAdminUser 193 | 194 | Then, we are going to modifie the generated file: 195 | 196 | 197 | 198 | Now we start the server, so the synchronize tool can generate our database tables. 199 | 200 | npm start 201 | 202 | Now we can run the migration, to insert the first admin user. 203 | 204 | npm run migration:run 205 | 206 | Finally, your server is ready to go. Just get the Postman, or any other tool, and make some requests. 207 | 208 | The final repository can be found on GitHub: 209 | [**andregardi/jwt-express-typeorm** 210 | *Rest API with JWT authentication and role based authorization using TypeScript Express.js and TypeORM …*github.com](https://github.com/andregardi/jwt-express-typeorm) 211 | 212 | 213 | -------------------------------------------------------------------------------- /src/config/config.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | jwtSecret: "@QEGTUI" 3 | }; -------------------------------------------------------------------------------- /src/controllers/AuthController.ts: -------------------------------------------------------------------------------- 1 | import { Request, Response } from "express"; 2 | import * as jwt from "jsonwebtoken"; 3 | import { getRepository } from "typeorm"; 4 | import { validate } from "class-validator"; 5 | 6 | import { User } from "../entity/User"; 7 | import config from "../config/config"; 8 | 9 | class AuthController { 10 | static login = async (req: Request, res: Response) => { 11 | //Check if username and password are set 12 | let { username, password } = req.body; 13 | if (!(username && password)) { 14 | res.status(400).send(); 15 | } 16 | 17 | //Get user from database 18 | const userRepository = getRepository(User); 19 | let user: User; 20 | try { 21 | user = await userRepository.findOneOrFail({ where: { username } }); 22 | } catch (error) { 23 | res.status(401).send(); 24 | } 25 | 26 | //Check if encrypted password match 27 | if (!user.checkIfUnencryptedPasswordIsValid(password)) { 28 | res.status(401).send(); 29 | return; 30 | } 31 | 32 | //Sing JWT, valid for 1 hour 33 | const token = jwt.sign( 34 | { userId: user.id, username: user.username }, 35 | config.jwtSecret, 36 | { expiresIn: "1h" } 37 | ); 38 | 39 | //Send the jwt in the response 40 | res.send(token); 41 | }; 42 | 43 | static changePassword = async (req: Request, res: Response) => { 44 | //Get ID from JWT 45 | const id = res.locals.jwtPayload.userId; 46 | 47 | //Get parameters from the body 48 | const { oldPassword, newPassword } = req.body; 49 | if (!(oldPassword && newPassword)) { 50 | res.status(400).send(); 51 | } 52 | 53 | //Get user from the database 54 | const userRepository = getRepository(User); 55 | let user: User; 56 | try { 57 | user = await userRepository.findOneOrFail(id); 58 | } catch (id) { 59 | res.status(401).send(); 60 | } 61 | 62 | //Check if old password matchs 63 | if (!user.checkIfUnencryptedPasswordIsValid(oldPassword)) { 64 | res.status(401).send(); 65 | return; 66 | } 67 | 68 | //Validate de model (password lenght) 69 | user.password = newPassword; 70 | const errors = await validate(user); 71 | if (errors.length > 0) { 72 | res.status(400).send(errors); 73 | return; 74 | } 75 | //Hash the new password and save 76 | user.hashPassword(); 77 | userRepository.save(user); 78 | 79 | res.status(204).send(); 80 | }; 81 | } 82 | export default AuthController; 83 | -------------------------------------------------------------------------------- /src/controllers/UserController.ts: -------------------------------------------------------------------------------- 1 | 2 | import { Request, Response } from "express"; 3 | import { getRepository } from "typeorm"; 4 | import { validate } from "class-validator"; 5 | 6 | import { User } from "../entity/User"; 7 | 8 | class UserController{ 9 | 10 | static listAll = async (req: Request, res: Response) => { 11 | //Get users from database 12 | const userRepository = getRepository(User); 13 | const users = await userRepository.find({ 14 | select: ["id", "username", "role"] //We dont want to send the passwords on response 15 | }); 16 | 17 | //Send the users object 18 | res.send(users); 19 | }; 20 | 21 | static getOneById = async (req: Request, res: Response) => { 22 | //Get the ID from the url 23 | const id: number = req.params.id; 24 | 25 | //Get the user from database 26 | const userRepository = getRepository(User); 27 | try { 28 | const user = await userRepository.findOneOrFail(id, { 29 | select: ["id", "username", "role"] //We dont want to send the password on response 30 | }); 31 | res.send(user); 32 | } catch (error) { 33 | res.status(404).send("User not found"); 34 | } 35 | }; 36 | 37 | static newUser = async (req: Request, res: Response) => { 38 | //Get parameters from the body 39 | let { username, password, role } = req.body; 40 | let user = new User(); 41 | user.username = username; 42 | user.password = password; 43 | user.role = role; 44 | 45 | //Validade if the parameters are ok 46 | const errors = await validate(user); 47 | if (errors.length > 0) { 48 | res.status(400).send(errors); 49 | return; 50 | } 51 | 52 | //Hash the password, to securely store on DB 53 | user.hashPassword(); 54 | 55 | //Try to save. If fails, the username is already in use 56 | const userRepository = getRepository(User); 57 | try { 58 | await userRepository.save(user); 59 | } catch (e) { 60 | res.status(409).send("username already in use"); 61 | return; 62 | } 63 | 64 | //If all ok, send 201 response 65 | res.status(201).send("User created"); 66 | }; 67 | 68 | static editUser = async (req: Request, res: Response) => { 69 | //Get the ID from the url 70 | const id = req.params.id; 71 | 72 | //Get values from the body 73 | const { username, role } = req.body; 74 | 75 | //Try to find user on database 76 | const userRepository = getRepository(User); 77 | let user; 78 | try { 79 | user = await userRepository.findOneOrFail(id); 80 | } catch (error) { 81 | //If not found, send a 404 response 82 | res.status(404).send("User not found"); 83 | return; 84 | } 85 | 86 | //Validate the new values on model 87 | user.username = username; 88 | user.role = role; 89 | const errors = await validate(user); 90 | if (errors.length > 0) { 91 | res.status(400).send(errors); 92 | return; 93 | } 94 | 95 | //Try to safe, if fails, that means username already in use 96 | try { 97 | await userRepository.save(user); 98 | } catch (e) { 99 | res.status(409).send("username already in use"); 100 | return; 101 | } 102 | //After all send a 204 (no content, but accepted) response 103 | res.status(204).send(); 104 | }; 105 | 106 | static deleteUser = async (req: Request, res: Response) => { 107 | //Get the ID from the url 108 | const id = req.params.id; 109 | 110 | const userRepository = getRepository(User); 111 | let user: User; 112 | try { 113 | user = await userRepository.findOneOrFail(id); 114 | } catch (error) { 115 | res.status(404).send("User not found"); 116 | return; 117 | } 118 | userRepository.delete(id); 119 | 120 | //After all send a 204 (no content, but accepted) response 121 | res.status(204).send(); 122 | }; 123 | }; 124 | 125 | export default UserController; 126 | -------------------------------------------------------------------------------- /src/entity/User.ts: -------------------------------------------------------------------------------- 1 | import { 2 | Entity, 3 | PrimaryGeneratedColumn, 4 | Column, 5 | Unique, 6 | CreateDateColumn, 7 | UpdateDateColumn 8 | } from "typeorm"; 9 | import { Length, IsNotEmpty } from "class-validator"; 10 | import * as bcrypt from "bcryptjs"; 11 | 12 | @Entity() 13 | @Unique(["username"]) 14 | export class User { 15 | @PrimaryGeneratedColumn() 16 | id: number; 17 | 18 | @Column() 19 | @Length(4, 20) 20 | username: string; 21 | 22 | @Column() 23 | @Length(4, 100) 24 | password: string; 25 | 26 | @Column() 27 | @IsNotEmpty() 28 | role: string; 29 | 30 | @Column() 31 | @CreateDateColumn() 32 | createdAt: Date; 33 | 34 | @Column() 35 | @UpdateDateColumn() 36 | updatedAt: Date; 37 | 38 | hashPassword() { 39 | this.password = bcrypt.hashSync(this.password, 8); 40 | } 41 | 42 | checkIfUnencryptedPasswordIsValid(unencryptedPassword: string) { 43 | return bcrypt.compareSync(unencryptedPassword, this.password); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import "reflect-metadata"; 2 | import { createConnection } from "typeorm"; 3 | import * as express from "express"; 4 | import * as bodyParser from "body-parser"; 5 | import * as helmet from "helmet"; 6 | import * as cors from "cors"; 7 | import routes from "./routes"; 8 | 9 | //Connects to the Database -> then starts the express 10 | createConnection() 11 | .then(async connection => { 12 | // Create a new express application instance 13 | const app = express(); 14 | 15 | // Call midlewares 16 | app.use(cors()); 17 | app.use(helmet()); 18 | app.use(bodyParser.json()); 19 | 20 | //Set all routes from routes folder 21 | app.use("/", routes); 22 | 23 | app.listen(3000, () => { 24 | console.log("Server started on port 3000!"); 25 | }); 26 | }) 27 | .catch(error => console.log(error)); 28 | -------------------------------------------------------------------------------- /src/middlewares/checkJwt.ts: -------------------------------------------------------------------------------- 1 | import { Request, Response, NextFunction } from "express"; 2 | import * as jwt from "jsonwebtoken"; 3 | import config from "../config/config"; 4 | 5 | export const checkJwt = (req: Request, res: Response, next: NextFunction) => { 6 | //Get the jwt token from the head 7 | const token = req.headers["auth"]; 8 | let jwtPayload; 9 | 10 | //Try to validate the token and get data 11 | try { 12 | jwtPayload = jwt.verify(token, config.jwtSecret); 13 | res.locals.jwtPayload = jwtPayload; 14 | } catch (error) { 15 | //If token is not valid, respond with 401 (unauthorized) 16 | res.status(401).send(); 17 | return; 18 | } 19 | 20 | //The token is valid for 1 hour 21 | //We want to send a new token on every request 22 | const { userId, username } = jwtPayload; 23 | const newToken = jwt.sign({ userId, username }, config.jwtSecret, { 24 | expiresIn: "1h" 25 | }); 26 | res.setHeader("token", newToken); 27 | 28 | //Call the next middleware or controller 29 | next(); 30 | }; 31 | -------------------------------------------------------------------------------- /src/middlewares/checkRole.ts: -------------------------------------------------------------------------------- 1 | import { Request, Response, NextFunction } from "express"; 2 | import { getRepository } from "typeorm"; 3 | 4 | import { User } from "../entity/User"; 5 | 6 | export const checkRole = (roles: Array) => { 7 | return async (req: Request, res: Response, next: NextFunction) => { 8 | //Get the user ID from previous midleware 9 | const id = res.locals.jwtPayload.userId; 10 | 11 | //Get user role from the database 12 | const userRepository = getRepository(User); 13 | let user: User; 14 | try { 15 | user = await userRepository.findOneOrFail(id); 16 | } catch (id) { 17 | res.status(401).send(); 18 | } 19 | 20 | //Check if array of authorized roles includes the user's role 21 | if (roles.indexOf(user.role) > -1) next(); 22 | else res.status(401).send(); 23 | }; 24 | }; 25 | -------------------------------------------------------------------------------- /src/migration/1549202832774-CreateAdminUser.ts: -------------------------------------------------------------------------------- 1 | import { MigrationInterface, QueryRunner, getRepository } from "typeorm"; 2 | import { User } from "../entity/User"; 3 | 4 | export class CreateAdminUser1547919837483 implements MigrationInterface { 5 | public async up(queryRunner: QueryRunner): Promise { 6 | let user = new User(); 7 | user.username = "admin"; 8 | user.password = "admin"; 9 | user.hashPassword(); 10 | user.role = "ADMIN"; 11 | const userRepository = getRepository(User); 12 | await userRepository.save(user); 13 | } 14 | 15 | public async down(queryRunner: QueryRunner): Promise {} 16 | } 17 | -------------------------------------------------------------------------------- /src/routes/auth.ts: -------------------------------------------------------------------------------- 1 | import { Router } from "express"; 2 | import AuthController from "../controllers/AuthController"; 3 | import { checkJwt } from "../middlewares/checkJwt"; 4 | 5 | const router = Router(); 6 | //Login route 7 | router.post("/login", AuthController.login); 8 | 9 | //Change my password 10 | router.post("/change-password", [checkJwt], AuthController.changePassword); 11 | 12 | export default router; -------------------------------------------------------------------------------- /src/routes/index.ts: -------------------------------------------------------------------------------- 1 | import { Router, Request, Response } from "express"; 2 | import auth from "./auth"; 3 | import user from "./user"; 4 | 5 | const routes = Router(); 6 | 7 | routes.use("/auth", auth); 8 | routes.use("/user", user); 9 | 10 | export default routes; 11 | -------------------------------------------------------------------------------- /src/routes/user.ts: -------------------------------------------------------------------------------- 1 | import { Router } from "express"; 2 | import UserController from "../controllers/UserController"; 3 | import { checkJwt } from "../middlewares/checkJwt"; 4 | import { checkRole } from "../middlewares/checkRole"; 5 | 6 | const router = Router(); 7 | 8 | //Get all users 9 | router.get("/", [checkJwt, checkRole(["ADMIN"])], UserController.listAll); 10 | 11 | // Get one user 12 | router.get( 13 | "/:id([0-9]+)", 14 | [checkJwt, checkRole(["ADMIN"])], 15 | UserController.getOneById 16 | ); 17 | 18 | //Create a new user 19 | router.post("/", [checkJwt, checkRole(["ADMIN"])], UserController.newUser); 20 | 21 | //Edit one user 22 | router.patch( 23 | "/:id([0-9]+)", 24 | [checkJwt, checkRole(["ADMIN"])], 25 | UserController.editUser 26 | ); 27 | 28 | //Delete one user 29 | router.delete( 30 | "/:id([0-9]+)", 31 | [checkJwt, checkRole(["ADMIN"])], 32 | UserController.deleteUser 33 | ); 34 | 35 | export default router; -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": [ 4 | "es5", 5 | "es6" 6 | ], 7 | "target": "es5", 8 | "module": "commonjs", 9 | "moduleResolution": "node", 10 | "outDir": "./build", 11 | "emitDecoratorMetadata": true, 12 | "experimentalDecorators": true, 13 | "sourceMap": true 14 | } 15 | } --------------------------------------------------------------------------------