├── .gitignore ├── README.md ├── firebase.json └── functions ├── .gitignore ├── package-lock.json ├── package.json ├── src ├── fn │ ├── analyticsEventOnLogFn.ts │ ├── authUserOnCreateFn.ts │ ├── authUserOnDeleteFn.ts │ ├── callableFn.ts │ ├── crashlyticsIssueOnNewFn.ts │ ├── crashlyticsIssueOnRegressedFn.ts │ ├── crashlyticsIssueOnVelocityAlertFn.ts │ ├── databaseOnCreateFn.ts │ ├── databaseOnDeleteFn.ts │ ├── databaseOnUpdateFn.ts │ ├── databaseOnWriteFn.ts │ ├── firestoreOnCreateFn.ts │ ├── firestoreOnDeleteFn.ts │ ├── firestoreOnUpdateFn.ts │ ├── firestoreOnWriteFn.ts │ ├── httpFn.ts │ ├── pubsubScheduledFn.ts │ ├── pubsubTopicOnPublishFn.ts │ ├── remoteConfigFn.ts │ ├── storageObjectOnArchiveFn.ts │ ├── storageObjectOnDeleteFn.ts │ ├── storageObjectOnFinalizeFn.ts │ ├── storageObjectOnMetadataUpdateFn.ts │ └── testLabMatrixOnCompleteFn.ts └── index.ts ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | firebase-debug.log* 8 | 9 | # Firebase cache 10 | .firebase/ 11 | 12 | # Firebase config 13 | 14 | # Uncomment this if you'd like others to create their own Firebase project. 15 | # For a team working on the same Firebase project(s), it is recommended to leave 16 | # it commented so all members can deploy to the same project(s) in .firebaserc. 17 | .firebaserc 18 | 19 | # Runtime data 20 | pids 21 | *.pid 22 | *.seed 23 | *.pid.lock 24 | 25 | # Directory for instrumented libs generated by jscoverage/JSCover 26 | lib-cov 27 | 28 | # Coverage directory used by tools like istanbul 29 | coverage 30 | 31 | # nyc test coverage 32 | .nyc_output 33 | 34 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 35 | .grunt 36 | 37 | # Bower dependency directory (https://bower.io/) 38 | bower_components 39 | 40 | # node-waf configuration 41 | .lock-wscript 42 | 43 | # Compiled binary addons (http://nodejs.org/api/addons.html) 44 | build/Release 45 | 46 | # Dependency directories 47 | node_modules/ 48 | 49 | # Optional npm cache directory 50 | .npm 51 | 52 | # Optional eslint cache 53 | .eslintcache 54 | 55 | # Optional REPL history 56 | .node_repl_history 57 | 58 | # Output of 'npm pack' 59 | *.tgz 60 | 61 | # Yarn Integrity file 62 | .yarn-integrity 63 | 64 | # dotenv environment variables file 65 | .env 66 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Minimize cold starts with Cloud Functions for Firebase and TypeScript 2 | 3 | This project contains just scaffolding for Cloud Functions deployed with the 4 | Firebase CLI that minimize cold starts by using TypeScript async imports. It 5 | accompanies my blog post on Medium called 6 | "[Organize Cloud Functions for max cold start performance and readability with TypeScript and Firebase][1]". 7 | Read there for more information about how this code works. 8 | 9 | ## LICENSE 10 | 11 | Copyright 2020, Doug Stevenson 12 | 13 | Copying and distribution of this file, with or without modification, are 14 | permitted in any medium without royalty, provided the copyright notice and this 15 | notice are preserved. This file is offered as-is, without any warranty. 16 | 17 | [1]: https://medium.com/firebase-developers/organize-cloud-functions-for-max-cold-start-performance-and-readability-with-typescript-and-9261ee8450f0 18 | -------------------------------------------------------------------------------- /firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "functions": { 3 | "predeploy": [ 4 | "npm --prefix \"$RESOURCE_DIR\" run lint", 5 | "npm --prefix \"$RESOURCE_DIR\" run build" 6 | ] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /functions/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /functions/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "functions", 3 | "requires": true, 4 | "lockfileVersion": 1, 5 | "dependencies": { 6 | "@babel/code-frame": { 7 | "version": "7.10.1", 8 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", 9 | "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", 10 | "dev": true, 11 | "requires": { 12 | "@babel/highlight": "^7.10.1" 13 | } 14 | }, 15 | "@babel/helper-validator-identifier": { 16 | "version": "7.10.1", 17 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", 18 | "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", 19 | "dev": true 20 | }, 21 | "@babel/highlight": { 22 | "version": "7.10.1", 23 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", 24 | "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", 25 | "dev": true, 26 | "requires": { 27 | "@babel/helper-validator-identifier": "^7.10.1", 28 | "chalk": "^2.0.0", 29 | "js-tokens": "^4.0.0" 30 | } 31 | }, 32 | "@firebase/app-types": { 33 | "version": "0.6.1", 34 | "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.6.1.tgz", 35 | "integrity": "sha512-L/ZnJRAq7F++utfuoTKX4CLBG5YR7tFO3PLzG1/oXXKEezJ0kRL3CMRoueBEmTCzVb/6SIs2Qlaw++uDgi5Xyg==" 36 | }, 37 | "@firebase/auth-interop-types": { 38 | "version": "0.1.5", 39 | "resolved": "https://registry.npmjs.org/@firebase/auth-interop-types/-/auth-interop-types-0.1.5.tgz", 40 | "integrity": "sha512-88h74TMQ6wXChPA6h9Q3E1Jg6TkTHep2+k63OWg3s0ozyGVMeY+TTOti7PFPzq5RhszQPQOoCi59es4MaRvgCw==" 41 | }, 42 | "@firebase/component": { 43 | "version": "0.1.16", 44 | "resolved": "https://registry.npmjs.org/@firebase/component/-/component-0.1.16.tgz", 45 | "integrity": "sha512-FvffvFN0LWgv1H/FIyruTECOL69Dhy+JfwoTq+mV39V8Mz9lNpo41etonL5AOr7KmXxYJVbNwkx0L9Ei88i7JA==", 46 | "requires": { 47 | "@firebase/util": "0.2.50", 48 | "tslib": "^1.11.1" 49 | } 50 | }, 51 | "@firebase/database": { 52 | "version": "0.6.8", 53 | "resolved": "https://registry.npmjs.org/@firebase/database/-/database-0.6.8.tgz", 54 | "integrity": "sha512-Psibz/LD9WBvZRS7A/kkYd5i5l6tBw49adSFmCM2ZJlKE9fxZhxay02AerwfXHiq3gPKVeqXUjBIRuHOWdEXmw==", 55 | "requires": { 56 | "@firebase/auth-interop-types": "0.1.5", 57 | "@firebase/component": "0.1.16", 58 | "@firebase/database-types": "0.5.1", 59 | "@firebase/logger": "0.2.6", 60 | "@firebase/util": "0.2.50", 61 | "faye-websocket": "0.11.3", 62 | "tslib": "^1.11.1" 63 | } 64 | }, 65 | "@firebase/database-types": { 66 | "version": "0.5.1", 67 | "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-0.5.1.tgz", 68 | "integrity": "sha512-onQxom1ZBYBJ648w/VNRzUewovEDAH7lvnrrpCd69ukkyrMk6rGEO/PQ9BcNEbhlNtukpsqRS0oNOFlHs0FaSA==", 69 | "requires": { 70 | "@firebase/app-types": "0.6.1" 71 | } 72 | }, 73 | "@firebase/logger": { 74 | "version": "0.2.6", 75 | "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.2.6.tgz", 76 | "integrity": "sha512-KIxcUvW/cRGWlzK9Vd2KB864HlUnCfdTH0taHE0sXW5Xl7+W68suaeau1oKNEqmc3l45azkd4NzXTCWZRZdXrw==" 77 | }, 78 | "@firebase/util": { 79 | "version": "0.2.50", 80 | "resolved": "https://registry.npmjs.org/@firebase/util/-/util-0.2.50.tgz", 81 | "integrity": "sha512-vFE6+Jfc25u0ViSpFxxq0q5s+XmuJ/y7CL3ud79RQe+WLFFg+j0eH1t23k0yNSG9vZNM7h3uHRIXbV97sYLAyw==", 82 | "requires": { 83 | "tslib": "^1.11.1" 84 | } 85 | }, 86 | "@google-cloud/common": { 87 | "version": "3.3.2", 88 | "resolved": "https://registry.npmjs.org/@google-cloud/common/-/common-3.3.2.tgz", 89 | "integrity": "sha512-W7JRLBEJWYtZQQuGQX06U6GBOSLrSrlvZxv6kGNwJtFrusu6AVgZltQ9Pajuz9Dh9aSXy9aTnBcyxn2/O0EGUw==", 90 | "optional": true, 91 | "requires": { 92 | "@google-cloud/projectify": "^2.0.0", 93 | "@google-cloud/promisify": "^2.0.0", 94 | "arrify": "^2.0.1", 95 | "duplexify": "^4.1.1", 96 | "ent": "^2.2.0", 97 | "extend": "^3.0.2", 98 | "google-auth-library": "^6.0.0", 99 | "retry-request": "^4.1.1", 100 | "teeny-request": "^7.0.0" 101 | }, 102 | "dependencies": { 103 | "duplexify": { 104 | "version": "4.1.1", 105 | "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.1.tgz", 106 | "integrity": "sha512-DY3xVEmVHTv1wSzKNbwoU6nVjzI369Y6sPoqfYr0/xlx3IdX2n94xIszTcjPO8W8ZIv0Wb0PXNcjuZyT4wiICA==", 107 | "optional": true, 108 | "requires": { 109 | "end-of-stream": "^1.4.1", 110 | "inherits": "^2.0.3", 111 | "readable-stream": "^3.1.1", 112 | "stream-shift": "^1.0.0" 113 | } 114 | }, 115 | "readable-stream": { 116 | "version": "3.6.0", 117 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 118 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 119 | "optional": true, 120 | "requires": { 121 | "inherits": "^2.0.3", 122 | "string_decoder": "^1.1.1", 123 | "util-deprecate": "^1.0.1" 124 | } 125 | } 126 | } 127 | }, 128 | "@google-cloud/firestore": { 129 | "version": "4.1.1", 130 | "resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-4.1.1.tgz", 131 | "integrity": "sha512-HFy2OEOrYJ7jYUir90Kg7+AWM6fsFoWYiHiryoseHfkL9//AnXm2sn0CiaOhsTsxphc69G8LBBvUj6ws0QDa7g==", 132 | "optional": true, 133 | "requires": { 134 | "fast-deep-equal": "^3.1.1", 135 | "functional-red-black-tree": "^1.0.1", 136 | "google-gax": "^2.2.0" 137 | } 138 | }, 139 | "@google-cloud/paginator": { 140 | "version": "3.0.2", 141 | "resolved": "https://registry.npmjs.org/@google-cloud/paginator/-/paginator-3.0.2.tgz", 142 | "integrity": "sha512-kXK+Dbz4pNvv8bKU80Aw5HsIdgOe0WuMTd8/fI6tkANUxzvJOVJQQRsWVqcHSWK2RXHPTA9WBniUCwY6gAJDXw==", 143 | "optional": true, 144 | "requires": { 145 | "arrify": "^2.0.0", 146 | "extend": "^3.0.2" 147 | } 148 | }, 149 | "@google-cloud/projectify": { 150 | "version": "2.0.1", 151 | "resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-2.0.1.tgz", 152 | "integrity": "sha512-ZDG38U/Yy6Zr21LaR3BTiiLtpJl6RkPS/JwoRT453G+6Q1DhlV0waNf8Lfu+YVYGIIxgKnLayJRfYlFJfiI8iQ==", 153 | "optional": true 154 | }, 155 | "@google-cloud/promisify": { 156 | "version": "2.0.2", 157 | "resolved": "https://registry.npmjs.org/@google-cloud/promisify/-/promisify-2.0.2.tgz", 158 | "integrity": "sha512-EvuabjzzZ9E2+OaYf+7P9OAiiwbTxKYL0oGLnREQd+Su2NTQBpomkdlkBowFvyWsaV0d1sSGxrKpSNcrhPqbxg==", 159 | "optional": true 160 | }, 161 | "@google-cloud/storage": { 162 | "version": "5.1.2", 163 | "resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-5.1.2.tgz", 164 | "integrity": "sha512-j2blsBVv6Tt5Z7ff6kOSIg5zVQPdlcTQh/4zMb9h7xMj4ekwndQA60le8c1KEa+Y6SR3EM6ER2AvKYK53P7vdQ==", 165 | "optional": true, 166 | "requires": { 167 | "@google-cloud/common": "^3.0.0", 168 | "@google-cloud/paginator": "^3.0.0", 169 | "@google-cloud/promisify": "^2.0.0", 170 | "arrify": "^2.0.0", 171 | "compressible": "^2.0.12", 172 | "concat-stream": "^2.0.0", 173 | "date-and-time": "^0.13.0", 174 | "duplexify": "^3.5.0", 175 | "extend": "^3.0.2", 176 | "gaxios": "^3.0.0", 177 | "gcs-resumable-upload": "^3.0.0", 178 | "hash-stream-validation": "^0.2.2", 179 | "mime": "^2.2.0", 180 | "mime-types": "^2.0.8", 181 | "onetime": "^5.1.0", 182 | "p-limit": "^3.0.1", 183 | "pumpify": "^2.0.0", 184 | "readable-stream": "^3.4.0", 185 | "snakeize": "^0.1.0", 186 | "stream-events": "^1.0.1", 187 | "through2": "^4.0.0", 188 | "xdg-basedir": "^4.0.0" 189 | }, 190 | "dependencies": { 191 | "readable-stream": { 192 | "version": "3.6.0", 193 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 194 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 195 | "optional": true, 196 | "requires": { 197 | "inherits": "^2.0.3", 198 | "string_decoder": "^1.1.1", 199 | "util-deprecate": "^1.0.1" 200 | } 201 | }, 202 | "through2": { 203 | "version": "4.0.2", 204 | "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", 205 | "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", 206 | "optional": true, 207 | "requires": { 208 | "readable-stream": "3" 209 | } 210 | } 211 | } 212 | }, 213 | "@grpc/grpc-js": { 214 | "version": "1.1.2", 215 | "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.1.2.tgz", 216 | "integrity": "sha512-k2u86Bkm/3xrjUaSWeIyzXScBt/cC8uE7BznR0cpueQi11R33W6qfJdMrkrsmSHirp5likR55JSXUrcWG6ybHA==", 217 | "optional": true, 218 | "requires": { 219 | "semver": "^6.2.0" 220 | } 221 | }, 222 | "@grpc/proto-loader": { 223 | "version": "0.5.5", 224 | "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.5.5.tgz", 225 | "integrity": "sha512-WwN9jVNdHRQoOBo9FDH7qU+mgfjPc8GygPYms3M+y3fbQLfnCe/Kv/E01t7JRgnrsOHH8euvSbed3mIalXhwqQ==", 226 | "optional": true, 227 | "requires": { 228 | "lodash.camelcase": "^4.3.0", 229 | "protobufjs": "^6.8.6" 230 | } 231 | }, 232 | "@protobufjs/aspromise": { 233 | "version": "1.1.2", 234 | "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", 235 | "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=", 236 | "optional": true 237 | }, 238 | "@protobufjs/base64": { 239 | "version": "1.1.2", 240 | "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", 241 | "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", 242 | "optional": true 243 | }, 244 | "@protobufjs/codegen": { 245 | "version": "2.0.4", 246 | "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", 247 | "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", 248 | "optional": true 249 | }, 250 | "@protobufjs/eventemitter": { 251 | "version": "1.1.0", 252 | "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", 253 | "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=", 254 | "optional": true 255 | }, 256 | "@protobufjs/fetch": { 257 | "version": "1.1.0", 258 | "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", 259 | "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", 260 | "optional": true, 261 | "requires": { 262 | "@protobufjs/aspromise": "^1.1.1", 263 | "@protobufjs/inquire": "^1.1.0" 264 | } 265 | }, 266 | "@protobufjs/float": { 267 | "version": "1.0.2", 268 | "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", 269 | "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=", 270 | "optional": true 271 | }, 272 | "@protobufjs/inquire": { 273 | "version": "1.1.0", 274 | "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", 275 | "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=", 276 | "optional": true 277 | }, 278 | "@protobufjs/path": { 279 | "version": "1.1.2", 280 | "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", 281 | "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=", 282 | "optional": true 283 | }, 284 | "@protobufjs/pool": { 285 | "version": "1.1.0", 286 | "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", 287 | "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=", 288 | "optional": true 289 | }, 290 | "@protobufjs/utf8": { 291 | "version": "1.1.0", 292 | "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", 293 | "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=", 294 | "optional": true 295 | }, 296 | "@tootallnate/once": { 297 | "version": "1.1.2", 298 | "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", 299 | "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", 300 | "optional": true 301 | }, 302 | "@types/body-parser": { 303 | "version": "1.19.0", 304 | "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz", 305 | "integrity": "sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ==", 306 | "requires": { 307 | "@types/connect": "*", 308 | "@types/node": "*" 309 | } 310 | }, 311 | "@types/connect": { 312 | "version": "3.4.33", 313 | "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.33.tgz", 314 | "integrity": "sha512-2+FrkXY4zllzTNfJth7jOqEHC+enpLeGslEhpnTAkg21GkRrWV4SsAtqchtT4YS9/nODBU2/ZfsBY2X4J/dX7A==", 315 | "requires": { 316 | "@types/node": "*" 317 | } 318 | }, 319 | "@types/express": { 320 | "version": "4.17.3", 321 | "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.3.tgz", 322 | "integrity": "sha512-I8cGRJj3pyOLs/HndoP+25vOqhqWkAZsWMEmq1qXy/b/M3ppufecUwaK2/TVDVxcV61/iSdhykUjQQ2DLSrTdg==", 323 | "requires": { 324 | "@types/body-parser": "*", 325 | "@types/express-serve-static-core": "*", 326 | "@types/serve-static": "*" 327 | } 328 | }, 329 | "@types/express-serve-static-core": { 330 | "version": "4.17.8", 331 | "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.8.tgz", 332 | "integrity": "sha512-1SJZ+R3Q/7mLkOD9ewCBDYD2k0WyZQtWYqF/2VvoNN2/uhI49J9CDN4OAm+wGMA0DbArA4ef27xl4+JwMtGggw==", 333 | "requires": { 334 | "@types/node": "*", 335 | "@types/qs": "*", 336 | "@types/range-parser": "*" 337 | } 338 | }, 339 | "@types/long": { 340 | "version": "4.0.1", 341 | "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", 342 | "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==", 343 | "optional": true 344 | }, 345 | "@types/mime": { 346 | "version": "2.0.2", 347 | "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.2.tgz", 348 | "integrity": "sha512-4kPlzbljFcsttWEq6aBW0OZe6BDajAmyvr2xknBG92tejQnvdGtT9+kXSZ580DqpxY9qG2xeQVF9Dq0ymUTo5Q==" 349 | }, 350 | "@types/node": { 351 | "version": "10.17.27", 352 | "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.27.tgz", 353 | "integrity": "sha512-J0oqm9ZfAXaPdwNXMMgAhylw5fhmXkToJd06vuDUSAgEDZ/n/69/69UmyBZbc+zT34UnShuDSBqvim3SPnozJg==" 354 | }, 355 | "@types/qs": { 356 | "version": "6.9.3", 357 | "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.3.tgz", 358 | "integrity": "sha512-7s9EQWupR1fTc2pSMtXRQ9w9gLOcrJn+h7HOXw4evxyvVqMi4f+q7d2tnFe3ng3SNHjtK+0EzGMGFUQX4/AQRA==" 359 | }, 360 | "@types/range-parser": { 361 | "version": "1.2.3", 362 | "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.3.tgz", 363 | "integrity": "sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==" 364 | }, 365 | "@types/serve-static": { 366 | "version": "1.13.4", 367 | "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.4.tgz", 368 | "integrity": "sha512-jTDt0o/YbpNwZbQmE/+2e+lfjJEJJR0I3OFaKQKPWkASkCoW3i6fsUnqudSMcNAfbtmADGu8f4MV4q+GqULmug==", 369 | "requires": { 370 | "@types/express-serve-static-core": "*", 371 | "@types/mime": "*" 372 | } 373 | }, 374 | "abort-controller": { 375 | "version": "3.0.0", 376 | "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", 377 | "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", 378 | "optional": true, 379 | "requires": { 380 | "event-target-shim": "^5.0.0" 381 | } 382 | }, 383 | "accepts": { 384 | "version": "1.3.7", 385 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 386 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 387 | "requires": { 388 | "mime-types": "~2.1.24", 389 | "negotiator": "0.6.2" 390 | } 391 | }, 392 | "agent-base": { 393 | "version": "6.0.1", 394 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.1.tgz", 395 | "integrity": "sha512-01q25QQDwLSsyfhrKbn8yuur+JNw0H+0Y4JiGIKd3z9aYk/w/2kxD/Upc+t2ZBBSUNff50VjPsSW2YxM8QYKVg==", 396 | "optional": true, 397 | "requires": { 398 | "debug": "4" 399 | } 400 | }, 401 | "ansi-styles": { 402 | "version": "3.2.1", 403 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 404 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 405 | "dev": true, 406 | "requires": { 407 | "color-convert": "^1.9.0" 408 | } 409 | }, 410 | "argparse": { 411 | "version": "1.0.10", 412 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 413 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 414 | "dev": true, 415 | "requires": { 416 | "sprintf-js": "~1.0.2" 417 | } 418 | }, 419 | "array-flatten": { 420 | "version": "1.1.1", 421 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 422 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 423 | }, 424 | "arrify": { 425 | "version": "2.0.1", 426 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", 427 | "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", 428 | "optional": true 429 | }, 430 | "balanced-match": { 431 | "version": "1.0.0", 432 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 433 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 434 | "dev": true 435 | }, 436 | "base64-js": { 437 | "version": "1.3.1", 438 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", 439 | "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", 440 | "optional": true 441 | }, 442 | "bignumber.js": { 443 | "version": "9.0.0", 444 | "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz", 445 | "integrity": "sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A==", 446 | "optional": true 447 | }, 448 | "body-parser": { 449 | "version": "1.19.0", 450 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 451 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 452 | "requires": { 453 | "bytes": "3.1.0", 454 | "content-type": "~1.0.4", 455 | "debug": "2.6.9", 456 | "depd": "~1.1.2", 457 | "http-errors": "1.7.2", 458 | "iconv-lite": "0.4.24", 459 | "on-finished": "~2.3.0", 460 | "qs": "6.7.0", 461 | "raw-body": "2.4.0", 462 | "type-is": "~1.6.17" 463 | }, 464 | "dependencies": { 465 | "debug": { 466 | "version": "2.6.9", 467 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 468 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 469 | "requires": { 470 | "ms": "2.0.0" 471 | } 472 | }, 473 | "ms": { 474 | "version": "2.0.0", 475 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 476 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 477 | } 478 | } 479 | }, 480 | "brace-expansion": { 481 | "version": "1.1.11", 482 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 483 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 484 | "dev": true, 485 | "requires": { 486 | "balanced-match": "^1.0.0", 487 | "concat-map": "0.0.1" 488 | } 489 | }, 490 | "buffer-equal-constant-time": { 491 | "version": "1.0.1", 492 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 493 | "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" 494 | }, 495 | "buffer-from": { 496 | "version": "1.1.1", 497 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", 498 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", 499 | "optional": true 500 | }, 501 | "builtin-modules": { 502 | "version": "1.1.1", 503 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 504 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 505 | "dev": true 506 | }, 507 | "bytes": { 508 | "version": "3.1.0", 509 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 510 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 511 | }, 512 | "chalk": { 513 | "version": "2.4.2", 514 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 515 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 516 | "dev": true, 517 | "requires": { 518 | "ansi-styles": "^3.2.1", 519 | "escape-string-regexp": "^1.0.5", 520 | "supports-color": "^5.3.0" 521 | } 522 | }, 523 | "color-convert": { 524 | "version": "1.9.3", 525 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 526 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 527 | "dev": true, 528 | "requires": { 529 | "color-name": "1.1.3" 530 | } 531 | }, 532 | "color-name": { 533 | "version": "1.1.3", 534 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 535 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 536 | "dev": true 537 | }, 538 | "commander": { 539 | "version": "2.20.3", 540 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 541 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 542 | "dev": true 543 | }, 544 | "compressible": { 545 | "version": "2.0.18", 546 | "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", 547 | "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", 548 | "optional": true, 549 | "requires": { 550 | "mime-db": ">= 1.43.0 < 2" 551 | } 552 | }, 553 | "concat-map": { 554 | "version": "0.0.1", 555 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 556 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 557 | "dev": true 558 | }, 559 | "concat-stream": { 560 | "version": "2.0.0", 561 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", 562 | "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", 563 | "optional": true, 564 | "requires": { 565 | "buffer-from": "^1.0.0", 566 | "inherits": "^2.0.3", 567 | "readable-stream": "^3.0.2", 568 | "typedarray": "^0.0.6" 569 | }, 570 | "dependencies": { 571 | "readable-stream": { 572 | "version": "3.6.0", 573 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 574 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 575 | "optional": true, 576 | "requires": { 577 | "inherits": "^2.0.3", 578 | "string_decoder": "^1.1.1", 579 | "util-deprecate": "^1.0.1" 580 | } 581 | } 582 | } 583 | }, 584 | "configstore": { 585 | "version": "5.0.1", 586 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", 587 | "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", 588 | "optional": true, 589 | "requires": { 590 | "dot-prop": "^5.2.0", 591 | "graceful-fs": "^4.1.2", 592 | "make-dir": "^3.0.0", 593 | "unique-string": "^2.0.0", 594 | "write-file-atomic": "^3.0.0", 595 | "xdg-basedir": "^4.0.0" 596 | } 597 | }, 598 | "content-disposition": { 599 | "version": "0.5.3", 600 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 601 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 602 | "requires": { 603 | "safe-buffer": "5.1.2" 604 | }, 605 | "dependencies": { 606 | "safe-buffer": { 607 | "version": "5.1.2", 608 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 609 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 610 | } 611 | } 612 | }, 613 | "content-type": { 614 | "version": "1.0.4", 615 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 616 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 617 | }, 618 | "cookie": { 619 | "version": "0.4.0", 620 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 621 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 622 | }, 623 | "cookie-signature": { 624 | "version": "1.0.6", 625 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 626 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 627 | }, 628 | "core-util-is": { 629 | "version": "1.0.2", 630 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 631 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", 632 | "optional": true 633 | }, 634 | "cors": { 635 | "version": "2.8.5", 636 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 637 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 638 | "requires": { 639 | "object-assign": "^4", 640 | "vary": "^1" 641 | } 642 | }, 643 | "crypto-random-string": { 644 | "version": "2.0.0", 645 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", 646 | "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", 647 | "optional": true 648 | }, 649 | "date-and-time": { 650 | "version": "0.13.1", 651 | "resolved": "https://registry.npmjs.org/date-and-time/-/date-and-time-0.13.1.tgz", 652 | "integrity": "sha512-/Uge9DJAT+s+oAcDxtBhyR8+sKjUnZbYmyhbmWjTHNtX7B7oWD8YyYdeXcBRbwSj6hVvj+IQegJam7m7czhbFw==", 653 | "optional": true 654 | }, 655 | "debug": { 656 | "version": "4.1.1", 657 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 658 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 659 | "optional": true, 660 | "requires": { 661 | "ms": "^2.1.1" 662 | } 663 | }, 664 | "depd": { 665 | "version": "1.1.2", 666 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 667 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 668 | }, 669 | "destroy": { 670 | "version": "1.0.4", 671 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 672 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 673 | }, 674 | "dicer": { 675 | "version": "0.3.0", 676 | "resolved": "https://registry.npmjs.org/dicer/-/dicer-0.3.0.tgz", 677 | "integrity": "sha512-MdceRRWqltEG2dZqO769g27N/3PXfcKl04VhYnBlo2YhH7zPi88VebsjTKclaOyiuMaGU72hTfw3VkUitGcVCA==", 678 | "requires": { 679 | "streamsearch": "0.1.2" 680 | } 681 | }, 682 | "diff": { 683 | "version": "4.0.2", 684 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 685 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 686 | "dev": true 687 | }, 688 | "dot-prop": { 689 | "version": "5.2.0", 690 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz", 691 | "integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==", 692 | "optional": true, 693 | "requires": { 694 | "is-obj": "^2.0.0" 695 | } 696 | }, 697 | "duplexify": { 698 | "version": "3.7.1", 699 | "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", 700 | "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", 701 | "optional": true, 702 | "requires": { 703 | "end-of-stream": "^1.0.0", 704 | "inherits": "^2.0.1", 705 | "readable-stream": "^2.0.0", 706 | "stream-shift": "^1.0.0" 707 | } 708 | }, 709 | "ecdsa-sig-formatter": { 710 | "version": "1.0.11", 711 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", 712 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", 713 | "requires": { 714 | "safe-buffer": "^5.0.1" 715 | } 716 | }, 717 | "ee-first": { 718 | "version": "1.1.1", 719 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 720 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 721 | }, 722 | "encodeurl": { 723 | "version": "1.0.2", 724 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 725 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 726 | }, 727 | "end-of-stream": { 728 | "version": "1.4.4", 729 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 730 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 731 | "optional": true, 732 | "requires": { 733 | "once": "^1.4.0" 734 | } 735 | }, 736 | "ent": { 737 | "version": "2.2.0", 738 | "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", 739 | "integrity": "sha1-6WQhkyWiHQX0RGai9obtbOX13R0=", 740 | "optional": true 741 | }, 742 | "escape-html": { 743 | "version": "1.0.3", 744 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 745 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 746 | }, 747 | "escape-string-regexp": { 748 | "version": "1.0.5", 749 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 750 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 751 | "dev": true 752 | }, 753 | "esprima": { 754 | "version": "4.0.1", 755 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 756 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 757 | "dev": true 758 | }, 759 | "etag": { 760 | "version": "1.8.1", 761 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 762 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 763 | }, 764 | "event-target-shim": { 765 | "version": "5.0.1", 766 | "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", 767 | "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", 768 | "optional": true 769 | }, 770 | "express": { 771 | "version": "4.17.1", 772 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 773 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 774 | "requires": { 775 | "accepts": "~1.3.7", 776 | "array-flatten": "1.1.1", 777 | "body-parser": "1.19.0", 778 | "content-disposition": "0.5.3", 779 | "content-type": "~1.0.4", 780 | "cookie": "0.4.0", 781 | "cookie-signature": "1.0.6", 782 | "debug": "2.6.9", 783 | "depd": "~1.1.2", 784 | "encodeurl": "~1.0.2", 785 | "escape-html": "~1.0.3", 786 | "etag": "~1.8.1", 787 | "finalhandler": "~1.1.2", 788 | "fresh": "0.5.2", 789 | "merge-descriptors": "1.0.1", 790 | "methods": "~1.1.2", 791 | "on-finished": "~2.3.0", 792 | "parseurl": "~1.3.3", 793 | "path-to-regexp": "0.1.7", 794 | "proxy-addr": "~2.0.5", 795 | "qs": "6.7.0", 796 | "range-parser": "~1.2.1", 797 | "safe-buffer": "5.1.2", 798 | "send": "0.17.1", 799 | "serve-static": "1.14.1", 800 | "setprototypeof": "1.1.1", 801 | "statuses": "~1.5.0", 802 | "type-is": "~1.6.18", 803 | "utils-merge": "1.0.1", 804 | "vary": "~1.1.2" 805 | }, 806 | "dependencies": { 807 | "debug": { 808 | "version": "2.6.9", 809 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 810 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 811 | "requires": { 812 | "ms": "2.0.0" 813 | } 814 | }, 815 | "ms": { 816 | "version": "2.0.0", 817 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 818 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 819 | }, 820 | "safe-buffer": { 821 | "version": "5.1.2", 822 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 823 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 824 | } 825 | } 826 | }, 827 | "extend": { 828 | "version": "3.0.2", 829 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 830 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", 831 | "optional": true 832 | }, 833 | "fast-deep-equal": { 834 | "version": "3.1.3", 835 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 836 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 837 | "optional": true 838 | }, 839 | "fast-text-encoding": { 840 | "version": "1.0.3", 841 | "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.3.tgz", 842 | "integrity": "sha512-dtm4QZH9nZtcDt8qJiOH9fcQd1NAgi+K1O2DbE6GG1PPCK/BWfOH3idCTRQ4ImXRUOyopDEgDEnVEE7Y/2Wrig==", 843 | "optional": true 844 | }, 845 | "faye-websocket": { 846 | "version": "0.11.3", 847 | "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.3.tgz", 848 | "integrity": "sha512-D2y4bovYpzziGgbHYtGCMjlJM36vAl/y+xUyn1C+FVx8szd1E+86KwVw6XvYSzOP8iMpm1X0I4xJD+QtUb36OA==", 849 | "requires": { 850 | "websocket-driver": ">=0.5.1" 851 | } 852 | }, 853 | "finalhandler": { 854 | "version": "1.1.2", 855 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 856 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 857 | "requires": { 858 | "debug": "2.6.9", 859 | "encodeurl": "~1.0.2", 860 | "escape-html": "~1.0.3", 861 | "on-finished": "~2.3.0", 862 | "parseurl": "~1.3.3", 863 | "statuses": "~1.5.0", 864 | "unpipe": "~1.0.0" 865 | }, 866 | "dependencies": { 867 | "debug": { 868 | "version": "2.6.9", 869 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 870 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 871 | "requires": { 872 | "ms": "2.0.0" 873 | } 874 | }, 875 | "ms": { 876 | "version": "2.0.0", 877 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 878 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 879 | } 880 | } 881 | }, 882 | "firebase-admin": { 883 | "version": "9.0.0", 884 | "resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-9.0.0.tgz", 885 | "integrity": "sha512-LP4xD+JxfEZ+e1kBIKT2kbDa9UFChwgL4488NexvTjhynNcJsKCGmawl2FMvZ2UPwXKgWBpLXJ07cYp6gk5lcw==", 886 | "requires": { 887 | "@firebase/database": "^0.6.0", 888 | "@google-cloud/firestore": "^4.0.0", 889 | "@google-cloud/storage": "^5.0.0", 890 | "@types/node": "^10.10.0", 891 | "dicer": "^0.3.0", 892 | "jsonwebtoken": "^8.5.1", 893 | "node-forge": "^0.9.1" 894 | } 895 | }, 896 | "firebase-functions": { 897 | "version": "3.8.0", 898 | "resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-3.8.0.tgz", 899 | "integrity": "sha512-RFvoS7ZcXrk2sQ918czsjv94p4hnSoD0/e4cZ86XFpa1HbNZBI7ZuSgBCzRvlv6dJ1ArytAL13NpB1Bp2tJ6Yg==", 900 | "requires": { 901 | "@types/express": "4.17.3", 902 | "cors": "^2.8.5", 903 | "express": "^4.17.1", 904 | "lodash": "^4.17.14" 905 | } 906 | }, 907 | "forwarded": { 908 | "version": "0.1.2", 909 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 910 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 911 | }, 912 | "fresh": { 913 | "version": "0.5.2", 914 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 915 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 916 | }, 917 | "fs.realpath": { 918 | "version": "1.0.0", 919 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 920 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 921 | "dev": true 922 | }, 923 | "functional-red-black-tree": { 924 | "version": "1.0.1", 925 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 926 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", 927 | "optional": true 928 | }, 929 | "gaxios": { 930 | "version": "3.0.4", 931 | "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-3.0.4.tgz", 932 | "integrity": "sha512-97NmFuMETFQh6gqPUxkqjxRMjmY8aRKRMphIkgO/b90AbCt5wAVuXsp8oWjIXlLN2pIK/fsXD8edcM7ULkFMLg==", 933 | "optional": true, 934 | "requires": { 935 | "abort-controller": "^3.0.0", 936 | "extend": "^3.0.2", 937 | "https-proxy-agent": "^5.0.0", 938 | "is-stream": "^2.0.0", 939 | "node-fetch": "^2.3.0" 940 | } 941 | }, 942 | "gcp-metadata": { 943 | "version": "4.1.4", 944 | "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.1.4.tgz", 945 | "integrity": "sha512-5J/GIH0yWt/56R3dNaNWPGQ/zXsZOddYECfJaqxFWgrZ9HC2Kvc5vl9upOgUUHKzURjAVf2N+f6tEJiojqXUuA==", 946 | "optional": true, 947 | "requires": { 948 | "gaxios": "^3.0.0", 949 | "json-bigint": "^1.0.0" 950 | } 951 | }, 952 | "gcs-resumable-upload": { 953 | "version": "3.1.1", 954 | "resolved": "https://registry.npmjs.org/gcs-resumable-upload/-/gcs-resumable-upload-3.1.1.tgz", 955 | "integrity": "sha512-RS1osvAicj9+MjCc6jAcVL1Pt3tg7NK2C2gXM5nqD1Gs0klF2kj5nnAFSBy97JrtslMIQzpb7iSuxaG8rFWd2A==", 956 | "optional": true, 957 | "requires": { 958 | "abort-controller": "^3.0.0", 959 | "configstore": "^5.0.0", 960 | "extend": "^3.0.2", 961 | "gaxios": "^3.0.0", 962 | "google-auth-library": "^6.0.0", 963 | "pumpify": "^2.0.0", 964 | "stream-events": "^1.0.4" 965 | } 966 | }, 967 | "glob": { 968 | "version": "7.1.6", 969 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 970 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 971 | "dev": true, 972 | "requires": { 973 | "fs.realpath": "^1.0.0", 974 | "inflight": "^1.0.4", 975 | "inherits": "2", 976 | "minimatch": "^3.0.4", 977 | "once": "^1.3.0", 978 | "path-is-absolute": "^1.0.0" 979 | } 980 | }, 981 | "google-auth-library": { 982 | "version": "6.0.5", 983 | "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.0.5.tgz", 984 | "integrity": "sha512-Wj31lfTm2yR4g3WfOOB1Am1tt478Xq9OvzTPQJi17tn/I9R5IcsxjANBsE93nYmxYxtwDedhOdIb8l3vSPG49Q==", 985 | "optional": true, 986 | "requires": { 987 | "arrify": "^2.0.0", 988 | "base64-js": "^1.3.0", 989 | "ecdsa-sig-formatter": "^1.0.11", 990 | "fast-text-encoding": "^1.0.0", 991 | "gaxios": "^3.0.0", 992 | "gcp-metadata": "^4.1.0", 993 | "gtoken": "^5.0.0", 994 | "jws": "^4.0.0", 995 | "lru-cache": "^6.0.0" 996 | } 997 | }, 998 | "google-gax": { 999 | "version": "2.6.3", 1000 | "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-2.6.3.tgz", 1001 | "integrity": "sha512-hqY6H53Qmaku8rE8dGAM89RSUc1nc4JYG81whrVJRmDQZ2jhJK8AwCd3pJQ3V48rgp9xiWBzBQsyeaxnb3Eikw==", 1002 | "optional": true, 1003 | "requires": { 1004 | "@grpc/grpc-js": "~1.1.1", 1005 | "@grpc/proto-loader": "^0.5.1", 1006 | "@types/long": "^4.0.0", 1007 | "abort-controller": "^3.0.0", 1008 | "duplexify": "^3.6.0", 1009 | "google-auth-library": "^6.0.0", 1010 | "is-stream-ended": "^0.1.4", 1011 | "lodash.at": "^4.6.0", 1012 | "lodash.has": "^4.5.2", 1013 | "node-fetch": "^2.6.0", 1014 | "protobufjs": "^6.9.0", 1015 | "retry-request": "^4.0.0", 1016 | "semver": "^6.0.0", 1017 | "walkdir": "^0.4.0" 1018 | } 1019 | }, 1020 | "google-p12-pem": { 1021 | "version": "3.0.2", 1022 | "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-3.0.2.tgz", 1023 | "integrity": "sha512-tbjzndQvSIHGBLzHnhDs3cL4RBjLbLXc2pYvGH+imGVu5b4RMAttUTdnmW2UH0t11QeBTXZ7wlXPS7hrypO/tg==", 1024 | "optional": true, 1025 | "requires": { 1026 | "node-forge": "^0.9.0" 1027 | } 1028 | }, 1029 | "graceful-fs": { 1030 | "version": "4.2.4", 1031 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", 1032 | "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", 1033 | "optional": true 1034 | }, 1035 | "gtoken": { 1036 | "version": "5.0.2", 1037 | "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.0.2.tgz", 1038 | "integrity": "sha512-lull70rHCTvRTmAt+R/6W5bTtx4MjHku7AwJwK5fGqhOmygcZud0nrZcX+QUNfBJwCzqy7S5i1Bc4NYnr5PMMA==", 1039 | "optional": true, 1040 | "requires": { 1041 | "gaxios": "^3.0.0", 1042 | "google-p12-pem": "^3.0.0", 1043 | "jws": "^4.0.0", 1044 | "mime": "^2.2.0" 1045 | } 1046 | }, 1047 | "has-flag": { 1048 | "version": "3.0.0", 1049 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1050 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 1051 | "dev": true 1052 | }, 1053 | "hash-stream-validation": { 1054 | "version": "0.2.3", 1055 | "resolved": "https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.3.tgz", 1056 | "integrity": "sha512-OEohGLoUOh+bwsIpHpdvhIXFyRGjeLqJbT8Yc5QTZPbRM7LKywagTQxnX/6mghLDOrD9YGz88hy5mLN2eKflYQ==", 1057 | "optional": true, 1058 | "requires": { 1059 | "through2": "^2.0.0" 1060 | }, 1061 | "dependencies": { 1062 | "through2": { 1063 | "version": "2.0.5", 1064 | "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", 1065 | "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", 1066 | "optional": true, 1067 | "requires": { 1068 | "readable-stream": "~2.3.6", 1069 | "xtend": "~4.0.1" 1070 | } 1071 | } 1072 | } 1073 | }, 1074 | "http-errors": { 1075 | "version": "1.7.2", 1076 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 1077 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 1078 | "requires": { 1079 | "depd": "~1.1.2", 1080 | "inherits": "2.0.3", 1081 | "setprototypeof": "1.1.1", 1082 | "statuses": ">= 1.5.0 < 2", 1083 | "toidentifier": "1.0.0" 1084 | }, 1085 | "dependencies": { 1086 | "inherits": { 1087 | "version": "2.0.3", 1088 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1089 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 1090 | } 1091 | } 1092 | }, 1093 | "http-parser-js": { 1094 | "version": "0.5.2", 1095 | "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.2.tgz", 1096 | "integrity": "sha512-opCO9ASqg5Wy2FNo7A0sxy71yGbbkJJXLdgMK04Tcypw9jr2MgWbyubb0+WdmDmGnFflO7fRbqbaihh/ENDlRQ==" 1097 | }, 1098 | "http-proxy-agent": { 1099 | "version": "4.0.1", 1100 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", 1101 | "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", 1102 | "optional": true, 1103 | "requires": { 1104 | "@tootallnate/once": "1", 1105 | "agent-base": "6", 1106 | "debug": "4" 1107 | } 1108 | }, 1109 | "https-proxy-agent": { 1110 | "version": "5.0.0", 1111 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 1112 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 1113 | "optional": true, 1114 | "requires": { 1115 | "agent-base": "6", 1116 | "debug": "4" 1117 | } 1118 | }, 1119 | "iconv-lite": { 1120 | "version": "0.4.24", 1121 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 1122 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 1123 | "requires": { 1124 | "safer-buffer": ">= 2.1.2 < 3" 1125 | } 1126 | }, 1127 | "imurmurhash": { 1128 | "version": "0.1.4", 1129 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1130 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 1131 | "optional": true 1132 | }, 1133 | "inflight": { 1134 | "version": "1.0.6", 1135 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1136 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1137 | "dev": true, 1138 | "requires": { 1139 | "once": "^1.3.0", 1140 | "wrappy": "1" 1141 | } 1142 | }, 1143 | "inherits": { 1144 | "version": "2.0.4", 1145 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1146 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1147 | }, 1148 | "ipaddr.js": { 1149 | "version": "1.9.1", 1150 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1151 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 1152 | }, 1153 | "is-obj": { 1154 | "version": "2.0.0", 1155 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", 1156 | "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", 1157 | "optional": true 1158 | }, 1159 | "is-stream": { 1160 | "version": "2.0.0", 1161 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", 1162 | "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", 1163 | "optional": true 1164 | }, 1165 | "is-stream-ended": { 1166 | "version": "0.1.4", 1167 | "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz", 1168 | "integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==", 1169 | "optional": true 1170 | }, 1171 | "is-typedarray": { 1172 | "version": "1.0.0", 1173 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 1174 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", 1175 | "optional": true 1176 | }, 1177 | "isarray": { 1178 | "version": "1.0.0", 1179 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1180 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1181 | "optional": true 1182 | }, 1183 | "js-tokens": { 1184 | "version": "4.0.0", 1185 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1186 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 1187 | "dev": true 1188 | }, 1189 | "js-yaml": { 1190 | "version": "3.14.0", 1191 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", 1192 | "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", 1193 | "dev": true, 1194 | "requires": { 1195 | "argparse": "^1.0.7", 1196 | "esprima": "^4.0.0" 1197 | } 1198 | }, 1199 | "json-bigint": { 1200 | "version": "1.0.0", 1201 | "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", 1202 | "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", 1203 | "optional": true, 1204 | "requires": { 1205 | "bignumber.js": "^9.0.0" 1206 | } 1207 | }, 1208 | "jsonwebtoken": { 1209 | "version": "8.5.1", 1210 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", 1211 | "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", 1212 | "requires": { 1213 | "jws": "^3.2.2", 1214 | "lodash.includes": "^4.3.0", 1215 | "lodash.isboolean": "^3.0.3", 1216 | "lodash.isinteger": "^4.0.4", 1217 | "lodash.isnumber": "^3.0.3", 1218 | "lodash.isplainobject": "^4.0.6", 1219 | "lodash.isstring": "^4.0.1", 1220 | "lodash.once": "^4.0.0", 1221 | "ms": "^2.1.1", 1222 | "semver": "^5.6.0" 1223 | }, 1224 | "dependencies": { 1225 | "jwa": { 1226 | "version": "1.4.1", 1227 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", 1228 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", 1229 | "requires": { 1230 | "buffer-equal-constant-time": "1.0.1", 1231 | "ecdsa-sig-formatter": "1.0.11", 1232 | "safe-buffer": "^5.0.1" 1233 | } 1234 | }, 1235 | "jws": { 1236 | "version": "3.2.2", 1237 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", 1238 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", 1239 | "requires": { 1240 | "jwa": "^1.4.1", 1241 | "safe-buffer": "^5.0.1" 1242 | } 1243 | }, 1244 | "semver": { 1245 | "version": "5.7.1", 1246 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1247 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 1248 | } 1249 | } 1250 | }, 1251 | "jwa": { 1252 | "version": "2.0.0", 1253 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", 1254 | "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", 1255 | "optional": true, 1256 | "requires": { 1257 | "buffer-equal-constant-time": "1.0.1", 1258 | "ecdsa-sig-formatter": "1.0.11", 1259 | "safe-buffer": "^5.0.1" 1260 | } 1261 | }, 1262 | "jws": { 1263 | "version": "4.0.0", 1264 | "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", 1265 | "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", 1266 | "optional": true, 1267 | "requires": { 1268 | "jwa": "^2.0.0", 1269 | "safe-buffer": "^5.0.1" 1270 | } 1271 | }, 1272 | "lodash": { 1273 | "version": "4.17.19", 1274 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", 1275 | "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" 1276 | }, 1277 | "lodash.at": { 1278 | "version": "4.6.0", 1279 | "resolved": "https://registry.npmjs.org/lodash.at/-/lodash.at-4.6.0.tgz", 1280 | "integrity": "sha1-k83OZk8KGZTqM9181A4jr9EbD/g=", 1281 | "optional": true 1282 | }, 1283 | "lodash.camelcase": { 1284 | "version": "4.3.0", 1285 | "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", 1286 | "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", 1287 | "optional": true 1288 | }, 1289 | "lodash.has": { 1290 | "version": "4.5.2", 1291 | "resolved": "https://registry.npmjs.org/lodash.has/-/lodash.has-4.5.2.tgz", 1292 | "integrity": "sha1-0Z9NwQlQWMzL4rDN9O4P5Ko3yGI=", 1293 | "optional": true 1294 | }, 1295 | "lodash.includes": { 1296 | "version": "4.3.0", 1297 | "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", 1298 | "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" 1299 | }, 1300 | "lodash.isboolean": { 1301 | "version": "3.0.3", 1302 | "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", 1303 | "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" 1304 | }, 1305 | "lodash.isinteger": { 1306 | "version": "4.0.4", 1307 | "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", 1308 | "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" 1309 | }, 1310 | "lodash.isnumber": { 1311 | "version": "3.0.3", 1312 | "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", 1313 | "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" 1314 | }, 1315 | "lodash.isplainobject": { 1316 | "version": "4.0.6", 1317 | "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", 1318 | "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" 1319 | }, 1320 | "lodash.isstring": { 1321 | "version": "4.0.1", 1322 | "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", 1323 | "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" 1324 | }, 1325 | "lodash.once": { 1326 | "version": "4.1.1", 1327 | "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", 1328 | "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" 1329 | }, 1330 | "long": { 1331 | "version": "4.0.0", 1332 | "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", 1333 | "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", 1334 | "optional": true 1335 | }, 1336 | "lru-cache": { 1337 | "version": "6.0.0", 1338 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1339 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1340 | "optional": true, 1341 | "requires": { 1342 | "yallist": "^4.0.0" 1343 | } 1344 | }, 1345 | "make-dir": { 1346 | "version": "3.1.0", 1347 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 1348 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 1349 | "optional": true, 1350 | "requires": { 1351 | "semver": "^6.0.0" 1352 | } 1353 | }, 1354 | "media-typer": { 1355 | "version": "0.3.0", 1356 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1357 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1358 | }, 1359 | "merge-descriptors": { 1360 | "version": "1.0.1", 1361 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1362 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1363 | }, 1364 | "methods": { 1365 | "version": "1.1.2", 1366 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1367 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1368 | }, 1369 | "mime": { 1370 | "version": "2.4.6", 1371 | "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz", 1372 | "integrity": "sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA==", 1373 | "optional": true 1374 | }, 1375 | "mime-db": { 1376 | "version": "1.44.0", 1377 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 1378 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 1379 | }, 1380 | "mime-types": { 1381 | "version": "2.1.27", 1382 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 1383 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 1384 | "requires": { 1385 | "mime-db": "1.44.0" 1386 | } 1387 | }, 1388 | "mimic-fn": { 1389 | "version": "2.1.0", 1390 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", 1391 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", 1392 | "optional": true 1393 | }, 1394 | "minimatch": { 1395 | "version": "3.0.4", 1396 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1397 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1398 | "dev": true, 1399 | "requires": { 1400 | "brace-expansion": "^1.1.7" 1401 | } 1402 | }, 1403 | "minimist": { 1404 | "version": "1.2.5", 1405 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1406 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 1407 | "dev": true 1408 | }, 1409 | "mkdirp": { 1410 | "version": "0.5.5", 1411 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 1412 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 1413 | "dev": true, 1414 | "requires": { 1415 | "minimist": "^1.2.5" 1416 | } 1417 | }, 1418 | "ms": { 1419 | "version": "2.1.2", 1420 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1421 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1422 | }, 1423 | "negotiator": { 1424 | "version": "0.6.2", 1425 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1426 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 1427 | }, 1428 | "node-fetch": { 1429 | "version": "2.6.0", 1430 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", 1431 | "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==", 1432 | "optional": true 1433 | }, 1434 | "node-forge": { 1435 | "version": "0.9.1", 1436 | "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.9.1.tgz", 1437 | "integrity": "sha512-G6RlQt5Sb4GMBzXvhfkeFmbqR6MzhtnT7VTHuLadjkii3rdYHNdw0m8zA4BTxVIh68FicCQ2NSUANpsqkr9jvQ==" 1438 | }, 1439 | "object-assign": { 1440 | "version": "4.1.1", 1441 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1442 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1443 | }, 1444 | "on-finished": { 1445 | "version": "2.3.0", 1446 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1447 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1448 | "requires": { 1449 | "ee-first": "1.1.1" 1450 | } 1451 | }, 1452 | "once": { 1453 | "version": "1.4.0", 1454 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1455 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1456 | "requires": { 1457 | "wrappy": "1" 1458 | } 1459 | }, 1460 | "onetime": { 1461 | "version": "5.1.0", 1462 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", 1463 | "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", 1464 | "optional": true, 1465 | "requires": { 1466 | "mimic-fn": "^2.1.0" 1467 | } 1468 | }, 1469 | "p-limit": { 1470 | "version": "3.0.2", 1471 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.0.2.tgz", 1472 | "integrity": "sha512-iwqZSOoWIW+Ew4kAGUlN16J4M7OB3ysMLSZtnhmqx7njIHFPlxWBX8xo3lVTyFVq6mI/lL9qt2IsN1sHwaxJkg==", 1473 | "optional": true, 1474 | "requires": { 1475 | "p-try": "^2.0.0" 1476 | } 1477 | }, 1478 | "p-try": { 1479 | "version": "2.2.0", 1480 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 1481 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 1482 | "optional": true 1483 | }, 1484 | "parseurl": { 1485 | "version": "1.3.3", 1486 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1487 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1488 | }, 1489 | "path-is-absolute": { 1490 | "version": "1.0.1", 1491 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1492 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1493 | "dev": true 1494 | }, 1495 | "path-parse": { 1496 | "version": "1.0.6", 1497 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 1498 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 1499 | "dev": true 1500 | }, 1501 | "path-to-regexp": { 1502 | "version": "0.1.7", 1503 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1504 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1505 | }, 1506 | "process-nextick-args": { 1507 | "version": "2.0.1", 1508 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1509 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 1510 | "optional": true 1511 | }, 1512 | "protobufjs": { 1513 | "version": "6.10.1", 1514 | "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.10.1.tgz", 1515 | "integrity": "sha512-pb8kTchL+1Ceg4lFd5XUpK8PdWacbvV5SK2ULH2ebrYtl4GjJmS24m6CKME67jzV53tbJxHlnNOSqQHbTsR9JQ==", 1516 | "optional": true, 1517 | "requires": { 1518 | "@protobufjs/aspromise": "^1.1.2", 1519 | "@protobufjs/base64": "^1.1.2", 1520 | "@protobufjs/codegen": "^2.0.4", 1521 | "@protobufjs/eventemitter": "^1.1.0", 1522 | "@protobufjs/fetch": "^1.1.0", 1523 | "@protobufjs/float": "^1.0.2", 1524 | "@protobufjs/inquire": "^1.1.0", 1525 | "@protobufjs/path": "^1.1.2", 1526 | "@protobufjs/pool": "^1.1.0", 1527 | "@protobufjs/utf8": "^1.1.0", 1528 | "@types/long": "^4.0.1", 1529 | "@types/node": "^13.7.0", 1530 | "long": "^4.0.0" 1531 | }, 1532 | "dependencies": { 1533 | "@types/node": { 1534 | "version": "13.13.14", 1535 | "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.14.tgz", 1536 | "integrity": "sha512-Az3QsOt1U/K1pbCQ0TXGELTuTkPLOiFIQf3ILzbOyo0FqgV9SxRnxbxM5QlAveERZMHpZY+7u3Jz2tKyl+yg6g==", 1537 | "optional": true 1538 | } 1539 | } 1540 | }, 1541 | "proxy-addr": { 1542 | "version": "2.0.6", 1543 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 1544 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 1545 | "requires": { 1546 | "forwarded": "~0.1.2", 1547 | "ipaddr.js": "1.9.1" 1548 | } 1549 | }, 1550 | "pump": { 1551 | "version": "3.0.0", 1552 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1553 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1554 | "optional": true, 1555 | "requires": { 1556 | "end-of-stream": "^1.1.0", 1557 | "once": "^1.3.1" 1558 | } 1559 | }, 1560 | "pumpify": { 1561 | "version": "2.0.1", 1562 | "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-2.0.1.tgz", 1563 | "integrity": "sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==", 1564 | "optional": true, 1565 | "requires": { 1566 | "duplexify": "^4.1.1", 1567 | "inherits": "^2.0.3", 1568 | "pump": "^3.0.0" 1569 | }, 1570 | "dependencies": { 1571 | "duplexify": { 1572 | "version": "4.1.1", 1573 | "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.1.tgz", 1574 | "integrity": "sha512-DY3xVEmVHTv1wSzKNbwoU6nVjzI369Y6sPoqfYr0/xlx3IdX2n94xIszTcjPO8W8ZIv0Wb0PXNcjuZyT4wiICA==", 1575 | "optional": true, 1576 | "requires": { 1577 | "end-of-stream": "^1.4.1", 1578 | "inherits": "^2.0.3", 1579 | "readable-stream": "^3.1.1", 1580 | "stream-shift": "^1.0.0" 1581 | } 1582 | }, 1583 | "readable-stream": { 1584 | "version": "3.6.0", 1585 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1586 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1587 | "optional": true, 1588 | "requires": { 1589 | "inherits": "^2.0.3", 1590 | "string_decoder": "^1.1.1", 1591 | "util-deprecate": "^1.0.1" 1592 | } 1593 | } 1594 | } 1595 | }, 1596 | "qs": { 1597 | "version": "6.7.0", 1598 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1599 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 1600 | }, 1601 | "range-parser": { 1602 | "version": "1.2.1", 1603 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1604 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1605 | }, 1606 | "raw-body": { 1607 | "version": "2.4.0", 1608 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1609 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1610 | "requires": { 1611 | "bytes": "3.1.0", 1612 | "http-errors": "1.7.2", 1613 | "iconv-lite": "0.4.24", 1614 | "unpipe": "1.0.0" 1615 | } 1616 | }, 1617 | "readable-stream": { 1618 | "version": "2.3.7", 1619 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 1620 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 1621 | "optional": true, 1622 | "requires": { 1623 | "core-util-is": "~1.0.0", 1624 | "inherits": "~2.0.3", 1625 | "isarray": "~1.0.0", 1626 | "process-nextick-args": "~2.0.0", 1627 | "safe-buffer": "~5.1.1", 1628 | "string_decoder": "~1.1.1", 1629 | "util-deprecate": "~1.0.1" 1630 | }, 1631 | "dependencies": { 1632 | "safe-buffer": { 1633 | "version": "5.1.2", 1634 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1635 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1636 | "optional": true 1637 | } 1638 | } 1639 | }, 1640 | "resolve": { 1641 | "version": "1.17.0", 1642 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", 1643 | "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", 1644 | "dev": true, 1645 | "requires": { 1646 | "path-parse": "^1.0.6" 1647 | } 1648 | }, 1649 | "retry-request": { 1650 | "version": "4.1.1", 1651 | "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-4.1.1.tgz", 1652 | "integrity": "sha512-BINDzVtLI2BDukjWmjAIRZ0oglnCAkpP2vQjM3jdLhmT62h0xnQgciPwBRDAvHqpkPT2Wo1XuUyLyn6nbGrZQQ==", 1653 | "optional": true, 1654 | "requires": { 1655 | "debug": "^4.1.1", 1656 | "through2": "^3.0.1" 1657 | } 1658 | }, 1659 | "safe-buffer": { 1660 | "version": "5.2.1", 1661 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1662 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 1663 | }, 1664 | "safer-buffer": { 1665 | "version": "2.1.2", 1666 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1667 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1668 | }, 1669 | "semver": { 1670 | "version": "6.3.0", 1671 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1672 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1673 | "optional": true 1674 | }, 1675 | "send": { 1676 | "version": "0.17.1", 1677 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1678 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1679 | "requires": { 1680 | "debug": "2.6.9", 1681 | "depd": "~1.1.2", 1682 | "destroy": "~1.0.4", 1683 | "encodeurl": "~1.0.2", 1684 | "escape-html": "~1.0.3", 1685 | "etag": "~1.8.1", 1686 | "fresh": "0.5.2", 1687 | "http-errors": "~1.7.2", 1688 | "mime": "1.6.0", 1689 | "ms": "2.1.1", 1690 | "on-finished": "~2.3.0", 1691 | "range-parser": "~1.2.1", 1692 | "statuses": "~1.5.0" 1693 | }, 1694 | "dependencies": { 1695 | "debug": { 1696 | "version": "2.6.9", 1697 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1698 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1699 | "requires": { 1700 | "ms": "2.0.0" 1701 | }, 1702 | "dependencies": { 1703 | "ms": { 1704 | "version": "2.0.0", 1705 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1706 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1707 | } 1708 | } 1709 | }, 1710 | "mime": { 1711 | "version": "1.6.0", 1712 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1713 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 1714 | }, 1715 | "ms": { 1716 | "version": "2.1.1", 1717 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1718 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1719 | } 1720 | } 1721 | }, 1722 | "serve-static": { 1723 | "version": "1.14.1", 1724 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1725 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1726 | "requires": { 1727 | "encodeurl": "~1.0.2", 1728 | "escape-html": "~1.0.3", 1729 | "parseurl": "~1.3.3", 1730 | "send": "0.17.1" 1731 | } 1732 | }, 1733 | "setprototypeof": { 1734 | "version": "1.1.1", 1735 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1736 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1737 | }, 1738 | "signal-exit": { 1739 | "version": "3.0.3", 1740 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 1741 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", 1742 | "optional": true 1743 | }, 1744 | "snakeize": { 1745 | "version": "0.1.0", 1746 | "resolved": "https://registry.npmjs.org/snakeize/-/snakeize-0.1.0.tgz", 1747 | "integrity": "sha1-EMCI2LWOsHazIpu1oE4jLOEmQi0=", 1748 | "optional": true 1749 | }, 1750 | "sprintf-js": { 1751 | "version": "1.0.3", 1752 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1753 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1754 | "dev": true 1755 | }, 1756 | "statuses": { 1757 | "version": "1.5.0", 1758 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1759 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 1760 | }, 1761 | "stream-events": { 1762 | "version": "1.0.5", 1763 | "resolved": "https://registry.npmjs.org/stream-events/-/stream-events-1.0.5.tgz", 1764 | "integrity": "sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==", 1765 | "optional": true, 1766 | "requires": { 1767 | "stubs": "^3.0.0" 1768 | } 1769 | }, 1770 | "stream-shift": { 1771 | "version": "1.0.1", 1772 | "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", 1773 | "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==", 1774 | "optional": true 1775 | }, 1776 | "streamsearch": { 1777 | "version": "0.1.2", 1778 | "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz", 1779 | "integrity": "sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo=" 1780 | }, 1781 | "string_decoder": { 1782 | "version": "1.1.1", 1783 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1784 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1785 | "optional": true, 1786 | "requires": { 1787 | "safe-buffer": "~5.1.0" 1788 | }, 1789 | "dependencies": { 1790 | "safe-buffer": { 1791 | "version": "5.1.2", 1792 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1793 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1794 | "optional": true 1795 | } 1796 | } 1797 | }, 1798 | "stubs": { 1799 | "version": "3.0.0", 1800 | "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz", 1801 | "integrity": "sha1-6NK6H6nJBXAwPAMLaQD31fiavls=", 1802 | "optional": true 1803 | }, 1804 | "supports-color": { 1805 | "version": "5.5.0", 1806 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1807 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1808 | "dev": true, 1809 | "requires": { 1810 | "has-flag": "^3.0.0" 1811 | } 1812 | }, 1813 | "teeny-request": { 1814 | "version": "7.0.0", 1815 | "resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-7.0.0.tgz", 1816 | "integrity": "sha512-kWD3sdGmIix6w7c8ZdVKxWq+3YwVPGWz+Mq0wRZXayEKY/YHb63b8uphfBzcFDmyq8frD9+UTc3wLyOhltRbtg==", 1817 | "optional": true, 1818 | "requires": { 1819 | "http-proxy-agent": "^4.0.0", 1820 | "https-proxy-agent": "^5.0.0", 1821 | "node-fetch": "^2.2.0", 1822 | "stream-events": "^1.0.5", 1823 | "uuid": "^8.0.0" 1824 | } 1825 | }, 1826 | "through2": { 1827 | "version": "3.0.2", 1828 | "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.2.tgz", 1829 | "integrity": "sha512-enaDQ4MUyP2W6ZyT6EsMzqBPZaM/avg8iuo+l2d3QCs0J+6RaqkHV/2/lOwDTueBHeJ/2LG9lrLW3d5rWPucuQ==", 1830 | "optional": true, 1831 | "requires": { 1832 | "inherits": "^2.0.4", 1833 | "readable-stream": "2 || 3" 1834 | } 1835 | }, 1836 | "toidentifier": { 1837 | "version": "1.0.0", 1838 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 1839 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 1840 | }, 1841 | "tslib": { 1842 | "version": "1.11.1", 1843 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", 1844 | "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==" 1845 | }, 1846 | "tslint": { 1847 | "version": "6.1.2", 1848 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.2.tgz", 1849 | "integrity": "sha512-UyNrLdK3E0fQG/xWNqAFAC5ugtFyPO4JJR1KyyfQAyzR8W0fTRrC91A8Wej4BntFzcvETdCSDa/4PnNYJQLYiA==", 1850 | "dev": true, 1851 | "requires": { 1852 | "@babel/code-frame": "^7.0.0", 1853 | "builtin-modules": "^1.1.1", 1854 | "chalk": "^2.3.0", 1855 | "commander": "^2.12.1", 1856 | "diff": "^4.0.1", 1857 | "glob": "^7.1.1", 1858 | "js-yaml": "^3.13.1", 1859 | "minimatch": "^3.0.4", 1860 | "mkdirp": "^0.5.3", 1861 | "resolve": "^1.3.2", 1862 | "semver": "^5.3.0", 1863 | "tslib": "^1.10.0", 1864 | "tsutils": "^2.29.0" 1865 | }, 1866 | "dependencies": { 1867 | "semver": { 1868 | "version": "5.7.1", 1869 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1870 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 1871 | "dev": true 1872 | } 1873 | } 1874 | }, 1875 | "tsutils": { 1876 | "version": "2.29.0", 1877 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 1878 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 1879 | "dev": true, 1880 | "requires": { 1881 | "tslib": "^1.8.1" 1882 | } 1883 | }, 1884 | "type-is": { 1885 | "version": "1.6.18", 1886 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1887 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1888 | "requires": { 1889 | "media-typer": "0.3.0", 1890 | "mime-types": "~2.1.24" 1891 | } 1892 | }, 1893 | "typedarray": { 1894 | "version": "0.0.6", 1895 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 1896 | "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", 1897 | "optional": true 1898 | }, 1899 | "typedarray-to-buffer": { 1900 | "version": "3.1.5", 1901 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", 1902 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", 1903 | "optional": true, 1904 | "requires": { 1905 | "is-typedarray": "^1.0.0" 1906 | } 1907 | }, 1908 | "typescript": { 1909 | "version": "3.9.7", 1910 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz", 1911 | "integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==", 1912 | "dev": true 1913 | }, 1914 | "unique-string": { 1915 | "version": "2.0.0", 1916 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", 1917 | "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", 1918 | "optional": true, 1919 | "requires": { 1920 | "crypto-random-string": "^2.0.0" 1921 | } 1922 | }, 1923 | "unpipe": { 1924 | "version": "1.0.0", 1925 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1926 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 1927 | }, 1928 | "util-deprecate": { 1929 | "version": "1.0.2", 1930 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1931 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 1932 | "optional": true 1933 | }, 1934 | "utils-merge": { 1935 | "version": "1.0.1", 1936 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1937 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 1938 | }, 1939 | "uuid": { 1940 | "version": "8.2.0", 1941 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.2.0.tgz", 1942 | "integrity": "sha512-CYpGiFTUrmI6OBMkAdjSDM0k5h8SkkiTP4WAjQgDgNB1S3Ou9VBEvr6q0Kv2H1mMk7IWfxYGpMH5sd5AvcIV2Q==", 1943 | "optional": true 1944 | }, 1945 | "vary": { 1946 | "version": "1.1.2", 1947 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1948 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 1949 | }, 1950 | "walkdir": { 1951 | "version": "0.4.1", 1952 | "resolved": "https://registry.npmjs.org/walkdir/-/walkdir-0.4.1.tgz", 1953 | "integrity": "sha512-3eBwRyEln6E1MSzcxcVpQIhRG8Q1jLvEqRmCZqS3dsfXEDR/AhOF4d+jHg1qvDCpYaVRZjENPQyrVxAkQqxPgQ==", 1954 | "optional": true 1955 | }, 1956 | "websocket-driver": { 1957 | "version": "0.7.4", 1958 | "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", 1959 | "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", 1960 | "requires": { 1961 | "http-parser-js": ">=0.5.1", 1962 | "safe-buffer": ">=5.1.0", 1963 | "websocket-extensions": ">=0.1.1" 1964 | } 1965 | }, 1966 | "websocket-extensions": { 1967 | "version": "0.1.4", 1968 | "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", 1969 | "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" 1970 | }, 1971 | "wrappy": { 1972 | "version": "1.0.2", 1973 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1974 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1975 | }, 1976 | "write-file-atomic": { 1977 | "version": "3.0.3", 1978 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", 1979 | "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", 1980 | "optional": true, 1981 | "requires": { 1982 | "imurmurhash": "^0.1.4", 1983 | "is-typedarray": "^1.0.0", 1984 | "signal-exit": "^3.0.2", 1985 | "typedarray-to-buffer": "^3.1.5" 1986 | } 1987 | }, 1988 | "xdg-basedir": { 1989 | "version": "4.0.0", 1990 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", 1991 | "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", 1992 | "optional": true 1993 | }, 1994 | "xtend": { 1995 | "version": "4.0.2", 1996 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 1997 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", 1998 | "optional": true 1999 | }, 2000 | "yallist": { 2001 | "version": "4.0.0", 2002 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2003 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2004 | "optional": true 2005 | } 2006 | } 2007 | } 2008 | -------------------------------------------------------------------------------- /functions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "functions", 3 | "scripts": { 4 | "lint": "tslint --project tsconfig.json", 5 | "build": "tsc", 6 | "serve": "npm run build && firebase serve --only functions", 7 | "shell": "npm run build && firebase functions:shell", 8 | "start": "npm run shell", 9 | "deploy": "firebase deploy --only functions", 10 | "logs": "firebase functions:log" 11 | }, 12 | "engines": { 13 | "node": "10" 14 | }, 15 | "main": "lib/index.js", 16 | "dependencies": { 17 | "firebase-admin": "^9.0.0", 18 | "firebase-functions": "^3.8.0" 19 | }, 20 | "devDependencies": { 21 | "tslint": "^6.1.2", 22 | "typescript": "^3.9.7" 23 | }, 24 | "private": true 25 | } 26 | -------------------------------------------------------------------------------- /functions/src/fn/analyticsEventOnLogFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | event: functions.analytics.AnalyticsEvent, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(event) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/authUserOnCreateFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | event: functions.auth.UserRecord, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(event) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/authUserOnDeleteFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | event: functions.auth.UserRecord, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(event) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/callableFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | data: any, 13 | context: functions.https.CallableContext 14 | ) => { 15 | console.log(data) 16 | return { your: "data" } 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/crashlyticsIssueOnNewFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | issue: functions.crashlytics.Issue, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(issue) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/crashlyticsIssueOnRegressedFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | issue: functions.crashlytics.Issue, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(issue) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/crashlyticsIssueOnVelocityAlertFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | issue: functions.crashlytics.Issue, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(issue) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/databaseOnCreateFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | snapshot: functions.database.DataSnapshot, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(snapshot.val()) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/databaseOnDeleteFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | snapshot: functions.database.DataSnapshot, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(snapshot.val()) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/databaseOnUpdateFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | change: functions.Change, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(change.before.val()) 16 | console.log(change.after.val()) 17 | return null 18 | } 19 | -------------------------------------------------------------------------------- /functions/src/fn/databaseOnWriteFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | change: functions.Change, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(change.before.val()) 16 | console.log(change.after.val()) 17 | return null 18 | } 19 | -------------------------------------------------------------------------------- /functions/src/fn/firestoreOnCreateFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | snapshot: functions.firestore.DocumentSnapshot, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(snapshot.data()) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/firestoreOnDeleteFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | snapshot: functions.firestore.DocumentSnapshot, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(snapshot.data()) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/firestoreOnUpdateFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | change: functions.Change, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(change.before.data()) 16 | console.log(change.after.data()) 17 | return null 18 | } 19 | -------------------------------------------------------------------------------- /functions/src/fn/firestoreOnWriteFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | change: functions.Change, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(change.before.data()) 16 | console.log(change.after.data()) 17 | return null 18 | } 19 | -------------------------------------------------------------------------------- /functions/src/fn/httpFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | // The cost of importing and initializing the Admin SDK here will not affect the 12 | // other Cloud Functions defined in index.ts since this file is imported 13 | // asynchronously at the time of the function call. 14 | import * as admin from 'firebase-admin' 15 | admin.initializeApp() 16 | 17 | export default async ( 18 | request: functions.https.Request, 19 | response: functions.Response 20 | ): Promise => { 21 | const snapshot = await getDocument() 22 | const data = snapshot.data() 23 | response.send(data) 24 | } 25 | 26 | async function getDocument(): Promise { 27 | return admin.firestore().collection('users').doc('uid').get() 28 | } 29 | -------------------------------------------------------------------------------- /functions/src/fn/pubsubScheduledFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | context: functions.EventContext 13 | ) => { 14 | console.log(context) 15 | return null 16 | } 17 | -------------------------------------------------------------------------------- /functions/src/fn/pubsubTopicOnPublishFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | message: functions.pubsub.Message, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(message) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/remoteConfigFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | version: functions.remoteConfig.TemplateVersion, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(version) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/storageObjectOnArchiveFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | object: functions.storage.ObjectMetadata, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(object) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/storageObjectOnDeleteFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | object: functions.storage.ObjectMetadata, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(object) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/storageObjectOnFinalizeFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | object: functions.storage.ObjectMetadata, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(object) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/storageObjectOnMetadataUpdateFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | object: functions.storage.ObjectMetadata, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(object) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/fn/testLabMatrixOnCompleteFn.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | import * as functions from 'firebase-functions' 10 | 11 | export default async ( 12 | object: functions.testLab.TestMatrix, 13 | context: functions.EventContext 14 | ) => { 15 | console.log(object) 16 | return null 17 | } 18 | -------------------------------------------------------------------------------- /functions/src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020, Doug Stevenson 3 | * 4 | * Copying and distribution of this file, with or without modification, are 5 | * permitted in any medium without royalty, provided the copyright notice and 6 | * this notice are preserved. This file is offered as-is, without any warranty. 7 | */ 8 | 9 | // This should be the only import in index.ts, other than what you need to build 10 | // these functions. 11 | import * as functions from 'firebase-functions' 12 | 13 | // HTTP trigger 14 | // https://firebase.google.com/docs/functions/http-events 15 | 16 | export const httpFn = 17 | functions.https.onRequest(async (request, response) => { 18 | await (await import('./fn/httpFn')).default(request, response) 19 | }) 20 | 21 | // Callable trigger 22 | // https://firebase.google.com/docs/functions/callable 23 | 24 | export const callableFn = 25 | functions.https.onCall(async (data, context) => { 26 | return (await import('./fn/callableFn')).default(data, context) 27 | }) 28 | 29 | // Firestore triggers 30 | // https://firebase.google.com/docs/functions/firestore-events 31 | 32 | export const firestoreOnCreateFn = 33 | functions.firestore.document('users/{id}').onCreate(async (snapshot, context) => { 34 | await (await import('./fn/firestoreOnCreateFn')).default(snapshot, context) 35 | }) 36 | 37 | export const firestoreOnDeleteFn = 38 | functions.firestore.document('users/{id}').onDelete(async (snapshot, context) => { 39 | await (await import('./fn/firestoreOnDeleteFn')).default(snapshot, context) 40 | }) 41 | 42 | export const firestoreOnUpdateFn = 43 | functions.firestore.document('users/{id}').onUpdate(async (change, context) => { 44 | await (await import('./fn/firestoreOnUpdateFn')).default(change, context) 45 | }) 46 | 47 | export const firestoreOnWriteFn = 48 | functions.firestore.document('users/{id}').onWrite(async (change, context) => { 49 | await (await import('./fn/firestoreOnWriteFn')).default(change, context) 50 | }) 51 | 52 | // Realtime Database triggers 53 | // https://firebase.google.com/docs/functions/database-events 54 | 55 | export const databaseOnCreateFn = 56 | functions.database.ref('users/{id}').onCreate(async (snapshot, context) => { 57 | await (await import('./fn/databaseOnCreateFn')).default(snapshot, context) 58 | }) 59 | 60 | export const databaseOnDeleteFn = 61 | functions.database.ref('users/{id}').onDelete(async (snapshot, context) => { 62 | await (await import('./fn/databaseOnDeleteFn')).default(snapshot, context) 63 | }) 64 | 65 | export const databaseOnUpdateFn = 66 | functions.database.ref('users/{id}').onUpdate(async (change, context) => { 67 | await (await import('./fn/databaseOnUpdateFn')).default(change, context) 68 | }) 69 | 70 | export const databaseOnWriteFn = 71 | functions.database.ref('users/{id}').onWrite(async (change, context) => { 72 | await (await import('./fn/databaseOnWriteFn')).default(change, context) 73 | }) 74 | 75 | // Remote Config trigger 76 | // https://firebase.google.com/docs/functions/rc-events 77 | 78 | export const remoteConfigFn = 79 | functions.remoteConfig.onUpdate(async (version, context) => { 80 | await (await import('./fn/remoteConfigFn')).default(version, context) 81 | }) 82 | 83 | // Authentication trigger 84 | // https://firebase.google.com/docs/functions/auth-events 85 | 86 | export const authUserOnCreateFn = 87 | functions.auth.user().onCreate(async (user, context) => { 88 | await (await import('./fn/authUserOnCreateFn')).default(user, context) 89 | }) 90 | 91 | export const authUserOnDeleteFn = 92 | functions.auth.user().onDelete(async (user, context) => { 93 | await (await import('./fn/authUserOnDeleteFn')).default(user, context) 94 | }) 95 | 96 | // Analytics trigger 97 | // https://firebase.google.com/docs/functions/analytics-events 98 | 99 | export const analyticsEventOnLogFn = 100 | functions.analytics.event('in_app_purchase').onLog(async (event, context) => { 101 | await (await import('./fn/analyticsEventOnLogFn')).default(event, context) 102 | }) 103 | 104 | // Crashlytics triggers 105 | // https://firebase.google.com/docs/functions/crashlytics-events 106 | 107 | export const crashlyticsIssueOnNewFn = 108 | functions.crashlytics.issue().onNew(async (issue, context) => { 109 | await (await import('./fn/crashlyticsIssueOnNewFn')).default(issue, context) 110 | }) 111 | 112 | export const crashlyticsIssueOnRegressedFn = 113 | functions.crashlytics.issue().onRegressed(async (issue, context) => { 114 | await (await import('./fn/crashlyticsIssueOnRegressedFn')).default(issue, context) 115 | }) 116 | 117 | export const crashlyticsIssueOnVelocityAlertFn = 118 | functions.crashlytics.issue().onVelocityAlert(async (issue, context) => { 119 | await (await import('./fn/crashlyticsIssueOnVelocityAlertFn')).default(issue, context) 120 | }) 121 | 122 | // Cloud Storage triggers 123 | // https://firebase.google.com/docs/functions/gcp-storage-events 124 | 125 | export const storageObjectOnFinalizeFn = 126 | functions.storage.object().onFinalize(async (object, context) => { 127 | await (await import('./fn/storageObjectOnFinalizeFn')).default(object, context) 128 | }) 129 | 130 | export const storageObjectOnDeleteFn = 131 | functions.storage.object().onDelete(async (object, context) => { 132 | await (await import('./fn/storageObjectOnDeleteFn')).default(object, context) 133 | }) 134 | 135 | export const storageObjectOnArchiveFn = 136 | functions.storage.object().onArchive(async (object, context) => { 137 | await (await import('./fn/storageObjectOnArchiveFn')).default(object, context) 138 | }) 139 | 140 | export const storageObjectOnMetadataUpdateFn = 141 | functions.storage.object().onMetadataUpdate(async (object, context) => { 142 | await (await import('./fn/storageObjectOnMetadataUpdateFn')).default(object, context) 143 | }) 144 | 145 | // Pub/sub triggers 146 | // https://firebase.google.com/docs/functions/pubsub-events 147 | 148 | export const pubsubTopicFn = 149 | functions.pubsub.topic('topic').onPublish(async (message, context) => { 150 | await (await import('./fn/pubsubTopicOnPublishFn')).default(message, context) 151 | }) 152 | 153 | // Scheduled pub/sub trigger 154 | // https://firebase.google.com/docs/functions/schedule-functions 155 | 156 | export const pubsubScheduledFn = 157 | functions.pubsub.schedule('every 5 minutes').onRun(async (context) => { 158 | await (await import('./fn/pubsubScheduledFn')).default(context) 159 | }) 160 | 161 | // Test Lab triggers 162 | // https://firebase.google.com/docs/functions/test-lab-events 163 | 164 | export const testLabMatrixOnCompleteFn = 165 | functions.testLab.testMatrix().onComplete(async (testMatrix, context) => { 166 | await (await import('./fn/testLabMatrixOnCompleteFn')).default(testMatrix, context) 167 | }) 168 | -------------------------------------------------------------------------------- /functions/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "noImplicitReturns": true, 5 | "noUnusedLocals": true, 6 | "outDir": "lib", 7 | "sourceMap": true, 8 | "strict": true, 9 | "target": "es2017" 10 | }, 11 | "compileOnSave": true, 12 | "include": [ 13 | "src" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /functions/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | // -- Strict errors -- 4 | // These lint rules are likely always a good idea. 5 | 6 | // Force function overloads to be declared together. This ensures readers understand APIs. 7 | "adjacent-overload-signatures": true, 8 | 9 | // Do not allow the subtle/obscure comma operator. 10 | "ban-comma-operator": true, 11 | 12 | // Do not allow internal modules or namespaces . These are deprecated in favor of ES6 modules. 13 | "no-namespace": true, 14 | 15 | // Do not allow parameters to be reassigned. To avoid bugs, developers should instead assign new values to new vars. 16 | "no-parameter-reassignment": true, 17 | 18 | // Force the use of ES6-style imports instead of /// imports. 19 | "no-reference": true, 20 | 21 | // Do not allow type assertions that do nothing. This is a big warning that the developer may not understand the 22 | // code currently being edited (they may be incorrectly handling a different type case that does not exist). 23 | "no-unnecessary-type-assertion": true, 24 | 25 | // Disallow nonsensical label usage. 26 | "label-position": true, 27 | 28 | // Disallows the (often typo) syntax if (var1 = var2). Replace with if (var2) { var1 = var2 }. 29 | "no-conditional-assignment": true, 30 | 31 | // Disallows constructors for primitive types (e.g. new Number('123'), though Number('123') is still allowed). 32 | "no-construct": true, 33 | 34 | // Do not allow super() to be called twice in a constructor. 35 | "no-duplicate-super": true, 36 | 37 | // Do not allow the same case to appear more than once in a switch block. 38 | "no-duplicate-switch-case": true, 39 | 40 | // Do not allow a variable to be declared more than once in the same block. Consider function parameters in this 41 | // rule. 42 | "no-duplicate-variable": [true, "check-parameters"], 43 | 44 | // Disallows a variable definition in an inner scope from shadowing a variable in an outer scope. Developers should 45 | // instead use a separate variable name. 46 | "no-shadowed-variable": true, 47 | 48 | // Empty blocks are almost never needed. Allow the one general exception: empty catch blocks. 49 | "no-empty": [true, "allow-empty-catch"], 50 | 51 | // Functions must either be handled directly (e.g. with a catch() handler) or returned to another function. 52 | // This is a major source of errors in Cloud Functions and the team strongly recommends leaving this rule on. 53 | "no-floating-promises": true, 54 | 55 | // Do not allow any imports for modules that are not in package.json. These will almost certainly fail when 56 | // deployed. 57 | "no-implicit-dependencies": true, 58 | 59 | // The 'this' keyword can only be used inside of classes. 60 | "no-invalid-this": true, 61 | 62 | // Do not allow strings to be thrown because they will not include stack traces. Throw Errors instead. 63 | "no-string-throw": true, 64 | 65 | // Disallow control flow statements, such as return, continue, break, and throw in finally blocks. 66 | "no-unsafe-finally": true, 67 | 68 | // Expressions must always return a value. Avoids common errors like const myValue = functionReturningVoid(); 69 | "no-void-expression": [true, "ignore-arrow-function-shorthand"], 70 | 71 | // Disallow duplicate imports in the same file. 72 | "no-duplicate-imports": true, 73 | 74 | 75 | // -- Strong Warnings -- 76 | // These rules should almost never be needed, but may be included due to legacy code. 77 | // They are left as a warning to avoid frustration with blocked deploys when the developer 78 | // understand the warning and wants to deploy anyway. 79 | 80 | // Warn when an empty interface is defined. These are generally not useful. 81 | "no-empty-interface": {"severity": "warning"}, 82 | 83 | // Warn when an import will have side effects. 84 | "no-import-side-effect": {"severity": "warning"}, 85 | 86 | // Warn when variables are defined with var. Var has subtle meaning that can lead to bugs. Strongly prefer const for 87 | // most values and let for values that will change. 88 | "no-var-keyword": {"severity": "warning"}, 89 | 90 | // Prefer === and !== over == and !=. The latter operators support overloads that are often accidental. 91 | "triple-equals": {"severity": "warning"}, 92 | 93 | // Warn when using deprecated APIs. 94 | "deprecation": {"severity": "warning"}, 95 | 96 | // -- Light Warnings -- 97 | // These rules are intended to help developers use better style. Simpler code has fewer bugs. These would be "info" 98 | // if TSLint supported such a level. 99 | 100 | // prefer for( ... of ... ) to an index loop when the index is only used to fetch an object from an array. 101 | // (Even better: check out utils like .map if transforming an array!) 102 | "prefer-for-of": {"severity": "warning"}, 103 | 104 | // Warns if function overloads could be unified into a single function with optional or rest parameters. 105 | "unified-signatures": {"severity": "warning"}, 106 | 107 | // Prefer const for values that will not change. This better documents code. 108 | "prefer-const": {"severity": "warning"}, 109 | 110 | // Multi-line object literals and function calls should have a trailing comma. This helps avoid merge conflicts. 111 | "trailing-comma": {"severity": "warning"} 112 | }, 113 | 114 | "defaultSeverity": "error" 115 | } 116 | --------------------------------------------------------------------------------