├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── docker-run.sh ├── package-lock.json ├── package.json ├── sample.config.yaml ├── src ├── auth │ ├── auth-provider.ts │ └── teams-auth-provider.ts ├── config.ts ├── db │ └── schema │ │ └── v1.ts ├── index.ts ├── store.ts ├── teams-client.ts └── teams.ts ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- 1 | config.yaml 2 | node_modules 3 | build 4 | *.db 5 | bridge.log.* 6 | *-audit.json 7 | msteams-registration.yaml 8 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:15.0-alpine3.12 AS builder 2 | 3 | WORKDIR /opt/mx-puppet-teams 4 | 5 | RUN apk --no-cache add git python2 make g++ pkgconfig \ 6 | build-base \ 7 | cairo-dev \ 8 | jpeg-dev \ 9 | pango-dev \ 10 | musl-dev \ 11 | giflib-dev \ 12 | pixman-dev \ 13 | pangomm-dev \ 14 | libjpeg-turbo-dev \ 15 | freetype-dev 16 | 17 | # run build process as user in case of npm pre hooks 18 | # pre hooks are not executed while running as root 19 | RUN chown -R node:node /opt/mx-puppet-teams 20 | USER node 21 | 22 | COPY --chown=node:node package.json package-lock.json ./ 23 | RUN npm install 24 | 25 | COPY --chown=node:node tsconfig.json ./ 26 | COPY --chown=node:node src/ ./src/ 27 | RUN npm run build 28 | 29 | 30 | FROM node:15.0-alpine3.12 31 | 32 | VOLUME /data 33 | 34 | ENV CONFIG_PATH=/data/config.yaml \ 35 | REGISTRATION_PATH=/data/msteams-registration.yaml 36 | 37 | RUN apk add --no-cache su-exec \ 38 | cairo \ 39 | jpeg \ 40 | pango \ 41 | sl \ 42 | giflib \ 43 | pixman \ 44 | pangomm \ 45 | libjpeg-turbo \ 46 | freetype 47 | 48 | WORKDIR /opt/mx-puppet-teams 49 | COPY docker-run.sh ./ 50 | COPY --from=builder /opt/mx-puppet-teams/node_modules/ ./node_modules/ 51 | COPY --from=builder /opt/mx-puppet-teams/build/ ./build/ 52 | 53 | # change workdir to /data so relative paths in the config.yaml 54 | # point to the persisten volume 55 | WORKDIR /data 56 | ENTRYPOINT ["/opt/mx-puppet-teams/docker-run.sh"] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | > This project is no longer being updated. The initial goal was to provide an easy, reliable way for normal users to bridge MS Teams to Matrix using User Permissions, without requiring changes to the AD Tennant and thus approval from the Domain Owner. However due to the limitation in Microsofts Graph API, and the default settings for Active Directory domains, this does not seem like an achievable goal. 2 | > 3 | > Feel free to fork and use the project, but a better route to achieving this goal (if you ignore the Teams ToS) would be to emulate the Teams Client and use the internal Teams API which will give access to pretty much do what is required. [fossteams/teams-api](https://github.com/fossteams/teams-api) may be worth looking into in this case. 4 | 5 | # mx-puppet-teams 6 | This is a early version of a Microsoft Teams puppeting bridge for matrix. It is based on [mx-puppet-bridge](https://github.com/Sorunome/mx-puppet-bridge) and uses the Microsoft Graph API (Beta) 7 | 8 | The bridge does not generally require teams administrative rights, and is initially aimed at supporting chats, rather than team conversations. 9 | 10 | ## Features 11 | 12 | Currently supported and planned features are: 13 | 14 | - [X] Double Puppeting 15 | - [X] One to One Chats 16 | - [ ] Group Chats 17 | - [ ] Meeting Chats 18 | - [X] Message Edits (Teams -> Matrix only) 19 | - [X] Message Deletes (Teams -> Matrix only) 20 | - [ ] Reactions 21 | - [X] Images (Matrix -> Teams) 22 | - [ ] Images (Teams -> Matrix) 23 | - [X] Attachments (Matrix -> Teams) 24 | - [ ] Attachments (Teams -> Matrix) 25 | - [ ] Teams Chats (maybe later....) 26 | 27 | ## Limitations 28 | As well as the open bugs, there are some limitations in the Microsoft Graph API 29 | 30 | - Chats can only be subscribed to for notifications once the chat has been started. As a result, the bridge needs to poll for new chats. This means that while messages in existing chats will be delivered almost instantly, new chats will only appear when polled for (see config option `teams:newChatPollingPeriod`) 31 | - Attachments cannot currently be sent to MS Teams via Graph API. 32 | - Events (e.g. read receipts, presence, typing notificaions, etc) are not currently available via the Graph API 33 | - Graph API does not allow updating of existing message text (Prevents sending message edits/deletes from Matrix to Teams) 34 | 35 | ## Requirements 36 | The Bridge will require to be accessible to allow Microsoft Graph API to call webhooks via http(s), and for user oauth authenticaion. It is strongly recommended that a reverse proxy is used to ensure the endpoints are exposed via https. 37 | 38 | The `oauth:serverBaseUri` setting in config.yaml should be set to the base URI (e.g. `https://my.domain.com/` or `https://me.home.net:2700/`, etc) 39 | 40 | ## Getting Started (Docker) 41 | 42 | Docker image is avaialable from https://hub.docker.com/r/neilsb/mx-puppet-teams 43 | 44 | ## Install Instructions (from Source) 45 | 46 | * Set up an Azure Application for authentication (See below for detail) 47 | * Clone and install: 48 | ``` 49 | git clone https://github.com/neilsb/mx-puppet-teams.git 50 | cd mx-puppet-teams 51 | npm install 52 | ``` 53 | * Edit the configuration file and generate the registration file: 54 | ``` 55 | cp sample.config.yaml config.yaml 56 | ``` 57 | Edit config.yaml and fill out info about your homeserver and Azure Application 58 | ``` 59 | npm run start -- -r # generate registration file 60 | ``` 61 | * Copy the registration file to your synapse config directory. 62 | * Add the registration file to the list under `app_service_config_files:` in your synapse config. 63 | * Restart synapse. 64 | * Start the bridge: 65 | ``` 66 | npm run start 67 | ``` 68 | * Start a direct chat with the bot user (`@_msteamspuppet_bot:domain.tld` unless you changed the config). 69 | (Give it some time after the invite, it'll join after a minute maybe.) 70 | * Authenticate to your Azure Application, then tell the bot to link you account: 71 | ``` 72 | link MYTOKEN (see below for details) 73 | ``` 74 | * Tell the bot user to list the available users: (also see `help`) 75 | ``` 76 | listusers 77 | ``` 78 | Clicking users in the list will result in you receiving an invite to the bridged chat. You will automatically be invited to any chat (new or existing) which is updated via Microsoft Teams 79 | 80 | ## Setting up an Azure Application 81 | Note: _The Azure account used to set up the application does **not** have to be the tenant for the MS Teams. You can create a new Azure account, or use a personal account, to set up the application. There is no cost to setting up the application._ 82 | 83 | The following steps should be followed to create the Azure application for authentication and access to the Graph API 84 | 85 | 1. Log into the Azure Portal (https://portal.azure.com/) 86 | 2. Select the **App Registrations** resource 87 | 3. Select **New registration** 88 | 4. Fill out initial details 89 | * Give the application a name (e.g. ms-teams-bridge). 90 | * For supported account types select "Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)" 91 | * For Redirect URL, enter the URL to the OAuth call url (Combine `serverBaseUri` and `redirectPath` from the `oauth` section in config.yaml). e.g. `https://my.domain.com/msteams/oauth` 92 | * Register the app 93 | 5. On the application detail screen take a note of the following value which requires to be entered into the config.yaml file 94 | * `Application (client) ID` - Set the `oauth:clientId` to this value 95 | 6. Click on the **Add a certifcate or secret** and add a new client secret. Set the `oauth:clientSecret` in config.yaml to the secret value 96 | 7. Click on API permissions and add the following permissions from the Microsoft Graph delegated permission section 97 | * `Chat.ReadWrite` 98 | * `ChatMessage.Read` 99 | * `ChatMessage.Send` 100 | * `User.Read` 101 | * `offline_access` 102 | 103 | ## Linking your Microsoft Work/School account 104 | With the bridge running, visit `serverBaseUri`/login (e.g. `https://my.domain.com/login`). This will take you to microsoft login page. After logging in a 6 character authorisation code will be displayed. This code should be used to link your matrix account to your Microsoft work or school account. 105 | 106 | Microsoft require you to revalidate the application every (approx) 90 days. To do this visit the login link above to retrieve a new 6 digit code, then talk to the bot and use the `relink {puppetId} {code}` command. e.g. `relink 1 abcdef` 107 | 108 | _Note: The bridge does not currently work with the personal version of teams._ 109 | -------------------------------------------------------------------------------- /docker-run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | if [ ! -f "$CONFIG_PATH" ]; then 4 | echo 'No config found' 5 | exit 1 6 | fi 7 | 8 | args="$@" 9 | 10 | if [ ! -f "$REGISTRATION_PATH" ]; then 11 | echo 'No registration found, generating now' 12 | args="-r" 13 | fi 14 | 15 | 16 | # if no --uid is supplied, prepare files to drop privileges 17 | if [ "$(id -u)" = 0 ]; then 18 | chown node:node /data 19 | 20 | if find *.db > /dev/null 2>&1; then 21 | # make sure sqlite files are writeable 22 | chown node:node *.db 23 | fi 24 | if find *.log.* > /dev/null 2>&1; then 25 | # make sure log files are writeable 26 | chown node:node *.log.* 27 | fi 28 | 29 | su_exec='su-exec node:node' 30 | else 31 | su_exec='' 32 | fi 33 | 34 | # $su_exec is used in case we have to drop the privileges 35 | exec $su_exec /usr/local/bin/node '/opt/mx-puppet-teams/build/index.js' \ 36 | -c "$CONFIG_PATH" \ 37 | -f "$REGISTRATION_PATH" \ 38 | $args 39 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mx-puppet-msteams-chat", 3 | "version": "0.0.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.14.5", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.14.5.tgz", 10 | "integrity": "sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==", 11 | "requires": { 12 | "@babel/highlight": "^7.14.5" 13 | } 14 | }, 15 | "@babel/helper-validator-identifier": { 16 | "version": "7.14.9", 17 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz", 18 | "integrity": "sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g==" 19 | }, 20 | "@babel/highlight": { 21 | "version": "7.14.5", 22 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.5.tgz", 23 | "integrity": "sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg==", 24 | "requires": { 25 | "@babel/helper-validator-identifier": "^7.14.5", 26 | "chalk": "^2.0.0", 27 | "js-tokens": "^4.0.0" 28 | } 29 | }, 30 | "@babel/runtime": { 31 | "version": "7.15.4", 32 | "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.4.tgz", 33 | "integrity": "sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw==", 34 | "requires": { 35 | "regenerator-runtime": "^0.13.4" 36 | } 37 | }, 38 | "@dabh/diagnostics": { 39 | "version": "2.0.2", 40 | "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.2.tgz", 41 | "integrity": "sha512-+A1YivoVDNNVCdfozHSR8v/jyuuLTMXwjWuxPFlFlUapXoGc+Gj9mDlTDDfrwl7rXCl2tNZ0kE8sIBO6YOn96Q==", 42 | "requires": { 43 | "colorspace": "1.1.x", 44 | "enabled": "2.0.x", 45 | "kuler": "^2.0.0" 46 | } 47 | }, 48 | "@mapbox/node-pre-gyp": { 49 | "version": "1.0.5", 50 | "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.5.tgz", 51 | "integrity": "sha512-4srsKPXWlIxp5Vbqz5uLfBN+du2fJChBoYn/f2h991WLdk7jUvcSk/McVLSv/X+xQIPI8eGD5GjrnygdyHnhPA==", 52 | "requires": { 53 | "detect-libc": "^1.0.3", 54 | "https-proxy-agent": "^5.0.0", 55 | "make-dir": "^3.1.0", 56 | "node-fetch": "^2.6.1", 57 | "nopt": "^5.0.0", 58 | "npmlog": "^4.1.2", 59 | "rimraf": "^3.0.2", 60 | "semver": "^7.3.4", 61 | "tar": "^6.1.0" 62 | }, 63 | "dependencies": { 64 | "chownr": { 65 | "version": "2.0.0", 66 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", 67 | "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" 68 | }, 69 | "fs-minipass": { 70 | "version": "2.1.0", 71 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", 72 | "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", 73 | "requires": { 74 | "minipass": "^3.0.0" 75 | } 76 | }, 77 | "minipass": { 78 | "version": "3.1.3", 79 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.3.tgz", 80 | "integrity": "sha512-Mgd2GdMVzY+x3IJ+oHnVM+KG3lA5c8tnabyJKmHSaG2kAGpudxuOf8ToDkhumF7UzME7DecbQE9uOZhNm7PuJg==", 81 | "requires": { 82 | "yallist": "^4.0.0" 83 | } 84 | }, 85 | "minizlib": { 86 | "version": "2.1.2", 87 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", 88 | "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", 89 | "requires": { 90 | "minipass": "^3.0.0", 91 | "yallist": "^4.0.0" 92 | } 93 | }, 94 | "semver": { 95 | "version": "7.3.5", 96 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", 97 | "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", 98 | "requires": { 99 | "lru-cache": "^6.0.0" 100 | } 101 | }, 102 | "tar": { 103 | "version": "6.1.11", 104 | "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", 105 | "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", 106 | "requires": { 107 | "chownr": "^2.0.0", 108 | "fs-minipass": "^2.0.0", 109 | "minipass": "^3.0.0", 110 | "minizlib": "^2.1.1", 111 | "mkdirp": "^1.0.3", 112 | "yallist": "^4.0.0" 113 | } 114 | } 115 | } 116 | }, 117 | "@microsoft/microsoft-graph-client": { 118 | "version": "2.2.1", 119 | "resolved": "https://registry.npmjs.org/@microsoft/microsoft-graph-client/-/microsoft-graph-client-2.2.1.tgz", 120 | "integrity": "sha512-fbDN3UJ+jtSP9llAejqmslMcv498YuIrS3OS/Luivb8OSjdUESZKdP0gcUunnuNIayePVT0/bGYSJTzAIptJQQ==", 121 | "requires": { 122 | "@babel/runtime": "^7.4.4", 123 | "msal": "^1.4.4", 124 | "tslib": "^1.9.3" 125 | } 126 | }, 127 | "@sindresorhus/is": { 128 | "version": "4.0.1", 129 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.0.1.tgz", 130 | "integrity": "sha512-Qm9hBEBu18wt1PO2flE7LPb30BHMQt1eQgbV76YntdNk73XZGpn3izvGTYxbGgzXKgbCjiia0uxTd3aTNQrY/g==" 131 | }, 132 | "@sorunome/matrix-bot-sdk": { 133 | "version": "0.5.13", 134 | "resolved": "https://registry.npmjs.org/@sorunome/matrix-bot-sdk/-/matrix-bot-sdk-0.5.13.tgz", 135 | "integrity": "sha512-WEeuei8/QS9FO76n71nT17TBZ3tRW2POjOpN7YIvsy5tA0WD0tMUKWZDcTo1A+xKOvzgjRTy9v88rKSLIr4wHA==", 136 | "requires": { 137 | "@types/express": "^4.17.7", 138 | "chalk": "^4.1.0", 139 | "express": "^4.17.1", 140 | "glob-to-regexp": "^0.4.1", 141 | "got": "^11.6.0", 142 | "hash.js": "^1.1.7", 143 | "html-to-text": "^6.0.0", 144 | "htmlencode": "^0.0.4", 145 | "lowdb": "^1.0.0", 146 | "lru-cache": "^6.0.0", 147 | "mkdirp": "^1.0.4", 148 | "morgan": "^1.10.0", 149 | "sanitize-html": "^2.4.0" 150 | }, 151 | "dependencies": { 152 | "ansi-styles": { 153 | "version": "4.3.0", 154 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 155 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 156 | "requires": { 157 | "color-convert": "^2.0.1" 158 | } 159 | }, 160 | "chalk": { 161 | "version": "4.1.2", 162 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 163 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 164 | "requires": { 165 | "ansi-styles": "^4.1.0", 166 | "supports-color": "^7.1.0" 167 | } 168 | }, 169 | "color-convert": { 170 | "version": "2.0.1", 171 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 172 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 173 | "requires": { 174 | "color-name": "~1.1.4" 175 | } 176 | }, 177 | "color-name": { 178 | "version": "1.1.4", 179 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 180 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 181 | }, 182 | "has-flag": { 183 | "version": "4.0.0", 184 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 185 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" 186 | }, 187 | "supports-color": { 188 | "version": "7.2.0", 189 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 190 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 191 | "requires": { 192 | "has-flag": "^4.0.0" 193 | } 194 | } 195 | } 196 | }, 197 | "@szmarczak/http-timer": { 198 | "version": "4.0.6", 199 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", 200 | "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", 201 | "requires": { 202 | "defer-to-connect": "^2.0.0" 203 | } 204 | }, 205 | "@types/body-parser": { 206 | "version": "1.19.1", 207 | "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.1.tgz", 208 | "integrity": "sha512-a6bTJ21vFOGIkwM0kzh9Yr89ziVxq4vYH2fQ6N8AeipEzai/cFK6aGMArIkUeIdRIgpwQa+2bXiLuUJCpSf2Cg==", 209 | "requires": { 210 | "@types/connect": "*", 211 | "@types/node": "*" 212 | }, 213 | "dependencies": { 214 | "@types/node": { 215 | "version": "16.9.0", 216 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.0.tgz", 217 | "integrity": "sha512-nmP+VR4oT0pJUPFbKE4SXj3Yb4Q/kz3M9dSAO1GGMebRKWHQxLfDNmU/yh3xxCJha3N60nQ/JwXWwOE/ZSEVag==" 218 | } 219 | } 220 | }, 221 | "@types/cacheable-request": { 222 | "version": "6.0.2", 223 | "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.2.tgz", 224 | "integrity": "sha512-B3xVo+dlKM6nnKTcmm5ZtY/OL8bOAOd2Olee9M1zft65ox50OzjEHW91sDiU9j6cvW8Ejg1/Qkf4xd2kugApUA==", 225 | "requires": { 226 | "@types/http-cache-semantics": "*", 227 | "@types/keyv": "*", 228 | "@types/node": "*", 229 | "@types/responselike": "*" 230 | }, 231 | "dependencies": { 232 | "@types/node": { 233 | "version": "16.9.0", 234 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.0.tgz", 235 | "integrity": "sha512-nmP+VR4oT0pJUPFbKE4SXj3Yb4Q/kz3M9dSAO1GGMebRKWHQxLfDNmU/yh3xxCJha3N60nQ/JwXWwOE/ZSEVag==" 236 | } 237 | } 238 | }, 239 | "@types/connect": { 240 | "version": "3.4.35", 241 | "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", 242 | "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", 243 | "requires": { 244 | "@types/node": "*" 245 | }, 246 | "dependencies": { 247 | "@types/node": { 248 | "version": "16.9.0", 249 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.0.tgz", 250 | "integrity": "sha512-nmP+VR4oT0pJUPFbKE4SXj3Yb4Q/kz3M9dSAO1GGMebRKWHQxLfDNmU/yh3xxCJha3N60nQ/JwXWwOE/ZSEVag==" 251 | } 252 | } 253 | }, 254 | "@types/express": { 255 | "version": "4.17.13", 256 | "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.13.tgz", 257 | "integrity": "sha512-6bSZTPaTIACxn48l50SR+axgrqm6qXFIxrdAKaG6PaJk3+zuUr35hBlgT7vOmJcum+OEaIBLtHV/qloEAFITeA==", 258 | "requires": { 259 | "@types/body-parser": "*", 260 | "@types/express-serve-static-core": "^4.17.18", 261 | "@types/qs": "*", 262 | "@types/serve-static": "*" 263 | } 264 | }, 265 | "@types/express-serve-static-core": { 266 | "version": "4.17.24", 267 | "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.24.tgz", 268 | "integrity": "sha512-3UJuW+Qxhzwjq3xhwXm2onQcFHn76frIYVbTu+kn24LFxI+dEhdfISDFovPB8VpEgW8oQCTpRuCe+0zJxB7NEA==", 269 | "requires": { 270 | "@types/node": "*", 271 | "@types/qs": "*", 272 | "@types/range-parser": "*" 273 | }, 274 | "dependencies": { 275 | "@types/node": { 276 | "version": "16.9.0", 277 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.0.tgz", 278 | "integrity": "sha512-nmP+VR4oT0pJUPFbKE4SXj3Yb4Q/kz3M9dSAO1GGMebRKWHQxLfDNmU/yh3xxCJha3N60nQ/JwXWwOE/ZSEVag==" 279 | } 280 | } 281 | }, 282 | "@types/http-cache-semantics": { 283 | "version": "4.0.1", 284 | "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz", 285 | "integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ==" 286 | }, 287 | "@types/keyv": { 288 | "version": "3.1.3", 289 | "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.3.tgz", 290 | "integrity": "sha512-FXCJgyyN3ivVgRoml4h94G/p3kY+u/B86La+QptcqJaWtBWtmc6TtkNfS40n9bIvyLteHh7zXOtgbobORKPbDg==", 291 | "requires": { 292 | "@types/node": "*" 293 | }, 294 | "dependencies": { 295 | "@types/node": { 296 | "version": "16.9.0", 297 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.0.tgz", 298 | "integrity": "sha512-nmP+VR4oT0pJUPFbKE4SXj3Yb4Q/kz3M9dSAO1GGMebRKWHQxLfDNmU/yh3xxCJha3N60nQ/JwXWwOE/ZSEVag==" 299 | } 300 | } 301 | }, 302 | "@types/mime": { 303 | "version": "1.3.2", 304 | "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", 305 | "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==" 306 | }, 307 | "@types/node": { 308 | "version": "12.20.24", 309 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.24.tgz", 310 | "integrity": "sha512-yxDeaQIAJlMav7fH5AQqPH1u8YIuhYJXYBzxaQ4PifsU0GDO38MSdmEDeRlIxrKbC6NbEaaEHDanWb+y30U8SQ==", 311 | "dev": true 312 | }, 313 | "@types/qs": { 314 | "version": "6.9.7", 315 | "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", 316 | "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" 317 | }, 318 | "@types/range-parser": { 319 | "version": "1.2.4", 320 | "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", 321 | "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" 322 | }, 323 | "@types/responselike": { 324 | "version": "1.0.0", 325 | "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", 326 | "integrity": "sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==", 327 | "requires": { 328 | "@types/node": "*" 329 | }, 330 | "dependencies": { 331 | "@types/node": { 332 | "version": "16.9.0", 333 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.0.tgz", 334 | "integrity": "sha512-nmP+VR4oT0pJUPFbKE4SXj3Yb4Q/kz3M9dSAO1GGMebRKWHQxLfDNmU/yh3xxCJha3N60nQ/JwXWwOE/ZSEVag==" 335 | } 336 | } 337 | }, 338 | "@types/serve-static": { 339 | "version": "1.13.10", 340 | "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.10.tgz", 341 | "integrity": "sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ==", 342 | "requires": { 343 | "@types/mime": "^1", 344 | "@types/node": "*" 345 | }, 346 | "dependencies": { 347 | "@types/node": { 348 | "version": "16.9.0", 349 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.0.tgz", 350 | "integrity": "sha512-nmP+VR4oT0pJUPFbKE4SXj3Yb4Q/kz3M9dSAO1GGMebRKWHQxLfDNmU/yh3xxCJha3N60nQ/JwXWwOE/ZSEVag==" 351 | } 352 | } 353 | }, 354 | "abbrev": { 355 | "version": "1.1.1", 356 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 357 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" 358 | }, 359 | "accepts": { 360 | "version": "1.3.7", 361 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 362 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 363 | "requires": { 364 | "mime-types": "~2.1.24", 365 | "negotiator": "0.6.2" 366 | } 367 | }, 368 | "agent-base": { 369 | "version": "6.0.2", 370 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 371 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 372 | "requires": { 373 | "debug": "4" 374 | }, 375 | "dependencies": { 376 | "debug": { 377 | "version": "4.3.2", 378 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", 379 | "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", 380 | "requires": { 381 | "ms": "2.1.2" 382 | } 383 | }, 384 | "ms": { 385 | "version": "2.1.2", 386 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 387 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 388 | } 389 | } 390 | }, 391 | "ajv": { 392 | "version": "6.12.6", 393 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 394 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 395 | "requires": { 396 | "fast-deep-equal": "^3.1.1", 397 | "fast-json-stable-stringify": "^2.0.0", 398 | "json-schema-traverse": "^0.4.1", 399 | "uri-js": "^4.2.2" 400 | } 401 | }, 402 | "ansi-regex": { 403 | "version": "2.1.1", 404 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 405 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 406 | }, 407 | "ansi-styles": { 408 | "version": "3.2.1", 409 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 410 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 411 | "requires": { 412 | "color-convert": "^1.9.0" 413 | } 414 | }, 415 | "aproba": { 416 | "version": "1.2.0", 417 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", 418 | "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" 419 | }, 420 | "are-we-there-yet": { 421 | "version": "1.1.7", 422 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz", 423 | "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==", 424 | "requires": { 425 | "delegates": "^1.0.0", 426 | "readable-stream": "^2.0.6" 427 | } 428 | }, 429 | "argparse": { 430 | "version": "1.0.10", 431 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 432 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 433 | "requires": { 434 | "sprintf-js": "~1.0.2" 435 | } 436 | }, 437 | "array-back": { 438 | "version": "3.1.0", 439 | "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", 440 | "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==" 441 | }, 442 | "array-flatten": { 443 | "version": "1.1.1", 444 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 445 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 446 | }, 447 | "asn1": { 448 | "version": "0.2.4", 449 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", 450 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", 451 | "requires": { 452 | "safer-buffer": "~2.1.0" 453 | } 454 | }, 455 | "assert-options": { 456 | "version": "0.7.0", 457 | "resolved": "https://registry.npmjs.org/assert-options/-/assert-options-0.7.0.tgz", 458 | "integrity": "sha512-7q9uNH/Dh8gFgpIIb9ja8PJEWA5AQy3xnBC8jtKs8K/gNVCr1K6kIvlm59HUyYgvM7oEDoLzGgPcGd9FqhtXEQ==" 459 | }, 460 | "assert-plus": { 461 | "version": "1.0.0", 462 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 463 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 464 | }, 465 | "async": { 466 | "version": "3.2.1", 467 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.1.tgz", 468 | "integrity": "sha512-XdD5lRO/87udXCMC9meWdYiR+Nq6ZjUfXidViUZGu2F1MO4T3XwZ1et0hb2++BgLfhyJwy44BGB/yx80ABx8hg==" 469 | }, 470 | "asynckit": { 471 | "version": "0.4.0", 472 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 473 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 474 | }, 475 | "aws-sign2": { 476 | "version": "0.7.0", 477 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 478 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 479 | }, 480 | "aws4": { 481 | "version": "1.11.0", 482 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", 483 | "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==" 484 | }, 485 | "balanced-match": { 486 | "version": "1.0.2", 487 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 488 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 489 | }, 490 | "base64-js": { 491 | "version": "1.5.1", 492 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 493 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" 494 | }, 495 | "basic-auth": { 496 | "version": "2.0.1", 497 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", 498 | "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", 499 | "requires": { 500 | "safe-buffer": "5.1.2" 501 | } 502 | }, 503 | "bcrypt-pbkdf": { 504 | "version": "1.0.2", 505 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 506 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", 507 | "requires": { 508 | "tweetnacl": "^0.14.3" 509 | } 510 | }, 511 | "better-sqlite3": { 512 | "version": "6.0.1", 513 | "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-6.0.1.tgz", 514 | "integrity": "sha512-4aV1zEknM9g1a6B0mVBx1oIlmYioEJ8gSS3J6EpN1b1bKYEE+N5lmpmXHKNKTi0qjHziSd7XrXwHl1kpqvEcHQ==", 515 | "requires": { 516 | "bindings": "^1.5.0", 517 | "integer": "^3.0.1", 518 | "prebuild-install": "^5.3.3", 519 | "tar": "4.4.10" 520 | } 521 | }, 522 | "bindings": { 523 | "version": "1.5.0", 524 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", 525 | "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", 526 | "requires": { 527 | "file-uri-to-path": "1.0.0" 528 | } 529 | }, 530 | "bintrees": { 531 | "version": "1.0.1", 532 | "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.1.tgz", 533 | "integrity": "sha1-DmVcm5wkNeqraL9AJyJtK1WjRSQ=" 534 | }, 535 | "bl": { 536 | "version": "4.1.0", 537 | "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", 538 | "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", 539 | "requires": { 540 | "buffer": "^5.5.0", 541 | "inherits": "^2.0.4", 542 | "readable-stream": "^3.4.0" 543 | }, 544 | "dependencies": { 545 | "inherits": { 546 | "version": "2.0.4", 547 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 548 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 549 | }, 550 | "readable-stream": { 551 | "version": "3.6.0", 552 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 553 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 554 | "requires": { 555 | "inherits": "^2.0.3", 556 | "string_decoder": "^1.1.1", 557 | "util-deprecate": "^1.0.1" 558 | } 559 | } 560 | } 561 | }, 562 | "blurhash": { 563 | "version": "1.1.4", 564 | "resolved": "https://registry.npmjs.org/blurhash/-/blurhash-1.1.4.tgz", 565 | "integrity": "sha512-MXIPz6zwYUKayju+Uidf83KhH0vodZfeRl6Ich8Gu+KGl0JgKiFq9LsfqV7cVU5fKD/AotmduZqvOfrGKOfTaA==" 566 | }, 567 | "body-parser": { 568 | "version": "1.19.0", 569 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 570 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 571 | "requires": { 572 | "bytes": "3.1.0", 573 | "content-type": "~1.0.4", 574 | "debug": "2.6.9", 575 | "depd": "~1.1.2", 576 | "http-errors": "1.7.2", 577 | "iconv-lite": "0.4.24", 578 | "on-finished": "~2.3.0", 579 | "qs": "6.7.0", 580 | "raw-body": "2.4.0", 581 | "type-is": "~1.6.17" 582 | } 583 | }, 584 | "brace-expansion": { 585 | "version": "1.1.11", 586 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 587 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 588 | "requires": { 589 | "balanced-match": "^1.0.0", 590 | "concat-map": "0.0.1" 591 | } 592 | }, 593 | "buffer": { 594 | "version": "5.7.1", 595 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", 596 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", 597 | "requires": { 598 | "base64-js": "^1.3.1", 599 | "ieee754": "^1.1.13" 600 | } 601 | }, 602 | "buffer-writer": { 603 | "version": "2.0.0", 604 | "resolved": "https://registry.npmjs.org/buffer-writer/-/buffer-writer-2.0.0.tgz", 605 | "integrity": "sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw==" 606 | }, 607 | "builtin-modules": { 608 | "version": "1.1.1", 609 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 610 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" 611 | }, 612 | "bytes": { 613 | "version": "3.1.0", 614 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 615 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 616 | }, 617 | "cacheable-lookup": { 618 | "version": "5.0.4", 619 | "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", 620 | "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==" 621 | }, 622 | "cacheable-request": { 623 | "version": "7.0.2", 624 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.2.tgz", 625 | "integrity": "sha512-pouW8/FmiPQbuGpkXQ9BAPv/Mo5xDGANgSNXzTzJ8DrKGuXOssM4wIQRjfanNRh3Yu5cfYPvcorqbhg2KIJtew==", 626 | "requires": { 627 | "clone-response": "^1.0.2", 628 | "get-stream": "^5.1.0", 629 | "http-cache-semantics": "^4.0.0", 630 | "keyv": "^4.0.0", 631 | "lowercase-keys": "^2.0.0", 632 | "normalize-url": "^6.0.1", 633 | "responselike": "^2.0.0" 634 | } 635 | }, 636 | "canvas": { 637 | "version": "2.8.0", 638 | "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.8.0.tgz", 639 | "integrity": "sha512-gLTi17X8WY9Cf5GZ2Yns8T5lfBOcGgFehDFb+JQwDqdOoBOcECS9ZWMEAqMSVcMYwXD659J8NyzjRY/2aE+C2Q==", 640 | "requires": { 641 | "@mapbox/node-pre-gyp": "^1.0.0", 642 | "nan": "^2.14.0", 643 | "simple-get": "^3.0.3" 644 | } 645 | }, 646 | "caseless": { 647 | "version": "0.12.0", 648 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 649 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 650 | }, 651 | "chalk": { 652 | "version": "2.4.2", 653 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 654 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 655 | "requires": { 656 | "ansi-styles": "^3.2.1", 657 | "escape-string-regexp": "^1.0.5", 658 | "supports-color": "^5.3.0" 659 | } 660 | }, 661 | "chownr": { 662 | "version": "1.1.4", 663 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", 664 | "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" 665 | }, 666 | "clone-response": { 667 | "version": "1.0.2", 668 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 669 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 670 | "requires": { 671 | "mimic-response": "^1.0.0" 672 | } 673 | }, 674 | "code-point-at": { 675 | "version": "1.1.0", 676 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 677 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" 678 | }, 679 | "color": { 680 | "version": "3.0.0", 681 | "resolved": "https://registry.npmjs.org/color/-/color-3.0.0.tgz", 682 | "integrity": "sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==", 683 | "requires": { 684 | "color-convert": "^1.9.1", 685 | "color-string": "^1.5.2" 686 | } 687 | }, 688 | "color-convert": { 689 | "version": "1.9.3", 690 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 691 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 692 | "requires": { 693 | "color-name": "1.1.3" 694 | } 695 | }, 696 | "color-name": { 697 | "version": "1.1.3", 698 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 699 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 700 | }, 701 | "color-string": { 702 | "version": "1.6.0", 703 | "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.6.0.tgz", 704 | "integrity": "sha512-c/hGS+kRWJutUBEngKKmk4iH3sD59MBkoxVapS/0wgpCz2u7XsNloxknyvBhzwEs1IbV36D9PwqLPJ2DTu3vMA==", 705 | "requires": { 706 | "color-name": "^1.0.0", 707 | "simple-swizzle": "^0.2.2" 708 | } 709 | }, 710 | "colorette": { 711 | "version": "1.4.0", 712 | "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", 713 | "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==" 714 | }, 715 | "colors": { 716 | "version": "1.4.0", 717 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", 718 | "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==" 719 | }, 720 | "colorspace": { 721 | "version": "1.1.2", 722 | "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.2.tgz", 723 | "integrity": "sha512-vt+OoIP2d76xLhjwbBaucYlNSpPsrJWPlBTtwCpQKIu6/CSMutyzX93O/Do0qzpH3YoHEes8YEFXyZ797rEhzQ==", 724 | "requires": { 725 | "color": "3.0.x", 726 | "text-hex": "1.0.x" 727 | } 728 | }, 729 | "combined-stream": { 730 | "version": "1.0.8", 731 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 732 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 733 | "requires": { 734 | "delayed-stream": "~1.0.0" 735 | } 736 | }, 737 | "command-line-args": { 738 | "version": "5.2.0", 739 | "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.0.tgz", 740 | "integrity": "sha512-4zqtU1hYsSJzcJBOcNZIbW5Fbk9BkjCp1pZVhQKoRaWL5J7N4XphDLwo8aWwdQpTugxwu+jf9u2ZhkXiqp5Z6A==", 741 | "requires": { 742 | "array-back": "^3.1.0", 743 | "find-replace": "^3.0.0", 744 | "lodash.camelcase": "^4.3.0", 745 | "typical": "^4.0.0" 746 | } 747 | }, 748 | "command-line-usage": { 749 | "version": "5.0.5", 750 | "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-5.0.5.tgz", 751 | "integrity": "sha512-d8NrGylA5oCXSbGoKz05FkehDAzSmIm4K03S5VDh4d5lZAtTWfc3D1RuETtuQCn8129nYfJfDdF7P/lwcz1BlA==", 752 | "requires": { 753 | "array-back": "^2.0.0", 754 | "chalk": "^2.4.1", 755 | "table-layout": "^0.4.3", 756 | "typical": "^2.6.1" 757 | }, 758 | "dependencies": { 759 | "array-back": { 760 | "version": "2.0.0", 761 | "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", 762 | "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", 763 | "requires": { 764 | "typical": "^2.6.1" 765 | } 766 | }, 767 | "typical": { 768 | "version": "2.6.1", 769 | "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", 770 | "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=" 771 | } 772 | } 773 | }, 774 | "commander": { 775 | "version": "2.20.3", 776 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 777 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" 778 | }, 779 | "concat-map": { 780 | "version": "0.0.1", 781 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 782 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 783 | }, 784 | "console-control-strings": { 785 | "version": "1.1.0", 786 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", 787 | "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" 788 | }, 789 | "content-disposition": { 790 | "version": "0.5.3", 791 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 792 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 793 | "requires": { 794 | "safe-buffer": "5.1.2" 795 | } 796 | }, 797 | "content-type": { 798 | "version": "1.0.4", 799 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 800 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 801 | }, 802 | "cookie": { 803 | "version": "0.4.0", 804 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 805 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 806 | }, 807 | "cookie-signature": { 808 | "version": "1.0.6", 809 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 810 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 811 | }, 812 | "core-util-is": { 813 | "version": "1.0.3", 814 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", 815 | "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" 816 | }, 817 | "cycle": { 818 | "version": "1.0.3", 819 | "resolved": "https://registry.npmjs.org/cycle/-/cycle-1.0.3.tgz", 820 | "integrity": "sha1-IegLK+hYD5i0aPN5QwZisEbDStI=" 821 | }, 822 | "dashdash": { 823 | "version": "1.14.1", 824 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 825 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 826 | "requires": { 827 | "assert-plus": "^1.0.0" 828 | } 829 | }, 830 | "debug": { 831 | "version": "2.6.9", 832 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 833 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 834 | "requires": { 835 | "ms": "2.0.0" 836 | } 837 | }, 838 | "decompress-response": { 839 | "version": "6.0.0", 840 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", 841 | "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", 842 | "requires": { 843 | "mimic-response": "^3.1.0" 844 | }, 845 | "dependencies": { 846 | "mimic-response": { 847 | "version": "3.1.0", 848 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", 849 | "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==" 850 | } 851 | } 852 | }, 853 | "deep-extend": { 854 | "version": "0.6.0", 855 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 856 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" 857 | }, 858 | "deepmerge": { 859 | "version": "4.2.2", 860 | "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", 861 | "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==" 862 | }, 863 | "defer-to-connect": { 864 | "version": "2.0.1", 865 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", 866 | "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==" 867 | }, 868 | "delayed-stream": { 869 | "version": "1.0.0", 870 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 871 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 872 | }, 873 | "delegates": { 874 | "version": "1.0.0", 875 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", 876 | "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" 877 | }, 878 | "depd": { 879 | "version": "1.1.2", 880 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 881 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 882 | }, 883 | "destroy": { 884 | "version": "1.0.4", 885 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 886 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 887 | }, 888 | "detect-libc": { 889 | "version": "1.0.3", 890 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", 891 | "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=" 892 | }, 893 | "diff": { 894 | "version": "4.0.2", 895 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 896 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" 897 | }, 898 | "dom-serializer": { 899 | "version": "1.3.2", 900 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz", 901 | "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==", 902 | "requires": { 903 | "domelementtype": "^2.0.1", 904 | "domhandler": "^4.2.0", 905 | "entities": "^2.0.0" 906 | }, 907 | "dependencies": { 908 | "domhandler": { 909 | "version": "4.2.2", 910 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz", 911 | "integrity": "sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==", 912 | "requires": { 913 | "domelementtype": "^2.2.0" 914 | } 915 | } 916 | } 917 | }, 918 | "domelementtype": { 919 | "version": "2.2.0", 920 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz", 921 | "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==" 922 | }, 923 | "domhandler": { 924 | "version": "3.3.0", 925 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-3.3.0.tgz", 926 | "integrity": "sha512-J1C5rIANUbuYK+FuFL98650rihynUOEzRLxW+90bKZRWB6A1X1Tf82GxR1qAWLyfNPRvjqfip3Q5tdYlmAa9lA==", 927 | "requires": { 928 | "domelementtype": "^2.0.1" 929 | } 930 | }, 931 | "domutils": { 932 | "version": "2.8.0", 933 | "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", 934 | "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", 935 | "requires": { 936 | "dom-serializer": "^1.0.1", 937 | "domelementtype": "^2.2.0", 938 | "domhandler": "^4.2.0" 939 | }, 940 | "dependencies": { 941 | "domhandler": { 942 | "version": "4.2.2", 943 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz", 944 | "integrity": "sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==", 945 | "requires": { 946 | "domelementtype": "^2.2.0" 947 | } 948 | } 949 | } 950 | }, 951 | "ecc-jsbn": { 952 | "version": "0.1.2", 953 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 954 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", 955 | "requires": { 956 | "jsbn": "~0.1.0", 957 | "safer-buffer": "^2.1.0" 958 | } 959 | }, 960 | "ee-first": { 961 | "version": "1.1.1", 962 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 963 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 964 | }, 965 | "enabled": { 966 | "version": "2.0.0", 967 | "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", 968 | "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==" 969 | }, 970 | "encodeurl": { 971 | "version": "1.0.2", 972 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 973 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 974 | }, 975 | "end-of-stream": { 976 | "version": "1.4.4", 977 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 978 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 979 | "requires": { 980 | "once": "^1.4.0" 981 | } 982 | }, 983 | "entities": { 984 | "version": "2.2.0", 985 | "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", 986 | "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" 987 | }, 988 | "escape-html": { 989 | "version": "1.0.3", 990 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 991 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 992 | }, 993 | "escape-string-regexp": { 994 | "version": "1.0.5", 995 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 996 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 997 | }, 998 | "esprima": { 999 | "version": "4.0.1", 1000 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 1001 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" 1002 | }, 1003 | "etag": { 1004 | "version": "1.8.1", 1005 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 1006 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 1007 | }, 1008 | "events": { 1009 | "version": "3.3.0", 1010 | "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", 1011 | "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==" 1012 | }, 1013 | "expand-template": { 1014 | "version": "2.0.3", 1015 | "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", 1016 | "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==" 1017 | }, 1018 | "expire-set": { 1019 | "version": "1.0.0", 1020 | "resolved": "https://registry.npmjs.org/expire-set/-/expire-set-1.0.0.tgz", 1021 | "integrity": "sha512-wOQlqatf2sJtOabNk3gEPbGvo/C8tIUhzT3rz08+i7X+u1NV+UNY4p3Lzq8DxrW57mBML1Fp5qNeYt70Qnndpg==" 1022 | }, 1023 | "express": { 1024 | "version": "4.17.1", 1025 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 1026 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 1027 | "requires": { 1028 | "accepts": "~1.3.7", 1029 | "array-flatten": "1.1.1", 1030 | "body-parser": "1.19.0", 1031 | "content-disposition": "0.5.3", 1032 | "content-type": "~1.0.4", 1033 | "cookie": "0.4.0", 1034 | "cookie-signature": "1.0.6", 1035 | "debug": "2.6.9", 1036 | "depd": "~1.1.2", 1037 | "encodeurl": "~1.0.2", 1038 | "escape-html": "~1.0.3", 1039 | "etag": "~1.8.1", 1040 | "finalhandler": "~1.1.2", 1041 | "fresh": "0.5.2", 1042 | "merge-descriptors": "1.0.1", 1043 | "methods": "~1.1.2", 1044 | "on-finished": "~2.3.0", 1045 | "parseurl": "~1.3.3", 1046 | "path-to-regexp": "0.1.7", 1047 | "proxy-addr": "~2.0.5", 1048 | "qs": "6.7.0", 1049 | "range-parser": "~1.2.1", 1050 | "safe-buffer": "5.1.2", 1051 | "send": "0.17.1", 1052 | "serve-static": "1.14.1", 1053 | "setprototypeof": "1.1.1", 1054 | "statuses": "~1.5.0", 1055 | "type-is": "~1.6.18", 1056 | "utils-merge": "1.0.1", 1057 | "vary": "~1.1.2" 1058 | } 1059 | }, 1060 | "extend": { 1061 | "version": "3.0.2", 1062 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 1063 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" 1064 | }, 1065 | "extend-shallow": { 1066 | "version": "2.0.1", 1067 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 1068 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 1069 | "requires": { 1070 | "is-extendable": "^0.1.0" 1071 | } 1072 | }, 1073 | "extsprintf": { 1074 | "version": "1.3.0", 1075 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 1076 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 1077 | }, 1078 | "fast-deep-equal": { 1079 | "version": "3.1.3", 1080 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1081 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" 1082 | }, 1083 | "fast-json-stable-stringify": { 1084 | "version": "2.1.0", 1085 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1086 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" 1087 | }, 1088 | "fast-safe-stringify": { 1089 | "version": "2.1.1", 1090 | "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", 1091 | "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" 1092 | }, 1093 | "fecha": { 1094 | "version": "4.2.1", 1095 | "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.1.tgz", 1096 | "integrity": "sha512-MMMQ0ludy/nBs1/o0zVOiKTpG7qMbonKUzjJgQFEuvq6INZ1OraKPRAWkBq5vlKLOUMpmNYG1JoN3oDPUQ9m3Q==" 1097 | }, 1098 | "file-stream-rotator": { 1099 | "version": "0.4.1", 1100 | "resolved": "https://registry.npmjs.org/file-stream-rotator/-/file-stream-rotator-0.4.1.tgz", 1101 | "integrity": "sha512-W3aa3QJEc8BS2MmdVpQiYLKHj3ijpto1gMDlsgCRSKfIUe6MwkcpODGPQ3vZfb0XvCeCqlu9CBQTN7oQri2TZQ==", 1102 | "requires": { 1103 | "moment": "^2.11.2" 1104 | } 1105 | }, 1106 | "file-type": { 1107 | "version": "12.4.2", 1108 | "resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz", 1109 | "integrity": "sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg==" 1110 | }, 1111 | "file-uri-to-path": { 1112 | "version": "1.0.0", 1113 | "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", 1114 | "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" 1115 | }, 1116 | "finalhandler": { 1117 | "version": "1.1.2", 1118 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 1119 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 1120 | "requires": { 1121 | "debug": "2.6.9", 1122 | "encodeurl": "~1.0.2", 1123 | "escape-html": "~1.0.3", 1124 | "on-finished": "~2.3.0", 1125 | "parseurl": "~1.3.3", 1126 | "statuses": "~1.5.0", 1127 | "unpipe": "~1.0.0" 1128 | } 1129 | }, 1130 | "find-replace": { 1131 | "version": "3.0.0", 1132 | "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", 1133 | "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", 1134 | "requires": { 1135 | "array-back": "^3.0.1" 1136 | } 1137 | }, 1138 | "fn.name": { 1139 | "version": "1.1.0", 1140 | "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", 1141 | "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==" 1142 | }, 1143 | "forever-agent": { 1144 | "version": "0.6.1", 1145 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 1146 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 1147 | }, 1148 | "form-data": { 1149 | "version": "2.3.3", 1150 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", 1151 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", 1152 | "requires": { 1153 | "asynckit": "^0.4.0", 1154 | "combined-stream": "^1.0.6", 1155 | "mime-types": "^2.1.12" 1156 | } 1157 | }, 1158 | "forwarded": { 1159 | "version": "0.2.0", 1160 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 1161 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" 1162 | }, 1163 | "fresh": { 1164 | "version": "0.5.2", 1165 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 1166 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 1167 | }, 1168 | "fs-constants": { 1169 | "version": "1.0.0", 1170 | "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", 1171 | "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" 1172 | }, 1173 | "fs-minipass": { 1174 | "version": "1.2.7", 1175 | "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", 1176 | "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", 1177 | "requires": { 1178 | "minipass": "^2.6.0" 1179 | } 1180 | }, 1181 | "fs.realpath": { 1182 | "version": "1.0.0", 1183 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1184 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 1185 | }, 1186 | "function-bind": { 1187 | "version": "1.1.1", 1188 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 1189 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 1190 | }, 1191 | "gauge": { 1192 | "version": "2.7.4", 1193 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", 1194 | "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", 1195 | "requires": { 1196 | "aproba": "^1.0.3", 1197 | "console-control-strings": "^1.0.0", 1198 | "has-unicode": "^2.0.0", 1199 | "object-assign": "^4.1.0", 1200 | "signal-exit": "^3.0.0", 1201 | "string-width": "^1.0.1", 1202 | "strip-ansi": "^3.0.1", 1203 | "wide-align": "^1.1.0" 1204 | } 1205 | }, 1206 | "get-stream": { 1207 | "version": "5.2.0", 1208 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", 1209 | "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", 1210 | "requires": { 1211 | "pump": "^3.0.0" 1212 | } 1213 | }, 1214 | "getpass": { 1215 | "version": "0.1.7", 1216 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 1217 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 1218 | "requires": { 1219 | "assert-plus": "^1.0.0" 1220 | } 1221 | }, 1222 | "github-from-package": { 1223 | "version": "0.0.0", 1224 | "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", 1225 | "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=" 1226 | }, 1227 | "glob": { 1228 | "version": "7.1.7", 1229 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", 1230 | "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", 1231 | "requires": { 1232 | "fs.realpath": "^1.0.0", 1233 | "inflight": "^1.0.4", 1234 | "inherits": "2", 1235 | "minimatch": "^3.0.4", 1236 | "once": "^1.3.0", 1237 | "path-is-absolute": "^1.0.0" 1238 | } 1239 | }, 1240 | "glob-to-regexp": { 1241 | "version": "0.4.1", 1242 | "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", 1243 | "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" 1244 | }, 1245 | "got": { 1246 | "version": "11.8.2", 1247 | "resolved": "https://registry.npmjs.org/got/-/got-11.8.2.tgz", 1248 | "integrity": "sha512-D0QywKgIe30ODs+fm8wMZiAcZjypcCodPNuMz5H9Mny7RJ+IjJ10BdmGW7OM7fHXP+O7r6ZwapQ/YQmMSvB0UQ==", 1249 | "requires": { 1250 | "@sindresorhus/is": "^4.0.0", 1251 | "@szmarczak/http-timer": "^4.0.5", 1252 | "@types/cacheable-request": "^6.0.1", 1253 | "@types/responselike": "^1.0.0", 1254 | "cacheable-lookup": "^5.0.3", 1255 | "cacheable-request": "^7.0.1", 1256 | "decompress-response": "^6.0.0", 1257 | "http2-wrapper": "^1.0.0-beta.5.2", 1258 | "lowercase-keys": "^2.0.0", 1259 | "p-cancelable": "^2.0.0", 1260 | "responselike": "^2.0.0" 1261 | } 1262 | }, 1263 | "graceful-fs": { 1264 | "version": "4.2.8", 1265 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", 1266 | "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==" 1267 | }, 1268 | "har-schema": { 1269 | "version": "2.0.0", 1270 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 1271 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 1272 | }, 1273 | "har-validator": { 1274 | "version": "5.1.5", 1275 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", 1276 | "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", 1277 | "requires": { 1278 | "ajv": "^6.12.3", 1279 | "har-schema": "^2.0.0" 1280 | } 1281 | }, 1282 | "has": { 1283 | "version": "1.0.3", 1284 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 1285 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 1286 | "requires": { 1287 | "function-bind": "^1.1.1" 1288 | } 1289 | }, 1290 | "has-flag": { 1291 | "version": "3.0.0", 1292 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1293 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 1294 | }, 1295 | "has-unicode": { 1296 | "version": "2.0.1", 1297 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", 1298 | "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" 1299 | }, 1300 | "hash.js": { 1301 | "version": "1.1.7", 1302 | "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", 1303 | "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", 1304 | "requires": { 1305 | "inherits": "^2.0.3", 1306 | "minimalistic-assert": "^1.0.1" 1307 | } 1308 | }, 1309 | "hasha": { 1310 | "version": "5.2.2", 1311 | "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.2.tgz", 1312 | "integrity": "sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==", 1313 | "requires": { 1314 | "is-stream": "^2.0.0", 1315 | "type-fest": "^0.8.0" 1316 | } 1317 | }, 1318 | "he": { 1319 | "version": "1.2.0", 1320 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1321 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" 1322 | }, 1323 | "html-to-formatted-text": { 1324 | "version": "2.7.0", 1325 | "resolved": "https://registry.npmjs.org/html-to-formatted-text/-/html-to-formatted-text-2.7.0.tgz", 1326 | "integrity": "sha512-dwAWKPVKf9LeNSQ3FBok3Z6PqNtino2o828/O5MMg9NHMBDmUZXAG5omFyptB4ouBasiE0C0B2WUMAs+BVKQAQ==", 1327 | "requires": { 1328 | "striptags": "3.1.1" 1329 | } 1330 | }, 1331 | "html-to-text": { 1332 | "version": "6.0.0", 1333 | "resolved": "https://registry.npmjs.org/html-to-text/-/html-to-text-6.0.0.tgz", 1334 | "integrity": "sha512-r0KNC5aqCAItsjlgtirW6RW25c92Ee3ybQj8z//4Sl4suE3HIPqM4deGpYCUJULLjtVPEP1+Ma+1ZeX1iMsCiA==", 1335 | "requires": { 1336 | "deepmerge": "^4.2.2", 1337 | "he": "^1.2.0", 1338 | "htmlparser2": "^4.1.0", 1339 | "lodash": "^4.17.20", 1340 | "minimist": "^1.2.5" 1341 | } 1342 | }, 1343 | "htmlencode": { 1344 | "version": "0.0.4", 1345 | "resolved": "https://registry.npmjs.org/htmlencode/-/htmlencode-0.0.4.tgz", 1346 | "integrity": "sha1-9+LWr74YqHp45jujMI51N2Z0Dj8=" 1347 | }, 1348 | "htmlparser2": { 1349 | "version": "4.1.0", 1350 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-4.1.0.tgz", 1351 | "integrity": "sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==", 1352 | "requires": { 1353 | "domelementtype": "^2.0.1", 1354 | "domhandler": "^3.0.0", 1355 | "domutils": "^2.0.0", 1356 | "entities": "^2.0.0" 1357 | } 1358 | }, 1359 | "http-cache-semantics": { 1360 | "version": "4.1.0", 1361 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", 1362 | "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" 1363 | }, 1364 | "http-errors": { 1365 | "version": "1.7.2", 1366 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 1367 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 1368 | "requires": { 1369 | "depd": "~1.1.2", 1370 | "inherits": "2.0.3", 1371 | "setprototypeof": "1.1.1", 1372 | "statuses": ">= 1.5.0 < 2", 1373 | "toidentifier": "1.0.0" 1374 | } 1375 | }, 1376 | "http-signature": { 1377 | "version": "1.2.0", 1378 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 1379 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 1380 | "requires": { 1381 | "assert-plus": "^1.0.0", 1382 | "jsprim": "^1.2.2", 1383 | "sshpk": "^1.7.0" 1384 | } 1385 | }, 1386 | "http2-wrapper": { 1387 | "version": "1.0.3", 1388 | "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", 1389 | "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", 1390 | "requires": { 1391 | "quick-lru": "^5.1.1", 1392 | "resolve-alpn": "^1.0.0" 1393 | } 1394 | }, 1395 | "https-proxy-agent": { 1396 | "version": "5.0.0", 1397 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 1398 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 1399 | "requires": { 1400 | "agent-base": "6", 1401 | "debug": "4" 1402 | }, 1403 | "dependencies": { 1404 | "debug": { 1405 | "version": "4.3.2", 1406 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", 1407 | "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", 1408 | "requires": { 1409 | "ms": "2.1.2" 1410 | } 1411 | }, 1412 | "ms": { 1413 | "version": "2.1.2", 1414 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1415 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1416 | } 1417 | } 1418 | }, 1419 | "iconv-lite": { 1420 | "version": "0.4.24", 1421 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 1422 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 1423 | "requires": { 1424 | "safer-buffer": ">= 2.1.2 < 3" 1425 | } 1426 | }, 1427 | "ieee754": { 1428 | "version": "1.2.1", 1429 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 1430 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" 1431 | }, 1432 | "inflight": { 1433 | "version": "1.0.6", 1434 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1435 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1436 | "requires": { 1437 | "once": "^1.3.0", 1438 | "wrappy": "1" 1439 | } 1440 | }, 1441 | "inherits": { 1442 | "version": "2.0.3", 1443 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1444 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 1445 | }, 1446 | "ini": { 1447 | "version": "1.3.8", 1448 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", 1449 | "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" 1450 | }, 1451 | "integer": { 1452 | "version": "3.0.1", 1453 | "resolved": "https://registry.npmjs.org/integer/-/integer-3.0.1.tgz", 1454 | "integrity": "sha512-OqtER6W2GIJTIcnT5o2B/pWGgvurnVOYs4OZCgay40QEIbMTnNq4R0KSaIw1TZyFtPWjm5aNM+pBBMTfc3exmw==", 1455 | "requires": { 1456 | "bindings": "^1.5.0", 1457 | "prebuild-install": "^5.3.3" 1458 | } 1459 | }, 1460 | "ipaddr.js": { 1461 | "version": "1.9.1", 1462 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1463 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 1464 | }, 1465 | "is-arrayish": { 1466 | "version": "0.3.2", 1467 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", 1468 | "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" 1469 | }, 1470 | "is-core-module": { 1471 | "version": "2.6.0", 1472 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.6.0.tgz", 1473 | "integrity": "sha512-wShG8vs60jKfPWpF2KZRaAtvt3a20OAn7+IJ6hLPECpSABLcKtFKTTI4ZtH5QcBruBHlq+WsdHWyz0BCZW7svQ==", 1474 | "requires": { 1475 | "has": "^1.0.3" 1476 | } 1477 | }, 1478 | "is-extendable": { 1479 | "version": "0.1.1", 1480 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", 1481 | "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" 1482 | }, 1483 | "is-fullwidth-code-point": { 1484 | "version": "1.0.0", 1485 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1486 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 1487 | "requires": { 1488 | "number-is-nan": "^1.0.0" 1489 | } 1490 | }, 1491 | "is-plain-object": { 1492 | "version": "5.0.0", 1493 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", 1494 | "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==" 1495 | }, 1496 | "is-promise": { 1497 | "version": "2.2.2", 1498 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", 1499 | "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==" 1500 | }, 1501 | "is-stream": { 1502 | "version": "2.0.1", 1503 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", 1504 | "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" 1505 | }, 1506 | "is-typedarray": { 1507 | "version": "1.0.0", 1508 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 1509 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 1510 | }, 1511 | "isarray": { 1512 | "version": "1.0.0", 1513 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1514 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 1515 | }, 1516 | "isomorphic-fetch": { 1517 | "version": "3.0.0", 1518 | "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", 1519 | "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", 1520 | "requires": { 1521 | "node-fetch": "^2.6.1", 1522 | "whatwg-fetch": "^3.4.1" 1523 | } 1524 | }, 1525 | "isstream": { 1526 | "version": "0.1.2", 1527 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 1528 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 1529 | }, 1530 | "js-tokens": { 1531 | "version": "4.0.0", 1532 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1533 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" 1534 | }, 1535 | "js-yaml": { 1536 | "version": "3.14.1", 1537 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 1538 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 1539 | "requires": { 1540 | "argparse": "^1.0.7", 1541 | "esprima": "^4.0.0" 1542 | } 1543 | }, 1544 | "jsbn": { 1545 | "version": "0.1.1", 1546 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 1547 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" 1548 | }, 1549 | "json-buffer": { 1550 | "version": "3.0.1", 1551 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 1552 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" 1553 | }, 1554 | "json-schema": { 1555 | "version": "0.2.3", 1556 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 1557 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 1558 | }, 1559 | "json-schema-traverse": { 1560 | "version": "0.4.1", 1561 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1562 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 1563 | }, 1564 | "json-stringify-safe": { 1565 | "version": "5.0.1", 1566 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 1567 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 1568 | }, 1569 | "jsprim": { 1570 | "version": "1.4.1", 1571 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 1572 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 1573 | "requires": { 1574 | "assert-plus": "1.0.0", 1575 | "extsprintf": "1.3.0", 1576 | "json-schema": "0.2.3", 1577 | "verror": "1.10.0" 1578 | } 1579 | }, 1580 | "jwt-decode": { 1581 | "version": "3.1.2", 1582 | "resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz", 1583 | "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==" 1584 | }, 1585 | "keyv": { 1586 | "version": "4.0.3", 1587 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.0.3.tgz", 1588 | "integrity": "sha512-zdGa2TOpSZPq5mU6iowDARnMBZgtCqJ11dJROFi6tg6kTn4nuUdU09lFyLFSaHrWqpIJ+EBq4E8/Dc0Vx5vLdA==", 1589 | "requires": { 1590 | "json-buffer": "3.0.1" 1591 | } 1592 | }, 1593 | "klona": { 1594 | "version": "2.0.4", 1595 | "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.4.tgz", 1596 | "integrity": "sha512-ZRbnvdg/NxqzC7L9Uyqzf4psi1OM4Cuc+sJAkQPjO6XkQIJTNbfK2Rsmbw8fx1p2mkZdp2FZYo2+LwXYY/uwIA==" 1597 | }, 1598 | "kuler": { 1599 | "version": "2.0.0", 1600 | "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", 1601 | "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" 1602 | }, 1603 | "linkify-it": { 1604 | "version": "2.2.0", 1605 | "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.2.0.tgz", 1606 | "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==", 1607 | "requires": { 1608 | "uc.micro": "^1.0.1" 1609 | } 1610 | }, 1611 | "lodash": { 1612 | "version": "4.17.21", 1613 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 1614 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 1615 | }, 1616 | "lodash.camelcase": { 1617 | "version": "4.3.0", 1618 | "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", 1619 | "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" 1620 | }, 1621 | "lodash.padend": { 1622 | "version": "4.6.1", 1623 | "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", 1624 | "integrity": "sha1-U8y6BH0G4VjTEfRdpiX05J5vFm4=" 1625 | }, 1626 | "logform": { 1627 | "version": "2.2.0", 1628 | "resolved": "https://registry.npmjs.org/logform/-/logform-2.2.0.tgz", 1629 | "integrity": "sha512-N0qPlqfypFx7UHNn4B3lzS/b0uLqt2hmuoa+PpuXNYgozdJYAyauF5Ky0BWVjrxDlMWiT3qN4zPq3vVAfZy7Yg==", 1630 | "requires": { 1631 | "colors": "^1.2.1", 1632 | "fast-safe-stringify": "^2.0.4", 1633 | "fecha": "^4.2.0", 1634 | "ms": "^2.1.1", 1635 | "triple-beam": "^1.3.0" 1636 | }, 1637 | "dependencies": { 1638 | "ms": { 1639 | "version": "2.1.3", 1640 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1641 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1642 | } 1643 | } 1644 | }, 1645 | "lowdb": { 1646 | "version": "1.0.0", 1647 | "resolved": "https://registry.npmjs.org/lowdb/-/lowdb-1.0.0.tgz", 1648 | "integrity": "sha512-2+x8esE/Wb9SQ1F9IHaYWfsC9FIecLOPrK4g17FGEayjUWH172H6nwicRovGvSE2CPZouc2MCIqCI7h9d+GftQ==", 1649 | "requires": { 1650 | "graceful-fs": "^4.1.3", 1651 | "is-promise": "^2.1.0", 1652 | "lodash": "4", 1653 | "pify": "^3.0.0", 1654 | "steno": "^0.4.1" 1655 | } 1656 | }, 1657 | "lowercase-keys": { 1658 | "version": "2.0.0", 1659 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 1660 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" 1661 | }, 1662 | "lru-cache": { 1663 | "version": "6.0.0", 1664 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1665 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1666 | "requires": { 1667 | "yallist": "^4.0.0" 1668 | } 1669 | }, 1670 | "make-dir": { 1671 | "version": "3.1.0", 1672 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 1673 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 1674 | "requires": { 1675 | "semver": "^6.0.0" 1676 | }, 1677 | "dependencies": { 1678 | "semver": { 1679 | "version": "6.3.0", 1680 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1681 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 1682 | } 1683 | } 1684 | }, 1685 | "markdown-it": { 1686 | "version": "9.1.0", 1687 | "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-9.1.0.tgz", 1688 | "integrity": "sha512-xHKG4C8iPriyfu/jc2hsCC045fKrMQ0VexX2F1FGYiRxDxqMB2aAhF8WauJ3fltn2kb90moGBkiiEdooGIg55w==", 1689 | "requires": { 1690 | "argparse": "^1.0.7", 1691 | "entities": "~1.1.1", 1692 | "linkify-it": "^2.0.0", 1693 | "mdurl": "^1.0.1", 1694 | "uc.micro": "^1.0.5" 1695 | }, 1696 | "dependencies": { 1697 | "entities": { 1698 | "version": "1.1.2", 1699 | "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", 1700 | "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" 1701 | } 1702 | } 1703 | }, 1704 | "mdurl": { 1705 | "version": "1.0.1", 1706 | "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", 1707 | "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=" 1708 | }, 1709 | "media-typer": { 1710 | "version": "0.3.0", 1711 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1712 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1713 | }, 1714 | "merge-descriptors": { 1715 | "version": "1.0.1", 1716 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1717 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1718 | }, 1719 | "methods": { 1720 | "version": "1.1.2", 1721 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1722 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1723 | }, 1724 | "mime": { 1725 | "version": "1.6.0", 1726 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1727 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 1728 | }, 1729 | "mime-db": { 1730 | "version": "1.49.0", 1731 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz", 1732 | "integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==" 1733 | }, 1734 | "mime-types": { 1735 | "version": "2.1.32", 1736 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz", 1737 | "integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==", 1738 | "requires": { 1739 | "mime-db": "1.49.0" 1740 | } 1741 | }, 1742 | "mimic-response": { 1743 | "version": "1.0.1", 1744 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 1745 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" 1746 | }, 1747 | "minimalistic-assert": { 1748 | "version": "1.0.1", 1749 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", 1750 | "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" 1751 | }, 1752 | "minimatch": { 1753 | "version": "3.0.4", 1754 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1755 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1756 | "requires": { 1757 | "brace-expansion": "^1.1.7" 1758 | } 1759 | }, 1760 | "minimist": { 1761 | "version": "1.2.5", 1762 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1763 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 1764 | }, 1765 | "minipass": { 1766 | "version": "2.9.0", 1767 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", 1768 | "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", 1769 | "requires": { 1770 | "safe-buffer": "^5.1.2", 1771 | "yallist": "^3.0.0" 1772 | }, 1773 | "dependencies": { 1774 | "yallist": { 1775 | "version": "3.1.1", 1776 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", 1777 | "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" 1778 | } 1779 | } 1780 | }, 1781 | "minizlib": { 1782 | "version": "1.3.3", 1783 | "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", 1784 | "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", 1785 | "requires": { 1786 | "minipass": "^2.9.0" 1787 | } 1788 | }, 1789 | "mkdirp": { 1790 | "version": "1.0.4", 1791 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", 1792 | "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" 1793 | }, 1794 | "mkdirp-classic": { 1795 | "version": "0.5.3", 1796 | "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", 1797 | "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==" 1798 | }, 1799 | "moment": { 1800 | "version": "2.29.1", 1801 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", 1802 | "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" 1803 | }, 1804 | "morgan": { 1805 | "version": "1.10.0", 1806 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", 1807 | "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", 1808 | "requires": { 1809 | "basic-auth": "~2.0.1", 1810 | "debug": "2.6.9", 1811 | "depd": "~2.0.0", 1812 | "on-finished": "~2.3.0", 1813 | "on-headers": "~1.0.2" 1814 | }, 1815 | "dependencies": { 1816 | "depd": { 1817 | "version": "2.0.0", 1818 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 1819 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" 1820 | } 1821 | } 1822 | }, 1823 | "ms": { 1824 | "version": "2.0.0", 1825 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1826 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1827 | }, 1828 | "msal": { 1829 | "version": "1.4.12", 1830 | "resolved": "https://registry.npmjs.org/msal/-/msal-1.4.12.tgz", 1831 | "integrity": "sha512-gjupwQ6nvNL6mZkl5NIXyUmZhTiEMRu5giNdgHMh8l5EPOnV2Xj6nukY1NIxFacSTkEYUSDB47Pej9GxDYf+1w==", 1832 | "requires": { 1833 | "tslib": "^1.9.3" 1834 | } 1835 | }, 1836 | "mx-puppet-bridge": { 1837 | "version": "0.1.4", 1838 | "resolved": "https://registry.npmjs.org/mx-puppet-bridge/-/mx-puppet-bridge-0.1.4.tgz", 1839 | "integrity": "sha512-Jg4hszVqQv1n35Mvb5HcfK4VafjB0LaCEay8ylgiu/M2oIPE0fadFNdQpkwssXmShDzSeth/xga3HgP8G6O5Fg==", 1840 | "requires": { 1841 | "@sorunome/matrix-bot-sdk": "^0.5.8", 1842 | "better-sqlite3": "^6.0.1", 1843 | "blurhash": "^1.1.3", 1844 | "canvas": "^2.6.1", 1845 | "escape-html": "^1.0.3", 1846 | "events": "^3.1.0", 1847 | "expire-set": "^1.0.0", 1848 | "file-type": "^12.4.2", 1849 | "got": "^11.6.0", 1850 | "hasha": "^5.2.0", 1851 | "js-yaml": "^3.13.1", 1852 | "markdown-it": "^9.1.0", 1853 | "pg-promise": "^10.5.0", 1854 | "prom-client": "^13.0.0", 1855 | "unescape": "^1.0.1", 1856 | "uuid": "^3.4.0", 1857 | "winston": "^3.2.1", 1858 | "winston-daily-rotate-file": "^3.10.0" 1859 | } 1860 | }, 1861 | "nan": { 1862 | "version": "2.15.0", 1863 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", 1864 | "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==" 1865 | }, 1866 | "nanoid": { 1867 | "version": "3.1.25", 1868 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.25.tgz", 1869 | "integrity": "sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q==" 1870 | }, 1871 | "napi-build-utils": { 1872 | "version": "1.0.2", 1873 | "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", 1874 | "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==" 1875 | }, 1876 | "negotiator": { 1877 | "version": "0.6.2", 1878 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1879 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 1880 | }, 1881 | "node-abi": { 1882 | "version": "2.30.1", 1883 | "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.30.1.tgz", 1884 | "integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==", 1885 | "requires": { 1886 | "semver": "^5.4.1" 1887 | } 1888 | }, 1889 | "node-emoji": { 1890 | "version": "1.11.0", 1891 | "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", 1892 | "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", 1893 | "requires": { 1894 | "lodash": "^4.17.21" 1895 | } 1896 | }, 1897 | "node-fetch": { 1898 | "version": "2.6.2", 1899 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.2.tgz", 1900 | "integrity": "sha512-aLoxToI6RfZ+0NOjmWAgn9+LEd30YCkJKFSyWacNZdEKTit/ZMcKjGkTRo8uWEsnIb/hfKecNPEbln02PdWbcA==" 1901 | }, 1902 | "noop-logger": { 1903 | "version": "0.1.1", 1904 | "resolved": "https://registry.npmjs.org/noop-logger/-/noop-logger-0.1.1.tgz", 1905 | "integrity": "sha1-lKKxYzxPExdVMAfYlm/Q6EG2pMI=" 1906 | }, 1907 | "nopt": { 1908 | "version": "5.0.0", 1909 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", 1910 | "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", 1911 | "requires": { 1912 | "abbrev": "1" 1913 | } 1914 | }, 1915 | "normalize-url": { 1916 | "version": "6.1.0", 1917 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", 1918 | "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" 1919 | }, 1920 | "npmlog": { 1921 | "version": "4.1.2", 1922 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", 1923 | "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", 1924 | "requires": { 1925 | "are-we-there-yet": "~1.1.2", 1926 | "console-control-strings": "~1.1.0", 1927 | "gauge": "~2.7.3", 1928 | "set-blocking": "~2.0.0" 1929 | } 1930 | }, 1931 | "number-is-nan": { 1932 | "version": "1.0.1", 1933 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 1934 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" 1935 | }, 1936 | "oauth-sign": { 1937 | "version": "0.9.0", 1938 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 1939 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" 1940 | }, 1941 | "object-assign": { 1942 | "version": "4.1.1", 1943 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1944 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1945 | }, 1946 | "object-hash": { 1947 | "version": "1.3.1", 1948 | "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.3.1.tgz", 1949 | "integrity": "sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA==" 1950 | }, 1951 | "on-finished": { 1952 | "version": "2.3.0", 1953 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1954 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1955 | "requires": { 1956 | "ee-first": "1.1.1" 1957 | } 1958 | }, 1959 | "on-headers": { 1960 | "version": "1.0.2", 1961 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 1962 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" 1963 | }, 1964 | "once": { 1965 | "version": "1.4.0", 1966 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1967 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1968 | "requires": { 1969 | "wrappy": "1" 1970 | } 1971 | }, 1972 | "one-time": { 1973 | "version": "1.0.0", 1974 | "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", 1975 | "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", 1976 | "requires": { 1977 | "fn.name": "1.x.x" 1978 | } 1979 | }, 1980 | "p-cancelable": { 1981 | "version": "2.1.1", 1982 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", 1983 | "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==" 1984 | }, 1985 | "packet-reader": { 1986 | "version": "1.0.0", 1987 | "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz", 1988 | "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==" 1989 | }, 1990 | "parse-srcset": { 1991 | "version": "1.0.2", 1992 | "resolved": "https://registry.npmjs.org/parse-srcset/-/parse-srcset-1.0.2.tgz", 1993 | "integrity": "sha1-8r0iH2zJcKk42IVWq8WJyqqiveE=" 1994 | }, 1995 | "parseurl": { 1996 | "version": "1.3.3", 1997 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1998 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1999 | }, 2000 | "path-is-absolute": { 2001 | "version": "1.0.1", 2002 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2003 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 2004 | }, 2005 | "path-parse": { 2006 | "version": "1.0.7", 2007 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 2008 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" 2009 | }, 2010 | "path-to-regexp": { 2011 | "version": "0.1.7", 2012 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 2013 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 2014 | }, 2015 | "performance-now": { 2016 | "version": "2.1.0", 2017 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 2018 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 2019 | }, 2020 | "pg": { 2021 | "version": "8.7.1", 2022 | "resolved": "https://registry.npmjs.org/pg/-/pg-8.7.1.tgz", 2023 | "integrity": "sha512-7bdYcv7V6U3KAtWjpQJJBww0UEsWuh4yQ/EjNf2HeO/NnvKjpvhEIe/A/TleP6wtmSKnUnghs5A9jUoK6iDdkA==", 2024 | "requires": { 2025 | "buffer-writer": "2.0.0", 2026 | "packet-reader": "1.0.0", 2027 | "pg-connection-string": "^2.5.0", 2028 | "pg-pool": "^3.4.1", 2029 | "pg-protocol": "^1.5.0", 2030 | "pg-types": "^2.1.0", 2031 | "pgpass": "1.x" 2032 | } 2033 | }, 2034 | "pg-connection-string": { 2035 | "version": "2.5.0", 2036 | "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.5.0.tgz", 2037 | "integrity": "sha512-r5o/V/ORTA6TmUnyWZR9nCj1klXCO2CEKNRlVuJptZe85QuhFayC7WeMic7ndayT5IRIR0S0xFxFi2ousartlQ==" 2038 | }, 2039 | "pg-int8": { 2040 | "version": "1.0.1", 2041 | "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", 2042 | "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==" 2043 | }, 2044 | "pg-minify": { 2045 | "version": "1.6.2", 2046 | "resolved": "https://registry.npmjs.org/pg-minify/-/pg-minify-1.6.2.tgz", 2047 | "integrity": "sha512-1KdmFGGTP6jplJoI8MfvRlfvMiyBivMRP7/ffh4a11RUFJ7kC2J0ZHlipoKiH/1hz+DVgceon9U2qbaHpPeyPg==" 2048 | }, 2049 | "pg-pool": { 2050 | "version": "3.4.1", 2051 | "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.4.1.tgz", 2052 | "integrity": "sha512-TVHxR/gf3MeJRvchgNHxsYsTCHQ+4wm3VIHSS19z8NC0+gioEhq1okDY1sm/TYbfoP6JLFx01s0ShvZ3puP/iQ==" 2053 | }, 2054 | "pg-promise": { 2055 | "version": "10.11.0", 2056 | "resolved": "https://registry.npmjs.org/pg-promise/-/pg-promise-10.11.0.tgz", 2057 | "integrity": "sha512-UntgHZNv+gpGJKhh+tzGSGHLkniKWV+ZQ8/SNdtvElsg9Aa7ZJ4Fgyl6pl2x0ZtJ7uFNy+OIq3Z+Ei6iplqTDQ==", 2058 | "requires": { 2059 | "assert-options": "0.7.0", 2060 | "pg": "8.7.1", 2061 | "pg-minify": "1.6.2", 2062 | "spex": "3.2.0" 2063 | } 2064 | }, 2065 | "pg-protocol": { 2066 | "version": "1.5.0", 2067 | "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.5.0.tgz", 2068 | "integrity": "sha512-muRttij7H8TqRNu/DxrAJQITO4Ac7RmX3Klyr/9mJEOBeIpgnF8f9jAfRz5d3XwQZl5qBjF9gLsUtMPJE0vezQ==" 2069 | }, 2070 | "pg-types": { 2071 | "version": "2.2.0", 2072 | "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", 2073 | "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", 2074 | "requires": { 2075 | "pg-int8": "1.0.1", 2076 | "postgres-array": "~2.0.0", 2077 | "postgres-bytea": "~1.0.0", 2078 | "postgres-date": "~1.0.4", 2079 | "postgres-interval": "^1.1.0" 2080 | } 2081 | }, 2082 | "pgpass": { 2083 | "version": "1.0.4", 2084 | "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.4.tgz", 2085 | "integrity": "sha512-YmuA56alyBq7M59vxVBfPJrGSozru8QAdoNlWuW3cz8l+UX3cWge0vTvjKhsSHSJpo3Bom8/Mm6hf0TR5GY0+w==", 2086 | "requires": { 2087 | "split2": "^3.1.1" 2088 | } 2089 | }, 2090 | "pify": { 2091 | "version": "3.0.0", 2092 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", 2093 | "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" 2094 | }, 2095 | "postcss": { 2096 | "version": "8.3.6", 2097 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.6.tgz", 2098 | "integrity": "sha512-wG1cc/JhRgdqB6WHEuyLTedf3KIRuD0hG6ldkFEZNCjRxiC+3i6kkWUUbiJQayP28iwG35cEmAbe98585BYV0A==", 2099 | "requires": { 2100 | "colorette": "^1.2.2", 2101 | "nanoid": "^3.1.23", 2102 | "source-map-js": "^0.6.2" 2103 | } 2104 | }, 2105 | "postgres-array": { 2106 | "version": "2.0.0", 2107 | "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", 2108 | "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==" 2109 | }, 2110 | "postgres-bytea": { 2111 | "version": "1.0.0", 2112 | "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz", 2113 | "integrity": "sha1-AntTPAqokOJtFy1Hz5zOzFIazTU=" 2114 | }, 2115 | "postgres-date": { 2116 | "version": "1.0.7", 2117 | "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", 2118 | "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==" 2119 | }, 2120 | "postgres-interval": { 2121 | "version": "1.2.0", 2122 | "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", 2123 | "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", 2124 | "requires": { 2125 | "xtend": "^4.0.0" 2126 | } 2127 | }, 2128 | "prebuild-install": { 2129 | "version": "5.3.6", 2130 | "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.3.6.tgz", 2131 | "integrity": "sha512-s8Aai8++QQGi4sSbs/M1Qku62PFK49Jm1CbgXklGz4nmHveDq0wzJkg7Na5QbnO1uNH8K7iqx2EQ/mV0MZEmOg==", 2132 | "requires": { 2133 | "detect-libc": "^1.0.3", 2134 | "expand-template": "^2.0.3", 2135 | "github-from-package": "0.0.0", 2136 | "minimist": "^1.2.3", 2137 | "mkdirp-classic": "^0.5.3", 2138 | "napi-build-utils": "^1.0.1", 2139 | "node-abi": "^2.7.0", 2140 | "noop-logger": "^0.1.1", 2141 | "npmlog": "^4.0.1", 2142 | "pump": "^3.0.0", 2143 | "rc": "^1.2.7", 2144 | "simple-get": "^3.0.3", 2145 | "tar-fs": "^2.0.0", 2146 | "tunnel-agent": "^0.6.0", 2147 | "which-pm-runs": "^1.0.0" 2148 | } 2149 | }, 2150 | "process-nextick-args": { 2151 | "version": "2.0.1", 2152 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 2153 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 2154 | }, 2155 | "prom-client": { 2156 | "version": "13.2.0", 2157 | "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-13.2.0.tgz", 2158 | "integrity": "sha512-wGr5mlNNdRNzEhRYXgboUU2LxHWIojxscJKmtG3R8f4/KiWqyYgXTLHs0+Ted7tG3zFT7pgHJbtomzZ1L0ARaQ==", 2159 | "requires": { 2160 | "tdigest": "^0.1.1" 2161 | } 2162 | }, 2163 | "proxy-addr": { 2164 | "version": "2.0.7", 2165 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 2166 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 2167 | "requires": { 2168 | "forwarded": "0.2.0", 2169 | "ipaddr.js": "1.9.1" 2170 | } 2171 | }, 2172 | "psl": { 2173 | "version": "1.8.0", 2174 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", 2175 | "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" 2176 | }, 2177 | "pump": { 2178 | "version": "3.0.0", 2179 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 2180 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 2181 | "requires": { 2182 | "end-of-stream": "^1.1.0", 2183 | "once": "^1.3.1" 2184 | } 2185 | }, 2186 | "punycode": { 2187 | "version": "2.1.1", 2188 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 2189 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 2190 | }, 2191 | "qs": { 2192 | "version": "6.7.0", 2193 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 2194 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 2195 | }, 2196 | "quick-lru": { 2197 | "version": "5.1.1", 2198 | "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", 2199 | "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==" 2200 | }, 2201 | "range-parser": { 2202 | "version": "1.2.1", 2203 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 2204 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 2205 | }, 2206 | "raw-body": { 2207 | "version": "2.4.0", 2208 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 2209 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 2210 | "requires": { 2211 | "bytes": "3.1.0", 2212 | "http-errors": "1.7.2", 2213 | "iconv-lite": "0.4.24", 2214 | "unpipe": "1.0.0" 2215 | } 2216 | }, 2217 | "rc": { 2218 | "version": "1.2.8", 2219 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 2220 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 2221 | "requires": { 2222 | "deep-extend": "^0.6.0", 2223 | "ini": "~1.3.0", 2224 | "minimist": "^1.2.0", 2225 | "strip-json-comments": "~2.0.1" 2226 | } 2227 | }, 2228 | "readable-stream": { 2229 | "version": "2.3.7", 2230 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 2231 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 2232 | "requires": { 2233 | "core-util-is": "~1.0.0", 2234 | "inherits": "~2.0.3", 2235 | "isarray": "~1.0.0", 2236 | "process-nextick-args": "~2.0.0", 2237 | "safe-buffer": "~5.1.1", 2238 | "string_decoder": "~1.1.1", 2239 | "util-deprecate": "~1.0.1" 2240 | } 2241 | }, 2242 | "reduce-flatten": { 2243 | "version": "1.0.1", 2244 | "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz", 2245 | "integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc=" 2246 | }, 2247 | "regenerator-runtime": { 2248 | "version": "0.13.9", 2249 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", 2250 | "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" 2251 | }, 2252 | "request": { 2253 | "version": "2.88.2", 2254 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", 2255 | "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", 2256 | "requires": { 2257 | "aws-sign2": "~0.7.0", 2258 | "aws4": "^1.8.0", 2259 | "caseless": "~0.12.0", 2260 | "combined-stream": "~1.0.6", 2261 | "extend": "~3.0.2", 2262 | "forever-agent": "~0.6.1", 2263 | "form-data": "~2.3.2", 2264 | "har-validator": "~5.1.3", 2265 | "http-signature": "~1.2.0", 2266 | "is-typedarray": "~1.0.0", 2267 | "isstream": "~0.1.2", 2268 | "json-stringify-safe": "~5.0.1", 2269 | "mime-types": "~2.1.19", 2270 | "oauth-sign": "~0.9.0", 2271 | "performance-now": "^2.1.0", 2272 | "qs": "~6.5.2", 2273 | "safe-buffer": "^5.1.2", 2274 | "tough-cookie": "~2.5.0", 2275 | "tunnel-agent": "^0.6.0", 2276 | "uuid": "^3.3.2" 2277 | }, 2278 | "dependencies": { 2279 | "qs": { 2280 | "version": "6.5.2", 2281 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 2282 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" 2283 | } 2284 | } 2285 | }, 2286 | "resolve": { 2287 | "version": "1.20.0", 2288 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", 2289 | "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", 2290 | "requires": { 2291 | "is-core-module": "^2.2.0", 2292 | "path-parse": "^1.0.6" 2293 | } 2294 | }, 2295 | "resolve-alpn": { 2296 | "version": "1.2.1", 2297 | "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", 2298 | "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" 2299 | }, 2300 | "responselike": { 2301 | "version": "2.0.0", 2302 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.0.tgz", 2303 | "integrity": "sha512-xH48u3FTB9VsZw7R+vvgaKeLKzT6jOogbQhEe/jewwnZgzPcnyWui2Av6JpoYZF/91uueC+lqhWqeURw5/qhCw==", 2304 | "requires": { 2305 | "lowercase-keys": "^2.0.0" 2306 | } 2307 | }, 2308 | "rimraf": { 2309 | "version": "3.0.2", 2310 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 2311 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 2312 | "requires": { 2313 | "glob": "^7.1.3" 2314 | } 2315 | }, 2316 | "safe-buffer": { 2317 | "version": "5.1.2", 2318 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 2319 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 2320 | }, 2321 | "safer-buffer": { 2322 | "version": "2.1.2", 2323 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 2324 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 2325 | }, 2326 | "sanitize-html": { 2327 | "version": "2.5.0", 2328 | "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.5.0.tgz", 2329 | "integrity": "sha512-smU67ODza8E0rJF7oY37qQqMF5srxwEkqsgV17PFfdYAtIxnicH8LIyDEGINJIso8bPaxRZS7zGhCjg6BeDoqQ==", 2330 | "requires": { 2331 | "deepmerge": "^4.2.2", 2332 | "escape-string-regexp": "^4.0.0", 2333 | "htmlparser2": "^6.0.0", 2334 | "is-plain-object": "^5.0.0", 2335 | "klona": "^2.0.3", 2336 | "parse-srcset": "^1.0.2", 2337 | "postcss": "^8.0.2" 2338 | }, 2339 | "dependencies": { 2340 | "domhandler": { 2341 | "version": "4.2.2", 2342 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz", 2343 | "integrity": "sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==", 2344 | "requires": { 2345 | "domelementtype": "^2.2.0" 2346 | } 2347 | }, 2348 | "escape-string-regexp": { 2349 | "version": "4.0.0", 2350 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 2351 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" 2352 | }, 2353 | "htmlparser2": { 2354 | "version": "6.1.0", 2355 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", 2356 | "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", 2357 | "requires": { 2358 | "domelementtype": "^2.0.1", 2359 | "domhandler": "^4.0.0", 2360 | "domutils": "^2.5.2", 2361 | "entities": "^2.0.0" 2362 | } 2363 | } 2364 | } 2365 | }, 2366 | "semver": { 2367 | "version": "5.7.1", 2368 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 2369 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 2370 | }, 2371 | "send": { 2372 | "version": "0.17.1", 2373 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 2374 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 2375 | "requires": { 2376 | "debug": "2.6.9", 2377 | "depd": "~1.1.2", 2378 | "destroy": "~1.0.4", 2379 | "encodeurl": "~1.0.2", 2380 | "escape-html": "~1.0.3", 2381 | "etag": "~1.8.1", 2382 | "fresh": "0.5.2", 2383 | "http-errors": "~1.7.2", 2384 | "mime": "1.6.0", 2385 | "ms": "2.1.1", 2386 | "on-finished": "~2.3.0", 2387 | "range-parser": "~1.2.1", 2388 | "statuses": "~1.5.0" 2389 | }, 2390 | "dependencies": { 2391 | "ms": { 2392 | "version": "2.1.1", 2393 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 2394 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 2395 | } 2396 | } 2397 | }, 2398 | "serve-static": { 2399 | "version": "1.14.1", 2400 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 2401 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 2402 | "requires": { 2403 | "encodeurl": "~1.0.2", 2404 | "escape-html": "~1.0.3", 2405 | "parseurl": "~1.3.3", 2406 | "send": "0.17.1" 2407 | } 2408 | }, 2409 | "set-blocking": { 2410 | "version": "2.0.0", 2411 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 2412 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" 2413 | }, 2414 | "setprototypeof": { 2415 | "version": "1.1.1", 2416 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 2417 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 2418 | }, 2419 | "signal-exit": { 2420 | "version": "3.0.3", 2421 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 2422 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" 2423 | }, 2424 | "simple-concat": { 2425 | "version": "1.0.1", 2426 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", 2427 | "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==" 2428 | }, 2429 | "simple-get": { 2430 | "version": "3.1.0", 2431 | "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.0.tgz", 2432 | "integrity": "sha512-bCR6cP+aTdScaQCnQKbPKtJOKDp/hj9EDLJo3Nw4y1QksqaovlW/bnptB6/c1e+qmNIDHRK+oXFDdEqBT8WzUA==", 2433 | "requires": { 2434 | "decompress-response": "^4.2.0", 2435 | "once": "^1.3.1", 2436 | "simple-concat": "^1.0.0" 2437 | }, 2438 | "dependencies": { 2439 | "decompress-response": { 2440 | "version": "4.2.1", 2441 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz", 2442 | "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==", 2443 | "requires": { 2444 | "mimic-response": "^2.0.0" 2445 | } 2446 | }, 2447 | "mimic-response": { 2448 | "version": "2.1.0", 2449 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz", 2450 | "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==" 2451 | } 2452 | } 2453 | }, 2454 | "simple-swizzle": { 2455 | "version": "0.2.2", 2456 | "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", 2457 | "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=", 2458 | "requires": { 2459 | "is-arrayish": "^0.3.1" 2460 | } 2461 | }, 2462 | "source-map-js": { 2463 | "version": "0.6.2", 2464 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz", 2465 | "integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==" 2466 | }, 2467 | "spex": { 2468 | "version": "3.2.0", 2469 | "resolved": "https://registry.npmjs.org/spex/-/spex-3.2.0.tgz", 2470 | "integrity": "sha512-9srjJM7NaymrpwMHvSmpDeIK5GoRMX/Tq0E8aOlDPS54dDnDUIp30DrP9SphMPEETDLzEM9+4qo+KipmbtPecg==" 2471 | }, 2472 | "split2": { 2473 | "version": "3.2.2", 2474 | "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", 2475 | "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", 2476 | "requires": { 2477 | "readable-stream": "^3.0.0" 2478 | }, 2479 | "dependencies": { 2480 | "readable-stream": { 2481 | "version": "3.6.0", 2482 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 2483 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 2484 | "requires": { 2485 | "inherits": "^2.0.3", 2486 | "string_decoder": "^1.1.1", 2487 | "util-deprecate": "^1.0.1" 2488 | } 2489 | } 2490 | } 2491 | }, 2492 | "sprintf-js": { 2493 | "version": "1.0.3", 2494 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 2495 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" 2496 | }, 2497 | "sshpk": { 2498 | "version": "1.16.1", 2499 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", 2500 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", 2501 | "requires": { 2502 | "asn1": "~0.2.3", 2503 | "assert-plus": "^1.0.0", 2504 | "bcrypt-pbkdf": "^1.0.0", 2505 | "dashdash": "^1.12.0", 2506 | "ecc-jsbn": "~0.1.1", 2507 | "getpass": "^0.1.1", 2508 | "jsbn": "~0.1.0", 2509 | "safer-buffer": "^2.0.2", 2510 | "tweetnacl": "~0.14.0" 2511 | } 2512 | }, 2513 | "stack-trace": { 2514 | "version": "0.0.10", 2515 | "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", 2516 | "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" 2517 | }, 2518 | "statuses": { 2519 | "version": "1.5.0", 2520 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 2521 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 2522 | }, 2523 | "steno": { 2524 | "version": "0.4.4", 2525 | "resolved": "https://registry.npmjs.org/steno/-/steno-0.4.4.tgz", 2526 | "integrity": "sha1-BxEFvfwobmYVwEA8J+nXtdy4Vcs=", 2527 | "requires": { 2528 | "graceful-fs": "^4.1.3" 2529 | } 2530 | }, 2531 | "string-width": { 2532 | "version": "1.0.2", 2533 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 2534 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 2535 | "requires": { 2536 | "code-point-at": "^1.0.0", 2537 | "is-fullwidth-code-point": "^1.0.0", 2538 | "strip-ansi": "^3.0.0" 2539 | } 2540 | }, 2541 | "string_decoder": { 2542 | "version": "1.1.1", 2543 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 2544 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 2545 | "requires": { 2546 | "safe-buffer": "~5.1.0" 2547 | } 2548 | }, 2549 | "strip-ansi": { 2550 | "version": "3.0.1", 2551 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 2552 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 2553 | "requires": { 2554 | "ansi-regex": "^2.0.0" 2555 | } 2556 | }, 2557 | "strip-json-comments": { 2558 | "version": "2.0.1", 2559 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 2560 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" 2561 | }, 2562 | "striptags": { 2563 | "version": "3.1.1", 2564 | "resolved": "https://registry.npmjs.org/striptags/-/striptags-3.1.1.tgz", 2565 | "integrity": "sha1-yMPn/db7S7OjKjt1LltePjgJPr0=" 2566 | }, 2567 | "supports-color": { 2568 | "version": "5.5.0", 2569 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 2570 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 2571 | "requires": { 2572 | "has-flag": "^3.0.0" 2573 | } 2574 | }, 2575 | "table-layout": { 2576 | "version": "0.4.5", 2577 | "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.5.tgz", 2578 | "integrity": "sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==", 2579 | "requires": { 2580 | "array-back": "^2.0.0", 2581 | "deep-extend": "~0.6.0", 2582 | "lodash.padend": "^4.6.1", 2583 | "typical": "^2.6.1", 2584 | "wordwrapjs": "^3.0.0" 2585 | }, 2586 | "dependencies": { 2587 | "array-back": { 2588 | "version": "2.0.0", 2589 | "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", 2590 | "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", 2591 | "requires": { 2592 | "typical": "^2.6.1" 2593 | } 2594 | }, 2595 | "typical": { 2596 | "version": "2.6.1", 2597 | "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", 2598 | "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=" 2599 | } 2600 | } 2601 | }, 2602 | "tar": { 2603 | "version": "4.4.10", 2604 | "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.10.tgz", 2605 | "integrity": "sha512-g2SVs5QIxvo6OLp0GudTqEf05maawKUxXru104iaayWA09551tFCTI8f1Asb4lPfkBr91k07iL4c11XO3/b0tA==", 2606 | "requires": { 2607 | "chownr": "^1.1.1", 2608 | "fs-minipass": "^1.2.5", 2609 | "minipass": "^2.3.5", 2610 | "minizlib": "^1.2.1", 2611 | "mkdirp": "^0.5.0", 2612 | "safe-buffer": "^5.1.2", 2613 | "yallist": "^3.0.3" 2614 | }, 2615 | "dependencies": { 2616 | "mkdirp": { 2617 | "version": "0.5.5", 2618 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 2619 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 2620 | "requires": { 2621 | "minimist": "^1.2.5" 2622 | } 2623 | }, 2624 | "yallist": { 2625 | "version": "3.1.1", 2626 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", 2627 | "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" 2628 | } 2629 | } 2630 | }, 2631 | "tar-fs": { 2632 | "version": "2.1.1", 2633 | "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", 2634 | "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", 2635 | "requires": { 2636 | "chownr": "^1.1.1", 2637 | "mkdirp-classic": "^0.5.2", 2638 | "pump": "^3.0.0", 2639 | "tar-stream": "^2.1.4" 2640 | } 2641 | }, 2642 | "tar-stream": { 2643 | "version": "2.2.0", 2644 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", 2645 | "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", 2646 | "requires": { 2647 | "bl": "^4.0.3", 2648 | "end-of-stream": "^1.4.1", 2649 | "fs-constants": "^1.0.0", 2650 | "inherits": "^2.0.3", 2651 | "readable-stream": "^3.1.1" 2652 | }, 2653 | "dependencies": { 2654 | "readable-stream": { 2655 | "version": "3.6.0", 2656 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 2657 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 2658 | "requires": { 2659 | "inherits": "^2.0.3", 2660 | "string_decoder": "^1.1.1", 2661 | "util-deprecate": "^1.0.1" 2662 | } 2663 | } 2664 | } 2665 | }, 2666 | "tdigest": { 2667 | "version": "0.1.1", 2668 | "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.1.tgz", 2669 | "integrity": "sha1-Ljyyw56kSeVdHmzZEReszKRYgCE=", 2670 | "requires": { 2671 | "bintrees": "1.0.1" 2672 | } 2673 | }, 2674 | "text-hex": { 2675 | "version": "1.0.0", 2676 | "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", 2677 | "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" 2678 | }, 2679 | "toidentifier": { 2680 | "version": "1.0.0", 2681 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 2682 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 2683 | }, 2684 | "tough-cookie": { 2685 | "version": "2.5.0", 2686 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", 2687 | "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", 2688 | "requires": { 2689 | "psl": "^1.1.28", 2690 | "punycode": "^2.1.1" 2691 | } 2692 | }, 2693 | "triple-beam": { 2694 | "version": "1.3.0", 2695 | "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", 2696 | "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" 2697 | }, 2698 | "tslib": { 2699 | "version": "1.14.1", 2700 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 2701 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" 2702 | }, 2703 | "tslint": { 2704 | "version": "5.20.1", 2705 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz", 2706 | "integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", 2707 | "requires": { 2708 | "@babel/code-frame": "^7.0.0", 2709 | "builtin-modules": "^1.1.1", 2710 | "chalk": "^2.3.0", 2711 | "commander": "^2.12.1", 2712 | "diff": "^4.0.1", 2713 | "glob": "^7.1.1", 2714 | "js-yaml": "^3.13.1", 2715 | "minimatch": "^3.0.4", 2716 | "mkdirp": "^0.5.1", 2717 | "resolve": "^1.3.2", 2718 | "semver": "^5.3.0", 2719 | "tslib": "^1.8.0", 2720 | "tsutils": "^2.29.0" 2721 | }, 2722 | "dependencies": { 2723 | "mkdirp": { 2724 | "version": "0.5.5", 2725 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 2726 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 2727 | "requires": { 2728 | "minimist": "^1.2.5" 2729 | } 2730 | } 2731 | } 2732 | }, 2733 | "tsutils": { 2734 | "version": "2.29.0", 2735 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 2736 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 2737 | "requires": { 2738 | "tslib": "^1.8.1" 2739 | } 2740 | }, 2741 | "tunnel-agent": { 2742 | "version": "0.6.0", 2743 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 2744 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 2745 | "requires": { 2746 | "safe-buffer": "^5.0.1" 2747 | } 2748 | }, 2749 | "tweetnacl": { 2750 | "version": "0.14.5", 2751 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 2752 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" 2753 | }, 2754 | "type-fest": { 2755 | "version": "0.8.1", 2756 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 2757 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" 2758 | }, 2759 | "type-is": { 2760 | "version": "1.6.18", 2761 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2762 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2763 | "requires": { 2764 | "media-typer": "0.3.0", 2765 | "mime-types": "~2.1.24" 2766 | } 2767 | }, 2768 | "typescript": { 2769 | "version": "3.9.10", 2770 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", 2771 | "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==" 2772 | }, 2773 | "typical": { 2774 | "version": "4.0.0", 2775 | "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", 2776 | "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==" 2777 | }, 2778 | "uc.micro": { 2779 | "version": "1.0.6", 2780 | "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", 2781 | "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==" 2782 | }, 2783 | "unescape": { 2784 | "version": "1.0.1", 2785 | "resolved": "https://registry.npmjs.org/unescape/-/unescape-1.0.1.tgz", 2786 | "integrity": "sha512-O0+af1Gs50lyH1nUu3ZyYS1cRh01Q/kUKatTOkSs7jukXE6/NebucDVxyiDsA9AQ4JC1V1jUH9EO8JX2nMDgGQ==", 2787 | "requires": { 2788 | "extend-shallow": "^2.0.1" 2789 | } 2790 | }, 2791 | "unpipe": { 2792 | "version": "1.0.0", 2793 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2794 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 2795 | }, 2796 | "uri-js": { 2797 | "version": "4.4.1", 2798 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2799 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2800 | "requires": { 2801 | "punycode": "^2.1.0" 2802 | } 2803 | }, 2804 | "url-join": { 2805 | "version": "4.0.1", 2806 | "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", 2807 | "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==" 2808 | }, 2809 | "util-deprecate": { 2810 | "version": "1.0.2", 2811 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2812 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 2813 | }, 2814 | "utils-merge": { 2815 | "version": "1.0.1", 2816 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2817 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 2818 | }, 2819 | "uuid": { 2820 | "version": "3.4.0", 2821 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", 2822 | "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" 2823 | }, 2824 | "vary": { 2825 | "version": "1.1.2", 2826 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2827 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 2828 | }, 2829 | "verror": { 2830 | "version": "1.10.0", 2831 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 2832 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 2833 | "requires": { 2834 | "assert-plus": "^1.0.0", 2835 | "core-util-is": "1.0.2", 2836 | "extsprintf": "^1.2.0" 2837 | }, 2838 | "dependencies": { 2839 | "core-util-is": { 2840 | "version": "1.0.2", 2841 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 2842 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 2843 | } 2844 | } 2845 | }, 2846 | "whatwg-fetch": { 2847 | "version": "3.6.2", 2848 | "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", 2849 | "integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA==" 2850 | }, 2851 | "which-pm-runs": { 2852 | "version": "1.0.0", 2853 | "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz", 2854 | "integrity": "sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=" 2855 | }, 2856 | "wide-align": { 2857 | "version": "1.1.3", 2858 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 2859 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 2860 | "requires": { 2861 | "string-width": "^1.0.2 || 2" 2862 | } 2863 | }, 2864 | "winston": { 2865 | "version": "3.3.3", 2866 | "resolved": "https://registry.npmjs.org/winston/-/winston-3.3.3.tgz", 2867 | "integrity": "sha512-oEXTISQnC8VlSAKf1KYSSd7J6IWuRPQqDdo8eoRNaYKLvwSb5+79Z3Yi1lrl6KDpU6/VWaxpakDAtb1oQ4n9aw==", 2868 | "requires": { 2869 | "@dabh/diagnostics": "^2.0.2", 2870 | "async": "^3.1.0", 2871 | "is-stream": "^2.0.0", 2872 | "logform": "^2.2.0", 2873 | "one-time": "^1.0.0", 2874 | "readable-stream": "^3.4.0", 2875 | "stack-trace": "0.0.x", 2876 | "triple-beam": "^1.3.0", 2877 | "winston-transport": "^4.4.0" 2878 | }, 2879 | "dependencies": { 2880 | "readable-stream": { 2881 | "version": "3.6.0", 2882 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 2883 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 2884 | "requires": { 2885 | "inherits": "^2.0.3", 2886 | "string_decoder": "^1.1.1", 2887 | "util-deprecate": "^1.0.1" 2888 | } 2889 | } 2890 | } 2891 | }, 2892 | "winston-compat": { 2893 | "version": "0.1.5", 2894 | "resolved": "https://registry.npmjs.org/winston-compat/-/winston-compat-0.1.5.tgz", 2895 | "integrity": "sha512-EPvPcHT604AV3Ji6d3+vX8ENKIml9VSxMRnPQ+cuK/FX6f3hvPP2hxyoeeCOCFvDrJEujalfcKWlWPvAnFyS9g==", 2896 | "requires": { 2897 | "cycle": "~1.0.3", 2898 | "logform": "^1.6.0", 2899 | "triple-beam": "^1.2.0" 2900 | }, 2901 | "dependencies": { 2902 | "fecha": { 2903 | "version": "2.3.3", 2904 | "resolved": "https://registry.npmjs.org/fecha/-/fecha-2.3.3.tgz", 2905 | "integrity": "sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg==" 2906 | }, 2907 | "logform": { 2908 | "version": "1.10.0", 2909 | "resolved": "https://registry.npmjs.org/logform/-/logform-1.10.0.tgz", 2910 | "integrity": "sha512-em5ojIhU18fIMOw/333mD+ZLE2fis0EzXl1ZwHx4iQzmpQi6odNiY/t+ITNr33JZhT9/KEaH+UPIipr6a9EjWg==", 2911 | "requires": { 2912 | "colors": "^1.2.1", 2913 | "fast-safe-stringify": "^2.0.4", 2914 | "fecha": "^2.3.3", 2915 | "ms": "^2.1.1", 2916 | "triple-beam": "^1.2.0" 2917 | } 2918 | }, 2919 | "ms": { 2920 | "version": "2.1.3", 2921 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2922 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 2923 | } 2924 | } 2925 | }, 2926 | "winston-daily-rotate-file": { 2927 | "version": "3.10.0", 2928 | "resolved": "https://registry.npmjs.org/winston-daily-rotate-file/-/winston-daily-rotate-file-3.10.0.tgz", 2929 | "integrity": "sha512-KO8CfbI2CvdR3PaFApEH02GPXiwJ+vbkF1mCkTlvRIoXFI8EFlf1ACcuaahXTEiDEKCii6cNe95gsL4ZkbnphA==", 2930 | "requires": { 2931 | "file-stream-rotator": "^0.4.1", 2932 | "object-hash": "^1.3.0", 2933 | "semver": "^6.2.0", 2934 | "triple-beam": "^1.3.0", 2935 | "winston-compat": "^0.1.4", 2936 | "winston-transport": "^4.2.0" 2937 | }, 2938 | "dependencies": { 2939 | "semver": { 2940 | "version": "6.3.0", 2941 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 2942 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 2943 | } 2944 | } 2945 | }, 2946 | "winston-transport": { 2947 | "version": "4.4.0", 2948 | "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.4.0.tgz", 2949 | "integrity": "sha512-Lc7/p3GtqtqPBYYtS6KCN3c77/2QCev51DvcJKbkFPQNoj1sinkGwLGFDxkXY9J6p9+EPnYs+D90uwbnaiURTw==", 2950 | "requires": { 2951 | "readable-stream": "^2.3.7", 2952 | "triple-beam": "^1.2.0" 2953 | } 2954 | }, 2955 | "wordwrapjs": { 2956 | "version": "3.0.0", 2957 | "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-3.0.0.tgz", 2958 | "integrity": "sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==", 2959 | "requires": { 2960 | "reduce-flatten": "^1.0.1", 2961 | "typical": "^2.6.1" 2962 | }, 2963 | "dependencies": { 2964 | "typical": { 2965 | "version": "2.6.1", 2966 | "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", 2967 | "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=" 2968 | } 2969 | } 2970 | }, 2971 | "wrappy": { 2972 | "version": "1.0.2", 2973 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2974 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 2975 | }, 2976 | "xtend": { 2977 | "version": "4.0.2", 2978 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 2979 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" 2980 | }, 2981 | "yallist": { 2982 | "version": "4.0.0", 2983 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2984 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 2985 | } 2986 | } 2987 | } 2988 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mx-puppet-msteams-chat", 3 | "version": "0.0.1", 4 | "description": "MS Teams Matrix Bridge", 5 | "main": "index.js", 6 | "scripts": { 7 | "build": "tsc", 8 | "lint": "tslint --project ./tsconfig.json -t stylish", 9 | "start": "npm run-script build && node ./build/index.js", 10 | "debug": "npm run-script build && node ./build/index.js", 11 | "test": "echo \"Error: no test specified\" && exit 1" 12 | }, 13 | "author": "Neil Burrows", 14 | "dependencies": { 15 | "@microsoft/microsoft-graph-client": "^2.2.1", 16 | "command-line-args": "^5.1.1", 17 | "command-line-usage": "^5.0.5", 18 | "escape-html": "^1.0.3", 19 | "events": "^3.1.0", 20 | "got": "^11.8.2", 21 | "html-to-formatted-text": "^2.7.0", 22 | "isomorphic-fetch": "^3.0.0", 23 | "js-yaml": "^3.13.1", 24 | "jwt-decode": "^3.1.2", 25 | "moment": "^2.29.1", 26 | "mx-puppet-bridge": "0.1.4", 27 | "node-emoji": "^1.10.0", 28 | "request": "^2.88.2", 29 | "tslint": "^5.20.1", 30 | "typescript": "^3.8.3", 31 | "url-join": "^4.0.1" 32 | }, 33 | "devDependencies": { 34 | "@types/node": "^12.12.34" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /sample.config.yaml: -------------------------------------------------------------------------------- 1 | # For more generic bridge configuration options have a look at 2 | # https://github.com/Sorunome/mx-puppet-bridge/blob/master/sample.config.yaml 3 | 4 | bridge: 5 | # Port to host the bridge on 6 | # Used for communication between the homeserver and the bridge 7 | port: 8432 8 | # The host connections to the bridge's webserver are allowed from 9 | bindAddress: localhost 10 | # Public domain of the homeserver 11 | domain: matrix.org 12 | # Reachable URL of the Matrix homeserver 13 | homeserverUrl: https://matrix.org 14 | 15 | # Microaoft Azure OAuth settings. See README.md for info on how to configure. 16 | oauth: 17 | # Azure app credentials. 18 | clientId: AZURE_APP_CLIENT_ID 19 | clientSecret: AZURE_APP_CLIENT_SECRET 20 | # Azure Auth Endpoint 21 | #endPoint: https://login.windows.net/common/oauth2/v2.0 22 | # Path where to listen for OAuth redirect callbacks. 23 | redirectPath: /msteams/oauth 24 | # This is the base URL Azure will use for push webhooks, and where users will be directed to login 25 | serverBaseUri: https://your.domain/ 26 | 27 | # Teams related settings 28 | teams: 29 | # Chats updated in the last X days will be considered recent 30 | recentChatDays: 40 31 | # How frequently to poll for new chats (seconds) 32 | newChatPollingPeriod: 300 33 | 34 | presence: 35 | # Bridge Discord online/offline status 36 | enabled: true 37 | # How often to send status to the homeserver in milliseconds 38 | interval: 500 39 | 40 | provisioning: 41 | # Regex of Matrix IDs allowed to use the puppet bridge 42 | whitelist: 43 | # Allow a specific user 44 | #- "@user:server\\.com" 45 | # Allow users on a specific homeserver 46 | - "@.*:yourserver\\.com" 47 | # Allow anyone 48 | #- ".*" 49 | # Regex of Matrix IDs forbidden from using the puppet bridge 50 | #blacklist: 51 | # Disallow a specific user 52 | #- "@user:server\\.com" 53 | # Disallow users on a specific homeserver 54 | #- "@.*:yourserver\\.com" 55 | 56 | # Shared secret for the provisioning API for use by integration managers. 57 | # If this is not set, the provisioning API will not be enabled. 58 | #sharedSecret: random string 59 | # Path prefix for the provisioning API. /v1 will be appended to the prefix automatically. 60 | apiPrefix: /_matrix/provision 61 | 62 | database: 63 | # Use Postgres as a database backend 64 | # If set, will be used instead of SQLite3 65 | # Connection string to connect to the Postgres instance 66 | # with username "user", password "pass", host "localhost" and database name "dbname". 67 | # Modify each value as necessary 68 | #connString: "postgres://user:pass@localhost/dbname?sslmode=disable" 69 | # Use SQLite3 as a database backend 70 | # The name of the database file 71 | filename: database.db 72 | 73 | logging: 74 | # Log level of console output 75 | # Allowed values starting with most verbose: 76 | # silly, verbose, info, warn, error 77 | console: info 78 | # Date and time formatting 79 | lineDateFormat: MMM-D HH:mm:ss.SSS 80 | # Logging files 81 | # Log files are rotated daily by default 82 | files: 83 | # Log file path 84 | - file: "bridge.log" 85 | # Log level for this file 86 | # Allowed values starting with most verbose: 87 | # silly, debug, verbose, info, warn, error 88 | level: info 89 | # Date and time formatting 90 | datePattern: YYYY-MM-DD 91 | # Maximum number of logs to keep. 92 | # This can be a number of files or number of days. 93 | # If using days, add 'd' as a suffix 94 | maxFiles: 14d 95 | # Maximum size of the file after which it will rotate. This can be a 96 | # number of bytes, or units of kb, mb, and gb. If using the units, add 97 | # 'k', 'm', or 'g' as the suffix 98 | maxSize: 50m 99 | 100 | namePatterns: 101 | # The default displayname for a bridged user 102 | # 103 | # Available variables: 104 | # 105 | # name: username of the user 106 | # team: name of the team 107 | user: :name 108 | -------------------------------------------------------------------------------- /src/auth/auth-provider.ts: -------------------------------------------------------------------------------- 1 | import { Request, Response } from "express"; 2 | import { IRetData, Log } from "mx-puppet-bridge"; 3 | import { Config } from "../index"; 4 | import jwt_decode from "jwt-decode"; 5 | import "isomorphic-fetch" 6 | import { IStoreToken, MSTeamsStore } from "../store"; 7 | import * as moment from "moment"; 8 | import * as urljoin from 'url-join'; 9 | 10 | const request = require('request') 11 | const got = require('got'); 12 | 13 | const log = new Log("TeamsPuppet:auth_provider"); 14 | 15 | export class AuthProvider { 16 | 17 | public static tmpTokenStore: Array = [] 18 | 19 | constructor(private store: MSTeamsStore) { } 20 | 21 | public async getAccessToken(puppetId: number): Promise { 22 | 23 | let token: IStoreToken; 24 | try { 25 | 26 | token = await this.store.getToken(puppetId); 27 | } 28 | catch (err) { 29 | log.error(`Unable to load token for puppet ${puppetId} :: ${err}`); 30 | return Promise.reject("Unable to load token"); 31 | } 32 | 33 | // Check if token has expired 34 | if (moment.unix(token.accessExpiry) < moment()) { 35 | token = await this.refreshAccessToken(token); 36 | } 37 | else if (moment.unix(token.accessExpiry) < moment().add(-15, 'm')) { 38 | // If less than 15 mins left, kick off a background refresh 39 | this.refreshAccessToken(token); 40 | } 41 | 42 | return token.accessToken; 43 | } 44 | 45 | 46 | private async refreshAccessToken(currentToken: IStoreToken): Promise { 47 | 48 | // TODO: User Semaphore to prevent multiple refresh requests 49 | 50 | log.verbose("refreshAccessToken: Requesting new access token"); 51 | 52 | const tokenRequestUrl = `${Config().oauth.endPoint}/token`; 53 | try { 54 | const response = await got.post(tokenRequestUrl, { 55 | form: { 56 | grant_type: 'refresh_token', 57 | client_id: Config().oauth.clientId, 58 | client_secret: Config().oauth.clientSecret, 59 | refresh_token: currentToken.refreshToken 60 | } 61 | }).json(); 62 | 63 | // Update the store token, save and return 64 | currentToken.accessToken = response.access_token; 65 | currentToken.refreshToken = response.refresh_token; 66 | currentToken.accessExpiry = response.expires_on; 67 | 68 | this.store.storeToken(currentToken.puppetId, currentToken); 69 | 70 | return currentToken; 71 | 72 | } catch (error) { 73 | log.error("Unable to refresh token", error.response.body); 74 | return Promise.reject("Unable to refresh token"); 75 | } 76 | } 77 | 78 | 79 | public async checkForNewAuthorization(puppetId: number, authCode: string): Promise { 80 | 81 | if (!AuthProvider.tmpTokenStore[authCode]) { 82 | return; 83 | } 84 | 85 | const tokenData = AuthProvider.tmpTokenStore[authCode]; 86 | 87 | let token: IStoreToken = { 88 | puppetId: puppetId, 89 | userId: (jwt_decode(tokenData.access_token) as any).oid, 90 | accessExpiry: tokenData.expires_on, 91 | refreshToken: tokenData.refresh_token, 92 | accessToken: tokenData.access_token, 93 | login: tokenData.not_before 94 | } 95 | 96 | await this.store.storeToken(puppetId, token); 97 | } 98 | 99 | 100 | public static oauthCallback = async (req: Request, res: Response) => { 101 | if (typeof req.query.code !== "string") { 102 | res.status(forbidden).send(getHtmlResponse("Error!!")); 103 | return; 104 | } 105 | 106 | const _accessCode = req.query.code; 107 | 108 | if (_accessCode) { 109 | const tokenRequestUrl = `${Config().oauth.endPoint}/token`; 110 | 111 | const tokenRequestBody = { 112 | grant_type: 'authorization_code', 113 | client_id: Config().oauth.clientId, 114 | client_secret: Config().oauth.clientSecret, 115 | code: _accessCode, 116 | redirect_uri: urljoin(Config().oauth.serverBaseUri, `/msteams/oauth`), 117 | resource: 'https://graph.microsoft.com' 118 | }; 119 | 120 | request.post( 121 | { url: tokenRequestUrl, form: tokenRequestBody }, 122 | (err, httpResponse, body) => { 123 | if (!err) { 124 | let code = Math.random().toString(26).substr(2, 6); 125 | 126 | if (AuthProvider.tmpTokenStore[code] === undefined) { 127 | AuthProvider.tmpTokenStore[code] = JSON.parse(body); 128 | 129 | res.send(getHtmlResponse(code)); 130 | } else { 131 | log.error("Clash of random codes - what are the chances... : ", AuthProvider.tmpTokenStore[code]) 132 | } 133 | 134 | 135 | } else { 136 | // Probably throw an error? 137 | log.error("Error retrieving acces code", err); 138 | } 139 | } 140 | ); 141 | } else { 142 | // Probably throw an error? 143 | log.error("Missing access code in oauth callback") 144 | res.send(getHtmlResponse("Error")); 145 | } 146 | } 147 | 148 | 149 | public static getDataFromStrHook = async (str: string): Promise => { 150 | const retData = { 151 | success: false, 152 | } as IRetData; 153 | if (!str) { 154 | retData.error = `Please specify the Auth Code you received after logging in.\n\nIf you have not logged in yet, please visit ${urljoin(Config().oauth.serverBaseUri, "/login")} `; 155 | return retData; 156 | } 157 | 158 | if (str.trim().length != 6) { 159 | retData.error = `The Auth code should be the 6 character code you received after logging in.\n\nIf you have not logged in yet, please visit ${urljoin(Config().oauth.serverBaseUri, "/login")} `; 160 | return retData; 161 | } 162 | 163 | if (AuthProvider.tmpTokenStore[str.trim()] === undefined) { 164 | retData.error = `The Auth code '${str.trim()}' is invalid, or has expired.`; 165 | return retData; 166 | } 167 | 168 | const token = AuthProvider.tmpTokenStore[str.trim()] 169 | 170 | // Check that token has required Scopes 171 | const scopes = token.scope.toLowerCase().split(" "); 172 | if (!(scopes.includes("chat.readwrite") && scopes.includes("chatmessage.read") && scopes.includes("user.read"))) { 173 | retData.error = `The received token for auth code '${str.trim()}' does not include the required scopes (Chat.ReadWrite, ChatMessage.Read and ChatMessage.Send). Please check your Azure Application setup.`; 174 | return retData; 175 | } 176 | 177 | // Extract userId from Token 178 | let userId: string = ""; 179 | try { 180 | userId = (jwt_decode(token.access_token) as any).oid; 181 | } catch { 182 | retData.error = `Unable to retrieve user id from token.`; 183 | return retData; 184 | } 185 | 186 | if (userId == "") { 187 | retData.error = `Token does not contain oid.`; 188 | return retData; 189 | } 190 | 191 | 192 | retData.data = { 193 | userId: userId, 194 | auth_code: str.trim(), 195 | access_token: token.access_token, 196 | refresh_token: token.refresh_token, 197 | login: token.not_before, 198 | expiry: token.expires_on 199 | } 200 | 201 | retData.success = true; 202 | return retData; 203 | }; 204 | 205 | } 206 | 207 | const forbidden = 403; 208 | const getHtmlResponse = (code) => ` 209 | 210 | 211 | MS Teams Auth token 212 | 218 | 219 | 220 |

Your Auth Code is: ${code}

221 |

Use it by talking to the MS Teams Puppet Bridge Bot by saying
link ${code}
222 |

223 | 224 | 225 | `; 226 | 227 | 228 | 229 | export const getNewAccessToken = async (code: string): Promise => { 230 | const tokenRequestUrl = urljoin(Config().oauth.endPoint, "/token"); 231 | try { 232 | const response = await got.post(tokenRequestUrl, { 233 | form: { 234 | grant_type: 'refresh_token', 235 | client_id: Config().oauth.clientId, 236 | client_secret: Config().oauth.clientSecret, 237 | refresh_token: code 238 | } 239 | }).json(); 240 | return response; 241 | } catch (error) { 242 | log.error("Error getting access token", error.response.body); 243 | } 244 | 245 | } 246 | 247 | export const authSuccess = function (req, res) { 248 | res.redirect('/'); 249 | }; -------------------------------------------------------------------------------- /src/auth/teams-auth-provider.ts: -------------------------------------------------------------------------------- 1 | import { AuthenticationProvider } from "@microsoft/microsoft-graph-client"; 2 | import * as moment from "moment"; 3 | import { Log } from "mx-puppet-bridge"; 4 | import { AuthProvider } from "./auth-provider"; 5 | import jwt_decode from "jwt-decode"; 6 | 7 | const log = new Log("TeamsPuppet:teams_auth_provider"); 8 | 9 | /* 10 | * Auth Provider for MS Graph client 11 | */ 12 | export class TeamsAuthProvider implements AuthenticationProvider { 13 | 14 | private accessToken: string = ""; 15 | private tokenExpiry: moment.Moment; 16 | 17 | constructor(private puppetId: number, private authProvider: AuthProvider) { } 18 | 19 | /** 20 | * This method will get called before every request to the msgraph server 21 | * This should return a Promise that resolves to an accessToken (in case of success) or rejects with error (in case of failure) 22 | * Basically this method will contain the implementation for getting and refreshing accessTokens 23 | */ 24 | public async getAccessToken(): Promise { 25 | 26 | if (this.accessToken.length > 0 && this.tokenExpiry > moment()) { 27 | return this.accessToken; 28 | } 29 | 30 | // Get access token from auth provider 31 | try { 32 | this.accessToken = await this.authProvider.getAccessToken(this.puppetId); 33 | 34 | // Get expiry info 35 | this.tokenExpiry = moment.unix(jwt_decode(this.accessToken).exp); 36 | 37 | return this.accessToken; 38 | } 39 | catch (err) { 40 | log.error(`Unable to get access token for puppet ${this.puppetId} :: ${err}`); 41 | return Promise.reject("Unable to get access token"); 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- 1 | export class TeamsConfigWrap { 2 | public oauth: OAuthConfig = new OAuthConfig(); 3 | public teams: TeamsConfig = new TeamsConfig(); 4 | 5 | public applyConfig(newConfig: {[key: string]: any}, configLayer: {[key: string]: any} = this) { 6 | Object.keys(newConfig).forEach((key) => { 7 | if (configLayer[key] instanceof Object && !(configLayer[key] instanceof Array)) { 8 | this.applyConfig(newConfig[key], configLayer[key]); 9 | } else { 10 | configLayer[key] = newConfig[key]; 11 | } 12 | }); 13 | } 14 | } 15 | 16 | class OAuthConfig { 17 | public clientId = ""; 18 | public clientSecret = ""; 19 | public redirectPath = ""; 20 | public serverBaseUri = ""; 21 | public endPoint = "https://login.windows.net/common/oauth2/v2.0" 22 | } 23 | 24 | class TeamsConfig { 25 | public recentChatDays: number = 30; 26 | public newChatPollingPeriod: number = 300; 27 | public path: string = "/_matrix/Teams/client"; 28 | } 29 | -------------------------------------------------------------------------------- /src/db/schema/v1.ts: -------------------------------------------------------------------------------- 1 | import { IDbSchema, Store } from "mx-puppet-bridge"; 2 | 3 | export class Schema implements IDbSchema { 4 | public description = "Schema, Tokenstore"; 5 | public async run(store: Store) { 6 | await store.createTable(` 7 | CREATE TABLE teams_schema ( 8 | version INTEGER UNIQUE NOT NULL 9 | );`, "teams_schema"); 10 | await store.db.Exec("INSERT INTO teams_schema VALUES (0);"); 11 | await store.createTable(` 12 | CREATE TABLE teams_tokenstore ( 13 | puppet_id INTEGER NOT NULL, 14 | access_token TEXT NOT NULL, 15 | refresh_token TEXT NOT NULL, 16 | user_id TEXT NOT NULL, 17 | login INTEGER NOT NULL, 18 | access_expiry INTEGER NOT NULL 19 | );`, "teams_tokenstore"); 20 | await store.createTable(` 21 | CREATE TABLE teams_subscriptions ( 22 | puppet_id INTEGER NOT NULL, 23 | room_id TEXT NOT NULL, 24 | subscription_id TEXT NOT NULL, 25 | expiry INTEGER NOT NULL 26 | );`, "teams_subscriptions"); 27 | } 28 | public async rollBack(store: Store) { 29 | await store.db.Exec("DROP TABLE IF EXISTS teams_schema"); 30 | await store.db.Exec("DROP TABLE IF EXISTS teams_tokenstore"); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import { 2 | PuppetBridge, 3 | IProtocolInformation, 4 | IPuppetBridgeRegOpts, 5 | Log, 6 | } from "mx-puppet-bridge"; 7 | 8 | import * as commandLineArgs from "command-line-args"; 9 | import * as commandLineUsage from "command-line-usage"; 10 | import * as fs from "fs"; 11 | import * as yaml from "js-yaml"; 12 | import { AuthProvider } from "./auth/auth-provider"; 13 | import { App } from "./teams"; 14 | import { TeamsConfigWrap } from "./config"; 15 | const urljoin = require('url-join'); 16 | 17 | const log = new Log("MSTeamsPuppet:index"); 18 | 19 | const commandOptions = [ 20 | { name: "register", alias: "r", type: Boolean }, 21 | { name: "registration-file", alias: "f", type: String }, 22 | { name: "config", alias: "c", type: String }, 23 | { name: "help", alias: "h", type: Boolean }, 24 | ]; 25 | const options = Object.assign({ 26 | "register": false, 27 | "registration-file": "msteams-registration.yaml", 28 | "config": "config.yaml", 29 | "help": false, 30 | }, commandLineArgs(commandOptions)); 31 | 32 | if (options.help) { 33 | console.log(commandLineUsage([ 34 | { 35 | header: "Matrix Microsft Teams (Chat) Puppet Bridge", 36 | content: "A matrix puppet bridge for chats in Microsoft Teams", 37 | }, 38 | { 39 | header: "Options", 40 | optionList: commandOptions, 41 | }, 42 | ])); 43 | process.exit(0); 44 | } 45 | 46 | const protocol = { 47 | features: { 48 | image: true, 49 | file: true, 50 | presence: false, 51 | edit: true, 52 | reply: true, 53 | globalNamespace: true, 54 | }, 55 | id: "msteams", 56 | displayname: "MS Teams", 57 | externalUrl: "https://teams.microsoft.com/", 58 | } as IProtocolInformation; 59 | 60 | const puppet = new PuppetBridge(options["registration-file"], options.config, protocol); 61 | 62 | if (options.register) { 63 | // okay, all we have to do is generate a registration file 64 | puppet.readConfig(false); 65 | try { 66 | puppet.generateRegistration({ 67 | prefix: "_teamspuppet_", 68 | id: "teams-puppet", 69 | url: `http://${puppet.Config.bridge.bindAddress}:${puppet.Config.bridge.port}`, 70 | } as IPuppetBridgeRegOpts); 71 | } catch (err) { 72 | console.log("Couldn't generate registration file:", err); 73 | } 74 | process.exit(0); 75 | } 76 | 77 | let config: TeamsConfigWrap = new TeamsConfigWrap(); 78 | 79 | function readConfig() { 80 | config = new TeamsConfigWrap(); 81 | config.applyConfig(yaml.safeLoad(fs.readFileSync(options.config))); 82 | } 83 | 84 | export function Config(): TeamsConfigWrap { 85 | return config; 86 | } 87 | 88 | export function Puppet(): PuppetBridge { 89 | return puppet; 90 | } 91 | 92 | async function run() { 93 | await puppet.init(); 94 | readConfig(); 95 | const teams = new App(puppet); 96 | await teams.init(); 97 | puppet.on("puppetNew", teams.newPuppet.bind(teams)); 98 | puppet.on("puppetDelete", teams.deletePuppet.bind(teams)); 99 | puppet.on("message", teams.handleMatrixMessage.bind(teams)); 100 | puppet.on("image", teams.handleMatrixImage.bind(teams)); 101 | puppet.on("file", teams.handleMatrixFile.bind(teams)); 102 | puppet.setCreateRoomHook(teams.createRoom.bind(teams)); 103 | puppet.setGetDmRoomIdHook(teams.getDmRoomId.bind(teams)); 104 | puppet.setListUsersHook(teams.listUsers.bind(teams)); 105 | puppet.setGetUserIdsInRoomHook(teams.getUserIdsInRoom.bind(teams)); 106 | puppet.setGetDataFromStrHook(AuthProvider.getDataFromStrHook); 107 | puppet.setBotHeaderMsgHook((): string => { 108 | return "MS Teams Puppet Bridge"; 109 | }); 110 | 111 | puppet.AS.expressAppInstance.get('/login', function (req, res) { 112 | const redirectUrl = urljoin(Config().oauth.serverBaseUri, Config().oauth.redirectPath); 113 | const authUrl = urljoin(Config().oauth.endPoint, "/authorize"); 114 | const scopes = "https://graph.microsoft.com/Chat.ReadWrite https://graph.microsoft.com/ChatMessage.Read https://graph.microsoft.com/ChatMessage.Send https://graph.microsoft.com/offline_access https://graph.microsoft.com/User.Read"; 115 | res.redirect(`${authUrl}?response_type=code&redirect_uri=${encodeURI(redirectUrl)}&client_id=${Config().oauth.clientId}&scope=${encodeURI(scopes)}`); 116 | }); 117 | 118 | puppet.AS.expressAppInstance.get(Config().oauth.redirectPath, AuthProvider.oauthCallback); 119 | 120 | // and finally, we start the puppet 121 | await puppet.start(); 122 | } 123 | 124 | run(); // start the bridge 125 | -------------------------------------------------------------------------------- /src/store.ts: -------------------------------------------------------------------------------- 1 | import { Store } from "mx-puppet-bridge"; 2 | 3 | const CURRENT_SCHEMA = 1; 4 | 5 | export interface IStoreToken { 6 | puppetId: number, 7 | accessToken: string, 8 | refreshToken: string, 9 | userId: string, 10 | login: number, 11 | accessExpiry: number 12 | } 13 | 14 | export class MSTeamsStore { 15 | constructor( 16 | private store: Store, 17 | ) { } 18 | 19 | public async init(): Promise { 20 | await this.store.init(CURRENT_SCHEMA, "teams_schema", (version: number) => { 21 | return require(`./db/schema/v${version}.js`).Schema; 22 | }, false); 23 | } 24 | 25 | public async getToken(puppetId: number): Promise { 26 | const rows = await this.store.db.All("SELECT * FROM teams_tokenstore WHERE puppet_id = $p", { p: puppetId }); 27 | let ret: IStoreToken; 28 | if (rows.length == 1) { 29 | return { 30 | puppetId, 31 | accessToken: rows[0].access_token as string, 32 | refreshToken: rows[0].refresh_token as string, 33 | userId: rows[0].user_id as string, 34 | accessExpiry: rows[0].access_expiry as number, 35 | login: rows[0].login as number 36 | } 37 | } 38 | return Promise.reject("Token not found"); 39 | } 40 | 41 | public async storeToken(puppetId: number, token: IStoreToken) { 42 | const exists = await this.store.db.Get("SELECT 1 FROM teams_tokenstore WHERE puppet_id = $p AND user_id = $u", 43 | { p: puppetId, u: token.userId }); 44 | 45 | let sql: string = `INSERT INTO teams_tokenstore ( 46 | puppet_id, access_token, refresh_token, user_id, login, access_expiry 47 | ) VALUES ( 48 | $puppetId, $accessToken, $refreshToken, $userId, $login, $accessExpiry 49 | )`; 50 | 51 | if (exists) { 52 | sql = `UPDATE teams_tokenstore SET 53 | access_token = $accessToken, 54 | refresh_token = $refreshToken, 55 | login = $login, 56 | access_expiry = $accessExpiry 57 | WHERE 58 | puppet_id = $puppetId 59 | AND 60 | user_id = $userId`; 61 | } 62 | await this.store.db.Run(sql, { 63 | puppetId, 64 | accessToken: token.accessToken, 65 | refreshToken: token.refreshToken, 66 | userId: token.userId, 67 | login: token.login, 68 | accessExpiry: token.accessExpiry 69 | }); 70 | } 71 | } -------------------------------------------------------------------------------- /src/teams-client.ts: -------------------------------------------------------------------------------- 1 | import { Client, ClientOptions } from "@microsoft/microsoft-graph-client"; 2 | import { EventEmitter } from "events"; 3 | import * as moment from "moment"; 4 | import { Config } from "./index"; 5 | import { TeamsAuthProvider } from "./auth/teams-auth-provider"; 6 | import { IFileEvent, Log } from "mx-puppet-bridge"; 7 | import * as urljoin from 'url-join'; 8 | 9 | const log = new Log("TeamsPuppet:teams-client"); 10 | 11 | 12 | export declare class Chat { 13 | id: string; 14 | name: string; 15 | members: Map 16 | subscriptionId: string; 17 | subscriptionExpiry: Date; 18 | } 19 | 20 | export declare class User { 21 | id: string; 22 | name: string; 23 | displayName: string; 24 | constructor(id: string, name: string, displayName: string); 25 | } 26 | 27 | export declare class Message { 28 | id: string; 29 | chat: Chat; 30 | author: User; 31 | text: string | null; 32 | } 33 | 34 | export interface IClientOpts { 35 | authProvider: TeamsAuthProvider; 36 | ownerUserId: string; 37 | puppetId: number; 38 | knownMessage: (r: string, e: string) => Promise; 39 | } 40 | 41 | 42 | export class TeamsClient extends EventEmitter { 43 | 44 | private client: Client; 45 | private teamsAuthProvider: TeamsAuthProvider; 46 | private ownerUserId: string; 47 | private subManagement: NodeJS.Timeout; 48 | private newChatManagement: NodeJS.Timeout; 49 | private lastNewChatCheck: Date = new Date(0); 50 | 51 | constructor(private opts: IClientOpts) { 52 | super(); 53 | this.teamsAuthProvider = opts.authProvider; 54 | this.ownerUserId = opts.ownerUserId 55 | } 56 | 57 | public chats: Map = new Map(); 58 | public users: Map = new Map(); 59 | 60 | public async init() { 61 | 62 | // Create middleware for MS Graph Client 63 | let clientOptions: ClientOptions = { 64 | authProvider: this.teamsAuthProvider 65 | }; 66 | this.client = Client.initWithMiddleware(clientOptions); 67 | 68 | // Recent Chat check limit 69 | let checkLimit: Date = new Date(); 70 | checkLimit.setHours(checkLimit.getHours() - (Config().teams.recentChatDays * 24)); 71 | 72 | var latestChat = await this.LoadChats(checkLimit); 73 | this.lastNewChatCheck = latestChat ?? checkLimit; 74 | 75 | await this.loadSubscriptions(); 76 | 77 | this.emit("connected"); 78 | 79 | // Start subsciption Management 80 | this.subManagement = setInterval(this.subscriptionManagement.bind(this), 300000); 81 | this.subscriptionManagement(); 82 | 83 | // Start new Check Polling 84 | this.newChatManagement = setInterval(this.newChatPolling.bind(this), Config().teams.newChatPollingPeriod * 1000); 85 | } 86 | 87 | public async stop() { 88 | if (this.subManagement) { 89 | clearInterval(this.subManagement); 90 | } 91 | if (this.newChatManagement) { 92 | clearInterval(this.newChatManagement); 93 | } 94 | } 95 | 96 | private async subscriptionManagement() { 97 | 98 | log.verbose("Checking for any expired/expiring Subscriptions"); 99 | 100 | const expiryLimit = new Date(); 101 | expiryLimit.setMinutes(expiryLimit.getMinutes() + 20); 102 | 103 | await [...this.chats].filter(([, v]) => v.subscriptionExpiry < expiryLimit).forEach(async ([, chat]) => { 104 | if (chat.subscriptionExpiry > new Date()) { 105 | this.renewSubscription(chat); 106 | } 107 | else { 108 | this.createSubscription(chat); 109 | } 110 | }) 111 | } 112 | 113 | 114 | private async newChatPolling() { 115 | const latestChat = await this.LoadChats(this.lastNewChatCheck); 116 | if (latestChat) { 117 | this.lastNewChatCheck = latestChat; 118 | } 119 | } 120 | 121 | 122 | private async LoadChats(modifiedSince: Date): Promise { 123 | 124 | try { 125 | 126 | let earliestChat: Date = new Date(); 127 | let latestChat: Date = new Date(); 128 | 129 | log.silly(`Loading all chats modified since ${modifiedSince.toISOString()} `); 130 | 131 | let uri = '/me/chats?$expand=members'; 132 | 133 | do { 134 | 135 | let chats = await this.client.api(uri) 136 | .version('beta') 137 | .get(); 138 | 139 | await chats.value.filter(x => x.chatType == "oneOnOne").forEach(async chat => { 140 | 141 | const lastUpdated = new Date(chat.lastUpdatedDateTime); 142 | if (lastUpdated < earliestChat) { 143 | earliestChat = lastUpdated; 144 | } 145 | 146 | if (lastUpdated > latestChat) { 147 | latestChat = lastUpdated; 148 | } 149 | 150 | if (lastUpdated < modifiedSince) { 151 | return; 152 | } 153 | 154 | // If this chat is already loaded, ignore it 155 | if (this.chats.has(chat.id)) { 156 | return; 157 | } 158 | 159 | const members = new Map(); 160 | 161 | let otherMember = chat.members.find(x => x.userId != this.ownerUserId); 162 | 163 | // Need to manually load displayname for members in other tenants 164 | if (!otherMember.displayName || !otherMember.email) { 165 | 166 | try { 167 | 168 | const chatMembers = await this.client.api(`/chats/${chat.id}/members/`) 169 | .version('beta') 170 | .get(); 171 | 172 | otherMember = chatMembers.value.filter(x => x.userId == otherMember.userId)[0]; 173 | } 174 | catch (err) { 175 | log.warning(`Unable to retrieve details for Chat Member ${otherMember.userId}, Ignoring chat ${chat.id}`); 176 | return; 177 | } 178 | } 179 | 180 | members.set( 181 | otherMember.userId, 182 | { 183 | id: otherMember.userId, 184 | displayName: otherMember.displayName, 185 | name: otherMember.email 186 | }); 187 | 188 | 189 | if (!this.users.has(otherMember.userId)) { 190 | this.users.set(otherMember.userId, 191 | { 192 | id: otherMember.userId, 193 | displayName: otherMember.displayName, 194 | name: otherMember.email 195 | }); 196 | } 197 | const name = otherMember == null ? "unknown" : otherMember.displayName ?? "??"; 198 | 199 | this.chats.set(chat.id, 200 | { 201 | id: chat.id, 202 | name: name, 203 | members, 204 | subscriptionId: "", 205 | subscriptionExpiry: new Date(0) 206 | }); 207 | 208 | }); 209 | 210 | uri = chats["@odata.nextLink"]; 211 | 212 | } while (earliestChat > modifiedSince && uri) 213 | 214 | return latestChat; 215 | } 216 | catch (err) { 217 | log.error("Error loading chats", err); 218 | } 219 | } 220 | 221 | public async loadSubscriptions() { 222 | 223 | try { 224 | // Loading subscriptions 225 | const response = await this.client.api(`/subscriptions`) 226 | .version('beta') 227 | .get(); 228 | 229 | response.value.forEach(sub => { 230 | 231 | const chat = this.chats.get(sub.resource.match(/\/chats\/([^\/]+)\/messages/)[1]); 232 | if (chat) { 233 | 234 | if (sub.notificationUrl != urljoin(Config().oauth.serverBaseUri, `/${this.opts.puppetId}/chatSub`)) { 235 | log.warn("Subscription set up for another puppet on this application", sub.notificationUrl); 236 | return; 237 | } 238 | 239 | chat.subscriptionId = sub.id; 240 | chat.subscriptionExpiry = new Date(sub.expirationDateTime); 241 | } 242 | 243 | }); 244 | } 245 | catch (err) { 246 | log.error("Error loading subscriptions", err); 247 | } 248 | 249 | } 250 | 251 | public async loadMessages(chat: Chat, limit: number = 20): Promise { 252 | 253 | let messages = await this.client.api(`/chats/${chat.id}/messages?top=${limit}`) 254 | .version('beta') 255 | .get(); 256 | 257 | 258 | const retVal: Message[] = []; 259 | 260 | await messages.value.forEach(msg => { 261 | 262 | let author: User = this.users[msg.from.user.id]; 263 | 264 | if (!author) { 265 | author = { 266 | id: msg.from.user.id, 267 | displayName: msg.from.user.displayName, 268 | name: msg.from.user.displayName, 269 | }; 270 | this.users.set(author.id, author); 271 | } 272 | 273 | retVal.push({ 274 | id: msg.id, 275 | text: msg.body.content, 276 | chat: chat, 277 | author 278 | }); 279 | }); 280 | return retVal; 281 | } 282 | 283 | public async createSubscription(chat: Chat): Promise { 284 | 285 | if (chat.subscriptionExpiry > new Date()) { 286 | // already have a subscription 287 | return; 288 | } 289 | 290 | log.verbose("Creating subscription for " + chat.id); 291 | try { 292 | const response = await this.client.api(`/subscriptions`) 293 | .version('beta') 294 | .post({ 295 | "changeType": "created,updated,deleted", 296 | "notificationUrl": urljoin(Config().oauth.serverBaseUri, `/${this.opts.puppetId}/chatSub`), 297 | "resource": `/chats/${chat.id}/messages`, 298 | "expirationDateTime": moment().add(1, 'h').toISOString(), 299 | "clientState": "secretClientValue", 300 | "latestSupportedTlsVersion": "v1_2" 301 | }); 302 | 303 | chat.subscriptionId = response.id; 304 | chat.subscriptionExpiry = new Date(response.expirationDateTime); 305 | 306 | } catch (err) { 307 | log.error("Error subscribing ", err); 308 | } 309 | } 310 | 311 | public async renewSubscription(chat: Chat): Promise { 312 | 313 | if (chat.subscriptionExpiry < new Date()) { 314 | // for expired subscription, re-create 315 | await this.createSubscription(chat); 316 | return; 317 | } 318 | 319 | try { 320 | const response = await this.client.api(`/subscriptions/${chat.subscriptionId}`) 321 | .version('beta') 322 | .patch({ 323 | "expirationDateTime": moment().add(1, 'h').toISOString(), 324 | }); 325 | 326 | chat.subscriptionExpiry = new Date(response.expirationDateTime); 327 | 328 | } catch (err) { 329 | log.error("Error renewing subsciption ", err); 330 | } 331 | } 332 | 333 | public async incomingMessage(req, res) { 334 | if (req.query.validationToken) { 335 | log.debug(`Got validation token request: ${req.query.validationToken}`); 336 | res.send(req.query.validationToken); 337 | } else { 338 | 339 | // TODO: Validation (inc secret) 340 | 341 | // Process message 342 | try { 343 | for (let i = 0; i < req.body.value.length; i++) { 344 | 345 | const mdetails = req.body.value[i].resource.match(/chats\('([^']*).*messages\('([^']*)/); 346 | 347 | if (req.body.value[i].changeType == 'deleted') { 348 | log.info("Got message delete event from Teams"); 349 | const chat = this.chats.get(mdetails[1]); 350 | 351 | if (chat) { 352 | // teams only gives us the deleted message id, not the oringinal author. The bridge requires 353 | // a user id, so just take the 1st member of the room as the redaction author 354 | this.emit('messageDeleted', { 355 | id: mdetails[2], 356 | chat: chat, 357 | author: chat.members.get([...chat.members.keys()][0]), 358 | text: "" 359 | } as Message); 360 | } 361 | return; 362 | } 363 | 364 | if (req.body.value[i].changeType == 'created') { 365 | if (mdetails.length == 3 && await this.opts.knownMessage(mdetails[1], mdetails[2])) { 366 | // This is a message created by bridge 367 | log.debug(`Ignoring message ${mdetails[1]}/${mdetails[2]} as it was created by us`); 368 | continue; 369 | } 370 | } 371 | 372 | // Process message from Teams 373 | const r = await this.client.api(req.body.value[i].resource) 374 | .version('beta') 375 | .get(); 376 | 377 | const m = await this.parseTeamsMessage(r); 378 | 379 | if (m) { 380 | if (req.body.value[i].changeType == 'created') { 381 | this.emit('message', m); 382 | } else { 383 | this.emit('messageChanged', m); 384 | } 385 | } 386 | } 387 | } 388 | catch (err) { 389 | log.error("Error trying to retrieve message from teams", err); 390 | } 391 | 392 | res.send("OK"); 393 | } 394 | } 395 | 396 | 397 | private async parseTeamsMessage(msg: any): Promise { 398 | 399 | let author: User = this.users[msg.from.user.id]; 400 | 401 | if (!author) { 402 | author = { 403 | id: msg.from.user.id, 404 | displayName: msg.from.user.displayName, 405 | name: msg.from.user.displayName, 406 | }; 407 | this.users.set(author.id, author); 408 | } 409 | 410 | let chat: Chat | undefined = this.chats.get(msg.chatId); 411 | 412 | if (!chat) { 413 | console.log("Chat not found", msg.chatId); 414 | return null; 415 | } 416 | 417 | return { 418 | id: msg.id, 419 | text: msg.body.content, 420 | chat: chat, 421 | author 422 | }; 423 | } 424 | 425 | public async sendMessage(room: Chat, msg: string): Promise { 426 | 427 | try { 428 | const response = await this.client.api(`/chats/${room.id}/messages`) 429 | .version('beta') 430 | .post({ 431 | "body": { 432 | "contentType": "html", 433 | "content": msg, 434 | } 435 | }); 436 | return response.id; 437 | } 438 | catch (err) { 439 | log.error("Error sending message", err); 440 | return ""; 441 | } 442 | } 443 | 444 | /** 445 | * Send image to Teams Chat 446 | * 447 | * @param room Chat to upload image to 448 | * @param data File details. 449 | * 450 | * @return Teams message Id. 451 | */ 452 | public async sendImage(room: Chat, data: IFileEvent): Promise { 453 | 454 | try { 455 | 456 | // create inline using thumbnail, with link to full size image 457 | var info: any = data.info; 458 | const thumbUrl = data.url.replace(/([^\/]*)$/, info.thumbnail_url.substr(info.thumbnail_url.search(/[^\/]*$/))); 459 | 460 | // teams uses height of 250 to constrain images 461 | const h: number = info.thumbnail_info.h < 250 ? info.thumbnail_info.h : 250; 462 | const w: number = info.thumbnail_info.h < 250 ? info.thumbnail_info.w : (info.thumbnail_info.w / info.thumbnail_info.h) * 250; 463 | const msg = `
[Download Image: ${info.w} x ${info.h} (${this.humanReadableSize(info.size)})]` 464 | 465 | const response = await this.client.api(`/chats/${room.id}/messages`) 466 | .version('beta') 467 | .post({ 468 | "body": { 469 | "contentType": "html", 470 | "content": msg, 471 | } 472 | }); 473 | 474 | return response.id; 475 | } 476 | catch (err) { 477 | log.error("Error sending image", err); 478 | return ""; 479 | } 480 | } 481 | 482 | /** 483 | * Send file to teams as attachment (link) 484 | * 485 | * @param room Chat to upload to 486 | * @param data File details. 487 | * 488 | * @return Teams message Id. 489 | */ 490 | public async sendFile(room: Chat, data: IFileEvent): Promise { 491 | 492 | try { 493 | var info: any = data.info; 494 | const msg = ``; 495 | 496 | const response = await this.client.api(`/chats/${room.id}/messages`) 497 | .version('beta') 498 | .post({ 499 | "body": { 500 | "contentType": "html", 501 | "content": msg, 502 | } 503 | }); 504 | 505 | return response.id; 506 | } 507 | catch (err) { 508 | log.error("Error sending file", err); 509 | return ""; 510 | } 511 | } 512 | 513 | /** 514 | * Format bytes as human readable text. 515 | * 516 | * @param bytes Number of bytes. 517 | * 518 | * @return Formatted string. 519 | */ 520 | private humanReadableSize(bytes: number): string { 521 | if (bytes == 0) { 522 | return "0.00 B"; 523 | } 524 | var e = Math.floor(Math.log(bytes) / Math.log(1024)); 525 | return (bytes / Math.pow(1024, e)).toFixed(2) + 526 | ' ' + ' KMGTP'.charAt(e) + 'B'; 527 | } 528 | } -------------------------------------------------------------------------------- /src/teams.ts: -------------------------------------------------------------------------------- 1 | import { 2 | PuppetBridge, 3 | IRemoteUser, 4 | IReceiveParams, 5 | IRemoteRoom, 6 | IMessageEvent, 7 | Log, 8 | IRetList, 9 | MessageDeduplicator, 10 | ISendingUser, 11 | IFileEvent, 12 | } from "mx-puppet-bridge"; 13 | import { AuthProvider } from "./auth/auth-provider"; 14 | import { TeamsAuthProvider } from "./auth/teams-auth-provider"; 15 | import { MSTeamsStore } from "./store"; 16 | import { IClientOpts, Message, Chat, TeamsClient } from "./teams-client"; 17 | const htmlToFormattedText = require("html-to-formatted-text"); 18 | 19 | 20 | // create our log instance 21 | const log = new Log("TeamsPuppet:teams"); 22 | 23 | interface ITeamsPuppet { 24 | client: TeamsClient; 25 | data: any; 26 | clientStopped: boolean; 27 | } 28 | 29 | // we can hold multiple puppets at once... 30 | interface ITeamsPuppets { 31 | [puppetId: number]: ITeamsPuppet; 32 | } 33 | 34 | export class App { 35 | 36 | private puppets: ITeamsPuppets = {}; 37 | private store: MSTeamsStore; 38 | private authProvider: AuthProvider; 39 | private messageDeduplicator: MessageDeduplicator; 40 | 41 | constructor( 42 | private puppet: PuppetBridge, 43 | ) { 44 | this.store = new MSTeamsStore(puppet.store); 45 | this.messageDeduplicator = new MessageDeduplicator(); 46 | } 47 | 48 | public async init(): Promise { 49 | await this.store.init(); 50 | this.authProvider = new AuthProvider(this.store); 51 | } 52 | 53 | public async removePuppet(puppetId: number) { 54 | log.info(`Removing puppet: puppetId=${puppetId}`); 55 | await this.puppet[puppetId].client.stop(); 56 | delete this.puppets[puppetId]; 57 | } 58 | 59 | public async deletePuppet(puppetId: number) { 60 | log.info(`Got signal to quit Puppet: puppetId=${puppetId}`); 61 | 62 | // TODO: Delete Tokens 63 | 64 | await this.puppet[puppetId].client.stop(); 65 | await this.removePuppet(puppetId); 66 | } 67 | 68 | public async newPuppet(puppetId: number, data: any) { 69 | log.info(`Adding new Puppet: puppetId=${puppetId}`); 70 | log.info(`Got data: dat=${JSON.stringify(data)}`); 71 | 72 | // check for updated access token 73 | if(data.auth_code) { 74 | await this.authProvider.checkForNewAuthorization(puppetId, data.auth_code); 75 | delete(data.auth_code); 76 | this.puppet.setPuppetData(puppetId, data); 77 | } 78 | 79 | if (this.puppets[puppetId]) { 80 | await this.removePuppet(puppetId); 81 | } 82 | const client = new TeamsClient({ 83 | authProvider: new TeamsAuthProvider(puppetId, this.authProvider), 84 | ownerUserId: data.userId, 85 | puppetId, 86 | knownMessage: async (r: string, e: string): Promise => 87 | (await this.puppet.eventSync.getMatrix({ roomId: r, puppetId: puppetId }, e)).length > 0 88 | }); 89 | 90 | client.on("connected", async () => { 91 | await this.puppet.sendStatusMessage(puppetId, "connected"); 92 | }); 93 | client.on("message", async (msg: Message) => { 94 | try { 95 | const dedupeKey = `${puppetId};${msg.chat.id}`; 96 | 97 | if(await this.messageDeduplicator.dedupe(dedupeKey, msg.author.id, msg.id, msg.text || "")) { 98 | return; 99 | } 100 | await this.handleTeamsMessage(puppetId, msg); 101 | } catch (err) { 102 | log.error("Error handling message event", err); 103 | } 104 | }); 105 | client.on("messageChanged", async (msg: Message ) => { 106 | try { 107 | log.verbose("Got new message changed event"); 108 | await this.handleTeamsMessageChanged(puppetId, msg); 109 | } catch (err) { 110 | log.error("Error handling teams messageChanged event", err); 111 | } 112 | }); 113 | client.on("messageDeleted", async (msg: Message ) => { 114 | try { 115 | log.verbose("Got new message deleted event"); 116 | await this.handleTeamsMessageDeleted(puppetId, msg); 117 | } catch (err) { 118 | log.error("Error handling teams messageDeleted event", err); 119 | } 120 | }); 121 | this.puppet.AS.expressAppInstance.post(`/${puppetId}/chatSub`, client.incomingMessage.bind(client)); 122 | 123 | this.puppets[puppetId] = { 124 | client, 125 | data, 126 | clientStopped: false, 127 | }; 128 | try { 129 | await client.init(); 130 | this.puppet.setUserId(puppetId, data.userId); 131 | } 132 | catch (err) { 133 | log.error("Error starting puppet client", err); 134 | } 135 | } 136 | 137 | public async listUsers(puppetId: number): Promise { 138 | const p = this.puppets[puppetId]; 139 | if (!p) { 140 | return []; 141 | } 142 | const reply: IRetList[] = []; 143 | for (const [,user] of p.client.users) { 144 | reply.push({ 145 | id: user.id, 146 | name: user.name, 147 | }); 148 | } 149 | return reply; 150 | } 151 | 152 | public async getDmRoomId(user: IRemoteUser): Promise { 153 | const p = this.puppets[user.puppetId]; 154 | if (!p) { 155 | return null; 156 | } 157 | 158 | const room = [...p.client.chats].filter(([,c]) => c.members.has(user.userId))[0][1]; 159 | return room ? room.id : null; 160 | } 161 | 162 | public async createRoom(room: IRemoteRoom): Promise { 163 | const p = this.puppets[room.puppetId]; 164 | if (!p) { 165 | return null; 166 | } 167 | log.info(`Received create request for chat update puppetId=${room.puppetId} roomId=${room.roomId}`); 168 | const chat: Chat | undefined = p.client.chats.get(room.roomId); 169 | if (!chat) { 170 | log.warn(`No matching room for ${room.roomId} `); 171 | return null; 172 | } 173 | 174 | // Subscriptions 175 | if (chat.subscriptionId == "" || chat.subscriptionExpiry < new Date()) { 176 | await p.client.createSubscription(chat); 177 | } 178 | 179 | return { 180 | puppetId: room.puppetId, 181 | roomId: room.roomId, 182 | isDirect: true, 183 | name: chat.name + " (Teams)" 184 | } 185 | } 186 | 187 | public async getUserIdsInRoom(room: IRemoteRoom): Promise | null> { 188 | const p = this.puppets[room.puppetId]; 189 | if (!p) { 190 | return null; 191 | } 192 | const chan = p.client.chats.get(room.roomId); 193 | if (!chan) { 194 | return null; 195 | } 196 | const users = new Set(); 197 | 198 | for (const [, member] of chan.members) { 199 | users.add(member.id); 200 | } 201 | return users; 202 | } 203 | 204 | public async handleTeamsMessage(puppetId: number, msg: Message) { 205 | if (!msg.text) { 206 | return; // nothing to do 207 | } 208 | 209 | const params = await this.getSendParams(puppetId, msg); 210 | const client = this.puppets[puppetId].client; 211 | log.verbose("Received message."); 212 | const dedupeKey = `${puppetId};${params.room.roomId}`; 213 | 214 | if (!await this.messageDeduplicator.dedupe(dedupeKey, params.user.userId, params.eventId, msg.text || "")) { 215 | const opts: IMessageEvent = { 216 | formattedBody: msg.text.replace(/<[\/]?div>/g, "").replace(/]*>]+alt="([^\"]*)"[^>]*><\/span>/g, "$1"), 217 | body: htmlToFormattedText(msg.text), 218 | emote: false 219 | }; 220 | await this.puppet.sendMessage(params, opts); 221 | } 222 | 223 | } 224 | 225 | public async handleTeamsMessageChanged(puppetId: number, msg: Message) { 226 | if (!msg.text) { 227 | msg.text = ""; 228 | } 229 | const params = await this.getSendParams(puppetId, msg); 230 | const client = this.puppets[puppetId].client; 231 | log.verbose("Received message."); 232 | const dedupeKey = `${puppetId};${params.room.roomId}`; 233 | 234 | if (!await this.messageDeduplicator.dedupe(dedupeKey, params.user.userId, params.eventId, msg.text || "")) { 235 | const opts: IMessageEvent = { 236 | formattedBody: msg.text.replace(/<[\/]?div>/g, "").replace(/]*>]+alt="([^\"]*)"[^>]*><\/span>/g, "$1"), 237 | body: htmlToFormattedText(msg.text), 238 | emote: false 239 | }; 240 | await this.puppet.sendEdit(params, msg.id, opts); 241 | } 242 | } 243 | 244 | public async handleTeamsMessageDeleted(puppetId: number, msg: Message) { 245 | const params = await this.getSendParams(puppetId, msg); 246 | await this.puppet.sendRedact(params, msg.id); 247 | } 248 | 249 | public async getSendParams( 250 | puppetId: number, 251 | msg: Message 252 | ): Promise { 253 | let eventId: string | undefined; 254 | eventId = msg.id; 255 | 256 | return { 257 | room: await this.getRoomParams(puppetId, msg.chat), 258 | user: { 259 | puppetId, 260 | userId: msg.author.id, 261 | name: msg.author.displayName 262 | }, 263 | eventId: msg.id 264 | }; 265 | } 266 | 267 | public async getRoomParams(puppetId: number, chan: Chat): Promise { 268 | return { 269 | puppetId, 270 | roomId: chan.id, 271 | name: chan.name + " (Teams)", 272 | isDirect: true, 273 | }; 274 | } 275 | 276 | public async handleMatrixMessage(room: IRemoteRoom, data: IMessageEvent, asUser: ISendingUser | null, event: any) { 277 | const p = this.puppets[room.puppetId]; 278 | if (!p) { 279 | return; 280 | } 281 | const chat = p.client.chats.get(room.roomId); 282 | if (!chat) { 283 | log.warn(`Room ${room.roomId} not found!`); 284 | return; 285 | } 286 | 287 | const eventId = await p.client.sendMessage(chat, event.content.formatted_body ?? event.content.body); 288 | if (eventId) { 289 | await this.puppet.eventSync.insert(room, data.eventId!, eventId); 290 | } 291 | } 292 | 293 | public async handleMatrixImage( 294 | room: IRemoteRoom, 295 | data: IFileEvent, 296 | asUser: ISendingUser | null, 297 | event: any, 298 | ) { 299 | const p = this.puppets[room.puppetId]; 300 | if (!p) { 301 | return; 302 | } 303 | const chat = p.client.chats.get(room.roomId); 304 | if (!chat) { 305 | log.warn(`Room ${room.roomId} not found!`); 306 | return; 307 | } 308 | 309 | const eventId = await p.client.sendImage(chat, data); 310 | if (eventId) { 311 | await this.puppet.eventSync.insert(room, data.eventId!, eventId); 312 | } 313 | } 314 | 315 | public async handleMatrixFile( 316 | room: IRemoteRoom, 317 | data: IFileEvent, 318 | asUser: ISendingUser | null, 319 | event: any, 320 | ) { 321 | const p = this.puppets[room.puppetId]; 322 | if (!p) { 323 | return; 324 | } 325 | const chat = p.client.chats.get(room.roomId); 326 | if (!chat) { 327 | log.warn(`Room ${room.roomId} not found!`); 328 | return; 329 | } 330 | 331 | const eventId = await p.client.sendFile(chat, data); 332 | if (eventId) { 333 | await this.puppet.eventSync.insert(room, data.eventId!, eventId); 334 | } 335 | } 336 | 337 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "moduleResolution": "node", 5 | "target": "es2016", 6 | "noImplicitAny": false, 7 | "outDir": "./build", 8 | "types": ["node"], 9 | "strictNullChecks": true, 10 | "allowSyntheticDefaultImports": true, 11 | "incremental": true, 12 | "sourceMap": true, 13 | "allowJs": false 14 | }, 15 | "compileOnSave": true, 16 | "include": [ 17 | "src/**/*", 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "tslint:recommended", 3 | "rules": { 4 | "ordered-imports": false, 5 | "no-trailing-whitespace": "error", 6 | "max-classes-per-file": { 7 | "severity": "warning" 8 | }, 9 | "object-literal-sort-keys": "off", 10 | "no-any":{ 11 | "severity": "warning" 12 | }, 13 | "arrow-return-shorthand": true, 14 | "no-magic-numbers": [true, -1, 0, 1, 1000], 15 | "prefer-for-of": true, 16 | "typedef": { 17 | "severity": "warning" 18 | }, 19 | "await-promise": [true], 20 | "curly": true, 21 | "no-empty": false, 22 | "no-invalid-this": true, 23 | "no-string-throw": { 24 | "severity": "warning" 25 | }, 26 | "no-unused-expression": true, 27 | "prefer-const": true, 28 | "object-literal-sort-keys": false, 29 | "indent": [true, "tabs", 1], 30 | "max-file-line-count": { 31 | "severity": "warning", 32 | "options": [500] 33 | }, 34 | "no-duplicate-imports": true, 35 | "array-type": [true, "array"], 36 | "promise-function-async": true, 37 | "no-bitwise": true, 38 | "no-debugger": true, 39 | "no-floating-promises": true, 40 | "prefer-template": [true, "allow-single-concat"] 41 | } 42 | } 43 | --------------------------------------------------------------------------------