Explorer
35 | Welcome to Explorer!
Jump right in and explore our many campgrounds.
36 | Feel free to share some of your own and comment on others!
${this.description.substring(0, 20)}...
` 53 | }); 54 | 55 | 56 | 57 | CampgroundSchema.post('findOneAndDelete', async function (doc) { 58 | if (doc) { 59 | await Review.deleteMany({ 60 | _id: { 61 | $in: doc.reviews 62 | } 63 | }) 64 | } 65 | }) 66 | 67 | module.exports = mongoose.model('Campground', CampgroundSchema); -------------------------------------------------------------------------------- /models/review.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose'); 2 | const Schema = mongoose.Schema; 3 | 4 | const reviewSchema = new Schema({ 5 | body: String, 6 | rating: Number, 7 | author: { 8 | type: Schema.Types.ObjectId, 9 | ref: 'User' 10 | } 11 | }); 12 | 13 | module.exports = mongoose.model("Review", reviewSchema); 14 | 15 | -------------------------------------------------------------------------------- /models/user.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose'); 2 | const Schema = mongoose.Schema; 3 | const passportLocalMongoose = require('passport-local-mongoose'); 4 | 5 | const UserSchema = new Schema({ 6 | email: { 7 | type: String, 8 | required: true, 9 | unique: true 10 | } 11 | }); 12 | 13 | UserSchema.plugin(passportLocalMongoose); 14 | 15 | module.exports = mongoose.model('User', UserSchema); -------------------------------------------------------------------------------- /package 2.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "YelpCamp", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC" 12 | } 13 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Explorer", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.14.5", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", 10 | "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", 11 | "requires": { 12 | "@babel/highlight": "^7.14.5" 13 | } 14 | }, 15 | "@babel/helper-validator-identifier": { 16 | "version": "7.14.5", 17 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz", 18 | "integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==" 19 | }, 20 | "@babel/highlight": { 21 | "version": "7.14.5", 22 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", 23 | "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", 24 | "requires": { 25 | "@babel/helper-validator-identifier": "^7.14.5", 26 | "chalk": "^2.0.0", 27 | "js-tokens": "^4.0.0" 28 | } 29 | }, 30 | "@hapi/hoek": { 31 | "version": "9.2.0", 32 | "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.0.tgz", 33 | "integrity": "sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug==" 34 | }, 35 | "@hapi/topo": { 36 | "version": "5.1.0", 37 | "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", 38 | "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", 39 | "requires": { 40 | "@hapi/hoek": "^9.0.0" 41 | } 42 | }, 43 | "@mapbox/fusspot": { 44 | "version": "0.4.0", 45 | "resolved": "https://registry.npmjs.org/@mapbox/fusspot/-/fusspot-0.4.0.tgz", 46 | "integrity": "sha512-6sys1vUlhNCqMvJOqPEPSi0jc9tg7aJ//oG1A16H3PXoIt9whtNngD7UzBHUVTH15zunR/vRvMtGNVsogm1KzA==", 47 | "requires": { 48 | "is-plain-obj": "^1.1.0", 49 | "xtend": "^4.0.1" 50 | } 51 | }, 52 | "@mapbox/mapbox-sdk": { 53 | "version": "0.11.0", 54 | "resolved": "https://registry.npmjs.org/@mapbox/mapbox-sdk/-/mapbox-sdk-0.11.0.tgz", 55 | "integrity": "sha512-NNFctJEq2JmcIXBRoQe5QZi2XbxgFFKxnbrD4M7Mb/HRFMetb6jq7+eAwCzgb0UVQM+nXP7YCO43hINq/SuT6g==", 56 | "requires": { 57 | "@mapbox/fusspot": "^0.4.0", 58 | "@mapbox/parse-mapbox-token": "^0.2.0", 59 | "@mapbox/polyline": "^1.0.0", 60 | "eventemitter3": "^3.1.0", 61 | "form-data": "^3.0.0", 62 | "got": "^8.3.2", 63 | "is-plain-obj": "^1.1.0", 64 | "xtend": "^4.0.1" 65 | } 66 | }, 67 | "@mapbox/parse-mapbox-token": { 68 | "version": "0.2.0", 69 | "resolved": "https://registry.npmjs.org/@mapbox/parse-mapbox-token/-/parse-mapbox-token-0.2.0.tgz", 70 | "integrity": "sha512-BjeuG4sodYaoTygwXIuAWlZV6zUv4ZriYAQhXikzx+7DChycMUQ9g85E79Htat+AsBg+nStFALehlOhClYm5cQ==", 71 | "requires": { 72 | "base-64": "^0.1.0" 73 | } 74 | }, 75 | "@mapbox/polyline": { 76 | "version": "1.1.1", 77 | "resolved": "https://registry.npmjs.org/@mapbox/polyline/-/polyline-1.1.1.tgz", 78 | "integrity": "sha512-z9Sl7NYzsEIrAza658H92mc0OvpBjQwjp7Snv4xREKhsCMat7m1IKdWJMjQ5opiPYa0veMf7kCaSd1yx55AhmQ==", 79 | "requires": { 80 | "meow": "^6.1.1" 81 | } 82 | }, 83 | "@sideway/address": { 84 | "version": "4.1.2", 85 | "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.2.tgz", 86 | "integrity": "sha512-idTz8ibqWFrPU8kMirL0CoPH/A29XOzzAzpyN3zQ4kAWnzmNfFmRaoMNN6VI8ske5M73HZyhIaW4OuSFIdM4oA==", 87 | "requires": { 88 | "@hapi/hoek": "^9.0.0" 89 | } 90 | }, 91 | "@sideway/formula": { 92 | "version": "3.0.0", 93 | "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz", 94 | "integrity": "sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==" 95 | }, 96 | "@sideway/pinpoint": { 97 | "version": "2.0.0", 98 | "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz", 99 | "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==" 100 | }, 101 | "@sindresorhus/is": { 102 | "version": "0.7.0", 103 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", 104 | "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==" 105 | }, 106 | "@types/bson": { 107 | "version": "4.0.4", 108 | "resolved": "https://registry.npmjs.org/@types/bson/-/bson-4.0.4.tgz", 109 | "integrity": "sha512-awqorHvQS0DqxkHQ/FxcPX9E+H7Du51Qw/2F+5TBMSaE3G0hm+8D3eXJ6MAzFw75nE8V7xF0QvzUSdxIjJb/GA==", 110 | "requires": { 111 | "@types/node": "*" 112 | } 113 | }, 114 | "@types/minimist": { 115 | "version": "1.2.2", 116 | "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", 117 | "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==" 118 | }, 119 | "@types/mongodb": { 120 | "version": "3.6.20", 121 | "resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.20.tgz", 122 | "integrity": "sha512-WcdpPJCakFzcWWD9juKoZbRtQxKIMYF/JIAM4JrNHrMcnJL6/a2NWjXxW7fo9hxboxxkg+icff8d7+WIEvKgYQ==", 123 | "requires": { 124 | "@types/bson": "*", 125 | "@types/node": "*" 126 | } 127 | }, 128 | "@types/node": { 129 | "version": "15.14.2", 130 | "resolved": "https://registry.npmjs.org/@types/node/-/node-15.14.2.tgz", 131 | "integrity": "sha512-dvMUE/m2LbXPwlvVuzCyslTEtQ2ZwuuFClDrOQ6mp2CenCg971719PTILZ4I6bTP27xfFFc+o7x2TkLuun/MPw==" 132 | }, 133 | "@types/normalize-package-data": { 134 | "version": "2.4.1", 135 | "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", 136 | "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==" 137 | }, 138 | "accepts": { 139 | "version": "1.3.7", 140 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 141 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 142 | "requires": { 143 | "mime-types": "~2.1.24", 144 | "negotiator": "0.6.2" 145 | } 146 | }, 147 | "ansi-styles": { 148 | "version": "3.2.1", 149 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 150 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 151 | "requires": { 152 | "color-convert": "^1.9.0" 153 | } 154 | }, 155 | "append-field": { 156 | "version": "1.0.0", 157 | "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", 158 | "integrity": "sha1-HjRA6RXwsSA9I3SOeO3XubW0PlY=" 159 | }, 160 | "array-flatten": { 161 | "version": "1.1.1", 162 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 163 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 164 | }, 165 | "arrify": { 166 | "version": "1.0.1", 167 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", 168 | "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" 169 | }, 170 | "asn1.js": { 171 | "version": "5.4.1", 172 | "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", 173 | "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", 174 | "requires": { 175 | "bn.js": "^4.0.0", 176 | "inherits": "^2.0.1", 177 | "minimalistic-assert": "^1.0.0", 178 | "safer-buffer": "^2.1.0" 179 | } 180 | }, 181 | "async": { 182 | "version": "0.9.2", 183 | "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", 184 | "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" 185 | }, 186 | "asynckit": { 187 | "version": "0.4.0", 188 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 189 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 190 | }, 191 | "balanced-match": { 192 | "version": "1.0.2", 193 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 194 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 195 | }, 196 | "base-64": { 197 | "version": "0.1.0", 198 | "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", 199 | "integrity": "sha1-eAqZyE59YAJgNhURxId2E78k9rs=" 200 | }, 201 | "bl": { 202 | "version": "2.2.1", 203 | "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz", 204 | "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==", 205 | "requires": { 206 | "readable-stream": "^2.3.5", 207 | "safe-buffer": "^5.1.1" 208 | } 209 | }, 210 | "bluebird": { 211 | "version": "3.5.1", 212 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", 213 | "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" 214 | }, 215 | "bn.js": { 216 | "version": "4.12.0", 217 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 218 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" 219 | }, 220 | "body-parser": { 221 | "version": "1.19.0", 222 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 223 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 224 | "requires": { 225 | "bytes": "3.1.0", 226 | "content-type": "~1.0.4", 227 | "debug": "2.6.9", 228 | "depd": "~1.1.2", 229 | "http-errors": "1.7.2", 230 | "iconv-lite": "0.4.24", 231 | "on-finished": "~2.3.0", 232 | "qs": "6.7.0", 233 | "raw-body": "2.4.0", 234 | "type-is": "~1.6.17" 235 | }, 236 | "dependencies": { 237 | "debug": { 238 | "version": "2.6.9", 239 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 240 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 241 | "requires": { 242 | "ms": "2.0.0" 243 | } 244 | }, 245 | "ms": { 246 | "version": "2.0.0", 247 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 248 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 249 | } 250 | } 251 | }, 252 | "brace-expansion": { 253 | "version": "1.1.11", 254 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 255 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 256 | "requires": { 257 | "balanced-match": "^1.0.0", 258 | "concat-map": "0.0.1" 259 | } 260 | }, 261 | "bson": { 262 | "version": "1.1.6", 263 | "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz", 264 | "integrity": "sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==" 265 | }, 266 | "buffer-from": { 267 | "version": "1.1.1", 268 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", 269 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" 270 | }, 271 | "busboy": { 272 | "version": "0.2.14", 273 | "resolved": "https://registry.npmjs.org/busboy/-/busboy-0.2.14.tgz", 274 | "integrity": "sha1-bCpiLvz0fFe7vh4qnDetNseSVFM=", 275 | "requires": { 276 | "dicer": "0.2.5", 277 | "readable-stream": "1.1.x" 278 | }, 279 | "dependencies": { 280 | "isarray": { 281 | "version": "0.0.1", 282 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", 283 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" 284 | }, 285 | "readable-stream": { 286 | "version": "1.1.14", 287 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", 288 | "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", 289 | "requires": { 290 | "core-util-is": "~1.0.0", 291 | "inherits": "~2.0.1", 292 | "isarray": "0.0.1", 293 | "string_decoder": "~0.10.x" 294 | } 295 | }, 296 | "string_decoder": { 297 | "version": "0.10.31", 298 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 299 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" 300 | } 301 | } 302 | }, 303 | "bytes": { 304 | "version": "3.1.0", 305 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 306 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 307 | }, 308 | "cacheable-request": { 309 | "version": "2.1.4", 310 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", 311 | "integrity": "sha1-DYCIAbY0KtM8kd+dC0TcCbkeXD0=", 312 | "requires": { 313 | "clone-response": "1.0.2", 314 | "get-stream": "3.0.0", 315 | "http-cache-semantics": "3.8.1", 316 | "keyv": "3.0.0", 317 | "lowercase-keys": "1.0.0", 318 | "normalize-url": "2.0.1", 319 | "responselike": "1.0.2" 320 | }, 321 | "dependencies": { 322 | "lowercase-keys": { 323 | "version": "1.0.0", 324 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", 325 | "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=" 326 | } 327 | } 328 | }, 329 | "camelcase": { 330 | "version": "5.3.1", 331 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 332 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" 333 | }, 334 | "camelcase-keys": { 335 | "version": "6.2.2", 336 | "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", 337 | "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", 338 | "requires": { 339 | "camelcase": "^5.3.1", 340 | "map-obj": "^4.0.0", 341 | "quick-lru": "^4.0.1" 342 | } 343 | }, 344 | "chalk": { 345 | "version": "2.4.2", 346 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 347 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 348 | "requires": { 349 | "ansi-styles": "^3.2.1", 350 | "escape-string-regexp": "^1.0.5", 351 | "supports-color": "^5.3.0" 352 | } 353 | }, 354 | "clone-response": { 355 | "version": "1.0.2", 356 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 357 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 358 | "requires": { 359 | "mimic-response": "^1.0.0" 360 | } 361 | }, 362 | "cloudinary": { 363 | "version": "1.26.2", 364 | "resolved": "https://registry.npmjs.org/cloudinary/-/cloudinary-1.26.2.tgz", 365 | "integrity": "sha512-C42qx+Be+pOIbZSZ9+qYTzKpddYkXqdFioD0mf+Tp7K6Lb61rUjROAqJhsz+RP/ZOnGBHTAkhujcooAyZkx0Kw==", 366 | "requires": { 367 | "cloudinary-core": "^2.10.2", 368 | "core-js": "3.6.5", 369 | "lodash": "^4.17.11", 370 | "q": "^1.5.1" 371 | } 372 | }, 373 | "cloudinary-core": { 374 | "version": "2.11.4", 375 | "resolved": "https://registry.npmjs.org/cloudinary-core/-/cloudinary-core-2.11.4.tgz", 376 | "integrity": "sha512-F1BZczD6f5mB73D0c8gl/iuacVQQO+UhckNZxeeS9ZIVeIHbsfqwWiAZMQmIvEb7Wti/9MLU0xVwaWOak2THHA==" 377 | }, 378 | "color-convert": { 379 | "version": "1.9.3", 380 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 381 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 382 | "requires": { 383 | "color-name": "1.1.3" 384 | } 385 | }, 386 | "color-name": { 387 | "version": "1.1.3", 388 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 389 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 390 | }, 391 | "combined-stream": { 392 | "version": "1.0.8", 393 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 394 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 395 | "requires": { 396 | "delayed-stream": "~1.0.0" 397 | } 398 | }, 399 | "concat-map": { 400 | "version": "0.0.1", 401 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 402 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 403 | }, 404 | "concat-stream": { 405 | "version": "1.6.2", 406 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", 407 | "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", 408 | "requires": { 409 | "buffer-from": "^1.0.0", 410 | "inherits": "^2.0.3", 411 | "readable-stream": "^2.2.2", 412 | "typedarray": "^0.0.6" 413 | } 414 | }, 415 | "connect-flash": { 416 | "version": "0.1.1", 417 | "resolved": "https://registry.npmjs.org/connect-flash/-/connect-flash-0.1.1.tgz", 418 | "integrity": "sha1-2GMPJtlaf4UfmVax6MxnMvO2qjA=" 419 | }, 420 | "connect-mongo": { 421 | "version": "4.4.1", 422 | "resolved": "https://registry.npmjs.org/connect-mongo/-/connect-mongo-4.4.1.tgz", 423 | "integrity": "sha512-I1QUE2tSGPtIBDAL2sFqUEPspDeJOR0u4g+N41ARJZk958pncu2PBG48Ev++fnldljobpIfdafak7hSlPYarvA==", 424 | "requires": { 425 | "debug": "^4.3.1", 426 | "kruptein": "^3.0.0", 427 | "mongodb": "3.6.5" 428 | } 429 | }, 430 | "content-disposition": { 431 | "version": "0.5.3", 432 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 433 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 434 | "requires": { 435 | "safe-buffer": "5.1.2" 436 | }, 437 | "dependencies": { 438 | "safe-buffer": { 439 | "version": "5.1.2", 440 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 441 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 442 | } 443 | } 444 | }, 445 | "content-type": { 446 | "version": "1.0.4", 447 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 448 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 449 | }, 450 | "cookie": { 451 | "version": "0.4.0", 452 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 453 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 454 | }, 455 | "cookie-signature": { 456 | "version": "1.0.6", 457 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 458 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 459 | }, 460 | "core-js": { 461 | "version": "3.6.5", 462 | "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz", 463 | "integrity": "sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA==" 464 | }, 465 | "core-util-is": { 466 | "version": "1.0.2", 467 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 468 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 469 | }, 470 | "debug": { 471 | "version": "4.3.2", 472 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", 473 | "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", 474 | "requires": { 475 | "ms": "2.1.2" 476 | } 477 | }, 478 | "decamelize": { 479 | "version": "1.2.0", 480 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 481 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 482 | }, 483 | "decamelize-keys": { 484 | "version": "1.1.0", 485 | "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", 486 | "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", 487 | "requires": { 488 | "decamelize": "^1.1.0", 489 | "map-obj": "^1.0.0" 490 | }, 491 | "dependencies": { 492 | "map-obj": { 493 | "version": "1.0.1", 494 | "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", 495 | "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=" 496 | } 497 | } 498 | }, 499 | "decode-uri-component": { 500 | "version": "0.2.0", 501 | "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", 502 | "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" 503 | }, 504 | "decompress-response": { 505 | "version": "3.3.0", 506 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 507 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 508 | "requires": { 509 | "mimic-response": "^1.0.0" 510 | } 511 | }, 512 | "delayed-stream": { 513 | "version": "1.0.0", 514 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 515 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 516 | }, 517 | "denque": { 518 | "version": "1.5.0", 519 | "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz", 520 | "integrity": "sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ==" 521 | }, 522 | "depd": { 523 | "version": "1.1.2", 524 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 525 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 526 | }, 527 | "destroy": { 528 | "version": "1.0.4", 529 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 530 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 531 | }, 532 | "dicer": { 533 | "version": "0.2.5", 534 | "resolved": "https://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz", 535 | "integrity": "sha1-WZbAhrszIYyBLAkL3cCc0S+stw8=", 536 | "requires": { 537 | "readable-stream": "1.1.x", 538 | "streamsearch": "0.1.2" 539 | }, 540 | "dependencies": { 541 | "isarray": { 542 | "version": "0.0.1", 543 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", 544 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" 545 | }, 546 | "readable-stream": { 547 | "version": "1.1.14", 548 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", 549 | "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", 550 | "requires": { 551 | "core-util-is": "~1.0.0", 552 | "inherits": "~2.0.1", 553 | "isarray": "0.0.1", 554 | "string_decoder": "~0.10.x" 555 | } 556 | }, 557 | "string_decoder": { 558 | "version": "0.10.31", 559 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 560 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" 561 | } 562 | } 563 | }, 564 | "dom-serializer": { 565 | "version": "1.3.2", 566 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", 567 | "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", 568 | "requires": { 569 | "domelementtype": "^2.0.1", 570 | "domhandler": "^4.2.0", 571 | "entities": "^2.0.0" 572 | }, 573 | "dependencies": { 574 | "domhandler": { 575 | "version": "4.2.0", 576 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.0.tgz", 577 | "integrity": "sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA==", 578 | "requires": { 579 | "domelementtype": "^2.2.0" 580 | } 581 | } 582 | } 583 | }, 584 | "domelementtype": { 585 | "version": "2.2.0", 586 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", 587 | "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==" 588 | }, 589 | "domhandler": { 590 | "version": "3.3.0", 591 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-3.3.0.tgz", 592 | "integrity": "sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==", 593 | "requires": { 594 | "domelementtype": "^2.0.1" 595 | } 596 | }, 597 | "domutils": { 598 | "version": "2.7.0", 599 | "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz", 600 | "integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==", 601 | "requires": { 602 | "dom-serializer": "^1.0.1", 603 | "domelementtype": "^2.2.0", 604 | "domhandler": "^4.2.0" 605 | }, 606 | "dependencies": { 607 | "domhandler": { 608 | "version": "4.2.0", 609 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.0.tgz", 610 | "integrity": "sha512-zk7sgt970kzPks2Bf+dwT/PLzghLnsivb9CcxkvR8Mzr66Olr0Ofd8neSbglHJHaHa2MadfoSdNlKYAaafmWfA==", 611 | "requires": { 612 | "domelementtype": "^2.2.0" 613 | } 614 | } 615 | } 616 | }, 617 | "dotenv": { 618 | "version": "8.6.0", 619 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.6.0.tgz", 620 | "integrity": "sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==" 621 | }, 622 | "duplexer3": { 623 | "version": "0.1.4", 624 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 625 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" 626 | }, 627 | "ee-first": { 628 | "version": "1.1.1", 629 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 630 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 631 | }, 632 | "ejs": { 633 | "version": "3.1.6", 634 | "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.6.tgz", 635 | "integrity": "sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw==", 636 | "requires": { 637 | "jake": "^10.6.1" 638 | } 639 | }, 640 | "ejs-mate": { 641 | "version": "3.0.0", 642 | "resolved": "https://registry.npmjs.org/ejs-mate/-/ejs-mate-3.0.0.tgz", 643 | "integrity": "sha512-9dw3DkvHsUDm9ZcWveQYzIDCOCVpTtaQ7KXE+0/fmxZVtef1q2J00f4qPQvH7I12BQUza0S+5AqZAHh3M96zXA==", 644 | "requires": { 645 | "ejs": "^2.6.1" 646 | }, 647 | "dependencies": { 648 | "ejs": { 649 | "version": "2.7.4", 650 | "resolved": "https://registry.npmjs.org/ejs/-/ejs-2.7.4.tgz", 651 | "integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==" 652 | } 653 | } 654 | }, 655 | "encodeurl": { 656 | "version": "1.0.2", 657 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 658 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 659 | }, 660 | "entities": { 661 | "version": "2.2.0", 662 | "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", 663 | "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" 664 | }, 665 | "error-ex": { 666 | "version": "1.3.2", 667 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", 668 | "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", 669 | "requires": { 670 | "is-arrayish": "^0.2.1" 671 | } 672 | }, 673 | "escape-html": { 674 | "version": "1.0.3", 675 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 676 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 677 | }, 678 | "escape-string-regexp": { 679 | "version": "1.0.5", 680 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 681 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 682 | }, 683 | "etag": { 684 | "version": "1.8.1", 685 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 686 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 687 | }, 688 | "eventemitter3": { 689 | "version": "3.1.2", 690 | "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", 691 | "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==" 692 | }, 693 | "express": { 694 | "version": "4.17.1", 695 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 696 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 697 | "requires": { 698 | "accepts": "~1.3.7", 699 | "array-flatten": "1.1.1", 700 | "body-parser": "1.19.0", 701 | "content-disposition": "0.5.3", 702 | "content-type": "~1.0.4", 703 | "cookie": "0.4.0", 704 | "cookie-signature": "1.0.6", 705 | "debug": "2.6.9", 706 | "depd": "~1.1.2", 707 | "encodeurl": "~1.0.2", 708 | "escape-html": "~1.0.3", 709 | "etag": "~1.8.1", 710 | "finalhandler": "~1.1.2", 711 | "fresh": "0.5.2", 712 | "merge-descriptors": "1.0.1", 713 | "methods": "~1.1.2", 714 | "on-finished": "~2.3.0", 715 | "parseurl": "~1.3.3", 716 | "path-to-regexp": "0.1.7", 717 | "proxy-addr": "~2.0.5", 718 | "qs": "6.7.0", 719 | "range-parser": "~1.2.1", 720 | "safe-buffer": "5.1.2", 721 | "send": "0.17.1", 722 | "serve-static": "1.14.1", 723 | "setprototypeof": "1.1.1", 724 | "statuses": "~1.5.0", 725 | "type-is": "~1.6.18", 726 | "utils-merge": "1.0.1", 727 | "vary": "~1.1.2" 728 | }, 729 | "dependencies": { 730 | "debug": { 731 | "version": "2.6.9", 732 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 733 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 734 | "requires": { 735 | "ms": "2.0.0" 736 | } 737 | }, 738 | "ms": { 739 | "version": "2.0.0", 740 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 741 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 742 | }, 743 | "safe-buffer": { 744 | "version": "5.1.2", 745 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 746 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 747 | } 748 | } 749 | }, 750 | "express-mongo-sanitize": { 751 | "version": "2.1.0", 752 | "resolved": "https://registry.npmjs.org/express-mongo-sanitize/-/express-mongo-sanitize-2.1.0.tgz", 753 | "integrity": "sha512-ELGeH/Tx+kJGn3klCzSmOewfN1ezJQrkqzq83dl/K3xhd5PUbvLtiD5CiuYRmQfoZPL4rUEVjANf/YjE2BpTWQ==" 754 | }, 755 | "express-session": { 756 | "version": "1.17.2", 757 | "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.2.tgz", 758 | "integrity": "sha512-mPcYcLA0lvh7D4Oqr5aNJFMtBMKPLl++OKKxkHzZ0U0oDq1rpKBnkR5f5vCHR26VeArlTOEF9td4x5IjICksRQ==", 759 | "requires": { 760 | "cookie": "0.4.1", 761 | "cookie-signature": "1.0.6", 762 | "debug": "2.6.9", 763 | "depd": "~2.0.0", 764 | "on-headers": "~1.0.2", 765 | "parseurl": "~1.3.3", 766 | "safe-buffer": "5.2.1", 767 | "uid-safe": "~2.1.5" 768 | }, 769 | "dependencies": { 770 | "cookie": { 771 | "version": "0.4.1", 772 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", 773 | "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" 774 | }, 775 | "debug": { 776 | "version": "2.6.9", 777 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 778 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 779 | "requires": { 780 | "ms": "2.0.0" 781 | } 782 | }, 783 | "depd": { 784 | "version": "2.0.0", 785 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 786 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" 787 | }, 788 | "ms": { 789 | "version": "2.0.0", 790 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 791 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 792 | } 793 | } 794 | }, 795 | "filelist": { 796 | "version": "1.0.2", 797 | "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz", 798 | "integrity": "sha512-z7O0IS8Plc39rTCq6i6iHxk43duYOn8uFJiWSewIq0Bww1RNybVHSCjahmcC87ZqAm4OTvFzlzeGu3XAzG1ctQ==", 799 | "requires": { 800 | "minimatch": "^3.0.4" 801 | } 802 | }, 803 | "finalhandler": { 804 | "version": "1.1.2", 805 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 806 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 807 | "requires": { 808 | "debug": "2.6.9", 809 | "encodeurl": "~1.0.2", 810 | "escape-html": "~1.0.3", 811 | "on-finished": "~2.3.0", 812 | "parseurl": "~1.3.3", 813 | "statuses": "~1.5.0", 814 | "unpipe": "~1.0.0" 815 | }, 816 | "dependencies": { 817 | "debug": { 818 | "version": "2.6.9", 819 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 820 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 821 | "requires": { 822 | "ms": "2.0.0" 823 | } 824 | }, 825 | "ms": { 826 | "version": "2.0.0", 827 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 828 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 829 | } 830 | } 831 | }, 832 | "find-up": { 833 | "version": "4.1.0", 834 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", 835 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", 836 | "requires": { 837 | "locate-path": "^5.0.0", 838 | "path-exists": "^4.0.0" 839 | } 840 | }, 841 | "form-data": { 842 | "version": "3.0.1", 843 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", 844 | "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", 845 | "requires": { 846 | "asynckit": "^0.4.0", 847 | "combined-stream": "^1.0.8", 848 | "mime-types": "^2.1.12" 849 | } 850 | }, 851 | "forwarded": { 852 | "version": "0.2.0", 853 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 854 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" 855 | }, 856 | "fresh": { 857 | "version": "0.5.2", 858 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 859 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 860 | }, 861 | "from2": { 862 | "version": "2.3.0", 863 | "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", 864 | "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", 865 | "requires": { 866 | "inherits": "^2.0.1", 867 | "readable-stream": "^2.0.0" 868 | } 869 | }, 870 | "function-bind": { 871 | "version": "1.1.1", 872 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 873 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 874 | }, 875 | "generaterr": { 876 | "version": "1.5.0", 877 | "resolved": "https://registry.npmjs.org/generaterr/-/generaterr-1.5.0.tgz", 878 | "integrity": "sha1-sM62zFFk3yoGEzjMNAqGFTlcUvw=" 879 | }, 880 | "get-stream": { 881 | "version": "3.0.0", 882 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 883 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=" 884 | }, 885 | "got": { 886 | "version": "8.3.2", 887 | "resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz", 888 | "integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==", 889 | "requires": { 890 | "@sindresorhus/is": "^0.7.0", 891 | "cacheable-request": "^2.1.1", 892 | "decompress-response": "^3.3.0", 893 | "duplexer3": "^0.1.4", 894 | "get-stream": "^3.0.0", 895 | "into-stream": "^3.1.0", 896 | "is-retry-allowed": "^1.1.0", 897 | "isurl": "^1.0.0-alpha5", 898 | "lowercase-keys": "^1.0.0", 899 | "mimic-response": "^1.0.0", 900 | "p-cancelable": "^0.4.0", 901 | "p-timeout": "^2.0.1", 902 | "pify": "^3.0.0", 903 | "safe-buffer": "^5.1.1", 904 | "timed-out": "^4.0.1", 905 | "url-parse-lax": "^3.0.0", 906 | "url-to-options": "^1.0.1" 907 | } 908 | }, 909 | "hard-rejection": { 910 | "version": "2.1.0", 911 | "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", 912 | "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==" 913 | }, 914 | "has": { 915 | "version": "1.0.3", 916 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 917 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 918 | "requires": { 919 | "function-bind": "^1.1.1" 920 | } 921 | }, 922 | "has-flag": { 923 | "version": "3.0.0", 924 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 925 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 926 | }, 927 | "has-symbol-support-x": { 928 | "version": "1.4.2", 929 | "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", 930 | "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==" 931 | }, 932 | "has-to-string-tag-x": { 933 | "version": "1.4.1", 934 | "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", 935 | "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", 936 | "requires": { 937 | "has-symbol-support-x": "^1.4.1" 938 | } 939 | }, 940 | "helmet": { 941 | "version": "4.6.0", 942 | "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.6.0.tgz", 943 | "integrity": "sha512-HVqALKZlR95ROkrnesdhbbZJFi/rIVSoNq6f3jA/9u6MIbTsPh3xZwihjeI5+DO/2sOV6HMHooXcEOuwskHpTg==" 944 | }, 945 | "hosted-git-info": { 946 | "version": "2.8.9", 947 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", 948 | "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" 949 | }, 950 | "htmlparser2": { 951 | "version": "4.1.0", 952 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-4.1.0.tgz", 953 | "integrity": "sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==", 954 | "requires": { 955 | "domelementtype": "^2.0.1", 956 | "domhandler": "^3.0.0", 957 | "domutils": "^2.0.0", 958 | "entities": "^2.0.0" 959 | } 960 | }, 961 | "http-cache-semantics": { 962 | "version": "3.8.1", 963 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", 964 | "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==" 965 | }, 966 | "http-errors": { 967 | "version": "1.7.2", 968 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 969 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 970 | "requires": { 971 | "depd": "~1.1.2", 972 | "inherits": "2.0.3", 973 | "setprototypeof": "1.1.1", 974 | "statuses": ">= 1.5.0 < 2", 975 | "toidentifier": "1.0.0" 976 | }, 977 | "dependencies": { 978 | "inherits": { 979 | "version": "2.0.3", 980 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 981 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 982 | } 983 | } 984 | }, 985 | "iconv-lite": { 986 | "version": "0.4.24", 987 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 988 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 989 | "requires": { 990 | "safer-buffer": ">= 2.1.2 < 3" 991 | } 992 | }, 993 | "indent-string": { 994 | "version": "4.0.0", 995 | "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", 996 | "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" 997 | }, 998 | "inherits": { 999 | "version": "2.0.4", 1000 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1001 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1002 | }, 1003 | "into-stream": { 1004 | "version": "3.1.0", 1005 | "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", 1006 | "integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=", 1007 | "requires": { 1008 | "from2": "^2.1.1", 1009 | "p-is-promise": "^1.1.0" 1010 | } 1011 | }, 1012 | "ipaddr.js": { 1013 | "version": "1.9.1", 1014 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1015 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 1016 | }, 1017 | "is-arrayish": { 1018 | "version": "0.2.1", 1019 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 1020 | "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" 1021 | }, 1022 | "is-core-module": { 1023 | "version": "2.4.0", 1024 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz", 1025 | "integrity": "sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==", 1026 | "requires": { 1027 | "has": "^1.0.3" 1028 | } 1029 | }, 1030 | "is-object": { 1031 | "version": "1.0.2", 1032 | "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.2.tgz", 1033 | "integrity": "sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==" 1034 | }, 1035 | "is-plain-obj": { 1036 | "version": "1.1.0", 1037 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", 1038 | "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=" 1039 | }, 1040 | "is-retry-allowed": { 1041 | "version": "1.2.0", 1042 | "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", 1043 | "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==" 1044 | }, 1045 | "isarray": { 1046 | "version": "1.0.0", 1047 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1048 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 1049 | }, 1050 | "isurl": { 1051 | "version": "1.0.0", 1052 | "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", 1053 | "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", 1054 | "requires": { 1055 | "has-to-string-tag-x": "^1.2.0", 1056 | "is-object": "^1.0.1" 1057 | } 1058 | }, 1059 | "jake": { 1060 | "version": "10.8.2", 1061 | "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz", 1062 | "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==", 1063 | "requires": { 1064 | "async": "0.9.x", 1065 | "chalk": "^2.4.2", 1066 | "filelist": "^1.0.1", 1067 | "minimatch": "^3.0.4" 1068 | } 1069 | }, 1070 | "joi": { 1071 | "version": "17.4.1", 1072 | "resolved": "https://registry.npmjs.org/joi/-/joi-17.4.1.tgz", 1073 | "integrity": "sha512-gDPOwQ5sr+BUxXuPDGrC1pSNcVR/yGGcTI0aCnjYxZEa3za60K/iCQ+OFIkEHWZGVCUcUlXlFKvMmrlmxrG6UQ==", 1074 | "requires": { 1075 | "@hapi/hoek": "^9.0.0", 1076 | "@hapi/topo": "^5.0.0", 1077 | "@sideway/address": "^4.1.0", 1078 | "@sideway/formula": "^3.0.0", 1079 | "@sideway/pinpoint": "^2.0.0" 1080 | } 1081 | }, 1082 | "js-tokens": { 1083 | "version": "4.0.0", 1084 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1085 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" 1086 | }, 1087 | "json-buffer": { 1088 | "version": "3.0.0", 1089 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 1090 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" 1091 | }, 1092 | "json-parse-even-better-errors": { 1093 | "version": "2.3.1", 1094 | "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", 1095 | "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" 1096 | }, 1097 | "kareem": { 1098 | "version": "2.3.2", 1099 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", 1100 | "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" 1101 | }, 1102 | "keyv": { 1103 | "version": "3.0.0", 1104 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", 1105 | "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==", 1106 | "requires": { 1107 | "json-buffer": "3.0.0" 1108 | } 1109 | }, 1110 | "kind-of": { 1111 | "version": "6.0.3", 1112 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", 1113 | "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" 1114 | }, 1115 | "kruptein": { 1116 | "version": "3.0.0", 1117 | "resolved": "https://registry.npmjs.org/kruptein/-/kruptein-3.0.0.tgz", 1118 | "integrity": "sha512-Fh5sIb+3XI9L12GsgeBQqXVRPLB1HVViKSUkqPPOcqTEX4NwoF8Z3pEfMSl3Psd1j+QlloV8Uxxwp4gk3aFBGA==", 1119 | "requires": { 1120 | "asn1.js": "^5.4.1" 1121 | } 1122 | }, 1123 | "lines-and-columns": { 1124 | "version": "1.1.6", 1125 | "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", 1126 | "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" 1127 | }, 1128 | "locate-path": { 1129 | "version": "5.0.0", 1130 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", 1131 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", 1132 | "requires": { 1133 | "p-locate": "^4.1.0" 1134 | } 1135 | }, 1136 | "lodash": { 1137 | "version": "4.17.21", 1138 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1139 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 1140 | }, 1141 | "lowercase-keys": { 1142 | "version": "1.0.1", 1143 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 1144 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" 1145 | }, 1146 | "map-obj": { 1147 | "version": "4.2.1", 1148 | "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.2.1.tgz", 1149 | "integrity": "sha512-+WA2/1sPmDj1dlvvJmB5G6JKfY9dpn7EVBUL06+y6PoljPkh+6V1QihwxNkbcGxCRjt2b0F9K0taiCuo7MbdFQ==" 1150 | }, 1151 | "media-typer": { 1152 | "version": "0.3.0", 1153 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1154 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1155 | }, 1156 | "memory-pager": { 1157 | "version": "1.5.0", 1158 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 1159 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", 1160 | "optional": true 1161 | }, 1162 | "meow": { 1163 | "version": "6.1.1", 1164 | "resolved": "https://registry.npmjs.org/meow/-/meow-6.1.1.tgz", 1165 | "integrity": "sha512-3YffViIt2QWgTy6Pale5QpopX/IvU3LPL03jOTqp6pGj3VjesdO/U8CuHMKpnQr4shCNCM5fd5XFFvIIl6JBHg==", 1166 | "requires": { 1167 | "@types/minimist": "^1.2.0", 1168 | "camelcase-keys": "^6.2.2", 1169 | "decamelize-keys": "^1.1.0", 1170 | "hard-rejection": "^2.1.0", 1171 | "minimist-options": "^4.0.2", 1172 | "normalize-package-data": "^2.5.0", 1173 | "read-pkg-up": "^7.0.1", 1174 | "redent": "^3.0.0", 1175 | "trim-newlines": "^3.0.0", 1176 | "type-fest": "^0.13.1", 1177 | "yargs-parser": "^18.1.3" 1178 | } 1179 | }, 1180 | "merge-descriptors": { 1181 | "version": "1.0.1", 1182 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1183 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1184 | }, 1185 | "method-override": { 1186 | "version": "3.0.0", 1187 | "resolved": "https://registry.npmjs.org/method-override/-/method-override-3.0.0.tgz", 1188 | "integrity": "sha512-IJ2NNN/mSl9w3kzWB92rcdHpz+HjkxhDJWNDBqSlas+zQdP8wBiJzITPg08M/k2uVvMow7Sk41atndNtt/PHSA==", 1189 | "requires": { 1190 | "debug": "3.1.0", 1191 | "methods": "~1.1.2", 1192 | "parseurl": "~1.3.2", 1193 | "vary": "~1.1.2" 1194 | }, 1195 | "dependencies": { 1196 | "debug": { 1197 | "version": "3.1.0", 1198 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1199 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1200 | "requires": { 1201 | "ms": "2.0.0" 1202 | } 1203 | }, 1204 | "ms": { 1205 | "version": "2.0.0", 1206 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1207 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1208 | } 1209 | } 1210 | }, 1211 | "methods": { 1212 | "version": "1.1.2", 1213 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1214 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1215 | }, 1216 | "mime": { 1217 | "version": "1.6.0", 1218 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1219 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 1220 | }, 1221 | "mime-db": { 1222 | "version": "1.48.0", 1223 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", 1224 | "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==" 1225 | }, 1226 | "mime-types": { 1227 | "version": "2.1.31", 1228 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", 1229 | "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", 1230 | "requires": { 1231 | "mime-db": "1.48.0" 1232 | } 1233 | }, 1234 | "mimic-response": { 1235 | "version": "1.0.1", 1236 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 1237 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" 1238 | }, 1239 | "min-indent": { 1240 | "version": "1.0.1", 1241 | "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", 1242 | "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" 1243 | }, 1244 | "minimalistic-assert": { 1245 | "version": "1.0.1", 1246 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", 1247 | "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" 1248 | }, 1249 | "minimatch": { 1250 | "version": "3.0.4", 1251 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1252 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1253 | "requires": { 1254 | "brace-expansion": "^1.1.7" 1255 | } 1256 | }, 1257 | "minimist": { 1258 | "version": "1.2.5", 1259 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1260 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 1261 | }, 1262 | "minimist-options": { 1263 | "version": "4.1.0", 1264 | "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", 1265 | "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", 1266 | "requires": { 1267 | "arrify": "^1.0.1", 1268 | "is-plain-obj": "^1.1.0", 1269 | "kind-of": "^6.0.3" 1270 | } 1271 | }, 1272 | "mkdirp": { 1273 | "version": "0.5.5", 1274 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 1275 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 1276 | "requires": { 1277 | "minimist": "^1.2.5" 1278 | } 1279 | }, 1280 | "mongodb": { 1281 | "version": "3.6.5", 1282 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.5.tgz", 1283 | "integrity": "sha512-mQlYKw1iGbvJJejcPuyTaytq0xxlYbIoVDm2FODR+OHxyEiMR021vc32bTvamgBjCswsD54XIRwhg3yBaWqJjg==", 1284 | "requires": { 1285 | "bl": "^2.2.1", 1286 | "bson": "^1.1.4", 1287 | "denque": "^1.4.1", 1288 | "require_optional": "^1.0.1", 1289 | "safe-buffer": "^5.1.2", 1290 | "saslprep": "^1.0.0" 1291 | } 1292 | }, 1293 | "mongoose": { 1294 | "version": "5.13.2", 1295 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.13.2.tgz", 1296 | "integrity": "sha512-sBUKJGpdwZCq9102Lj6ZOaLcW4z/T4TI9aGWrNX5ZlICwChKWG4Wo5qriLImdww3H7bETPW9vYtSiADNlA4wSQ==", 1297 | "requires": { 1298 | "@types/mongodb": "^3.5.27", 1299 | "@types/node": "14.x || 15.x", 1300 | "bson": "^1.1.4", 1301 | "kareem": "2.3.2", 1302 | "mongodb": "3.6.8", 1303 | "mongoose-legacy-pluralize": "1.0.2", 1304 | "mpath": "0.8.3", 1305 | "mquery": "3.2.5", 1306 | "ms": "2.1.2", 1307 | "regexp-clone": "1.0.0", 1308 | "safe-buffer": "5.2.1", 1309 | "sift": "13.5.2", 1310 | "sliced": "1.0.1" 1311 | }, 1312 | "dependencies": { 1313 | "mongodb": { 1314 | "version": "3.6.8", 1315 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.6.8.tgz", 1316 | "integrity": "sha512-sDjJvI73WjON1vapcbyBD3Ao9/VN3TKYY8/QX9EPbs22KaCSrQ5rXo5ZZd44tWJ3wl3FlnrFZ+KyUtNH6+1ZPQ==", 1317 | "requires": { 1318 | "bl": "^2.2.1", 1319 | "bson": "^1.1.4", 1320 | "denque": "^1.4.1", 1321 | "optional-require": "^1.0.3", 1322 | "safe-buffer": "^5.1.2", 1323 | "saslprep": "^1.0.0" 1324 | } 1325 | } 1326 | } 1327 | }, 1328 | "mongoose-legacy-pluralize": { 1329 | "version": "1.0.2", 1330 | "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz", 1331 | "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ==" 1332 | }, 1333 | "mpath": { 1334 | "version": "0.8.3", 1335 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.3.tgz", 1336 | "integrity": "sha512-eb9rRvhDltXVNL6Fxd2zM9D4vKBxjVVQNLNijlj7uoXUy19zNDsIif5zR+pWmPCWNKwAtqyo4JveQm4nfD5+eA==" 1337 | }, 1338 | "mquery": { 1339 | "version": "3.2.5", 1340 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.5.tgz", 1341 | "integrity": "sha512-VjOKHHgU84wij7IUoZzFRU07IAxd5kWJaDmyUzQlbjHjyoeK5TNeeo8ZsFDtTYnSgpW6n/nMNIHvE3u8Lbrf4A==", 1342 | "requires": { 1343 | "bluebird": "3.5.1", 1344 | "debug": "3.1.0", 1345 | "regexp-clone": "^1.0.0", 1346 | "safe-buffer": "5.1.2", 1347 | "sliced": "1.0.1" 1348 | }, 1349 | "dependencies": { 1350 | "debug": { 1351 | "version": "3.1.0", 1352 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1353 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1354 | "requires": { 1355 | "ms": "2.0.0" 1356 | } 1357 | }, 1358 | "ms": { 1359 | "version": "2.0.0", 1360 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1361 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1362 | }, 1363 | "safe-buffer": { 1364 | "version": "5.1.2", 1365 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1366 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1367 | } 1368 | } 1369 | }, 1370 | "ms": { 1371 | "version": "2.1.2", 1372 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1373 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1374 | }, 1375 | "multer": { 1376 | "version": "1.4.2", 1377 | "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.2.tgz", 1378 | "integrity": "sha512-xY8pX7V+ybyUpbYMxtjM9KAiD9ixtg5/JkeKUTD6xilfDv0vzzOFcCp4Ljb1UU3tSOM3VTZtKo63OmzOrGi3Cg==", 1379 | "requires": { 1380 | "append-field": "^1.0.0", 1381 | "busboy": "^0.2.11", 1382 | "concat-stream": "^1.5.2", 1383 | "mkdirp": "^0.5.1", 1384 | "object-assign": "^4.1.1", 1385 | "on-finished": "^2.3.0", 1386 | "type-is": "^1.6.4", 1387 | "xtend": "^4.0.0" 1388 | } 1389 | }, 1390 | "multer-storage-cloudinary": { 1391 | "version": "4.0.0", 1392 | "resolved": "https://registry.npmjs.org/multer-storage-cloudinary/-/multer-storage-cloudinary-4.0.0.tgz", 1393 | "integrity": "sha512-25lm9R6o5dWrHLqLvygNX+kBOxprzpmZdnVKH4+r68WcfCt8XV6xfQaMuAg+kUE5Xmr8mJNA4gE0AcBj9FJyWA==" 1394 | }, 1395 | "negotiator": { 1396 | "version": "0.6.2", 1397 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1398 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 1399 | }, 1400 | "normalize-package-data": { 1401 | "version": "2.5.0", 1402 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", 1403 | "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", 1404 | "requires": { 1405 | "hosted-git-info": "^2.1.4", 1406 | "resolve": "^1.10.0", 1407 | "semver": "2 || 3 || 4 || 5", 1408 | "validate-npm-package-license": "^3.0.1" 1409 | } 1410 | }, 1411 | "normalize-url": { 1412 | "version": "2.0.1", 1413 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", 1414 | "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", 1415 | "requires": { 1416 | "prepend-http": "^2.0.0", 1417 | "query-string": "^5.0.1", 1418 | "sort-keys": "^2.0.0" 1419 | } 1420 | }, 1421 | "object-assign": { 1422 | "version": "4.1.1", 1423 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1424 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1425 | }, 1426 | "on-finished": { 1427 | "version": "2.3.0", 1428 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1429 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1430 | "requires": { 1431 | "ee-first": "1.1.1" 1432 | } 1433 | }, 1434 | "on-headers": { 1435 | "version": "1.0.2", 1436 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 1437 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" 1438 | }, 1439 | "optional-require": { 1440 | "version": "1.0.3", 1441 | "resolved": "https://registry.npmjs.org/optional-require/-/optional-require-1.0.3.tgz", 1442 | "integrity": "sha512-RV2Zp2MY2aeYK5G+B/Sps8lW5NHAzE5QClbFP15j+PWmP+T9PxlJXBOOLoSAdgwFvS4t0aMR4vpedMkbHfh0nA==" 1443 | }, 1444 | "p-cancelable": { 1445 | "version": "0.4.1", 1446 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", 1447 | "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==" 1448 | }, 1449 | "p-finally": { 1450 | "version": "1.0.0", 1451 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 1452 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" 1453 | }, 1454 | "p-is-promise": { 1455 | "version": "1.1.0", 1456 | "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", 1457 | "integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=" 1458 | }, 1459 | "p-limit": { 1460 | "version": "2.3.0", 1461 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 1462 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 1463 | "requires": { 1464 | "p-try": "^2.0.0" 1465 | } 1466 | }, 1467 | "p-locate": { 1468 | "version": "4.1.0", 1469 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", 1470 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", 1471 | "requires": { 1472 | "p-limit": "^2.2.0" 1473 | } 1474 | }, 1475 | "p-timeout": { 1476 | "version": "2.0.1", 1477 | "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", 1478 | "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", 1479 | "requires": { 1480 | "p-finally": "^1.0.0" 1481 | } 1482 | }, 1483 | "p-try": { 1484 | "version": "2.2.0", 1485 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 1486 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" 1487 | }, 1488 | "parse-json": { 1489 | "version": "5.2.0", 1490 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", 1491 | "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", 1492 | "requires": { 1493 | "@babel/code-frame": "^7.0.0", 1494 | "error-ex": "^1.3.1", 1495 | "json-parse-even-better-errors": "^2.3.0", 1496 | "lines-and-columns": "^1.1.6" 1497 | } 1498 | }, 1499 | "parse-srcset": { 1500 | "version": "1.0.2", 1501 | "resolved": "https://registry.npmjs.org/parse-srcset/-/parse-srcset-1.0.2.tgz", 1502 | "integrity": "sha1-8r0iH2zJcKk42IVWq8WJyqqiveE=" 1503 | }, 1504 | "parseurl": { 1505 | "version": "1.3.3", 1506 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1507 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1508 | }, 1509 | "passport": { 1510 | "version": "0.4.1", 1511 | "resolved": "https://registry.npmjs.org/passport/-/passport-0.4.1.tgz", 1512 | "integrity": "sha512-IxXgZZs8d7uFSt3eqNjM9NQ3g3uQCW5avD8mRNoXV99Yig50vjuaez6dQK2qC0kVWPRTujxY0dWgGfT09adjYg==", 1513 | "requires": { 1514 | "passport-strategy": "1.x.x", 1515 | "pause": "0.0.1" 1516 | } 1517 | }, 1518 | "passport-local": { 1519 | "version": "1.0.0", 1520 | "resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz", 1521 | "integrity": "sha1-H+YyaMkudWBmJkN+O5BmYsFbpu4=", 1522 | "requires": { 1523 | "passport-strategy": "1.x.x" 1524 | } 1525 | }, 1526 | "passport-local-mongoose": { 1527 | "version": "6.1.0", 1528 | "resolved": "https://registry.npmjs.org/passport-local-mongoose/-/passport-local-mongoose-6.1.0.tgz", 1529 | "integrity": "sha512-kxRDejpBXoPmWau1RCrmEeNYEXGG9ec4aDYjd0pFAHIEAzZ0RXKn581ISfjpHZ1zZLoCCM2pWUo4SfGHNJNwnw==", 1530 | "requires": { 1531 | "generaterr": "^1.5.0", 1532 | "passport-local": "^1.0.0", 1533 | "scmp": "^2.1.0" 1534 | } 1535 | }, 1536 | "passport-strategy": { 1537 | "version": "1.0.0", 1538 | "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", 1539 | "integrity": "sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ=" 1540 | }, 1541 | "path-exists": { 1542 | "version": "4.0.0", 1543 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1544 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" 1545 | }, 1546 | "path-parse": { 1547 | "version": "1.0.7", 1548 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1549 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" 1550 | }, 1551 | "path-to-regexp": { 1552 | "version": "0.1.7", 1553 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1554 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1555 | }, 1556 | "pause": { 1557 | "version": "0.0.1", 1558 | "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", 1559 | "integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10=" 1560 | }, 1561 | "pify": { 1562 | "version": "3.0.0", 1563 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", 1564 | "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" 1565 | }, 1566 | "postcss": { 1567 | "version": "7.0.36", 1568 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", 1569 | "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", 1570 | "requires": { 1571 | "chalk": "^2.4.2", 1572 | "source-map": "^0.6.1", 1573 | "supports-color": "^6.1.0" 1574 | }, 1575 | "dependencies": { 1576 | "supports-color": { 1577 | "version": "6.1.0", 1578 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", 1579 | "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", 1580 | "requires": { 1581 | "has-flag": "^3.0.0" 1582 | } 1583 | } 1584 | } 1585 | }, 1586 | "prepend-http": { 1587 | "version": "2.0.0", 1588 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 1589 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" 1590 | }, 1591 | "process-nextick-args": { 1592 | "version": "2.0.1", 1593 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1594 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 1595 | }, 1596 | "proxy-addr": { 1597 | "version": "2.0.7", 1598 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1599 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1600 | "requires": { 1601 | "forwarded": "0.2.0", 1602 | "ipaddr.js": "1.9.1" 1603 | } 1604 | }, 1605 | "q": { 1606 | "version": "1.5.1", 1607 | "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", 1608 | "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=" 1609 | }, 1610 | "qs": { 1611 | "version": "6.7.0", 1612 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1613 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 1614 | }, 1615 | "query-string": { 1616 | "version": "5.1.1", 1617 | "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", 1618 | "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", 1619 | "requires": { 1620 | "decode-uri-component": "^0.2.0", 1621 | "object-assign": "^4.1.0", 1622 | "strict-uri-encode": "^1.0.0" 1623 | } 1624 | }, 1625 | "quick-lru": { 1626 | "version": "4.0.1", 1627 | "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", 1628 | "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==" 1629 | }, 1630 | "random-bytes": { 1631 | "version": "1.0.0", 1632 | "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", 1633 | "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=" 1634 | }, 1635 | "range-parser": { 1636 | "version": "1.2.1", 1637 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1638 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1639 | }, 1640 | "raw-body": { 1641 | "version": "2.4.0", 1642 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1643 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1644 | "requires": { 1645 | "bytes": "3.1.0", 1646 | "http-errors": "1.7.2", 1647 | "iconv-lite": "0.4.24", 1648 | "unpipe": "1.0.0" 1649 | } 1650 | }, 1651 | "read-pkg": { 1652 | "version": "5.2.0", 1653 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", 1654 | "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", 1655 | "requires": { 1656 | "@types/normalize-package-data": "^2.4.0", 1657 | "normalize-package-data": "^2.5.0", 1658 | "parse-json": "^5.0.0", 1659 | "type-fest": "^0.6.0" 1660 | }, 1661 | "dependencies": { 1662 | "type-fest": { 1663 | "version": "0.6.0", 1664 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", 1665 | "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==" 1666 | } 1667 | } 1668 | }, 1669 | "read-pkg-up": { 1670 | "version": "7.0.1", 1671 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", 1672 | "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", 1673 | "requires": { 1674 | "find-up": "^4.1.0", 1675 | "read-pkg": "^5.2.0", 1676 | "type-fest": "^0.8.1" 1677 | }, 1678 | "dependencies": { 1679 | "type-fest": { 1680 | "version": "0.8.1", 1681 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 1682 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" 1683 | } 1684 | } 1685 | }, 1686 | "readable-stream": { 1687 | "version": "2.3.7", 1688 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 1689 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 1690 | "requires": { 1691 | "core-util-is": "~1.0.0", 1692 | "inherits": "~2.0.3", 1693 | "isarray": "~1.0.0", 1694 | "process-nextick-args": "~2.0.0", 1695 | "safe-buffer": "~5.1.1", 1696 | "string_decoder": "~1.1.1", 1697 | "util-deprecate": "~1.0.1" 1698 | }, 1699 | "dependencies": { 1700 | "safe-buffer": { 1701 | "version": "5.1.2", 1702 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1703 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1704 | } 1705 | } 1706 | }, 1707 | "redent": { 1708 | "version": "3.0.0", 1709 | "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", 1710 | "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", 1711 | "requires": { 1712 | "indent-string": "^4.0.0", 1713 | "strip-indent": "^3.0.0" 1714 | } 1715 | }, 1716 | "regexp-clone": { 1717 | "version": "1.0.0", 1718 | "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz", 1719 | "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==" 1720 | }, 1721 | "require_optional": { 1722 | "version": "1.0.1", 1723 | "resolved": "https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz", 1724 | "integrity": "sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g==", 1725 | "requires": { 1726 | "resolve-from": "^2.0.0", 1727 | "semver": "^5.1.0" 1728 | } 1729 | }, 1730 | "resolve": { 1731 | "version": "1.20.0", 1732 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", 1733 | "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", 1734 | "requires": { 1735 | "is-core-module": "^2.2.0", 1736 | "path-parse": "^1.0.6" 1737 | } 1738 | }, 1739 | "resolve-from": { 1740 | "version": "2.0.0", 1741 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz", 1742 | "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=" 1743 | }, 1744 | "responselike": { 1745 | "version": "1.0.2", 1746 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 1747 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 1748 | "requires": { 1749 | "lowercase-keys": "^1.0.0" 1750 | } 1751 | }, 1752 | "safe-buffer": { 1753 | "version": "5.2.1", 1754 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1755 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 1756 | }, 1757 | "safer-buffer": { 1758 | "version": "2.1.2", 1759 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1760 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1761 | }, 1762 | "sanitize-html": { 1763 | "version": "1.27.5", 1764 | "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.27.5.tgz", 1765 | "integrity": "sha512-M4M5iXDAUEcZKLXkmk90zSYWEtk5NH3JmojQxKxV371fnMh+x9t1rqdmXaGoyEHw3z/X/8vnFhKjGL5xFGOJ3A==", 1766 | "requires": { 1767 | "htmlparser2": "^4.1.0", 1768 | "lodash": "^4.17.15", 1769 | "parse-srcset": "^1.0.2", 1770 | "postcss": "^7.0.27" 1771 | } 1772 | }, 1773 | "saslprep": { 1774 | "version": "1.0.3", 1775 | "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", 1776 | "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", 1777 | "optional": true, 1778 | "requires": { 1779 | "sparse-bitfield": "^3.0.3" 1780 | } 1781 | }, 1782 | "scmp": { 1783 | "version": "2.1.0", 1784 | "resolved": "https://registry.npmjs.org/scmp/-/scmp-2.1.0.tgz", 1785 | "integrity": "sha512-o/mRQGk9Rcer/jEEw/yw4mwo3EU/NvYvp577/Btqrym9Qy5/MdWGBqipbALgd2lrdWTJ5/gqDusxfnQBxOxT2Q==" 1786 | }, 1787 | "semver": { 1788 | "version": "5.7.1", 1789 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1790 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 1791 | }, 1792 | "send": { 1793 | "version": "0.17.1", 1794 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1795 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1796 | "requires": { 1797 | "debug": "2.6.9", 1798 | "depd": "~1.1.2", 1799 | "destroy": "~1.0.4", 1800 | "encodeurl": "~1.0.2", 1801 | "escape-html": "~1.0.3", 1802 | "etag": "~1.8.1", 1803 | "fresh": "0.5.2", 1804 | "http-errors": "~1.7.2", 1805 | "mime": "1.6.0", 1806 | "ms": "2.1.1", 1807 | "on-finished": "~2.3.0", 1808 | "range-parser": "~1.2.1", 1809 | "statuses": "~1.5.0" 1810 | }, 1811 | "dependencies": { 1812 | "debug": { 1813 | "version": "2.6.9", 1814 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1815 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1816 | "requires": { 1817 | "ms": "2.0.0" 1818 | }, 1819 | "dependencies": { 1820 | "ms": { 1821 | "version": "2.0.0", 1822 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1823 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1824 | } 1825 | } 1826 | }, 1827 | "ms": { 1828 | "version": "2.1.1", 1829 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1830 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1831 | } 1832 | } 1833 | }, 1834 | "serve-static": { 1835 | "version": "1.14.1", 1836 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1837 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1838 | "requires": { 1839 | "encodeurl": "~1.0.2", 1840 | "escape-html": "~1.0.3", 1841 | "parseurl": "~1.3.3", 1842 | "send": "0.17.1" 1843 | } 1844 | }, 1845 | "setprototypeof": { 1846 | "version": "1.1.1", 1847 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1848 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1849 | }, 1850 | "sift": { 1851 | "version": "13.5.2", 1852 | "resolved": "https://registry.npmjs.org/sift/-/sift-13.5.2.tgz", 1853 | "integrity": "sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA==" 1854 | }, 1855 | "sliced": { 1856 | "version": "1.0.1", 1857 | "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz", 1858 | "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E=" 1859 | }, 1860 | "sort-keys": { 1861 | "version": "2.0.0", 1862 | "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", 1863 | "integrity": "sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg=", 1864 | "requires": { 1865 | "is-plain-obj": "^1.0.0" 1866 | } 1867 | }, 1868 | "source-map": { 1869 | "version": "0.6.1", 1870 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1871 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" 1872 | }, 1873 | "sparse-bitfield": { 1874 | "version": "3.0.3", 1875 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 1876 | "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", 1877 | "optional": true, 1878 | "requires": { 1879 | "memory-pager": "^1.0.2" 1880 | } 1881 | }, 1882 | "spdx-correct": { 1883 | "version": "3.1.1", 1884 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", 1885 | "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", 1886 | "requires": { 1887 | "spdx-expression-parse": "^3.0.0", 1888 | "spdx-license-ids": "^3.0.0" 1889 | } 1890 | }, 1891 | "spdx-exceptions": { 1892 | "version": "2.3.0", 1893 | "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", 1894 | "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" 1895 | }, 1896 | "spdx-expression-parse": { 1897 | "version": "3.0.1", 1898 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", 1899 | "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", 1900 | "requires": { 1901 | "spdx-exceptions": "^2.1.0", 1902 | "spdx-license-ids": "^3.0.0" 1903 | } 1904 | }, 1905 | "spdx-license-ids": { 1906 | "version": "3.0.9", 1907 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.9.tgz", 1908 | "integrity": "sha512-Ki212dKK4ogX+xDo4CtOZBVIwhsKBEfsEEcwmJfLQzirgc2jIWdzg40Unxz/HzEUqM1WFzVlQSMF9kZZ2HboLQ==" 1909 | }, 1910 | "statuses": { 1911 | "version": "1.5.0", 1912 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1913 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 1914 | }, 1915 | "streamsearch": { 1916 | "version": "0.1.2", 1917 | "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz", 1918 | "integrity": "sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo=" 1919 | }, 1920 | "strict-uri-encode": { 1921 | "version": "1.1.0", 1922 | "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", 1923 | "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=" 1924 | }, 1925 | "string_decoder": { 1926 | "version": "1.1.1", 1927 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1928 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1929 | "requires": { 1930 | "safe-buffer": "~5.1.0" 1931 | }, 1932 | "dependencies": { 1933 | "safe-buffer": { 1934 | "version": "5.1.2", 1935 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1936 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1937 | } 1938 | } 1939 | }, 1940 | "strip-indent": { 1941 | "version": "3.0.0", 1942 | "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", 1943 | "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", 1944 | "requires": { 1945 | "min-indent": "^1.0.0" 1946 | } 1947 | }, 1948 | "supports-color": { 1949 | "version": "5.5.0", 1950 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1951 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1952 | "requires": { 1953 | "has-flag": "^3.0.0" 1954 | } 1955 | }, 1956 | "timed-out": { 1957 | "version": "4.0.1", 1958 | "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", 1959 | "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=" 1960 | }, 1961 | "toidentifier": { 1962 | "version": "1.0.0", 1963 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 1964 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 1965 | }, 1966 | "trim-newlines": { 1967 | "version": "3.0.1", 1968 | "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", 1969 | "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==" 1970 | }, 1971 | "type-fest": { 1972 | "version": "0.13.1", 1973 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", 1974 | "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==" 1975 | }, 1976 | "type-is": { 1977 | "version": "1.6.18", 1978 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1979 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1980 | "requires": { 1981 | "media-typer": "0.3.0", 1982 | "mime-types": "~2.1.24" 1983 | } 1984 | }, 1985 | "typedarray": { 1986 | "version": "0.0.6", 1987 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 1988 | "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" 1989 | }, 1990 | "uid-safe": { 1991 | "version": "2.1.5", 1992 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", 1993 | "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", 1994 | "requires": { 1995 | "random-bytes": "~1.0.0" 1996 | } 1997 | }, 1998 | "unpipe": { 1999 | "version": "1.0.0", 2000 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2001 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 2002 | }, 2003 | "url-parse-lax": { 2004 | "version": "3.0.0", 2005 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 2006 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 2007 | "requires": { 2008 | "prepend-http": "^2.0.0" 2009 | } 2010 | }, 2011 | "url-to-options": { 2012 | "version": "1.0.1", 2013 | "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", 2014 | "integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k=" 2015 | }, 2016 | "util-deprecate": { 2017 | "version": "1.0.2", 2018 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2019 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 2020 | }, 2021 | "utils-merge": { 2022 | "version": "1.0.1", 2023 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2024 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 2025 | }, 2026 | "validate-npm-package-license": { 2027 | "version": "3.0.4", 2028 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", 2029 | "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", 2030 | "requires": { 2031 | "spdx-correct": "^3.0.0", 2032 | "spdx-expression-parse": "^3.0.0" 2033 | } 2034 | }, 2035 | "vary": { 2036 | "version": "1.1.2", 2037 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2038 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 2039 | }, 2040 | "xtend": { 2041 | "version": "4.0.2", 2042 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 2043 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" 2044 | }, 2045 | "yargs-parser": { 2046 | "version": "18.1.3", 2047 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", 2048 | "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", 2049 | "requires": { 2050 | "camelcase": "^5.0.0", 2051 | "decamelize": "^1.2.0" 2052 | } 2053 | } 2054 | } 2055 | } 2056 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Explorer", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "engines": { 7 | "node": "14.17.0" 8 | }, 9 | "scripts": { 10 | "test": "echo \"Error: no test specified\" && exit 1", 11 | "start": "node app.js" 12 | }, 13 | "keywords": [], 14 | "author": "", 15 | "license": "ISC", 16 | "dependencies": { 17 | "@mapbox/mapbox-sdk": "^0.11.0", 18 | "cloudinary": "^1.26.0", 19 | "connect-flash": "^0.1.1", 20 | "connect-mongo": "^4.4.1", 21 | "dotenv": "^8.6.0", 22 | "ejs": "^3.1.5", 23 | "ejs-mate": "^3.0.0", 24 | "express": "^4.17.1", 25 | "express-mongo-sanitize": "^2.1.0", 26 | "express-session": "^1.17.1", 27 | "helmet": "^4.6.0", 28 | "joi": "^17.2.1", 29 | "method-override": "^3.0.0", 30 | "mongoose": "^5.10.4", 31 | "multer": "^1.4.2", 32 | "multer-storage-cloudinary": "^4.0.0", 33 | "passport": "^0.4.1", 34 | "passport-local": "^1.0.0", 35 | "passport-local-mongoose": "^6.1.0", 36 | "sanitize-html": "^1.27.5" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /preview/Screen Shot 2021-07-12 at 3.55.08 PM (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Emory-Lin/Explorer/95ce0dfd4ae6f0c14b57dcb17e5e5488767f7906/preview/Screen Shot 2021-07-12 at 3.55.08 PM (1).png -------------------------------------------------------------------------------- /preview/Screen Shot 2021-07-12 at 3.55.08 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Emory-Lin/Explorer/95ce0dfd4ae6f0c14b57dcb17e5e5488767f7906/preview/Screen Shot 2021-07-12 at 3.55.08 PM.png -------------------------------------------------------------------------------- /preview/Screen Shot 2021-07-12 at 4.09.48 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Emory-Lin/Explorer/95ce0dfd4ae6f0c14b57dcb17e5e5488767f7906/preview/Screen Shot 2021-07-12 at 4.09.48 PM.png -------------------------------------------------------------------------------- /preview/Screen Shot 2021-07-12 at 4.10.01 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Emory-Lin/Explorer/95ce0dfd4ae6f0c14b57dcb17e5e5488767f7906/preview/Screen Shot 2021-07-12 at 4.10.01 PM.png -------------------------------------------------------------------------------- /preview/Screen Shot 2021-07-12 at 4.11.04 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Emory-Lin/Explorer/95ce0dfd4ae6f0c14b57dcb17e5e5488767f7906/preview/Screen Shot 2021-07-12 at 4.11.04 PM.png -------------------------------------------------------------------------------- /preview/Screen Shot 2021-07-12 at 4.52.22 PM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Emory-Lin/Explorer/95ce0dfd4ae6f0c14b57dcb17e5e5488767f7906/preview/Screen Shot 2021-07-12 at 4.52.22 PM.png -------------------------------------------------------------------------------- /public/javascripts/clusterMap.js: -------------------------------------------------------------------------------- 1 | mapboxgl.accessToken = mapToken; 2 | const map = new mapboxgl.Map({ 3 | container: 'cluster-map', 4 | style: 'mapbox://styles/mapbox/light-v10', 5 | center: [-103.59179687498357, 40.66995747013945], 6 | zoom: 3 7 | }); 8 | 9 | map.addControl(new mapboxgl.NavigationControl()); 10 | 11 | 12 | 13 | 14 | map.on('load', function () { 15 | // Add a new source from our GeoJSON data and 16 | // set the 'cluster' option to true. GL-JS will 17 | // add the point_count property to your source data. 18 | map.addSource('campgrounds', { 19 | type: 'geojson', 20 | // Point to GeoJSON data. This example visualizes all M1.0+ earthquakes 21 | // from 12/22/15 to 1/21/16 as logged by USGS' Earthquake hazards program. 22 | data: campgrounds, 23 | cluster: true, 24 | clusterMaxZoom: 14, // Max zoom to cluster points on 25 | clusterRadius: 50 // Radius of each cluster when clustering points (defaults to 50) 26 | }); 27 | 28 | map.addLayer({ 29 | id: 'clusters', 30 | type: 'circle', 31 | source: 'campgrounds', 32 | filter: ['has', 'point_count'], 33 | paint: { 34 | // Use step expressions (https://docs.mapbox.com/mapbox-gl-js/style-spec/#expressions-step) 35 | // with three steps to implement three types of circles: 36 | // * Blue, 20px circles when point count is less than 100 37 | // * Yellow, 30px circles when point count is between 100 and 750 38 | // * Pink, 40px circles when point count is greater than or equal to 750 39 | 'circle-color': [ 40 | 'step', 41 | ['get', 'point_count'], 42 | '#00BCD4', 43 | 10, 44 | '#2196F3', 45 | 30, 46 | '#3F51B5' 47 | ], 48 | 'circle-radius': [ 49 | 'step', 50 | ['get', 'point_count'], 51 | 15, 52 | 10, 53 | 20, 54 | 30, 55 | 25 56 | ] 57 | } 58 | }); 59 | 60 | map.addLayer({ 61 | id: 'cluster-count', 62 | type: 'symbol', 63 | source: 'campgrounds', 64 | filter: ['has', 'point_count'], 65 | layout: { 66 | 'text-field': '{point_count_abbreviated}', 67 | 'text-font': ['DIN Offc Pro Medium', 'Arial Unicode MS Bold'], 68 | 'text-size': 12 69 | } 70 | }); 71 | 72 | map.addLayer({ 73 | id: 'unclustered-point', 74 | type: 'circle', 75 | source: 'campgrounds', 76 | filter: ['!', ['has', 'point_count']], 77 | paint: { 78 | 'circle-color': '#11b4da', 79 | 'circle-radius': 4, 80 | 'circle-stroke-width': 1, 81 | 'circle-stroke-color': '#fff' 82 | } 83 | }); 84 | 85 | // inspect a cluster on click 86 | map.on('click', 'clusters', function (e) { 87 | const features = map.queryRenderedFeatures(e.point, { 88 | layers: ['clusters'] 89 | }); 90 | const clusterId = features[0].properties.cluster_id; 91 | map.getSource('campgrounds').getClusterExpansionZoom( 92 | clusterId, 93 | function (err, zoom) { 94 | if (err) return; 95 | 96 | map.easeTo({ 97 | center: features[0].geometry.coordinates, 98 | zoom: zoom 99 | }); 100 | } 101 | ); 102 | }); 103 | 104 | // When a click event occurs on a feature in 105 | // the unclustered-point layer, open a popup at 106 | // the location of the feature, with 107 | // description HTML from its properties. 108 | map.on('click', 'unclustered-point', function (e) { 109 | const { popUpMarkup } = e.features[0].properties; 110 | const coordinates = e.features[0].geometry.coordinates.slice(); 111 | 112 | // Ensure that if the map is zoomed out such that 113 | // multiple copies of the feature are visible, the 114 | // popup appears over the copy being pointed to. 115 | while (Math.abs(e.lngLat.lng - coordinates[0]) > 180) { 116 | coordinates[0] += e.lngLat.lng > coordinates[0] ? 360 : -360; 117 | } 118 | 119 | new mapboxgl.Popup() 120 | .setLngLat(coordinates) 121 | .setHTML(popUpMarkup) 122 | .addTo(map); 123 | }); 124 | 125 | map.on('mouseenter', 'clusters', function () { 126 | map.getCanvas().style.cursor = 'pointer'; 127 | }); 128 | map.on('mouseleave', 'clusters', function () { 129 | map.getCanvas().style.cursor = ''; 130 | }); 131 | }); 132 | 133 | -------------------------------------------------------------------------------- /public/javascripts/showPageMap.js: -------------------------------------------------------------------------------- 1 | mapboxgl.accessToken = mapToken; 2 | const map = new mapboxgl.Map({ 3 | container: 'map', 4 | style: 'mapbox://styles/mapbox/light-v10', // stylesheet location 5 | center: campground.geometry.coordinates, // starting position [lng, lat] 6 | zoom: 10 // starting zoom 7 | }); 8 | 9 | map.addControl(new mapboxgl.NavigationControl()); 10 | 11 | 12 | new mapboxgl.Marker() 13 | .setLngLat(campground.geometry.coordinates) 14 | .setPopup( 15 | new mapboxgl.Popup({ offset: 25 }) 16 | .setHTML( 17 | `${campground.location}
` 18 | ) 19 | ) 20 | .addTo(map) 21 | 22 | -------------------------------------------------------------------------------- /public/javascripts/validateForms.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | 'use strict' 3 | 4 | bsCustomFileInput.init() 5 | 6 | // Fetch all the forms we want to apply custom Bootstrap validation styles to 7 | const forms = document.querySelectorAll('.validated-form') 8 | 9 | // Loop over them and prevent submission 10 | Array.from(forms) 11 | .forEach(function (form) { 12 | form.addEventListener('submit', function (event) { 13 | if (!form.checkValidity()) { 14 | event.preventDefault() 15 | event.stopPropagation() 16 | } 17 | 18 | form.classList.add('was-validated') 19 | }, false) 20 | }) 21 | })() -------------------------------------------------------------------------------- /public/stylesheets/app.css: -------------------------------------------------------------------------------- 1 | #cluster-map { 2 | width: 100%; 3 | height: 500px; 4 | } 5 | 6 | #map { 7 | width: 100%; 8 | height: 300px; 9 | } 10 | 11 | body { 12 | font-family: 'Indie Flower', cursive; 13 | height: 100vh; 14 | background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 15 | url("https://images.unsplash.com/photo-1625915471329-8375a3202953?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2990&q=80"); 16 | background-size: cover; 17 | background-position: center; 18 | text-shadow: 0 0.05rem 0.1rem rgba(0, 0, 0, 0.5); 19 | box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.5); 20 | background-attachment: fixed; 21 | } -------------------------------------------------------------------------------- /public/stylesheets/home.css: -------------------------------------------------------------------------------- 1 | body { 2 | height: 100vh; 3 | font-family: 'Indie Flower', cursive; 4 | background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 5 | url("https://images.unsplash.com/photo-1625993254667-a6b8dc27e531?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3150&q=80"); 6 | background-size: cover; 7 | background-position: center; 8 | text-shadow: 0 0.05rem 0.1rem rgba(0, 0, 0, 0.5); 9 | box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.5); 10 | } 11 | .cover-container { 12 | max-width: 60vw; 13 | } 14 | 15 | .nav-link { 16 | padding: 0.25rem 0; 17 | font-weight: 700; 18 | color: rgba(255,255,255,0.5); 19 | margin-left: 1rem; 20 | border-bottom: 0.25rem solid transparent; 21 | } 22 | 23 | .nav-link:hover{ 24 | color: rgba(255,255,255,0.5); 25 | border-bottom-color:rgba(255,255,255,0.5); 26 | } 27 | 28 | .nav-link.active { 29 | color: white; 30 | border-bottom-color:white; 31 | 32 | } 33 | 34 | .btn-secondary, .btn-secondary:hover{ 35 | color: #333; 36 | text-shadow: none; 37 | } -------------------------------------------------------------------------------- /public/stylesheets/stars.css: -------------------------------------------------------------------------------- 1 | .starability-result { 2 | position: relative; 3 | width: 150px; 4 | height: 30px; 5 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII="); 6 | font-size: 0.1em; 7 | color: transparent; 8 | } 9 | 10 | .starability-result:after { 11 | content: ' '; 12 | position: absolute; 13 | left: 0; 14 | height: 30px; 15 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII="); 16 | background-position: 0 -30px; 17 | } 18 | 19 | .starability-result[data-rating="5"]::after { 20 | width: 150px; 21 | } 22 | 23 | .starability-result[data-rating="4"]::after { 24 | width: 120px; 25 | } 26 | 27 | .starability-result[data-rating="3"]::after { 28 | width: 90px; 29 | } 30 | 31 | .starability-result[data-rating="2"]::after { 32 | width: 60px; 33 | } 34 | 35 | .starability-result[data-rating="1"]::after { 36 | width: 30px; 37 | } 38 | 39 | @media screen and (-webkit-min-device-pixel-ratio: 2), screen and (min-resolution: 192dpi) { 40 | .starability-result { 41 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAB4CAMAAACZ62E6AAABAlBMVEUAAACZmZmampr2vSObm5v/yiufn5+ampr1viP1viSZmZn2viOZmZmampqampr2viSampqampqcnJz5vyScnJz3wSf/wyn/xiujo6Oqqqr/0C/1vSOampr2viP2viOampr2viP2vST2viOampqampqampr1vyP3viSampr2vyT4vyX3viSbm5ubm5v5wCT8xSmgoKCampqampr3vyb2wiWenp72viOampqZmZmampr2viP2viP1viSampqbm5v2vyT3viObm5v4vyadnZ34wSSbm5v2viSZmZn2viP2vST2viP2viT1viOZmZn2viT2viX3viT3vyb2vyOZmZn1vSOZmZlNN+fKAAAAVHRSTlMA9uz4PQwS8O7r5+fTw4yMelw2MB0dFRELBgbS+/Hfu7uxqKWdg4N7ZmZMPi8pKRgPs0w7Nhb14drKw6Gck21tXkNDIyMZ1rDLycTBtaqVknlfV0sGP8ZwAAADW0lEQVRYw9zWvYqDQBSG4TPDoCAqKhYKQgoVLFaIgZCkiCBBUqVazv3fyu4aEXWdM85Uy779A+LP58AfTQgw73AwtxFiZIwbxMbUfuB3H4b49YNfZrbGodoI52+cm9hH9sbZwwAXOFbo2zjDsSzWxnecuuvaM8MpdtbEPs7y9azF5phZWrjERaWOPdpLbB81cICrgv3W4mvMLbU6RmFQeA5u5HhFEEbHLdWLsMxvHJXxW16Goh+ZqPyny1Az5j79SsCJoWHsBNAxQ9sNF26bWFuMC8v1LY+mmeTadjaqtaNnnXoxWBcde1nNWnzdb68xrOqvu22/MTzuPutujpJ122NvluSb8tTWk85CclDZQwLS0oa2TQpEKacsJy0kSJaQOKJxROKKxhWJ7zS+k9ijsUdim8Y2ZWNUFBP4pMKfOv8onX9WrsI5gd3VVLXtatxcuU0znGUHCUAS2DgrS6mT6hTzrXEjfIZj5Dk2xKkihqm4wKlQfQRqalhUP9UHo3FIPAG/Et44JVLsDDf0JHmB3OEByOwZES8hSAsviGjBdh3ylh6plmMnW4IyAUVJWcE/76vTell1EIaiMBwIAcWBA9GC0lIdKFXQQUsHVVCklN7ojf3+z3JOxYqK2TH555+K6CJJQtRbr9XtDmCnjH0AX9Va8J+liIMvDtRsCk2pEs6hKVexR2g7KuDihwt5a9MfprY0fkLXU9ZmFLpoJolN6GXKWWfZx0tHCocwKJSxC22ItYUEjmBUJHFjfYz1xQxlfaLiZsBExq2IPtbkNbLtOwwuGgjTLkH43mYtSzam7+1Bsr3nm5uExBQUozEh9V7N7uvmwZcqdpm0C6vJW63bZEuXtbrV2zpDzhrpYLBWMnY1mjV7JWFtMio7zbWniWFxvHnWm1yGxXmOPXP+L3YV2ysjnNhaZNeMcHPvuL27BMnVMaujljBAYyje4niH4g2ONyh+4PiB4gOODyjWcKxh1gZBNoJjEY4R/BLhF4IDEQ4QPBoEoyxH4+bxrUsHyxwxQlg0WHXqYifVLmo67cKY/UtaXFxBV26TLjuHrkp8BPJTMij1xQejdkgO24nf7dBOCRcbzQuNOR9Qs64GzzrfQa8It2oFAA6Zrga9xEeq1KHmLUHIiCAWInsg1x/MLqkMsItF8QAAAABJRU5ErkJggg=="); 42 | background-size: 30px auto; 43 | } 44 | .starability-result:after { 45 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAB4CAMAAACZ62E6AAABAlBMVEUAAACZmZmampr2vSObm5v/yiufn5+ampr1viP1viSZmZn2viOZmZmampqampr2viSampqampqcnJz5vyScnJz3wSf/wyn/xiujo6Oqqqr/0C/1vSOampr2viP2viOampr2viP2vST2viOampqampqampr1vyP3viSampr2vyT4vyX3viSbm5ubm5v5wCT8xSmgoKCampqampr3vyb2wiWenp72viOampqZmZmampr2viP2viP1viSampqbm5v2vyT3viObm5v4vyadnZ34wSSbm5v2viSZmZn2viP2vST2viP2viT1viOZmZn2viT2viX3viT3vyb2vyOZmZn1vSOZmZlNN+fKAAAAVHRSTlMA9uz4PQwS8O7r5+fTw4yMelw2MB0dFRELBgbS+/Hfu7uxqKWdg4N7ZmZMPi8pKRgPs0w7Nhb14drKw6Gck21tXkNDIyMZ1rDLycTBtaqVknlfV0sGP8ZwAAADW0lEQVRYw9zWvYqDQBSG4TPDoCAqKhYKQgoVLFaIgZCkiCBBUqVazv3fyu4aEXWdM85Uy779A+LP58AfTQgw73AwtxFiZIwbxMbUfuB3H4b49YNfZrbGodoI52+cm9hH9sbZwwAXOFbo2zjDsSzWxnecuuvaM8MpdtbEPs7y9azF5phZWrjERaWOPdpLbB81cICrgv3W4mvMLbU6RmFQeA5u5HhFEEbHLdWLsMxvHJXxW16Goh+ZqPyny1Az5j79SsCJoWHsBNAxQ9sNF26bWFuMC8v1LY+mmeTadjaqtaNnnXoxWBcde1nNWnzdb68xrOqvu22/MTzuPutujpJ122NvluSb8tTWk85CclDZQwLS0oa2TQpEKacsJy0kSJaQOKJxROKKxhWJ7zS+k9ijsUdim8Y2ZWNUFBP4pMKfOv8onX9WrsI5gd3VVLXtatxcuU0znGUHCUAS2DgrS6mT6hTzrXEjfIZj5Dk2xKkihqm4wKlQfQRqalhUP9UHo3FIPAG/Et44JVLsDDf0JHmB3OEByOwZES8hSAsviGjBdh3ylh6plmMnW4IyAUVJWcE/76vTell1EIaiMBwIAcWBA9GC0lIdKFXQQUsHVVCklN7ojf3+z3JOxYqK2TH555+K6CJJQtRbr9XtDmCnjH0AX9Va8J+liIMvDtRsCk2pEs6hKVexR2g7KuDihwt5a9MfprY0fkLXU9ZmFLpoJolN6GXKWWfZx0tHCocwKJSxC22ItYUEjmBUJHFjfYz1xQxlfaLiZsBExq2IPtbkNbLtOwwuGgjTLkH43mYtSzam7+1Bsr3nm5uExBQUozEh9V7N7uvmwZcqdpm0C6vJW63bZEuXtbrV2zpDzhrpYLBWMnY1mjV7JWFtMio7zbWniWFxvHnWm1yGxXmOPXP+L3YV2ysjnNhaZNeMcHPvuL27BMnVMaujljBAYyje4niH4g2ONyh+4PiB4gOODyjWcKxh1gZBNoJjEY4R/BLhF4IDEQ4QPBoEoyxH4+bxrUsHyxwxQlg0WHXqYifVLmo67cKY/UtaXFxBV26TLjuHrkp8BPJTMij1xQejdkgO24nf7dBOCRcbzQuNOR9Qs64GzzrfQa8It2oFAA6Zrga9xEeq1KHmLUHIiCAWInsg1x/MLqkMsItF8QAAAABJRU5ErkJggg=="); 46 | background-size: 30px auto; 47 | } 48 | } 49 | 50 | .starability-basic { 51 | display: block; 52 | position: relative; 53 | width: 150px; 54 | min-height: 60px; 55 | padding: 0; 56 | border: none; 57 | } 58 | 59 | .starability-basic > input { 60 | position: absolute; 61 | margin-right: -100%; 62 | opacity: 0; 63 | } 64 | 65 | .starability-basic > input:checked ~ label, 66 | .starability-basic > input:focus ~ label { 67 | background-position: 0 0; 68 | } 69 | 70 | .starability-basic > input:checked + label, 71 | .starability-basic > input:focus + label { 72 | background-position: 0 -30px; 73 | } 74 | 75 | .starability-basic > input[disabled]:hover + label { 76 | cursor: default; 77 | } 78 | 79 | .starability-basic > input:not([disabled]):hover ~ label { 80 | background-position: 0 0; 81 | } 82 | 83 | .starability-basic > input:not([disabled]):hover + label { 84 | background-position: 0 -30px; 85 | } 86 | 87 | .starability-basic > input:not([disabled]):hover + label::before { 88 | opacity: 1; 89 | } 90 | 91 | .starability-basic > input:focus + label { 92 | outline: 1px dotted #999; 93 | } 94 | 95 | .starability-basic .starability-focus-ring { 96 | position: absolute; 97 | left: 0; 98 | width: 100%; 99 | height: 30px; 100 | outline: 2px dotted #999; 101 | pointer-events: none; 102 | opacity: 0; 103 | } 104 | 105 | .starability-basic > .input-no-rate:focus ~ .starability-focus-ring { 106 | opacity: 1; 107 | } 108 | 109 | .starability-basic > label { 110 | position: relative; 111 | display: inline-block; 112 | float: left; 113 | width: 30px; 114 | height: 30px; 115 | font-size: 0.1em; 116 | color: transparent; 117 | cursor: pointer; 118 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII="); 119 | background-repeat: no-repeat; 120 | background-position: 0 -30px; 121 | } 122 | 123 | .starability-basic > label::before { 124 | content: ''; 125 | position: absolute; 126 | display: block; 127 | height: 30px; 128 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII="); 129 | background-position: 0 30px; 130 | pointer-events: none; 131 | opacity: 0; 132 | } 133 | 134 | .starability-basic > label:nth-of-type(5)::before { 135 | width: 120px; 136 | left: -120px; 137 | } 138 | 139 | .starability-basic > label:nth-of-type(4)::before { 140 | width: 90px; 141 | left: -90px; 142 | } 143 | 144 | .starability-basic > label:nth-of-type(3)::before { 145 | width: 60px; 146 | left: -60px; 147 | } 148 | 149 | .starability-basic > label:nth-of-type(2)::before { 150 | width: 30px; 151 | left: -30px; 152 | } 153 | 154 | .starability-basic > label:nth-of-type(1)::before { 155 | width: 0px; 156 | left: 0px; 157 | } 158 | 159 | @media screen and (-webkit-min-device-pixel-ratio: 2), screen and (min-resolution: 192dpi) { 160 | .starability-basic > label { 161 | background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAB4CAMAAACZ62E6AAABAlBMVEUAAACZmZmampr2vSObm5v/yiufn5+ampr1viP1viSZmZn2viOZmZmampqampr2viSampqampqcnJz5vyScnJz3wSf/wyn/xiujo6Oqqqr/0C/1vSOampr2viP2viOampr2viP2vST2viOampqampqampr1vyP3viSampr2vyT4vyX3viSbm5ubm5v5wCT8xSmgoKCampqampr3vyb2wiWenp72viOampqZmZmampr2viP2viP1viSampqbm5v2vyT3viObm5v4vyadnZ34wSSbm5v2viSZmZn2viP2vST2viP2viT1viOZmZn2viT2viX3viT3vyb2vyOZmZn1vSOZmZlNN+fKAAAAVHRSTlMA9uz4PQwS8O7r5+fTw4yMelw2MB0dFRELBgbS+/Hfu7uxqKWdg4N7ZmZMPi8pKRgPs0w7Nhb14drKw6Gck21tXkNDIyMZ1rDLycTBtaqVknlfV0sGP8ZwAAADW0lEQVRYw9zWvYqDQBSG4TPDoCAqKhYKQgoVLFaIgZCkiCBBUqVazv3fyu4aEXWdM85Uy779A+LP58AfTQgw73AwtxFiZIwbxMbUfuB3H4b49YNfZrbGodoI52+cm9hH9sbZwwAXOFbo2zjDsSzWxnecuuvaM8MpdtbEPs7y9azF5phZWrjERaWOPdpLbB81cICrgv3W4mvMLbU6RmFQeA5u5HhFEEbHLdWLsMxvHJXxW16Goh+ZqPyny1Az5j79SsCJoWHsBNAxQ9sNF26bWFuMC8v1LY+mmeTadjaqtaNnnXoxWBcde1nNWnzdb68xrOqvu22/MTzuPutujpJ122NvluSb8tTWk85CclDZQwLS0oa2TQpEKacsJy0kSJaQOKJxROKKxhWJ7zS+k9ijsUdim8Y2ZWNUFBP4pMKfOv8onX9WrsI5gd3VVLXtatxcuU0znGUHCUAS2DgrS6mT6hTzrXEjfIZj5Dk2xKkihqm4wKlQfQRqalhUP9UHo3FIPAG/Et44JVLsDDf0JHmB3OEByOwZES8hSAsviGjBdh3ylh6plmMnW4IyAUVJWcE/76vTell1EIaiMBwIAcWBA9GC0lIdKFXQQUsHVVCklN7ojf3+z3JOxYqK2TH555+K6CJJQtRbr9XtDmCnjH0AX9Va8J+liIMvDtRsCk2pEs6hKVexR2g7KuDihwt5a9MfprY0fkLXU9ZmFLpoJolN6GXKWWfZx0tHCocwKJSxC22ItYUEjmBUJHFjfYz1xQxlfaLiZsBExq2IPtbkNbLtOwwuGgjTLkH43mYtSzam7+1Bsr3nm5uExBQUozEh9V7N7uvmwZcqdpm0C6vJW63bZEuXtbrV2zpDzhrpYLBWMnY1mjV7JWFtMio7zbWniWFxvHnWm1yGxXmOPXP+L3YV2ysjnNhaZNeMcHPvuL27BMnVMaujljBAYyje4niH4g2ONyh+4PiB4gOODyjWcKxh1gZBNoJjEY4R/BLhF4IDEQ4QPBoEoyxH4+bxrUsHyxwxQlg0WHXqYifVLmo67cKY/UtaXFxBV26TLjuHrkp8BPJTMij1xQejdkgO24nf7dBOCRcbzQuNOR9Qs64GzzrfQa8It2oFAA6Zrga9xEeq1KHmLUHIiCAWInsg1x/MLqkMsItF8QAAAABJRU5ErkJggg=="); 162 | background-size: 30px auto; 163 | } 164 | } 165 | 166 | @media screen and (-ms-high-contrast: active) { 167 | .starability-basic { 168 | width: auto; 169 | } 170 | .starability-basic > input { 171 | position: static; 172 | margin-right: 0; 173 | opacity: 1; 174 | } 175 | .starability-basic .input-no-rate { 176 | display: none; 177 | } 178 | .starability-basic > label { 179 | display: inline; 180 | float: none; 181 | width: auto; 182 | height: auto; 183 | font-size: 1em; 184 | color: inherit; 185 | background: none; 186 | } 187 | .starability-basic > label::before, .starability-basic > label::after { 188 | display: none; 189 | } 190 | } -------------------------------------------------------------------------------- /routes/campgrounds.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const router = express.Router(); 3 | const campgrounds = require('../controllers/campgrounds'); 4 | const catchAsync = require('../utils/catchAsync'); 5 | const { isLoggedIn, isAuthor, validateCampground } = require('../middleware'); 6 | const multer = require('multer'); 7 | const { storage } = require('../cloudinary'); 8 | const upload = multer({ storage }); 9 | 10 | const Campground = require('../models/campground'); 11 | 12 | router.route('/') 13 | .get(catchAsync(campgrounds.index)) 14 | .post(isLoggedIn, upload.array('image'), validateCampground, catchAsync(campgrounds.createCampground)) 15 | 16 | 17 | router.get('/new', isLoggedIn, campgrounds.renderNewForm) 18 | 19 | router.route('/:id') 20 | .get(catchAsync(campgrounds.showCampground)) 21 | .put(isLoggedIn, isAuthor, upload.array('image'), validateCampground, catchAsync(campgrounds.updateCampground)) 22 | .delete(isLoggedIn, isAuthor, catchAsync(campgrounds.deleteCampground)); 23 | 24 | router.get('/:id/edit', isLoggedIn, isAuthor, catchAsync(campgrounds.renderEditForm)) 25 | 26 | 27 | 28 | module.exports = router; -------------------------------------------------------------------------------- /routes/reviews.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const router = express.Router({ mergeParams: true }); 3 | const { validateReview, isLoggedIn, isReviewAuthor } = require('../middleware'); 4 | const Campground = require('../models/campground'); 5 | const Review = require('../models/review'); 6 | const reviews = require('../controllers/reviews'); 7 | const ExpressError = require('../utils/ExpressError'); 8 | const catchAsync = require('../utils/catchAsync'); 9 | 10 | router.post('/', isLoggedIn, validateReview, catchAsync(reviews.createReview)) 11 | 12 | router.delete('/:reviewId', isLoggedIn, isReviewAuthor, catchAsync(reviews.deleteReview)) 13 | 14 | module.exports = router; -------------------------------------------------------------------------------- /routes/users.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const router = express.Router(); 3 | const passport = require('passport'); 4 | const catchAsync = require('../utils/catchAsync'); 5 | const User = require('../models/user'); 6 | const users = require('../controllers/users'); 7 | 8 | router.route('/register') 9 | .get(users.renderRegister) 10 | .post(catchAsync(users.register)); 11 | 12 | router.route('/login') 13 | .get(users.renderLogin) 14 | .post(passport.authenticate('local', { failureFlash: true, failureRedirect: '/login' }), users.login) 15 | 16 | router.get('/logout', users.logout) 17 | 18 | module.exports = router; -------------------------------------------------------------------------------- /schemas.js: -------------------------------------------------------------------------------- 1 | const BaseJoi = require('joi'); 2 | const sanitizeHtml = require('sanitize-html'); 3 | 4 | const extension = (joi) => ({ 5 | type: 'string', 6 | base: joi.string(), 7 | messages: { 8 | 'string.escapeHTML': '{{#label}} must not include HTML!' 9 | }, 10 | rules: { 11 | escapeHTML: { 12 | validate(value, helpers) { 13 | const clean = sanitizeHtml(value, { 14 | allowedTags: [], 15 | allowedAttributes: {}, 16 | }); 17 | if (clean !== value) return helpers.error('string.escapeHTML', { value }) 18 | return clean; 19 | } 20 | } 21 | } 22 | }); 23 | 24 | const Joi = BaseJoi.extend(extension) 25 | 26 | module.exports.campgroundSchema = Joi.object({ 27 | campground: Joi.object({ 28 | title: Joi.string().required().escapeHTML(), 29 | price: Joi.number().required().min(0), 30 | location: Joi.string().required().escapeHTML(), 31 | description: Joi.string().required().escapeHTML() 32 | }).required(), 33 | deleteImages: Joi.array() 34 | }); 35 | 36 | module.exports.reviewSchema = Joi.object({ 37 | review: Joi.object({ 38 | rating: Joi.number().required().min(1).max(5), 39 | body: Joi.string().required().escapeHTML() 40 | }).required() 41 | }) 42 | 43 | -------------------------------------------------------------------------------- /seeds/index.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose'); 2 | const cities = require('./cities'); 3 | const { places, descriptors } = require('./seedHelpers'); 4 | const Campground = require('../models/campground'); 5 | 6 | mongoose.connect('mongodb://localhost:27017/yelp-camp', { 7 | useNewUrlParser: true, 8 | useCreateIndex: true, 9 | useUnifiedTopology: true 10 | }); 11 | 12 | const db = mongoose.connection; 13 | 14 | db.on("error", console.error.bind(console, "connection error:")); 15 | db.once("open", () => { 16 | console.log("Database connected"); 17 | }); 18 | 19 | const sample = array => array[Math.floor(Math.random() * array.length)]; 20 | 21 | const images_collection = [ 22 | { 23 | url: 'https://www.worldatlas.com/r/w960-q80/upload/46/35/bb/shutterstock-722654752.jpg', 24 | filename: 'YelpCamp/ahfnenvca4tha00h2ubt' 25 | }, 26 | { 27 | url: 'https://www.worldatlas.com/r/w960-q80/upload/51/c6/d1/shutterstock-558006505.jpg', 28 | filename: 'YelpCamp/ruyoaxgf72nzpi4y6cdi' 29 | }, 30 | { 31 | url: 'https://www.worldatlas.com/r/w960-q80/upload/7c/2f/ef/shutterstock-522872887.jpg', 32 | filename: '' 33 | }, 34 | { 35 | url: 'https://www.worldatlas.com/r/w960-q80/upload/04/81/5a/shutterstock-372187969.jpg', 36 | filename: '' 37 | }, 38 | { 39 | url: 'https://www.worldatlas.com/r/w960-q80/upload/7d/76/33/shutterstock-1171752994.jpg', 40 | filename: '' 41 | }, 42 | { 43 | url: 'https://www.worldatlas.com/r/w960-q80/upload/71/ea/52/shutterstock-219132490.jpg', 44 | filename: '' 45 | }, 46 | { 47 | url: 'https://www.worldatlas.com/r/w960-q80/upload/e5/ae/6b/shutterstock-279310514.jpg', 48 | filename: '' 49 | }, 50 | { 51 | url: 'https://www.worldatlas.com/r/w960-q80/upload/ab/8d/9e/shutterstock-571988035.jpg', 52 | filename: '' 53 | }, 54 | { 55 | url: 'https://www.worldatlas.com/r/w960-q80/upload/a2/10/64/shutterstock-89718916.jpg', 56 | filename: '' 57 | }, 58 | { 59 | url: 'https://www.worldatlas.com/r/w960-q80/upload/0c/e6/88/shutterstock-197867861.jpg', 60 | filename: '' 61 | } 62 | ] 63 | const seedDB = async () => { 64 | await Campground.deleteMany({}); 65 | for (let i = 0; i < 10; i++) { 66 | const random1000 = Math.floor(Math.random() * 1000); 67 | const price = Math.floor(Math.random() * 20) + 10; 68 | const camp = new Campground({ 69 | //YOUR USER ID 70 | author: '60bf92916a81749f99d88aed', 71 | location: `${cities[random1000].city}, ${cities[random1000].state}`, 72 | title: `${sample(descriptors)} ${sample(places)}`, 73 | description: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Quibusdam dolores vero perferendis laudantium, consequuntur voluptatibus nulla architecto, sit soluta esse iure sed labore ipsam a cum nihil atque molestiae deserunt!', 74 | price, 75 | geometry: { 76 | type: "Point", 77 | coordinates: [ 78 | cities[random1000].longitude, 79 | cities[random1000].latitude, 80 | ] 81 | }, 82 | images: [images_collection[i]] 83 | }) 84 | await camp.save(); 85 | } 86 | } 87 | 88 | seedDB().then(() => { 89 | mongoose.connection.close(); 90 | }) -------------------------------------------------------------------------------- /seeds/seedHelpers.js: -------------------------------------------------------------------------------- 1 | module.exports.descriptors = [ 2 | 'Forest', 3 | 'Ancient', 4 | 'Petrified', 5 | 'Roaring', 6 | 'Cascade', 7 | 'Tumbling', 8 | 'Silent', 9 | 'Redwood', 10 | 'Bullfrog', 11 | 'Maple', 12 | 'Misty', 13 | 'Elk', 14 | 'Grizzly', 15 | 'Ocean', 16 | 'Sea', 17 | 'Sky', 18 | 'Dusty', 19 | 'Diamond' 20 | ] 21 | 22 | module.exports.places = [ 23 | 'Flats', 24 | 'Village', 25 | 'Canyon', 26 | 'Pond', 27 | 'Group Camp', 28 | 'Horse Camp', 29 | 'Ghost Town', 30 | 'Camp', 31 | 'Dispersed Camp', 32 | 'Backcountry', 33 | 'River', 34 | 'Creek', 35 | 'Creekside', 36 | 'Bay', 37 | 'Spring', 38 | 'Bayshore', 39 | 'Sands', 40 | 'Mule Camp', 41 | 'Hunting Camp', 42 | 'Cliffs', 43 | 'Hollow' 44 | ] 45 | 46 | -------------------------------------------------------------------------------- /utils/ExpressError.js: -------------------------------------------------------------------------------- 1 | class ExpressError extends Error { 2 | constructor(message, statusCode) { 3 | super(); 4 | this.message = message; 5 | this.statusCode = statusCode; 6 | } 7 | } 8 | 9 | module.exports = ExpressError; -------------------------------------------------------------------------------- /utils/catchAsync.js: -------------------------------------------------------------------------------- 1 | module.exports = func => { 2 | return (req, res, next) => { 3 | func(req, res, next).catch(next); 4 | } 5 | } -------------------------------------------------------------------------------- /views/campgrounds/edit.ejs: -------------------------------------------------------------------------------- 1 | <% layout('layouts/boilerplate')%> 2 |<%= campground.description %>
21 |22 | <%= campground.location%> 23 |
24 | View <%=campground.title%> 25 |<%= campground.description%>
30 |89 | Rated: <%= review.rating %> stars 90 |
91 | 92 |Review: <%= review.body %>
93 | <% if( currentUser && review.author.equals(currentUser._id)) {%> 94 | 97 | <% } %> 98 |<%= err.stack %>
8 | <% } %> 9 | Welcome to Explorer!
Jump right in and explore our many campgrounds.
36 | Feel free to share some of your own and comment on others!