├── .ceignore ├── .dockerignore ├── .env.example ├── .github └── workflows │ └── publish-container-image-icr.yml ├── .gitignore ├── .terraform.lock.hcl ├── CHANGELOG.md ├── COPYRIGHT.MD ├── Dockerfile ├── LICENSE.md ├── README.md ├── ReadME-Images ├── Architecture.png ├── Architecture.svg ├── Architecture2.png ├── live-app.png ├── log-mon.png └── mean.jpeg ├── create-container-image.md ├── ibm_catalog.json ├── main.tf ├── nodejs-mean-stack.drawio ├── package-lock.json ├── package.json ├── public ├── css │ └── app.css ├── index.html ├── js │ └── app.js └── views │ ├── account.html │ ├── create_account.html │ ├── home.html │ ├── login.html │ └── protected.html ├── server.js └── server └── models └── user.model.js /.ceignore: -------------------------------------------------------------------------------- 1 | # Files listed here will not be deployed. Similar to .gitignore function 2 | 3 | node_modules/ 4 | .cfignore 5 | .env 6 | .env.example 7 | __temp__ca.pem -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | ReadME-Images 3 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | # This value is the salt used to encrypt sessions. Makeup a long string of text for this value. This is a MANDATORY value for your application. 2 | SESSION_SECRET= 3 | 4 | # URL for your mongodb instance on IBM Cloud. 5 | MONGODB_URL= 6 | 7 | # Certificate - needed for connecting to IBM Cloud Databases for MongoDB 8 | CERTIFICATE_BASE64= 9 | PORT=8080 10 | BIND=0.0.0.0 11 | -------------------------------------------------------------------------------- /.github/workflows/publish-container-image-icr.yml: -------------------------------------------------------------------------------- 1 | name: Publish container image 2 | 3 | on: 4 | release: 5 | types: [published] 6 | 7 | jobs: 8 | publish_to_registry: 9 | name: Build and push image to registry 10 | runs-on: ubuntu-latest 11 | env: 12 | ICR_NAMESPACE: solution-tutorials 13 | ICR_REPOSITORY: tutorial-mean-stack 14 | steps: 15 | - name: Check out the repo 16 | uses: actions/checkout@v4 17 | 18 | - name: Log in to Container Registry 19 | uses: docker/login-action@v3 20 | with: 21 | registry: icr.io 22 | username: ${{ secrets.ICR_USER }} 23 | password: ${{ secrets.ICR_TOKEN }} 24 | 25 | - name: Extract metadata (tags, labels) for Docker 26 | id: meta 27 | uses: docker/metadata-action@v5 28 | with: 29 | images: icr.io/${{ env.ICR_NAMESPACE }}/${{ env.ICR_REPOSITORY }} 30 | 31 | - name: Build and push image 32 | uses: docker/build-push-action@v5 33 | with: 34 | context: . 35 | push: true 36 | tags: ${{ steps.meta.outputs.tags }} 37 | labels: ${{ steps.meta.outputs.labels }} 38 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS 2 | # =========== 3 | .DS_Store 4 | ehthumbs.db 5 | Thumbs.db 6 | .env 7 | TODO.md 8 | mongodb.conf 9 | 10 | # Node and related ecosystem 11 | # ========================== 12 | .nodemonignore 13 | .sass-cache/ 14 | node_modules/ 15 | public/lib/ 16 | app/tests/coverage/ 17 | .bower-*/ 18 | .idea/ 19 | coverage/ 20 | data 21 | 22 | # Sublime editor 23 | # ============== 24 | .sublime-project 25 | *.sublime-project 26 | *.sublime-workspace 27 | 28 | # Eclipse project files 29 | # ===================== 30 | .project 31 | .settings/ 32 | .*.md.html 33 | .metadata 34 | *~.nib 35 | local.properties 36 | 37 | # IntelliJ 38 | # ======== 39 | *.iml 40 | 41 | # Cloud9 IDE 42 | # ========= 43 | .c9/ 44 | data/ 45 | mongodb.conf 46 | 47 | # Visual Studio 48 | # ========= 49 | *.suo 50 | *.ntvs* 51 | *.njsproj 52 | *.sln 53 | 54 | # Courtesy of https://github.com/meanjs/mean/blob/master/.gitignore 55 | __temp__ca.pem 56 | 57 | ### Vim ### 58 | # swap 59 | [._]*.sw[a-p] 60 | 61 | ## Terraform ### 62 | # Local .terraform directories 63 | **/.terraform/* 64 | 65 | # .tfstate files 66 | *.tfstate 67 | *.tfstate.* 68 | 69 | # place to keep environment variables 70 | local.env 71 | 72 | ### drawio *** 73 | # DrawIO temporary files 74 | *.dtmp 75 | *.bkp 76 | 77 | .vscode -------------------------------------------------------------------------------- /.terraform.lock.hcl: -------------------------------------------------------------------------------- 1 | # This file is maintained automatically by "terraform init". 2 | # Manual edits may be lost in future updates. 3 | 4 | provider "registry.terraform.io/hashicorp/local" { 5 | version = "2.4.0" 6 | hashes = [ 7 | "h1:ZUEYUmm2t4vxwzxy1BvN1wL6SDWrDxfH7pxtzX8c6d0=", 8 | "zh:53604cd29cb92538668fe09565c739358dc53ca56f9f11312b9d7de81e48fab9", 9 | "zh:66a46e9c508716a1c98efbf793092f03d50049fa4a83cd6b2251e9a06aca2acf", 10 | "zh:70a6f6a852dd83768d0778ce9817d81d4b3f073fab8fa570bff92dcb0824f732", 11 | "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", 12 | "zh:82a803f2f484c8b766e2e9c32343e9c89b91997b9f8d2697f9f3837f62926b35", 13 | "zh:9708a4e40d6cc4b8afd1352e5186e6e1502f6ae599867c120967aebe9d90ed04", 14 | "zh:973f65ce0d67c585f4ec250c1e634c9b22d9c4288b484ee2a871d7fa1e317406", 15 | "zh:c8fa0f98f9316e4cfef082aa9b785ba16e36ff754d6aba8b456dab9500e671c6", 16 | "zh:cfa5342a5f5188b20db246c73ac823918c189468e1382cb3c48a9c0c08fc5bf7", 17 | "zh:e0e2b477c7e899c63b06b38cd8684a893d834d6d0b5e9b033cedc06dd7ffe9e2", 18 | "zh:f62d7d05ea1ee566f732505200ab38d94315a4add27947a60afa29860822d3fc", 19 | "zh:fa7ce69dde358e172bd719014ad637634bbdabc49363104f4fca759b4b73f2ce", 20 | ] 21 | } 22 | 23 | provider "registry.terraform.io/hashicorp/random" { 24 | version = "3.5.1" 25 | hashes = [ 26 | "h1:IL9mSatmwov+e0+++YX2V6uel+dV6bn+fC/cnGDK3Ck=", 27 | "zh:04e3fbd610cb52c1017d282531364b9c53ef72b6bc533acb2a90671957324a64", 28 | "zh:119197103301ebaf7efb91df8f0b6e0dd31e6ff943d231af35ee1831c599188d", 29 | "zh:4d2b219d09abf3b1bb4df93d399ed156cadd61f44ad3baf5cf2954df2fba0831", 30 | "zh:6130bdde527587bbe2dcaa7150363e96dbc5250ea20154176d82bc69df5d4ce3", 31 | "zh:6cc326cd4000f724d3086ee05587e7710f032f94fc9af35e96a386a1c6f2214f", 32 | "zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3", 33 | "zh:b6d88e1d28cf2dfa24e9fdcc3efc77adcdc1c3c3b5c7ce503a423efbdd6de57b", 34 | "zh:ba74c592622ecbcef9dc2a4d81ed321c4e44cddf7da799faa324da9bf52a22b2", 35 | "zh:c7c5cde98fe4ef1143bd1b3ec5dc04baf0d4cc3ca2c5c7d40d17c0e9b2076865", 36 | "zh:dac4bad52c940cd0dfc27893507c1e92393846b024c5a9db159a93c534a3da03", 37 | "zh:de8febe2a2acd9ac454b844a4106ed295ae9520ef54dc8ed2faf29f12716b602", 38 | "zh:eab0d0495e7e711cca367f7d4df6e322e6c562fc52151ec931176115b83ed014", 39 | ] 40 | } 41 | 42 | provider "registry.terraform.io/ibm-cloud/ibm" { 43 | version = "1.56.2" 44 | constraints = ">= 1.51.0" 45 | hashes = [ 46 | "h1:ZgpLQAY2rlxsTovOvwFzPAPnlvXfhsz0OUQWHUKwFZo=", 47 | "zh:12e56b367edf5b6453a6eecd03eac61b9245de10848dc975bde7b4e8db6be3c6", 48 | "zh:2962aefb37f405031f0d830ede2143f027fa046ea5464a948629c4ee3b120e4f", 49 | "zh:b6c37bf077ac3b0670671058970b2812e38445b059cb0e9c13fb406fb8ea92c7", 50 | "zh:baa1f9dfb088a80023d8dc7ecaa06737781e911d4ff6856c182e408561d112eb", 51 | "zh:ca77f7cb49162325d7dd37984e6fb88f46bdbae83c835bf6a87103a30a431c02", 52 | "zh:fbe355b621ac188481f2dfc80c25bf035de5cbf2f1c10a5483a18f848c2a48b4", 53 | ] 54 | } 55 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | ## 1.0.7 3 | Added one check: IBM Cloud Security Best Practices, 2.115 Ensure Databases for MongoDB version is up-to-date 4 | ## 1.0.6 5 | Changed compliance controls to version 1.2.0 changed rule to 1.46 6 | ## 1.0.1 7 | Added support terraform, schematics and IBM Catalog -------------------------------------------------------------------------------- /COPYRIGHT.MD: -------------------------------------------------------------------------------- 1 | Copyright IBM Corp. 2015 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:16-alpine 2 | 3 | # Create app directory 4 | RUN mkdir /src 5 | WORKDIR /src 6 | 7 | # If you are building your code for production 8 | # RUN npm ci --only=production 9 | 10 | COPY ./package*.json /src/ 11 | 12 | RUN npm install 13 | 14 | # Bundle app source 15 | COPY ./server /src/server 16 | COPY ./public /src/public 17 | COPY ./server.js /src/server.js 18 | 19 | ENV PORT 8080 20 | EXPOSE 8080 21 | CMD [ "npm", "start" ] 22 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Modern Web Application using MEAN stack 2 | 3 | This is a basic boilerplate for the MEAN stack ([MongoDB](https://www.mongodb.org/), [Express](http://expressjs.com/), [AngularJS](https://angularjs.org/) and [Node.js](https://nodejs.org)) on [IBM Cloud](https://cloud.ibm.com). 4 | 5 | This application uses [Databases for MongoDB](https://cloud.ibm.com/catalog/services/databases-for-mongodb) and [Code Engine](https://cloud.ibm.com/codeengine) on IBM Cloud. 6 | 7 | The code and detailed steps are discussed in the [IBM Cloud solution tutorial](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-tutorials) titled [Modern web application using MEAN stack](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-mean-stack). 8 | 9 | 10 | 11 | #### Features 12 | - MVC project structure 13 | - Create, edit and delete user accounts 14 | - Authentication with username/password 15 | - Protected routes that can only be accessed by authenticated users 16 | - Bootstrap CSS framework 17 | - HTTPS built-in if deployed to [IBM Cloud](#deploy-to-ibm-cloud) 18 | - [Mongoose](https://github.com/Automattic/mongoose) for MongoDB interactions. 19 | - [PassportJS](http://passportjs.org) for authentication, with over 300 authentication strategies to pick from. 20 | 21 | ## Application Requirements 22 | - [Node.js & NPM](https://nodejs.org/en/download/) 23 | - [IBM Cloud Databases for MongoDB](https://cloud.ibm.com/catalog/services/databases-for-mongodb) 24 | - [Code Engine Command Line Tool](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli) 25 | 26 | ## Files & Folders 27 | 28 | | File | Description | 29 | | ---------------------------------- | ------------------------------------------------------------ | 30 | | [**.env.example**](./.env.example) | Set custom [environment variables](https://en.wikipedia.org/wiki/Environment_variable) for your application. This is the proper way to store credentials and other sensitive values. 31 | | [**server.js**](./server.js) | Main server file that the Node.js runtime uses. It contains all the server logic. 32 | | [**/server**](./server) | Folder for files used by the Node.js server 33 | | [/server/models/**user.model.js**](./server/models/user.model.js) | Model for storing users in MongoDB 34 | | [**/public**](./public) | Folder for files delivered to users, such as html and css files 35 | | [/public/js/**app.js**](./public/js/app.js) | Angular application for manipulating and rendering data in browser 36 | 37 | ## Application 38 | - **MongoDB** stores user account information and persists sessions (so that a server crash does not log out all users.) 39 | - **Express** functions Node.js middleware to handle all HTTP requests and routing. 40 | - **Angular** handles HTML templating and data manipulation. 41 | - **Node.js** is the runtime for the application. 42 | 43 | There is also generous commenting throughout the application which helps explain critical parts of the application. 44 | 45 | ## Running locally 46 | 47 | 1. Clone or download this repo onto your machine. 48 | 1. Install [application requirements](#application-requirements) if not done so already. 49 | 1. Open application directory in your terminal and run `npm install` 50 | 1. If you don't have an account, [create a free one here](https://cloud.ibm.com). 51 | 1. Login to your account via the command line: `ibmcloud login` 52 | 1. Target your desired region `ibmcloud target -r ca-tor` 53 | 1. Create the instance of Databases for MongoDB on IBM Cloud: `ibmcloud resource service-instance-create mean-starter-mongodb databases-for-mongodb standard ca-tor` 54 | 1. Copy `.env.example` file to `.env`. Edir `.env` to fill it the required values. You can run `ibmcloud resource service-key-create mean-starter-mongodb-key --instance-name mean-starter-mongodb` to obtain the MONGODB_URL and CERTIFICATE_BASE64. Choose your own SESSION_SECRET. 55 | 1. Run `node server.js` to start your app 56 | 1. Open a browser to the link provided in the terminal prompt to view your app 57 | 58 | > Note that the code assumes a secured connection to MongoDB using SSL and a certificate. This way you can run the app locally but connect to IBM Cloud Databases for MongoDB. 59 | 60 | An alternative way of running locally is using the provided `Dockerfile`. 61 | - Install docker on your machine and build the docker image 62 | ``` 63 | docker build . -t mean-stack:v1.0.0 64 | ``` 65 | - Run the app locally 66 | ``` 67 | docker run -p 8080:8080 --env-file .env -ti mean-stack:v1.0.0 68 | ``` 69 | 70 | ## Provision with Terraform 71 | The steps of creating the resouces (database, code engine project, secret, application, .env file, ...) described in [Modern web application using MEAN stack](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-mean-stack) are captured in the terraform file [main.tf](main.tf). 72 | 73 | [Getting started with solution tutorials](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-tutorials) has a description of how to get started with terraform on a workstation. 74 | 75 | 76 | ``` 77 | terraform init 78 | terraform apply 79 | ``` 80 | 81 | ## Provision with Schematics 82 | Schematics is a cloud based Infrastructure as Code runner with cloud based state. It leverages the Terraform configuration described in the previous section. 83 | 84 | [Create a Schematics Workspace from this github repository](https://cloud.ibm.com/schematics/workspaces/create?repository=https://github.com/IBM-Cloud/nodejs-MEAN-stack&terraform_version=terraform_v1.4) 85 | 86 | The link above should have opened a Schematics workspace in the create dialog with the github repository pre-configured and terraform 1.4 selected. Change the **Workspace name**, **Resource group**, and **Location** as desired. This will be the resource group of the workspace. The resource group of the resources created will be configured in schematics. Click **Create**. 87 | 88 | In the Schematics workspace you can configure the variables before clicking **Apply plan** to provision the resources. Check out the **Jobs** tab - scroll to about the end of the Logs to see the endpoint URL that can be used to access the application. 89 | 90 | ## Create private catalog product for a Deployable Architecture 91 | In the IBM Cloud console create a private catalog and then add a product to the catalog: 92 | - Product type: Deployable architecture. 93 | - Deliver method: Terraform. 94 | - Public repository: Open the [releases](https://github.com/IBM-Cloud/nodejs-MEAN-stack/releases) and right click on the source.code.tar.gz file and paste in the string. Example: https://github.com/IBM-Cloud/nodejs-MEAN-stack/archive/refs/tags/1.0.3.tar.gz. 95 | - Variation: Standard. 96 | - Rest of the values are clear. 97 | 98 | Click on the **Version** in the Version list. It will walk through a wizard where the defaults are correct, just click **Next** in each page till you reach Validate version, and click **Validate**, to create a schematics workspace and resources. 99 | 100 | After validation is complete create/configure or open the Security and Compliance and run a scan over the entire account using the **IBM Cloud Security Best Practices version 1.2.0** profile by opening the profile and click Attach in the action menu. Frequency can be set to 30 days since the first scan will be run presently and that will provide the results that are required. 101 | 102 | ## Create a Project 103 | Create a project and then create a configuration in the project using the private catalog DA product version created in the previous step. 104 | 105 | ## Contribute 106 | Please create a pull request with your desired changes. 107 | 108 | ## Troubleshooting 109 | The primary source of debugging information for your app running in the cloud are the logs. To see them, use the [Code Engine](https://cloud.ibm.com/codeengine/projects) web interface. 110 | 111 | 112 | 113 | For more detailed information on troubleshooting your application, see the [Troubleshooting apps section](https://cloud.ibm.com/docs/codeengine?topic=codeengine-troubleshoot-apps) in the documentation. 114 | 115 | ## License 116 | See [LICENSE.MD](https://github.com/IBM-Cloud/nodejs-MEAN-stack/blob/master/LICENSE.md) for license information. 117 | -------------------------------------------------------------------------------- /ReadME-Images/Architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/nodejs-MEAN-stack/76703e45a6387b8d92a09f9ebc49c6213e58481b/ReadME-Images/Architecture.png -------------------------------------------------------------------------------- /ReadME-Images/Architecture.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 |
CODE ENGINE
CODE EN...
DATABSES
FOR MONGODB
DATABSE...
USER
USER
1
1
2
2
CLOUD
CLOUD
USER
USER
Text is not SVG - cannot display
-------------------------------------------------------------------------------- /ReadME-Images/Architecture2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/nodejs-MEAN-stack/76703e45a6387b8d92a09f9ebc49c6213e58481b/ReadME-Images/Architecture2.png -------------------------------------------------------------------------------- /ReadME-Images/live-app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/nodejs-MEAN-stack/76703e45a6387b8d92a09f9ebc49c6213e58481b/ReadME-Images/live-app.png -------------------------------------------------------------------------------- /ReadME-Images/log-mon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/nodejs-MEAN-stack/76703e45a6387b8d92a09f9ebc49c6213e58481b/ReadME-Images/log-mon.png -------------------------------------------------------------------------------- /ReadME-Images/mean.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM-Cloud/nodejs-MEAN-stack/76703e45a6387b8d92a09f9ebc49c6213e58481b/ReadME-Images/mean.jpeg -------------------------------------------------------------------------------- /create-container-image.md: -------------------------------------------------------------------------------- 1 | # Create Container Image 2 | 3 | > If you are using IBM Cloud Code Engine to run your container image and the containter registry used is the IBM Cloud Container Registry or a non-Public registry, you will be required to setup a secret for reading the image. Follow the steps outlined in here: https://cloud.ibm.com/docs/codeengine?topic=codeengine-add-registry to do just that. 4 | 5 | ## Using Docker build commands 6 | This example is using Docker to build the image. 7 | 8 | You will use the provided `Dockerfile`. 9 | - Install docker on your machine and build the docker image 10 | ``` 11 | docker build . -t mean-stack:v1.0.0 12 | ``` 13 | - Run the app locally to verify it works as expected 14 | ``` 15 | docker run -p 8080:8080 --env-file .env -ti mean-stack:v1.0.0 16 | 17 | - Login to your container registry. 18 | > Note: If using the IBM Cloud Container registry, don't forget to use `ibmcloud cr login` 19 | 20 | - Tag the image with your container registry's namespace/repository name. 21 | > Note: For IBM Cloud Container Registry in the US: `docker tag mean-stack:v1.0.0 us.icr.io//mean-stack:1.0.0` 22 | 23 | - Push the image. 24 | > Note: For IBM Cloud Container Registry in the US: `docker push mean-stack:v1.0.0 us.icr.io//mean-stack:1.0.0` 25 | 26 | - If you are using IBM Cloud Code Engine to run your container image and the containter registry used is the IBM Cloud Container Registry or a non-Public registry, you will be required to setup a secret for reading the image. Follow the steps outlined in here: https://cloud.ibm.com/docs/codeengine?topic=codeengine-add-registry to do just that. 27 | 28 | ## Using Code Engine build commands 29 | Don't have Docker installed locally, this example uses Code Engine to build and publish the image. 30 | 31 | You will use the provided `Dockerfile`. 32 | 33 | - Create a registry secret to push images to the container registry you are using: 34 | ``` 35 | ibmcloud ce registry create --name myregistry --server --username --password 36 | ``` 37 | > Note: For IBM Cloud Container Registry: `ibmcloud ce registry create --name ` you are prompted for your IAM APIkey value and the username is defaulted to `iamapikey`. 38 | 39 | - Create a new image build: 40 | ``` 41 | ibmcloud ce build create --name mean-stack-local-build --build-type local --image /sample --registry-secret --dockerfile Dockerfile --strategy dockerfile --size medium 42 | ``` 43 | > Note: For IBM Cloud Container Registry in the US: `ibmcloud ce build create --name mean-stack-local-build --build-type local --image us.icr.io//sample --registry-secret --dockerfile Dockerfile --strategy dockerfile --size medium` 44 | 45 | - Run the build and push to the registry 46 | ``` 47 | ibmcloud ce buildrun submit --build mean-stack-local-build --source . 48 | ``` 49 | 50 | -------------------------------------------------------------------------------- /ibm_catalog.json: -------------------------------------------------------------------------------- 1 | { 2 | "products": [ 3 | { 4 | "name": "nodejs-MEAN-stack", 5 | "label": "nodejs MEAN stack", 6 | "product_kind": "solution", 7 | "version": "1.0.7", 8 | "tags": [ 9 | "MEAN-stack", 10 | "Technology" 11 | ], 12 | "keywords": [ 13 | "MEAN", 14 | "code-engine", 15 | "mongodb" 16 | ], 17 | "short_description": "MEAN stack using Code Engine and Mongodb", 18 | "long_description": "A demonstration deployable architecture based on the MEAN stack. Leverages Code Engine to host the application and Mongodb for the database.", 19 | "offering_docs_url": "https://github.com/IBM-Cloud/nodejs-MEAN-stack", 20 | "support_details": "This is a demonstration and no official support is given.", 21 | "flavors": [ 22 | { 23 | "label": "Standard", 24 | "name": "mean-stack", 25 | "install_type": "fullstack", 26 | "licenses": [ 27 | { 28 | "name": "Apache License 2.0", 29 | "url": "https://github.com/IBM-Cloud/nodejs-MEAN-stack/blob/master/LICENSE.md" 30 | } 31 | ], 32 | "configuration": [ 33 | { 34 | "key": "prefix", 35 | "required": false, 36 | "description": "prefix string for all resources if not provided mean-stack-RANDOM string is generated" 37 | }, 38 | { 39 | "key": "use_default_resource_group", 40 | "type": "boolean", 41 | "required": false, 42 | "description": "if true use the account default resource group if false mean-stack-RANDOM string is used to create a new resource group" 43 | } 44 | ], 45 | "outputs": [ 46 | { 47 | "resource_group_name": "resource_group_name", 48 | "endpoint": "endpoint" 49 | } 50 | ], 51 | "compliance": { 52 | "authority": "scc-v3", 53 | "controls": [ 54 | { 55 | "profile": { 56 | "name": "IBM Cloud Security Best Practices", 57 | "version": "1.2.0" 58 | }, 59 | "names": [ 60 | "2.115" 61 | ] 62 | } 63 | ] 64 | }, 65 | "iam_permissions": [ 66 | { 67 | "service_name": "iam-groups", 68 | "role_crns": [ 69 | "crn:v1:bluemix:public:iam::::role:Administrator" 70 | ] 71 | }, 72 | { 73 | "service_name": "codeengine", 74 | "role_crns": [ 75 | "crn:v1:bluemix:public:iam::::role:Administrator" 76 | ] 77 | }, 78 | { 79 | "service_name": "databases-for-mongodb", 80 | "role_crns": [ 81 | "crn:v1:bluemix:public:iam::::role:Administrator" 82 | ] 83 | } 84 | ], 85 | "release_notes_url": "https://github.com/IBM-Cloud/nodejs-MEAN-stack/blob/master/CHANGELOG.md", 86 | "architecture": { 87 | "diagrams": [ 88 | { 89 | "diagram": { 90 | "caption": "Architecture diagram", 91 | "url": "https://raw.githubusercontent.com/IBM-Cloud/nodejs-MEAN-stack/master/ReadME-Images/Architecture.svg", 92 | "metadata": [] 93 | }, 94 | "description": "MEAN stack." 95 | } 96 | ] 97 | } 98 | } 99 | ] 100 | } 101 | ] 102 | } -------------------------------------------------------------------------------- /main.tf: -------------------------------------------------------------------------------- 1 | // variables ///////////////////////////// 2 | variable "region" { 3 | default = "us-south" 4 | description = "Region where to find and create resources" 5 | } 6 | 7 | variable "prefix" { 8 | default = "" 9 | description = "Prefix for all resources created by the template" 10 | } 11 | 12 | variable "use_default_resource_group" { 13 | type = bool 14 | default = true 15 | } 16 | 17 | variable "tags" { 18 | default = ["terraform", "mean-stack"] 19 | } 20 | 21 | // terraform, provider ///////////////////////////// 22 | terraform { 23 | required_version = ">= 1.4, <= 1.5.5" 24 | required_providers { 25 | ibm = { 26 | source = "IBM-Cloud/ibm" 27 | version = ">= 1.51" 28 | } 29 | } 30 | } 31 | 32 | provider "ibm" { 33 | region = var.region 34 | } 35 | 36 | resource "random_string" "random" { 37 | count = var.prefix == "" ? 1 : 0 38 | length = 6 39 | special = false 40 | } 41 | 42 | // basename, resource group id ///////////////////////////// 43 | locals { 44 | basename = lower(var.prefix == "" ? "mean-stack-${random_string.random.0.result}" : var.prefix) 45 | resource_group_id = var.use_default_resource_group ? data.ibm_resource_group.group.0.id : ibm_resource_group.group.0.id 46 | resource_group_name = var.use_default_resource_group ? data.ibm_resource_group.group.0.name : ibm_resource_group.group.0.name 47 | } 48 | 49 | # Create a resource group or reuse an existing one 50 | resource "ibm_resource_group" "group" { 51 | count = var.use_default_resource_group ? 0 : 1 52 | name = "${local.basename}-group" 53 | tags = var.tags 54 | } 55 | 56 | data "ibm_resource_group" "group" { 57 | count = var.use_default_resource_group ? 1 : 0 58 | is_default = true 59 | } 60 | 61 | resource "random_password" "password" { 62 | length = 16 63 | special = false 64 | } 65 | 66 | 67 | // mongodb ///////////////////////////// 68 | resource "ibm_database" "mongodb" { 69 | resource_group_id = local.resource_group_id 70 | name = "${local.basename}-mongodb" 71 | service = "databases-for-mongodb" 72 | plan = "standard" 73 | location = var.region 74 | } 75 | 76 | resource "ibm_resource_key" "mongodb_key" { 77 | name = "${local.basename}-mongodb-key" 78 | role = "Viewer" 79 | resource_instance_id = ibm_database.mongodb.id 80 | } 81 | 82 | locals { 83 | SESSION_SECRET = random_password.password.result 84 | MONGODB_URL = ibm_resource_key.mongodb_key.credentials["connection.mongodb.composed.0"] 85 | CERTIFICATE_BASE64 = ibm_resource_key.mongodb_key.credentials["connection.mongodb.certificate.certificate_base64"] 86 | PORT = "8080" 87 | BIND = "0.0.0.0" 88 | } 89 | 90 | resource "local_file" "env" { 91 | content = <<-EOT 92 | SESSION_SECRET=${local.SESSION_SECRET} 93 | MONGODB_URL=${local.MONGODB_URL} 94 | CERTIFICATE_BASE64=${local.CERTIFICATE_BASE64} 95 | PORT=${local.PORT} 96 | BIND=${local.BIND} 97 | EOT 98 | filename = "${path.module}/.env" 99 | } 100 | 101 | // code engine ///////////////////////////// 102 | resource "ibm_code_engine_project" "ce_project" { 103 | name = local.basename 104 | resource_group_id = local.resource_group_id 105 | } 106 | 107 | resource "ibm_code_engine_secret" "ce_secret" { 108 | project_id = ibm_code_engine_project.ce_project.id 109 | name = "${local.basename}-secrets" 110 | format = "generic" 111 | 112 | data = { 113 | SESSION_SECRET = local.SESSION_SECRET 114 | MONGODB_URL = local.MONGODB_URL 115 | CERTIFICATE_BASE64 = local.CERTIFICATE_BASE64 116 | PORT = local.PORT 117 | BIND = local.BIND 118 | } 119 | } 120 | 121 | resource "ibm_code_engine_app" "code_engine_app_instance" { 122 | project_id = ibm_code_engine_project.ce_project.id 123 | name = "${local.basename}-application" 124 | image_reference = "icr.io/solution-tutorials/tutorial-mean-stack" 125 | scale_min_instances = 1 126 | scale_max_instances = 2 127 | 128 | run_env_variables { 129 | reference = ibm_code_engine_secret.ce_secret.name 130 | type = "secret_full_reference" 131 | } 132 | } 133 | 134 | output "endpoint" { 135 | value = ibm_code_engine_app.code_engine_app_instance.endpoint 136 | } 137 | 138 | output "resource_group_name" { 139 | value = local.resource_group_name 140 | } 141 | -------------------------------------------------------------------------------- /nodejs-mean-stack.drawio: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mean-boilerplate-ibm-cloud", 3 | "version": "1.1.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "mean-boilerplate-ibm-cloud", 9 | "version": "1.1.0", 10 | "license": "Apache-2.0", 11 | "dependencies": { 12 | "bcrypt": "5.0.1", 13 | "body-parser": "1.19.0", 14 | "cfenv": "1.2.4", 15 | "connect-mongo": "4.6.0", 16 | "cookie-parser": "1.4.6", 17 | "dotenv": "10.0.0", 18 | "express": "4.17.1", 19 | "express-session": "1.17.2", 20 | "express-validator": "6.13.0", 21 | "mongoose": "6.0.14", 22 | "passport": "0.5.0", 23 | "passport-local": "1.0.0" 24 | }, 25 | "devDependencies": {}, 26 | "engines": { 27 | "node": ">=14" 28 | } 29 | }, 30 | "node_modules/@mapbox/node-pre-gyp": { 31 | "version": "1.0.7", 32 | "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.7.tgz", 33 | "integrity": "sha512-PplSvl4pJ5N3BkVjAdDzpPhVUPdC73JgttkR+LnBx2OORC1GCQsBjUeEuipf9uOaAM1SbxcdZFfR3KDTKm2S0A==", 34 | "dependencies": { 35 | "detect-libc": "^1.0.3", 36 | "https-proxy-agent": "^5.0.0", 37 | "make-dir": "^3.1.0", 38 | "node-fetch": "^2.6.5", 39 | "nopt": "^5.0.0", 40 | "npmlog": "^6.0.0", 41 | "rimraf": "^3.0.2", 42 | "semver": "^7.3.5", 43 | "tar": "^6.1.11" 44 | }, 45 | "bin": { 46 | "node-pre-gyp": "bin/node-pre-gyp" 47 | } 48 | }, 49 | "node_modules/@types/node": { 50 | "version": "16.11.11", 51 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.11.tgz", 52 | "integrity": "sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==" 53 | }, 54 | "node_modules/@types/webidl-conversions": { 55 | "version": "6.1.1", 56 | "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz", 57 | "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q==" 58 | }, 59 | "node_modules/@types/whatwg-url": { 60 | "version": "8.2.1", 61 | "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz", 62 | "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==", 63 | "dependencies": { 64 | "@types/node": "*", 65 | "@types/webidl-conversions": "*" 66 | } 67 | }, 68 | "node_modules/abbrev": { 69 | "version": "1.1.1", 70 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 71 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" 72 | }, 73 | "node_modules/accepts": { 74 | "version": "1.3.7", 75 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 76 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 77 | "dependencies": { 78 | "mime-types": "~2.1.24", 79 | "negotiator": "0.6.2" 80 | }, 81 | "engines": { 82 | "node": ">= 0.6" 83 | } 84 | }, 85 | "node_modules/agent-base": { 86 | "version": "6.0.2", 87 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 88 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 89 | "dependencies": { 90 | "debug": "4" 91 | }, 92 | "engines": { 93 | "node": ">= 6.0.0" 94 | } 95 | }, 96 | "node_modules/ansi-regex": { 97 | "version": "5.0.1", 98 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 99 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 100 | "engines": { 101 | "node": ">=8" 102 | } 103 | }, 104 | "node_modules/aproba": { 105 | "version": "2.0.0", 106 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", 107 | "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" 108 | }, 109 | "node_modules/are-we-there-yet": { 110 | "version": "2.0.0", 111 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", 112 | "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", 113 | "dependencies": { 114 | "delegates": "^1.0.0", 115 | "readable-stream": "^3.6.0" 116 | }, 117 | "engines": { 118 | "node": ">=10" 119 | } 120 | }, 121 | "node_modules/argparse": { 122 | "version": "2.0.1", 123 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 124 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" 125 | }, 126 | "node_modules/array-flatten": { 127 | "version": "1.1.1", 128 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 129 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 130 | }, 131 | "node_modules/asn1.js": { 132 | "version": "5.4.1", 133 | "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", 134 | "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", 135 | "dependencies": { 136 | "bn.js": "^4.0.0", 137 | "inherits": "^2.0.1", 138 | "minimalistic-assert": "^1.0.0", 139 | "safer-buffer": "^2.1.0" 140 | } 141 | }, 142 | "node_modules/balanced-match": { 143 | "version": "1.0.2", 144 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 145 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 146 | }, 147 | "node_modules/base64-js": { 148 | "version": "1.5.1", 149 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 150 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 151 | "funding": [ 152 | { 153 | "type": "github", 154 | "url": "https://github.com/sponsors/feross" 155 | }, 156 | { 157 | "type": "patreon", 158 | "url": "https://www.patreon.com/feross" 159 | }, 160 | { 161 | "type": "consulting", 162 | "url": "https://feross.org/support" 163 | } 164 | ] 165 | }, 166 | "node_modules/bcrypt": { 167 | "version": "5.0.1", 168 | "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.0.1.tgz", 169 | "integrity": "sha512-9BTgmrhZM2t1bNuDtrtIMVSmmxZBrJ71n8Wg+YgdjHuIWYF7SjjmCPZFB+/5i/o/PIeRpwVJR3P+NrpIItUjqw==", 170 | "hasInstallScript": true, 171 | "dependencies": { 172 | "@mapbox/node-pre-gyp": "^1.0.0", 173 | "node-addon-api": "^3.1.0" 174 | }, 175 | "engines": { 176 | "node": ">= 10.0.0" 177 | } 178 | }, 179 | "node_modules/bn.js": { 180 | "version": "4.12.0", 181 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 182 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" 183 | }, 184 | "node_modules/body-parser": { 185 | "version": "1.19.0", 186 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 187 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 188 | "dependencies": { 189 | "bytes": "3.1.0", 190 | "content-type": "~1.0.4", 191 | "debug": "2.6.9", 192 | "depd": "~1.1.2", 193 | "http-errors": "1.7.2", 194 | "iconv-lite": "0.4.24", 195 | "on-finished": "~2.3.0", 196 | "qs": "6.7.0", 197 | "raw-body": "2.4.0", 198 | "type-is": "~1.6.17" 199 | }, 200 | "engines": { 201 | "node": ">= 0.8" 202 | } 203 | }, 204 | "node_modules/body-parser/node_modules/debug": { 205 | "version": "2.6.9", 206 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 207 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 208 | "dependencies": { 209 | "ms": "2.0.0" 210 | } 211 | }, 212 | "node_modules/body-parser/node_modules/ms": { 213 | "version": "2.0.0", 214 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 215 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 216 | }, 217 | "node_modules/brace-expansion": { 218 | "version": "1.1.11", 219 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 220 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 221 | "dependencies": { 222 | "balanced-match": "^1.0.0", 223 | "concat-map": "0.0.1" 224 | } 225 | }, 226 | "node_modules/bson": { 227 | "version": "4.6.0", 228 | "resolved": "https://registry.npmjs.org/bson/-/bson-4.6.0.tgz", 229 | "integrity": "sha512-8jw1NU1hglS+Da1jDOUYuNcBJ4cNHCFIqzlwoFNnsTOg2R/ox0aTYcTiBN4dzRa9q7Cvy6XErh3L8ReTEb9AQQ==", 230 | "dependencies": { 231 | "buffer": "^5.6.0" 232 | }, 233 | "engines": { 234 | "node": ">=6.9.0" 235 | } 236 | }, 237 | "node_modules/buffer": { 238 | "version": "5.7.1", 239 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", 240 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", 241 | "funding": [ 242 | { 243 | "type": "github", 244 | "url": "https://github.com/sponsors/feross" 245 | }, 246 | { 247 | "type": "patreon", 248 | "url": "https://www.patreon.com/feross" 249 | }, 250 | { 251 | "type": "consulting", 252 | "url": "https://feross.org/support" 253 | } 254 | ], 255 | "dependencies": { 256 | "base64-js": "^1.3.1", 257 | "ieee754": "^1.1.13" 258 | } 259 | }, 260 | "node_modules/bytes": { 261 | "version": "3.1.0", 262 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 263 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", 264 | "engines": { 265 | "node": ">= 0.8" 266 | } 267 | }, 268 | "node_modules/cfenv": { 269 | "version": "1.2.4", 270 | "resolved": "https://registry.npmjs.org/cfenv/-/cfenv-1.2.4.tgz", 271 | "integrity": "sha512-jWQ+3UXZauYyOXwHpMm74C0wM7+LDQmgMxWBGchg4as7+YyTL0pyx/CZ3dEvJyZVOB4SgKATc5naJky6cd9zYw==", 272 | "dependencies": { 273 | "js-yaml": "4.0.x", 274 | "ports": "1.1.x", 275 | "underscore": "1.12.x" 276 | } 277 | }, 278 | "node_modules/chownr": { 279 | "version": "2.0.0", 280 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", 281 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", 282 | "engines": { 283 | "node": ">=10" 284 | } 285 | }, 286 | "node_modules/color-support": { 287 | "version": "1.1.3", 288 | "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", 289 | "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", 290 | "bin": { 291 | "color-support": "bin.js" 292 | } 293 | }, 294 | "node_modules/concat-map": { 295 | "version": "0.0.1", 296 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 297 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 298 | }, 299 | "node_modules/connect-mongo": { 300 | "version": "4.6.0", 301 | "resolved": "https://registry.npmjs.org/connect-mongo/-/connect-mongo-4.6.0.tgz", 302 | "integrity": "sha512-8new4Z7NLP3CGP65Aw6ls3xDBeKVvHRSh39CXuDZTQsvpeeU9oNMzfFgvqmHqZ6gWpxIl663RyoVEmCAGf1yOg==", 303 | "dependencies": { 304 | "debug": "^4.3.1", 305 | "kruptein": "^3.0.0" 306 | }, 307 | "engines": { 308 | "node": ">=10" 309 | }, 310 | "peerDependencies": { 311 | "mongodb": "^4.1.0" 312 | } 313 | }, 314 | "node_modules/console-control-strings": { 315 | "version": "1.1.0", 316 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", 317 | "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" 318 | }, 319 | "node_modules/content-disposition": { 320 | "version": "0.5.3", 321 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 322 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 323 | "dependencies": { 324 | "safe-buffer": "5.1.2" 325 | }, 326 | "engines": { 327 | "node": ">= 0.6" 328 | } 329 | }, 330 | "node_modules/content-type": { 331 | "version": "1.0.4", 332 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 333 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", 334 | "engines": { 335 | "node": ">= 0.6" 336 | } 337 | }, 338 | "node_modules/cookie": { 339 | "version": "0.4.0", 340 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 341 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", 342 | "engines": { 343 | "node": ">= 0.6" 344 | } 345 | }, 346 | "node_modules/cookie-parser": { 347 | "version": "1.4.6", 348 | "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.6.tgz", 349 | "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==", 350 | "dependencies": { 351 | "cookie": "0.4.1", 352 | "cookie-signature": "1.0.6" 353 | }, 354 | "engines": { 355 | "node": ">= 0.8.0" 356 | } 357 | }, 358 | "node_modules/cookie-parser/node_modules/cookie": { 359 | "version": "0.4.1", 360 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", 361 | "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", 362 | "engines": { 363 | "node": ">= 0.6" 364 | } 365 | }, 366 | "node_modules/cookie-signature": { 367 | "version": "1.0.6", 368 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 369 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 370 | }, 371 | "node_modules/debug": { 372 | "version": "4.3.3", 373 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", 374 | "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", 375 | "dependencies": { 376 | "ms": "2.1.2" 377 | }, 378 | "engines": { 379 | "node": ">=6.0" 380 | }, 381 | "peerDependenciesMeta": { 382 | "supports-color": { 383 | "optional": true 384 | } 385 | } 386 | }, 387 | "node_modules/delegates": { 388 | "version": "1.0.0", 389 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", 390 | "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" 391 | }, 392 | "node_modules/denque": { 393 | "version": "2.0.1", 394 | "resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz", 395 | "integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==", 396 | "engines": { 397 | "node": ">=0.10" 398 | } 399 | }, 400 | "node_modules/depd": { 401 | "version": "1.1.2", 402 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 403 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", 404 | "engines": { 405 | "node": ">= 0.6" 406 | } 407 | }, 408 | "node_modules/destroy": { 409 | "version": "1.0.4", 410 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 411 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 412 | }, 413 | "node_modules/detect-libc": { 414 | "version": "1.0.3", 415 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", 416 | "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", 417 | "bin": { 418 | "detect-libc": "bin/detect-libc.js" 419 | }, 420 | "engines": { 421 | "node": ">=0.10" 422 | } 423 | }, 424 | "node_modules/dotenv": { 425 | "version": "10.0.0", 426 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", 427 | "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", 428 | "engines": { 429 | "node": ">=10" 430 | } 431 | }, 432 | "node_modules/ee-first": { 433 | "version": "1.1.1", 434 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 435 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 436 | }, 437 | "node_modules/emoji-regex": { 438 | "version": "8.0.0", 439 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 440 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 441 | }, 442 | "node_modules/encodeurl": { 443 | "version": "1.0.2", 444 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 445 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", 446 | "engines": { 447 | "node": ">= 0.8" 448 | } 449 | }, 450 | "node_modules/escape-html": { 451 | "version": "1.0.3", 452 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 453 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 454 | }, 455 | "node_modules/etag": { 456 | "version": "1.8.1", 457 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 458 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", 459 | "engines": { 460 | "node": ">= 0.6" 461 | } 462 | }, 463 | "node_modules/express": { 464 | "version": "4.17.1", 465 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 466 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 467 | "dependencies": { 468 | "accepts": "~1.3.7", 469 | "array-flatten": "1.1.1", 470 | "body-parser": "1.19.0", 471 | "content-disposition": "0.5.3", 472 | "content-type": "~1.0.4", 473 | "cookie": "0.4.0", 474 | "cookie-signature": "1.0.6", 475 | "debug": "2.6.9", 476 | "depd": "~1.1.2", 477 | "encodeurl": "~1.0.2", 478 | "escape-html": "~1.0.3", 479 | "etag": "~1.8.1", 480 | "finalhandler": "~1.1.2", 481 | "fresh": "0.5.2", 482 | "merge-descriptors": "1.0.1", 483 | "methods": "~1.1.2", 484 | "on-finished": "~2.3.0", 485 | "parseurl": "~1.3.3", 486 | "path-to-regexp": "0.1.7", 487 | "proxy-addr": "~2.0.5", 488 | "qs": "6.7.0", 489 | "range-parser": "~1.2.1", 490 | "safe-buffer": "5.1.2", 491 | "send": "0.17.1", 492 | "serve-static": "1.14.1", 493 | "setprototypeof": "1.1.1", 494 | "statuses": "~1.5.0", 495 | "type-is": "~1.6.18", 496 | "utils-merge": "1.0.1", 497 | "vary": "~1.1.2" 498 | }, 499 | "engines": { 500 | "node": ">= 0.10.0" 501 | } 502 | }, 503 | "node_modules/express-session": { 504 | "version": "1.17.2", 505 | "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.2.tgz", 506 | "integrity": "sha512-mPcYcLA0lvh7D4Oqr5aNJFMtBMKPLl++OKKxkHzZ0U0oDq1rpKBnkR5f5vCHR26VeArlTOEF9td4x5IjICksRQ==", 507 | "dependencies": { 508 | "cookie": "0.4.1", 509 | "cookie-signature": "1.0.6", 510 | "debug": "2.6.9", 511 | "depd": "~2.0.0", 512 | "on-headers": "~1.0.2", 513 | "parseurl": "~1.3.3", 514 | "safe-buffer": "5.2.1", 515 | "uid-safe": "~2.1.5" 516 | }, 517 | "engines": { 518 | "node": ">= 0.8.0" 519 | } 520 | }, 521 | "node_modules/express-session/node_modules/cookie": { 522 | "version": "0.4.1", 523 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", 524 | "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", 525 | "engines": { 526 | "node": ">= 0.6" 527 | } 528 | }, 529 | "node_modules/express-session/node_modules/debug": { 530 | "version": "2.6.9", 531 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 532 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 533 | "dependencies": { 534 | "ms": "2.0.0" 535 | } 536 | }, 537 | "node_modules/express-session/node_modules/depd": { 538 | "version": "2.0.0", 539 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 540 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 541 | "engines": { 542 | "node": ">= 0.8" 543 | } 544 | }, 545 | "node_modules/express-session/node_modules/ms": { 546 | "version": "2.0.0", 547 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 548 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 549 | }, 550 | "node_modules/express-session/node_modules/safe-buffer": { 551 | "version": "5.2.1", 552 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 553 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 554 | "funding": [ 555 | { 556 | "type": "github", 557 | "url": "https://github.com/sponsors/feross" 558 | }, 559 | { 560 | "type": "patreon", 561 | "url": "https://www.patreon.com/feross" 562 | }, 563 | { 564 | "type": "consulting", 565 | "url": "https://feross.org/support" 566 | } 567 | ] 568 | }, 569 | "node_modules/express-validator": { 570 | "version": "6.13.0", 571 | "resolved": "https://registry.npmjs.org/express-validator/-/express-validator-6.13.0.tgz", 572 | "integrity": "sha512-gvLqMFPwEm+C1CQlF3l695ubY1Shd3AtfI5JDYXM0Ju0A2GsGX+VjjQN7TcHXF6cO8wPgU8hSSFqWecBR0Gx1g==", 573 | "dependencies": { 574 | "lodash": "^4.17.21", 575 | "validator": "^13.6.0" 576 | }, 577 | "engines": { 578 | "node": ">= 8.0.0" 579 | } 580 | }, 581 | "node_modules/express/node_modules/debug": { 582 | "version": "2.6.9", 583 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 584 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 585 | "dependencies": { 586 | "ms": "2.0.0" 587 | } 588 | }, 589 | "node_modules/express/node_modules/ms": { 590 | "version": "2.0.0", 591 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 592 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 593 | }, 594 | "node_modules/finalhandler": { 595 | "version": "1.1.2", 596 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 597 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 598 | "dependencies": { 599 | "debug": "2.6.9", 600 | "encodeurl": "~1.0.2", 601 | "escape-html": "~1.0.3", 602 | "on-finished": "~2.3.0", 603 | "parseurl": "~1.3.3", 604 | "statuses": "~1.5.0", 605 | "unpipe": "~1.0.0" 606 | }, 607 | "engines": { 608 | "node": ">= 0.8" 609 | } 610 | }, 611 | "node_modules/finalhandler/node_modules/debug": { 612 | "version": "2.6.9", 613 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 614 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 615 | "dependencies": { 616 | "ms": "2.0.0" 617 | } 618 | }, 619 | "node_modules/finalhandler/node_modules/ms": { 620 | "version": "2.0.0", 621 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 622 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 623 | }, 624 | "node_modules/forwarded": { 625 | "version": "0.1.2", 626 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 627 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", 628 | "engines": { 629 | "node": ">= 0.6" 630 | } 631 | }, 632 | "node_modules/fresh": { 633 | "version": "0.5.2", 634 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 635 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", 636 | "engines": { 637 | "node": ">= 0.6" 638 | } 639 | }, 640 | "node_modules/fs-minipass": { 641 | "version": "2.1.0", 642 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", 643 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", 644 | "dependencies": { 645 | "minipass": "^3.0.0" 646 | }, 647 | "engines": { 648 | "node": ">= 8" 649 | } 650 | }, 651 | "node_modules/fs.realpath": { 652 | "version": "1.0.0", 653 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 654 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 655 | }, 656 | "node_modules/gauge": { 657 | "version": "4.0.0", 658 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.0.tgz", 659 | "integrity": "sha512-F8sU45yQpjQjxKkm1UOAhf0U/O0aFt//Fl7hsrNVto+patMHjs7dPI9mFOGUKbhrgKm0S3EjW3scMFuQmWSROw==", 660 | "dependencies": { 661 | "ansi-regex": "^5.0.1", 662 | "aproba": "^1.0.3 || ^2.0.0", 663 | "color-support": "^1.1.2", 664 | "console-control-strings": "^1.0.0", 665 | "has-unicode": "^2.0.1", 666 | "signal-exit": "^3.0.0", 667 | "string-width": "^4.2.3", 668 | "strip-ansi": "^6.0.1", 669 | "wide-align": "^1.1.2" 670 | }, 671 | "engines": { 672 | "node": "^12.13.0 || ^14.15.0 || >=16" 673 | } 674 | }, 675 | "node_modules/glob": { 676 | "version": "7.2.0", 677 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 678 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 679 | "dependencies": { 680 | "fs.realpath": "^1.0.0", 681 | "inflight": "^1.0.4", 682 | "inherits": "2", 683 | "minimatch": "^3.0.4", 684 | "once": "^1.3.0", 685 | "path-is-absolute": "^1.0.0" 686 | }, 687 | "engines": { 688 | "node": "*" 689 | }, 690 | "funding": { 691 | "url": "https://github.com/sponsors/isaacs" 692 | } 693 | }, 694 | "node_modules/has-unicode": { 695 | "version": "2.0.1", 696 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", 697 | "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" 698 | }, 699 | "node_modules/http-errors": { 700 | "version": "1.7.2", 701 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 702 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 703 | "dependencies": { 704 | "depd": "~1.1.2", 705 | "inherits": "2.0.3", 706 | "setprototypeof": "1.1.1", 707 | "statuses": ">= 1.5.0 < 2", 708 | "toidentifier": "1.0.0" 709 | }, 710 | "engines": { 711 | "node": ">= 0.6" 712 | } 713 | }, 714 | "node_modules/http-errors/node_modules/inherits": { 715 | "version": "2.0.3", 716 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 717 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 718 | }, 719 | "node_modules/https-proxy-agent": { 720 | "version": "5.0.0", 721 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 722 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 723 | "dependencies": { 724 | "agent-base": "6", 725 | "debug": "4" 726 | }, 727 | "engines": { 728 | "node": ">= 6" 729 | } 730 | }, 731 | "node_modules/iconv-lite": { 732 | "version": "0.4.24", 733 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 734 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 735 | "dependencies": { 736 | "safer-buffer": ">= 2.1.2 < 3" 737 | }, 738 | "engines": { 739 | "node": ">=0.10.0" 740 | } 741 | }, 742 | "node_modules/ieee754": { 743 | "version": "1.2.1", 744 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 745 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", 746 | "funding": [ 747 | { 748 | "type": "github", 749 | "url": "https://github.com/sponsors/feross" 750 | }, 751 | { 752 | "type": "patreon", 753 | "url": "https://www.patreon.com/feross" 754 | }, 755 | { 756 | "type": "consulting", 757 | "url": "https://feross.org/support" 758 | } 759 | ] 760 | }, 761 | "node_modules/inflight": { 762 | "version": "1.0.6", 763 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 764 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 765 | "dependencies": { 766 | "once": "^1.3.0", 767 | "wrappy": "1" 768 | } 769 | }, 770 | "node_modules/inherits": { 771 | "version": "2.0.4", 772 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 773 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 774 | }, 775 | "node_modules/ipaddr.js": { 776 | "version": "1.9.1", 777 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 778 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 779 | "engines": { 780 | "node": ">= 0.10" 781 | } 782 | }, 783 | "node_modules/is-fullwidth-code-point": { 784 | "version": "3.0.0", 785 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 786 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 787 | "engines": { 788 | "node": ">=8" 789 | } 790 | }, 791 | "node_modules/js-yaml": { 792 | "version": "4.0.0", 793 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.0.0.tgz", 794 | "integrity": "sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==", 795 | "dependencies": { 796 | "argparse": "^2.0.1" 797 | }, 798 | "bin": { 799 | "js-yaml": "bin/js-yaml.js" 800 | } 801 | }, 802 | "node_modules/kareem": { 803 | "version": "2.3.2", 804 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", 805 | "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" 806 | }, 807 | "node_modules/kruptein": { 808 | "version": "3.0.3", 809 | "resolved": "https://registry.npmjs.org/kruptein/-/kruptein-3.0.3.tgz", 810 | "integrity": "sha512-v5mqSHKS2M1xWUo5V7Q6TMcj1vjTgKWvfspizn6Z939Cmv8NNn5E+Z4LeGBEKDL3yT4pMXaRTjh98oksGTDntA==", 811 | "dependencies": { 812 | "asn1.js": "^5.4.1" 813 | }, 814 | "engines": { 815 | "node": ">8" 816 | } 817 | }, 818 | "node_modules/lodash": { 819 | "version": "4.17.21", 820 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 821 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 822 | }, 823 | "node_modules/lru-cache": { 824 | "version": "6.0.0", 825 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 826 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 827 | "dependencies": { 828 | "yallist": "^4.0.0" 829 | }, 830 | "engines": { 831 | "node": ">=10" 832 | } 833 | }, 834 | "node_modules/make-dir": { 835 | "version": "3.1.0", 836 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 837 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 838 | "dependencies": { 839 | "semver": "^6.0.0" 840 | }, 841 | "engines": { 842 | "node": ">=8" 843 | }, 844 | "funding": { 845 | "url": "https://github.com/sponsors/sindresorhus" 846 | } 847 | }, 848 | "node_modules/make-dir/node_modules/semver": { 849 | "version": "6.3.0", 850 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 851 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 852 | "bin": { 853 | "semver": "bin/semver.js" 854 | } 855 | }, 856 | "node_modules/media-typer": { 857 | "version": "0.3.0", 858 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 859 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", 860 | "engines": { 861 | "node": ">= 0.6" 862 | } 863 | }, 864 | "node_modules/memory-pager": { 865 | "version": "1.5.0", 866 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 867 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", 868 | "optional": true 869 | }, 870 | "node_modules/merge-descriptors": { 871 | "version": "1.0.1", 872 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 873 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 874 | }, 875 | "node_modules/methods": { 876 | "version": "1.1.2", 877 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 878 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", 879 | "engines": { 880 | "node": ">= 0.6" 881 | } 882 | }, 883 | "node_modules/mime": { 884 | "version": "1.6.0", 885 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 886 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 887 | "bin": { 888 | "mime": "cli.js" 889 | }, 890 | "engines": { 891 | "node": ">=4" 892 | } 893 | }, 894 | "node_modules/mime-db": { 895 | "version": "1.44.0", 896 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 897 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", 898 | "engines": { 899 | "node": ">= 0.6" 900 | } 901 | }, 902 | "node_modules/mime-types": { 903 | "version": "2.1.27", 904 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 905 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 906 | "dependencies": { 907 | "mime-db": "1.44.0" 908 | }, 909 | "engines": { 910 | "node": ">= 0.6" 911 | } 912 | }, 913 | "node_modules/minimalistic-assert": { 914 | "version": "1.0.1", 915 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", 916 | "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" 917 | }, 918 | "node_modules/minimatch": { 919 | "version": "3.0.4", 920 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 921 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 922 | "dependencies": { 923 | "brace-expansion": "^1.1.7" 924 | }, 925 | "engines": { 926 | "node": "*" 927 | } 928 | }, 929 | "node_modules/minipass": { 930 | "version": "3.1.5", 931 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.5.tgz", 932 | "integrity": "sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw==", 933 | "dependencies": { 934 | "yallist": "^4.0.0" 935 | }, 936 | "engines": { 937 | "node": ">=8" 938 | } 939 | }, 940 | "node_modules/minizlib": { 941 | "version": "2.1.2", 942 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", 943 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", 944 | "dependencies": { 945 | "minipass": "^3.0.0", 946 | "yallist": "^4.0.0" 947 | }, 948 | "engines": { 949 | "node": ">= 8" 950 | } 951 | }, 952 | "node_modules/mkdirp": { 953 | "version": "1.0.4", 954 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", 955 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", 956 | "bin": { 957 | "mkdirp": "bin/cmd.js" 958 | }, 959 | "engines": { 960 | "node": ">=10" 961 | } 962 | }, 963 | "node_modules/mongodb": { 964 | "version": "4.1.4", 965 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.1.4.tgz", 966 | "integrity": "sha512-Cv/sk8on/tpvvqbEvR1h03mdyNdyvvO+WhtFlL4jrZ+DSsN/oSQHVqmJQI/sBCqqbOArFcYCAYDfyzqFwV4GSQ==", 967 | "dependencies": { 968 | "bson": "^4.5.4", 969 | "denque": "^2.0.1", 970 | "mongodb-connection-string-url": "^2.1.0" 971 | }, 972 | "engines": { 973 | "node": ">=12.9.0" 974 | }, 975 | "optionalDependencies": { 976 | "saslprep": "^1.0.3" 977 | } 978 | }, 979 | "node_modules/mongodb-connection-string-url": { 980 | "version": "2.2.0", 981 | "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.2.0.tgz", 982 | "integrity": "sha512-U0cDxLUrQrl7DZA828CA+o69EuWPWEJTwdMPozyd7cy/dbtncUZczMw7wRHcwMD7oKOn0NM2tF9jdf5FFVW9CA==", 983 | "dependencies": { 984 | "@types/whatwg-url": "^8.2.1", 985 | "whatwg-url": "^11.0.0" 986 | } 987 | }, 988 | "node_modules/mongodb-connection-string-url/node_modules/tr46": { 989 | "version": "3.0.0", 990 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", 991 | "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", 992 | "dependencies": { 993 | "punycode": "^2.1.1" 994 | }, 995 | "engines": { 996 | "node": ">=12" 997 | } 998 | }, 999 | "node_modules/mongodb-connection-string-url/node_modules/webidl-conversions": { 1000 | "version": "7.0.0", 1001 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", 1002 | "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", 1003 | "engines": { 1004 | "node": ">=12" 1005 | } 1006 | }, 1007 | "node_modules/mongodb-connection-string-url/node_modules/whatwg-url": { 1008 | "version": "11.0.0", 1009 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", 1010 | "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", 1011 | "dependencies": { 1012 | "tr46": "^3.0.0", 1013 | "webidl-conversions": "^7.0.0" 1014 | }, 1015 | "engines": { 1016 | "node": ">=12" 1017 | } 1018 | }, 1019 | "node_modules/mongoose": { 1020 | "version": "6.0.14", 1021 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.14.tgz", 1022 | "integrity": "sha512-SZ0kBlHrz/G70yWdVXLfM/gH4NsY85+as4MZRdtWxBTDEcmoE3rCFAz1/Ho2ycg5mJAeOBwdGZw4a5sn/WrwUA==", 1023 | "dependencies": { 1024 | "bson": "^4.2.2", 1025 | "kareem": "2.3.2", 1026 | "mongodb": "4.1.4", 1027 | "mpath": "0.8.4", 1028 | "mquery": "4.0.0", 1029 | "ms": "2.1.2", 1030 | "regexp-clone": "1.0.0", 1031 | "sift": "13.5.2", 1032 | "sliced": "1.0.1" 1033 | }, 1034 | "engines": { 1035 | "node": ">=12.0.0" 1036 | }, 1037 | "funding": { 1038 | "type": "opencollective", 1039 | "url": "https://opencollective.com/mongoose" 1040 | } 1041 | }, 1042 | "node_modules/mpath": { 1043 | "version": "0.8.4", 1044 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.4.tgz", 1045 | "integrity": "sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g==", 1046 | "engines": { 1047 | "node": ">=4.0.0" 1048 | } 1049 | }, 1050 | "node_modules/mquery": { 1051 | "version": "4.0.0", 1052 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.0.tgz", 1053 | "integrity": "sha512-nGjm89lHja+T/b8cybAby6H0YgA4qYC/lx6UlwvHGqvTq8bDaNeCwl1sY8uRELrNbVWJzIihxVd+vphGGn1vBw==", 1054 | "dependencies": { 1055 | "debug": "4.x", 1056 | "regexp-clone": "^1.0.0", 1057 | "sliced": "1.0.1" 1058 | }, 1059 | "engines": { 1060 | "node": ">=12.0.0" 1061 | } 1062 | }, 1063 | "node_modules/ms": { 1064 | "version": "2.1.2", 1065 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1066 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1067 | }, 1068 | "node_modules/negotiator": { 1069 | "version": "0.6.2", 1070 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1071 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", 1072 | "engines": { 1073 | "node": ">= 0.6" 1074 | } 1075 | }, 1076 | "node_modules/node-addon-api": { 1077 | "version": "3.2.1", 1078 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", 1079 | "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==" 1080 | }, 1081 | "node_modules/node-fetch": { 1082 | "version": "2.6.6", 1083 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", 1084 | "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", 1085 | "dependencies": { 1086 | "whatwg-url": "^5.0.0" 1087 | }, 1088 | "engines": { 1089 | "node": "4.x || >=6.0.0" 1090 | } 1091 | }, 1092 | "node_modules/nopt": { 1093 | "version": "5.0.0", 1094 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", 1095 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", 1096 | "dependencies": { 1097 | "abbrev": "1" 1098 | }, 1099 | "bin": { 1100 | "nopt": "bin/nopt.js" 1101 | }, 1102 | "engines": { 1103 | "node": ">=6" 1104 | } 1105 | }, 1106 | "node_modules/npmlog": { 1107 | "version": "6.0.0", 1108 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.0.tgz", 1109 | "integrity": "sha512-03ppFRGlsyUaQFbGC2C8QWJN/C/K7PsfyD9aQdhVKAQIH4sQBc8WASqFBP7O+Ut4d2oo5LoeoboB3cGdBZSp6Q==", 1110 | "dependencies": { 1111 | "are-we-there-yet": "^2.0.0", 1112 | "console-control-strings": "^1.1.0", 1113 | "gauge": "^4.0.0", 1114 | "set-blocking": "^2.0.0" 1115 | }, 1116 | "engines": { 1117 | "node": "^12.13.0 || ^14.15.0 || >=16" 1118 | } 1119 | }, 1120 | "node_modules/on-finished": { 1121 | "version": "2.3.0", 1122 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1123 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1124 | "dependencies": { 1125 | "ee-first": "1.1.1" 1126 | }, 1127 | "engines": { 1128 | "node": ">= 0.8" 1129 | } 1130 | }, 1131 | "node_modules/on-headers": { 1132 | "version": "1.0.2", 1133 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 1134 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", 1135 | "engines": { 1136 | "node": ">= 0.8" 1137 | } 1138 | }, 1139 | "node_modules/once": { 1140 | "version": "1.4.0", 1141 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1142 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1143 | "dependencies": { 1144 | "wrappy": "1" 1145 | } 1146 | }, 1147 | "node_modules/parseurl": { 1148 | "version": "1.3.3", 1149 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1150 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1151 | "engines": { 1152 | "node": ">= 0.8" 1153 | } 1154 | }, 1155 | "node_modules/passport": { 1156 | "version": "0.5.0", 1157 | "resolved": "https://registry.npmjs.org/passport/-/passport-0.5.0.tgz", 1158 | "integrity": "sha512-ln+ue5YaNDS+fes6O5PCzXKSseY5u8MYhX9H5Co4s+HfYI5oqvnHKoOORLYDUPh+8tHvrxugF2GFcUA1Q1Gqfg==", 1159 | "dependencies": { 1160 | "passport-strategy": "1.x.x", 1161 | "pause": "0.0.1" 1162 | }, 1163 | "engines": { 1164 | "node": ">= 0.4.0" 1165 | }, 1166 | "funding": { 1167 | "type": "github", 1168 | "url": "https://github.com/sponsors/jaredhanson" 1169 | } 1170 | }, 1171 | "node_modules/passport-local": { 1172 | "version": "1.0.0", 1173 | "resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz", 1174 | "integrity": "sha1-H+YyaMkudWBmJkN+O5BmYsFbpu4=", 1175 | "dependencies": { 1176 | "passport-strategy": "1.x.x" 1177 | }, 1178 | "engines": { 1179 | "node": ">= 0.4.0" 1180 | } 1181 | }, 1182 | "node_modules/passport-strategy": { 1183 | "version": "1.0.0", 1184 | "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", 1185 | "integrity": "sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ=", 1186 | "engines": { 1187 | "node": ">= 0.4.0" 1188 | } 1189 | }, 1190 | "node_modules/path-is-absolute": { 1191 | "version": "1.0.1", 1192 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1193 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1194 | "engines": { 1195 | "node": ">=0.10.0" 1196 | } 1197 | }, 1198 | "node_modules/path-to-regexp": { 1199 | "version": "0.1.7", 1200 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1201 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1202 | }, 1203 | "node_modules/pause": { 1204 | "version": "0.0.1", 1205 | "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", 1206 | "integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10=" 1207 | }, 1208 | "node_modules/ports": { 1209 | "version": "1.1.0", 1210 | "resolved": "https://registry.npmjs.org/ports/-/ports-1.1.0.tgz", 1211 | "integrity": "sha1-twGqKF6V2ujJbNonUhdySh9/bGA=" 1212 | }, 1213 | "node_modules/proxy-addr": { 1214 | "version": "2.0.6", 1215 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 1216 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 1217 | "dependencies": { 1218 | "forwarded": "~0.1.2", 1219 | "ipaddr.js": "1.9.1" 1220 | }, 1221 | "engines": { 1222 | "node": ">= 0.10" 1223 | } 1224 | }, 1225 | "node_modules/punycode": { 1226 | "version": "2.1.1", 1227 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1228 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1229 | "engines": { 1230 | "node": ">=6" 1231 | } 1232 | }, 1233 | "node_modules/qs": { 1234 | "version": "6.7.0", 1235 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1236 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", 1237 | "engines": { 1238 | "node": ">=0.6" 1239 | } 1240 | }, 1241 | "node_modules/random-bytes": { 1242 | "version": "1.0.0", 1243 | "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", 1244 | "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=", 1245 | "engines": { 1246 | "node": ">= 0.8" 1247 | } 1248 | }, 1249 | "node_modules/range-parser": { 1250 | "version": "1.2.1", 1251 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1252 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1253 | "engines": { 1254 | "node": ">= 0.6" 1255 | } 1256 | }, 1257 | "node_modules/raw-body": { 1258 | "version": "2.4.0", 1259 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1260 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1261 | "dependencies": { 1262 | "bytes": "3.1.0", 1263 | "http-errors": "1.7.2", 1264 | "iconv-lite": "0.4.24", 1265 | "unpipe": "1.0.0" 1266 | }, 1267 | "engines": { 1268 | "node": ">= 0.8" 1269 | } 1270 | }, 1271 | "node_modules/readable-stream": { 1272 | "version": "3.6.0", 1273 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1274 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1275 | "dependencies": { 1276 | "inherits": "^2.0.3", 1277 | "string_decoder": "^1.1.1", 1278 | "util-deprecate": "^1.0.1" 1279 | }, 1280 | "engines": { 1281 | "node": ">= 6" 1282 | } 1283 | }, 1284 | "node_modules/regexp-clone": { 1285 | "version": "1.0.0", 1286 | "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz", 1287 | "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==" 1288 | }, 1289 | "node_modules/rimraf": { 1290 | "version": "3.0.2", 1291 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1292 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1293 | "dependencies": { 1294 | "glob": "^7.1.3" 1295 | }, 1296 | "bin": { 1297 | "rimraf": "bin.js" 1298 | }, 1299 | "funding": { 1300 | "url": "https://github.com/sponsors/isaacs" 1301 | } 1302 | }, 1303 | "node_modules/safe-buffer": { 1304 | "version": "5.1.2", 1305 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1306 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1307 | }, 1308 | "node_modules/safer-buffer": { 1309 | "version": "2.1.2", 1310 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1311 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1312 | }, 1313 | "node_modules/saslprep": { 1314 | "version": "1.0.3", 1315 | "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", 1316 | "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", 1317 | "optional": true, 1318 | "dependencies": { 1319 | "sparse-bitfield": "^3.0.3" 1320 | }, 1321 | "engines": { 1322 | "node": ">=6" 1323 | } 1324 | }, 1325 | "node_modules/semver": { 1326 | "version": "7.3.5", 1327 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", 1328 | "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", 1329 | "dependencies": { 1330 | "lru-cache": "^6.0.0" 1331 | }, 1332 | "bin": { 1333 | "semver": "bin/semver.js" 1334 | }, 1335 | "engines": { 1336 | "node": ">=10" 1337 | } 1338 | }, 1339 | "node_modules/send": { 1340 | "version": "0.17.1", 1341 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1342 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1343 | "dependencies": { 1344 | "debug": "2.6.9", 1345 | "depd": "~1.1.2", 1346 | "destroy": "~1.0.4", 1347 | "encodeurl": "~1.0.2", 1348 | "escape-html": "~1.0.3", 1349 | "etag": "~1.8.1", 1350 | "fresh": "0.5.2", 1351 | "http-errors": "~1.7.2", 1352 | "mime": "1.6.0", 1353 | "ms": "2.1.1", 1354 | "on-finished": "~2.3.0", 1355 | "range-parser": "~1.2.1", 1356 | "statuses": "~1.5.0" 1357 | }, 1358 | "engines": { 1359 | "node": ">= 0.8.0" 1360 | } 1361 | }, 1362 | "node_modules/send/node_modules/debug": { 1363 | "version": "2.6.9", 1364 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1365 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1366 | "dependencies": { 1367 | "ms": "2.0.0" 1368 | } 1369 | }, 1370 | "node_modules/send/node_modules/debug/node_modules/ms": { 1371 | "version": "2.0.0", 1372 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1373 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1374 | }, 1375 | "node_modules/send/node_modules/ms": { 1376 | "version": "2.1.1", 1377 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1378 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1379 | }, 1380 | "node_modules/serve-static": { 1381 | "version": "1.14.1", 1382 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1383 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1384 | "dependencies": { 1385 | "encodeurl": "~1.0.2", 1386 | "escape-html": "~1.0.3", 1387 | "parseurl": "~1.3.3", 1388 | "send": "0.17.1" 1389 | }, 1390 | "engines": { 1391 | "node": ">= 0.8.0" 1392 | } 1393 | }, 1394 | "node_modules/set-blocking": { 1395 | "version": "2.0.0", 1396 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 1397 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" 1398 | }, 1399 | "node_modules/setprototypeof": { 1400 | "version": "1.1.1", 1401 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1402 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1403 | }, 1404 | "node_modules/sift": { 1405 | "version": "13.5.2", 1406 | "resolved": "https://registry.npmjs.org/sift/-/sift-13.5.2.tgz", 1407 | "integrity": "sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA==" 1408 | }, 1409 | "node_modules/signal-exit": { 1410 | "version": "3.0.6", 1411 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", 1412 | "integrity": "sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==" 1413 | }, 1414 | "node_modules/sliced": { 1415 | "version": "1.0.1", 1416 | "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz", 1417 | "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E=" 1418 | }, 1419 | "node_modules/sparse-bitfield": { 1420 | "version": "3.0.3", 1421 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 1422 | "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", 1423 | "optional": true, 1424 | "dependencies": { 1425 | "memory-pager": "^1.0.2" 1426 | } 1427 | }, 1428 | "node_modules/statuses": { 1429 | "version": "1.5.0", 1430 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1431 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", 1432 | "engines": { 1433 | "node": ">= 0.6" 1434 | } 1435 | }, 1436 | "node_modules/string_decoder": { 1437 | "version": "1.3.0", 1438 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 1439 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 1440 | "dependencies": { 1441 | "safe-buffer": "~5.2.0" 1442 | } 1443 | }, 1444 | "node_modules/string_decoder/node_modules/safe-buffer": { 1445 | "version": "5.2.1", 1446 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1447 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1448 | "funding": [ 1449 | { 1450 | "type": "github", 1451 | "url": "https://github.com/sponsors/feross" 1452 | }, 1453 | { 1454 | "type": "patreon", 1455 | "url": "https://www.patreon.com/feross" 1456 | }, 1457 | { 1458 | "type": "consulting", 1459 | "url": "https://feross.org/support" 1460 | } 1461 | ] 1462 | }, 1463 | "node_modules/string-width": { 1464 | "version": "4.2.3", 1465 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1466 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1467 | "dependencies": { 1468 | "emoji-regex": "^8.0.0", 1469 | "is-fullwidth-code-point": "^3.0.0", 1470 | "strip-ansi": "^6.0.1" 1471 | }, 1472 | "engines": { 1473 | "node": ">=8" 1474 | } 1475 | }, 1476 | "node_modules/strip-ansi": { 1477 | "version": "6.0.1", 1478 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1479 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1480 | "dependencies": { 1481 | "ansi-regex": "^5.0.1" 1482 | }, 1483 | "engines": { 1484 | "node": ">=8" 1485 | } 1486 | }, 1487 | "node_modules/tar": { 1488 | "version": "6.1.11", 1489 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", 1490 | "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", 1491 | "dependencies": { 1492 | "chownr": "^2.0.0", 1493 | "fs-minipass": "^2.0.0", 1494 | "minipass": "^3.0.0", 1495 | "minizlib": "^2.1.1", 1496 | "mkdirp": "^1.0.3", 1497 | "yallist": "^4.0.0" 1498 | }, 1499 | "engines": { 1500 | "node": ">= 10" 1501 | } 1502 | }, 1503 | "node_modules/toidentifier": { 1504 | "version": "1.0.0", 1505 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 1506 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", 1507 | "engines": { 1508 | "node": ">=0.6" 1509 | } 1510 | }, 1511 | "node_modules/tr46": { 1512 | "version": "0.0.3", 1513 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 1514 | "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" 1515 | }, 1516 | "node_modules/type-is": { 1517 | "version": "1.6.18", 1518 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1519 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1520 | "dependencies": { 1521 | "media-typer": "0.3.0", 1522 | "mime-types": "~2.1.24" 1523 | }, 1524 | "engines": { 1525 | "node": ">= 0.6" 1526 | } 1527 | }, 1528 | "node_modules/uid-safe": { 1529 | "version": "2.1.5", 1530 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", 1531 | "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", 1532 | "dependencies": { 1533 | "random-bytes": "~1.0.0" 1534 | }, 1535 | "engines": { 1536 | "node": ">= 0.8" 1537 | } 1538 | }, 1539 | "node_modules/underscore": { 1540 | "version": "1.12.1", 1541 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", 1542 | "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==" 1543 | }, 1544 | "node_modules/unpipe": { 1545 | "version": "1.0.0", 1546 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1547 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", 1548 | "engines": { 1549 | "node": ">= 0.8" 1550 | } 1551 | }, 1552 | "node_modules/util-deprecate": { 1553 | "version": "1.0.2", 1554 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1555 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1556 | }, 1557 | "node_modules/utils-merge": { 1558 | "version": "1.0.1", 1559 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1560 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", 1561 | "engines": { 1562 | "node": ">= 0.4.0" 1563 | } 1564 | }, 1565 | "node_modules/validator": { 1566 | "version": "13.7.0", 1567 | "resolved": "https://registry.npmjs.org/validator/-/validator-13.7.0.tgz", 1568 | "integrity": "sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw==", 1569 | "engines": { 1570 | "node": ">= 0.10" 1571 | } 1572 | }, 1573 | "node_modules/vary": { 1574 | "version": "1.1.2", 1575 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1576 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", 1577 | "engines": { 1578 | "node": ">= 0.8" 1579 | } 1580 | }, 1581 | "node_modules/webidl-conversions": { 1582 | "version": "3.0.1", 1583 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 1584 | "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" 1585 | }, 1586 | "node_modules/whatwg-url": { 1587 | "version": "5.0.0", 1588 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 1589 | "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", 1590 | "dependencies": { 1591 | "tr46": "~0.0.3", 1592 | "webidl-conversions": "^3.0.0" 1593 | } 1594 | }, 1595 | "node_modules/wide-align": { 1596 | "version": "1.1.5", 1597 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", 1598 | "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", 1599 | "dependencies": { 1600 | "string-width": "^1.0.2 || 2 || 3 || 4" 1601 | } 1602 | }, 1603 | "node_modules/wrappy": { 1604 | "version": "1.0.2", 1605 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1606 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1607 | }, 1608 | "node_modules/yallist": { 1609 | "version": "4.0.0", 1610 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1611 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 1612 | } 1613 | }, 1614 | "dependencies": { 1615 | "@mapbox/node-pre-gyp": { 1616 | "version": "1.0.7", 1617 | "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.7.tgz", 1618 | "integrity": "sha512-PplSvl4pJ5N3BkVjAdDzpPhVUPdC73JgttkR+LnBx2OORC1GCQsBjUeEuipf9uOaAM1SbxcdZFfR3KDTKm2S0A==", 1619 | "requires": { 1620 | "detect-libc": "^1.0.3", 1621 | "https-proxy-agent": "^5.0.0", 1622 | "make-dir": "^3.1.0", 1623 | "node-fetch": "^2.6.5", 1624 | "nopt": "^5.0.0", 1625 | "npmlog": "^6.0.0", 1626 | "rimraf": "^3.0.2", 1627 | "semver": "^7.3.5", 1628 | "tar": "^6.1.11" 1629 | } 1630 | }, 1631 | "@types/node": { 1632 | "version": "16.11.11", 1633 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.11.tgz", 1634 | "integrity": "sha512-KB0sixD67CeecHC33MYn+eYARkqTheIRNuu97y2XMjR7Wu3XibO1vaY6VBV6O/a89SPI81cEUIYT87UqUWlZNw==" 1635 | }, 1636 | "@types/webidl-conversions": { 1637 | "version": "6.1.1", 1638 | "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz", 1639 | "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q==" 1640 | }, 1641 | "@types/whatwg-url": { 1642 | "version": "8.2.1", 1643 | "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz", 1644 | "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==", 1645 | "requires": { 1646 | "@types/node": "*", 1647 | "@types/webidl-conversions": "*" 1648 | } 1649 | }, 1650 | "abbrev": { 1651 | "version": "1.1.1", 1652 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 1653 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" 1654 | }, 1655 | "accepts": { 1656 | "version": "1.3.7", 1657 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 1658 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 1659 | "requires": { 1660 | "mime-types": "~2.1.24", 1661 | "negotiator": "0.6.2" 1662 | } 1663 | }, 1664 | "agent-base": { 1665 | "version": "6.0.2", 1666 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 1667 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 1668 | "requires": { 1669 | "debug": "4" 1670 | } 1671 | }, 1672 | "ansi-regex": { 1673 | "version": "5.0.1", 1674 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1675 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" 1676 | }, 1677 | "aproba": { 1678 | "version": "2.0.0", 1679 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", 1680 | "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" 1681 | }, 1682 | "are-we-there-yet": { 1683 | "version": "2.0.0", 1684 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", 1685 | "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", 1686 | "requires": { 1687 | "delegates": "^1.0.0", 1688 | "readable-stream": "^3.6.0" 1689 | } 1690 | }, 1691 | "argparse": { 1692 | "version": "2.0.1", 1693 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 1694 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" 1695 | }, 1696 | "array-flatten": { 1697 | "version": "1.1.1", 1698 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 1699 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 1700 | }, 1701 | "asn1.js": { 1702 | "version": "5.4.1", 1703 | "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", 1704 | "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", 1705 | "requires": { 1706 | "bn.js": "^4.0.0", 1707 | "inherits": "^2.0.1", 1708 | "minimalistic-assert": "^1.0.0", 1709 | "safer-buffer": "^2.1.0" 1710 | } 1711 | }, 1712 | "balanced-match": { 1713 | "version": "1.0.2", 1714 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1715 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 1716 | }, 1717 | "base64-js": { 1718 | "version": "1.5.1", 1719 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 1720 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" 1721 | }, 1722 | "bcrypt": { 1723 | "version": "5.0.1", 1724 | "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.0.1.tgz", 1725 | "integrity": "sha512-9BTgmrhZM2t1bNuDtrtIMVSmmxZBrJ71n8Wg+YgdjHuIWYF7SjjmCPZFB+/5i/o/PIeRpwVJR3P+NrpIItUjqw==", 1726 | "requires": { 1727 | "@mapbox/node-pre-gyp": "^1.0.0", 1728 | "node-addon-api": "^3.1.0" 1729 | } 1730 | }, 1731 | "bn.js": { 1732 | "version": "4.12.0", 1733 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 1734 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" 1735 | }, 1736 | "body-parser": { 1737 | "version": "1.19.0", 1738 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 1739 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 1740 | "requires": { 1741 | "bytes": "3.1.0", 1742 | "content-type": "~1.0.4", 1743 | "debug": "2.6.9", 1744 | "depd": "~1.1.2", 1745 | "http-errors": "1.7.2", 1746 | "iconv-lite": "0.4.24", 1747 | "on-finished": "~2.3.0", 1748 | "qs": "6.7.0", 1749 | "raw-body": "2.4.0", 1750 | "type-is": "~1.6.17" 1751 | }, 1752 | "dependencies": { 1753 | "debug": { 1754 | "version": "2.6.9", 1755 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1756 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1757 | "requires": { 1758 | "ms": "2.0.0" 1759 | } 1760 | }, 1761 | "ms": { 1762 | "version": "2.0.0", 1763 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1764 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1765 | } 1766 | } 1767 | }, 1768 | "brace-expansion": { 1769 | "version": "1.1.11", 1770 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1771 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1772 | "requires": { 1773 | "balanced-match": "^1.0.0", 1774 | "concat-map": "0.0.1" 1775 | } 1776 | }, 1777 | "bson": { 1778 | "version": "4.6.0", 1779 | "resolved": "https://registry.npmjs.org/bson/-/bson-4.6.0.tgz", 1780 | "integrity": "sha512-8jw1NU1hglS+Da1jDOUYuNcBJ4cNHCFIqzlwoFNnsTOg2R/ox0aTYcTiBN4dzRa9q7Cvy6XErh3L8ReTEb9AQQ==", 1781 | "requires": { 1782 | "buffer": "^5.6.0" 1783 | } 1784 | }, 1785 | "buffer": { 1786 | "version": "5.7.1", 1787 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", 1788 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", 1789 | "requires": { 1790 | "base64-js": "^1.3.1", 1791 | "ieee754": "^1.1.13" 1792 | } 1793 | }, 1794 | "bytes": { 1795 | "version": "3.1.0", 1796 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 1797 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 1798 | }, 1799 | "cfenv": { 1800 | "version": "1.2.4", 1801 | "resolved": "https://registry.npmjs.org/cfenv/-/cfenv-1.2.4.tgz", 1802 | "integrity": "sha512-jWQ+3UXZauYyOXwHpMm74C0wM7+LDQmgMxWBGchg4as7+YyTL0pyx/CZ3dEvJyZVOB4SgKATc5naJky6cd9zYw==", 1803 | "requires": { 1804 | "js-yaml": "4.0.x", 1805 | "ports": "1.1.x", 1806 | "underscore": "1.12.x" 1807 | } 1808 | }, 1809 | "chownr": { 1810 | "version": "2.0.0", 1811 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", 1812 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" 1813 | }, 1814 | "color-support": { 1815 | "version": "1.1.3", 1816 | "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", 1817 | "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==" 1818 | }, 1819 | "concat-map": { 1820 | "version": "0.0.1", 1821 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1822 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 1823 | }, 1824 | "connect-mongo": { 1825 | "version": "4.6.0", 1826 | "resolved": "https://registry.npmjs.org/connect-mongo/-/connect-mongo-4.6.0.tgz", 1827 | "integrity": "sha512-8new4Z7NLP3CGP65Aw6ls3xDBeKVvHRSh39CXuDZTQsvpeeU9oNMzfFgvqmHqZ6gWpxIl663RyoVEmCAGf1yOg==", 1828 | "requires": { 1829 | "debug": "^4.3.1", 1830 | "kruptein": "^3.0.0" 1831 | } 1832 | }, 1833 | "console-control-strings": { 1834 | "version": "1.1.0", 1835 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", 1836 | "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" 1837 | }, 1838 | "content-disposition": { 1839 | "version": "0.5.3", 1840 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 1841 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 1842 | "requires": { 1843 | "safe-buffer": "5.1.2" 1844 | } 1845 | }, 1846 | "content-type": { 1847 | "version": "1.0.4", 1848 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 1849 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 1850 | }, 1851 | "cookie": { 1852 | "version": "0.4.0", 1853 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 1854 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 1855 | }, 1856 | "cookie-parser": { 1857 | "version": "1.4.6", 1858 | "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.6.tgz", 1859 | "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==", 1860 | "requires": { 1861 | "cookie": "0.4.1", 1862 | "cookie-signature": "1.0.6" 1863 | }, 1864 | "dependencies": { 1865 | "cookie": { 1866 | "version": "0.4.1", 1867 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", 1868 | "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" 1869 | } 1870 | } 1871 | }, 1872 | "cookie-signature": { 1873 | "version": "1.0.6", 1874 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 1875 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 1876 | }, 1877 | "debug": { 1878 | "version": "4.3.3", 1879 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", 1880 | "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", 1881 | "requires": { 1882 | "ms": "2.1.2" 1883 | } 1884 | }, 1885 | "delegates": { 1886 | "version": "1.0.0", 1887 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", 1888 | "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" 1889 | }, 1890 | "denque": { 1891 | "version": "2.0.1", 1892 | "resolved": "https://registry.npmjs.org/denque/-/denque-2.0.1.tgz", 1893 | "integrity": "sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==" 1894 | }, 1895 | "depd": { 1896 | "version": "1.1.2", 1897 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 1898 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 1899 | }, 1900 | "destroy": { 1901 | "version": "1.0.4", 1902 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 1903 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 1904 | }, 1905 | "detect-libc": { 1906 | "version": "1.0.3", 1907 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", 1908 | "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=" 1909 | }, 1910 | "dotenv": { 1911 | "version": "10.0.0", 1912 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", 1913 | "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" 1914 | }, 1915 | "ee-first": { 1916 | "version": "1.1.1", 1917 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 1918 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 1919 | }, 1920 | "emoji-regex": { 1921 | "version": "8.0.0", 1922 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1923 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 1924 | }, 1925 | "encodeurl": { 1926 | "version": "1.0.2", 1927 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 1928 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 1929 | }, 1930 | "escape-html": { 1931 | "version": "1.0.3", 1932 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 1933 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 1934 | }, 1935 | "etag": { 1936 | "version": "1.8.1", 1937 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 1938 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 1939 | }, 1940 | "express": { 1941 | "version": "4.17.1", 1942 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 1943 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 1944 | "requires": { 1945 | "accepts": "~1.3.7", 1946 | "array-flatten": "1.1.1", 1947 | "body-parser": "1.19.0", 1948 | "content-disposition": "0.5.3", 1949 | "content-type": "~1.0.4", 1950 | "cookie": "0.4.0", 1951 | "cookie-signature": "1.0.6", 1952 | "debug": "2.6.9", 1953 | "depd": "~1.1.2", 1954 | "encodeurl": "~1.0.2", 1955 | "escape-html": "~1.0.3", 1956 | "etag": "~1.8.1", 1957 | "finalhandler": "~1.1.2", 1958 | "fresh": "0.5.2", 1959 | "merge-descriptors": "1.0.1", 1960 | "methods": "~1.1.2", 1961 | "on-finished": "~2.3.0", 1962 | "parseurl": "~1.3.3", 1963 | "path-to-regexp": "0.1.7", 1964 | "proxy-addr": "~2.0.5", 1965 | "qs": "6.7.0", 1966 | "range-parser": "~1.2.1", 1967 | "safe-buffer": "5.1.2", 1968 | "send": "0.17.1", 1969 | "serve-static": "1.14.1", 1970 | "setprototypeof": "1.1.1", 1971 | "statuses": "~1.5.0", 1972 | "type-is": "~1.6.18", 1973 | "utils-merge": "1.0.1", 1974 | "vary": "~1.1.2" 1975 | }, 1976 | "dependencies": { 1977 | "debug": { 1978 | "version": "2.6.9", 1979 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1980 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1981 | "requires": { 1982 | "ms": "2.0.0" 1983 | } 1984 | }, 1985 | "ms": { 1986 | "version": "2.0.0", 1987 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1988 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1989 | } 1990 | } 1991 | }, 1992 | "express-session": { 1993 | "version": "1.17.2", 1994 | "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.2.tgz", 1995 | "integrity": "sha512-mPcYcLA0lvh7D4Oqr5aNJFMtBMKPLl++OKKxkHzZ0U0oDq1rpKBnkR5f5vCHR26VeArlTOEF9td4x5IjICksRQ==", 1996 | "requires": { 1997 | "cookie": "0.4.1", 1998 | "cookie-signature": "1.0.6", 1999 | "debug": "2.6.9", 2000 | "depd": "~2.0.0", 2001 | "on-headers": "~1.0.2", 2002 | "parseurl": "~1.3.3", 2003 | "safe-buffer": "5.2.1", 2004 | "uid-safe": "~2.1.5" 2005 | }, 2006 | "dependencies": { 2007 | "cookie": { 2008 | "version": "0.4.1", 2009 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", 2010 | "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" 2011 | }, 2012 | "debug": { 2013 | "version": "2.6.9", 2014 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 2015 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 2016 | "requires": { 2017 | "ms": "2.0.0" 2018 | } 2019 | }, 2020 | "depd": { 2021 | "version": "2.0.0", 2022 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 2023 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" 2024 | }, 2025 | "ms": { 2026 | "version": "2.0.0", 2027 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 2028 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 2029 | }, 2030 | "safe-buffer": { 2031 | "version": "5.2.1", 2032 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2033 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 2034 | } 2035 | } 2036 | }, 2037 | "express-validator": { 2038 | "version": "6.13.0", 2039 | "resolved": "https://registry.npmjs.org/express-validator/-/express-validator-6.13.0.tgz", 2040 | "integrity": "sha512-gvLqMFPwEm+C1CQlF3l695ubY1Shd3AtfI5JDYXM0Ju0A2GsGX+VjjQN7TcHXF6cO8wPgU8hSSFqWecBR0Gx1g==", 2041 | "requires": { 2042 | "lodash": "^4.17.21", 2043 | "validator": "^13.6.0" 2044 | } 2045 | }, 2046 | "finalhandler": { 2047 | "version": "1.1.2", 2048 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 2049 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 2050 | "requires": { 2051 | "debug": "2.6.9", 2052 | "encodeurl": "~1.0.2", 2053 | "escape-html": "~1.0.3", 2054 | "on-finished": "~2.3.0", 2055 | "parseurl": "~1.3.3", 2056 | "statuses": "~1.5.0", 2057 | "unpipe": "~1.0.0" 2058 | }, 2059 | "dependencies": { 2060 | "debug": { 2061 | "version": "2.6.9", 2062 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 2063 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 2064 | "requires": { 2065 | "ms": "2.0.0" 2066 | } 2067 | }, 2068 | "ms": { 2069 | "version": "2.0.0", 2070 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 2071 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 2072 | } 2073 | } 2074 | }, 2075 | "forwarded": { 2076 | "version": "0.1.2", 2077 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 2078 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 2079 | }, 2080 | "fresh": { 2081 | "version": "0.5.2", 2082 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 2083 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 2084 | }, 2085 | "fs-minipass": { 2086 | "version": "2.1.0", 2087 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", 2088 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", 2089 | "requires": { 2090 | "minipass": "^3.0.0" 2091 | } 2092 | }, 2093 | "fs.realpath": { 2094 | "version": "1.0.0", 2095 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 2096 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 2097 | }, 2098 | "gauge": { 2099 | "version": "4.0.0", 2100 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.0.tgz", 2101 | "integrity": "sha512-F8sU45yQpjQjxKkm1UOAhf0U/O0aFt//Fl7hsrNVto+patMHjs7dPI9mFOGUKbhrgKm0S3EjW3scMFuQmWSROw==", 2102 | "requires": { 2103 | "ansi-regex": "^5.0.1", 2104 | "aproba": "^1.0.3 || ^2.0.0", 2105 | "color-support": "^1.1.2", 2106 | "console-control-strings": "^1.0.0", 2107 | "has-unicode": "^2.0.1", 2108 | "signal-exit": "^3.0.0", 2109 | "string-width": "^4.2.3", 2110 | "strip-ansi": "^6.0.1", 2111 | "wide-align": "^1.1.2" 2112 | } 2113 | }, 2114 | "glob": { 2115 | "version": "7.2.0", 2116 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 2117 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 2118 | "requires": { 2119 | "fs.realpath": "^1.0.0", 2120 | "inflight": "^1.0.4", 2121 | "inherits": "2", 2122 | "minimatch": "^3.0.4", 2123 | "once": "^1.3.0", 2124 | "path-is-absolute": "^1.0.0" 2125 | } 2126 | }, 2127 | "has-unicode": { 2128 | "version": "2.0.1", 2129 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", 2130 | "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" 2131 | }, 2132 | "http-errors": { 2133 | "version": "1.7.2", 2134 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 2135 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 2136 | "requires": { 2137 | "depd": "~1.1.2", 2138 | "inherits": "2.0.3", 2139 | "setprototypeof": "1.1.1", 2140 | "statuses": ">= 1.5.0 < 2", 2141 | "toidentifier": "1.0.0" 2142 | }, 2143 | "dependencies": { 2144 | "inherits": { 2145 | "version": "2.0.3", 2146 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 2147 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 2148 | } 2149 | } 2150 | }, 2151 | "https-proxy-agent": { 2152 | "version": "5.0.0", 2153 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 2154 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 2155 | "requires": { 2156 | "agent-base": "6", 2157 | "debug": "4" 2158 | } 2159 | }, 2160 | "iconv-lite": { 2161 | "version": "0.4.24", 2162 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 2163 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 2164 | "requires": { 2165 | "safer-buffer": ">= 2.1.2 < 3" 2166 | } 2167 | }, 2168 | "ieee754": { 2169 | "version": "1.2.1", 2170 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 2171 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" 2172 | }, 2173 | "inflight": { 2174 | "version": "1.0.6", 2175 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 2176 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 2177 | "requires": { 2178 | "once": "^1.3.0", 2179 | "wrappy": "1" 2180 | } 2181 | }, 2182 | "inherits": { 2183 | "version": "2.0.4", 2184 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 2185 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 2186 | }, 2187 | "ipaddr.js": { 2188 | "version": "1.9.1", 2189 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 2190 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 2191 | }, 2192 | "is-fullwidth-code-point": { 2193 | "version": "3.0.0", 2194 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 2195 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" 2196 | }, 2197 | "js-yaml": { 2198 | "version": "4.0.0", 2199 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.0.0.tgz", 2200 | "integrity": "sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==", 2201 | "requires": { 2202 | "argparse": "^2.0.1" 2203 | } 2204 | }, 2205 | "kareem": { 2206 | "version": "2.3.2", 2207 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", 2208 | "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" 2209 | }, 2210 | "kruptein": { 2211 | "version": "3.0.3", 2212 | "resolved": "https://registry.npmjs.org/kruptein/-/kruptein-3.0.3.tgz", 2213 | "integrity": "sha512-v5mqSHKS2M1xWUo5V7Q6TMcj1vjTgKWvfspizn6Z939Cmv8NNn5E+Z4LeGBEKDL3yT4pMXaRTjh98oksGTDntA==", 2214 | "requires": { 2215 | "asn1.js": "^5.4.1" 2216 | } 2217 | }, 2218 | "lodash": { 2219 | "version": "4.17.21", 2220 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 2221 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 2222 | }, 2223 | "lru-cache": { 2224 | "version": "6.0.0", 2225 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 2226 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 2227 | "requires": { 2228 | "yallist": "^4.0.0" 2229 | } 2230 | }, 2231 | "make-dir": { 2232 | "version": "3.1.0", 2233 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 2234 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 2235 | "requires": { 2236 | "semver": "^6.0.0" 2237 | }, 2238 | "dependencies": { 2239 | "semver": { 2240 | "version": "6.3.0", 2241 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 2242 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 2243 | } 2244 | } 2245 | }, 2246 | "media-typer": { 2247 | "version": "0.3.0", 2248 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 2249 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 2250 | }, 2251 | "memory-pager": { 2252 | "version": "1.5.0", 2253 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 2254 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", 2255 | "optional": true 2256 | }, 2257 | "merge-descriptors": { 2258 | "version": "1.0.1", 2259 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 2260 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 2261 | }, 2262 | "methods": { 2263 | "version": "1.1.2", 2264 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 2265 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 2266 | }, 2267 | "mime": { 2268 | "version": "1.6.0", 2269 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 2270 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 2271 | }, 2272 | "mime-db": { 2273 | "version": "1.44.0", 2274 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 2275 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 2276 | }, 2277 | "mime-types": { 2278 | "version": "2.1.27", 2279 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 2280 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 2281 | "requires": { 2282 | "mime-db": "1.44.0" 2283 | } 2284 | }, 2285 | "minimalistic-assert": { 2286 | "version": "1.0.1", 2287 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", 2288 | "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" 2289 | }, 2290 | "minimatch": { 2291 | "version": "3.0.4", 2292 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 2293 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 2294 | "requires": { 2295 | "brace-expansion": "^1.1.7" 2296 | } 2297 | }, 2298 | "minipass": { 2299 | "version": "3.1.5", 2300 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.5.tgz", 2301 | "integrity": "sha512-+8NzxD82XQoNKNrl1d/FSi+X8wAEWR+sbYAfIvub4Nz0d22plFG72CEVVaufV8PNf4qSslFTD8VMOxNVhHCjTw==", 2302 | "requires": { 2303 | "yallist": "^4.0.0" 2304 | } 2305 | }, 2306 | "minizlib": { 2307 | "version": "2.1.2", 2308 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", 2309 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", 2310 | "requires": { 2311 | "minipass": "^3.0.0", 2312 | "yallist": "^4.0.0" 2313 | } 2314 | }, 2315 | "mkdirp": { 2316 | "version": "1.0.4", 2317 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", 2318 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" 2319 | }, 2320 | "mongodb": { 2321 | "version": "4.1.4", 2322 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.1.4.tgz", 2323 | "integrity": "sha512-Cv/sk8on/tpvvqbEvR1h03mdyNdyvvO+WhtFlL4jrZ+DSsN/oSQHVqmJQI/sBCqqbOArFcYCAYDfyzqFwV4GSQ==", 2324 | "requires": { 2325 | "bson": "^4.5.4", 2326 | "denque": "^2.0.1", 2327 | "mongodb-connection-string-url": "^2.1.0", 2328 | "saslprep": "^1.0.3" 2329 | } 2330 | }, 2331 | "mongodb-connection-string-url": { 2332 | "version": "2.2.0", 2333 | "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.2.0.tgz", 2334 | "integrity": "sha512-U0cDxLUrQrl7DZA828CA+o69EuWPWEJTwdMPozyd7cy/dbtncUZczMw7wRHcwMD7oKOn0NM2tF9jdf5FFVW9CA==", 2335 | "requires": { 2336 | "@types/whatwg-url": "^8.2.1", 2337 | "whatwg-url": "^11.0.0" 2338 | }, 2339 | "dependencies": { 2340 | "tr46": { 2341 | "version": "3.0.0", 2342 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", 2343 | "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", 2344 | "requires": { 2345 | "punycode": "^2.1.1" 2346 | } 2347 | }, 2348 | "webidl-conversions": { 2349 | "version": "7.0.0", 2350 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", 2351 | "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==" 2352 | }, 2353 | "whatwg-url": { 2354 | "version": "11.0.0", 2355 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", 2356 | "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", 2357 | "requires": { 2358 | "tr46": "^3.0.0", 2359 | "webidl-conversions": "^7.0.0" 2360 | } 2361 | } 2362 | } 2363 | }, 2364 | "mongoose": { 2365 | "version": "6.0.14", 2366 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.0.14.tgz", 2367 | "integrity": "sha512-SZ0kBlHrz/G70yWdVXLfM/gH4NsY85+as4MZRdtWxBTDEcmoE3rCFAz1/Ho2ycg5mJAeOBwdGZw4a5sn/WrwUA==", 2368 | "requires": { 2369 | "bson": "^4.2.2", 2370 | "kareem": "2.3.2", 2371 | "mongodb": "4.1.4", 2372 | "mpath": "0.8.4", 2373 | "mquery": "4.0.0", 2374 | "ms": "2.1.2", 2375 | "regexp-clone": "1.0.0", 2376 | "sift": "13.5.2", 2377 | "sliced": "1.0.1" 2378 | } 2379 | }, 2380 | "mpath": { 2381 | "version": "0.8.4", 2382 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.8.4.tgz", 2383 | "integrity": "sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g==" 2384 | }, 2385 | "mquery": { 2386 | "version": "4.0.0", 2387 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-4.0.0.tgz", 2388 | "integrity": "sha512-nGjm89lHja+T/b8cybAby6H0YgA4qYC/lx6UlwvHGqvTq8bDaNeCwl1sY8uRELrNbVWJzIihxVd+vphGGn1vBw==", 2389 | "requires": { 2390 | "debug": "4.x", 2391 | "regexp-clone": "^1.0.0", 2392 | "sliced": "1.0.1" 2393 | } 2394 | }, 2395 | "ms": { 2396 | "version": "2.1.2", 2397 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 2398 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 2399 | }, 2400 | "negotiator": { 2401 | "version": "0.6.2", 2402 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 2403 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 2404 | }, 2405 | "node-addon-api": { 2406 | "version": "3.2.1", 2407 | "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", 2408 | "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==" 2409 | }, 2410 | "node-fetch": { 2411 | "version": "2.6.6", 2412 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz", 2413 | "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==", 2414 | "requires": { 2415 | "whatwg-url": "^5.0.0" 2416 | } 2417 | }, 2418 | "nopt": { 2419 | "version": "5.0.0", 2420 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", 2421 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", 2422 | "requires": { 2423 | "abbrev": "1" 2424 | } 2425 | }, 2426 | "npmlog": { 2427 | "version": "6.0.0", 2428 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.0.tgz", 2429 | "integrity": "sha512-03ppFRGlsyUaQFbGC2C8QWJN/C/K7PsfyD9aQdhVKAQIH4sQBc8WASqFBP7O+Ut4d2oo5LoeoboB3cGdBZSp6Q==", 2430 | "requires": { 2431 | "are-we-there-yet": "^2.0.0", 2432 | "console-control-strings": "^1.1.0", 2433 | "gauge": "^4.0.0", 2434 | "set-blocking": "^2.0.0" 2435 | } 2436 | }, 2437 | "on-finished": { 2438 | "version": "2.3.0", 2439 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 2440 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 2441 | "requires": { 2442 | "ee-first": "1.1.1" 2443 | } 2444 | }, 2445 | "on-headers": { 2446 | "version": "1.0.2", 2447 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 2448 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" 2449 | }, 2450 | "once": { 2451 | "version": "1.4.0", 2452 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2453 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 2454 | "requires": { 2455 | "wrappy": "1" 2456 | } 2457 | }, 2458 | "parseurl": { 2459 | "version": "1.3.3", 2460 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 2461 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 2462 | }, 2463 | "passport": { 2464 | "version": "0.5.0", 2465 | "resolved": "https://registry.npmjs.org/passport/-/passport-0.5.0.tgz", 2466 | "integrity": "sha512-ln+ue5YaNDS+fes6O5PCzXKSseY5u8MYhX9H5Co4s+HfYI5oqvnHKoOORLYDUPh+8tHvrxugF2GFcUA1Q1Gqfg==", 2467 | "requires": { 2468 | "passport-strategy": "1.x.x", 2469 | "pause": "0.0.1" 2470 | } 2471 | }, 2472 | "passport-local": { 2473 | "version": "1.0.0", 2474 | "resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz", 2475 | "integrity": "sha1-H+YyaMkudWBmJkN+O5BmYsFbpu4=", 2476 | "requires": { 2477 | "passport-strategy": "1.x.x" 2478 | } 2479 | }, 2480 | "passport-strategy": { 2481 | "version": "1.0.0", 2482 | "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", 2483 | "integrity": "sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ=" 2484 | }, 2485 | "path-is-absolute": { 2486 | "version": "1.0.1", 2487 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2488 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 2489 | }, 2490 | "path-to-regexp": { 2491 | "version": "0.1.7", 2492 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 2493 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 2494 | }, 2495 | "pause": { 2496 | "version": "0.0.1", 2497 | "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", 2498 | "integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10=" 2499 | }, 2500 | "ports": { 2501 | "version": "1.1.0", 2502 | "resolved": "https://registry.npmjs.org/ports/-/ports-1.1.0.tgz", 2503 | "integrity": "sha1-twGqKF6V2ujJbNonUhdySh9/bGA=" 2504 | }, 2505 | "proxy-addr": { 2506 | "version": "2.0.6", 2507 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 2508 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 2509 | "requires": { 2510 | "forwarded": "~0.1.2", 2511 | "ipaddr.js": "1.9.1" 2512 | } 2513 | }, 2514 | "punycode": { 2515 | "version": "2.1.1", 2516 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 2517 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 2518 | }, 2519 | "qs": { 2520 | "version": "6.7.0", 2521 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 2522 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 2523 | }, 2524 | "random-bytes": { 2525 | "version": "1.0.0", 2526 | "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", 2527 | "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=" 2528 | }, 2529 | "range-parser": { 2530 | "version": "1.2.1", 2531 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 2532 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 2533 | }, 2534 | "raw-body": { 2535 | "version": "2.4.0", 2536 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 2537 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 2538 | "requires": { 2539 | "bytes": "3.1.0", 2540 | "http-errors": "1.7.2", 2541 | "iconv-lite": "0.4.24", 2542 | "unpipe": "1.0.0" 2543 | } 2544 | }, 2545 | "readable-stream": { 2546 | "version": "3.6.0", 2547 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 2548 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 2549 | "requires": { 2550 | "inherits": "^2.0.3", 2551 | "string_decoder": "^1.1.1", 2552 | "util-deprecate": "^1.0.1" 2553 | } 2554 | }, 2555 | "regexp-clone": { 2556 | "version": "1.0.0", 2557 | "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz", 2558 | "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==" 2559 | }, 2560 | "rimraf": { 2561 | "version": "3.0.2", 2562 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 2563 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 2564 | "requires": { 2565 | "glob": "^7.1.3" 2566 | } 2567 | }, 2568 | "safe-buffer": { 2569 | "version": "5.1.2", 2570 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 2571 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 2572 | }, 2573 | "safer-buffer": { 2574 | "version": "2.1.2", 2575 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 2576 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 2577 | }, 2578 | "saslprep": { 2579 | "version": "1.0.3", 2580 | "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", 2581 | "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", 2582 | "optional": true, 2583 | "requires": { 2584 | "sparse-bitfield": "^3.0.3" 2585 | } 2586 | }, 2587 | "semver": { 2588 | "version": "7.3.5", 2589 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", 2590 | "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", 2591 | "requires": { 2592 | "lru-cache": "^6.0.0" 2593 | } 2594 | }, 2595 | "send": { 2596 | "version": "0.17.1", 2597 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 2598 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 2599 | "requires": { 2600 | "debug": "2.6.9", 2601 | "depd": "~1.1.2", 2602 | "destroy": "~1.0.4", 2603 | "encodeurl": "~1.0.2", 2604 | "escape-html": "~1.0.3", 2605 | "etag": "~1.8.1", 2606 | "fresh": "0.5.2", 2607 | "http-errors": "~1.7.2", 2608 | "mime": "1.6.0", 2609 | "ms": "2.1.1", 2610 | "on-finished": "~2.3.0", 2611 | "range-parser": "~1.2.1", 2612 | "statuses": "~1.5.0" 2613 | }, 2614 | "dependencies": { 2615 | "debug": { 2616 | "version": "2.6.9", 2617 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 2618 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 2619 | "requires": { 2620 | "ms": "2.0.0" 2621 | }, 2622 | "dependencies": { 2623 | "ms": { 2624 | "version": "2.0.0", 2625 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 2626 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 2627 | } 2628 | } 2629 | }, 2630 | "ms": { 2631 | "version": "2.1.1", 2632 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 2633 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 2634 | } 2635 | } 2636 | }, 2637 | "serve-static": { 2638 | "version": "1.14.1", 2639 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 2640 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 2641 | "requires": { 2642 | "encodeurl": "~1.0.2", 2643 | "escape-html": "~1.0.3", 2644 | "parseurl": "~1.3.3", 2645 | "send": "0.17.1" 2646 | } 2647 | }, 2648 | "set-blocking": { 2649 | "version": "2.0.0", 2650 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 2651 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" 2652 | }, 2653 | "setprototypeof": { 2654 | "version": "1.1.1", 2655 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 2656 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 2657 | }, 2658 | "sift": { 2659 | "version": "13.5.2", 2660 | "resolved": "https://registry.npmjs.org/sift/-/sift-13.5.2.tgz", 2661 | "integrity": "sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA==" 2662 | }, 2663 | "signal-exit": { 2664 | "version": "3.0.6", 2665 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", 2666 | "integrity": "sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==" 2667 | }, 2668 | "sliced": { 2669 | "version": "1.0.1", 2670 | "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz", 2671 | "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E=" 2672 | }, 2673 | "sparse-bitfield": { 2674 | "version": "3.0.3", 2675 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 2676 | "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", 2677 | "optional": true, 2678 | "requires": { 2679 | "memory-pager": "^1.0.2" 2680 | } 2681 | }, 2682 | "statuses": { 2683 | "version": "1.5.0", 2684 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 2685 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 2686 | }, 2687 | "string_decoder": { 2688 | "version": "1.3.0", 2689 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 2690 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 2691 | "requires": { 2692 | "safe-buffer": "~5.2.0" 2693 | }, 2694 | "dependencies": { 2695 | "safe-buffer": { 2696 | "version": "5.2.1", 2697 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2698 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 2699 | } 2700 | } 2701 | }, 2702 | "string-width": { 2703 | "version": "4.2.3", 2704 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2705 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2706 | "requires": { 2707 | "emoji-regex": "^8.0.0", 2708 | "is-fullwidth-code-point": "^3.0.0", 2709 | "strip-ansi": "^6.0.1" 2710 | } 2711 | }, 2712 | "strip-ansi": { 2713 | "version": "6.0.1", 2714 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2715 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2716 | "requires": { 2717 | "ansi-regex": "^5.0.1" 2718 | } 2719 | }, 2720 | "tar": { 2721 | "version": "6.1.11", 2722 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", 2723 | "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", 2724 | "requires": { 2725 | "chownr": "^2.0.0", 2726 | "fs-minipass": "^2.0.0", 2727 | "minipass": "^3.0.0", 2728 | "minizlib": "^2.1.1", 2729 | "mkdirp": "^1.0.3", 2730 | "yallist": "^4.0.0" 2731 | } 2732 | }, 2733 | "toidentifier": { 2734 | "version": "1.0.0", 2735 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 2736 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 2737 | }, 2738 | "tr46": { 2739 | "version": "0.0.3", 2740 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 2741 | "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" 2742 | }, 2743 | "type-is": { 2744 | "version": "1.6.18", 2745 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2746 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2747 | "requires": { 2748 | "media-typer": "0.3.0", 2749 | "mime-types": "~2.1.24" 2750 | } 2751 | }, 2752 | "uid-safe": { 2753 | "version": "2.1.5", 2754 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", 2755 | "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", 2756 | "requires": { 2757 | "random-bytes": "~1.0.0" 2758 | } 2759 | }, 2760 | "underscore": { 2761 | "version": "1.12.1", 2762 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", 2763 | "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==" 2764 | }, 2765 | "unpipe": { 2766 | "version": "1.0.0", 2767 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2768 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 2769 | }, 2770 | "util-deprecate": { 2771 | "version": "1.0.2", 2772 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2773 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 2774 | }, 2775 | "utils-merge": { 2776 | "version": "1.0.1", 2777 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2778 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 2779 | }, 2780 | "validator": { 2781 | "version": "13.7.0", 2782 | "resolved": "https://registry.npmjs.org/validator/-/validator-13.7.0.tgz", 2783 | "integrity": "sha512-nYXQLCBkpJ8X6ltALua9dRrZDHVYxjJ1wgskNt1lH9fzGjs3tgojGSCBjmEPwkWS1y29+DrizMTW19Pr9uB2nw==" 2784 | }, 2785 | "vary": { 2786 | "version": "1.1.2", 2787 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2788 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 2789 | }, 2790 | "webidl-conversions": { 2791 | "version": "3.0.1", 2792 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 2793 | "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" 2794 | }, 2795 | "whatwg-url": { 2796 | "version": "5.0.0", 2797 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 2798 | "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", 2799 | "requires": { 2800 | "tr46": "~0.0.3", 2801 | "webidl-conversions": "^3.0.0" 2802 | } 2803 | }, 2804 | "wide-align": { 2805 | "version": "1.1.5", 2806 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", 2807 | "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", 2808 | "requires": { 2809 | "string-width": "^1.0.2 || 2 || 3 || 4" 2810 | } 2811 | }, 2812 | "wrappy": { 2813 | "version": "1.0.2", 2814 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2815 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 2816 | }, 2817 | "yallist": { 2818 | "version": "4.0.0", 2819 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2820 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 2821 | } 2822 | } 2823 | } 2824 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mean-boilerplate-ibm-cloud", 3 | "version": "1.1.0", 4 | "description": "MEAN (Mongo, Express, Angular, Node.js) Boilerplate for IBM Cloud", 5 | "main": "server.js", 6 | "scripts": { 7 | "start": "node server.js", 8 | "start-local": "node -r dotenv/config server.js", 9 | "dev": "nodemon server.js" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "https://github.com/IBM-Cloud/nodejs-MEAN-stack.git" 14 | }, 15 | "keywords": [ 16 | "Node.js", 17 | "mongo", 18 | "angular", 19 | "express", 20 | "javascript", 21 | "boilerplate" 22 | ], 23 | "author": "IBM Cloud", 24 | "license": "Apache-2.0", 25 | "bugs": { 26 | "url": "https://github.com/IBM-Cloud/nodejs-MEAN-stack/issues" 27 | }, 28 | "homepage": "https://github.com/IBM-Cloud/nodejs-MEAN-stack", 29 | "dependencies": { 30 | "bcrypt": "5.0.1", 31 | "body-parser": "1.19.0", 32 | "cfenv": "1.2.4", 33 | "connect-mongo": "4.6.0", 34 | "cookie-parser": "1.4.6", 35 | "dotenv": "10.0.0", 36 | "express": "4.17.1", 37 | "express-session": "1.17.2", 38 | "express-validator": "6.13.0", 39 | "mongoose": "6.0.14", 40 | "passport": "0.5.0", 41 | "passport-local": "1.0.0" 42 | }, 43 | "devDependencies": {}, 44 | "engines": { 45 | "node": ">=14" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /public/css/app.css: -------------------------------------------------------------------------------- 1 | fieldset{ 2 | margin-top: 30px; 3 | } 4 | 5 | input.ng-invalid.ng-touched { 6 | border: 1px solid red; 7 | } -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | App Name 5 | 6 | 7 | 8 | 9 | 10 | 35 | 36 |
37 | 38 |
39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /public/js/app.js: -------------------------------------------------------------------------------- 1 | // See LICENSE.MD for license information. 2 | 3 | var app = angular.module('MEANapp', ['ngRoute', 'ngStorage']); 4 | 5 | /********************************* 6 | Controllers 7 | *********************************/ 8 | 9 | app.controller('HeaderController', function($scope, $localStorage, $sessionStorage, $location, $http){ 10 | 11 | // Set local scope to persisted user data 12 | $scope.user = $localStorage; 13 | 14 | // Logout function 15 | $scope.logout = function(){ 16 | $http({ 17 | method: 'GET', 18 | url: '/account/logout' 19 | }) 20 | .success(function(response){ 21 | alert(response); 22 | $localStorage.$reset(); 23 | $location.path('/'); 24 | }) 25 | .error(function(response){ 26 | alert(response); 27 | $location.path('/account/login'); 28 | } 29 | ); 30 | }; 31 | }); 32 | 33 | app.controller('HomeController', function($scope, $localStorage, $sessionStorage){}); 34 | 35 | app.controller('LoginController', function($scope, $localStorage, $sessionStorage, $location, $http){ 36 | 37 | // Login submission 38 | $scope.submitLogin = function(){ 39 | 40 | // Login request 41 | $http({ 42 | method: 'POST', 43 | url: '/account/login', 44 | data: { 45 | 'username': $scope.loginForm.username, 46 | 'password': $scope.loginForm.password 47 | } 48 | }) 49 | .success(function(response){ 50 | // $localStorage persists data in browser's local storage (prevents data loss on page refresh) 51 | $localStorage.status = true; 52 | $localStorage.user = response; 53 | $location.path('/'); 54 | }) 55 | .error(function(){ 56 | alert('Login failed. Check username/password and try again.'); 57 | } 58 | ); 59 | }; 60 | 61 | // Redirect to account creation page 62 | $scope.createAccount = function(){ 63 | $location.path('/account/create'); 64 | } 65 | }); 66 | 67 | app.controller('CreateAccountController', function($scope, $localStorage, $sessionStorage, $http, $location){ 68 | 69 | // Create account 70 | $scope.submitForm = function(){ 71 | $http({ 72 | method: 'POST', 73 | url: '/account/create', 74 | data: { 75 | 'username': $scope.newUser.username, 76 | 'password': $scope.newUser.password, 77 | 'name' : $scope.newUser.name, 78 | 'email' : $scope.newUser.email 79 | } 80 | }) 81 | .success(function(response){ 82 | alert(response); 83 | $location.path('/account/login'); 84 | }) 85 | .error(function(response){ 86 | // When a string is returned 87 | if(typeof response === 'string'){ 88 | alert(response); 89 | } 90 | // When array is returned 91 | else if (Array.isArray(response)){ 92 | // More than one message returned in the array 93 | if(response.length > 1){ 94 | var messages = [], 95 | allMessages; 96 | for (var i = response.length - 1; i >= 0; i--) { 97 | messages.push(response[i]['msg']); 98 | if(response.length == 0){ 99 | allMessages = messages.join(", "); 100 | alert(allMessages); 101 | console.error(response); 102 | } 103 | } 104 | } 105 | // Single message returned in the array 106 | else{ 107 | alert(response[0]['msg']); 108 | console.error(response); 109 | } 110 | } 111 | // When something else is returned 112 | else{ 113 | console.error(response); 114 | alert("See console for error."); 115 | } 116 | } 117 | ); 118 | 119 | }; 120 | }); 121 | 122 | app.controller('AccountController', function($scope, $localStorage, $sessionStorage, $http, $location){ 123 | 124 | // Create static copy of user data for form usage (otherwise any temporary changes will bind permanently to $localStorage) 125 | $scope.formData = $.extend(true,{},$localStorage.user); 126 | 127 | // Update user's account with new data 128 | $scope.updateAccount = function(){ 129 | $http({ 130 | method: 'POST', 131 | url: '/account/update', 132 | data: { 133 | 'username': $scope.formData.username, 134 | 'password': $scope.password, 135 | 'name' : $scope.formData.name, 136 | 'email' : $scope.formData.email 137 | } 138 | }) 139 | .success(function(response){ 140 | $localStorage.user = $scope.formData; 141 | alert(response); 142 | }) 143 | .error(function(response){ 144 | // When a string is returned 145 | if(typeof response === 'string'){ 146 | alert(response); 147 | } 148 | // When an array is returned 149 | else if (Array.isArray(response)){ 150 | // More than one message returned in the array 151 | if(response.length > 1){ 152 | var messages = [], 153 | allMessages; 154 | for (var i = response.length - 1; i >= 0; i--) { 155 | messages.push(response[i]['msg']); 156 | if(response.length == 0){ 157 | allMessages = messages.join(", "); 158 | alert(allMessages); 159 | console.error(response); 160 | } 161 | } 162 | } 163 | // Single message returned in the array 164 | else{ 165 | alert(response[0]['msg']); 166 | console.error(response); 167 | } 168 | } 169 | // When something else is returned 170 | else{ 171 | console.error(response); 172 | alert("See console for error."); 173 | } 174 | } 175 | ); 176 | }; 177 | 178 | // Delete user's account 179 | $scope.deleteAccount = function(){ 180 | var response = confirm("Are you sure you want to delete your account? This cannot be undone!"); 181 | if(response == true){ 182 | $http({ 183 | method: 'POST', 184 | url: '/account/delete', 185 | data: { 186 | 'username': $scope.formData.username 187 | } 188 | }) 189 | .success(function(response){ 190 | $localStorage.$reset(); 191 | alert(response); 192 | $location.path('/'); 193 | }) 194 | .error(function(response){ 195 | alert(response); 196 | } 197 | ); 198 | } 199 | }; 200 | }); 201 | 202 | app.controller('ProtectedController', function($scope, $location, $http){ 203 | 204 | $http({ 205 | method: 'GET', 206 | url: '/protected' 207 | }) 208 | .success(function(response){ 209 | $scope.message = response; 210 | }) 211 | .error(function(response){ 212 | alert(response); 213 | $location.path('/account/login'); 214 | } 215 | ); 216 | 217 | }); 218 | 219 | /********************************* 220 | Routing 221 | *********************************/ 222 | app.config(function($routeProvider) { 223 | 'use strict'; 224 | 225 | $routeProvider. 226 | 227 | //Root 228 | when('/', { 229 | templateUrl: 'views/home.html', 230 | controller: 'HomeController' 231 | }). 232 | 233 | //Login page 234 | when('/account/login', { 235 | templateUrl: 'views/login.html', 236 | controller: 'LoginController' 237 | }). 238 | 239 | //Account page 240 | when('/account', { 241 | templateUrl: 'views/account.html', 242 | controller: 'AccountController' 243 | }). 244 | 245 | //Create Account page 246 | when('/account/create', { 247 | templateUrl: 'views/create_account.html', 248 | controller: 'CreateAccountController' 249 | }). 250 | 251 | //Protected page 252 | when('/protected', { 253 | templateUrl: 'views/protected.html', 254 | controller: 'ProtectedController' 255 | }); 256 | 257 | }); 258 | -------------------------------------------------------------------------------- /public/views/account.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 7 |
8 |
9 | 10 | 11 |
12 |
13 |
14 |
15 |
16 |
17 | 18 |
19 | 25 |
26 |
27 |
28 | 29 |
30 | 36 |
37 |
38 |
39 | 40 |
41 | 46 |
47 |
48 |
49 | 50 |
51 | 57 |
58 |
59 |
60 |
61 | 62 |

63 | 64 |
65 |
66 |
67 |
68 |
69 |
70 | -------------------------------------------------------------------------------- /public/views/create_account.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 7 |
8 |
9 | 10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 | 22 |
23 |
24 |
25 | 26 |
27 | 32 |
33 |
34 |
35 | 36 |
37 | 42 |
43 |
44 |
45 | 46 |
47 | 53 |
54 |
55 |
56 |
57 | 58 |
59 |
60 |
61 |
62 |
63 |
64 | 65 | -------------------------------------------------------------------------------- /public/views/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |

App Name

6 |

Insert your message here.

7 |
8 |
9 | 10 |
11 |
12 |

Get Started with Boilerplate

13 |

See the README for getting started documentation.

14 |
15 |
16 |

Resources & Documentation

17 | 21 |
22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /public/views/login.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 7 |
8 |
9 |
10 |
11 |
12 |
13 | Local Account 14 |
15 | 16 |
17 | 22 |
23 |
24 |
25 | 26 |
27 | 33 |
34 |
35 |
36 |
37 | 38 |
39 |
40 |

- Or -

41 |
42 |
43 | 44 |
45 |
46 |
47 |
48 |
49 |
50 | -------------------------------------------------------------------------------- /public/views/protected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |

{{message}}

6 |
7 |
8 | 9 | -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- 1 | // See LICENSE.MD for license information. 2 | 3 | 'use strict'; 4 | 5 | /******************************** 6 | Dependencies 7 | ********************************/ 8 | // server middleware 9 | const express = require('express'); 10 | 11 | // Authentication framework 12 | const passport = require('passport'); 13 | const LocalStrategy = require('passport-local').Strategy; 14 | 15 | // MongoDB connection library 16 | const mongoose = require('mongoose'); 17 | const User = require('./server/models/user.model'); 18 | 19 | /******************************** 20 | Load environment 21 | ********************************/ 22 | require('dotenv').config();// Loads .env file into environment 23 | 24 | /******************************** 25 | MongoDB Connection 26 | ********************************/ 27 | async function initializeDatabase() { 28 | //Detects environment and connects to appropriate DB 29 | var caCertificateBase64, mongoDbUrl; 30 | 31 | caCertificateBase64 = process.env.CERTIFICATE_BASE64; 32 | mongoDbUrl = process.env.MONGODB_URL; 33 | 34 | function unicodeToChar(text) { 35 | return text.replace(/\\u[\dA-F]{4}/gi, 36 | function (match) { 37 | return String.fromCharCode(parseInt(match.replace(/\\u/g, ''), 16)); 38 | }); 39 | } 40 | mongoDbUrl = unicodeToChar(mongoDbUrl); 41 | console.log(`Connecting to database located at ${mongoDbUrl}...`); 42 | 43 | // write down the certificate so that it can be used by MongoDB client 44 | require('fs').writeFileSync('__temp__ca.pem', Buffer.from(caCertificateBase64, 'base64')); 45 | 46 | var mongoDbOptions = { 47 | useNewUrlParser: true, 48 | ssl: true, 49 | sslValidate: true, 50 | sslCA: '__temp__ca.pem', 51 | useUnifiedTopology: true 52 | }; 53 | 54 | try { 55 | await mongoose.connect(mongoDbUrl, mongoDbOptions); 56 | console.log("Connected to database."); 57 | } catch (err) { 58 | console.error("Could not connect", err); 59 | } 60 | } 61 | 62 | /******************************** 63 | Passport Middleware Configuration 64 | ********************************/ 65 | function configurePassport() { 66 | console.log("Configuring passport authentication..."); 67 | // configure passport 68 | passport.use(new LocalStrategy( 69 | function (username, password, done) { 70 | console.log(`Finding user with login ${username}`); 71 | User.findOne({ username: username }, function (err, user) { 72 | if (err) { 73 | return done(err); 74 | } 75 | if (!user) { 76 | return done(null, false, { message: 'Incorrect username.' }); 77 | } 78 | // validatePassword method defined in user.model.js 79 | if (!user.validatePassword(password, user.password)) { 80 | return done(null, false, { message: 'Incorrect password.' }); 81 | } 82 | console.log('User found!', user); 83 | return done(null, user); 84 | }); 85 | } 86 | )); 87 | 88 | passport.serializeUser(function (user, done) { 89 | done(null, user.id); 90 | }); 91 | 92 | passport.deserializeUser(function (id, done) { 93 | User.findById(id, function (err, user) { 94 | done(err, user); 95 | }); 96 | }); 97 | } 98 | 99 | /******************************** 100 | Express Settings 101 | ********************************/ 102 | function configureApp() { 103 | console.log("Setting up app middleware..."); 104 | const bodyParser = require('body-parser'); // parse HTTP requests 105 | const cookieParser = require('cookie-parser'); 106 | const session = require('express-session'); 107 | const MongoStore = require('connect-mongo'); // store sessions in MongoDB for persistence 108 | 109 | const app = express(); 110 | app.enable('trust proxy'); 111 | app.use(bodyParser.json()); 112 | app.use(bodyParser.urlencoded({ extended: true })); 113 | app.use(cookieParser()); 114 | 115 | app.use(session({ 116 | secret: process.env.SESSION_SECRET || 'this_is_a_default_session_secret_in_case_one_is_not_defined', 117 | resave: true, 118 | store: new MongoStore({ client: mongoose.connection.getClient() }), 119 | saveUninitialized: false, 120 | cookie: { secure: false } 121 | })); 122 | app.use(passport.initialize()); 123 | app.use(passport.session()); 124 | 125 | return app; 126 | } 127 | 128 | /******************************** 129 | Routing 130 | ********************************/ 131 | function setupRoutes(app) { 132 | console.log("Setting up app routes..."); 133 | // validation tool for processing user input 134 | const expressValidator = require('express-validator'); 135 | const bcrypt = require('bcrypt'); 136 | 137 | // html, css, js 138 | app.use(express.static(__dirname + '/public')); 139 | 140 | // Account login 141 | app.post('/account/login', 142 | // Validation prior to checking DB. Front end validation exists, but this functions as a fail-safe 143 | expressValidator.body('username', 'Username is required').notEmpty(), 144 | expressValidator.body('password', 'Password is required').notEmpty(), 145 | function (req, res) { 146 | var errors = expressValidator.validationResult(req); // returns an object with results of validation check 147 | if (errors.length > 0) { 148 | res.status(401).send('Username or password was left empty. Please complete both fields and re-submit.'); 149 | return; 150 | } 151 | 152 | // Create session if username exists and password is correct 153 | passport.authenticate('local', function (err, user) { 154 | if (err) { return next(err); } 155 | if (!user) { return res.status(401).send('User not found. Please check your entry and try again.'); } 156 | req.login(user, function (err) { // creates session 157 | if (err) { return res.status(500).send('Error saving session.'); } 158 | var userInfo = { 159 | username: user.username, 160 | name: user.name, 161 | email: user.email 162 | }; 163 | return res.json(userInfo); 164 | }); 165 | })(req, res); 166 | }); 167 | 168 | // Account creation 169 | app.post('/account/create', 170 | // 1. Input validation. Front end validation exists, but this functions as a fail-safe 171 | expressValidator.body('username', 'Username is required').notEmpty(), 172 | expressValidator.body('password', 'Password is required').notEmpty(), 173 | expressValidator.body('name', 'Name is required').notEmpty(), 174 | expressValidator.body('email', 'Email is required and must be in a valid form').notEmpty().isEmail(), 175 | function (req, res) { 176 | var errors = expressValidator.validationResult(req); // returns an array with results of validation check 177 | if (errors.length > 0) { 178 | res.status(400).send(errors); 179 | return; 180 | } 181 | 182 | // 2. Hash user's password for safe-keeping in DB 183 | const salt = bcrypt.genSaltSync(10), 184 | hash = bcrypt.hashSync(req.body.password, salt); 185 | 186 | // 3. Create new object that store's new user data 187 | var user = new User({ 188 | username: req.body.username, 189 | password: hash, 190 | email: req.body.email, 191 | name: req.body.name 192 | }); 193 | 194 | // 4. Store the data in MongoDB 195 | User.findOne({ username: req.body.username }, function (err, existingUser) { 196 | if (existingUser) { 197 | return res.status(400).send('That username already exists. Please try a different username.'); 198 | } 199 | user.save(function (err) { 200 | if (err) { 201 | console.log(err); 202 | res.status(500).send('Error saving new account (database error). Please try again.'); 203 | return; 204 | } 205 | res.status(200).send('Account created! Please login with your new account.'); 206 | }); 207 | }); 208 | 209 | }); 210 | 211 | //Account deletion 212 | app.post('/account/delete', authorizeRequest, function (req, res) { 213 | User.deleteOne({ username: req.body.username }, function (err) { 214 | if (err) { 215 | console.log(err); 216 | res.status(500).send('Error deleting account.'); 217 | return; 218 | } 219 | req.session.destroy(function (err) { 220 | if (err) { 221 | res.status(500).send('Error deleting account.'); 222 | console.log("Error deleting session: " + err); 223 | return; 224 | } 225 | res.status(200).send('Account successfully deleted.'); 226 | }); 227 | }); 228 | }); 229 | 230 | // Account update 231 | app.post('/account/update', 232 | authorizeRequest, 233 | // 1. Input validation. Front end validation exists, but this functions as a fail-safe 234 | expressValidator.body('username', 'Username is required').notEmpty(), 235 | expressValidator.body('password', 'Password is required').notEmpty(), 236 | expressValidator.body('name', 'Name is required').notEmpty(), 237 | expressValidator.body('email', 'Email is required and must be in a valid form').notEmpty().isEmail(), 238 | function (req, res) { 239 | 240 | var errors = expressValidator.validationResult(req); // returns an array with results of validation check 241 | if (errors.length > 0) { 242 | res.status(400).send(errors); 243 | return; 244 | } 245 | 246 | // 2. Hash user's password for safe-keeping in DB 247 | var salt = bcrypt.genSaltSync(10), 248 | hash = bcrypt.hashSync(req.body.password, salt); 249 | 250 | // 3. Store updated data in MongoDB 251 | User.findOne({ username: req.body.username }, function (err, user) { 252 | if (err) { 253 | console.log(err); 254 | return res.status(400).send('Error updating account.'); 255 | } 256 | user.username = req.body.username; 257 | user.password = hash; 258 | user.email = req.body.email; 259 | user.name = req.body.name; 260 | user.save(function (err) { 261 | if (err) { 262 | console.log(err); 263 | res.status(500).send('Error updating account.'); 264 | return; 265 | } 266 | res.status(200).send('Account updated.'); 267 | }); 268 | }); 269 | }); 270 | 271 | // // Account logout 272 | app.get('/account/logout', function (req, res) { 273 | // Destroys user's session 274 | if (!req.user) 275 | res.status(400).send('User not logged in.'); 276 | else { 277 | req.session.destroy(function (err) { 278 | if (err) { 279 | res.status(500).send('Sorry. Server error in logout process.'); 280 | console.log("Error destroying session: " + err); 281 | return; 282 | } 283 | res.status(200).send('Success logging user out!'); 284 | }); 285 | } 286 | }); 287 | 288 | // Custom middleware to check if user is logged-in 289 | function authorizeRequest(req, res, next) { 290 | if (req.user) { 291 | next(); 292 | } else { 293 | res.status(401).send('Unauthorized. Please login.'); 294 | } 295 | } 296 | 297 | // Protected route requiring authorization to access. 298 | app.get('/protected', authorizeRequest, function (req, res) { 299 | res.send("This is a protected route only visible to authenticated users."); 300 | }); 301 | } 302 | 303 | /******************************** 304 | Ports 305 | ********************************/ 306 | function startApp(app) { 307 | app.listen(process.env.PORT, process.env.BIND, function () { 308 | console.log(`Application running at http://localhost:${process.env.PORT}`); 309 | }); 310 | } 311 | 312 | async function main() { 313 | await initializeDatabase(); 314 | configurePassport(); 315 | const app = configureApp(); 316 | setupRoutes(app); 317 | startApp(app); 318 | } 319 | 320 | main(); -------------------------------------------------------------------------------- /server/models/user.model.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /******************************** 4 | Dependencies 5 | ********************************/ 6 | var mongoose = require('mongoose'), 7 | bcrypt = require('bcrypt'); 8 | 9 | /******************************** 10 | Create User Account Schema 11 | ********************************/ 12 | var accountSchema = new mongoose.Schema({ 13 | username: {type: String, required: true, unique: true}, 14 | password: {type: String, required: true}, 15 | email: {type: String, required: true}, 16 | name: {type: String, required: true}, 17 | tokens: Array 18 | }); 19 | 20 | // Used by Passport middleware to validate password against what is stored in DB 21 | accountSchema.methods.validatePassword = function(password, hash) { 22 | return bcrypt.compareSync(password, hash); // boolean return 23 | }; 24 | 25 | module.exports = mongoose.model('User', accountSchema); --------------------------------------------------------------------------------