├── .github └── workflows │ └── test.yml ├── .gitignore ├── .npmignore ├── .npmrc ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── src ├── LCPlayer.js ├── constants.js ├── index.d.ts ├── index.js ├── packets │ ├── client │ │ ├── boss_bar.js │ │ ├── cooldown.js │ │ ├── ghost.js │ │ ├── hologram.js │ │ ├── hologram_remove.js │ │ ├── hologram_update.js │ │ ├── mod_settings.js │ │ ├── nametags_override.js │ │ ├── nametags_update.js │ │ ├── notification.js │ │ ├── server_rule.js │ │ ├── server_update.js │ │ ├── staff_mods.js │ │ ├── teammates.js │ │ ├── title.js │ │ ├── update_world.js │ │ ├── world_border.js │ │ ├── world_border_create_new.js │ │ ├── world_border_remove.js │ │ ├── world_border_update.js │ │ └── world_border_update_new.js │ ├── mapper.js │ ├── server │ │ ├── client_voice.js │ │ ├── voice.js │ │ ├── voice_channel.js │ │ ├── voice_channel_remove.js │ │ ├── voice_channel_switch.js │ │ ├── voice_channel_update.js │ │ └── voice_mute.js │ └── shared │ │ ├── emote_broadcast.js │ │ ├── waypoint_add.js │ │ └── waypoint_remove.js ├── scheme.js └── utils │ └── convertHexColor.js └── test ├── clientServerGenerator.js ├── manual.js ├── pluginChannel.test.js └── waypoints.test.js /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | # name: Build 2 | 3 | # on: 4 | # push: 5 | # branches: [main] 6 | # pull_request: 7 | # branches: [main] 8 | 9 | # jobs: 10 | # build: 11 | # runs-on: ubuntu-latest 12 | # strategy: 13 | # matrix: 14 | # node-version: [16.x] 15 | # steps: 16 | # - uses: actions/checkout@v2 17 | # - name: Node.js 18 | # uses: actions/setup-node@v2 19 | # with: 20 | # node-version: ${{ matrix.node-version }} 21 | # - run: npm install 22 | # env: 23 | # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 24 | # - name: Test 25 | # run: npm run test 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .github -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | @solartweaks:registry=https://npm.pkg.github.com -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Solar Tweaks 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # :warning: Library deprecated, use [this new library](https://github.com/MinecraftJS/LunarBukkitAPI) instead 2 | 3 | # ~~minecraft-protocol-lunarclient~~ 4 | ![GitHub package.json version](https://img.shields.io/github/package-json/v/Solar-tweaks/minecraft-protocol-lunarclient?style=for-the-badge) 5 | 6 | Custom packets used by Lunar Client for node-minecraft-protocol 7 | 8 | # Usage 🛠️ 9 | ```js 10 | const { LCPlayer, WaypointColor } = require('minecraft-protocol-lunarclient'); 11 | 12 | // Instantiate the Lunar Client Player 13 | // Using the node-minecraft-protocol client 14 | const player = new LCPlayer(client); 15 | 16 | // Adding a waypoint to the player 17 | player.addWaypoint({ 18 | name: 'Spawn', 19 | color: WaypointColor.PINK, 20 | x: 0, 21 | y: 64, 22 | z: 0, 23 | forced: false, 24 | visible: true, 25 | }); 26 | 27 | // Removing the waypoint 28 | player.removeWaypoint('Spawn'); 29 | 30 | // Sending a notification with "Hello World!" as text for a duration of 5 000ms and as a warning 31 | player.sendNotification('Hello World!', 5000, 'warning'); 32 | 33 | // Adding teammates 34 | player.addTeammate('827f8c48-cdb2-4105-af39-df5a64f93490'); 35 | player.addTeammate('64fb990d-5c85-43cd-a3b1-98a44b385493'); 36 | 37 | // Removing a teammate 38 | player.removeTeammate('64fb990d-5c85-43cd-a3b1-98a44b385493'); 39 | ``` 40 | 41 | # Protodef is telling me something is wrong ⚠️ 42 | You have to disable scheme validation in order to use this library. This is a bug inside the Protodef library. 43 | To disable the scheme validation navigate to `src/client/pluginChannels.js` (inside the `minecraft-protocol` library) and at the line **8** add a false to the `Protodef` constructor like so: 44 | ```diff 45 | - const proto = new ProtoDef() 46 | + const proto = new ProtoDef(false) 47 | ``` 48 | 49 | # Authors 💖 50 | Thanks to Beanes#4501 for the scheme! 51 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@solar-tweaks/minecraft-protocol-lunarclient", 3 | "version": "1.2.3", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "@solar-tweaks/minecraft-protocol-lunarclient", 9 | "version": "1.2.3", 10 | "license": "MIT", 11 | "dependencies": { 12 | "minecraft-protocol": "^1.32.0", 13 | "varint": "^6.0.0" 14 | }, 15 | "devDependencies": { 16 | "chai": "^4.3.6", 17 | "mocha": "^9.2.1", 18 | "prismarine-proxy": "^1.1.1" 19 | } 20 | }, 21 | "node_modules/@azure/msal-common": { 22 | "version": "6.1.0", 23 | "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-6.1.0.tgz", 24 | "integrity": "sha512-IGjAHttOgKDPQr0Qxx1NjABR635ZNuN7LHjxI0Y7SEA2thcaRGTccy+oaXTFabM/rZLt4F2VrPKUX4BnR9hW9g==", 25 | "dependencies": { 26 | "debug": "^4.1.1" 27 | }, 28 | "engines": { 29 | "node": ">=0.8.0" 30 | } 31 | }, 32 | "node_modules/@azure/msal-node": { 33 | "version": "1.7.0", 34 | "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-1.7.0.tgz", 35 | "integrity": "sha512-qDkW+Z4b0SGkkYrM1x+0s5WJ3z96vgiNZ20iwpmtCUHVfSrDiGFB8s8REKVaz7JZJi2L1s0vQRbUahly8EoGnw==", 36 | "dependencies": { 37 | "@azure/msal-common": "^6.1.0", 38 | "axios": "^0.21.4", 39 | "https-proxy-agent": "^5.0.0", 40 | "jsonwebtoken": "^8.5.1", 41 | "uuid": "^8.3.0" 42 | }, 43 | "engines": { 44 | "node": "10 || 12 || 14 || 16" 45 | } 46 | }, 47 | "node_modules/@ungap/promise-all-settled": { 48 | "version": "1.1.2", 49 | "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", 50 | "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", 51 | "dev": true 52 | }, 53 | "node_modules/@xboxreplay/errors": { 54 | "version": "0.1.0", 55 | "resolved": "https://registry.npmjs.org/@xboxreplay/errors/-/errors-0.1.0.tgz", 56 | "integrity": "sha512-Tgz1d/OIPDWPeyOvuL5+aai5VCcqObhPnlI3skQuf80GVF3k1I0lPCnGC+8Cm5PV9aLBT5m8qPcJoIUQ2U4y9g==" 57 | }, 58 | "node_modules/@xboxreplay/xboxlive-auth": { 59 | "version": "3.3.3", 60 | "resolved": "https://registry.npmjs.org/@xboxreplay/xboxlive-auth/-/xboxlive-auth-3.3.3.tgz", 61 | "integrity": "sha512-j0AU8pW10LM8O68CTZ5QHnvOjSsnPICy0oQcP7zyM7eWkDQ/InkiQiirQKsPn1XRYDl4ccNu0WM582s3UKwcBg==", 62 | "dependencies": { 63 | "@xboxreplay/errors": "^0.1.0", 64 | "axios": "^0.21.1" 65 | } 66 | }, 67 | "node_modules/aes-js": { 68 | "version": "3.1.2", 69 | "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", 70 | "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" 71 | }, 72 | "node_modules/agent-base": { 73 | "version": "6.0.2", 74 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 75 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 76 | "dependencies": { 77 | "debug": "4" 78 | }, 79 | "engines": { 80 | "node": ">= 6.0.0" 81 | } 82 | }, 83 | "node_modules/ajv": { 84 | "version": "6.12.6", 85 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 86 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 87 | "dependencies": { 88 | "fast-deep-equal": "^3.1.1", 89 | "fast-json-stable-stringify": "^2.0.0", 90 | "json-schema-traverse": "^0.4.1", 91 | "uri-js": "^4.2.2" 92 | }, 93 | "funding": { 94 | "type": "github", 95 | "url": "https://github.com/sponsors/epoberezkin" 96 | } 97 | }, 98 | "node_modules/ansi-colors": { 99 | "version": "4.1.1", 100 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", 101 | "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", 102 | "dev": true, 103 | "engines": { 104 | "node": ">=6" 105 | } 106 | }, 107 | "node_modules/ansi-regex": { 108 | "version": "5.0.1", 109 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 110 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 111 | "dev": true, 112 | "engines": { 113 | "node": ">=8" 114 | } 115 | }, 116 | "node_modules/ansi-styles": { 117 | "version": "4.3.0", 118 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 119 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 120 | "dev": true, 121 | "dependencies": { 122 | "color-convert": "^2.0.1" 123 | }, 124 | "engines": { 125 | "node": ">=8" 126 | }, 127 | "funding": { 128 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 129 | } 130 | }, 131 | "node_modules/anymatch": { 132 | "version": "3.1.2", 133 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 134 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 135 | "dev": true, 136 | "dependencies": { 137 | "normalize-path": "^3.0.0", 138 | "picomatch": "^2.0.4" 139 | }, 140 | "engines": { 141 | "node": ">= 8" 142 | } 143 | }, 144 | "node_modules/argparse": { 145 | "version": "2.0.1", 146 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 147 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 148 | "dev": true 149 | }, 150 | "node_modules/asn1": { 151 | "version": "0.2.3", 152 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", 153 | "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" 154 | }, 155 | "node_modules/assertion-error": { 156 | "version": "1.1.0", 157 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 158 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 159 | "dev": true, 160 | "engines": { 161 | "node": "*" 162 | } 163 | }, 164 | "node_modules/axios": { 165 | "version": "0.21.4", 166 | "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", 167 | "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", 168 | "dependencies": { 169 | "follow-redirects": "^1.14.0" 170 | } 171 | }, 172 | "node_modules/balanced-match": { 173 | "version": "1.0.2", 174 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 175 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 176 | "dev": true 177 | }, 178 | "node_modules/binary-extensions": { 179 | "version": "2.2.0", 180 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 181 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 182 | "dev": true, 183 | "engines": { 184 | "node": ">=8" 185 | } 186 | }, 187 | "node_modules/brace-expansion": { 188 | "version": "1.1.11", 189 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 190 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 191 | "dev": true, 192 | "dependencies": { 193 | "balanced-match": "^1.0.0", 194 | "concat-map": "0.0.1" 195 | } 196 | }, 197 | "node_modules/braces": { 198 | "version": "3.0.2", 199 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 200 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 201 | "dev": true, 202 | "dependencies": { 203 | "fill-range": "^7.0.1" 204 | }, 205 | "engines": { 206 | "node": ">=8" 207 | } 208 | }, 209 | "node_modules/browser-stdout": { 210 | "version": "1.3.1", 211 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 212 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 213 | "dev": true 214 | }, 215 | "node_modules/buffer-equal": { 216 | "version": "1.0.0", 217 | "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz", 218 | "integrity": "sha1-WWFrSYME1Var1GaWayLu2j7KX74=", 219 | "engines": { 220 | "node": ">=0.4.0" 221 | } 222 | }, 223 | "node_modules/buffer-equal-constant-time": { 224 | "version": "1.0.1", 225 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 226 | "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" 227 | }, 228 | "node_modules/camelcase": { 229 | "version": "6.3.0", 230 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", 231 | "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", 232 | "dev": true, 233 | "engines": { 234 | "node": ">=10" 235 | }, 236 | "funding": { 237 | "url": "https://github.com/sponsors/sindresorhus" 238 | } 239 | }, 240 | "node_modules/chai": { 241 | "version": "4.3.6", 242 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", 243 | "integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==", 244 | "dev": true, 245 | "dependencies": { 246 | "assertion-error": "^1.1.0", 247 | "check-error": "^1.0.2", 248 | "deep-eql": "^3.0.1", 249 | "get-func-name": "^2.0.0", 250 | "loupe": "^2.3.1", 251 | "pathval": "^1.1.1", 252 | "type-detect": "^4.0.5" 253 | }, 254 | "engines": { 255 | "node": ">=4" 256 | } 257 | }, 258 | "node_modules/chalk": { 259 | "version": "4.1.2", 260 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 261 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 262 | "dev": true, 263 | "dependencies": { 264 | "ansi-styles": "^4.1.0", 265 | "supports-color": "^7.1.0" 266 | }, 267 | "engines": { 268 | "node": ">=10" 269 | }, 270 | "funding": { 271 | "url": "https://github.com/chalk/chalk?sponsor=1" 272 | } 273 | }, 274 | "node_modules/chalk/node_modules/supports-color": { 275 | "version": "7.2.0", 276 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 277 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 278 | "dev": true, 279 | "dependencies": { 280 | "has-flag": "^4.0.0" 281 | }, 282 | "engines": { 283 | "node": ">=8" 284 | } 285 | }, 286 | "node_modules/check-error": { 287 | "version": "1.0.2", 288 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", 289 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", 290 | "dev": true, 291 | "engines": { 292 | "node": "*" 293 | } 294 | }, 295 | "node_modules/chokidar": { 296 | "version": "3.5.3", 297 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 298 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 299 | "dev": true, 300 | "funding": [ 301 | { 302 | "type": "individual", 303 | "url": "https://paulmillr.com/funding/" 304 | } 305 | ], 306 | "dependencies": { 307 | "anymatch": "~3.1.2", 308 | "braces": "~3.0.2", 309 | "glob-parent": "~5.1.2", 310 | "is-binary-path": "~2.1.0", 311 | "is-glob": "~4.0.1", 312 | "normalize-path": "~3.0.0", 313 | "readdirp": "~3.6.0" 314 | }, 315 | "engines": { 316 | "node": ">= 8.10.0" 317 | }, 318 | "optionalDependencies": { 319 | "fsevents": "~2.3.2" 320 | } 321 | }, 322 | "node_modules/cliui": { 323 | "version": "7.0.4", 324 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", 325 | "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", 326 | "dev": true, 327 | "dependencies": { 328 | "string-width": "^4.2.0", 329 | "strip-ansi": "^6.0.0", 330 | "wrap-ansi": "^7.0.0" 331 | } 332 | }, 333 | "node_modules/color-convert": { 334 | "version": "2.0.1", 335 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 336 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 337 | "dev": true, 338 | "dependencies": { 339 | "color-name": "~1.1.4" 340 | }, 341 | "engines": { 342 | "node": ">=7.0.0" 343 | } 344 | }, 345 | "node_modules/color-name": { 346 | "version": "1.1.4", 347 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 348 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 349 | "dev": true 350 | }, 351 | "node_modules/concat-map": { 352 | "version": "0.0.1", 353 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 354 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 355 | "dev": true 356 | }, 357 | "node_modules/debug": { 358 | "version": "4.3.3", 359 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", 360 | "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", 361 | "dependencies": { 362 | "ms": "2.1.2" 363 | }, 364 | "engines": { 365 | "node": ">=6.0" 366 | }, 367 | "peerDependenciesMeta": { 368 | "supports-color": { 369 | "optional": true 370 | } 371 | } 372 | }, 373 | "node_modules/decamelize": { 374 | "version": "4.0.0", 375 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 376 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 377 | "dev": true, 378 | "engines": { 379 | "node": ">=10" 380 | }, 381 | "funding": { 382 | "url": "https://github.com/sponsors/sindresorhus" 383 | } 384 | }, 385 | "node_modules/deep-eql": { 386 | "version": "3.0.1", 387 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", 388 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", 389 | "dev": true, 390 | "dependencies": { 391 | "type-detect": "^4.0.0" 392 | }, 393 | "engines": { 394 | "node": ">=0.12" 395 | } 396 | }, 397 | "node_modules/diff": { 398 | "version": "5.0.0", 399 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", 400 | "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", 401 | "dev": true, 402 | "engines": { 403 | "node": ">=0.3.1" 404 | } 405 | }, 406 | "node_modules/ecdsa-sig-formatter": { 407 | "version": "1.0.11", 408 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", 409 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", 410 | "dependencies": { 411 | "safe-buffer": "^5.0.1" 412 | } 413 | }, 414 | "node_modules/emoji-regex": { 415 | "version": "8.0.0", 416 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 417 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 418 | "dev": true 419 | }, 420 | "node_modules/endian-toggle": { 421 | "version": "0.0.0", 422 | "resolved": "https://registry.npmjs.org/endian-toggle/-/endian-toggle-0.0.0.tgz", 423 | "integrity": "sha1-5cx1eLEDLW7gHq/Nc3ZdsNtNwKY=" 424 | }, 425 | "node_modules/escalade": { 426 | "version": "3.1.1", 427 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 428 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 429 | "dev": true, 430 | "engines": { 431 | "node": ">=6" 432 | } 433 | }, 434 | "node_modules/escape-string-regexp": { 435 | "version": "4.0.0", 436 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 437 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 438 | "dev": true, 439 | "engines": { 440 | "node": ">=10" 441 | }, 442 | "funding": { 443 | "url": "https://github.com/sponsors/sindresorhus" 444 | } 445 | }, 446 | "node_modules/fast-deep-equal": { 447 | "version": "3.1.3", 448 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 449 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" 450 | }, 451 | "node_modules/fast-json-stable-stringify": { 452 | "version": "2.1.0", 453 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 454 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" 455 | }, 456 | "node_modules/fill-range": { 457 | "version": "7.0.1", 458 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 459 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 460 | "dev": true, 461 | "dependencies": { 462 | "to-regex-range": "^5.0.1" 463 | }, 464 | "engines": { 465 | "node": ">=8" 466 | } 467 | }, 468 | "node_modules/find-up": { 469 | "version": "5.0.0", 470 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 471 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 472 | "dev": true, 473 | "dependencies": { 474 | "locate-path": "^6.0.0", 475 | "path-exists": "^4.0.0" 476 | }, 477 | "engines": { 478 | "node": ">=10" 479 | }, 480 | "funding": { 481 | "url": "https://github.com/sponsors/sindresorhus" 482 | } 483 | }, 484 | "node_modules/flat": { 485 | "version": "5.0.2", 486 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 487 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 488 | "dev": true, 489 | "bin": { 490 | "flat": "cli.js" 491 | } 492 | }, 493 | "node_modules/follow-redirects": { 494 | "version": "1.14.9", 495 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz", 496 | "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==", 497 | "funding": [ 498 | { 499 | "type": "individual", 500 | "url": "https://github.com/sponsors/RubenVerborgh" 501 | } 502 | ], 503 | "engines": { 504 | "node": ">=4.0" 505 | }, 506 | "peerDependenciesMeta": { 507 | "debug": { 508 | "optional": true 509 | } 510 | } 511 | }, 512 | "node_modules/fs.realpath": { 513 | "version": "1.0.0", 514 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 515 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 516 | "dev": true 517 | }, 518 | "node_modules/fsevents": { 519 | "version": "2.3.2", 520 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 521 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 522 | "dev": true, 523 | "hasInstallScript": true, 524 | "optional": true, 525 | "os": [ 526 | "darwin" 527 | ], 528 | "engines": { 529 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 530 | } 531 | }, 532 | "node_modules/get-caller-file": { 533 | "version": "2.0.5", 534 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 535 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 536 | "dev": true, 537 | "engines": { 538 | "node": "6.* || 8.* || >= 10.*" 539 | } 540 | }, 541 | "node_modules/get-func-name": { 542 | "version": "2.0.0", 543 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", 544 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", 545 | "dev": true, 546 | "engines": { 547 | "node": "*" 548 | } 549 | }, 550 | "node_modules/glob": { 551 | "version": "7.2.0", 552 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 553 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 554 | "dev": true, 555 | "dependencies": { 556 | "fs.realpath": "^1.0.0", 557 | "inflight": "^1.0.4", 558 | "inherits": "2", 559 | "minimatch": "^3.0.4", 560 | "once": "^1.3.0", 561 | "path-is-absolute": "^1.0.0" 562 | }, 563 | "engines": { 564 | "node": "*" 565 | }, 566 | "funding": { 567 | "url": "https://github.com/sponsors/isaacs" 568 | } 569 | }, 570 | "node_modules/glob-parent": { 571 | "version": "5.1.2", 572 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 573 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 574 | "dev": true, 575 | "dependencies": { 576 | "is-glob": "^4.0.1" 577 | }, 578 | "engines": { 579 | "node": ">= 6" 580 | } 581 | }, 582 | "node_modules/glob/node_modules/minimatch": { 583 | "version": "3.1.2", 584 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 585 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 586 | "dev": true, 587 | "dependencies": { 588 | "brace-expansion": "^1.1.7" 589 | }, 590 | "engines": { 591 | "node": "*" 592 | } 593 | }, 594 | "node_modules/growl": { 595 | "version": "1.10.5", 596 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 597 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 598 | "dev": true, 599 | "engines": { 600 | "node": ">=4.x" 601 | } 602 | }, 603 | "node_modules/has-flag": { 604 | "version": "4.0.0", 605 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 606 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 607 | "dev": true, 608 | "engines": { 609 | "node": ">=8" 610 | } 611 | }, 612 | "node_modules/he": { 613 | "version": "1.2.0", 614 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 615 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 616 | "dev": true, 617 | "bin": { 618 | "he": "bin/he" 619 | } 620 | }, 621 | "node_modules/https-proxy-agent": { 622 | "version": "5.0.0", 623 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 624 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 625 | "dependencies": { 626 | "agent-base": "6", 627 | "debug": "4" 628 | }, 629 | "engines": { 630 | "node": ">= 6" 631 | } 632 | }, 633 | "node_modules/inflight": { 634 | "version": "1.0.6", 635 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 636 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 637 | "dev": true, 638 | "dependencies": { 639 | "once": "^1.3.0", 640 | "wrappy": "1" 641 | } 642 | }, 643 | "node_modules/inherits": { 644 | "version": "2.0.4", 645 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 646 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 647 | }, 648 | "node_modules/is-binary-path": { 649 | "version": "2.1.0", 650 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 651 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 652 | "dev": true, 653 | "dependencies": { 654 | "binary-extensions": "^2.0.0" 655 | }, 656 | "engines": { 657 | "node": ">=8" 658 | } 659 | }, 660 | "node_modules/is-extglob": { 661 | "version": "2.1.1", 662 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 663 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 664 | "dev": true, 665 | "engines": { 666 | "node": ">=0.10.0" 667 | } 668 | }, 669 | "node_modules/is-fullwidth-code-point": { 670 | "version": "3.0.0", 671 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 672 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 673 | "dev": true, 674 | "engines": { 675 | "node": ">=8" 676 | } 677 | }, 678 | "node_modules/is-glob": { 679 | "version": "4.0.3", 680 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 681 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 682 | "dev": true, 683 | "dependencies": { 684 | "is-extglob": "^2.1.1" 685 | }, 686 | "engines": { 687 | "node": ">=0.10.0" 688 | } 689 | }, 690 | "node_modules/is-number": { 691 | "version": "7.0.0", 692 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 693 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 694 | "dev": true, 695 | "engines": { 696 | "node": ">=0.12.0" 697 | } 698 | }, 699 | "node_modules/is-plain-obj": { 700 | "version": "2.1.0", 701 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 702 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 703 | "dev": true, 704 | "engines": { 705 | "node": ">=8" 706 | } 707 | }, 708 | "node_modules/is-unicode-supported": { 709 | "version": "0.1.0", 710 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", 711 | "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", 712 | "dev": true, 713 | "engines": { 714 | "node": ">=10" 715 | }, 716 | "funding": { 717 | "url": "https://github.com/sponsors/sindresorhus" 718 | } 719 | }, 720 | "node_modules/isexe": { 721 | "version": "2.0.0", 722 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 723 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 724 | "dev": true 725 | }, 726 | "node_modules/jose": { 727 | "version": "4.6.0", 728 | "resolved": "https://registry.npmjs.org/jose/-/jose-4.6.0.tgz", 729 | "integrity": "sha512-0hNAkhMBNi4soKSAX4zYOFV+aqJlEz/4j4fregvasJzEVtjDChvWqRjPvHwLqr5hx28Ayr6bsOs1Kuj87V0O8w==", 730 | "funding": { 731 | "url": "https://github.com/sponsors/panva" 732 | } 733 | }, 734 | "node_modules/js-yaml": { 735 | "version": "4.1.0", 736 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 737 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 738 | "dev": true, 739 | "dependencies": { 740 | "argparse": "^2.0.1" 741 | }, 742 | "bin": { 743 | "js-yaml": "bin/js-yaml.js" 744 | } 745 | }, 746 | "node_modules/json-schema-traverse": { 747 | "version": "0.4.1", 748 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 749 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 750 | }, 751 | "node_modules/jsonwebtoken": { 752 | "version": "8.5.1", 753 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", 754 | "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", 755 | "dependencies": { 756 | "jws": "^3.2.2", 757 | "lodash.includes": "^4.3.0", 758 | "lodash.isboolean": "^3.0.3", 759 | "lodash.isinteger": "^4.0.4", 760 | "lodash.isnumber": "^3.0.3", 761 | "lodash.isplainobject": "^4.0.6", 762 | "lodash.isstring": "^4.0.1", 763 | "lodash.once": "^4.0.0", 764 | "ms": "^2.1.1", 765 | "semver": "^5.6.0" 766 | }, 767 | "engines": { 768 | "node": ">=4", 769 | "npm": ">=1.4.28" 770 | } 771 | }, 772 | "node_modules/jwa": { 773 | "version": "1.4.1", 774 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", 775 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", 776 | "dependencies": { 777 | "buffer-equal-constant-time": "1.0.1", 778 | "ecdsa-sig-formatter": "1.0.11", 779 | "safe-buffer": "^5.0.1" 780 | } 781 | }, 782 | "node_modules/jws": { 783 | "version": "3.2.2", 784 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", 785 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", 786 | "dependencies": { 787 | "jwa": "^1.4.1", 788 | "safe-buffer": "^5.0.1" 789 | } 790 | }, 791 | "node_modules/locate-path": { 792 | "version": "6.0.0", 793 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 794 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 795 | "dev": true, 796 | "dependencies": { 797 | "p-locate": "^5.0.0" 798 | }, 799 | "engines": { 800 | "node": ">=10" 801 | }, 802 | "funding": { 803 | "url": "https://github.com/sponsors/sindresorhus" 804 | } 805 | }, 806 | "node_modules/lodash.get": { 807 | "version": "4.4.2", 808 | "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", 809 | "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" 810 | }, 811 | "node_modules/lodash.includes": { 812 | "version": "4.3.0", 813 | "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", 814 | "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" 815 | }, 816 | "node_modules/lodash.isboolean": { 817 | "version": "3.0.3", 818 | "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", 819 | "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" 820 | }, 821 | "node_modules/lodash.isinteger": { 822 | "version": "4.0.4", 823 | "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", 824 | "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" 825 | }, 826 | "node_modules/lodash.isnumber": { 827 | "version": "3.0.3", 828 | "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", 829 | "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" 830 | }, 831 | "node_modules/lodash.isplainobject": { 832 | "version": "4.0.6", 833 | "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", 834 | "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" 835 | }, 836 | "node_modules/lodash.isstring": { 837 | "version": "4.0.1", 838 | "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", 839 | "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" 840 | }, 841 | "node_modules/lodash.merge": { 842 | "version": "4.6.2", 843 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 844 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" 845 | }, 846 | "node_modules/lodash.once": { 847 | "version": "4.1.1", 848 | "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", 849 | "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" 850 | }, 851 | "node_modules/lodash.reduce": { 852 | "version": "4.6.0", 853 | "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", 854 | "integrity": "sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs=" 855 | }, 856 | "node_modules/log-symbols": { 857 | "version": "4.1.0", 858 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", 859 | "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", 860 | "dev": true, 861 | "dependencies": { 862 | "chalk": "^4.1.0", 863 | "is-unicode-supported": "^0.1.0" 864 | }, 865 | "engines": { 866 | "node": ">=10" 867 | }, 868 | "funding": { 869 | "url": "https://github.com/sponsors/sindresorhus" 870 | } 871 | }, 872 | "node_modules/loupe": { 873 | "version": "2.3.4", 874 | "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", 875 | "integrity": "sha512-OvKfgCC2Ndby6aSTREl5aCCPTNIzlDfQZvZxNUrBrihDhL3xcrYegTblhmEiCrg2kKQz4XsFIaemE5BF4ybSaQ==", 876 | "dev": true, 877 | "dependencies": { 878 | "get-func-name": "^2.0.0" 879 | } 880 | }, 881 | "node_modules/macaddress": { 882 | "version": "0.5.2", 883 | "resolved": "https://registry.npmjs.org/macaddress/-/macaddress-0.5.2.tgz", 884 | "integrity": "sha512-cYYBbT3b84hTEHssWE6OmsuqF/NiLXE2RGK9Sc9SwwE9kMoKrbaUAJtKs6ucd0FFgZjXE1Wm3hoGEEYas0N6EA==" 885 | }, 886 | "node_modules/minecraft-data": { 887 | "version": "2.220.0", 888 | "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-2.220.0.tgz", 889 | "integrity": "sha512-6/1TxrX9jf8z8aRxWtB9IiDy6O3t6Yor/qGxCDB8ibahf/Ss5HNaPjjjjATLrdT2KrIWywv5oc4eSZ2bfXlDmQ==" 890 | }, 891 | "node_modules/minecraft-folder-path": { 892 | "version": "1.2.0", 893 | "resolved": "https://registry.npmjs.org/minecraft-folder-path/-/minecraft-folder-path-1.2.0.tgz", 894 | "integrity": "sha512-qaUSbKWoOsH9brn0JQuBhxNAzTDMwrOXorwuRxdJKKKDYvZhtml+6GVCUrY5HRiEsieBEjCUnhVpDuQiKsiFaw==" 895 | }, 896 | "node_modules/minecraft-packets": { 897 | "version": "1.5.0", 898 | "resolved": "https://registry.npmjs.org/minecraft-packets/-/minecraft-packets-1.5.0.tgz", 899 | "integrity": "sha512-my9kZoqdv3kLt8YTjmPkCSCM1An+NLxuCFhi6j8NTY2BF5JYHh69EHs/RghwxPUH5XPM0aaSAvs3/UCrOL/+hg==", 900 | "dev": true 901 | }, 902 | "node_modules/minecraft-protocol": { 903 | "version": "1.32.0", 904 | "resolved": "https://registry.npmjs.org/minecraft-protocol/-/minecraft-protocol-1.32.0.tgz", 905 | "integrity": "sha512-KIg/SnKagSe2GtVjvWealobTkC1VLPCRYpzIZd4l+rbo3fND1e1NBmfZVsawbByYwK6/STKODkMJgk763FejTQ==", 906 | "dependencies": { 907 | "aes-js": "^3.1.2", 908 | "buffer-equal": "^1.0.0", 909 | "debug": "^4.3.2", 910 | "endian-toggle": "^0.0.0", 911 | "lodash.get": "^4.1.2", 912 | "lodash.merge": "^4.3.0", 913 | "minecraft-data": "^2.109.0", 914 | "minecraft-folder-path": "^1.2.0", 915 | "node-fetch": "^2.6.1", 916 | "node-rsa": "^0.4.2", 917 | "prismarine-auth": "^1.1.0", 918 | "prismarine-nbt": "^2.0.0", 919 | "protodef": "^1.8.0", 920 | "readable-stream": "^3.0.6", 921 | "uuid-1345": "^1.0.1", 922 | "yggdrasil": "^1.4.0" 923 | }, 924 | "engines": { 925 | "node": ">=14" 926 | } 927 | }, 928 | "node_modules/minimatch": { 929 | "version": "4.2.1", 930 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz", 931 | "integrity": "sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==", 932 | "dev": true, 933 | "dependencies": { 934 | "brace-expansion": "^1.1.7" 935 | }, 936 | "engines": { 937 | "node": ">=10" 938 | } 939 | }, 940 | "node_modules/mocha": { 941 | "version": "9.2.2", 942 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-9.2.2.tgz", 943 | "integrity": "sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==", 944 | "dev": true, 945 | "dependencies": { 946 | "@ungap/promise-all-settled": "1.1.2", 947 | "ansi-colors": "4.1.1", 948 | "browser-stdout": "1.3.1", 949 | "chokidar": "3.5.3", 950 | "debug": "4.3.3", 951 | "diff": "5.0.0", 952 | "escape-string-regexp": "4.0.0", 953 | "find-up": "5.0.0", 954 | "glob": "7.2.0", 955 | "growl": "1.10.5", 956 | "he": "1.2.0", 957 | "js-yaml": "4.1.0", 958 | "log-symbols": "4.1.0", 959 | "minimatch": "4.2.1", 960 | "ms": "2.1.3", 961 | "nanoid": "3.3.1", 962 | "serialize-javascript": "6.0.0", 963 | "strip-json-comments": "3.1.1", 964 | "supports-color": "8.1.1", 965 | "which": "2.0.2", 966 | "workerpool": "6.2.0", 967 | "yargs": "16.2.0", 968 | "yargs-parser": "20.2.4", 969 | "yargs-unparser": "2.0.0" 970 | }, 971 | "bin": { 972 | "_mocha": "bin/_mocha", 973 | "mocha": "bin/mocha" 974 | }, 975 | "engines": { 976 | "node": ">= 12.0.0" 977 | }, 978 | "funding": { 979 | "type": "opencollective", 980 | "url": "https://opencollective.com/mochajs" 981 | } 982 | }, 983 | "node_modules/mocha/node_modules/ms": { 984 | "version": "2.1.3", 985 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 986 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 987 | "dev": true 988 | }, 989 | "node_modules/ms": { 990 | "version": "2.1.2", 991 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 992 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 993 | }, 994 | "node_modules/nanoid": { 995 | "version": "3.3.1", 996 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz", 997 | "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==", 998 | "dev": true, 999 | "bin": { 1000 | "nanoid": "bin/nanoid.cjs" 1001 | }, 1002 | "engines": { 1003 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1004 | } 1005 | }, 1006 | "node_modules/node-fetch": { 1007 | "version": "2.6.7", 1008 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", 1009 | "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", 1010 | "dependencies": { 1011 | "whatwg-url": "^5.0.0" 1012 | }, 1013 | "engines": { 1014 | "node": "4.x || >=6.0.0" 1015 | }, 1016 | "peerDependencies": { 1017 | "encoding": "^0.1.0" 1018 | }, 1019 | "peerDependenciesMeta": { 1020 | "encoding": { 1021 | "optional": true 1022 | } 1023 | } 1024 | }, 1025 | "node_modules/node-rsa": { 1026 | "version": "0.4.2", 1027 | "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-0.4.2.tgz", 1028 | "integrity": "sha1-1jkXKewWqDDtWjgEKzFX0tXXJTA=", 1029 | "dependencies": { 1030 | "asn1": "0.2.3" 1031 | } 1032 | }, 1033 | "node_modules/normalize-path": { 1034 | "version": "3.0.0", 1035 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1036 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1037 | "dev": true, 1038 | "engines": { 1039 | "node": ">=0.10.0" 1040 | } 1041 | }, 1042 | "node_modules/once": { 1043 | "version": "1.4.0", 1044 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1045 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1046 | "dev": true, 1047 | "dependencies": { 1048 | "wrappy": "1" 1049 | } 1050 | }, 1051 | "node_modules/p-limit": { 1052 | "version": "3.1.0", 1053 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1054 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1055 | "dev": true, 1056 | "dependencies": { 1057 | "yocto-queue": "^0.1.0" 1058 | }, 1059 | "engines": { 1060 | "node": ">=10" 1061 | }, 1062 | "funding": { 1063 | "url": "https://github.com/sponsors/sindresorhus" 1064 | } 1065 | }, 1066 | "node_modules/p-locate": { 1067 | "version": "5.0.0", 1068 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1069 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1070 | "dev": true, 1071 | "dependencies": { 1072 | "p-limit": "^3.0.2" 1073 | }, 1074 | "engines": { 1075 | "node": ">=10" 1076 | }, 1077 | "funding": { 1078 | "url": "https://github.com/sponsors/sindresorhus" 1079 | } 1080 | }, 1081 | "node_modules/path-exists": { 1082 | "version": "4.0.0", 1083 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1084 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1085 | "dev": true, 1086 | "engines": { 1087 | "node": ">=8" 1088 | } 1089 | }, 1090 | "node_modules/path-is-absolute": { 1091 | "version": "1.0.1", 1092 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1093 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1094 | "dev": true, 1095 | "engines": { 1096 | "node": ">=0.10.0" 1097 | } 1098 | }, 1099 | "node_modules/pathval": { 1100 | "version": "1.1.1", 1101 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", 1102 | "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", 1103 | "dev": true, 1104 | "engines": { 1105 | "node": "*" 1106 | } 1107 | }, 1108 | "node_modules/picomatch": { 1109 | "version": "2.3.1", 1110 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1111 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1112 | "dev": true, 1113 | "engines": { 1114 | "node": ">=8.6" 1115 | }, 1116 | "funding": { 1117 | "url": "https://github.com/sponsors/jonschlinkert" 1118 | } 1119 | }, 1120 | "node_modules/prismarine-auth": { 1121 | "version": "1.5.0", 1122 | "resolved": "https://registry.npmjs.org/prismarine-auth/-/prismarine-auth-1.5.0.tgz", 1123 | "integrity": "sha512-b3vDr53ac1mdp2AyRDVVKGp3eqXKKNXuZZ0Cxjc2HzVxhurPhRBETOM3/nrgGr9yt7FdI2+/60w7w5B55crJiA==", 1124 | "dependencies": { 1125 | "@azure/msal-node": "^1.1.0", 1126 | "@xboxreplay/xboxlive-auth": "^3.3.3", 1127 | "debug": "^4.3.3", 1128 | "jose": "^4.1.4", 1129 | "node-fetch": "^2.6.1", 1130 | "smart-buffer": "^4.1.0", 1131 | "uuid-1345": "^1.0.2" 1132 | } 1133 | }, 1134 | "node_modules/prismarine-nbt": { 1135 | "version": "2.2.0", 1136 | "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-2.2.0.tgz", 1137 | "integrity": "sha512-6UgW9gkurSs2+L6el6bVHvK5BmfAdMv9ixY+zn4GSaTSOzuWumspErpStxo9RbeixmVq66dd0OQu1tHYXVkX8g==", 1138 | "dependencies": { 1139 | "protodef": "^1.9.0" 1140 | } 1141 | }, 1142 | "node_modules/prismarine-proxy": { 1143 | "version": "1.1.1", 1144 | "resolved": "https://registry.npmjs.org/prismarine-proxy/-/prismarine-proxy-1.1.1.tgz", 1145 | "integrity": "sha512-A+Kn2jm80R7GVJaUwWIFCY8iqxWeF4YU7L+h+DwQ6L185etpFUmHqP7wXgkzcDAyMOm3uikz6YpBMopH2YJy/A==", 1146 | "dev": true, 1147 | "dependencies": { 1148 | "debug": "^4.3.1", 1149 | "minecraft-data": "^2.94.0", 1150 | "minecraft-packets": "^1.5.0", 1151 | "minecraft-protocol": "^1.13.0" 1152 | } 1153 | }, 1154 | "node_modules/protodef": { 1155 | "version": "1.15.0", 1156 | "resolved": "https://registry.npmjs.org/protodef/-/protodef-1.15.0.tgz", 1157 | "integrity": "sha512-bZ2Omw8dT+DACjJHLrBWZlqN4MlT9g9oSpJDdkUAJOStUzgJp+Zn42FJfPUdwutUxjaxA0PftN0PDlNa2XbneA==", 1158 | "dependencies": { 1159 | "lodash.get": "^4.4.2", 1160 | "lodash.reduce": "^4.6.0", 1161 | "protodef-validator": "^1.3.0", 1162 | "readable-stream": "^3.0.3" 1163 | }, 1164 | "engines": { 1165 | "node": ">=14" 1166 | } 1167 | }, 1168 | "node_modules/protodef-validator": { 1169 | "version": "1.3.1", 1170 | "resolved": "https://registry.npmjs.org/protodef-validator/-/protodef-validator-1.3.1.tgz", 1171 | "integrity": "sha512-lZ5FWKZYR9xOjpMw1+EfZRfCjzNRQWPq+Dk+jki47Sikl2EeWEPnTfnJERwnU/EwFq6us+0zqHHzSsmLeYX+Lg==", 1172 | "dependencies": { 1173 | "ajv": "^6.5.4" 1174 | }, 1175 | "bin": { 1176 | "protodef-validator": "cli.js" 1177 | } 1178 | }, 1179 | "node_modules/punycode": { 1180 | "version": "2.1.1", 1181 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1182 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1183 | "engines": { 1184 | "node": ">=6" 1185 | } 1186 | }, 1187 | "node_modules/randombytes": { 1188 | "version": "2.1.0", 1189 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1190 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1191 | "dev": true, 1192 | "dependencies": { 1193 | "safe-buffer": "^5.1.0" 1194 | } 1195 | }, 1196 | "node_modules/readable-stream": { 1197 | "version": "3.6.0", 1198 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 1199 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 1200 | "dependencies": { 1201 | "inherits": "^2.0.3", 1202 | "string_decoder": "^1.1.1", 1203 | "util-deprecate": "^1.0.1" 1204 | }, 1205 | "engines": { 1206 | "node": ">= 6" 1207 | } 1208 | }, 1209 | "node_modules/readdirp": { 1210 | "version": "3.6.0", 1211 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1212 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1213 | "dev": true, 1214 | "dependencies": { 1215 | "picomatch": "^2.2.1" 1216 | }, 1217 | "engines": { 1218 | "node": ">=8.10.0" 1219 | } 1220 | }, 1221 | "node_modules/require-directory": { 1222 | "version": "2.1.1", 1223 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1224 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 1225 | "dev": true, 1226 | "engines": { 1227 | "node": ">=0.10.0" 1228 | } 1229 | }, 1230 | "node_modules/safe-buffer": { 1231 | "version": "5.2.1", 1232 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1233 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1234 | "funding": [ 1235 | { 1236 | "type": "github", 1237 | "url": "https://github.com/sponsors/feross" 1238 | }, 1239 | { 1240 | "type": "patreon", 1241 | "url": "https://www.patreon.com/feross" 1242 | }, 1243 | { 1244 | "type": "consulting", 1245 | "url": "https://feross.org/support" 1246 | } 1247 | ] 1248 | }, 1249 | "node_modules/semver": { 1250 | "version": "5.7.1", 1251 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1252 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 1253 | "bin": { 1254 | "semver": "bin/semver" 1255 | } 1256 | }, 1257 | "node_modules/serialize-javascript": { 1258 | "version": "6.0.0", 1259 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", 1260 | "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", 1261 | "dev": true, 1262 | "dependencies": { 1263 | "randombytes": "^2.1.0" 1264 | } 1265 | }, 1266 | "node_modules/smart-buffer": { 1267 | "version": "4.2.0", 1268 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", 1269 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", 1270 | "engines": { 1271 | "node": ">= 6.0.0", 1272 | "npm": ">= 3.0.0" 1273 | } 1274 | }, 1275 | "node_modules/string_decoder": { 1276 | "version": "1.3.0", 1277 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 1278 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 1279 | "dependencies": { 1280 | "safe-buffer": "~5.2.0" 1281 | } 1282 | }, 1283 | "node_modules/string-width": { 1284 | "version": "4.2.3", 1285 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1286 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1287 | "dev": true, 1288 | "dependencies": { 1289 | "emoji-regex": "^8.0.0", 1290 | "is-fullwidth-code-point": "^3.0.0", 1291 | "strip-ansi": "^6.0.1" 1292 | }, 1293 | "engines": { 1294 | "node": ">=8" 1295 | } 1296 | }, 1297 | "node_modules/strip-ansi": { 1298 | "version": "6.0.1", 1299 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1300 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1301 | "dev": true, 1302 | "dependencies": { 1303 | "ansi-regex": "^5.0.1" 1304 | }, 1305 | "engines": { 1306 | "node": ">=8" 1307 | } 1308 | }, 1309 | "node_modules/strip-json-comments": { 1310 | "version": "3.1.1", 1311 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1312 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1313 | "dev": true, 1314 | "engines": { 1315 | "node": ">=8" 1316 | }, 1317 | "funding": { 1318 | "url": "https://github.com/sponsors/sindresorhus" 1319 | } 1320 | }, 1321 | "node_modules/supports-color": { 1322 | "version": "8.1.1", 1323 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1324 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1325 | "dev": true, 1326 | "dependencies": { 1327 | "has-flag": "^4.0.0" 1328 | }, 1329 | "engines": { 1330 | "node": ">=10" 1331 | }, 1332 | "funding": { 1333 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1334 | } 1335 | }, 1336 | "node_modules/to-regex-range": { 1337 | "version": "5.0.1", 1338 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1339 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1340 | "dev": true, 1341 | "dependencies": { 1342 | "is-number": "^7.0.0" 1343 | }, 1344 | "engines": { 1345 | "node": ">=8.0" 1346 | } 1347 | }, 1348 | "node_modules/tr46": { 1349 | "version": "0.0.3", 1350 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 1351 | "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" 1352 | }, 1353 | "node_modules/type-detect": { 1354 | "version": "4.0.8", 1355 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 1356 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 1357 | "dev": true, 1358 | "engines": { 1359 | "node": ">=4" 1360 | } 1361 | }, 1362 | "node_modules/uri-js": { 1363 | "version": "4.4.1", 1364 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1365 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1366 | "dependencies": { 1367 | "punycode": "^2.1.0" 1368 | } 1369 | }, 1370 | "node_modules/util-deprecate": { 1371 | "version": "1.0.2", 1372 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1373 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1374 | }, 1375 | "node_modules/uuid": { 1376 | "version": "8.3.2", 1377 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", 1378 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", 1379 | "bin": { 1380 | "uuid": "dist/bin/uuid" 1381 | } 1382 | }, 1383 | "node_modules/uuid-1345": { 1384 | "version": "1.0.2", 1385 | "resolved": "https://registry.npmjs.org/uuid-1345/-/uuid-1345-1.0.2.tgz", 1386 | "integrity": "sha512-bA5zYZui+3nwAc0s3VdGQGBfbVsJLVX7Np7ch2aqcEWFi5lsAEcmO3+lx3djM1npgpZI8KY2FITZ2uYTnYUYyw==", 1387 | "dependencies": { 1388 | "macaddress": "^0.5.1" 1389 | } 1390 | }, 1391 | "node_modules/varint": { 1392 | "version": "6.0.0", 1393 | "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", 1394 | "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==" 1395 | }, 1396 | "node_modules/webidl-conversions": { 1397 | "version": "3.0.1", 1398 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 1399 | "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" 1400 | }, 1401 | "node_modules/whatwg-url": { 1402 | "version": "5.0.0", 1403 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 1404 | "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", 1405 | "dependencies": { 1406 | "tr46": "~0.0.3", 1407 | "webidl-conversions": "^3.0.0" 1408 | } 1409 | }, 1410 | "node_modules/which": { 1411 | "version": "2.0.2", 1412 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1413 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1414 | "dev": true, 1415 | "dependencies": { 1416 | "isexe": "^2.0.0" 1417 | }, 1418 | "bin": { 1419 | "node-which": "bin/node-which" 1420 | }, 1421 | "engines": { 1422 | "node": ">= 8" 1423 | } 1424 | }, 1425 | "node_modules/workerpool": { 1426 | "version": "6.2.0", 1427 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.0.tgz", 1428 | "integrity": "sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==", 1429 | "dev": true 1430 | }, 1431 | "node_modules/wrap-ansi": { 1432 | "version": "7.0.0", 1433 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 1434 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 1435 | "dev": true, 1436 | "dependencies": { 1437 | "ansi-styles": "^4.0.0", 1438 | "string-width": "^4.1.0", 1439 | "strip-ansi": "^6.0.0" 1440 | }, 1441 | "engines": { 1442 | "node": ">=10" 1443 | }, 1444 | "funding": { 1445 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 1446 | } 1447 | }, 1448 | "node_modules/wrappy": { 1449 | "version": "1.0.2", 1450 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1451 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1452 | "dev": true 1453 | }, 1454 | "node_modules/y18n": { 1455 | "version": "5.0.8", 1456 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 1457 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 1458 | "dev": true, 1459 | "engines": { 1460 | "node": ">=10" 1461 | } 1462 | }, 1463 | "node_modules/yargs": { 1464 | "version": "16.2.0", 1465 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", 1466 | "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", 1467 | "dev": true, 1468 | "dependencies": { 1469 | "cliui": "^7.0.2", 1470 | "escalade": "^3.1.1", 1471 | "get-caller-file": "^2.0.5", 1472 | "require-directory": "^2.1.1", 1473 | "string-width": "^4.2.0", 1474 | "y18n": "^5.0.5", 1475 | "yargs-parser": "^20.2.2" 1476 | }, 1477 | "engines": { 1478 | "node": ">=10" 1479 | } 1480 | }, 1481 | "node_modules/yargs-parser": { 1482 | "version": "20.2.4", 1483 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", 1484 | "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", 1485 | "dev": true, 1486 | "engines": { 1487 | "node": ">=10" 1488 | } 1489 | }, 1490 | "node_modules/yargs-unparser": { 1491 | "version": "2.0.0", 1492 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 1493 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 1494 | "dev": true, 1495 | "dependencies": { 1496 | "camelcase": "^6.0.0", 1497 | "decamelize": "^4.0.0", 1498 | "flat": "^5.0.2", 1499 | "is-plain-obj": "^2.1.0" 1500 | }, 1501 | "engines": { 1502 | "node": ">=10" 1503 | } 1504 | }, 1505 | "node_modules/yggdrasil": { 1506 | "version": "1.6.1", 1507 | "resolved": "https://registry.npmjs.org/yggdrasil/-/yggdrasil-1.6.1.tgz", 1508 | "integrity": "sha512-6rUJ0A7YNVNd1K+8EvmVUc+l8CbhW7VKnN747BrC+YCukZj9C5rNsGxIZGf4MwxMHFDy/YNY++Gqf0VUxKy2ww==", 1509 | "dependencies": { 1510 | "node-fetch": "^2.6.1", 1511 | "uuid": "^8.2.0" 1512 | } 1513 | }, 1514 | "node_modules/yocto-queue": { 1515 | "version": "0.1.0", 1516 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 1517 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 1518 | "dev": true, 1519 | "engines": { 1520 | "node": ">=10" 1521 | }, 1522 | "funding": { 1523 | "url": "https://github.com/sponsors/sindresorhus" 1524 | } 1525 | } 1526 | }, 1527 | "dependencies": { 1528 | "@azure/msal-common": { 1529 | "version": "6.1.0", 1530 | "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-6.1.0.tgz", 1531 | "integrity": "sha512-IGjAHttOgKDPQr0Qxx1NjABR635ZNuN7LHjxI0Y7SEA2thcaRGTccy+oaXTFabM/rZLt4F2VrPKUX4BnR9hW9g==", 1532 | "requires": { 1533 | "debug": "^4.1.1" 1534 | } 1535 | }, 1536 | "@azure/msal-node": { 1537 | "version": "1.7.0", 1538 | "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-1.7.0.tgz", 1539 | "integrity": "sha512-qDkW+Z4b0SGkkYrM1x+0s5WJ3z96vgiNZ20iwpmtCUHVfSrDiGFB8s8REKVaz7JZJi2L1s0vQRbUahly8EoGnw==", 1540 | "requires": { 1541 | "@azure/msal-common": "^6.1.0", 1542 | "axios": "^0.21.4", 1543 | "https-proxy-agent": "^5.0.0", 1544 | "jsonwebtoken": "^8.5.1", 1545 | "uuid": "^8.3.0" 1546 | } 1547 | }, 1548 | "@ungap/promise-all-settled": { 1549 | "version": "1.1.2", 1550 | "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", 1551 | "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", 1552 | "dev": true 1553 | }, 1554 | "@xboxreplay/errors": { 1555 | "version": "0.1.0", 1556 | "resolved": "https://registry.npmjs.org/@xboxreplay/errors/-/errors-0.1.0.tgz", 1557 | "integrity": "sha512-Tgz1d/OIPDWPeyOvuL5+aai5VCcqObhPnlI3skQuf80GVF3k1I0lPCnGC+8Cm5PV9aLBT5m8qPcJoIUQ2U4y9g==" 1558 | }, 1559 | "@xboxreplay/xboxlive-auth": { 1560 | "version": "3.3.3", 1561 | "resolved": "https://registry.npmjs.org/@xboxreplay/xboxlive-auth/-/xboxlive-auth-3.3.3.tgz", 1562 | "integrity": "sha512-j0AU8pW10LM8O68CTZ5QHnvOjSsnPICy0oQcP7zyM7eWkDQ/InkiQiirQKsPn1XRYDl4ccNu0WM582s3UKwcBg==", 1563 | "requires": { 1564 | "@xboxreplay/errors": "^0.1.0", 1565 | "axios": "^0.21.1" 1566 | } 1567 | }, 1568 | "aes-js": { 1569 | "version": "3.1.2", 1570 | "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.1.2.tgz", 1571 | "integrity": "sha512-e5pEa2kBnBOgR4Y/p20pskXI74UEz7de8ZGVo58asOtvSVG5YAbJeELPZxOmt+Bnz3rX753YKhfIn4X4l1PPRQ==" 1572 | }, 1573 | "agent-base": { 1574 | "version": "6.0.2", 1575 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 1576 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 1577 | "requires": { 1578 | "debug": "4" 1579 | } 1580 | }, 1581 | "ajv": { 1582 | "version": "6.12.6", 1583 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 1584 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 1585 | "requires": { 1586 | "fast-deep-equal": "^3.1.1", 1587 | "fast-json-stable-stringify": "^2.0.0", 1588 | "json-schema-traverse": "^0.4.1", 1589 | "uri-js": "^4.2.2" 1590 | } 1591 | }, 1592 | "ansi-colors": { 1593 | "version": "4.1.1", 1594 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", 1595 | "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", 1596 | "dev": true 1597 | }, 1598 | "ansi-regex": { 1599 | "version": "5.0.1", 1600 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1601 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1602 | "dev": true 1603 | }, 1604 | "ansi-styles": { 1605 | "version": "4.3.0", 1606 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1607 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1608 | "dev": true, 1609 | "requires": { 1610 | "color-convert": "^2.0.1" 1611 | } 1612 | }, 1613 | "anymatch": { 1614 | "version": "3.1.2", 1615 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 1616 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 1617 | "dev": true, 1618 | "requires": { 1619 | "normalize-path": "^3.0.0", 1620 | "picomatch": "^2.0.4" 1621 | } 1622 | }, 1623 | "argparse": { 1624 | "version": "2.0.1", 1625 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 1626 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 1627 | "dev": true 1628 | }, 1629 | "asn1": { 1630 | "version": "0.2.3", 1631 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", 1632 | "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" 1633 | }, 1634 | "assertion-error": { 1635 | "version": "1.1.0", 1636 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 1637 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 1638 | "dev": true 1639 | }, 1640 | "axios": { 1641 | "version": "0.21.4", 1642 | "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", 1643 | "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", 1644 | "requires": { 1645 | "follow-redirects": "^1.14.0" 1646 | } 1647 | }, 1648 | "balanced-match": { 1649 | "version": "1.0.2", 1650 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1651 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 1652 | "dev": true 1653 | }, 1654 | "binary-extensions": { 1655 | "version": "2.2.0", 1656 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 1657 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 1658 | "dev": true 1659 | }, 1660 | "brace-expansion": { 1661 | "version": "1.1.11", 1662 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1663 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1664 | "dev": true, 1665 | "requires": { 1666 | "balanced-match": "^1.0.0", 1667 | "concat-map": "0.0.1" 1668 | } 1669 | }, 1670 | "braces": { 1671 | "version": "3.0.2", 1672 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 1673 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 1674 | "dev": true, 1675 | "requires": { 1676 | "fill-range": "^7.0.1" 1677 | } 1678 | }, 1679 | "browser-stdout": { 1680 | "version": "1.3.1", 1681 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 1682 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 1683 | "dev": true 1684 | }, 1685 | "buffer-equal": { 1686 | "version": "1.0.0", 1687 | "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz", 1688 | "integrity": "sha1-WWFrSYME1Var1GaWayLu2j7KX74=" 1689 | }, 1690 | "buffer-equal-constant-time": { 1691 | "version": "1.0.1", 1692 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 1693 | "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" 1694 | }, 1695 | "camelcase": { 1696 | "version": "6.3.0", 1697 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", 1698 | "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", 1699 | "dev": true 1700 | }, 1701 | "chai": { 1702 | "version": "4.3.6", 1703 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.6.tgz", 1704 | "integrity": "sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==", 1705 | "dev": true, 1706 | "requires": { 1707 | "assertion-error": "^1.1.0", 1708 | "check-error": "^1.0.2", 1709 | "deep-eql": "^3.0.1", 1710 | "get-func-name": "^2.0.0", 1711 | "loupe": "^2.3.1", 1712 | "pathval": "^1.1.1", 1713 | "type-detect": "^4.0.5" 1714 | } 1715 | }, 1716 | "chalk": { 1717 | "version": "4.1.2", 1718 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 1719 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 1720 | "dev": true, 1721 | "requires": { 1722 | "ansi-styles": "^4.1.0", 1723 | "supports-color": "^7.1.0" 1724 | }, 1725 | "dependencies": { 1726 | "supports-color": { 1727 | "version": "7.2.0", 1728 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1729 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1730 | "dev": true, 1731 | "requires": { 1732 | "has-flag": "^4.0.0" 1733 | } 1734 | } 1735 | } 1736 | }, 1737 | "check-error": { 1738 | "version": "1.0.2", 1739 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", 1740 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", 1741 | "dev": true 1742 | }, 1743 | "chokidar": { 1744 | "version": "3.5.3", 1745 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 1746 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 1747 | "dev": true, 1748 | "requires": { 1749 | "anymatch": "~3.1.2", 1750 | "braces": "~3.0.2", 1751 | "fsevents": "~2.3.2", 1752 | "glob-parent": "~5.1.2", 1753 | "is-binary-path": "~2.1.0", 1754 | "is-glob": "~4.0.1", 1755 | "normalize-path": "~3.0.0", 1756 | "readdirp": "~3.6.0" 1757 | } 1758 | }, 1759 | "cliui": { 1760 | "version": "7.0.4", 1761 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", 1762 | "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", 1763 | "dev": true, 1764 | "requires": { 1765 | "string-width": "^4.2.0", 1766 | "strip-ansi": "^6.0.0", 1767 | "wrap-ansi": "^7.0.0" 1768 | } 1769 | }, 1770 | "color-convert": { 1771 | "version": "2.0.1", 1772 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1773 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1774 | "dev": true, 1775 | "requires": { 1776 | "color-name": "~1.1.4" 1777 | } 1778 | }, 1779 | "color-name": { 1780 | "version": "1.1.4", 1781 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1782 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1783 | "dev": true 1784 | }, 1785 | "concat-map": { 1786 | "version": "0.0.1", 1787 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1788 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 1789 | "dev": true 1790 | }, 1791 | "debug": { 1792 | "version": "4.3.3", 1793 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", 1794 | "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", 1795 | "requires": { 1796 | "ms": "2.1.2" 1797 | } 1798 | }, 1799 | "decamelize": { 1800 | "version": "4.0.0", 1801 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 1802 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 1803 | "dev": true 1804 | }, 1805 | "deep-eql": { 1806 | "version": "3.0.1", 1807 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", 1808 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", 1809 | "dev": true, 1810 | "requires": { 1811 | "type-detect": "^4.0.0" 1812 | } 1813 | }, 1814 | "diff": { 1815 | "version": "5.0.0", 1816 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", 1817 | "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", 1818 | "dev": true 1819 | }, 1820 | "ecdsa-sig-formatter": { 1821 | "version": "1.0.11", 1822 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", 1823 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", 1824 | "requires": { 1825 | "safe-buffer": "^5.0.1" 1826 | } 1827 | }, 1828 | "emoji-regex": { 1829 | "version": "8.0.0", 1830 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1831 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1832 | "dev": true 1833 | }, 1834 | "endian-toggle": { 1835 | "version": "0.0.0", 1836 | "resolved": "https://registry.npmjs.org/endian-toggle/-/endian-toggle-0.0.0.tgz", 1837 | "integrity": "sha1-5cx1eLEDLW7gHq/Nc3ZdsNtNwKY=" 1838 | }, 1839 | "escalade": { 1840 | "version": "3.1.1", 1841 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 1842 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 1843 | "dev": true 1844 | }, 1845 | "escape-string-regexp": { 1846 | "version": "4.0.0", 1847 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1848 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1849 | "dev": true 1850 | }, 1851 | "fast-deep-equal": { 1852 | "version": "3.1.3", 1853 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1854 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" 1855 | }, 1856 | "fast-json-stable-stringify": { 1857 | "version": "2.1.0", 1858 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1859 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" 1860 | }, 1861 | "fill-range": { 1862 | "version": "7.0.1", 1863 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1864 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1865 | "dev": true, 1866 | "requires": { 1867 | "to-regex-range": "^5.0.1" 1868 | } 1869 | }, 1870 | "find-up": { 1871 | "version": "5.0.0", 1872 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1873 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1874 | "dev": true, 1875 | "requires": { 1876 | "locate-path": "^6.0.0", 1877 | "path-exists": "^4.0.0" 1878 | } 1879 | }, 1880 | "flat": { 1881 | "version": "5.0.2", 1882 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 1883 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 1884 | "dev": true 1885 | }, 1886 | "follow-redirects": { 1887 | "version": "1.14.9", 1888 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz", 1889 | "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==" 1890 | }, 1891 | "fs.realpath": { 1892 | "version": "1.0.0", 1893 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1894 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 1895 | "dev": true 1896 | }, 1897 | "fsevents": { 1898 | "version": "2.3.2", 1899 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 1900 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 1901 | "dev": true, 1902 | "optional": true 1903 | }, 1904 | "get-caller-file": { 1905 | "version": "2.0.5", 1906 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1907 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1908 | "dev": true 1909 | }, 1910 | "get-func-name": { 1911 | "version": "2.0.0", 1912 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", 1913 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", 1914 | "dev": true 1915 | }, 1916 | "glob": { 1917 | "version": "7.2.0", 1918 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 1919 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 1920 | "dev": true, 1921 | "requires": { 1922 | "fs.realpath": "^1.0.0", 1923 | "inflight": "^1.0.4", 1924 | "inherits": "2", 1925 | "minimatch": "^3.0.4", 1926 | "once": "^1.3.0", 1927 | "path-is-absolute": "^1.0.0" 1928 | }, 1929 | "dependencies": { 1930 | "minimatch": { 1931 | "version": "3.1.2", 1932 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1933 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1934 | "dev": true, 1935 | "requires": { 1936 | "brace-expansion": "^1.1.7" 1937 | } 1938 | } 1939 | } 1940 | }, 1941 | "glob-parent": { 1942 | "version": "5.1.2", 1943 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1944 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1945 | "dev": true, 1946 | "requires": { 1947 | "is-glob": "^4.0.1" 1948 | } 1949 | }, 1950 | "growl": { 1951 | "version": "1.10.5", 1952 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 1953 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 1954 | "dev": true 1955 | }, 1956 | "has-flag": { 1957 | "version": "4.0.0", 1958 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1959 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1960 | "dev": true 1961 | }, 1962 | "he": { 1963 | "version": "1.2.0", 1964 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1965 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1966 | "dev": true 1967 | }, 1968 | "https-proxy-agent": { 1969 | "version": "5.0.0", 1970 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 1971 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 1972 | "requires": { 1973 | "agent-base": "6", 1974 | "debug": "4" 1975 | } 1976 | }, 1977 | "inflight": { 1978 | "version": "1.0.6", 1979 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1980 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1981 | "dev": true, 1982 | "requires": { 1983 | "once": "^1.3.0", 1984 | "wrappy": "1" 1985 | } 1986 | }, 1987 | "inherits": { 1988 | "version": "2.0.4", 1989 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1990 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1991 | }, 1992 | "is-binary-path": { 1993 | "version": "2.1.0", 1994 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1995 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1996 | "dev": true, 1997 | "requires": { 1998 | "binary-extensions": "^2.0.0" 1999 | } 2000 | }, 2001 | "is-extglob": { 2002 | "version": "2.1.1", 2003 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 2004 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 2005 | "dev": true 2006 | }, 2007 | "is-fullwidth-code-point": { 2008 | "version": "3.0.0", 2009 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 2010 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 2011 | "dev": true 2012 | }, 2013 | "is-glob": { 2014 | "version": "4.0.3", 2015 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 2016 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 2017 | "dev": true, 2018 | "requires": { 2019 | "is-extglob": "^2.1.1" 2020 | } 2021 | }, 2022 | "is-number": { 2023 | "version": "7.0.0", 2024 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 2025 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 2026 | "dev": true 2027 | }, 2028 | "is-plain-obj": { 2029 | "version": "2.1.0", 2030 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 2031 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 2032 | "dev": true 2033 | }, 2034 | "is-unicode-supported": { 2035 | "version": "0.1.0", 2036 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", 2037 | "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", 2038 | "dev": true 2039 | }, 2040 | "isexe": { 2041 | "version": "2.0.0", 2042 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 2043 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 2044 | "dev": true 2045 | }, 2046 | "jose": { 2047 | "version": "4.6.0", 2048 | "resolved": "https://registry.npmjs.org/jose/-/jose-4.6.0.tgz", 2049 | "integrity": "sha512-0hNAkhMBNi4soKSAX4zYOFV+aqJlEz/4j4fregvasJzEVtjDChvWqRjPvHwLqr5hx28Ayr6bsOs1Kuj87V0O8w==" 2050 | }, 2051 | "js-yaml": { 2052 | "version": "4.1.0", 2053 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 2054 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 2055 | "dev": true, 2056 | "requires": { 2057 | "argparse": "^2.0.1" 2058 | } 2059 | }, 2060 | "json-schema-traverse": { 2061 | "version": "0.4.1", 2062 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 2063 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 2064 | }, 2065 | "jsonwebtoken": { 2066 | "version": "8.5.1", 2067 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", 2068 | "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", 2069 | "requires": { 2070 | "jws": "^3.2.2", 2071 | "lodash.includes": "^4.3.0", 2072 | "lodash.isboolean": "^3.0.3", 2073 | "lodash.isinteger": "^4.0.4", 2074 | "lodash.isnumber": "^3.0.3", 2075 | "lodash.isplainobject": "^4.0.6", 2076 | "lodash.isstring": "^4.0.1", 2077 | "lodash.once": "^4.0.0", 2078 | "ms": "^2.1.1", 2079 | "semver": "^5.6.0" 2080 | } 2081 | }, 2082 | "jwa": { 2083 | "version": "1.4.1", 2084 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", 2085 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", 2086 | "requires": { 2087 | "buffer-equal-constant-time": "1.0.1", 2088 | "ecdsa-sig-formatter": "1.0.11", 2089 | "safe-buffer": "^5.0.1" 2090 | } 2091 | }, 2092 | "jws": { 2093 | "version": "3.2.2", 2094 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", 2095 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", 2096 | "requires": { 2097 | "jwa": "^1.4.1", 2098 | "safe-buffer": "^5.0.1" 2099 | } 2100 | }, 2101 | "locate-path": { 2102 | "version": "6.0.0", 2103 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 2104 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 2105 | "dev": true, 2106 | "requires": { 2107 | "p-locate": "^5.0.0" 2108 | } 2109 | }, 2110 | "lodash.get": { 2111 | "version": "4.4.2", 2112 | "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", 2113 | "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" 2114 | }, 2115 | "lodash.includes": { 2116 | "version": "4.3.0", 2117 | "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", 2118 | "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" 2119 | }, 2120 | "lodash.isboolean": { 2121 | "version": "3.0.3", 2122 | "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", 2123 | "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" 2124 | }, 2125 | "lodash.isinteger": { 2126 | "version": "4.0.4", 2127 | "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", 2128 | "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" 2129 | }, 2130 | "lodash.isnumber": { 2131 | "version": "3.0.3", 2132 | "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", 2133 | "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" 2134 | }, 2135 | "lodash.isplainobject": { 2136 | "version": "4.0.6", 2137 | "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", 2138 | "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" 2139 | }, 2140 | "lodash.isstring": { 2141 | "version": "4.0.1", 2142 | "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", 2143 | "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" 2144 | }, 2145 | "lodash.merge": { 2146 | "version": "4.6.2", 2147 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 2148 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" 2149 | }, 2150 | "lodash.once": { 2151 | "version": "4.1.1", 2152 | "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", 2153 | "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" 2154 | }, 2155 | "lodash.reduce": { 2156 | "version": "4.6.0", 2157 | "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz", 2158 | "integrity": "sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs=" 2159 | }, 2160 | "log-symbols": { 2161 | "version": "4.1.0", 2162 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", 2163 | "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", 2164 | "dev": true, 2165 | "requires": { 2166 | "chalk": "^4.1.0", 2167 | "is-unicode-supported": "^0.1.0" 2168 | } 2169 | }, 2170 | "loupe": { 2171 | "version": "2.3.4", 2172 | "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.4.tgz", 2173 | "integrity": "sha512-OvKfgCC2Ndby6aSTREl5aCCPTNIzlDfQZvZxNUrBrihDhL3xcrYegTblhmEiCrg2kKQz4XsFIaemE5BF4ybSaQ==", 2174 | "dev": true, 2175 | "requires": { 2176 | "get-func-name": "^2.0.0" 2177 | } 2178 | }, 2179 | "macaddress": { 2180 | "version": "0.5.2", 2181 | "resolved": "https://registry.npmjs.org/macaddress/-/macaddress-0.5.2.tgz", 2182 | "integrity": "sha512-cYYBbT3b84hTEHssWE6OmsuqF/NiLXE2RGK9Sc9SwwE9kMoKrbaUAJtKs6ucd0FFgZjXE1Wm3hoGEEYas0N6EA==" 2183 | }, 2184 | "minecraft-data": { 2185 | "version": "2.220.0", 2186 | "resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-2.220.0.tgz", 2187 | "integrity": "sha512-6/1TxrX9jf8z8aRxWtB9IiDy6O3t6Yor/qGxCDB8ibahf/Ss5HNaPjjjjATLrdT2KrIWywv5oc4eSZ2bfXlDmQ==" 2188 | }, 2189 | "minecraft-folder-path": { 2190 | "version": "1.2.0", 2191 | "resolved": "https://registry.npmjs.org/minecraft-folder-path/-/minecraft-folder-path-1.2.0.tgz", 2192 | "integrity": "sha512-qaUSbKWoOsH9brn0JQuBhxNAzTDMwrOXorwuRxdJKKKDYvZhtml+6GVCUrY5HRiEsieBEjCUnhVpDuQiKsiFaw==" 2193 | }, 2194 | "minecraft-packets": { 2195 | "version": "1.5.0", 2196 | "resolved": "https://registry.npmjs.org/minecraft-packets/-/minecraft-packets-1.5.0.tgz", 2197 | "integrity": "sha512-my9kZoqdv3kLt8YTjmPkCSCM1An+NLxuCFhi6j8NTY2BF5JYHh69EHs/RghwxPUH5XPM0aaSAvs3/UCrOL/+hg==", 2198 | "dev": true 2199 | }, 2200 | "minecraft-protocol": { 2201 | "version": "1.32.0", 2202 | "resolved": "https://registry.npmjs.org/minecraft-protocol/-/minecraft-protocol-1.32.0.tgz", 2203 | "integrity": "sha512-KIg/SnKagSe2GtVjvWealobTkC1VLPCRYpzIZd4l+rbo3fND1e1NBmfZVsawbByYwK6/STKODkMJgk763FejTQ==", 2204 | "requires": { 2205 | "aes-js": "^3.1.2", 2206 | "buffer-equal": "^1.0.0", 2207 | "debug": "^4.3.2", 2208 | "endian-toggle": "^0.0.0", 2209 | "lodash.get": "^4.1.2", 2210 | "lodash.merge": "^4.3.0", 2211 | "minecraft-data": "^2.109.0", 2212 | "minecraft-folder-path": "^1.2.0", 2213 | "node-fetch": "^2.6.1", 2214 | "node-rsa": "^0.4.2", 2215 | "prismarine-auth": "^1.1.0", 2216 | "prismarine-nbt": "^2.0.0", 2217 | "protodef": "^1.8.0", 2218 | "readable-stream": "^3.0.6", 2219 | "uuid-1345": "^1.0.1", 2220 | "yggdrasil": "^1.4.0" 2221 | } 2222 | }, 2223 | "minimatch": { 2224 | "version": "4.2.1", 2225 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz", 2226 | "integrity": "sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==", 2227 | "dev": true, 2228 | "requires": { 2229 | "brace-expansion": "^1.1.7" 2230 | } 2231 | }, 2232 | "mocha": { 2233 | "version": "9.2.2", 2234 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-9.2.2.tgz", 2235 | "integrity": "sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==", 2236 | "dev": true, 2237 | "requires": { 2238 | "@ungap/promise-all-settled": "1.1.2", 2239 | "ansi-colors": "4.1.1", 2240 | "browser-stdout": "1.3.1", 2241 | "chokidar": "3.5.3", 2242 | "debug": "4.3.3", 2243 | "diff": "5.0.0", 2244 | "escape-string-regexp": "4.0.0", 2245 | "find-up": "5.0.0", 2246 | "glob": "7.2.0", 2247 | "growl": "1.10.5", 2248 | "he": "1.2.0", 2249 | "js-yaml": "4.1.0", 2250 | "log-symbols": "4.1.0", 2251 | "minimatch": "4.2.1", 2252 | "ms": "2.1.3", 2253 | "nanoid": "3.3.1", 2254 | "serialize-javascript": "6.0.0", 2255 | "strip-json-comments": "3.1.1", 2256 | "supports-color": "8.1.1", 2257 | "which": "2.0.2", 2258 | "workerpool": "6.2.0", 2259 | "yargs": "16.2.0", 2260 | "yargs-parser": "20.2.4", 2261 | "yargs-unparser": "2.0.0" 2262 | }, 2263 | "dependencies": { 2264 | "ms": { 2265 | "version": "2.1.3", 2266 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2267 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 2268 | "dev": true 2269 | } 2270 | } 2271 | }, 2272 | "ms": { 2273 | "version": "2.1.2", 2274 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 2275 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 2276 | }, 2277 | "nanoid": { 2278 | "version": "3.3.1", 2279 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz", 2280 | "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==", 2281 | "dev": true 2282 | }, 2283 | "node-fetch": { 2284 | "version": "2.6.7", 2285 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", 2286 | "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", 2287 | "requires": { 2288 | "whatwg-url": "^5.0.0" 2289 | } 2290 | }, 2291 | "node-rsa": { 2292 | "version": "0.4.2", 2293 | "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-0.4.2.tgz", 2294 | "integrity": "sha1-1jkXKewWqDDtWjgEKzFX0tXXJTA=", 2295 | "requires": { 2296 | "asn1": "0.2.3" 2297 | } 2298 | }, 2299 | "normalize-path": { 2300 | "version": "3.0.0", 2301 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 2302 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 2303 | "dev": true 2304 | }, 2305 | "once": { 2306 | "version": "1.4.0", 2307 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2308 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 2309 | "dev": true, 2310 | "requires": { 2311 | "wrappy": "1" 2312 | } 2313 | }, 2314 | "p-limit": { 2315 | "version": "3.1.0", 2316 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 2317 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 2318 | "dev": true, 2319 | "requires": { 2320 | "yocto-queue": "^0.1.0" 2321 | } 2322 | }, 2323 | "p-locate": { 2324 | "version": "5.0.0", 2325 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 2326 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 2327 | "dev": true, 2328 | "requires": { 2329 | "p-limit": "^3.0.2" 2330 | } 2331 | }, 2332 | "path-exists": { 2333 | "version": "4.0.0", 2334 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 2335 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 2336 | "dev": true 2337 | }, 2338 | "path-is-absolute": { 2339 | "version": "1.0.1", 2340 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2341 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 2342 | "dev": true 2343 | }, 2344 | "pathval": { 2345 | "version": "1.1.1", 2346 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", 2347 | "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", 2348 | "dev": true 2349 | }, 2350 | "picomatch": { 2351 | "version": "2.3.1", 2352 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 2353 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 2354 | "dev": true 2355 | }, 2356 | "prismarine-auth": { 2357 | "version": "1.5.0", 2358 | "resolved": "https://registry.npmjs.org/prismarine-auth/-/prismarine-auth-1.5.0.tgz", 2359 | "integrity": "sha512-b3vDr53ac1mdp2AyRDVVKGp3eqXKKNXuZZ0Cxjc2HzVxhurPhRBETOM3/nrgGr9yt7FdI2+/60w7w5B55crJiA==", 2360 | "requires": { 2361 | "@azure/msal-node": "^1.1.0", 2362 | "@xboxreplay/xboxlive-auth": "^3.3.3", 2363 | "debug": "^4.3.3", 2364 | "jose": "^4.1.4", 2365 | "node-fetch": "^2.6.1", 2366 | "smart-buffer": "^4.1.0", 2367 | "uuid-1345": "^1.0.2" 2368 | } 2369 | }, 2370 | "prismarine-nbt": { 2371 | "version": "2.2.0", 2372 | "resolved": "https://registry.npmjs.org/prismarine-nbt/-/prismarine-nbt-2.2.0.tgz", 2373 | "integrity": "sha512-6UgW9gkurSs2+L6el6bVHvK5BmfAdMv9ixY+zn4GSaTSOzuWumspErpStxo9RbeixmVq66dd0OQu1tHYXVkX8g==", 2374 | "requires": { 2375 | "protodef": "^1.9.0" 2376 | } 2377 | }, 2378 | "prismarine-proxy": { 2379 | "version": "1.1.1", 2380 | "resolved": "https://registry.npmjs.org/prismarine-proxy/-/prismarine-proxy-1.1.1.tgz", 2381 | "integrity": "sha512-A+Kn2jm80R7GVJaUwWIFCY8iqxWeF4YU7L+h+DwQ6L185etpFUmHqP7wXgkzcDAyMOm3uikz6YpBMopH2YJy/A==", 2382 | "dev": true, 2383 | "requires": { 2384 | "debug": "^4.3.1", 2385 | "minecraft-data": "^2.94.0", 2386 | "minecraft-packets": "^1.5.0", 2387 | "minecraft-protocol": "^1.13.0" 2388 | } 2389 | }, 2390 | "protodef": { 2391 | "version": "1.15.0", 2392 | "resolved": "https://registry.npmjs.org/protodef/-/protodef-1.15.0.tgz", 2393 | "integrity": "sha512-bZ2Omw8dT+DACjJHLrBWZlqN4MlT9g9oSpJDdkUAJOStUzgJp+Zn42FJfPUdwutUxjaxA0PftN0PDlNa2XbneA==", 2394 | "requires": { 2395 | "lodash.get": "^4.4.2", 2396 | "lodash.reduce": "^4.6.0", 2397 | "protodef-validator": "^1.3.0", 2398 | "readable-stream": "^3.0.3" 2399 | } 2400 | }, 2401 | "protodef-validator": { 2402 | "version": "1.3.1", 2403 | "resolved": "https://registry.npmjs.org/protodef-validator/-/protodef-validator-1.3.1.tgz", 2404 | "integrity": "sha512-lZ5FWKZYR9xOjpMw1+EfZRfCjzNRQWPq+Dk+jki47Sikl2EeWEPnTfnJERwnU/EwFq6us+0zqHHzSsmLeYX+Lg==", 2405 | "requires": { 2406 | "ajv": "^6.5.4" 2407 | } 2408 | }, 2409 | "punycode": { 2410 | "version": "2.1.1", 2411 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 2412 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 2413 | }, 2414 | "randombytes": { 2415 | "version": "2.1.0", 2416 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 2417 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 2418 | "dev": true, 2419 | "requires": { 2420 | "safe-buffer": "^5.1.0" 2421 | } 2422 | }, 2423 | "readable-stream": { 2424 | "version": "3.6.0", 2425 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", 2426 | "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", 2427 | "requires": { 2428 | "inherits": "^2.0.3", 2429 | "string_decoder": "^1.1.1", 2430 | "util-deprecate": "^1.0.1" 2431 | } 2432 | }, 2433 | "readdirp": { 2434 | "version": "3.6.0", 2435 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 2436 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 2437 | "dev": true, 2438 | "requires": { 2439 | "picomatch": "^2.2.1" 2440 | } 2441 | }, 2442 | "require-directory": { 2443 | "version": "2.1.1", 2444 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2445 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 2446 | "dev": true 2447 | }, 2448 | "safe-buffer": { 2449 | "version": "5.2.1", 2450 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2451 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 2452 | }, 2453 | "semver": { 2454 | "version": "5.7.1", 2455 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 2456 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 2457 | }, 2458 | "serialize-javascript": { 2459 | "version": "6.0.0", 2460 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", 2461 | "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", 2462 | "dev": true, 2463 | "requires": { 2464 | "randombytes": "^2.1.0" 2465 | } 2466 | }, 2467 | "smart-buffer": { 2468 | "version": "4.2.0", 2469 | "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", 2470 | "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" 2471 | }, 2472 | "string_decoder": { 2473 | "version": "1.3.0", 2474 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 2475 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 2476 | "requires": { 2477 | "safe-buffer": "~5.2.0" 2478 | } 2479 | }, 2480 | "string-width": { 2481 | "version": "4.2.3", 2482 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2483 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2484 | "dev": true, 2485 | "requires": { 2486 | "emoji-regex": "^8.0.0", 2487 | "is-fullwidth-code-point": "^3.0.0", 2488 | "strip-ansi": "^6.0.1" 2489 | } 2490 | }, 2491 | "strip-ansi": { 2492 | "version": "6.0.1", 2493 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2494 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2495 | "dev": true, 2496 | "requires": { 2497 | "ansi-regex": "^5.0.1" 2498 | } 2499 | }, 2500 | "strip-json-comments": { 2501 | "version": "3.1.1", 2502 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2503 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2504 | "dev": true 2505 | }, 2506 | "supports-color": { 2507 | "version": "8.1.1", 2508 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 2509 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 2510 | "dev": true, 2511 | "requires": { 2512 | "has-flag": "^4.0.0" 2513 | } 2514 | }, 2515 | "to-regex-range": { 2516 | "version": "5.0.1", 2517 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2518 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2519 | "dev": true, 2520 | "requires": { 2521 | "is-number": "^7.0.0" 2522 | } 2523 | }, 2524 | "tr46": { 2525 | "version": "0.0.3", 2526 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 2527 | "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" 2528 | }, 2529 | "type-detect": { 2530 | "version": "4.0.8", 2531 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 2532 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 2533 | "dev": true 2534 | }, 2535 | "uri-js": { 2536 | "version": "4.4.1", 2537 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2538 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2539 | "requires": { 2540 | "punycode": "^2.1.0" 2541 | } 2542 | }, 2543 | "util-deprecate": { 2544 | "version": "1.0.2", 2545 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2546 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 2547 | }, 2548 | "uuid": { 2549 | "version": "8.3.2", 2550 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", 2551 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" 2552 | }, 2553 | "uuid-1345": { 2554 | "version": "1.0.2", 2555 | "resolved": "https://registry.npmjs.org/uuid-1345/-/uuid-1345-1.0.2.tgz", 2556 | "integrity": "sha512-bA5zYZui+3nwAc0s3VdGQGBfbVsJLVX7Np7ch2aqcEWFi5lsAEcmO3+lx3djM1npgpZI8KY2FITZ2uYTnYUYyw==", 2557 | "requires": { 2558 | "macaddress": "^0.5.1" 2559 | } 2560 | }, 2561 | "varint": { 2562 | "version": "6.0.0", 2563 | "resolved": "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz", 2564 | "integrity": "sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==" 2565 | }, 2566 | "webidl-conversions": { 2567 | "version": "3.0.1", 2568 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 2569 | "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" 2570 | }, 2571 | "whatwg-url": { 2572 | "version": "5.0.0", 2573 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 2574 | "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", 2575 | "requires": { 2576 | "tr46": "~0.0.3", 2577 | "webidl-conversions": "^3.0.0" 2578 | } 2579 | }, 2580 | "which": { 2581 | "version": "2.0.2", 2582 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2583 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2584 | "dev": true, 2585 | "requires": { 2586 | "isexe": "^2.0.0" 2587 | } 2588 | }, 2589 | "workerpool": { 2590 | "version": "6.2.0", 2591 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.0.tgz", 2592 | "integrity": "sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==", 2593 | "dev": true 2594 | }, 2595 | "wrap-ansi": { 2596 | "version": "7.0.0", 2597 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 2598 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 2599 | "dev": true, 2600 | "requires": { 2601 | "ansi-styles": "^4.0.0", 2602 | "string-width": "^4.1.0", 2603 | "strip-ansi": "^6.0.0" 2604 | } 2605 | }, 2606 | "wrappy": { 2607 | "version": "1.0.2", 2608 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2609 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 2610 | "dev": true 2611 | }, 2612 | "y18n": { 2613 | "version": "5.0.8", 2614 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 2615 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 2616 | "dev": true 2617 | }, 2618 | "yargs": { 2619 | "version": "16.2.0", 2620 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", 2621 | "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", 2622 | "dev": true, 2623 | "requires": { 2624 | "cliui": "^7.0.2", 2625 | "escalade": "^3.1.1", 2626 | "get-caller-file": "^2.0.5", 2627 | "require-directory": "^2.1.1", 2628 | "string-width": "^4.2.0", 2629 | "y18n": "^5.0.5", 2630 | "yargs-parser": "^20.2.2" 2631 | } 2632 | }, 2633 | "yargs-parser": { 2634 | "version": "20.2.4", 2635 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", 2636 | "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", 2637 | "dev": true 2638 | }, 2639 | "yargs-unparser": { 2640 | "version": "2.0.0", 2641 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 2642 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 2643 | "dev": true, 2644 | "requires": { 2645 | "camelcase": "^6.0.0", 2646 | "decamelize": "^4.0.0", 2647 | "flat": "^5.0.2", 2648 | "is-plain-obj": "^2.1.0" 2649 | } 2650 | }, 2651 | "yggdrasil": { 2652 | "version": "1.6.1", 2653 | "resolved": "https://registry.npmjs.org/yggdrasil/-/yggdrasil-1.6.1.tgz", 2654 | "integrity": "sha512-6rUJ0A7YNVNd1K+8EvmVUc+l8CbhW7VKnN747BrC+YCukZj9C5rNsGxIZGf4MwxMHFDy/YNY++Gqf0VUxKy2ww==", 2655 | "requires": { 2656 | "node-fetch": "^2.6.1", 2657 | "uuid": "^8.2.0" 2658 | } 2659 | }, 2660 | "yocto-queue": { 2661 | "version": "0.1.0", 2662 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2663 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2664 | "dev": true 2665 | } 2666 | } 2667 | } 2668 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@solar-tweaks/minecraft-protocol-lunarclient", 3 | "version": "1.2.3", 4 | "description": "Custom packets used by Lunar Client for node-minecraft-protocol", 5 | "main": "src/index.js", 6 | "scripts": { 7 | "test": "mocha --exit", 8 | "test-manual": "node ./test/manual.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/Solar-Tweaks/minecraft-protocol-lunarclient.git" 13 | }, 14 | "keywords": [ 15 | "node-minecraft-protocol", 16 | "lunarclient" 17 | ], 18 | "author": "Beanes", 19 | "contributors": [ 20 | "RichardDorian" 21 | ], 22 | "license": "MIT", 23 | "bugs": { 24 | "url": "https://github.com/Solar-Tweaks/minecraft-protocol-lunarclient/issues" 25 | }, 26 | "homepage": "https://github.com/Solar-Tweaks/minecraft-protocol-lunarclient#readme", 27 | "dependencies": { 28 | "minecraft-protocol": "^1.32.0", 29 | "varint": "^6.0.0" 30 | }, 31 | "devDependencies": { 32 | "chai": "^4.3.6", 33 | "mocha": "^9.2.1", 34 | "prismarine-proxy": "^1.1.1" 35 | }, 36 | "publishConfig": { 37 | "registry": "https://npm.pkg.github.com" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/LCPlayer.js: -------------------------------------------------------------------------------- 1 | const varint = require('varint'); 2 | const scheme = require('./scheme'); 3 | 4 | class LCPlayer { 5 | constructor(client, options = {}) { 6 | this.client = client; 7 | this.channel = options.channel ?? 'lunarclient:pm'; 8 | this.waypoints = []; 9 | this.teammates = []; 10 | this.cooldowns = []; 11 | this.modSettings = {}; 12 | if (options.oldChannelRegistration) 13 | this.client.write('custom_payload', { 14 | channel: 'REGISTER', 15 | // Null character is used to separate the channels when sending multiple 16 | // https://wiki.vg/Plugin_channels#minecraft:register 17 | data: Buffer.from(`${this.channel}\u0000`), 18 | }); 19 | this.client.registerChannel( 20 | this.channel, 21 | scheme, 22 | !options.oldChannelRegistration 23 | ); 24 | } 25 | 26 | addWaypoint(waypoint) { 27 | if (this.waypoints.find((w) => w.name === waypoint.name)) return false; 28 | this.waypoints.push(waypoint); 29 | this.client.writeChannel(this.channel, { 30 | id: 'waypoint_add', 31 | name: waypoint.name, 32 | world: '', 33 | color: waypoint.color, 34 | x: waypoint.x, 35 | y: waypoint.y, 36 | z: waypoint.z, 37 | forced: waypoint.forced, 38 | visible: waypoint.visible, 39 | }); 40 | return true; 41 | } 42 | 43 | removeWaypoint(waypoint) { 44 | const _waypoint = typeof waypoint === 'string' ? waypoint : waypoint.name; 45 | if (!this.waypoints.find((w) => w.name === _waypoint)) return false; 46 | this.waypoints = this.waypoints.filter((w) => w.name !== _waypoint); 47 | this.client.writeChannel(this.channel, { 48 | id: 'waypoint_remove', 49 | name: _waypoint, 50 | world: '', 51 | }); 52 | return true; 53 | } 54 | 55 | removeAllWaypoints() { 56 | this.waypoints.forEach((waypoint) => { 57 | this.removeWaypoint(waypoint.name); 58 | }); 59 | this.waypoints = []; 60 | } 61 | 62 | sendNotification(message, durationMs, level = 'info') { 63 | this.client.writeChannel(this.channel, { 64 | id: 'notification', 65 | message, 66 | durationMs, 67 | level, 68 | }); 69 | } 70 | 71 | addTeammate(uuid) { 72 | if (this.teammates.find((t) => t === uuid)) return false; 73 | this.teammates.push(uuid); 74 | this.sendTeammateList(); 75 | return true; 76 | } 77 | 78 | removeTeammate(uuid) { 79 | if (!this.teammates.find((t) => t === uuid)) return false; 80 | this.teammates = this.teammates.filter((t) => t !== uuid); 81 | this.sendTeammateList(); 82 | return true; 83 | } 84 | 85 | removeAllTeammates() { 86 | this.teammates = []; 87 | this.sendTeammateList(); 88 | } 89 | 90 | sendTeammateList() { 91 | const players = []; 92 | this.teammates.forEach((uuid) => { 93 | players.push({ 94 | player: uuid, 95 | posMap: [ 96 | { key: 'x', value: 0 }, 97 | { key: 'y', value: 0 }, 98 | { key: 'z', value: 0 }, 99 | ], 100 | }); 101 | }); 102 | this.client.writeChannel(this.channel, { 103 | id: 'teammates', 104 | leader: this.client.uuid, 105 | lastMs: 0, 106 | players, 107 | }); 108 | } 109 | 110 | addCooldown(id, durationMs, iconId) { 111 | if (this.cooldowns.find((c) => c === id)) return false; 112 | this.cooldowns.push(id); 113 | setTimeout(() => { 114 | this.cooldowns = this.cooldowns.filter((c) => c !== id); 115 | }, durationMs); 116 | this.client.writeChannel(this.channel, { 117 | id: 'cooldown', 118 | message: id, 119 | durationMs, 120 | iconId, 121 | }); 122 | return true; 123 | } 124 | 125 | removeCooldown(id) { 126 | if (!this.cooldowns.find((c) => c === id)) return false; 127 | this.cooldowns = this.cooldowns.filter((c) => c !== id); 128 | this.client.writeChannel(this.channel, { 129 | id: 'cooldown', 130 | message: id, 131 | durationMs: 0, 132 | iconId: 0, 133 | }); 134 | return true; 135 | } 136 | 137 | addCooldownManual(id, durationMs, iconId) { 138 | if (this.cooldowns.find((c) => c === id)) return false; 139 | this.cooldowns.push(id); 140 | setTimeout(() => { 141 | this.cooldowns = this.cooldowns.filter((c) => c !== id); 142 | }, durationMs); 143 | this.client.write('custom_payload', { 144 | channel: this.channel, 145 | data: this.buildCooldownPacket(id, durationMs, iconId), 146 | }); 147 | return true; 148 | } 149 | 150 | removeCooldownManual(id) { 151 | if (!this.cooldowns.find((c) => c === id)) return false; 152 | this.cooldowns = this.cooldowns.filter((c) => c !== id); 153 | this.client.write('custom_payload', { 154 | channel: this.channel, 155 | data: this.buildCooldownPacket(id, 0, 0), 156 | }); 157 | return true; 158 | } 159 | 160 | buildCooldownPacket(id, durationMs, iconId) { 161 | const packet = Buffer.alloc(14 + id.length); 162 | let length = 0; 163 | packet.writeUIntBE(3, 0, 1); 164 | length += 1; 165 | varint.encode(id.length, packet, length); 166 | length += varint.encode.bytes; 167 | packet.write(id, length); 168 | length += id.length; 169 | packet.writeBigInt64BE(BigInt(durationMs), length); 170 | length += 8; 171 | packet.writeInt32BE(iconId, length); 172 | return packet; 173 | } 174 | 175 | setStaffModState(mod, state) { 176 | this.client.writeChannel(this.channel, { 177 | id: 'staff_mods', 178 | mod, 179 | state, 180 | }); 181 | } 182 | 183 | setServerRule(serverRule, value) { 184 | const isMinimapStatus = serverRule === 'minimapStatus'; 185 | if (isMinimapStatus && typeof value !== 'string') 186 | throw new Error('Value for server rule MINIMAP_STATUS must be a string'); 187 | if (!isMinimapStatus && typeof value !== 'boolean') 188 | throw new Error(`Value for server rule ${serverRule} must be a boolean`); 189 | this.client.writeChannel(this.channel, { 190 | id: 'server_rule', 191 | rule: serverRule, 192 | boolean: isMinimapStatus ? false : value, 193 | integer: 0, 194 | float: 0, 195 | string: isMinimapStatus ? value : '', 196 | }); 197 | } 198 | 199 | addModSetting(mod, enabled, options) { 200 | if (this.modSettings[mod]) return false; 201 | this.modSettings[mod] = { 202 | enabled, 203 | properties: options?.properties ?? {}, 204 | }; 205 | if (options?.sendPacket ?? true) this.sendModSettings(); 206 | return true; 207 | } 208 | 209 | removeModSetting(mod) { 210 | if (!this.modSettings[mod]) return false; 211 | delete this.modSettings[mod]; 212 | this.sendModSettings(); 213 | return true; 214 | } 215 | 216 | sendModSettings() { 217 | this.client.writeChannel(this.channel, { 218 | id: 'mod_settings', 219 | settings: JSON.stringify(this.modSettings), 220 | }); 221 | } 222 | } 223 | 224 | module.exports = { 225 | LCPlayer, 226 | }; 227 | -------------------------------------------------------------------------------- /src/constants.js: -------------------------------------------------------------------------------- 1 | const WaypointColor = { 2 | RED: 0xff0000, 3 | BLUE: 0x0000ff, 4 | GREEN: 0x00ff00, 5 | YELLOW: 0xffff00, 6 | AQUA: 0x00ffff, 7 | WHITE: 0xffffff, 8 | PINK: 0xff00ff, 9 | GRAY: 0x808080, 10 | }; 11 | 12 | const StaffMod = { 13 | XRAY: 'XRAY', 14 | }; 15 | 16 | const ServerRule = { 17 | MINIMAP_STATUS: 'minimapStatus', 18 | SERVER_HANDLES_WAYPOINTS: 'serverHandlesWaypoints', 19 | COMPETITIVE_GAME: 'competitiveGame', 20 | SHADERS_DISABLED: 'shadersDisabled', 21 | LEGACY_ENCHANTING: 'legacyEnchanting', 22 | VOICE_ENABLED: 'voiceEnabled', 23 | LEGACY_COMBAT: 'legacyCombat', 24 | }; 25 | 26 | const MiniMapStatus = { 27 | NEUTRAL: 'NEUTRAL', 28 | FORCED_OFF: 'FORCED_OFF', 29 | }; 30 | 31 | module.exports = { 32 | WaypointColor, 33 | StaffMod, 34 | ServerRule, 35 | MiniMapStatus, 36 | }; 37 | -------------------------------------------------------------------------------- /src/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Client } from 'minecraft-protocol'; 2 | 3 | /** 4 | * The protocol scheme used by [`protodef`](https://www.npmjs.com/package/protodef) to define the protocol between the client and the server. 5 | */ 6 | export declare const scheme: { [key: string]: any }; 7 | 8 | export type LunarChannelResolvable = 'lunarclient:pm' | 'Lunar-Client'; 9 | 10 | export interface LCPlayerOptions { 11 | /** 12 | * LC Plugin Channel to use 13 | */ 14 | channel?: LunarChannelResolvable; 15 | /** 16 | * Whether or not to use the old registration method 17 | */ 18 | oldChannelRegistration?: boolean; 19 | } 20 | 21 | export declare class LCPlayer { 22 | /** 23 | * Creates a new LunarClient player. 24 | * @param client Node Minecraft Protocol Client 25 | * @param options Options for the player 26 | */ 27 | constructor(client: Client, options?: LCPlayerOptions); 28 | 29 | /** 30 | * Node Minecraft Protocol Client 31 | */ 32 | readonly client: Client; 33 | /** 34 | * Plugin channel used 35 | */ 36 | readonly channel: LunarChannelResolvable; 37 | /** 38 | * Waypoints loaded by the client 39 | */ 40 | waypoints: Waypoint[]; 41 | /** 42 | * Current teammates of the client (Array of UUIDs) 43 | */ 44 | teammates: string[]; 45 | /** 46 | * Current active cooldowns (Array of ids, strings) 47 | */ 48 | cooldowns: string[]; 49 | /** 50 | * Current mod settings for the client. Key (mod id): Value (mod setting) 51 | */ 52 | modSettings: { [key: string]: ModSetting }; 53 | 54 | /** 55 | * Add a waypoint to the client. 56 | * @param waypoint Waypoint to add 57 | * @returns True if successful 58 | */ 59 | addWaypoint(waypoint: Waypoint): boolean; 60 | /** 61 | * Remove a waypoint from the client. 62 | * @param waypoint Waypoint object or waypoint name 63 | * @returns True if successful 64 | */ 65 | removeWaypoint(waypoint: Waypoint | string): boolean; 66 | /** 67 | * Remove all waypoints loaded by the player 68 | */ 69 | removeAllWaypoints(): void; 70 | /** 71 | * Send a notification to the client. This packet is not supported by the client by default! Solar Tweaks does implement this packet, so use this packet with that in mind. 72 | * @param message Message to send 73 | * @param durationMs Duration of the message in milliseconds 74 | * @param level Message level, set to `info` by default 75 | */ 76 | sendNotification( 77 | message: string, 78 | durationMs: number, 79 | level?: 'error' | 'info' | 'success' | 'warning' 80 | ): void; 81 | /** 82 | * Add a teammate to the client. The TeamView mod must be enabled for this to work. 83 | * @param uuid UUID of the teammate to add (must be a valid UUID with dashes) 84 | * @returns True if successful 85 | */ 86 | addTeammate(uuid: string): boolean; 87 | /** 88 | * Remove a teammate from the client. The TeamView mod must be enabled for this to work. 89 | * @param uuid UUID of the teammate to remove (must be a valid UUID with dashes) 90 | * @returns True if successful 91 | */ 92 | removeTeammate(uuid: string): boolean; 93 | /** 94 | * Remove all teammates from the client. The TeamView mod must be enabled for this to work. 95 | */ 96 | removeAllTeammates(): void; 97 | /** 98 | * Add a cooldown to the client. 99 | * @deprecated Protodef is not able to serialize the packet for some reason 100 | * @param id String id of the cooldown, used to remove it later 101 | * @param durationMs Duration of the message in milliseconds 102 | * @param iconId Icon id to use, same system as [minecraft ids](https://minecraft-ids.grahamedgecombe.com/) 103 | * @returns True if successful 104 | */ 105 | addCooldown(id: string, durationMs: number, iconId: number): boolean; 106 | /** 107 | * Remove a cooldown from the client. 108 | * @deprecated Protodef is not able to serialize the packet for some reason 109 | * @param id String id of the cooldown 110 | * @returns True if successful 111 | */ 112 | removeCooldown(id: string): boolean; 113 | /** 114 | * Add a cooldown to the client. (The packet is built manually by the library, this should not be used for production, it's a temporary replacement) 115 | * @param id String id of the cooldown, used to remove it later 116 | * @param durationMs Duration of the message in milliseconds 117 | * @param iconId Icon id to use, same system as [minecraft ids](https://minecraft-ids.grahamedgecombe.com/) 118 | * @returns True if successful 119 | */ 120 | addCooldownManual(id: string, durationMs: number, iconId: number): boolean; 121 | /** 122 | * Remove a cooldown from the client. (The packet is built manually by the library, this should not be used for production, it's a temporary replacement) 123 | * @param id String id of the cooldown 124 | * @returns True if successful 125 | */ 126 | removeCooldownManual(id: string): boolean; 127 | /** 128 | * Set the state of the given Staff Mod for the client. 129 | * @param mod Staff mod to apply the state to 130 | * @param state State to apply 131 | */ 132 | setStaffModState(mod: StaffMod | StaffModResolvable, state: boolean): void; 133 | /** 134 | * Set a server rule for the client. 135 | * @param serverRule Server rule to set the value to 136 | * @param value Value to set, usually a boolean but should be `NEUTRAL` or `FORCED_OFF` when the server rule is minimap status 137 | */ 138 | setServerRule( 139 | serverRule: ServerRule | ServerRuleResolvable, 140 | value: boolean | MiniMapStatus | MiniMapStatusResolvable 141 | ): void; 142 | /** 143 | * Set a force state for a given mod. Forced enabled or forced disabled. 144 | * Warning: You should not rely on this because the client is not handling the packet correctly 145 | * and doesn't work all the time. 146 | * @param mod Mod to set the setting for 147 | * @param enabled Whether the mod should be force enabled or force disabled 148 | * @param options 149 | * @returns True if successful 150 | */ 151 | addModSetting( 152 | mod: string, 153 | enabled: boolean, 154 | options?: AddModSettingOptions 155 | ): boolean; 156 | /** 157 | * Remove a forced state for the given mod. 158 | * @param mod Mod to remove the forced state 159 | * @returns True if successful 160 | */ 161 | removeModSetting(mod: string): boolean; 162 | } 163 | 164 | /** 165 | * Converts a hexadecimal color to a number that can be used as a color (waypoint color for example) 166 | * @param color Hexadecimal representation of the color (works with and without a # at the beginning) 167 | * @returns The number to use or `NaN` if the provided hexadecimal color code is invalid 168 | */ 169 | export declare function convertHexColor(color: string): number; 170 | 171 | /** 172 | * Some colors that can be used as a waypoint color 173 | */ 174 | export declare enum WaypointColor { 175 | RED, 176 | BLUE, 177 | GREEN, 178 | YELLOW, 179 | AQUA, 180 | WHITE, 181 | PINK, 182 | GRAY, 183 | } 184 | 185 | /** 186 | * List of all the known staff mods 187 | */ 188 | export declare enum StaffMod { 189 | XRAY, 190 | } 191 | 192 | export type StaffModResolvable = 'XRAY'; 193 | 194 | /** 195 | * List of all server rules. 196 | * The documentation for those rules can be found [here](https://github.com/LunarClient/BukkitAPI-NetHandler/blob/master/src/main/java/com/lunarclient/bukkitapi/nethandler/client/obj/ServerRule.java) 197 | */ 198 | export declare enum ServerRule { 199 | /** 200 | * Whether or not minimap is allowed. 201 | * Expected value: (String) `NEUTRAL` or `FORCED_OFF` 202 | */ 203 | MINIMAP_STATUS, 204 | /** 205 | * Whether or not the server will store waypoints, instead of the client 206 | */ 207 | SERVER_HANDLES_WAYPOINTS, 208 | /** 209 | * A warning message will be shown when attempting to disconnect if the current 210 | * game is competitive. 211 | */ 212 | COMPETITIVE_GAME, 213 | /** 214 | * If this server forces shaders to be disabled 215 | */ 216 | SHADERS_DISABLED, 217 | /** 218 | * If the server runs legacy enchanting (pre 1.8) 219 | */ 220 | LEGACY_ENCHANTING, 221 | /** 222 | * If this server has enabled voice chat 223 | */ 224 | VOICE_ENABLED, 225 | /** 226 | * Whether to revert combat mechanics to 1.7 227 | */ 228 | LEGACY_COMBAT, 229 | } 230 | 231 | export type ServerRuleResolvable = 232 | | 'minimapStatus' 233 | | 'serverHandlesWaypoints' 234 | | 'competitiveGame' 235 | | 'shadersDisabled' 236 | | 'legacyEnchanting' 237 | | 'voiceEnabled' 238 | | 'legacyCombat'; 239 | 240 | /** 241 | * MinimapStatus values for the server rule 242 | */ 243 | export declare enum MiniMapStatus { 244 | NEUTRAL, 245 | FORCED_OFF, 246 | } 247 | 248 | export type MiniMapStatusResolvable = 'NEUTRAL' | 'FORCED_OFF'; 249 | 250 | export enum Mod {} 251 | 252 | /** 253 | * Waypoint object. Used when creating waypoints. 254 | */ 255 | export interface Waypoint { 256 | /** 257 | * Name of the waypoint 258 | */ 259 | name: string; 260 | /** 261 | * X coordinate of the waypoint 262 | */ 263 | x: number; 264 | /** 265 | * Y coordinate of the waypoint 266 | */ 267 | y: number; 268 | /** 269 | * Z coordinate of the waypoint 270 | */ 271 | z: number; 272 | /** 273 | * Color of the waypoint 274 | */ 275 | color: WaypointColor | number; 276 | /** 277 | * I don't really know what this is, if you know please tell me or open a pull request with this comment changed 278 | */ 279 | forced: boolean; 280 | /** 281 | * If the waypoint is visible 282 | */ 283 | visible: boolean; 284 | } 285 | 286 | export interface AddModSettingOptions { 287 | /** 288 | * Whether or not to send the `ModSettings` packet. Useful when you need to set multiple mods without sending a tons of packets. 289 | */ 290 | sendPacket: boolean; 291 | /** 292 | * I don't know what this is ¯\\\_(ツ)\_/¯ 293 | */ 294 | properties: any; 295 | } 296 | 297 | /** 298 | * Mod Setting object. Used in the `LCPlayer#modSettings` property. 299 | */ 300 | export interface ModSetting { 301 | enabled: boolean; 302 | properties: { [key: string]: any }; 303 | } 304 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | const scheme = require('./scheme'); 2 | 3 | // console.log(JSON.stringify(scheme, null, 2)); 4 | 5 | const { LCPlayer } = require('./LCPlayer'); 6 | 7 | // Enums 8 | const { 9 | WaypointColor, 10 | StaffMod, 11 | ServerRule, 12 | MiniMapStatus, 13 | } = require('./constants'); 14 | 15 | // Utility functions 16 | const convertHexColor = require('./utils/convertHexColor'); 17 | 18 | module.exports = { 19 | scheme, 20 | LCPlayer, 21 | WaypointColor, 22 | StaffMod, 23 | ServerRule, 24 | MiniMapStatus, 25 | convertHexColor, 26 | }; 27 | -------------------------------------------------------------------------------- /src/packets/client/boss_bar.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'action', 6 | type: 'varint', 7 | }, 8 | { 9 | name: 'data', 10 | type: [ 11 | 'switch', 12 | { 13 | compareTo: 'action', 14 | fields: { 15 | 0: [ 16 | 'container', 17 | [ 18 | { 19 | name: 'text', 20 | type: 'string', 21 | }, 22 | { 23 | name: 'health', 24 | type: 'f32', 25 | }, 26 | ], 27 | ], 28 | }, 29 | default: 'void', 30 | }, 31 | ], 32 | }, 33 | ], 34 | ]; 35 | -------------------------------------------------------------------------------- /src/packets/client/cooldown.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'message', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'durationMs', 10 | type: 'i64', 11 | }, 12 | { 13 | name: 'iconId', 14 | type: 'i32', 15 | }, 16 | ], 17 | ]; 18 | -------------------------------------------------------------------------------- /src/packets/client/ghost.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'addGhostList', 6 | type: [ 7 | 'array', 8 | { 9 | countType: 'varint', 10 | type: 'UUID', 11 | }, 12 | ], 13 | }, 14 | { 15 | name: 'removeGhostList', 16 | type: [ 17 | 'array', 18 | { 19 | countType: 'varint', 20 | type: 'UUID', 21 | }, 22 | ], 23 | }, 24 | ], 25 | ]; 26 | -------------------------------------------------------------------------------- /src/packets/client/hologram.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'uuid', 6 | type: 'UUID', 7 | }, 8 | { 9 | name: 'x', 10 | type: 'f64', 11 | }, 12 | { 13 | name: 'y', 14 | type: 'f64', 15 | }, 16 | { 17 | name: 'z', 18 | type: 'f64', 19 | }, 20 | { 21 | name: 'lines', 22 | type: [ 23 | 'array', 24 | { 25 | countType: 'varint', 26 | type: 'string', 27 | }, 28 | ], 29 | }, 30 | ], 31 | ]; 32 | -------------------------------------------------------------------------------- /src/packets/client/hologram_remove.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'uuid', 6 | type: 'UUID', 7 | }, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /src/packets/client/hologram_update.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'uuid', 6 | type: 'UUID', 7 | }, 8 | { 9 | name: 'lines', 10 | type: [ 11 | 'array', 12 | { 13 | countType: 'varint', 14 | type: 'string', 15 | }, 16 | ], 17 | }, 18 | ], 19 | ]; 20 | -------------------------------------------------------------------------------- /src/packets/client/mod_settings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'settings', 6 | type: 'string', 7 | }, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /src/packets/client/nametags_override.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'player', 6 | type: 'UUID', 7 | }, 8 | { 9 | name: 'tags', 10 | type: [ 11 | 'option', 12 | [ 13 | 'array', 14 | { 15 | countType: 'varint', 16 | type: 'string', 17 | }, 18 | ], 19 | ], 20 | }, 21 | ], 22 | ]; 23 | -------------------------------------------------------------------------------- /src/packets/client/nametags_update.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'size', 6 | type: 'varint', 7 | }, 8 | { 9 | name: 'players', 10 | type: [ 11 | 'switch', 12 | { 13 | compareTo: 'size', 14 | fields: { 15 | '-1': 'void', 16 | }, 17 | default: [ 18 | 'array', 19 | { 20 | count: 'size', 21 | type: [ 22 | 'container', 23 | [ 24 | { 25 | name: 'player', 26 | type: 'UUID', 27 | }, 28 | { 29 | name: 'tags', 30 | type: [ 31 | 'array', 32 | { 33 | countType: 'varint', 34 | type: 'string', 35 | }, 36 | ], 37 | }, 38 | ], 39 | ], 40 | }, 41 | ], 42 | }, 43 | ], 44 | }, 45 | ], 46 | ]; 47 | -------------------------------------------------------------------------------- /src/packets/client/notification.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'message', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'durationMs', 10 | type: 'i64', 11 | }, 12 | { 13 | name: 'level', 14 | type: 'string', 15 | }, 16 | ], 17 | ]; 18 | -------------------------------------------------------------------------------- /src/packets/client/server_rule.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'rule', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'boolean', 10 | type: 'bool', 11 | }, 12 | { 13 | name: 'integer', 14 | type: 'i32', 15 | }, 16 | { 17 | name: 'float', 18 | type: 'f32', 19 | }, 20 | { 21 | name: 'string', 22 | type: 'string', 23 | }, 24 | ], 25 | ]; 26 | -------------------------------------------------------------------------------- /src/packets/client/server_update.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'server', 6 | type: 'string', 7 | }, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /src/packets/client/staff_mods.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'mod', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'state', 10 | type: 'bool', 11 | }, 12 | ], 13 | ]; 14 | -------------------------------------------------------------------------------- /src/packets/client/teammates.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'leader', 6 | type: ['option', 'UUID'], 7 | }, 8 | { 9 | name: 'lastMs', 10 | type: 'i64', 11 | }, 12 | { 13 | name: 'players', 14 | type: [ 15 | 'array', 16 | { 17 | countType: 'varint', 18 | type: [ 19 | 'container', 20 | [ 21 | { 22 | name: 'player', 23 | type: 'UUID', 24 | }, 25 | { 26 | name: 'posMap', 27 | type: [ 28 | 'array', 29 | { 30 | countType: 'varint', 31 | type: [ 32 | 'container', 33 | [ 34 | { 35 | name: 'key', 36 | type: 'string', 37 | }, 38 | { 39 | name: 'value', 40 | type: 'f64', 41 | }, 42 | ], 43 | ], 44 | }, 45 | ], 46 | }, 47 | ], 48 | ], 49 | }, 50 | ], 51 | }, 52 | ], 53 | ]; 54 | -------------------------------------------------------------------------------- /src/packets/client/title.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'type', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'message', 10 | type: 'string', 11 | }, 12 | { 13 | name: 'scale', 14 | type: 'f32', 15 | }, 16 | { 17 | name: 'displayTimeMs', 18 | type: 'i64', 19 | }, 20 | { 21 | name: 'fadeInTimeMs', 22 | type: 'i64', 23 | }, 24 | { 25 | name: 'fadeOutTimeMs', 26 | type: 'i64', 27 | }, 28 | ], 29 | ]; 30 | -------------------------------------------------------------------------------- /src/packets/client/update_world.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'world', 6 | type: 'string', 7 | }, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /src/packets/client/world_border.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'borderId', 6 | type: ['option', 'string'], 7 | }, 8 | { 9 | name: 'world', 10 | type: 'string', 11 | }, 12 | { 13 | name: 'cancelsExit', 14 | type: 'bool', 15 | }, 16 | { 17 | name: 'canShrinkExpand', 18 | type: 'bool', 19 | }, 20 | { 21 | name: 'color', 22 | type: 'i32', 23 | }, 24 | { 25 | name: 'minX', 26 | type: 'f64', 27 | }, 28 | { 29 | name: 'minZ', 30 | type: 'f64', 31 | }, 32 | { 33 | name: 'maxX', 34 | type: 'f64', 35 | }, 36 | { 37 | name: 'maxZ', 38 | type: 'f64', 39 | }, 40 | ], 41 | ]; 42 | -------------------------------------------------------------------------------- /src/packets/client/world_border_create_new.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'borderId', 6 | type: ['option', 'string'], 7 | }, 8 | { 9 | name: 'world', 10 | type: 'string', 11 | }, 12 | { 13 | name: 'cancelsEntry', 14 | type: 'bool', 15 | }, 16 | { 17 | name: 'cancelsExit', 18 | type: 'bool', 19 | }, 20 | { 21 | name: 'canShrinkExpand', 22 | type: 'bool', 23 | }, 24 | { 25 | name: 'color', 26 | type: 'i32', 27 | }, 28 | { 29 | name: 'minX', 30 | type: 'f64', 31 | }, 32 | { 33 | name: 'minZ', 34 | type: 'f64', 35 | }, 36 | { 37 | name: 'maxX', 38 | type: 'f64', 39 | }, 40 | { 41 | name: 'maxZ', 42 | type: 'f64', 43 | }, 44 | ], 45 | ]; 46 | -------------------------------------------------------------------------------- /src/packets/client/world_border_remove.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'borderId', 6 | type: 'string', 7 | }, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /src/packets/client/world_border_update.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'borderId', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'minX', 10 | type: 'f64', 11 | }, 12 | { 13 | name: 'minZ', 14 | type: 'f64', 15 | }, 16 | { 17 | name: 'maxX', 18 | type: 'f64', 19 | }, 20 | { 21 | name: 'maxZ', 22 | type: 'f64', 23 | }, 24 | { 25 | name: 'durationTicks', 26 | type: 'i32', 27 | }, 28 | ], 29 | ]; 30 | -------------------------------------------------------------------------------- /src/packets/client/world_border_update_new.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'borderid', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'minX', 10 | type: 'f64', 11 | }, 12 | { 13 | name: 'minZ', 14 | type: 'f64', 15 | }, 16 | { 17 | name: 'maxX', 18 | type: 'f64', 19 | }, 20 | { 21 | name: 'maxZ', 22 | type: 'f64', 23 | }, 24 | { 25 | name: 'durationTicks', 26 | type: 'i32', 27 | }, 28 | { 29 | name: 'cancelsEntry', 30 | type: 'bool', 31 | }, 32 | { 33 | name: 'cancelsExit', 34 | type: 'bool', 35 | }, 36 | { 37 | name: 'color', 38 | type: 'i32', 39 | }, 40 | ], 41 | ]; 42 | -------------------------------------------------------------------------------- /src/packets/mapper.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | type: 'varint', 3 | mappings: { 4 | /* Server */ 5 | 0: 'client_voice', 6 | 1: 'voice_channel_switch', 7 | 2: 'voice_mute', 8 | 16: 'voice', 9 | 17: 'voice_channel', 10 | 18: 'voice_channel_remove', 11 | 19: 'voice_channel_update', 12 | /* Client */ 13 | 3: 'cooldown', 14 | 4: 'hologram', 15 | 5: 'hologram_update', 16 | 6: 'hologram_remove', 17 | 7: 'nametags_override', 18 | 8: 'nametags_update', 19 | 9: 'notification', 20 | 10: 'server_rule', 21 | 11: 'server_update', 22 | 12: 'staff_mods', 23 | 13: 'teammates', 24 | 14: 'title', 25 | 15: 'update_world', 26 | 20: 'world_border', 27 | 21: 'world_border_remove', 28 | 22: 'wolrd_border_update', 29 | 25: 'ghost', 30 | 28: 'boss_bar', 31 | 29: 'world_border_create_new', 32 | 30: 'world_border_update_new', 33 | 31: 'mod_settings', 34 | /* Shared */ 35 | 26: 'emote_broadcast', 36 | 23: 'waypoint_add', 37 | 24: 'waypoint_remove', 38 | }, 39 | }; 40 | -------------------------------------------------------------------------------- /src/packets/server/client_voice.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'blob', 6 | type: 'ByteArray', 7 | }, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /src/packets/server/voice.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'senders', 6 | type: [ 7 | 'array', 8 | { 9 | countType: 'varint', 10 | type: 'UUID', 11 | }, 12 | ], 13 | }, 14 | { 15 | name: 'blob', 16 | type: 'ByteArray', 17 | }, 18 | ], 19 | ]; 20 | -------------------------------------------------------------------------------- /src/packets/server/voice_channel.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'channel', 6 | type: 'UUID', 7 | }, 8 | { 9 | name: 'name', 10 | type: 'string', 11 | }, 12 | { 13 | name: 'players', 14 | type: [ 15 | 'array', 16 | { 17 | countType: 'varint', 18 | type: [ 19 | 'container', 20 | [ 21 | { 22 | name: 'player', 23 | type: 'UUID', 24 | }, 25 | { 26 | name: 'displayName', 27 | type: 'string', 28 | }, 29 | ], 30 | ], 31 | }, 32 | ], 33 | }, 34 | ], 35 | ]; 36 | -------------------------------------------------------------------------------- /src/packets/server/voice_channel_remove.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'channel', 6 | type: 'UUID', 7 | }, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /src/packets/server/voice_channel_switch.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'switchingTo', 6 | type: 'UUID', 7 | }, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /src/packets/server/voice_channel_update.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'status', 6 | type: 'varint', 7 | }, 8 | { 9 | name: 'channel', 10 | type: 'UUID', 11 | }, 12 | { 13 | name: 'uuid', 14 | type: 'UUID', 15 | }, 16 | { 17 | name: 'name', 18 | type: 'string', 19 | }, 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /src/packets/server/voice_mute.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'muting', 6 | type: 'UUID', 7 | }, 8 | { 9 | name: 'volume', 10 | type: 'varint', 11 | }, 12 | ], 13 | ]; 14 | -------------------------------------------------------------------------------- /src/packets/shared/emote_broadcast.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'player', 6 | type: 'UUID', 7 | }, 8 | { 9 | name: 'emoteId', 10 | type: 'i32', 11 | }, 12 | ], 13 | ]; 14 | -------------------------------------------------------------------------------- /src/packets/shared/waypoint_add.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'name', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'world', 10 | type: 'string', 11 | }, 12 | { 13 | name: 'color', 14 | type: 'i32', 15 | }, 16 | { 17 | name: 'x', 18 | type: 'i32', 19 | }, 20 | { 21 | name: 'y', 22 | type: 'i32', 23 | }, 24 | { 25 | name: 'z', 26 | type: 'i32', 27 | }, 28 | { 29 | name: 'forced', 30 | type: 'bool', 31 | }, 32 | { 33 | name: 'visible', 34 | type: 'bool', 35 | }, 36 | ], 37 | ]; 38 | -------------------------------------------------------------------------------- /src/packets/shared/waypoint_remove.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'name', 6 | type: 'string', 7 | }, 8 | { 9 | name: 'world', 10 | type: 'string', 11 | }, 12 | ], 13 | ]; 14 | -------------------------------------------------------------------------------- /src/scheme.js: -------------------------------------------------------------------------------- 1 | const scheme = [ 2 | 'container', 3 | [ 4 | { 5 | name: 'id', 6 | type: ['mapper', require('./packets/mapper')], 7 | }, 8 | { 9 | anon: true, 10 | type: [ 11 | 'switch', 12 | { 13 | compareTo: 'id', 14 | fields: { 15 | /* Server */ 16 | client_voice: require('./packets/server/client_voice'), 17 | voice_channel_switch: require('./packets/server/voice_channel_switch'), 18 | voice_mute: require('./packets/server/voice_mute'), 19 | voice: require('./packets/server/voice'), 20 | voice_channel: require('./packets/server/voice_channel'), 21 | voice_channel_remove: require('./packets/server/voice_channel_remove'), 22 | voice_channel_update: require('./packets/server/voice_channel_update'), 23 | /* Client */ 24 | cooldown: require('./packets/client/cooldown'), 25 | hologram: require('./packets/client/hologram'), 26 | hologram_update: require('./packets/client/hologram_update'), 27 | hologram_remove: require('./packets/client/hologram_remove'), 28 | nametags_override: require('./packets/client/nametags_override'), 29 | nametags_update: require('./packets/client/nametags_update'), 30 | notification: require('./packets/client/notification'), 31 | server_rule: require('./packets/client/server_rule'), 32 | server_update: require('./packets/client/server_update'), 33 | staff_mods: require('./packets/client/staff_mods'), 34 | teammates: require('./packets/client/teammates'), 35 | title: require('./packets/client/title'), 36 | update_world: require('./packets/client/update_world'), 37 | world_border: require('./packets/client/world_border'), 38 | world_border_remove: require('./packets/client/world_border_remove'), 39 | world_border_update: require('./packets/client/world_border_update'), 40 | ghost: require('./packets/client/ghost'), 41 | boss_bar: require('./packets/client/boss_bar'), 42 | world_border_create_new: require('./packets/client/world_border_create_new'), 43 | world_border_update_new: require('./packets/client/world_border_update_new'), 44 | mod_settings: require('./packets/client/mod_settings'), 45 | /* Shared */ 46 | emote_broadcast: require('./packets/shared/emote_broadcast'), 47 | waypoint_add: require('./packets/shared/waypoint_add'), 48 | waypoint_remove: require('./packets/shared/waypoint_remove'), 49 | }, 50 | default: 'void', 51 | }, 52 | ], 53 | }, 54 | ], 55 | ]; 56 | 57 | module.exports = scheme; 58 | -------------------------------------------------------------------------------- /src/utils/convertHexColor.js: -------------------------------------------------------------------------------- 1 | module.exports = (color) => { 2 | const _color = color.startsWith('#') ? color.substring(1) : color; 3 | return parseInt(`0x${_color}`); 4 | }; 5 | -------------------------------------------------------------------------------- /test/clientServerGenerator.js: -------------------------------------------------------------------------------- 1 | const { 2 | createServer: _createServer, 3 | createClient: _createClient, 4 | } = require('minecraft-protocol'); 5 | 6 | let port = 25565; 7 | 8 | module.exports = () => { 9 | function createServer() { 10 | port++; 11 | return _createServer({ 12 | 'online-mode': false, 13 | version: '1.8.9', 14 | port, 15 | validateChannelProtocol: false, 16 | }); 17 | } 18 | 19 | function createClient() { 20 | return _createClient({ 21 | username: 'test', 22 | version: '1.8.9', 23 | host: 'localhost', 24 | port, 25 | validateChannelProtocol: false, 26 | }); 27 | } 28 | 29 | const server = createServer(); 30 | const client = createClient(); 31 | return { server, client }; 32 | }; 33 | -------------------------------------------------------------------------------- /test/manual.js: -------------------------------------------------------------------------------- 1 | const { InstantConnectProxy } = require('prismarine-proxy'); 2 | const { LCPlayer } = require('../src'); 3 | 4 | const proxy = new InstantConnectProxy({ 5 | loginHandler: (client) => { 6 | return { username: client.username, auth: 'microsoft' }; 7 | }, 8 | serverOptions: { 9 | version: '1.8.9', 10 | protocolValidation: false, 11 | }, 12 | clientOptions: { 13 | version: '1.8.9', 14 | protocolValidation: false, 15 | host: 'hypixel.net', 16 | // host: 'localhost', 17 | // port: 25568, 18 | }, 19 | }); 20 | 21 | proxy.on('incoming', (data, meta, toClient, toServer) => { 22 | toClient.write(meta.name, data); 23 | // if (meta.name === 'custom_payload') 24 | // console.log(Buffer.from(data.data).toString('ascii'), data); 25 | }); 26 | 27 | proxy.on('outgoing', (data, meta, toClient, toServer) => { 28 | toServer.write(meta.name, data); 29 | // if (meta.name === 'custom_payload') console.log(data); 30 | }); 31 | 32 | proxy.on('start', (client) => { 33 | console.log(`${client.username} joined`); 34 | const player = new LCPlayer(client); 35 | // player.addCooldownManual('bow', 9000, 261); 36 | // player.addCooldownManual('pearl', 16000, 368); 37 | // player.setStaffModeState(StaffMod.XRAY, true); 38 | // player.setServerRule(ServerRule.LEGACY_COMBAT, true); 39 | // console.log(player.addModSetting('bossbar', false, { sendPacket: false })); 40 | // console.log(player.addModSetting('freelook', false)); 41 | // setTimeout(() => { 42 | // player.removeCooldownManual('pearl'); 43 | // }, 1500); 44 | }); 45 | -------------------------------------------------------------------------------- /test/pluginChannel.test.js: -------------------------------------------------------------------------------- 1 | const { assert } = require('chai'); 2 | 3 | const createBoth = require('./clientServerGenerator'); 4 | const { LCPlayer } = require('../src'); 5 | 6 | describe('Plugin channel registration', () => { 7 | it('Default channel', (done) => { 8 | const { server, client } = createBoth(); 9 | client.on('packet', (data, meta) => { 10 | if (meta.name === 'custom_payload') 11 | if (data.channel === 'REGISTER') { 12 | assert.equal(data.data.toString('ascii'), 'lunarclient:pm\u0000'); 13 | done(); 14 | client.end(); 15 | } 16 | }); 17 | server.on('login', (client) => { 18 | new LCPlayer(client); 19 | client.end(); 20 | }); 21 | }); 22 | 23 | it('Alternative channel', (done) => { 24 | const { server, client } = createBoth(); 25 | client.on('packet', (data, meta) => { 26 | if (meta.name === 'custom_payload') 27 | if (data.channel === 'REGISTER') { 28 | assert.equal(data.data.toString('ascii'), 'Lunar-Client\u0000'); 29 | done(); 30 | client.end(); 31 | } 32 | }); 33 | server.on('login', (client) => { 34 | new LCPlayer(client, { 35 | channel: 'Lunar-Client', 36 | }); 37 | client.end(); 38 | }); 39 | }); 40 | 41 | it('Default channel (Old method)', (done) => { 42 | const { server, client } = createBoth(); 43 | client.on('packet', (data, meta) => { 44 | if (meta.name === 'custom_payload') 45 | if (data.channel === 'REGISTER') { 46 | assert.equal(data.data.toString('ascii'), 'lunarclient:pm\u0000'); 47 | done(); 48 | client.end(); 49 | } 50 | }); 51 | server.on('login', (client) => { 52 | new LCPlayer(client, { 53 | oldChannelRegistration: true, 54 | }); 55 | client.end(); 56 | }); 57 | }); 58 | 59 | it('Alternative channel (Old method)', (done) => { 60 | const { server, client } = createBoth(); 61 | client.on('packet', (data, meta) => { 62 | if (meta.name === 'custom_payload') 63 | if (data.channel === 'REGISTER') { 64 | assert.equal(data.data.toString('ascii'), 'Lunar-Client\u0000'); 65 | done(); 66 | client.end(); 67 | } 68 | }); 69 | server.on('login', (client) => { 70 | new LCPlayer(client, { 71 | channel: 'Lunar-Client', 72 | oldChannelRegistration: true, 73 | }); 74 | client.end(); 75 | }); 76 | }); 77 | }); 78 | -------------------------------------------------------------------------------- /test/waypoints.test.js: -------------------------------------------------------------------------------- 1 | const { assert } = require('chai'); 2 | 3 | const createBoth = require('./clientServerGenerator'); 4 | const { LCPlayer, WaypointColor } = require('../src'); 5 | 6 | describe('Waypoints', () => { 7 | it('Add waypoint', (done) => { 8 | const { server, client } = createBoth(); 9 | let packetCount = 0; 10 | client.on('packet', (data, meta) => { 11 | if (meta.name !== 'custom_payload') return; 12 | packetCount++; 13 | if (packetCount !== 2) return; 14 | assert.equal( 15 | data.data.toString('hex'), 16 | '1708576179706f696e740000ff00000000002a00000045000000110001' 17 | ); 18 | done(); 19 | server.close(); 20 | }); 21 | server.on('login', (client) => { 22 | const player = new LCPlayer(client); 23 | player.addWaypoint({ 24 | name: 'Waypoint', 25 | color: WaypointColor.RED, 26 | x: 42, 27 | y: 69, 28 | z: 17, 29 | forced: false, 30 | visible: true, 31 | }); 32 | }); 33 | }); 34 | 35 | it('Add two waypoints', (done) => { 36 | const { server } = createBoth(); 37 | server.on('login', (client) => { 38 | const player = new LCPlayer(client); 39 | const waypoint = { 40 | name: 'Waypoint', 41 | color: WaypointColor.RED, 42 | x: 42, 43 | y: 69, 44 | z: 17, 45 | forced: false, 46 | visible: true, 47 | }; 48 | player.addWaypoint(waypoint); 49 | assert.notOk(player.addWaypoint(waypoint)); 50 | done(); 51 | server.close(); 52 | }); 53 | }); 54 | 55 | it('Remove waypoint', (done) => { 56 | const { server, client } = createBoth(); 57 | let packetCount = 0; 58 | client.on('packet', (data, meta) => { 59 | if (meta.name !== 'custom_payload') return; 60 | packetCount++; 61 | if (packetCount !== 3) return; 62 | assert.equal(data.data.toString('hex'), '1808576179706f696e7400'); 63 | done(); 64 | server.close(); 65 | }); 66 | server.on('login', (client) => { 67 | const player = new LCPlayer(client); 68 | player.addWaypoint({ 69 | name: 'Waypoint', 70 | color: WaypointColor.RED, 71 | x: 42, 72 | y: 69, 73 | z: 17, 74 | forced: false, 75 | visible: true, 76 | }); 77 | player.removeWaypoint('Waypoint'); 78 | }); 79 | }); 80 | 81 | it('Remove unknown waypoint', (done) => { 82 | const { server } = createBoth(); 83 | server.on('login', (client) => { 84 | const player = new LCPlayer(client); 85 | assert.notOk(player.removeWaypoint('UnknownWaypoint')); 86 | done(); 87 | server.close(); 88 | }); 89 | }); 90 | 91 | it('Remove all waypoints', (done) => { 92 | const { server, client } = createBoth(); 93 | let packetCount = 0; 94 | client.on('packet', (data, meta) => { 95 | if (meta.name !== 'custom_payload') return; 96 | packetCount++; 97 | if (packetCount === 4) 98 | assert.equal(data.data.toString('hex'), '1808576179706f696e7400'); 99 | if (packetCount === 5) { 100 | assert.equal(data.data.toString('hex'), '180a576179706f696e74203200'); 101 | done(); 102 | server.close(); 103 | } 104 | }); 105 | server.on('login', (client) => { 106 | const player = new LCPlayer(client); 107 | player.addWaypoint({ 108 | name: 'Waypoint', 109 | color: WaypointColor.RED, 110 | x: 42, 111 | y: 69, 112 | z: 17, 113 | forced: false, 114 | visible: true, 115 | }); 116 | player.addWaypoint({ 117 | name: 'Waypoint 2', 118 | color: WaypointColor.BLUE, 119 | x: 17, 120 | y: 42, 121 | z: 69, 122 | forced: true, 123 | visible: false, 124 | }); 125 | player.removeAllWaypoints(); 126 | }); 127 | }); 128 | }); 129 | --------------------------------------------------------------------------------