├── .gitignore ├── LICENSE ├── NOTICE ├── README.md ├── cosign.pub ├── package-lock.json ├── package.json └── src ├── index.js ├── messages ├── messages-permissions.js ├── messages.router.js └── messages.service.js └── middleware ├── auth0.middleware.js ├── error.middleware.js └── not-found.middleware.js /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.toptal.com/developers/gitignore/api/node,macos,windows,visualstudiocode,jetbrains+all 3 | # Edit at https://www.toptal.com/developers/gitignore?templates=node,macos,windows,visualstudiocode,jetbrains+all 4 | 5 | ### JetBrains+all ### 6 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider 7 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 8 | 9 | # User-specific stuff 10 | .idea/**/workspace.xml 11 | .idea/**/tasks.xml 12 | .idea/**/usage.statistics.xml 13 | .idea/**/dictionaries 14 | .idea/**/shelf 15 | 16 | # AWS User-specific 17 | .idea/**/aws.xml 18 | 19 | # Generated files 20 | .idea/**/contentModel.xml 21 | 22 | # Sensitive or high-churn files 23 | .idea/**/dataSources/ 24 | .idea/**/dataSources.ids 25 | .idea/**/dataSources.local.xml 26 | .idea/**/sqlDataSources.xml 27 | .idea/**/dynamic.xml 28 | .idea/**/uiDesigner.xml 29 | .idea/**/dbnavigator.xml 30 | 31 | # Gradle 32 | .idea/**/gradle.xml 33 | .idea/**/libraries 34 | 35 | # Gradle and Maven with auto-import 36 | # When using Gradle or Maven with auto-import, you should exclude module files, 37 | # since they will be recreated, and may cause churn. Uncomment if using 38 | # auto-import. 39 | # .idea/artifacts 40 | # .idea/compiler.xml 41 | # .idea/jarRepositories.xml 42 | # .idea/modules.xml 43 | # .idea/*.iml 44 | # .idea/modules 45 | # *.iml 46 | # *.ipr 47 | 48 | # CMake 49 | cmake-build-*/ 50 | 51 | # Mongo Explorer plugin 52 | .idea/**/mongoSettings.xml 53 | 54 | # File-based project format 55 | *.iws 56 | 57 | # IntelliJ 58 | out/ 59 | 60 | # mpeltonen/sbt-idea plugin 61 | .idea_modules/ 62 | 63 | # JIRA plugin 64 | atlassian-ide-plugin.xml 65 | 66 | # Cursive Clojure plugin 67 | .idea/replstate.xml 68 | 69 | # Crashlytics plugin (for Android Studio and IntelliJ) 70 | com_crashlytics_export_strings.xml 71 | crashlytics.properties 72 | crashlytics-build.properties 73 | fabric.properties 74 | 75 | # Editor-based Rest Client 76 | .idea/httpRequests 77 | 78 | # Android studio 3.1+ serialized cache file 79 | .idea/caches/build_file_checksums.ser 80 | 81 | ### JetBrains+all Patch ### 82 | # Ignores the whole .idea folder and all .iml files 83 | # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 84 | 85 | .idea/ 86 | 87 | # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 88 | 89 | *.iml 90 | modules.xml 91 | .idea/misc.xml 92 | *.ipr 93 | 94 | # Sonarlint plugin 95 | .idea/sonarlint 96 | 97 | ### macOS ### 98 | # General 99 | .DS_Store 100 | .AppleDouble 101 | .LSOverride 102 | 103 | # Icon must end with two \r 104 | Icon 105 | 106 | 107 | # Thumbnails 108 | ._* 109 | 110 | # Files that might appear in the root of a volume 111 | .DocumentRevisions-V100 112 | .fseventsd 113 | .Spotlight-V100 114 | .TemporaryItems 115 | .Trashes 116 | .VolumeIcon.icns 117 | .com.apple.timemachine.donotpresent 118 | 119 | # Directories potentially created on remote AFP share 120 | .AppleDB 121 | .AppleDesktop 122 | Network Trash Folder 123 | Temporary Items 124 | .apdisk 125 | 126 | ### Node ### 127 | # Logs 128 | logs 129 | *.log 130 | npm-debug.log* 131 | yarn-debug.log* 132 | yarn-error.log* 133 | lerna-debug.log* 134 | .pnpm-debug.log* 135 | 136 | # Diagnostic reports (https://nodejs.org/api/report.html) 137 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 138 | 139 | # Runtime data 140 | pids 141 | *.pid 142 | *.seed 143 | *.pid.lock 144 | 145 | # Directory for instrumented libs generated by jscoverage/JSCover 146 | lib-cov 147 | 148 | # Coverage directory used by tools like istanbul 149 | coverage 150 | *.lcov 151 | 152 | # nyc test coverage 153 | .nyc_output 154 | 155 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 156 | .grunt 157 | 158 | # Bower dependency directory (https://bower.io/) 159 | bower_components 160 | 161 | # node-waf configuration 162 | .lock-wscript 163 | 164 | # Compiled binary addons (https://nodejs.org/api/addons.html) 165 | build/Release 166 | 167 | # Dependency directories 168 | node_modules/ 169 | jspm_packages/ 170 | 171 | # Snowpack dependency directory (https://snowpack.dev/) 172 | web_modules/ 173 | 174 | # TypeScript cache 175 | *.tsbuildinfo 176 | 177 | # Optional npm cache directory 178 | .npm 179 | 180 | # Optional eslint cache 181 | .eslintcache 182 | 183 | # Microbundle cache 184 | .rpt2_cache/ 185 | .rts2_cache_cjs/ 186 | .rts2_cache_es/ 187 | .rts2_cache_umd/ 188 | 189 | # Optional REPL history 190 | .node_repl_history 191 | 192 | # Output of 'npm pack' 193 | *.tgz 194 | 195 | # Yarn Integrity file 196 | .yarn-integrity 197 | 198 | # dotenv environment variables file 199 | .env 200 | .env.test 201 | .env.production 202 | 203 | # parcel-bundler cache (https://parceljs.org/) 204 | .cache 205 | .parcel-cache 206 | 207 | # Next.js build output 208 | .next 209 | out 210 | 211 | # Nuxt.js build / generate output 212 | .nuxt 213 | dist 214 | 215 | # Gatsby files 216 | .cache/ 217 | # Comment in the public line in if your project uses Gatsby and not Next.js 218 | # https://nextjs.org/blog/next-9-1#public-directory-support 219 | # public 220 | 221 | # vuepress build output 222 | .vuepress/dist 223 | 224 | # Serverless directories 225 | .serverless/ 226 | 227 | # FuseBox cache 228 | .fusebox/ 229 | 230 | # DynamoDB Local files 231 | .dynamodb/ 232 | 233 | # TernJS port file 234 | .tern-port 235 | 236 | # Stores VSCode versions used for testing VSCode extensions 237 | .vscode-test 238 | 239 | # yarn v2 240 | .yarn/cache 241 | .yarn/unplugged 242 | .yarn/build-state.yml 243 | .yarn/install-state.gz 244 | .pnp.* 245 | 246 | ### Node Patch ### 247 | # Serverless Webpack directories 248 | .webpack/ 249 | 250 | ### VisualStudioCode ### 251 | .vscode/* 252 | !.vscode/settings.json 253 | !.vscode/tasks.json 254 | !.vscode/launch.json 255 | !.vscode/extensions.json 256 | *.code-workspace 257 | 258 | # Local History for Visual Studio Code 259 | .history/ 260 | 261 | ### VisualStudioCode Patch ### 262 | # Ignore all local history of files 263 | .history 264 | .ionide 265 | 266 | ### Windows ### 267 | # Windows thumbnail cache files 268 | Thumbs.db 269 | Thumbs.db:encryptable 270 | ehthumbs.db 271 | ehthumbs_vista.db 272 | 273 | # Dump file 274 | *.stackdump 275 | 276 | # Folder config file 277 | [Dd]esktop.ini 278 | 279 | # Recycle Bin used on file shares 280 | $RECYCLE.BIN/ 281 | 282 | # Windows Installer files 283 | *.cab 284 | *.msi 285 | *.msix 286 | *.msm 287 | *.msp 288 | 289 | # Windows shortcuts 290 | *.lnk 291 | 292 | # End of https://www.toptal.com/developers/gitignore/api/node,macos,windows,visualstudiocode,jetbrains+all 293 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Express.js/JavaScript: API Basic Role-Based Access Control (RBAC) Code Sample 2 | 3 | This JavaScript code sample demonstrates **how to implement Role-Based Access Control (RBAC)** in Express.js API servers using Auth0. 4 | 5 | This code sample is part of the ["Auth0 Developer Hub"](https://auth0.com/developers/hub), a place where you can explore the authentication and authorization features of the Auth0 Identity Platform. 6 | 7 | Visit the ["Express.js/JavaScript Code Sample: Role-Based Access Control For Basic APIs"](https://auth0.com/developers/hub/code-samples/api/express-javascript/basic-role-based-access-control) page for instructions on how to configure and run this code sample and how to integrate it with a Single-Page Application (SPA) of your choice. 8 | 9 | [![Express.js/JavaScript Code Sample: API Role-Based Access Control For Basic APIs](https://cdn.auth0.com/blog/hub/code-samples/api/express-javascript/basic-role-based-access-control.png)](https://auth0.com/developers/hub/code-samples/api/express-javascript/basic-role-based-access-control) 10 | 11 | ## Why Use Auth0? 12 | 13 | Auth0 is a flexible drop-in solution to add authentication and authorization services to your applications. Your team and organization can avoid the cost, time, and risk that come with building your own solution to authenticate and authorize users. We offer tons of guidance and SDKs for you to get started and [integrate Auth0 into your stack easily](https://auth0.com/developers/hub/code-samples/full-stack). 14 | -------------------------------------------------------------------------------- /cosign.pub: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZzVzkb8A+DbgDpaJId/bOmV8n7Q 3 | OqxYbK0Iro6GzSmOzxkn+N2AKawLyXi84WSwJQBK//psATakCgAQKkNTAA== 4 | -----END PUBLIC KEY----- 5 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "api_express_javascript_hello-world", 3 | "version": "1.0.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "api_express_javascript_hello-world", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "cors": "^2.8.5", 13 | "dotenv": "^10.0.0", 14 | "express": "^4.17.1", 15 | "express-oauth2-jwt-bearer": "^1.1.0", 16 | "helmet": "^4.6.0", 17 | "nocache": "^3.0.1" 18 | }, 19 | "devDependencies": { 20 | "nodemon": "^2.0.15", 21 | "prettier": "^2.4.1" 22 | } 23 | }, 24 | "node_modules/abbrev": { 25 | "version": "1.1.1", 26 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 27 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 28 | "dev": true 29 | }, 30 | "node_modules/accepts": { 31 | "version": "1.3.8", 32 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 33 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 34 | "dependencies": { 35 | "mime-types": "~2.1.34", 36 | "negotiator": "0.6.3" 37 | }, 38 | "engines": { 39 | "node": ">= 0.6" 40 | } 41 | }, 42 | "node_modules/anymatch": { 43 | "version": "3.1.2", 44 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 45 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 46 | "dev": true, 47 | "dependencies": { 48 | "normalize-path": "^3.0.0", 49 | "picomatch": "^2.0.4" 50 | }, 51 | "engines": { 52 | "node": ">= 8" 53 | } 54 | }, 55 | "node_modules/array-flatten": { 56 | "version": "1.1.1", 57 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 58 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 59 | }, 60 | "node_modules/balanced-match": { 61 | "version": "1.0.2", 62 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 63 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 64 | "dev": true 65 | }, 66 | "node_modules/binary-extensions": { 67 | "version": "2.2.0", 68 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 69 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 70 | "dev": true, 71 | "engines": { 72 | "node": ">=8" 73 | } 74 | }, 75 | "node_modules/body-parser": { 76 | "version": "1.20.0", 77 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.0.tgz", 78 | "integrity": "sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==", 79 | "dependencies": { 80 | "bytes": "3.1.2", 81 | "content-type": "~1.0.4", 82 | "debug": "2.6.9", 83 | "depd": "2.0.0", 84 | "destroy": "1.2.0", 85 | "http-errors": "2.0.0", 86 | "iconv-lite": "0.4.24", 87 | "on-finished": "2.4.1", 88 | "qs": "6.10.3", 89 | "raw-body": "2.5.1", 90 | "type-is": "~1.6.18", 91 | "unpipe": "1.0.0" 92 | }, 93 | "engines": { 94 | "node": ">= 0.8", 95 | "npm": "1.2.8000 || >= 1.4.16" 96 | } 97 | }, 98 | "node_modules/brace-expansion": { 99 | "version": "1.1.11", 100 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 101 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 102 | "dev": true, 103 | "dependencies": { 104 | "balanced-match": "^1.0.0", 105 | "concat-map": "0.0.1" 106 | } 107 | }, 108 | "node_modules/braces": { 109 | "version": "3.0.2", 110 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 111 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 112 | "dev": true, 113 | "dependencies": { 114 | "fill-range": "^7.0.1" 115 | }, 116 | "engines": { 117 | "node": ">=8" 118 | } 119 | }, 120 | "node_modules/bytes": { 121 | "version": "3.1.2", 122 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 123 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 124 | "engines": { 125 | "node": ">= 0.8" 126 | } 127 | }, 128 | "node_modules/call-bind": { 129 | "version": "1.0.2", 130 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", 131 | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", 132 | "dependencies": { 133 | "function-bind": "^1.1.1", 134 | "get-intrinsic": "^1.0.2" 135 | }, 136 | "funding": { 137 | "url": "https://github.com/sponsors/ljharb" 138 | } 139 | }, 140 | "node_modules/chokidar": { 141 | "version": "3.5.3", 142 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 143 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 144 | "dev": true, 145 | "funding": [ 146 | { 147 | "type": "individual", 148 | "url": "https://paulmillr.com/funding/" 149 | } 150 | ], 151 | "dependencies": { 152 | "anymatch": "~3.1.2", 153 | "braces": "~3.0.2", 154 | "glob-parent": "~5.1.2", 155 | "is-binary-path": "~2.1.0", 156 | "is-glob": "~4.0.1", 157 | "normalize-path": "~3.0.0", 158 | "readdirp": "~3.6.0" 159 | }, 160 | "engines": { 161 | "node": ">= 8.10.0" 162 | }, 163 | "optionalDependencies": { 164 | "fsevents": "~2.3.2" 165 | } 166 | }, 167 | "node_modules/concat-map": { 168 | "version": "0.0.1", 169 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 170 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 171 | "dev": true 172 | }, 173 | "node_modules/content-disposition": { 174 | "version": "0.5.4", 175 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 176 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 177 | "dependencies": { 178 | "safe-buffer": "5.2.1" 179 | }, 180 | "engines": { 181 | "node": ">= 0.6" 182 | } 183 | }, 184 | "node_modules/content-type": { 185 | "version": "1.0.4", 186 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 187 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", 188 | "engines": { 189 | "node": ">= 0.6" 190 | } 191 | }, 192 | "node_modules/cookie": { 193 | "version": "0.5.0", 194 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", 195 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", 196 | "engines": { 197 | "node": ">= 0.6" 198 | } 199 | }, 200 | "node_modules/cookie-signature": { 201 | "version": "1.0.6", 202 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 203 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 204 | }, 205 | "node_modules/cors": { 206 | "version": "2.8.5", 207 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 208 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 209 | "dependencies": { 210 | "object-assign": "^4", 211 | "vary": "^1" 212 | }, 213 | "engines": { 214 | "node": ">= 0.10" 215 | } 216 | }, 217 | "node_modules/debug": { 218 | "version": "2.6.9", 219 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 220 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 221 | "dependencies": { 222 | "ms": "2.0.0" 223 | } 224 | }, 225 | "node_modules/depd": { 226 | "version": "2.0.0", 227 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 228 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 229 | "engines": { 230 | "node": ">= 0.8" 231 | } 232 | }, 233 | "node_modules/destroy": { 234 | "version": "1.2.0", 235 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 236 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 237 | "engines": { 238 | "node": ">= 0.8", 239 | "npm": "1.2.8000 || >= 1.4.16" 240 | } 241 | }, 242 | "node_modules/dotenv": { 243 | "version": "10.0.0", 244 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", 245 | "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", 246 | "engines": { 247 | "node": ">=10" 248 | } 249 | }, 250 | "node_modules/ee-first": { 251 | "version": "1.1.1", 252 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 253 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 254 | }, 255 | "node_modules/encodeurl": { 256 | "version": "1.0.2", 257 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 258 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 259 | "engines": { 260 | "node": ">= 0.8" 261 | } 262 | }, 263 | "node_modules/escape-html": { 264 | "version": "1.0.3", 265 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 266 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 267 | }, 268 | "node_modules/etag": { 269 | "version": "1.8.1", 270 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 271 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 272 | "engines": { 273 | "node": ">= 0.6" 274 | } 275 | }, 276 | "node_modules/express": { 277 | "version": "4.18.1", 278 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.1.tgz", 279 | "integrity": "sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q==", 280 | "dependencies": { 281 | "accepts": "~1.3.8", 282 | "array-flatten": "1.1.1", 283 | "body-parser": "1.20.0", 284 | "content-disposition": "0.5.4", 285 | "content-type": "~1.0.4", 286 | "cookie": "0.5.0", 287 | "cookie-signature": "1.0.6", 288 | "debug": "2.6.9", 289 | "depd": "2.0.0", 290 | "encodeurl": "~1.0.2", 291 | "escape-html": "~1.0.3", 292 | "etag": "~1.8.1", 293 | "finalhandler": "1.2.0", 294 | "fresh": "0.5.2", 295 | "http-errors": "2.0.0", 296 | "merge-descriptors": "1.0.1", 297 | "methods": "~1.1.2", 298 | "on-finished": "2.4.1", 299 | "parseurl": "~1.3.3", 300 | "path-to-regexp": "0.1.7", 301 | "proxy-addr": "~2.0.7", 302 | "qs": "6.10.3", 303 | "range-parser": "~1.2.1", 304 | "safe-buffer": "5.2.1", 305 | "send": "0.18.0", 306 | "serve-static": "1.15.0", 307 | "setprototypeof": "1.2.0", 308 | "statuses": "2.0.1", 309 | "type-is": "~1.6.18", 310 | "utils-merge": "1.0.1", 311 | "vary": "~1.1.2" 312 | }, 313 | "engines": { 314 | "node": ">= 0.10.0" 315 | } 316 | }, 317 | "node_modules/express-oauth2-jwt-bearer": { 318 | "version": "1.1.0", 319 | "resolved": "https://registry.npmjs.org/express-oauth2-jwt-bearer/-/express-oauth2-jwt-bearer-1.1.0.tgz", 320 | "integrity": "sha512-T9sSmGftzMACOH1oY2gniHkiJ53dWjPgIUD/CrJDL5Ss5PeX+PAol53upd7eaKLiLn/vp+AMTefxkkDIPEJXBQ==", 321 | "dependencies": { 322 | "jose": "^4.3.7" 323 | }, 324 | "engines": { 325 | "node": "12.19.0 || ^14.15.0 || ^16.13.0" 326 | } 327 | }, 328 | "node_modules/fill-range": { 329 | "version": "7.0.1", 330 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 331 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 332 | "dev": true, 333 | "dependencies": { 334 | "to-regex-range": "^5.0.1" 335 | }, 336 | "engines": { 337 | "node": ">=8" 338 | } 339 | }, 340 | "node_modules/finalhandler": { 341 | "version": "1.2.0", 342 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", 343 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", 344 | "dependencies": { 345 | "debug": "2.6.9", 346 | "encodeurl": "~1.0.2", 347 | "escape-html": "~1.0.3", 348 | "on-finished": "2.4.1", 349 | "parseurl": "~1.3.3", 350 | "statuses": "2.0.1", 351 | "unpipe": "~1.0.0" 352 | }, 353 | "engines": { 354 | "node": ">= 0.8" 355 | } 356 | }, 357 | "node_modules/forwarded": { 358 | "version": "0.2.0", 359 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 360 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 361 | "engines": { 362 | "node": ">= 0.6" 363 | } 364 | }, 365 | "node_modules/fresh": { 366 | "version": "0.5.2", 367 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 368 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 369 | "engines": { 370 | "node": ">= 0.6" 371 | } 372 | }, 373 | "node_modules/fsevents": { 374 | "version": "2.3.2", 375 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 376 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 377 | "dev": true, 378 | "hasInstallScript": true, 379 | "optional": true, 380 | "os": [ 381 | "darwin" 382 | ], 383 | "engines": { 384 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 385 | } 386 | }, 387 | "node_modules/function-bind": { 388 | "version": "1.1.1", 389 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 390 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 391 | }, 392 | "node_modules/get-intrinsic": { 393 | "version": "1.1.1", 394 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", 395 | "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", 396 | "dependencies": { 397 | "function-bind": "^1.1.1", 398 | "has": "^1.0.3", 399 | "has-symbols": "^1.0.1" 400 | }, 401 | "funding": { 402 | "url": "https://github.com/sponsors/ljharb" 403 | } 404 | }, 405 | "node_modules/glob-parent": { 406 | "version": "5.1.2", 407 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 408 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 409 | "dev": true, 410 | "dependencies": { 411 | "is-glob": "^4.0.1" 412 | }, 413 | "engines": { 414 | "node": ">= 6" 415 | } 416 | }, 417 | "node_modules/has": { 418 | "version": "1.0.3", 419 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 420 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 421 | "dependencies": { 422 | "function-bind": "^1.1.1" 423 | }, 424 | "engines": { 425 | "node": ">= 0.4.0" 426 | } 427 | }, 428 | "node_modules/has-flag": { 429 | "version": "3.0.0", 430 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 431 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 432 | "dev": true, 433 | "engines": { 434 | "node": ">=4" 435 | } 436 | }, 437 | "node_modules/has-symbols": { 438 | "version": "1.0.3", 439 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 440 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 441 | "engines": { 442 | "node": ">= 0.4" 443 | }, 444 | "funding": { 445 | "url": "https://github.com/sponsors/ljharb" 446 | } 447 | }, 448 | "node_modules/helmet": { 449 | "version": "4.6.0", 450 | "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.6.0.tgz", 451 | "integrity": "sha512-HVqALKZlR95ROkrnesdhbbZJFi/rIVSoNq6f3jA/9u6MIbTsPh3xZwihjeI5+DO/2sOV6HMHooXcEOuwskHpTg==", 452 | "engines": { 453 | "node": ">=10.0.0" 454 | } 455 | }, 456 | "node_modules/http-errors": { 457 | "version": "2.0.0", 458 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 459 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 460 | "dependencies": { 461 | "depd": "2.0.0", 462 | "inherits": "2.0.4", 463 | "setprototypeof": "1.2.0", 464 | "statuses": "2.0.1", 465 | "toidentifier": "1.0.1" 466 | }, 467 | "engines": { 468 | "node": ">= 0.8" 469 | } 470 | }, 471 | "node_modules/iconv-lite": { 472 | "version": "0.4.24", 473 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 474 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 475 | "dependencies": { 476 | "safer-buffer": ">= 2.1.2 < 3" 477 | }, 478 | "engines": { 479 | "node": ">=0.10.0" 480 | } 481 | }, 482 | "node_modules/ignore-by-default": { 483 | "version": "1.0.1", 484 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 485 | "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", 486 | "dev": true 487 | }, 488 | "node_modules/inherits": { 489 | "version": "2.0.4", 490 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 491 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 492 | }, 493 | "node_modules/ipaddr.js": { 494 | "version": "1.9.1", 495 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 496 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 497 | "engines": { 498 | "node": ">= 0.10" 499 | } 500 | }, 501 | "node_modules/is-binary-path": { 502 | "version": "2.1.0", 503 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 504 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 505 | "dev": true, 506 | "dependencies": { 507 | "binary-extensions": "^2.0.0" 508 | }, 509 | "engines": { 510 | "node": ">=8" 511 | } 512 | }, 513 | "node_modules/is-extglob": { 514 | "version": "2.1.1", 515 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 516 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 517 | "dev": true, 518 | "engines": { 519 | "node": ">=0.10.0" 520 | } 521 | }, 522 | "node_modules/is-glob": { 523 | "version": "4.0.3", 524 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 525 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 526 | "dev": true, 527 | "dependencies": { 528 | "is-extglob": "^2.1.1" 529 | }, 530 | "engines": { 531 | "node": ">=0.10.0" 532 | } 533 | }, 534 | "node_modules/is-number": { 535 | "version": "7.0.0", 536 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 537 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 538 | "dev": true, 539 | "engines": { 540 | "node": ">=0.12.0" 541 | } 542 | }, 543 | "node_modules/jose": { 544 | "version": "4.14.4", 545 | "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.4.tgz", 546 | "integrity": "sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==", 547 | "funding": { 548 | "url": "https://github.com/sponsors/panva" 549 | } 550 | }, 551 | "node_modules/media-typer": { 552 | "version": "0.3.0", 553 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 554 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", 555 | "engines": { 556 | "node": ">= 0.6" 557 | } 558 | }, 559 | "node_modules/merge-descriptors": { 560 | "version": "1.0.1", 561 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 562 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 563 | }, 564 | "node_modules/methods": { 565 | "version": "1.1.2", 566 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 567 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", 568 | "engines": { 569 | "node": ">= 0.6" 570 | } 571 | }, 572 | "node_modules/mime": { 573 | "version": "1.6.0", 574 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 575 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 576 | "bin": { 577 | "mime": "cli.js" 578 | }, 579 | "engines": { 580 | "node": ">=4" 581 | } 582 | }, 583 | "node_modules/mime-db": { 584 | "version": "1.52.0", 585 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 586 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 587 | "engines": { 588 | "node": ">= 0.6" 589 | } 590 | }, 591 | "node_modules/mime-types": { 592 | "version": "2.1.35", 593 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 594 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 595 | "dependencies": { 596 | "mime-db": "1.52.0" 597 | }, 598 | "engines": { 599 | "node": ">= 0.6" 600 | } 601 | }, 602 | "node_modules/minimatch": { 603 | "version": "3.1.2", 604 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 605 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 606 | "dev": true, 607 | "dependencies": { 608 | "brace-expansion": "^1.1.7" 609 | }, 610 | "engines": { 611 | "node": "*" 612 | } 613 | }, 614 | "node_modules/ms": { 615 | "version": "2.0.0", 616 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 617 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 618 | }, 619 | "node_modules/negotiator": { 620 | "version": "0.6.3", 621 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 622 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 623 | "engines": { 624 | "node": ">= 0.6" 625 | } 626 | }, 627 | "node_modules/nocache": { 628 | "version": "3.0.4", 629 | "resolved": "https://registry.npmjs.org/nocache/-/nocache-3.0.4.tgz", 630 | "integrity": "sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==", 631 | "engines": { 632 | "node": ">=12.0.0" 633 | } 634 | }, 635 | "node_modules/nodemon": { 636 | "version": "2.0.22", 637 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz", 638 | "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==", 639 | "dev": true, 640 | "dependencies": { 641 | "chokidar": "^3.5.2", 642 | "debug": "^3.2.7", 643 | "ignore-by-default": "^1.0.1", 644 | "minimatch": "^3.1.2", 645 | "pstree.remy": "^1.1.8", 646 | "semver": "^5.7.1", 647 | "simple-update-notifier": "^1.0.7", 648 | "supports-color": "^5.5.0", 649 | "touch": "^3.1.0", 650 | "undefsafe": "^2.0.5" 651 | }, 652 | "bin": { 653 | "nodemon": "bin/nodemon.js" 654 | }, 655 | "engines": { 656 | "node": ">=8.10.0" 657 | }, 658 | "funding": { 659 | "type": "opencollective", 660 | "url": "https://opencollective.com/nodemon" 661 | } 662 | }, 663 | "node_modules/nodemon/node_modules/debug": { 664 | "version": "3.2.7", 665 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 666 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 667 | "dev": true, 668 | "dependencies": { 669 | "ms": "^2.1.1" 670 | } 671 | }, 672 | "node_modules/nodemon/node_modules/ms": { 673 | "version": "2.1.3", 674 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 675 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 676 | "dev": true 677 | }, 678 | "node_modules/nopt": { 679 | "version": "1.0.10", 680 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 681 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 682 | "dev": true, 683 | "dependencies": { 684 | "abbrev": "1" 685 | }, 686 | "bin": { 687 | "nopt": "bin/nopt.js" 688 | }, 689 | "engines": { 690 | "node": "*" 691 | } 692 | }, 693 | "node_modules/normalize-path": { 694 | "version": "3.0.0", 695 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 696 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 697 | "dev": true, 698 | "engines": { 699 | "node": ">=0.10.0" 700 | } 701 | }, 702 | "node_modules/object-assign": { 703 | "version": "4.1.1", 704 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 705 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 706 | "engines": { 707 | "node": ">=0.10.0" 708 | } 709 | }, 710 | "node_modules/object-inspect": { 711 | "version": "1.12.2", 712 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", 713 | "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", 714 | "funding": { 715 | "url": "https://github.com/sponsors/ljharb" 716 | } 717 | }, 718 | "node_modules/on-finished": { 719 | "version": "2.4.1", 720 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 721 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 722 | "dependencies": { 723 | "ee-first": "1.1.1" 724 | }, 725 | "engines": { 726 | "node": ">= 0.8" 727 | } 728 | }, 729 | "node_modules/parseurl": { 730 | "version": "1.3.3", 731 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 732 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 733 | "engines": { 734 | "node": ">= 0.8" 735 | } 736 | }, 737 | "node_modules/path-to-regexp": { 738 | "version": "0.1.7", 739 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 740 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 741 | }, 742 | "node_modules/picomatch": { 743 | "version": "2.3.1", 744 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 745 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 746 | "dev": true, 747 | "engines": { 748 | "node": ">=8.6" 749 | }, 750 | "funding": { 751 | "url": "https://github.com/sponsors/jonschlinkert" 752 | } 753 | }, 754 | "node_modules/prettier": { 755 | "version": "2.6.2", 756 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", 757 | "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", 758 | "dev": true, 759 | "bin": { 760 | "prettier": "bin-prettier.js" 761 | }, 762 | "engines": { 763 | "node": ">=10.13.0" 764 | }, 765 | "funding": { 766 | "url": "https://github.com/prettier/prettier?sponsor=1" 767 | } 768 | }, 769 | "node_modules/proxy-addr": { 770 | "version": "2.0.7", 771 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 772 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 773 | "dependencies": { 774 | "forwarded": "0.2.0", 775 | "ipaddr.js": "1.9.1" 776 | }, 777 | "engines": { 778 | "node": ">= 0.10" 779 | } 780 | }, 781 | "node_modules/pstree.remy": { 782 | "version": "1.1.8", 783 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 784 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 785 | "dev": true 786 | }, 787 | "node_modules/qs": { 788 | "version": "6.10.3", 789 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz", 790 | "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==", 791 | "dependencies": { 792 | "side-channel": "^1.0.4" 793 | }, 794 | "engines": { 795 | "node": ">=0.6" 796 | }, 797 | "funding": { 798 | "url": "https://github.com/sponsors/ljharb" 799 | } 800 | }, 801 | "node_modules/range-parser": { 802 | "version": "1.2.1", 803 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 804 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 805 | "engines": { 806 | "node": ">= 0.6" 807 | } 808 | }, 809 | "node_modules/raw-body": { 810 | "version": "2.5.1", 811 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", 812 | "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", 813 | "dependencies": { 814 | "bytes": "3.1.2", 815 | "http-errors": "2.0.0", 816 | "iconv-lite": "0.4.24", 817 | "unpipe": "1.0.0" 818 | }, 819 | "engines": { 820 | "node": ">= 0.8" 821 | } 822 | }, 823 | "node_modules/readdirp": { 824 | "version": "3.6.0", 825 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 826 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 827 | "dev": true, 828 | "dependencies": { 829 | "picomatch": "^2.2.1" 830 | }, 831 | "engines": { 832 | "node": ">=8.10.0" 833 | } 834 | }, 835 | "node_modules/safe-buffer": { 836 | "version": "5.2.1", 837 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 838 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 839 | "funding": [ 840 | { 841 | "type": "github", 842 | "url": "https://github.com/sponsors/feross" 843 | }, 844 | { 845 | "type": "patreon", 846 | "url": "https://www.patreon.com/feross" 847 | }, 848 | { 849 | "type": "consulting", 850 | "url": "https://feross.org/support" 851 | } 852 | ] 853 | }, 854 | "node_modules/safer-buffer": { 855 | "version": "2.1.2", 856 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 857 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 858 | }, 859 | "node_modules/semver": { 860 | "version": "5.7.2", 861 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", 862 | "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", 863 | "dev": true, 864 | "bin": { 865 | "semver": "bin/semver" 866 | } 867 | }, 868 | "node_modules/send": { 869 | "version": "0.18.0", 870 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", 871 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", 872 | "dependencies": { 873 | "debug": "2.6.9", 874 | "depd": "2.0.0", 875 | "destroy": "1.2.0", 876 | "encodeurl": "~1.0.2", 877 | "escape-html": "~1.0.3", 878 | "etag": "~1.8.1", 879 | "fresh": "0.5.2", 880 | "http-errors": "2.0.0", 881 | "mime": "1.6.0", 882 | "ms": "2.1.3", 883 | "on-finished": "2.4.1", 884 | "range-parser": "~1.2.1", 885 | "statuses": "2.0.1" 886 | }, 887 | "engines": { 888 | "node": ">= 0.8.0" 889 | } 890 | }, 891 | "node_modules/send/node_modules/ms": { 892 | "version": "2.1.3", 893 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 894 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 895 | }, 896 | "node_modules/serve-static": { 897 | "version": "1.15.0", 898 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", 899 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", 900 | "dependencies": { 901 | "encodeurl": "~1.0.2", 902 | "escape-html": "~1.0.3", 903 | "parseurl": "~1.3.3", 904 | "send": "0.18.0" 905 | }, 906 | "engines": { 907 | "node": ">= 0.8.0" 908 | } 909 | }, 910 | "node_modules/setprototypeof": { 911 | "version": "1.2.0", 912 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 913 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 914 | }, 915 | "node_modules/side-channel": { 916 | "version": "1.0.4", 917 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", 918 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", 919 | "dependencies": { 920 | "call-bind": "^1.0.0", 921 | "get-intrinsic": "^1.0.2", 922 | "object-inspect": "^1.9.0" 923 | }, 924 | "funding": { 925 | "url": "https://github.com/sponsors/ljharb" 926 | } 927 | }, 928 | "node_modules/simple-update-notifier": { 929 | "version": "1.1.0", 930 | "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz", 931 | "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==", 932 | "dev": true, 933 | "dependencies": { 934 | "semver": "~7.0.0" 935 | }, 936 | "engines": { 937 | "node": ">=8.10.0" 938 | } 939 | }, 940 | "node_modules/simple-update-notifier/node_modules/semver": { 941 | "version": "7.0.0", 942 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", 943 | "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", 944 | "dev": true, 945 | "bin": { 946 | "semver": "bin/semver.js" 947 | } 948 | }, 949 | "node_modules/statuses": { 950 | "version": "2.0.1", 951 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 952 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 953 | "engines": { 954 | "node": ">= 0.8" 955 | } 956 | }, 957 | "node_modules/supports-color": { 958 | "version": "5.5.0", 959 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 960 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 961 | "dev": true, 962 | "dependencies": { 963 | "has-flag": "^3.0.0" 964 | }, 965 | "engines": { 966 | "node": ">=4" 967 | } 968 | }, 969 | "node_modules/to-regex-range": { 970 | "version": "5.0.1", 971 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 972 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 973 | "dev": true, 974 | "dependencies": { 975 | "is-number": "^7.0.0" 976 | }, 977 | "engines": { 978 | "node": ">=8.0" 979 | } 980 | }, 981 | "node_modules/toidentifier": { 982 | "version": "1.0.1", 983 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 984 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 985 | "engines": { 986 | "node": ">=0.6" 987 | } 988 | }, 989 | "node_modules/touch": { 990 | "version": "3.1.0", 991 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 992 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 993 | "dev": true, 994 | "dependencies": { 995 | "nopt": "~1.0.10" 996 | }, 997 | "bin": { 998 | "nodetouch": "bin/nodetouch.js" 999 | } 1000 | }, 1001 | "node_modules/type-is": { 1002 | "version": "1.6.18", 1003 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1004 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1005 | "dependencies": { 1006 | "media-typer": "0.3.0", 1007 | "mime-types": "~2.1.24" 1008 | }, 1009 | "engines": { 1010 | "node": ">= 0.6" 1011 | } 1012 | }, 1013 | "node_modules/undefsafe": { 1014 | "version": "2.0.5", 1015 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", 1016 | "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", 1017 | "dev": true 1018 | }, 1019 | "node_modules/unpipe": { 1020 | "version": "1.0.0", 1021 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1022 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", 1023 | "engines": { 1024 | "node": ">= 0.8" 1025 | } 1026 | }, 1027 | "node_modules/utils-merge": { 1028 | "version": "1.0.1", 1029 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1030 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", 1031 | "engines": { 1032 | "node": ">= 0.4.0" 1033 | } 1034 | }, 1035 | "node_modules/vary": { 1036 | "version": "1.1.2", 1037 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1038 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", 1039 | "engines": { 1040 | "node": ">= 0.8" 1041 | } 1042 | } 1043 | }, 1044 | "dependencies": { 1045 | "abbrev": { 1046 | "version": "1.1.1", 1047 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 1048 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 1049 | "dev": true 1050 | }, 1051 | "accepts": { 1052 | "version": "1.3.8", 1053 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 1054 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 1055 | "requires": { 1056 | "mime-types": "~2.1.34", 1057 | "negotiator": "0.6.3" 1058 | } 1059 | }, 1060 | "anymatch": { 1061 | "version": "3.1.2", 1062 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 1063 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 1064 | "dev": true, 1065 | "requires": { 1066 | "normalize-path": "^3.0.0", 1067 | "picomatch": "^2.0.4" 1068 | } 1069 | }, 1070 | "array-flatten": { 1071 | "version": "1.1.1", 1072 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 1073 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 1074 | }, 1075 | "balanced-match": { 1076 | "version": "1.0.2", 1077 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1078 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 1079 | "dev": true 1080 | }, 1081 | "binary-extensions": { 1082 | "version": "2.2.0", 1083 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 1084 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 1085 | "dev": true 1086 | }, 1087 | "body-parser": { 1088 | "version": "1.20.0", 1089 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.0.tgz", 1090 | "integrity": "sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==", 1091 | "requires": { 1092 | "bytes": "3.1.2", 1093 | "content-type": "~1.0.4", 1094 | "debug": "2.6.9", 1095 | "depd": "2.0.0", 1096 | "destroy": "1.2.0", 1097 | "http-errors": "2.0.0", 1098 | "iconv-lite": "0.4.24", 1099 | "on-finished": "2.4.1", 1100 | "qs": "6.10.3", 1101 | "raw-body": "2.5.1", 1102 | "type-is": "~1.6.18", 1103 | "unpipe": "1.0.0" 1104 | } 1105 | }, 1106 | "brace-expansion": { 1107 | "version": "1.1.11", 1108 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1109 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1110 | "dev": true, 1111 | "requires": { 1112 | "balanced-match": "^1.0.0", 1113 | "concat-map": "0.0.1" 1114 | } 1115 | }, 1116 | "braces": { 1117 | "version": "3.0.2", 1118 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 1119 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 1120 | "dev": true, 1121 | "requires": { 1122 | "fill-range": "^7.0.1" 1123 | } 1124 | }, 1125 | "bytes": { 1126 | "version": "3.1.2", 1127 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 1128 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" 1129 | }, 1130 | "call-bind": { 1131 | "version": "1.0.2", 1132 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", 1133 | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", 1134 | "requires": { 1135 | "function-bind": "^1.1.1", 1136 | "get-intrinsic": "^1.0.2" 1137 | } 1138 | }, 1139 | "chokidar": { 1140 | "version": "3.5.3", 1141 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 1142 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 1143 | "dev": true, 1144 | "requires": { 1145 | "anymatch": "~3.1.2", 1146 | "braces": "~3.0.2", 1147 | "fsevents": "~2.3.2", 1148 | "glob-parent": "~5.1.2", 1149 | "is-binary-path": "~2.1.0", 1150 | "is-glob": "~4.0.1", 1151 | "normalize-path": "~3.0.0", 1152 | "readdirp": "~3.6.0" 1153 | } 1154 | }, 1155 | "concat-map": { 1156 | "version": "0.0.1", 1157 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1158 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 1159 | "dev": true 1160 | }, 1161 | "content-disposition": { 1162 | "version": "0.5.4", 1163 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 1164 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 1165 | "requires": { 1166 | "safe-buffer": "5.2.1" 1167 | } 1168 | }, 1169 | "content-type": { 1170 | "version": "1.0.4", 1171 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 1172 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 1173 | }, 1174 | "cookie": { 1175 | "version": "0.5.0", 1176 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", 1177 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" 1178 | }, 1179 | "cookie-signature": { 1180 | "version": "1.0.6", 1181 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 1182 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 1183 | }, 1184 | "cors": { 1185 | "version": "2.8.5", 1186 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 1187 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 1188 | "requires": { 1189 | "object-assign": "^4", 1190 | "vary": "^1" 1191 | } 1192 | }, 1193 | "debug": { 1194 | "version": "2.6.9", 1195 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1196 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1197 | "requires": { 1198 | "ms": "2.0.0" 1199 | } 1200 | }, 1201 | "depd": { 1202 | "version": "2.0.0", 1203 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 1204 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" 1205 | }, 1206 | "destroy": { 1207 | "version": "1.2.0", 1208 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 1209 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" 1210 | }, 1211 | "dotenv": { 1212 | "version": "10.0.0", 1213 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", 1214 | "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" 1215 | }, 1216 | "ee-first": { 1217 | "version": "1.1.1", 1218 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 1219 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 1220 | }, 1221 | "encodeurl": { 1222 | "version": "1.0.2", 1223 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 1224 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" 1225 | }, 1226 | "escape-html": { 1227 | "version": "1.0.3", 1228 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 1229 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 1230 | }, 1231 | "etag": { 1232 | "version": "1.8.1", 1233 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 1234 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" 1235 | }, 1236 | "express": { 1237 | "version": "4.18.1", 1238 | "resolved": "https://registry.npmjs.org/express/-/express-4.18.1.tgz", 1239 | "integrity": "sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q==", 1240 | "requires": { 1241 | "accepts": "~1.3.8", 1242 | "array-flatten": "1.1.1", 1243 | "body-parser": "1.20.0", 1244 | "content-disposition": "0.5.4", 1245 | "content-type": "~1.0.4", 1246 | "cookie": "0.5.0", 1247 | "cookie-signature": "1.0.6", 1248 | "debug": "2.6.9", 1249 | "depd": "2.0.0", 1250 | "encodeurl": "~1.0.2", 1251 | "escape-html": "~1.0.3", 1252 | "etag": "~1.8.1", 1253 | "finalhandler": "1.2.0", 1254 | "fresh": "0.5.2", 1255 | "http-errors": "2.0.0", 1256 | "merge-descriptors": "1.0.1", 1257 | "methods": "~1.1.2", 1258 | "on-finished": "2.4.1", 1259 | "parseurl": "~1.3.3", 1260 | "path-to-regexp": "0.1.7", 1261 | "proxy-addr": "~2.0.7", 1262 | "qs": "6.10.3", 1263 | "range-parser": "~1.2.1", 1264 | "safe-buffer": "5.2.1", 1265 | "send": "0.18.0", 1266 | "serve-static": "1.15.0", 1267 | "setprototypeof": "1.2.0", 1268 | "statuses": "2.0.1", 1269 | "type-is": "~1.6.18", 1270 | "utils-merge": "1.0.1", 1271 | "vary": "~1.1.2" 1272 | } 1273 | }, 1274 | "express-oauth2-jwt-bearer": { 1275 | "version": "1.1.0", 1276 | "resolved": "https://registry.npmjs.org/express-oauth2-jwt-bearer/-/express-oauth2-jwt-bearer-1.1.0.tgz", 1277 | "integrity": "sha512-T9sSmGftzMACOH1oY2gniHkiJ53dWjPgIUD/CrJDL5Ss5PeX+PAol53upd7eaKLiLn/vp+AMTefxkkDIPEJXBQ==", 1278 | "requires": { 1279 | "jose": "^4.3.7" 1280 | } 1281 | }, 1282 | "fill-range": { 1283 | "version": "7.0.1", 1284 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1285 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1286 | "dev": true, 1287 | "requires": { 1288 | "to-regex-range": "^5.0.1" 1289 | } 1290 | }, 1291 | "finalhandler": { 1292 | "version": "1.2.0", 1293 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", 1294 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", 1295 | "requires": { 1296 | "debug": "2.6.9", 1297 | "encodeurl": "~1.0.2", 1298 | "escape-html": "~1.0.3", 1299 | "on-finished": "2.4.1", 1300 | "parseurl": "~1.3.3", 1301 | "statuses": "2.0.1", 1302 | "unpipe": "~1.0.0" 1303 | } 1304 | }, 1305 | "forwarded": { 1306 | "version": "0.2.0", 1307 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 1308 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" 1309 | }, 1310 | "fresh": { 1311 | "version": "0.5.2", 1312 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 1313 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" 1314 | }, 1315 | "fsevents": { 1316 | "version": "2.3.2", 1317 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 1318 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 1319 | "dev": true, 1320 | "optional": true 1321 | }, 1322 | "function-bind": { 1323 | "version": "1.1.1", 1324 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 1325 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 1326 | }, 1327 | "get-intrinsic": { 1328 | "version": "1.1.1", 1329 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", 1330 | "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", 1331 | "requires": { 1332 | "function-bind": "^1.1.1", 1333 | "has": "^1.0.3", 1334 | "has-symbols": "^1.0.1" 1335 | } 1336 | }, 1337 | "glob-parent": { 1338 | "version": "5.1.2", 1339 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1340 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1341 | "dev": true, 1342 | "requires": { 1343 | "is-glob": "^4.0.1" 1344 | } 1345 | }, 1346 | "has": { 1347 | "version": "1.0.3", 1348 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 1349 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 1350 | "requires": { 1351 | "function-bind": "^1.1.1" 1352 | } 1353 | }, 1354 | "has-flag": { 1355 | "version": "3.0.0", 1356 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1357 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 1358 | "dev": true 1359 | }, 1360 | "has-symbols": { 1361 | "version": "1.0.3", 1362 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 1363 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" 1364 | }, 1365 | "helmet": { 1366 | "version": "4.6.0", 1367 | "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.6.0.tgz", 1368 | "integrity": "sha512-HVqALKZlR95ROkrnesdhbbZJFi/rIVSoNq6f3jA/9u6MIbTsPh3xZwihjeI5+DO/2sOV6HMHooXcEOuwskHpTg==" 1369 | }, 1370 | "http-errors": { 1371 | "version": "2.0.0", 1372 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 1373 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 1374 | "requires": { 1375 | "depd": "2.0.0", 1376 | "inherits": "2.0.4", 1377 | "setprototypeof": "1.2.0", 1378 | "statuses": "2.0.1", 1379 | "toidentifier": "1.0.1" 1380 | } 1381 | }, 1382 | "iconv-lite": { 1383 | "version": "0.4.24", 1384 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 1385 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 1386 | "requires": { 1387 | "safer-buffer": ">= 2.1.2 < 3" 1388 | } 1389 | }, 1390 | "ignore-by-default": { 1391 | "version": "1.0.1", 1392 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 1393 | "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", 1394 | "dev": true 1395 | }, 1396 | "inherits": { 1397 | "version": "2.0.4", 1398 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1399 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1400 | }, 1401 | "ipaddr.js": { 1402 | "version": "1.9.1", 1403 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1404 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 1405 | }, 1406 | "is-binary-path": { 1407 | "version": "2.1.0", 1408 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1409 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1410 | "dev": true, 1411 | "requires": { 1412 | "binary-extensions": "^2.0.0" 1413 | } 1414 | }, 1415 | "is-extglob": { 1416 | "version": "2.1.1", 1417 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1418 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1419 | "dev": true 1420 | }, 1421 | "is-glob": { 1422 | "version": "4.0.3", 1423 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1424 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1425 | "dev": true, 1426 | "requires": { 1427 | "is-extglob": "^2.1.1" 1428 | } 1429 | }, 1430 | "is-number": { 1431 | "version": "7.0.0", 1432 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1433 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1434 | "dev": true 1435 | }, 1436 | "jose": { 1437 | "version": "4.14.4", 1438 | "resolved": "https://registry.npmjs.org/jose/-/jose-4.14.4.tgz", 1439 | "integrity": "sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==" 1440 | }, 1441 | "media-typer": { 1442 | "version": "0.3.0", 1443 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1444 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1445 | }, 1446 | "merge-descriptors": { 1447 | "version": "1.0.1", 1448 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1449 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1450 | }, 1451 | "methods": { 1452 | "version": "1.1.2", 1453 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1454 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1455 | }, 1456 | "mime": { 1457 | "version": "1.6.0", 1458 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1459 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 1460 | }, 1461 | "mime-db": { 1462 | "version": "1.52.0", 1463 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1464 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" 1465 | }, 1466 | "mime-types": { 1467 | "version": "2.1.35", 1468 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1469 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1470 | "requires": { 1471 | "mime-db": "1.52.0" 1472 | } 1473 | }, 1474 | "minimatch": { 1475 | "version": "3.1.2", 1476 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1477 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1478 | "dev": true, 1479 | "requires": { 1480 | "brace-expansion": "^1.1.7" 1481 | } 1482 | }, 1483 | "ms": { 1484 | "version": "2.0.0", 1485 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1486 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1487 | }, 1488 | "negotiator": { 1489 | "version": "0.6.3", 1490 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 1491 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" 1492 | }, 1493 | "nocache": { 1494 | "version": "3.0.4", 1495 | "resolved": "https://registry.npmjs.org/nocache/-/nocache-3.0.4.tgz", 1496 | "integrity": "sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==" 1497 | }, 1498 | "nodemon": { 1499 | "version": "2.0.22", 1500 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz", 1501 | "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==", 1502 | "dev": true, 1503 | "requires": { 1504 | "chokidar": "^3.5.2", 1505 | "debug": "^3.2.7", 1506 | "ignore-by-default": "^1.0.1", 1507 | "minimatch": "^3.1.2", 1508 | "pstree.remy": "^1.1.8", 1509 | "semver": "^5.7.1", 1510 | "simple-update-notifier": "^1.0.7", 1511 | "supports-color": "^5.5.0", 1512 | "touch": "^3.1.0", 1513 | "undefsafe": "^2.0.5" 1514 | }, 1515 | "dependencies": { 1516 | "debug": { 1517 | "version": "3.2.7", 1518 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 1519 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 1520 | "dev": true, 1521 | "requires": { 1522 | "ms": "^2.1.1" 1523 | } 1524 | }, 1525 | "ms": { 1526 | "version": "2.1.3", 1527 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1528 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1529 | "dev": true 1530 | } 1531 | } 1532 | }, 1533 | "nopt": { 1534 | "version": "1.0.10", 1535 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 1536 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 1537 | "dev": true, 1538 | "requires": { 1539 | "abbrev": "1" 1540 | } 1541 | }, 1542 | "normalize-path": { 1543 | "version": "3.0.0", 1544 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1545 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1546 | "dev": true 1547 | }, 1548 | "object-assign": { 1549 | "version": "4.1.1", 1550 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1551 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1552 | }, 1553 | "object-inspect": { 1554 | "version": "1.12.2", 1555 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", 1556 | "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" 1557 | }, 1558 | "on-finished": { 1559 | "version": "2.4.1", 1560 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 1561 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 1562 | "requires": { 1563 | "ee-first": "1.1.1" 1564 | } 1565 | }, 1566 | "parseurl": { 1567 | "version": "1.3.3", 1568 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1569 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1570 | }, 1571 | "path-to-regexp": { 1572 | "version": "0.1.7", 1573 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1574 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1575 | }, 1576 | "picomatch": { 1577 | "version": "2.3.1", 1578 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1579 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1580 | "dev": true 1581 | }, 1582 | "prettier": { 1583 | "version": "2.6.2", 1584 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", 1585 | "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", 1586 | "dev": true 1587 | }, 1588 | "proxy-addr": { 1589 | "version": "2.0.7", 1590 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1591 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1592 | "requires": { 1593 | "forwarded": "0.2.0", 1594 | "ipaddr.js": "1.9.1" 1595 | } 1596 | }, 1597 | "pstree.remy": { 1598 | "version": "1.1.8", 1599 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1600 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1601 | "dev": true 1602 | }, 1603 | "qs": { 1604 | "version": "6.10.3", 1605 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz", 1606 | "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==", 1607 | "requires": { 1608 | "side-channel": "^1.0.4" 1609 | } 1610 | }, 1611 | "range-parser": { 1612 | "version": "1.2.1", 1613 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1614 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1615 | }, 1616 | "raw-body": { 1617 | "version": "2.5.1", 1618 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", 1619 | "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", 1620 | "requires": { 1621 | "bytes": "3.1.2", 1622 | "http-errors": "2.0.0", 1623 | "iconv-lite": "0.4.24", 1624 | "unpipe": "1.0.0" 1625 | } 1626 | }, 1627 | "readdirp": { 1628 | "version": "3.6.0", 1629 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1630 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1631 | "dev": true, 1632 | "requires": { 1633 | "picomatch": "^2.2.1" 1634 | } 1635 | }, 1636 | "safe-buffer": { 1637 | "version": "5.2.1", 1638 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1639 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 1640 | }, 1641 | "safer-buffer": { 1642 | "version": "2.1.2", 1643 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1644 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1645 | }, 1646 | "semver": { 1647 | "version": "5.7.2", 1648 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", 1649 | "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", 1650 | "dev": true 1651 | }, 1652 | "send": { 1653 | "version": "0.18.0", 1654 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", 1655 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", 1656 | "requires": { 1657 | "debug": "2.6.9", 1658 | "depd": "2.0.0", 1659 | "destroy": "1.2.0", 1660 | "encodeurl": "~1.0.2", 1661 | "escape-html": "~1.0.3", 1662 | "etag": "~1.8.1", 1663 | "fresh": "0.5.2", 1664 | "http-errors": "2.0.0", 1665 | "mime": "1.6.0", 1666 | "ms": "2.1.3", 1667 | "on-finished": "2.4.1", 1668 | "range-parser": "~1.2.1", 1669 | "statuses": "2.0.1" 1670 | }, 1671 | "dependencies": { 1672 | "ms": { 1673 | "version": "2.1.3", 1674 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1675 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1676 | } 1677 | } 1678 | }, 1679 | "serve-static": { 1680 | "version": "1.15.0", 1681 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", 1682 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", 1683 | "requires": { 1684 | "encodeurl": "~1.0.2", 1685 | "escape-html": "~1.0.3", 1686 | "parseurl": "~1.3.3", 1687 | "send": "0.18.0" 1688 | } 1689 | }, 1690 | "setprototypeof": { 1691 | "version": "1.2.0", 1692 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 1693 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 1694 | }, 1695 | "side-channel": { 1696 | "version": "1.0.4", 1697 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", 1698 | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", 1699 | "requires": { 1700 | "call-bind": "^1.0.0", 1701 | "get-intrinsic": "^1.0.2", 1702 | "object-inspect": "^1.9.0" 1703 | } 1704 | }, 1705 | "simple-update-notifier": { 1706 | "version": "1.1.0", 1707 | "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz", 1708 | "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==", 1709 | "dev": true, 1710 | "requires": { 1711 | "semver": "~7.0.0" 1712 | }, 1713 | "dependencies": { 1714 | "semver": { 1715 | "version": "7.0.0", 1716 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", 1717 | "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", 1718 | "dev": true 1719 | } 1720 | } 1721 | }, 1722 | "statuses": { 1723 | "version": "2.0.1", 1724 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 1725 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" 1726 | }, 1727 | "supports-color": { 1728 | "version": "5.5.0", 1729 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1730 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1731 | "dev": true, 1732 | "requires": { 1733 | "has-flag": "^3.0.0" 1734 | } 1735 | }, 1736 | "to-regex-range": { 1737 | "version": "5.0.1", 1738 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1739 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1740 | "dev": true, 1741 | "requires": { 1742 | "is-number": "^7.0.0" 1743 | } 1744 | }, 1745 | "toidentifier": { 1746 | "version": "1.0.1", 1747 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 1748 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" 1749 | }, 1750 | "touch": { 1751 | "version": "3.1.0", 1752 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 1753 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 1754 | "dev": true, 1755 | "requires": { 1756 | "nopt": "~1.0.10" 1757 | } 1758 | }, 1759 | "type-is": { 1760 | "version": "1.6.18", 1761 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1762 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1763 | "requires": { 1764 | "media-typer": "0.3.0", 1765 | "mime-types": "~2.1.24" 1766 | } 1767 | }, 1768 | "undefsafe": { 1769 | "version": "2.0.5", 1770 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", 1771 | "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", 1772 | "dev": true 1773 | }, 1774 | "unpipe": { 1775 | "version": "1.0.0", 1776 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1777 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 1778 | }, 1779 | "utils-merge": { 1780 | "version": "1.0.1", 1781 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1782 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 1783 | }, 1784 | "vary": { 1785 | "version": "1.1.2", 1786 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1787 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 1788 | } 1789 | } 1790 | } 1791 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "api_express_javascript_hello-world", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "node src/index.js", 8 | "dev": "nodemon src/index.js" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "dependencies": { 14 | "cors": "^2.8.5", 15 | "dotenv": "^10.0.0", 16 | "express": "^4.17.1", 17 | "express-oauth2-jwt-bearer": "^1.1.0", 18 | "helmet": "^4.6.0", 19 | "nocache": "^3.0.1" 20 | }, 21 | "devDependencies": { 22 | "nodemon": "^2.0.15", 23 | "prettier": "^2.4.1" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | const cors = require("cors"); 2 | const dotenv = require("dotenv"); 3 | const express = require("express"); 4 | const helmet = require("helmet"); 5 | const nocache = require("nocache"); 6 | const { messagesRouter } = require("./messages/messages.router"); 7 | const { errorHandler } = require("./middleware/error.middleware"); 8 | const { notFoundHandler } = require("./middleware/not-found.middleware"); 9 | 10 | dotenv.config(); 11 | 12 | if (!(process.env.PORT && process.env.CLIENT_ORIGIN_URL)) { 13 | throw new Error( 14 | "Missing required environment variables. Check docs for more info." 15 | ); 16 | } 17 | 18 | const PORT = parseInt(process.env.PORT, 10); 19 | const CLIENT_ORIGIN_URL = process.env.CLIENT_ORIGIN_URL; 20 | 21 | const app = express(); 22 | const apiRouter = express.Router(); 23 | 24 | app.use(express.json()); 25 | app.set("json spaces", 2); 26 | 27 | app.use( 28 | helmet({ 29 | hsts: { 30 | maxAge: 31536000, 31 | }, 32 | contentSecurityPolicy: { 33 | useDefaults: false, 34 | directives: { 35 | "default-src": ["'none'"], 36 | "frame-ancestors": ["'none'"], 37 | }, 38 | }, 39 | frameguard: { 40 | action: "deny", 41 | }, 42 | }) 43 | ); 44 | 45 | app.use((req, res, next) => { 46 | res.contentType("application/json; charset=utf-8"); 47 | next(); 48 | }); 49 | app.use(nocache()); 50 | 51 | app.use( 52 | cors({ 53 | origin: CLIENT_ORIGIN_URL, 54 | methods: ["GET"], 55 | allowedHeaders: ["Authorization", "Content-Type"], 56 | maxAge: 86400, 57 | }) 58 | ); 59 | 60 | app.use("/api", apiRouter); 61 | apiRouter.use("/messages", messagesRouter); 62 | 63 | app.use(errorHandler); 64 | app.use(notFoundHandler); 65 | 66 | app.listen(PORT, () => { 67 | console.log(`Listening on port ${PORT}`); 68 | }); 69 | -------------------------------------------------------------------------------- /src/messages/messages-permissions.js: -------------------------------------------------------------------------------- 1 | const AdminMessagesPermissions = { 2 | Read: "read:admin-messages", 3 | }; 4 | 5 | module.exports = { 6 | AdminMessagesPermissions, 7 | }; 8 | -------------------------------------------------------------------------------- /src/messages/messages.router.js: -------------------------------------------------------------------------------- 1 | const express = require("express"); 2 | const { 3 | getAdminMessage, 4 | getProtectedMessage, 5 | getPublicMessage, 6 | } = require("./messages.service"); 7 | const { 8 | checkRequiredPermissions, 9 | validateAccessToken, 10 | } = require("../middleware/auth0.middleware.js"); 11 | const { AdminMessagesPermissions } = require("./messages-permissions"); 12 | 13 | const messagesRouter = express.Router(); 14 | 15 | messagesRouter.get("/public", (req, res) => { 16 | const message = getPublicMessage(); 17 | 18 | res.status(200).json(message); 19 | }); 20 | 21 | messagesRouter.get("/protected", validateAccessToken, (req, res) => { 22 | const message = getProtectedMessage(); 23 | 24 | res.status(200).json(message); 25 | }); 26 | 27 | messagesRouter.get( 28 | "/admin", 29 | validateAccessToken, 30 | checkRequiredPermissions([AdminMessagesPermissions.Read]), 31 | (req, res) => { 32 | const message = getAdminMessage(); 33 | 34 | res.status(200).json(message); 35 | } 36 | ); 37 | 38 | module.exports = { messagesRouter }; 39 | -------------------------------------------------------------------------------- /src/messages/messages.service.js: -------------------------------------------------------------------------------- 1 | const getPublicMessage = () => { 2 | return { 3 | text: "This is a public message.", 4 | }; 5 | }; 6 | 7 | const getProtectedMessage = () => { 8 | return { 9 | text: "This is a protected message.", 10 | }; 11 | }; 12 | 13 | const getAdminMessage = () => { 14 | return { 15 | text: "This is an admin message.", 16 | }; 17 | }; 18 | 19 | module.exports = { 20 | getPublicMessage, 21 | getProtectedMessage, 22 | getAdminMessage, 23 | }; 24 | -------------------------------------------------------------------------------- /src/middleware/auth0.middleware.js: -------------------------------------------------------------------------------- 1 | const { 2 | auth, 3 | claimCheck, 4 | InsufficientScopeError, 5 | } = require("express-oauth2-jwt-bearer"); 6 | const dotenv = require("dotenv"); 7 | 8 | dotenv.config(); 9 | 10 | const validateAccessToken = auth({ 11 | issuerBaseURL: `https://${process.env.AUTH0_DOMAIN}`, 12 | audience: process.env.AUTH0_AUDIENCE, 13 | }); 14 | 15 | const checkRequiredPermissions = (requiredPermissions) => { 16 | return (req, res, next) => { 17 | const permissionCheck = claimCheck((payload) => { 18 | const permissions = payload.permissions || []; 19 | 20 | const hasPermissions = requiredPermissions.every((requiredPermission) => 21 | permissions.includes(requiredPermission) 22 | ); 23 | 24 | if (!hasPermissions) { 25 | throw new InsufficientScopeError(); 26 | } 27 | 28 | return hasPermissions; 29 | }); 30 | 31 | permissionCheck(req, res, next); 32 | }; 33 | }; 34 | 35 | module.exports = { 36 | validateAccessToken, 37 | checkRequiredPermissions, 38 | }; 39 | -------------------------------------------------------------------------------- /src/middleware/error.middleware.js: -------------------------------------------------------------------------------- 1 | const { 2 | InvalidTokenError, 3 | UnauthorizedError, 4 | InsufficientScopeError, 5 | } = require("express-oauth2-jwt-bearer"); 6 | 7 | const errorHandler = (error, request, response, next) => { 8 | if (error instanceof InsufficientScopeError) { 9 | const message = "Permission denied"; 10 | 11 | response.status(error.status).json({ message }); 12 | 13 | return; 14 | } 15 | 16 | if (error instanceof InvalidTokenError) { 17 | const message = "Bad credentials"; 18 | 19 | response.status(error.status).json({ message }); 20 | 21 | return; 22 | } 23 | 24 | if (error instanceof UnauthorizedError) { 25 | const message = "Requires authentication"; 26 | 27 | response.status(error.status).json({ message }); 28 | 29 | return; 30 | } 31 | 32 | const status = 500; 33 | const message = "Internal Server Error"; 34 | 35 | response.status(status).json({ message }); 36 | }; 37 | 38 | module.exports = { 39 | errorHandler, 40 | }; 41 | -------------------------------------------------------------------------------- /src/middleware/not-found.middleware.js: -------------------------------------------------------------------------------- 1 | const notFoundHandler = (request, response, next) => { 2 | const message = "Not Found"; 3 | 4 | response.status(404).json({ message }); 5 | }; 6 | 7 | module.exports = { 8 | notFoundHandler, 9 | }; 10 | --------------------------------------------------------------------------------