├── .env ├── .gitignore ├── README.md ├── docker-compose.yml ├── node-api ├── .env ├── .gitignore ├── Dockerfile ├── config.js ├── index.js ├── lib │ ├── api.js │ ├── contacts.js │ ├── redis.js │ └── server.js ├── package-lock.json └── package.json ├── react-ui ├── .gitignore ├── Dockerfile ├── README.md ├── package-lock.json ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt └── src │ ├── App.js │ ├── App.test.js │ ├── assets │ └── imgs │ │ └── search.png │ ├── index.css │ ├── index.js │ ├── reportWebVitals.js │ └── setupTests.js └── vue-ui ├── .gitignore ├── Dockerfile ├── README.md ├── babel.config.js ├── cypress.json ├── cypress ├── fixtures │ └── example.json ├── plugins │ └── index.js └── support │ ├── commands.js │ └── index.js ├── package-lock.json ├── package.json ├── public ├── favicon.ico └── index.html └── src ├── App.vue ├── api └── contacts-api.js ├── assets └── logo.png ├── components └── Contacts.vue └── main.js /.env: -------------------------------------------------------------------------------- 1 | API_HOST="http://localhost:5000/" 2 | APP_SERVER_PORT=5000 3 | REACT_APP_PORT=3000 4 | VUE_APP_PORT=8080 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pooh-Cherry/react-nextjs-challenge/0d0063200ea5028cc57239b2168409b2592b57bd/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Code challenge project by Node.JS and React 2 | This is a simple demonstration project to manage contact including name, and phone number. 3 | 4 | Backend: written by Node.JS & Redis (Storage) 5 | 6 | Frontend: by React (Test by Jest) & Vue (Test by Cypress but not implemented) 7 | 8 | ## Installation 9 | Use the docker to create development environment. 10 | 11 | ## Development 12 | ```bash 13 | docker-compose up --build 14 | ``` 15 | This will install all packages and run servers per each containers (node-api, react-ui, vue-ui).
16 | 17 | Docker Containers Naming & URL
18 | node-api : challenge-app-server - localhost:5000
19 | react-ui : challenge-app-react - localhost:3000
20 | vue-ui : challenge-app-vue - localhost:8080
21 | 22 | ### React Test 23 | ```bash 24 | docker exec -it challenge-app-react /bin/bash 25 | npm run test 26 | ``` 27 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | 5 | ####################### 6 | # Setup node container 7 | ####################### 8 | redis: 9 | container_name: challenge-app-redis 10 | image: 'redis' 11 | 12 | server: 13 | build: 14 | context: ./node-api 15 | dockerfile: Dockerfile 16 | container_name: challenge-app-server 17 | expose: 18 | - ${APP_SERVER_PORT} 19 | environment: 20 | API_HOST: ${API_HOST} 21 | APP_SERVER_PORT: ${APP_SERVER_PORT} 22 | ports: 23 | - ${APP_SERVER_PORT}:${APP_SERVER_PORT} 24 | volumes: 25 | - ./node-api:/usr/app/node-api:consistent 26 | command: "bash -c 'npm install && npm run start'" 27 | tty: true 28 | 29 | ###################################### 30 | # Setup client (react, vue) container 31 | ###################################### 32 | client-react: 33 | build: 34 | context: ./react-ui 35 | dockerfile: Dockerfile 36 | container_name: challenge-app-react 37 | environment: 38 | - REACT_APP_PORT=${REACT_APP_PORT} 39 | expose: 40 | - ${REACT_APP_PORT} 41 | ports: 42 | - ${REACT_APP_PORT}:${REACT_APP_PORT} 43 | volumes: 44 | - ./react-ui/src:/usr/app/react-ui/src:consistent 45 | - ./react-ui/public:/usr/app/react-ui/public:consistent 46 | links: 47 | - server 48 | command: "bash -c 'npm install && npm run start'" 49 | tty: true 50 | 51 | client-vue: 52 | build: 53 | context: ./vue-ui 54 | dockerfile: Dockerfile 55 | container_name: challenge-app-vue 56 | environment: 57 | - VUE_APP_PORT=${VUE_APP_PORT} 58 | expose: 59 | - ${VUE_APP_PORT} 60 | ports: 61 | - ${VUE_APP_PORT}:${VUE_APP_PORT} 62 | volumes: 63 | - ./vue-ui/src:/usr/app/vue-ui/src:consistent 64 | - ./vue-ui/public:/usr/app/vue-ui/public:consistent 65 | links: 66 | - server 67 | command: "bash -c 'npm install && npm run serve'" 68 | tty: true -------------------------------------------------------------------------------- /node-api/.env: -------------------------------------------------------------------------------- 1 | REDIS_HOST=redis 2 | REDIS_PORT=6379 -------------------------------------------------------------------------------- /node-api/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # misc 7 | .DS_Store 8 | .env.local 9 | .env.development.local 10 | .env.test.local 11 | .env.production.local 12 | 13 | npm-debug.log* 14 | yarn-debug.log* 15 | yarn-error.log* 16 | -------------------------------------------------------------------------------- /node-api/Dockerfile: -------------------------------------------------------------------------------- 1 | # Specify a base image 2 | FROM node:12 3 | 4 | # Create app directory and use it as the working directory 5 | RUN mkdir -p /usr/src/node-api 6 | WORKDIR /usr/src/node-api 7 | 8 | # Copy dependencies files 9 | COPY package.json /usr/src/node-api 10 | COPY package-lock.json /usr/src/node-api 11 | 12 | # Install dependencies 13 | # RUN npm install 14 | 15 | # Copy remaining files 16 | COPY . /usr/src/node-api 17 | 18 | # Default command 19 | # CMD ["npm", "run", "dev"] -------------------------------------------------------------------------------- /node-api/config.js: -------------------------------------------------------------------------------- 1 | require('dotenv').config() 2 | 3 | module.exports = { 4 | redis: { 5 | host: process.env.REDIS_HOST || 'localhost', 6 | port: process.env.REDIS_PORT || 6379, 7 | password: process.env.REDIS_PASSWORD, 8 | ...(process.env.NODE_ENV === 'test' ? { fast: true} : {}) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /node-api/index.js: -------------------------------------------------------------------------------- 1 | var name = require('./package.json').name 2 | require('productionize')(name) 3 | 4 | var server = require('./lib/server') 5 | var port = process.env.PORT || 5000 6 | server().listen(port) 7 | console.log(name, 'listening on port', port) 8 | -------------------------------------------------------------------------------- /node-api/lib/api.js: -------------------------------------------------------------------------------- 1 | var sendJson = require('send-data/json') 2 | var body = require('body/json') 3 | var redis = require('./redis') 4 | var Contact = require('./contacts') 5 | 6 | const conn = new Contact(redis, redis.print) 7 | 8 | exports.index = async function(req, res) { 9 | const data = await conn.all() 10 | return sendJson(req, res, { data }) 11 | } 12 | 13 | exports.query = async function(req, res, opts) { 14 | var contacts = await conn.all() 15 | 16 | /* 17 | Object.keys(opts.query).forEach(k => { 18 | if (k === 'page') return 19 | if (k === 'per_page') return 20 | 21 | contacts = contacts.filter(contact => contact[k].includes(opts.query[k])) 22 | }) 23 | */ 24 | if (opts.query.search) { 25 | contacts = contacts.filter( 26 | contact => contact.name.includes(opts.query.search) || contact.phone.includes(opts.query.search) 27 | ) 28 | } 29 | 30 | const current_page = !opts.query.page ? 1 : parseInt(opts.query.page) 31 | const per_page = !opts.query.per_page ? 20 : parseInt(opts.query.per_page) 32 | const last_page = Math.ceil(contacts.length / per_page) 33 | const total_count = contacts.length 34 | 35 | return sendJson( 36 | req, 37 | res, 38 | { 39 | total_count, 40 | current_page, 41 | per_page, 42 | last_page, 43 | data: contacts.slice(per_page * (current_page-1), per_page * current_page) 44 | } 45 | ) 46 | } 47 | 48 | exports.create = function(req, res, opts, cb) { 49 | body(req, res, async function (err, data) { 50 | if (err) return cb(err) 51 | 52 | const result = await conn.addNew(data) 53 | sendJson(req, res, { result }) 54 | }) 55 | } 56 | 57 | exports.update = function(req, res, opts, cb) { 58 | body(req, res, async function (err, data) { 59 | if (err) return cb(err) 60 | 61 | const result = await conn.update(opts.params.id, data) 62 | sendJson(req, res, { result }) 63 | }) 64 | } 65 | 66 | exports.show = async function(req, res, opts, cb) { 67 | const data = await conn.findById(parseInt(opts.params.id)) 68 | sendJson(req, res, { data }) 69 | } 70 | -------------------------------------------------------------------------------- /node-api/lib/contacts.js: -------------------------------------------------------------------------------- 1 | const docPath = 'contacts' 2 | const { promisify } = require('util') 3 | 4 | function Contact (redisClient, cb) { 5 | this.redis = redisClient 6 | this.callback = cb 7 | this.setAsync = promisify(this.redis.set).bind(this.redis) 8 | this.getAsync = promisify(this.redis.get).bind(this.redis) 9 | } 10 | 11 | module.exports = Contact 12 | 13 | Contact.prototype.all = async function () { 14 | try { 15 | return JSON.parse(await this.getAsync(docPath)) || [] 16 | } catch (err) { 17 | this.callback(err) 18 | return null 19 | } 20 | } 21 | 22 | Contact.prototype.findById = async function (id) { 23 | try { 24 | return (JSON.parse(await this.getAsync(docPath)) || [])[id] 25 | } catch (err) { 26 | this.callback(err) 27 | return null 28 | } 29 | } 30 | 31 | Contact.prototype.addNew = async function (data) { 32 | try{ 33 | const contacts = JSON.parse(await this.getAsync(docPath)) || [] 34 | await this.setAsync( 35 | docPath, 36 | JSON.stringify([...contacts, data]) 37 | ) 38 | 39 | return 'OK' 40 | } catch (err) { 41 | this.callback(err) 42 | return 'error' 43 | } 44 | } 45 | 46 | Contact.prototype.update = async function (id, data) { 47 | try{ 48 | const contacts = JSON.parse(await this.getAsync(docPath)) || [] 49 | contacts[id] = { ...contacts[id], ...data } 50 | 51 | await this.setAsync( 52 | docPath, 53 | JSON.stringify(contacts) 54 | ) 55 | 56 | return 'OK' 57 | } catch (err) { 58 | this.callback(err) 59 | return 'error' 60 | } 61 | } -------------------------------------------------------------------------------- /node-api/lib/redis.js: -------------------------------------------------------------------------------- 1 | var config = require('../config') 2 | var faker = require('faker') 3 | 4 | var engine = { 5 | undefined: require('fakeredis'), 6 | test: require('fakeredis'), 7 | production: require('redis'), 8 | development: require('redis') 9 | }[process.env.NODE_ENV] 10 | 11 | var redis = module.exports = engine.createClient(config.redis) 12 | 13 | redis.healthCheck = function (cb) { 14 | var now = Date.now().toString() 15 | redis.set('!healthCheck', now, function (err) { 16 | if (err) return cb(err) 17 | 18 | redis.get('!healthCheck', function (err, then) { 19 | if (err) return cb(err) 20 | if (now !== then.toString()) return cb(new Error('Redis write failed')) 21 | 22 | cb() 23 | }) 24 | }) 25 | } 26 | 27 | function prepareMockDate (count) { 28 | var data = [] 29 | for(var i = 0; i < count; i++) { 30 | var contact = { 31 | name: faker.name.findName(), 32 | phone: faker.phone.phoneNumber(), 33 | id: i 34 | } 35 | data.push(contact) 36 | } 37 | redis.set('contacts', JSON.stringify(data)) 38 | } 39 | 40 | redis.on('connect', () => { 41 | console.log('redis connected.') 42 | 43 | if(process.env.NODE_ENV === 'development') { 44 | prepareMockDate(50) 45 | } 46 | }) 47 | -------------------------------------------------------------------------------- /node-api/lib/server.js: -------------------------------------------------------------------------------- 1 | var URL = require('url') 2 | var http = require('http') 3 | var cuid = require('cuid') 4 | var Corsify = require('corsify') 5 | var sendJson = require('send-data/json') 6 | var ReqLogger = require('req-logger') 7 | var healthPoint = require('healthpoint') 8 | var HttpHashRouter = require('http-hash-router') 9 | var api = require('./api') 10 | const redis = require('./redis') 11 | 12 | var version = require('../package.json').version 13 | 14 | var router = HttpHashRouter() 15 | var logger = ReqLogger({ version }) 16 | var health = healthPoint({ version }, redis.healthCheck) 17 | var cors = Corsify({ 18 | 'Access-Control-Allow-Origin': '*', 19 | 'Access-Control-Allow-Headers': 'authorization, accept, content-type' 20 | }) 21 | 22 | module.exports = function createServer () { 23 | return http.createServer(cors(handler)) 24 | } 25 | 26 | router.set('/favicon.ico', empty) 27 | router.set('/', api.index) 28 | router.set('/contacts', { POST: api.create, GET: api.query }) 29 | router.set('/contacts/:id', { GET: api.show, POST: api.update }) 30 | 31 | function handler(req, res) { 32 | if (req.url === '/health') return health(req, res) 33 | req.id = cuid() 34 | logger(req, res, { requestId: req.id }, function(info) { 35 | info.authEmail = (req.auth || {}).email 36 | console.log(info) 37 | }) 38 | 39 | router(req, res, { query: getQuery(req.url)}, onError.bind(null, req, res)) 40 | } 41 | 42 | function onError(req, res, err) { 43 | if (!err) return 44 | 45 | res.statusCode = err.statusCode || 500 46 | logError(req, res, err) 47 | 48 | sendJson(req, res, { 49 | error: err.message || http.STATUS_CODES[res.statusCode] 50 | }) 51 | } 52 | 53 | function logError (req, res, err) { 54 | if (process.env.NODE_ENV === 'test') return 55 | 56 | var logType = res.statusCode >= 500 ? 'error' : 'warn' 57 | 58 | console[logType]({ 59 | err: err, 60 | requestId: req.id, 61 | statusCode: res.statusCode 62 | }, err.message) 63 | } 64 | 65 | function empty (req, res) { 66 | res.writeHead(204) 67 | res.end() 68 | } 69 | 70 | function getQuery (url) { 71 | return URL.parse(url, true).query 72 | } -------------------------------------------------------------------------------- /node-api/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-api", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@sindresorhus/is": { 8 | "version": "0.14.0", 9 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", 10 | "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", 11 | "dev": true 12 | }, 13 | "@szmarczak/http-timer": { 14 | "version": "1.1.2", 15 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", 16 | "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", 17 | "dev": true, 18 | "requires": { 19 | "defer-to-connect": "^1.0.1" 20 | } 21 | }, 22 | "abbrev": { 23 | "version": "1.1.1", 24 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 25 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 26 | "dev": true 27 | }, 28 | "ansi-align": { 29 | "version": "3.0.0", 30 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", 31 | "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", 32 | "dev": true, 33 | "requires": { 34 | "string-width": "^3.0.0" 35 | }, 36 | "dependencies": { 37 | "ansi-regex": { 38 | "version": "4.1.0", 39 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 40 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 41 | "dev": true 42 | }, 43 | "string-width": { 44 | "version": "3.1.0", 45 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 46 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 47 | "dev": true, 48 | "requires": { 49 | "emoji-regex": "^7.0.1", 50 | "is-fullwidth-code-point": "^2.0.0", 51 | "strip-ansi": "^5.1.0" 52 | } 53 | }, 54 | "strip-ansi": { 55 | "version": "5.2.0", 56 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 57 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 58 | "dev": true, 59 | "requires": { 60 | "ansi-regex": "^4.1.0" 61 | } 62 | } 63 | } 64 | }, 65 | "ansi-regex": { 66 | "version": "2.1.1", 67 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 68 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 69 | }, 70 | "ansi-styles": { 71 | "version": "2.2.1", 72 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", 73 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" 74 | }, 75 | "anymatch": { 76 | "version": "3.1.1", 77 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", 78 | "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", 79 | "dev": true, 80 | "requires": { 81 | "normalize-path": "^3.0.0", 82 | "picomatch": "^2.0.4" 83 | } 84 | }, 85 | "ap": { 86 | "version": "0.1.0", 87 | "resolved": "https://registry.npmjs.org/ap/-/ap-0.1.0.tgz", 88 | "integrity": "sha1-2KPyZhU3k5ihtTymzBpmag+/4VA=" 89 | }, 90 | "balanced-match": { 91 | "version": "1.0.0", 92 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 93 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 94 | "dev": true 95 | }, 96 | "binary-extensions": { 97 | "version": "2.1.0", 98 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", 99 | "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==", 100 | "dev": true 101 | }, 102 | "body": { 103 | "version": "5.1.0", 104 | "resolved": "https://registry.npmjs.org/body/-/body-5.1.0.tgz", 105 | "integrity": "sha1-5LoM5BCkaTYyM2dgnstOZVMSUGk=", 106 | "requires": { 107 | "continuable-cache": "^0.3.1", 108 | "error": "^7.0.0", 109 | "raw-body": "~1.1.0", 110 | "safe-json-parse": "~1.0.1" 111 | } 112 | }, 113 | "boxen": { 114 | "version": "4.2.0", 115 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", 116 | "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", 117 | "dev": true, 118 | "requires": { 119 | "ansi-align": "^3.0.0", 120 | "camelcase": "^5.3.1", 121 | "chalk": "^3.0.0", 122 | "cli-boxes": "^2.2.0", 123 | "string-width": "^4.1.0", 124 | "term-size": "^2.1.0", 125 | "type-fest": "^0.8.1", 126 | "widest-line": "^3.1.0" 127 | }, 128 | "dependencies": { 129 | "ansi-styles": { 130 | "version": "4.3.0", 131 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 132 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 133 | "dev": true, 134 | "requires": { 135 | "color-convert": "^2.0.1" 136 | } 137 | }, 138 | "chalk": { 139 | "version": "3.0.0", 140 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 141 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 142 | "dev": true, 143 | "requires": { 144 | "ansi-styles": "^4.1.0", 145 | "supports-color": "^7.1.0" 146 | } 147 | }, 148 | "has-flag": { 149 | "version": "4.0.0", 150 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 151 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 152 | "dev": true 153 | }, 154 | "supports-color": { 155 | "version": "7.2.0", 156 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 157 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 158 | "dev": true, 159 | "requires": { 160 | "has-flag": "^4.0.0" 161 | } 162 | } 163 | } 164 | }, 165 | "brace-expansion": { 166 | "version": "1.1.11", 167 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 168 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 169 | "dev": true, 170 | "requires": { 171 | "balanced-match": "^1.0.0", 172 | "concat-map": "0.0.1" 173 | } 174 | }, 175 | "braces": { 176 | "version": "3.0.2", 177 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 178 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 179 | "dev": true, 180 | "requires": { 181 | "fill-range": "^7.0.1" 182 | } 183 | }, 184 | "bytes": { 185 | "version": "1.0.0", 186 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz", 187 | "integrity": "sha1-NWnt6Lo0MV+rmcPpLLBMciDeH6g=" 188 | }, 189 | "cacheable-request": { 190 | "version": "6.1.0", 191 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", 192 | "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", 193 | "dev": true, 194 | "requires": { 195 | "clone-response": "^1.0.2", 196 | "get-stream": "^5.1.0", 197 | "http-cache-semantics": "^4.0.0", 198 | "keyv": "^3.0.0", 199 | "lowercase-keys": "^2.0.0", 200 | "normalize-url": "^4.1.0", 201 | "responselike": "^1.0.2" 202 | }, 203 | "dependencies": { 204 | "get-stream": { 205 | "version": "5.2.0", 206 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", 207 | "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", 208 | "dev": true, 209 | "requires": { 210 | "pump": "^3.0.0" 211 | } 212 | }, 213 | "lowercase-keys": { 214 | "version": "2.0.0", 215 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 216 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", 217 | "dev": true 218 | }, 219 | "pump": { 220 | "version": "3.0.0", 221 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 222 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 223 | "dev": true, 224 | "requires": { 225 | "end-of-stream": "^1.1.0", 226 | "once": "^1.3.1" 227 | } 228 | } 229 | } 230 | }, 231 | "camelcase": { 232 | "version": "5.3.1", 233 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 234 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 235 | "dev": true 236 | }, 237 | "camelize": { 238 | "version": "1.0.0", 239 | "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", 240 | "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=" 241 | }, 242 | "chalk": { 243 | "version": "1.1.3", 244 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 245 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 246 | "requires": { 247 | "ansi-styles": "^2.2.1", 248 | "escape-string-regexp": "^1.0.2", 249 | "has-ansi": "^2.0.0", 250 | "strip-ansi": "^3.0.0", 251 | "supports-color": "^2.0.0" 252 | } 253 | }, 254 | "chokidar": { 255 | "version": "3.4.3", 256 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.3.tgz", 257 | "integrity": "sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ==", 258 | "dev": true, 259 | "requires": { 260 | "anymatch": "~3.1.1", 261 | "braces": "~3.0.2", 262 | "fsevents": "~2.1.2", 263 | "glob-parent": "~5.1.0", 264 | "is-binary-path": "~2.1.0", 265 | "is-glob": "~4.0.1", 266 | "normalize-path": "~3.0.0", 267 | "readdirp": "~3.5.0" 268 | } 269 | }, 270 | "ci-info": { 271 | "version": "2.0.0", 272 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", 273 | "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", 274 | "dev": true 275 | }, 276 | "cli-boxes": { 277 | "version": "2.2.1", 278 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", 279 | "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", 280 | "dev": true 281 | }, 282 | "client-ip": { 283 | "version": "1.0.0", 284 | "resolved": "https://registry.npmjs.org/client-ip/-/client-ip-1.0.0.tgz", 285 | "integrity": "sha1-FbqPUgmCPwNnptYLxBuKv0Fn/hU=" 286 | }, 287 | "clone-response": { 288 | "version": "1.0.2", 289 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 290 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 291 | "dev": true, 292 | "requires": { 293 | "mimic-response": "^1.0.0" 294 | } 295 | }, 296 | "color-convert": { 297 | "version": "2.0.1", 298 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 299 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 300 | "dev": true, 301 | "requires": { 302 | "color-name": "~1.1.4" 303 | } 304 | }, 305 | "color-name": { 306 | "version": "1.1.4", 307 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 308 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 309 | "dev": true 310 | }, 311 | "concat-map": { 312 | "version": "0.0.1", 313 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 314 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 315 | "dev": true 316 | }, 317 | "configstore": { 318 | "version": "5.0.1", 319 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", 320 | "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", 321 | "dev": true, 322 | "requires": { 323 | "dot-prop": "^5.2.0", 324 | "graceful-fs": "^4.1.2", 325 | "make-dir": "^3.0.0", 326 | "unique-string": "^2.0.0", 327 | "write-file-atomic": "^3.0.0", 328 | "xdg-basedir": "^4.0.0" 329 | } 330 | }, 331 | "content-types": { 332 | "version": "0.1.0", 333 | "resolved": "https://registry.npmjs.org/content-types/-/content-types-0.1.0.tgz", 334 | "integrity": "sha1-DnkLOr/vkPbst3roWF25CZyvdXg=", 335 | "requires": { 336 | "iterators": "~0.1.0" 337 | } 338 | }, 339 | "continuable-cache": { 340 | "version": "0.3.1", 341 | "resolved": "https://registry.npmjs.org/continuable-cache/-/continuable-cache-0.3.1.tgz", 342 | "integrity": "sha1-vXJ6f67XfnH/OYWskzUakSczrQ8=" 343 | }, 344 | "core-util-is": { 345 | "version": "1.0.2", 346 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 347 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 348 | }, 349 | "corsify": { 350 | "version": "2.1.0", 351 | "resolved": "https://registry.npmjs.org/corsify/-/corsify-2.1.0.tgz", 352 | "integrity": "sha1-EaRbxHqzDFTQC7hp6hgC+82aCdA=", 353 | "requires": { 354 | "http-methods": "~0.1.0" 355 | } 356 | }, 357 | "crypto-random-string": { 358 | "version": "2.0.0", 359 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", 360 | "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", 361 | "dev": true 362 | }, 363 | "cuid": { 364 | "version": "2.1.8", 365 | "resolved": "https://registry.npmjs.org/cuid/-/cuid-2.1.8.tgz", 366 | "integrity": "sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg==" 367 | }, 368 | "debug": { 369 | "version": "3.2.6", 370 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 371 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 372 | "dev": true, 373 | "requires": { 374 | "ms": "^2.1.1" 375 | } 376 | }, 377 | "decompress-response": { 378 | "version": "3.3.0", 379 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 380 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 381 | "dev": true, 382 | "requires": { 383 | "mimic-response": "^1.0.0" 384 | } 385 | }, 386 | "deep-extend": { 387 | "version": "0.6.0", 388 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 389 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", 390 | "dev": true 391 | }, 392 | "defer-to-connect": { 393 | "version": "1.1.3", 394 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", 395 | "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", 396 | "dev": true 397 | }, 398 | "denque": { 399 | "version": "1.4.1", 400 | "resolved": "https://registry.npmjs.org/denque/-/denque-1.4.1.tgz", 401 | "integrity": "sha512-OfzPuSZKGcgr96rf1oODnfjqBFmr1DVoc/TrItj3Ohe0Ah1C5WX5Baquw/9U9KovnQ88EqmJbD66rKYUQYN1tQ==" 402 | }, 403 | "dot-prop": { 404 | "version": "5.3.0", 405 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", 406 | "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", 407 | "dev": true, 408 | "requires": { 409 | "is-obj": "^2.0.0" 410 | } 411 | }, 412 | "dotenv": { 413 | "version": "8.2.0", 414 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", 415 | "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==" 416 | }, 417 | "double-ended-queue": { 418 | "version": "2.1.0-0", 419 | "resolved": "https://registry.npmjs.org/double-ended-queue/-/double-ended-queue-2.1.0-0.tgz", 420 | "integrity": "sha1-ED01J/0xUo9AGIEwyEHv3XgmTlw=", 421 | "dev": true 422 | }, 423 | "duplexer3": { 424 | "version": "0.1.4", 425 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 426 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", 427 | "dev": true 428 | }, 429 | "emoji-regex": { 430 | "version": "7.0.3", 431 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 432 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 433 | "dev": true 434 | }, 435 | "end-of-stream": { 436 | "version": "1.4.4", 437 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 438 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 439 | "requires": { 440 | "once": "^1.4.0" 441 | } 442 | }, 443 | "error": { 444 | "version": "7.2.1", 445 | "resolved": "https://registry.npmjs.org/error/-/error-7.2.1.tgz", 446 | "integrity": "sha512-fo9HBvWnx3NGUKMvMwB/CBCMMrfEJgbDTVDEkPygA3Bdd3lM1OyCd+rbQ8BwnpF6GdVeOLDNmyL4N5Bg80ZvdA==", 447 | "requires": { 448 | "string-template": "~0.2.1" 449 | } 450 | }, 451 | "escape-goat": { 452 | "version": "2.1.1", 453 | "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", 454 | "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", 455 | "dev": true 456 | }, 457 | "escape-string-regexp": { 458 | "version": "1.0.5", 459 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 460 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 461 | }, 462 | "faker": { 463 | "version": "5.1.0", 464 | "resolved": "https://registry.npmjs.org/faker/-/faker-5.1.0.tgz", 465 | "integrity": "sha512-RrWKFSSA/aNLP0g3o2WW1Zez7/MnMr7xkiZmoCfAGZmdkDQZ6l2KtuXHN5XjdvpRjDl8+3vf+Rrtl06Z352+Mw==", 466 | "dev": true 467 | }, 468 | "fakeredis": { 469 | "version": "2.0.0", 470 | "resolved": "https://registry.npmjs.org/fakeredis/-/fakeredis-2.0.0.tgz", 471 | "integrity": "sha1-dS+4MoGazjG+iGaM8TWNbxQ4r8A=", 472 | "dev": true, 473 | "requires": { 474 | "redis": "2.6.0-0" 475 | }, 476 | "dependencies": { 477 | "redis": { 478 | "version": "2.6.0-0", 479 | "resolved": "https://registry.npmjs.org/redis/-/redis-2.6.0-0.tgz", 480 | "integrity": "sha1-c/Z03T5Uo6dnA9HtJga05gC+B20=", 481 | "dev": true, 482 | "requires": { 483 | "double-ended-queue": "^2.1.0-0", 484 | "redis-commands": "^1.1.0", 485 | "redis-parser": "^1.2.0" 486 | } 487 | }, 488 | "redis-parser": { 489 | "version": "1.3.0", 490 | "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-1.3.0.tgz", 491 | "integrity": "sha1-gG6+e7+3005NfB6e8oLvz60EEmo=", 492 | "dev": true 493 | } 494 | } 495 | }, 496 | "fast-json-parse": { 497 | "version": "1.0.3", 498 | "resolved": "https://registry.npmjs.org/fast-json-parse/-/fast-json-parse-1.0.3.tgz", 499 | "integrity": "sha512-FRWsaZRWEJ1ESVNbDWmsAlqDk96gPQezzLghafp5J4GUKjbCz3OkAHuZs5TuPEtkbVQERysLp9xv6c24fBm8Aw==" 500 | }, 501 | "fast-safe-stringify": { 502 | "version": "1.2.3", 503 | "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-1.2.3.tgz", 504 | "integrity": "sha512-QJYT/i0QYoiZBQ71ivxdyTqkwKkQ0oxACXHYxH2zYHJEgzi2LsbjgvtzTbLi1SZcF190Db2YP7I7eTsU2egOlw==" 505 | }, 506 | "fill-range": { 507 | "version": "7.0.1", 508 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 509 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 510 | "dev": true, 511 | "requires": { 512 | "to-regex-range": "^5.0.1" 513 | } 514 | }, 515 | "flatstr": { 516 | "version": "1.0.12", 517 | "resolved": "https://registry.npmjs.org/flatstr/-/flatstr-1.0.12.tgz", 518 | "integrity": "sha512-4zPxDyhCyiN2wIAtSLI6gc82/EjqZc1onI4Mz/l0pWrAlsSfYH/2ZIcU+e3oA2wDwbzIWNKwa23F8rh6+DRWkw==" 519 | }, 520 | "fsevents": { 521 | "version": "2.1.3", 522 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", 523 | "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", 524 | "dev": true, 525 | "optional": true 526 | }, 527 | "get-stream": { 528 | "version": "4.1.0", 529 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 530 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 531 | "dev": true, 532 | "requires": { 533 | "pump": "^3.0.0" 534 | }, 535 | "dependencies": { 536 | "pump": { 537 | "version": "3.0.0", 538 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 539 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 540 | "dev": true, 541 | "requires": { 542 | "end-of-stream": "^1.1.0", 543 | "once": "^1.3.1" 544 | } 545 | } 546 | } 547 | }, 548 | "glob-parent": { 549 | "version": "5.1.1", 550 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", 551 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", 552 | "dev": true, 553 | "requires": { 554 | "is-glob": "^4.0.1" 555 | } 556 | }, 557 | "global-dirs": { 558 | "version": "2.0.1", 559 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz", 560 | "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==", 561 | "dev": true, 562 | "requires": { 563 | "ini": "^1.3.5" 564 | } 565 | }, 566 | "got": { 567 | "version": "9.6.0", 568 | "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", 569 | "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", 570 | "dev": true, 571 | "requires": { 572 | "@sindresorhus/is": "^0.14.0", 573 | "@szmarczak/http-timer": "^1.1.2", 574 | "cacheable-request": "^6.0.0", 575 | "decompress-response": "^3.3.0", 576 | "duplexer3": "^0.1.4", 577 | "get-stream": "^4.1.0", 578 | "lowercase-keys": "^1.0.1", 579 | "mimic-response": "^1.0.1", 580 | "p-cancelable": "^1.0.0", 581 | "to-readable-stream": "^1.0.0", 582 | "url-parse-lax": "^3.0.0" 583 | } 584 | }, 585 | "graceful-fs": { 586 | "version": "4.2.4", 587 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", 588 | "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", 589 | "dev": true 590 | }, 591 | "has-ansi": { 592 | "version": "2.0.0", 593 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", 594 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", 595 | "requires": { 596 | "ansi-regex": "^2.0.0" 597 | } 598 | }, 599 | "has-flag": { 600 | "version": "3.0.0", 601 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 602 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 603 | "dev": true 604 | }, 605 | "has-yarn": { 606 | "version": "2.1.0", 607 | "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", 608 | "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", 609 | "dev": true 610 | }, 611 | "healthpoint": { 612 | "version": "1.0.0", 613 | "resolved": "https://registry.npmjs.org/healthpoint/-/healthpoint-1.0.0.tgz", 614 | "integrity": "sha1-66jMZOlATAsQP8RUoXYiqGKvcc8=", 615 | "requires": { 616 | "xtend": "^4.0.1" 617 | } 618 | }, 619 | "http-cache-semantics": { 620 | "version": "4.1.0", 621 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", 622 | "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", 623 | "dev": true 624 | }, 625 | "http-hash": { 626 | "version": "2.0.1", 627 | "resolved": "https://registry.npmjs.org/http-hash/-/http-hash-2.0.1.tgz", 628 | "integrity": "sha512-F7XEOyGmsPUP+JQKYs+6/eLXQwIe96nm3khyT6spfAxVd2PnV/634pSGkaTlrlMjYTPQJ0AIYrPYtPFkC1uk5A==" 629 | }, 630 | "http-hash-router": { 631 | "version": "2.0.1", 632 | "resolved": "https://registry.npmjs.org/http-hash-router/-/http-hash-router-2.0.1.tgz", 633 | "integrity": "sha512-wugogWDSP64ghhiNqzXMkuD0AiXYjeGj757GvdOIg3pgKipsvkL8srH/E4qujVp0BjfUJcNL8oSGSSZtHlJgaQ==", 634 | "requires": { 635 | "error": "^5.0.0", 636 | "http-hash": "^2.0.1", 637 | "http-methods": "^1.0.0", 638 | "xtend": "^4.0.0" 639 | }, 640 | "dependencies": { 641 | "body": { 642 | "version": "0.1.0", 643 | "resolved": "https://registry.npmjs.org/body/-/body-0.1.0.tgz", 644 | "integrity": "sha1-5xT+KM2ISKo0zfLJ8kK74uFdHNg=", 645 | "requires": { 646 | "content-types": "~0.1.0" 647 | } 648 | }, 649 | "error": { 650 | "version": "5.2.0", 651 | "resolved": "https://registry.npmjs.org/error/-/error-5.2.0.tgz", 652 | "integrity": "sha1-P7WdFnkAWEZkgfrhYBLmnkMvukI=", 653 | "requires": { 654 | "camelize": "^1.0.0", 655 | "is-error": "^2.0.0", 656 | "string-template": "~0.2.0", 657 | "xtend": "~4.0.0" 658 | } 659 | }, 660 | "http-methods": { 661 | "version": "1.1.0", 662 | "resolved": "https://registry.npmjs.org/http-methods/-/http-methods-1.1.0.tgz", 663 | "integrity": "sha1-3ixbYOVxEviZ/IXxJz731W2Xuxo=", 664 | "requires": { 665 | "body": "~0.1.0", 666 | "content-types": "~0.1.0" 667 | } 668 | } 669 | } 670 | }, 671 | "http-methods": { 672 | "version": "0.1.0", 673 | "resolved": "https://registry.npmjs.org/http-methods/-/http-methods-0.1.0.tgz", 674 | "integrity": "sha1-KWkbb8WPT36Bo2BdyoJoKwaORDA=", 675 | "requires": { 676 | "body": "~0.1.0", 677 | "content-types": "~0.1.0" 678 | }, 679 | "dependencies": { 680 | "body": { 681 | "version": "0.1.0", 682 | "resolved": "https://registry.npmjs.org/body/-/body-0.1.0.tgz", 683 | "integrity": "sha1-5xT+KM2ISKo0zfLJ8kK74uFdHNg=", 684 | "requires": { 685 | "content-types": "~0.1.0" 686 | } 687 | } 688 | } 689 | }, 690 | "ignore-by-default": { 691 | "version": "1.0.1", 692 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 693 | "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", 694 | "dev": true 695 | }, 696 | "import-lazy": { 697 | "version": "2.1.0", 698 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 699 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", 700 | "dev": true 701 | }, 702 | "imurmurhash": { 703 | "version": "0.1.4", 704 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 705 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 706 | "dev": true 707 | }, 708 | "inherits": { 709 | "version": "2.0.4", 710 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 711 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 712 | }, 713 | "ini": { 714 | "version": "1.3.5", 715 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 716 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", 717 | "dev": true 718 | }, 719 | "is-binary-path": { 720 | "version": "2.1.0", 721 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 722 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 723 | "dev": true, 724 | "requires": { 725 | "binary-extensions": "^2.0.0" 726 | } 727 | }, 728 | "is-ci": { 729 | "version": "2.0.0", 730 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", 731 | "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", 732 | "dev": true, 733 | "requires": { 734 | "ci-info": "^2.0.0" 735 | } 736 | }, 737 | "is-error": { 738 | "version": "2.2.2", 739 | "resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.2.tgz", 740 | "integrity": "sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg==" 741 | }, 742 | "is-extglob": { 743 | "version": "2.1.1", 744 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 745 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 746 | "dev": true 747 | }, 748 | "is-fullwidth-code-point": { 749 | "version": "2.0.0", 750 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 751 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 752 | "dev": true 753 | }, 754 | "is-glob": { 755 | "version": "4.0.1", 756 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 757 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 758 | "dev": true, 759 | "requires": { 760 | "is-extglob": "^2.1.1" 761 | } 762 | }, 763 | "is-installed-globally": { 764 | "version": "0.3.2", 765 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", 766 | "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", 767 | "dev": true, 768 | "requires": { 769 | "global-dirs": "^2.0.1", 770 | "is-path-inside": "^3.0.1" 771 | } 772 | }, 773 | "is-npm": { 774 | "version": "4.0.0", 775 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", 776 | "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", 777 | "dev": true 778 | }, 779 | "is-number": { 780 | "version": "7.0.0", 781 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 782 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 783 | "dev": true 784 | }, 785 | "is-obj": { 786 | "version": "2.0.0", 787 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", 788 | "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", 789 | "dev": true 790 | }, 791 | "is-path-inside": { 792 | "version": "3.0.2", 793 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz", 794 | "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==", 795 | "dev": true 796 | }, 797 | "is-typedarray": { 798 | "version": "1.0.0", 799 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 800 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", 801 | "dev": true 802 | }, 803 | "is-yarn-global": { 804 | "version": "0.3.0", 805 | "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", 806 | "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", 807 | "dev": true 808 | }, 809 | "isarray": { 810 | "version": "1.0.0", 811 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 812 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 813 | }, 814 | "iterators": { 815 | "version": "0.1.0", 816 | "resolved": "https://registry.npmjs.org/iterators/-/iterators-0.1.0.tgz", 817 | "integrity": "sha1-0D9mbKTmEwE4VlmXys6lQWQgMVY=", 818 | "requires": { 819 | "ap": "~0.1.0" 820 | } 821 | }, 822 | "json-buffer": { 823 | "version": "3.0.0", 824 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 825 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", 826 | "dev": true 827 | }, 828 | "json-stringify-safe": { 829 | "version": "5.0.1", 830 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 831 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 832 | }, 833 | "keyv": { 834 | "version": "3.1.0", 835 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", 836 | "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", 837 | "dev": true, 838 | "requires": { 839 | "json-buffer": "3.0.0" 840 | } 841 | }, 842 | "latest-version": { 843 | "version": "5.1.0", 844 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", 845 | "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", 846 | "dev": true, 847 | "requires": { 848 | "package-json": "^6.3.0" 849 | } 850 | }, 851 | "lodash._root": { 852 | "version": "3.0.1", 853 | "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", 854 | "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=" 855 | }, 856 | "lodash.foreach": { 857 | "version": "4.5.0", 858 | "resolved": "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-4.5.0.tgz", 859 | "integrity": "sha1-Gmo16s5AEoDH8G3d7DUWWrJ+PlM=" 860 | }, 861 | "lodash.isobject": { 862 | "version": "3.0.2", 863 | "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-3.0.2.tgz", 864 | "integrity": "sha1-PI+41bW/S/kK4G4U8qUwpO2TXh0=" 865 | }, 866 | "lodash.round": { 867 | "version": "3.11.0", 868 | "resolved": "https://registry.npmjs.org/lodash.round/-/lodash.round-3.11.0.tgz", 869 | "integrity": "sha1-UH3nDjjdCmdPvgWeBB+Xe9DGxI8=", 870 | "requires": { 871 | "lodash._root": "^3.0.0" 872 | } 873 | }, 874 | "lowercase-keys": { 875 | "version": "1.0.1", 876 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 877 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", 878 | "dev": true 879 | }, 880 | "make-dir": { 881 | "version": "3.1.0", 882 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 883 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 884 | "dev": true, 885 | "requires": { 886 | "semver": "^6.0.0" 887 | }, 888 | "dependencies": { 889 | "semver": { 890 | "version": "6.3.0", 891 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 892 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 893 | "dev": true 894 | } 895 | } 896 | }, 897 | "mimic-response": { 898 | "version": "1.0.1", 899 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 900 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", 901 | "dev": true 902 | }, 903 | "minimatch": { 904 | "version": "3.0.4", 905 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 906 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 907 | "dev": true, 908 | "requires": { 909 | "brace-expansion": "^1.1.7" 910 | } 911 | }, 912 | "minimist": { 913 | "version": "1.2.5", 914 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 915 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 916 | "dev": true 917 | }, 918 | "ms": { 919 | "version": "2.1.2", 920 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 921 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 922 | "dev": true 923 | }, 924 | "nodemon": { 925 | "version": "2.0.6", 926 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.6.tgz", 927 | "integrity": "sha512-4I3YDSKXg6ltYpcnZeHompqac4E6JeAMpGm8tJnB9Y3T0ehasLa4139dJOcCrB93HHrUMsCrKtoAlXTqT5n4AQ==", 928 | "dev": true, 929 | "requires": { 930 | "chokidar": "^3.2.2", 931 | "debug": "^3.2.6", 932 | "ignore-by-default": "^1.0.1", 933 | "minimatch": "^3.0.4", 934 | "pstree.remy": "^1.1.7", 935 | "semver": "^5.7.1", 936 | "supports-color": "^5.5.0", 937 | "touch": "^3.1.0", 938 | "undefsafe": "^2.0.3", 939 | "update-notifier": "^4.1.0" 940 | }, 941 | "dependencies": { 942 | "supports-color": { 943 | "version": "5.5.0", 944 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 945 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 946 | "dev": true, 947 | "requires": { 948 | "has-flag": "^3.0.0" 949 | } 950 | } 951 | } 952 | }, 953 | "nopt": { 954 | "version": "1.0.10", 955 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 956 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 957 | "dev": true, 958 | "requires": { 959 | "abbrev": "1" 960 | } 961 | }, 962 | "normalize-path": { 963 | "version": "3.0.0", 964 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 965 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 966 | "dev": true 967 | }, 968 | "normalize-url": { 969 | "version": "4.5.0", 970 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", 971 | "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", 972 | "dev": true 973 | }, 974 | "once": { 975 | "version": "1.4.0", 976 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 977 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 978 | "requires": { 979 | "wrappy": "1" 980 | } 981 | }, 982 | "p-cancelable": { 983 | "version": "1.1.0", 984 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", 985 | "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", 986 | "dev": true 987 | }, 988 | "package-json": { 989 | "version": "6.5.0", 990 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", 991 | "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", 992 | "dev": true, 993 | "requires": { 994 | "got": "^9.6.0", 995 | "registry-auth-token": "^4.0.0", 996 | "registry-url": "^5.0.0", 997 | "semver": "^6.2.0" 998 | }, 999 | "dependencies": { 1000 | "semver": { 1001 | "version": "6.3.0", 1002 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1003 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1004 | "dev": true 1005 | } 1006 | } 1007 | }, 1008 | "picomatch": { 1009 | "version": "2.2.2", 1010 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", 1011 | "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", 1012 | "dev": true 1013 | }, 1014 | "pino": { 1015 | "version": "3.4.0", 1016 | "resolved": "https://registry.npmjs.org/pino/-/pino-3.4.0.tgz", 1017 | "integrity": "sha1-K93LIffjbolSH4R19KRI7RrtCFE=", 1018 | "requires": { 1019 | "chalk": "^1.1.1", 1020 | "fast-json-parse": "^1.0.0", 1021 | "fast-safe-stringify": "^1.1.3", 1022 | "flatstr": "^1.0.4", 1023 | "once": "^1.3.3", 1024 | "pump": "^1.0.2", 1025 | "quick-format-unescaped": "^1.0.0", 1026 | "split2": "^2.0.1" 1027 | } 1028 | }, 1029 | "prepend-http": { 1030 | "version": "2.0.0", 1031 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 1032 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", 1033 | "dev": true 1034 | }, 1035 | "process-nextick-args": { 1036 | "version": "2.0.1", 1037 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1038 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 1039 | }, 1040 | "productionize": { 1041 | "version": "4.1.0", 1042 | "resolved": "https://registry.npmjs.org/productionize/-/productionize-4.1.0.tgz", 1043 | "integrity": "sha512-bmj5JiCcNbD3UAv1KHezUMUGhkIq4maZdfSriShvv4tZ0V0TXRvk5Dh8Vtu/s4s6di2I+nWiD30TNSCcBbrsaQ==", 1044 | "requires": { 1045 | "lodash.foreach": "^4.0.0", 1046 | "lodash.isobject": "^3.0.2", 1047 | "lodash.round": "^3.10.1", 1048 | "pino": "^3.4.0" 1049 | } 1050 | }, 1051 | "pstree.remy": { 1052 | "version": "1.1.8", 1053 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1054 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1055 | "dev": true 1056 | }, 1057 | "pump": { 1058 | "version": "1.0.3", 1059 | "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", 1060 | "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", 1061 | "requires": { 1062 | "end-of-stream": "^1.1.0", 1063 | "once": "^1.3.1" 1064 | } 1065 | }, 1066 | "pupa": { 1067 | "version": "2.1.1", 1068 | "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", 1069 | "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", 1070 | "dev": true, 1071 | "requires": { 1072 | "escape-goat": "^2.0.0" 1073 | } 1074 | }, 1075 | "quick-format-unescaped": { 1076 | "version": "1.1.2", 1077 | "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-1.1.2.tgz", 1078 | "integrity": "sha1-DKWB3jF0vs7yWsPC6JVjQjgdtpg=", 1079 | "requires": { 1080 | "fast-safe-stringify": "^1.0.8" 1081 | } 1082 | }, 1083 | "raw-body": { 1084 | "version": "1.1.7", 1085 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.1.7.tgz", 1086 | "integrity": "sha1-HQJ8K/oRasxmI7yo8AAWVyqH1CU=", 1087 | "requires": { 1088 | "bytes": "1", 1089 | "string_decoder": "0.10" 1090 | } 1091 | }, 1092 | "rc": { 1093 | "version": "1.2.8", 1094 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 1095 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 1096 | "dev": true, 1097 | "requires": { 1098 | "deep-extend": "^0.6.0", 1099 | "ini": "~1.3.0", 1100 | "minimist": "^1.2.0", 1101 | "strip-json-comments": "~2.0.1" 1102 | } 1103 | }, 1104 | "readable-stream": { 1105 | "version": "2.3.7", 1106 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 1107 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 1108 | "requires": { 1109 | "core-util-is": "~1.0.0", 1110 | "inherits": "~2.0.3", 1111 | "isarray": "~1.0.0", 1112 | "process-nextick-args": "~2.0.0", 1113 | "safe-buffer": "~5.1.1", 1114 | "string_decoder": "~1.1.1", 1115 | "util-deprecate": "~1.0.1" 1116 | }, 1117 | "dependencies": { 1118 | "string_decoder": { 1119 | "version": "1.1.1", 1120 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1121 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1122 | "requires": { 1123 | "safe-buffer": "~5.1.0" 1124 | } 1125 | } 1126 | } 1127 | }, 1128 | "readdirp": { 1129 | "version": "3.5.0", 1130 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", 1131 | "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", 1132 | "dev": true, 1133 | "requires": { 1134 | "picomatch": "^2.2.1" 1135 | } 1136 | }, 1137 | "redis": { 1138 | "version": "3.0.2", 1139 | "resolved": "https://registry.npmjs.org/redis/-/redis-3.0.2.tgz", 1140 | "integrity": "sha512-PNhLCrjU6vKVuMOyFu7oSP296mwBkcE6lrAjruBYG5LgdSqtRBoVQIylrMyVZD/lkF24RSNNatzvYag6HRBHjQ==", 1141 | "requires": { 1142 | "denque": "^1.4.1", 1143 | "redis-commands": "^1.5.0", 1144 | "redis-errors": "^1.2.0", 1145 | "redis-parser": "^3.0.0" 1146 | } 1147 | }, 1148 | "redis-commands": { 1149 | "version": "1.6.0", 1150 | "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.6.0.tgz", 1151 | "integrity": "sha512-2jnZ0IkjZxvguITjFTrGiLyzQZcTvaw8DAaCXxZq/dsHXz7KfMQ3OUJy7Tz9vnRtZRVz6VRCPDvruvU8Ts44wQ==" 1152 | }, 1153 | "redis-errors": { 1154 | "version": "1.2.0", 1155 | "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", 1156 | "integrity": "sha1-62LSrbFeTq9GEMBK/hUpOEJQq60=" 1157 | }, 1158 | "redis-parser": { 1159 | "version": "3.0.0", 1160 | "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", 1161 | "integrity": "sha1-tm2CjNyv5rS4pCin3vTGvKwxyLQ=", 1162 | "requires": { 1163 | "redis-errors": "^1.0.0" 1164 | } 1165 | }, 1166 | "registry-auth-token": { 1167 | "version": "4.2.0", 1168 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.0.tgz", 1169 | "integrity": "sha512-P+lWzPrsgfN+UEpDS3U8AQKg/UjZX6mQSJueZj3EK+vNESoqBSpBUD3gmu4sF9lOsjXWjF11dQKUqemf3veq1w==", 1170 | "dev": true, 1171 | "requires": { 1172 | "rc": "^1.2.8" 1173 | } 1174 | }, 1175 | "registry-url": { 1176 | "version": "5.1.0", 1177 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", 1178 | "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", 1179 | "dev": true, 1180 | "requires": { 1181 | "rc": "^1.2.8" 1182 | } 1183 | }, 1184 | "req-logger": { 1185 | "version": "2.0.0", 1186 | "resolved": "https://registry.npmjs.org/req-logger/-/req-logger-2.0.0.tgz", 1187 | "integrity": "sha1-y92avsI2YB1j1CE82bsEUaeqI1A=", 1188 | "requires": { 1189 | "client-ip": "^1.0.0", 1190 | "end-of-stream": "^1.1.0", 1191 | "xtend": "^4.0.1" 1192 | } 1193 | }, 1194 | "responselike": { 1195 | "version": "1.0.2", 1196 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 1197 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 1198 | "dev": true, 1199 | "requires": { 1200 | "lowercase-keys": "^1.0.0" 1201 | } 1202 | }, 1203 | "safe-buffer": { 1204 | "version": "5.1.2", 1205 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1206 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1207 | }, 1208 | "safe-json-parse": { 1209 | "version": "1.0.1", 1210 | "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-1.0.1.tgz", 1211 | "integrity": "sha1-PnZyPjjf3aE8mx0poeB//uSzC1c=" 1212 | }, 1213 | "semver": { 1214 | "version": "5.7.1", 1215 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1216 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 1217 | "dev": true 1218 | }, 1219 | "semver-diff": { 1220 | "version": "3.1.1", 1221 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", 1222 | "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", 1223 | "dev": true, 1224 | "requires": { 1225 | "semver": "^6.3.0" 1226 | }, 1227 | "dependencies": { 1228 | "semver": { 1229 | "version": "6.3.0", 1230 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1231 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1232 | "dev": true 1233 | } 1234 | } 1235 | }, 1236 | "send-data": { 1237 | "version": "8.0.0", 1238 | "resolved": "https://registry.npmjs.org/send-data/-/send-data-8.0.0.tgz", 1239 | "integrity": "sha1-g5jswfuklTR1eowXpI+lg8qqruw=", 1240 | "requires": { 1241 | "json-stringify-safe": "^5.0.0", 1242 | "xtend": "^4.0.0" 1243 | } 1244 | }, 1245 | "signal-exit": { 1246 | "version": "3.0.3", 1247 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 1248 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", 1249 | "dev": true 1250 | }, 1251 | "split2": { 1252 | "version": "2.2.0", 1253 | "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", 1254 | "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", 1255 | "requires": { 1256 | "through2": "^2.0.2" 1257 | } 1258 | }, 1259 | "string-template": { 1260 | "version": "0.2.1", 1261 | "resolved": "https://registry.npmjs.org/string-template/-/string-template-0.2.1.tgz", 1262 | "integrity": "sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=" 1263 | }, 1264 | "string-width": { 1265 | "version": "4.2.0", 1266 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", 1267 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", 1268 | "dev": true, 1269 | "requires": { 1270 | "emoji-regex": "^8.0.0", 1271 | "is-fullwidth-code-point": "^3.0.0", 1272 | "strip-ansi": "^6.0.0" 1273 | }, 1274 | "dependencies": { 1275 | "ansi-regex": { 1276 | "version": "5.0.0", 1277 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 1278 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", 1279 | "dev": true 1280 | }, 1281 | "emoji-regex": { 1282 | "version": "8.0.0", 1283 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1284 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1285 | "dev": true 1286 | }, 1287 | "is-fullwidth-code-point": { 1288 | "version": "3.0.0", 1289 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1290 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1291 | "dev": true 1292 | }, 1293 | "strip-ansi": { 1294 | "version": "6.0.0", 1295 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 1296 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 1297 | "dev": true, 1298 | "requires": { 1299 | "ansi-regex": "^5.0.0" 1300 | } 1301 | } 1302 | } 1303 | }, 1304 | "string_decoder": { 1305 | "version": "0.10.31", 1306 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 1307 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" 1308 | }, 1309 | "strip-ansi": { 1310 | "version": "3.0.1", 1311 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 1312 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 1313 | "requires": { 1314 | "ansi-regex": "^2.0.0" 1315 | } 1316 | }, 1317 | "strip-json-comments": { 1318 | "version": "2.0.1", 1319 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1320 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 1321 | "dev": true 1322 | }, 1323 | "supports-color": { 1324 | "version": "2.0.0", 1325 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", 1326 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" 1327 | }, 1328 | "term-size": { 1329 | "version": "2.2.1", 1330 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", 1331 | "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", 1332 | "dev": true 1333 | }, 1334 | "through2": { 1335 | "version": "2.0.5", 1336 | "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", 1337 | "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", 1338 | "requires": { 1339 | "readable-stream": "~2.3.6", 1340 | "xtend": "~4.0.1" 1341 | } 1342 | }, 1343 | "to-readable-stream": { 1344 | "version": "1.0.0", 1345 | "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", 1346 | "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", 1347 | "dev": true 1348 | }, 1349 | "to-regex-range": { 1350 | "version": "5.0.1", 1351 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1352 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1353 | "dev": true, 1354 | "requires": { 1355 | "is-number": "^7.0.0" 1356 | } 1357 | }, 1358 | "touch": { 1359 | "version": "3.1.0", 1360 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 1361 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 1362 | "dev": true, 1363 | "requires": { 1364 | "nopt": "~1.0.10" 1365 | } 1366 | }, 1367 | "type-fest": { 1368 | "version": "0.8.1", 1369 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 1370 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", 1371 | "dev": true 1372 | }, 1373 | "typedarray-to-buffer": { 1374 | "version": "3.1.5", 1375 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", 1376 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", 1377 | "dev": true, 1378 | "requires": { 1379 | "is-typedarray": "^1.0.0" 1380 | } 1381 | }, 1382 | "undefsafe": { 1383 | "version": "2.0.3", 1384 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", 1385 | "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", 1386 | "dev": true, 1387 | "requires": { 1388 | "debug": "^2.2.0" 1389 | }, 1390 | "dependencies": { 1391 | "debug": { 1392 | "version": "2.6.9", 1393 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1394 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1395 | "dev": true, 1396 | "requires": { 1397 | "ms": "2.0.0" 1398 | } 1399 | }, 1400 | "ms": { 1401 | "version": "2.0.0", 1402 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1403 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 1404 | "dev": true 1405 | } 1406 | } 1407 | }, 1408 | "unique-string": { 1409 | "version": "2.0.0", 1410 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", 1411 | "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", 1412 | "dev": true, 1413 | "requires": { 1414 | "crypto-random-string": "^2.0.0" 1415 | } 1416 | }, 1417 | "update-notifier": { 1418 | "version": "4.1.3", 1419 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", 1420 | "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", 1421 | "dev": true, 1422 | "requires": { 1423 | "boxen": "^4.2.0", 1424 | "chalk": "^3.0.0", 1425 | "configstore": "^5.0.1", 1426 | "has-yarn": "^2.1.0", 1427 | "import-lazy": "^2.1.0", 1428 | "is-ci": "^2.0.0", 1429 | "is-installed-globally": "^0.3.1", 1430 | "is-npm": "^4.0.0", 1431 | "is-yarn-global": "^0.3.0", 1432 | "latest-version": "^5.0.0", 1433 | "pupa": "^2.0.1", 1434 | "semver-diff": "^3.1.1", 1435 | "xdg-basedir": "^4.0.0" 1436 | }, 1437 | "dependencies": { 1438 | "ansi-styles": { 1439 | "version": "4.3.0", 1440 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1441 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1442 | "dev": true, 1443 | "requires": { 1444 | "color-convert": "^2.0.1" 1445 | } 1446 | }, 1447 | "chalk": { 1448 | "version": "3.0.0", 1449 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 1450 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 1451 | "dev": true, 1452 | "requires": { 1453 | "ansi-styles": "^4.1.0", 1454 | "supports-color": "^7.1.0" 1455 | } 1456 | }, 1457 | "has-flag": { 1458 | "version": "4.0.0", 1459 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1460 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1461 | "dev": true 1462 | }, 1463 | "supports-color": { 1464 | "version": "7.2.0", 1465 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1466 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1467 | "dev": true, 1468 | "requires": { 1469 | "has-flag": "^4.0.0" 1470 | } 1471 | } 1472 | } 1473 | }, 1474 | "url-parse-lax": { 1475 | "version": "3.0.0", 1476 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 1477 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 1478 | "dev": true, 1479 | "requires": { 1480 | "prepend-http": "^2.0.0" 1481 | } 1482 | }, 1483 | "util-deprecate": { 1484 | "version": "1.0.2", 1485 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1486 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1487 | }, 1488 | "widest-line": { 1489 | "version": "3.1.0", 1490 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", 1491 | "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", 1492 | "dev": true, 1493 | "requires": { 1494 | "string-width": "^4.0.0" 1495 | } 1496 | }, 1497 | "wrappy": { 1498 | "version": "1.0.2", 1499 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1500 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1501 | }, 1502 | "write-file-atomic": { 1503 | "version": "3.0.3", 1504 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", 1505 | "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", 1506 | "dev": true, 1507 | "requires": { 1508 | "imurmurhash": "^0.1.4", 1509 | "is-typedarray": "^1.0.0", 1510 | "signal-exit": "^3.0.2", 1511 | "typedarray-to-buffer": "^3.1.5" 1512 | } 1513 | }, 1514 | "xdg-basedir": { 1515 | "version": "4.0.0", 1516 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", 1517 | "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", 1518 | "dev": true 1519 | }, 1520 | "xtend": { 1521 | "version": "4.0.2", 1522 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 1523 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" 1524 | } 1525 | } 1526 | } 1527 | -------------------------------------------------------------------------------- /node-api/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-api", 3 | "version": "1.0.0", 4 | "description": "challenge backend project", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node index.js", 8 | "dev": "nodemon index.js", 9 | "test": "echo \"Error: no test specified\" && exit 1" 10 | }, 11 | "keywords": [ 12 | "node", 13 | "challenge", 14 | "backend" 15 | ], 16 | "author": "carl.estre08@gmail.com", 17 | "license": "ISC", 18 | "dependencies": { 19 | "body": "^5.1.0", 20 | "corsify": "^2.1.0", 21 | "cuid": "^2.1.8", 22 | "dotenv": "^8.2.0", 23 | "healthpoint": "^1.0.0", 24 | "http-hash-router": "^2.0.1", 25 | "productionize": "^4.1.0", 26 | "redis": "^3.0.2", 27 | "req-logger": "^2.0.0", 28 | "send-data": "^8.0.0" 29 | }, 30 | "devDependencies": { 31 | "faker": "^5.1.0", 32 | "fakeredis": "^2.0.0", 33 | "nodemon": "^2.0.6" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /react-ui/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | # local env files 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | pnpm-debug.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw? 24 | -------------------------------------------------------------------------------- /react-ui/Dockerfile: -------------------------------------------------------------------------------- 1 | # Specify a base image 2 | FROM node:12 3 | 4 | # Create app directory and use it as the working directory 5 | RUN mkdir -p /usr/src/react-ui 6 | WORKDIR /usr/src/react-ui 7 | 8 | # Copy dependencies files 9 | COPY package.json /usr/src/react-ui 10 | COPY package-lock.json /usr/src/react-ui 11 | 12 | # Install dependencies 13 | # RUN npm install 14 | 15 | # Copy remaining files 16 | COPY . /usr/src/react-ui 17 | 18 | # Default command 19 | # CMD ["npm", "run", "start"] -------------------------------------------------------------------------------- /react-ui/README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `yarn start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 13 | 14 | The page will reload if you make edits.\ 15 | You will also see any lint errors in the console. 16 | 17 | ### `yarn test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `yarn build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `yarn eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 35 | 36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 39 | 40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `yarn build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /react-ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-ui", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.11.4", 7 | "@testing-library/react": "^11.1.0", 8 | "@testing-library/user-event": "^12.1.10", 9 | "bootstrap": "^4.5.3", 10 | "faker": "^5.1.0", 11 | "react": "^17.0.1", 12 | "react-bootstrap": "^1.4.0", 13 | "react-dom": "^17.0.1", 14 | "react-scripts": "4.0.0", 15 | "react-spinners": "^0.9.0", 16 | "web-vitals": "^0.2.4" 17 | }, 18 | "scripts": { 19 | "start": "react-scripts start", 20 | "build": "react-scripts build", 21 | "test": "react-scripts test --verbose --env=jsdom", 22 | "eject": "react-scripts eject" 23 | }, 24 | "eslintConfig": { 25 | "extends": [ 26 | "react-app", 27 | "react-app/jest" 28 | ] 29 | }, 30 | "browserslist": { 31 | "production": [ 32 | ">0.2%", 33 | "not dead", 34 | "not op_mini all" 35 | ], 36 | "development": [ 37 | "last 1 chrome version", 38 | "last 1 firefox version", 39 | "last 1 safari version" 40 | ] 41 | }, 42 | "devDependencies": { 43 | "fetch-mock-jest": "^1.3.0" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /react-ui/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pooh-Cherry/react-nextjs-challenge/0d0063200ea5028cc57239b2168409b2592b57bd/react-ui/public/favicon.ico -------------------------------------------------------------------------------- /react-ui/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /react-ui/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pooh-Cherry/react-nextjs-challenge/0d0063200ea5028cc57239b2168409b2592b57bd/react-ui/public/logo192.png -------------------------------------------------------------------------------- /react-ui/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pooh-Cherry/react-nextjs-challenge/0d0063200ea5028cc57239b2168409b2592b57bd/react-ui/public/logo512.png -------------------------------------------------------------------------------- /react-ui/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /react-ui/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /react-ui/src/App.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from 'react' 2 | import { Container, Row, Table, InputGroup, Pagination, Button, Modal, Form } from 'react-bootstrap' 3 | import BounceLoader from 'react-spinners/BounceLoader' 4 | 5 | import 'bootstrap/dist/css/bootstrap.min.css' 6 | import searchIcon from './assets/imgs/search.png' 7 | 8 | function App() { 9 | const [contacts, setContacts] = useState([]) 10 | const [loading, setLoading] = useState(false) 11 | const [searchKey, setSearchKey] = useState('') 12 | const [pageCount, setPageCount] = useState(0) 13 | const [activePage, setActivePage] = useState(1) 14 | 15 | const [updateModalVisible, setUpdateModalVisible] = useState(false) 16 | const [activeContact, setActiveContact] = useState({}) 17 | const [refreshFlag, setRefreshFlag] = useState(false) 18 | 19 | const baseUri = "http://localhost:5000/contacts" 20 | 21 | useEffect(() => { 22 | let mounted = true 23 | const fetchData = async () => { 24 | const res = await fetch(`${baseUri}?page=${activePage}&search=${searchKey}`) 25 | const response = await res.json() 26 | if (mounted) { 27 | setLoading(false) 28 | setPageCount(response.last_page) 29 | setContacts(response.data) 30 | } 31 | } 32 | 33 | setLoading(true) 34 | fetchData() 35 | return () => mounted = false 36 | }, [activePage, searchKey, refreshFlag]) 37 | 38 | const pagination = (pageSize, active) => { 39 | let items = []; 40 | for (let number = 1; number <= pageSize; number++) { 41 | items.push( 42 | setActivePage(number)}> 43 | {number} 44 | , 45 | ); 46 | } 47 | return items 48 | } 49 | 50 | const onClickSubmit = async () => { 51 | setLoading(true) 52 | 53 | const res = await fetch(`${baseUri}/${activeContact.id}`, { 54 | method: 'post', 55 | body: JSON.stringify({ 56 | name: activeContact.name, 57 | phone: activeContact.phone 58 | }) 59 | }) 60 | const response = await res.json() 61 | console.log(response) 62 | setLoading(false) 63 | 64 | setUpdateModalVisible(false) 65 | setActiveContact({}) 66 | setRefreshFlag(!refreshFlag) 67 | } 68 | 69 | const openUpdate = (contact) => { 70 | setActiveContact(contact) 71 | setUpdateModalVisible(true) 72 | } 73 | 74 | return ( 75 | <> 76 | 77 | 78 |
79 |

Contacts

80 | 81 |
82 |
83 | 84 | 85 | search 86 | 87 | { 94 | setSearchKey(e.target.value) 95 | setActivePage(1) 96 | }} 97 | /> 98 | 99 |
100 |
101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | { contacts.map((contact, id) => ( 113 | 114 | 115 | 116 | 117 | 118 | 119 | )) 120 | } 121 | 122 |
IDNamePhone
{ contact.id }{ contact.name }{ contact.phone }
123 |
124 | 125 | 126 | { pagination(pageCount, activePage) } 127 | 128 | 129 |
130 | 131 | setUpdateModalVisible(false)}> 132 | 133 | Update contact 134 | 135 | 136 |
137 | 138 | ID: {activeContact.id} 139 | 140 | 141 | Name 142 | setActiveContact({...activeContact, name: e.target.value})}/> 143 | 144 | 145 | Phone 146 | setActiveContact({...activeContact, phone: e.target.value})}/> 147 | 148 |
149 |
150 | 151 | 152 | 153 | 154 |
155 | 156 | ); 157 | } 158 | 159 | export default App; 160 | -------------------------------------------------------------------------------- /react-ui/src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen, queryByAttribute, fireEvent } from '@testing-library/react' 2 | import faker from 'faker' 3 | import App from './App' 4 | 5 | function prepareMockData(count) { 6 | var data = [] 7 | for(var i = 0; i < count; i++) { 8 | var contact = { 9 | name: faker.name.findName(), 10 | phone: faker.phone.phoneNumber(), 11 | id: i 12 | } 13 | data.push(contact) 14 | } 15 | return data 16 | } 17 | const pageData = prepareMockData(20) 18 | const getById = queryByAttribute.bind(null, 'id') 19 | 20 | 21 | 22 | describe('Contacts page', () => { 23 | test('should render title, search box and table component.', async () => { 24 | const dom = render() 25 | 26 | const titleElement = screen.getByText('Contacts') 27 | expect(titleElement).toBeInTheDocument() 28 | 29 | const searchElement = getById(dom.container, 'input-search') 30 | expect(searchElement).toBeInTheDocument() 31 | 32 | const tableElement = getById(dom.container, 'tbl-contacts') 33 | expect(tableElement).toBeInTheDocument() 34 | }) 35 | 36 | describe('should render', () => { 37 | beforeEach(() => { 38 | global.fetch = window.fetch = jest.fn((req, res) => 39 | Promise.resolve({ 40 | json: () => Promise.resolve({ 41 | total_count: 50, 42 | current_page: 1, 43 | per_page: 20, 44 | last_page: 3, 45 | data: pageData 46 | }) 47 | }) 48 | ) 49 | }) 50 | 51 | test('contents table and pagination.', async () => { 52 | const dom = render() 53 | expect(fetch).toBeCalled() 54 | 55 | expect(await dom.findByText(pageData[0].name)).toBeInTheDocument() 56 | expect(await dom.findByText(pageData[19].name)).toBeInTheDocument() 57 | 58 | const paginators = dom.container.querySelector('.pagination') 59 | expect(paginators).toBeInTheDocument() 60 | 61 | expect(document.querySelectorAll('.page-item').length).toBe(3) 62 | expect(document.querySelectorAll('.page-item')[0]).toHaveClass('active') 63 | }) 64 | 65 | test('modal dialog if click update button.', async () => { 66 | const dom = render() 67 | expect(fetch).toBeCalled() 68 | 69 | const nameCell = await dom.findByText(pageData[0].name) 70 | expect(nameCell).toBeInTheDocument() 71 | 72 | const updateBtn = await document.getElementById('btn-update-0') 73 | expect(updateBtn).toBeInTheDocument() 74 | 75 | fireEvent.click(document.getElementById('btn-update-0')) 76 | expect(document.querySelector('.modal-dialog')).toBeVisible() 77 | }) 78 | }) 79 | }) 80 | -------------------------------------------------------------------------------- /react-ui/src/assets/imgs/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pooh-Cherry/react-nextjs-challenge/0d0063200ea5028cc57239b2168409b2592b57bd/react-ui/src/assets/imgs/search.png -------------------------------------------------------------------------------- /react-ui/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /react-ui/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import './index.css'; 4 | import App from './App'; 5 | import reportWebVitals from './reportWebVitals'; 6 | 7 | ReactDOM.render( 8 | 9 | 10 | , 11 | document.getElementById('root') 12 | ); 13 | 14 | // If you want to start measuring performance in your app, pass a function 15 | // to log results (for example: reportWebVitals(console.log)) 16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 17 | reportWebVitals(); 18 | -------------------------------------------------------------------------------- /react-ui/src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /react-ui/src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /vue-ui/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | 6 | # local env files 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | pnpm-debug.log* 15 | 16 | # Editor directories and files 17 | .idea 18 | .vscode 19 | *.suo 20 | *.ntvs* 21 | *.njsproj 22 | *.sln 23 | *.sw? 24 | -------------------------------------------------------------------------------- /vue-ui/Dockerfile: -------------------------------------------------------------------------------- 1 | # Specify a base image 2 | FROM node:12 3 | 4 | # Create app directory and use it as the working directory 5 | RUN mkdir -p /usr/src/vue-ui 6 | WORKDIR /usr/src/vue-ui 7 | 8 | # Copy dependencies files 9 | COPY package.json /usr/src/vue-ui 10 | COPY package-lock.json /usr/src/vue-ui 11 | 12 | # Install dependencies 13 | # RUN npm install 14 | 15 | # Copy remaining files 16 | COPY . /usr/src/vue-ui 17 | 18 | # Default command 19 | # CMD ["npm", "run", "serve"] -------------------------------------------------------------------------------- /vue-ui/README.md: -------------------------------------------------------------------------------- 1 | # vue-ui 2 | 3 | ## Project setup 4 | ``` 5 | yarn install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | yarn serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | yarn build 16 | ``` 17 | 18 | ### Lints and fixes files 19 | ``` 20 | yarn lint 21 | ``` 22 | 23 | ### Customize configuration 24 | See [Configuration Reference](https://cli.vuejs.org/config/). 25 | -------------------------------------------------------------------------------- /vue-ui/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /vue-ui/cypress.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /vue-ui/cypress/fixtures/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Using fixtures to represent data", 3 | "email": "hello@cypress.io", 4 | "body": "Fixtures are a great way to mock data for responses to routes" 5 | } -------------------------------------------------------------------------------- /vue-ui/cypress/plugins/index.js: -------------------------------------------------------------------------------- 1 | /// 2 | // *********************************************************** 3 | // This example plugins/index.js can be used to load plugins 4 | // 5 | // You can change the location of this file or turn off loading 6 | // the plugins file with the 'pluginsFile' configuration option. 7 | // 8 | // You can read more here: 9 | // https://on.cypress.io/plugins-guide 10 | // *********************************************************** 11 | 12 | // This function is called when a project is opened or re-opened (e.g. due to 13 | // the project's config changing) 14 | 15 | /** 16 | * @type {Cypress.PluginConfig} 17 | */ 18 | module.exports = (on, config) => { 19 | // `on` is used to hook into various events Cypress emits 20 | // `config` is the resolved Cypress config 21 | } 22 | -------------------------------------------------------------------------------- /vue-ui/cypress/support/commands.js: -------------------------------------------------------------------------------- 1 | // *********************************************** 2 | // This example commands.js shows you how to 3 | // create various custom commands and overwrite 4 | // existing commands. 5 | // 6 | // For more comprehensive examples of custom 7 | // commands please read more here: 8 | // https://on.cypress.io/custom-commands 9 | // *********************************************** 10 | // 11 | // 12 | // -- This is a parent command -- 13 | // Cypress.Commands.add("login", (email, password) => { ... }) 14 | // 15 | // 16 | // -- This is a child command -- 17 | // Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) 18 | // 19 | // 20 | // -- This is a dual command -- 21 | // Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) 22 | // 23 | // 24 | // -- This will overwrite an existing command -- 25 | // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) 26 | -------------------------------------------------------------------------------- /vue-ui/cypress/support/index.js: -------------------------------------------------------------------------------- 1 | // *********************************************************** 2 | // This example support/index.js is processed and 3 | // loaded automatically before your test files. 4 | // 5 | // This is a great place to put global configuration and 6 | // behavior that modifies Cypress. 7 | // 8 | // You can change the location of this file or turn off 9 | // automatically serving support files with the 10 | // 'supportFile' configuration option. 11 | // 12 | // You can read more here: 13 | // https://on.cypress.io/configuration 14 | // *********************************************************** 15 | 16 | // Import commands.js using ES2015 syntax: 17 | import './commands' 18 | 19 | // Alternatively you can use CommonJS syntax: 20 | // require('./commands') 21 | -------------------------------------------------------------------------------- /vue-ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-ui", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "lint": "vue-cli-service lint" 9 | }, 10 | "dependencies": { 11 | "bootstrap-vue": "^2.18.1", 12 | "core-js": "^3.6.5", 13 | "vue": "^2.6.11" 14 | }, 15 | "devDependencies": { 16 | "@vue/cli-plugin-babel": "~4.5.0", 17 | "@vue/cli-plugin-eslint": "~4.5.0", 18 | "@vue/cli-service": "~4.5.0", 19 | "babel-eslint": "^10.1.0", 20 | "cypress": "^5.5.0", 21 | "eslint": "^6.7.2", 22 | "eslint-plugin-vue": "^6.2.2", 23 | "vue-template-compiler": "^2.6.11" 24 | }, 25 | "eslintConfig": { 26 | "root": true, 27 | "env": { 28 | "node": true 29 | }, 30 | "extends": [ 31 | "plugin:vue/essential", 32 | "eslint:recommended" 33 | ], 34 | "parserOptions": { 35 | "parser": "babel-eslint" 36 | }, 37 | "rules": {} 38 | }, 39 | "browserslist": [ 40 | "> 1%", 41 | "last 2 versions", 42 | "not dead" 43 | ] 44 | } 45 | -------------------------------------------------------------------------------- /vue-ui/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pooh-Cherry/react-nextjs-challenge/0d0063200ea5028cc57239b2168409b2592b57bd/vue-ui/public/favicon.ico -------------------------------------------------------------------------------- /vue-ui/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /vue-ui/src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /vue-ui/src/api/contacts-api.js: -------------------------------------------------------------------------------- 1 | const BASE_URL = 'http://localhost:5000/contacts'; 2 | export default { 3 | list (params, cb, errCb) { 4 | fetch(BASE_URL + '?page=' + params.page + '&search=' + params.search) 5 | .then(response => response.json()) 6 | .then((data) => { 7 | cb(data) 8 | }) 9 | .catch((error) => { 10 | errCb(error) 11 | }) 12 | }, 13 | // create (params, cb, errCb) { 14 | 15 | // }, 16 | update (id, params, cb, errCb) { 17 | fetch(BASE_URL + '/' + id, { 18 | method: 'PUT', 19 | headers: { 20 | 'Content-Type': 'application/json' 21 | }, 22 | body: JSON.stringify(params) 23 | }) 24 | .then(response => response.json()) 25 | .then((data) => { 26 | cb(data) 27 | }) 28 | .catch((error) => { 29 | errCb(error) 30 | }) 31 | }, 32 | // delete (params, cb, errCb) { 33 | 34 | // } 35 | } -------------------------------------------------------------------------------- /vue-ui/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pooh-Cherry/react-nextjs-challenge/0d0063200ea5028cc57239b2168409b2592b57bd/vue-ui/src/assets/logo.png -------------------------------------------------------------------------------- /vue-ui/src/components/Contacts.vue: -------------------------------------------------------------------------------- 1 | 62 | 63 | -------------------------------------------------------------------------------- /vue-ui/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | import { BootstrapVue } from 'bootstrap-vue' 5 | 6 | import 'bootstrap/dist/css/bootstrap.css' 7 | import 'bootstrap-vue/dist/bootstrap-vue.css' 8 | 9 | // Install BootstrapVue 10 | Vue.use(BootstrapVue) 11 | 12 | Vue.config.productionTip = false 13 | 14 | new Vue({ 15 | render: h => h(App), 16 | }).$mount('#app') 17 | --------------------------------------------------------------------------------