├── .github └── workflows │ ├── ci.yml │ ├── security-audit.yml │ └── vscode-ci.yml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── cliff.toml ├── crates └── lsp_server │ ├── .gitignore │ ├── Cargo.toml │ └── src │ ├── capabilities │ ├── document.rs │ ├── formatting.rs │ └── mod.rs │ ├── core │ ├── mod.rs │ ├── rsx_document.rs │ └── text_document.rs │ ├── lib.rs │ └── main.rs └── editors └── vscode ├── .gitignore ├── .vscode ├── launch.json └── tasks.json ├── .vscodeignore ├── LICENSE ├── client ├── package-lock.json ├── package.json ├── src │ └── extension.ts └── tsconfig.json ├── package-lock.json ├── package.json └── tsconfig.json /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | paths: 4 | - '**.rs' 5 | 6 | name: Continuous integration 7 | 8 | jobs: 9 | check: 10 | name: Check 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v2 14 | - uses: actions-rs/toolchain@v1 15 | with: 16 | profile: minimal 17 | toolchain: stable 18 | override: true 19 | - uses: actions-rs/cargo@v1 20 | with: 21 | command: check 22 | 23 | test: 24 | name: Test Suite 25 | runs-on: ubuntu-latest 26 | steps: 27 | - uses: actions/checkout@v2 28 | - uses: actions-rs/toolchain@v1 29 | with: 30 | profile: minimal 31 | toolchain: stable 32 | override: true 33 | - uses: actions-rs/cargo@v1 34 | with: 35 | command: test 36 | 37 | fmt: 38 | name: Rustfmt 39 | runs-on: ubuntu-latest 40 | steps: 41 | - uses: actions/checkout@v2 42 | - uses: actions-rs/toolchain@v1 43 | with: 44 | profile: minimal 45 | toolchain: stable 46 | override: true 47 | - run: rustup component add rustfmt 48 | - uses: actions-rs/cargo@v1 49 | with: 50 | command: fmt 51 | args: --all -- --check 52 | 53 | clippy: 54 | name: Clippy 55 | runs-on: ubuntu-latest 56 | steps: 57 | - uses: actions/checkout@v2 58 | - uses: actions-rs/toolchain@v1 59 | with: 60 | profile: minimal 61 | toolchain: stable 62 | override: true 63 | - run: rustup component add clippy 64 | - uses: actions-rs/cargo@v1 65 | with: 66 | command: clippy 67 | args: -- -D warnings 68 | -------------------------------------------------------------------------------- /.github/workflows/security-audit.yml: -------------------------------------------------------------------------------- 1 | name: Security audit 2 | on: 3 | push: 4 | paths: 5 | - '**/Cargo.toml' 6 | - '**/Cargo.lock' 7 | jobs: 8 | security_audit: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v1 12 | - uses: actions-rs/audit-check@v1 13 | with: 14 | token: ${{ secrets.GITHUB_TOKEN }} 15 | -------------------------------------------------------------------------------- /.github/workflows/vscode-ci.yml: -------------------------------------------------------------------------------- 1 | name: VSCode extension CI 2 | on: 3 | workflow_dispatch: 4 | push: 5 | tags: 6 | - "*.*.*" 7 | 8 | env: 9 | BIN_NAME: leptos-language-server 10 | jobs: 11 | build: 12 | strategy: 13 | matrix: 14 | include: 15 | - build: linux 16 | platform: linux 17 | os: ubuntu-latest 18 | rust: stable 19 | target: x86_64-unknown-linux-musl 20 | arch: x64 21 | npm_config_arch: x64 22 | - build: macos 23 | platform: darwin 24 | os: macos-latest 25 | rust: stable 26 | target: x86_64-apple-darwin 27 | arch: x64 28 | npm_config_arch: x64 29 | - build: macos 30 | platform: darwin 31 | os: macos-latest 32 | rust: stable 33 | target: aarch64-apple-darwin 34 | arch: arm64 35 | npm_config_arch: arm64 36 | - build: win-msvc 37 | platform: win32 38 | os: windows-latest 39 | rust: stable 40 | npm_config_arch: x64 41 | arch: x64 42 | target: x86_64-pc-windows-msvc 43 | runs-on: ${{ matrix.os }} 44 | steps: 45 | - uses: actions/checkout@v2 46 | - name: Install packages (Ubuntu) 47 | if: matrix.os == 'ubuntu-latest' 48 | run: | 49 | sudo apt-get update 50 | sudo apt-get install -y --no-install-recommends xz-utils liblz4-tool musl-tools 51 | - name: Install Rust 52 | uses: actions-rs/toolchain@v1 53 | with: 54 | toolchain: ${{ matrix.rust }} 55 | profile: minimal 56 | override: true 57 | target: ${{ matrix.target }} 58 | - name: Build release binary 59 | run: cargo build --target ${{ matrix.target }} --verbose --release 60 | - uses: actions/setup-node@v2 61 | with: 62 | node-version: 14.x 63 | - run: npm install 64 | working-directory: editors/vscode/ 65 | env: 66 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 67 | npm_config_arch: ${{ matrix.npm_config_arch }} 68 | - name: Copy lsp binary 69 | shell: bash 70 | run: | 71 | staging="./editors/vscode/" 72 | if [ "${{ matrix.os }}" = "windows-latest" ]; then 73 | cp "target/${{ matrix.target }}/release/${{ env.BIN_NAME }}.exe" "$staging/" 74 | mv "$staging/${{ env.BIN_NAME }}.exe" "$staging/${{ env.BIN_NAME }}" 75 | else 76 | cp "target/${{ matrix.target }}/release/${{ env.BIN_NAME }}" "$staging/" 77 | fi 78 | - shell: pwsh 79 | run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV 80 | - run: npx vsce package --pre-release --target ${{ env.target }} 81 | working-directory: editors/vscode/ 82 | - uses: actions/upload-artifact@v2 83 | with: 84 | name: ${{ env.target }} 85 | path: "editors/vscode/*.vsix" 86 | 87 | publish: 88 | runs-on: ubuntu-latest 89 | needs: build 90 | if: success() && startsWith( github.ref, 'refs/tags/') 91 | steps: 92 | - uses: actions/download-artifact@v2 93 | - run: npx vsce publish --pre-release --packagePath $(find . -iname *.vsix) 94 | env: 95 | VSCE_PAT: ${{ secrets.VSCE_PAT }} 96 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | debug/ 4 | target/ 5 | 6 | # These are backup files generated by rustfmt 7 | **/*.rs.bk -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "cfg-if" 19 | version = "1.0.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 22 | 23 | [[package]] 24 | name = "crop" 25 | version = "0.1.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "7b7d57ecff3f3ace6dc3b2f678a82e381e3e2d3258b97f2e5653600789c51c48" 28 | dependencies = [ 29 | "str_indices", 30 | ] 31 | 32 | [[package]] 33 | name = "crossbeam-channel" 34 | version = "0.5.6" 35 | source = "registry+https://github.com/rust-lang/crates.io-index" 36 | checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" 37 | dependencies = [ 38 | "cfg-if", 39 | "crossbeam-utils", 40 | ] 41 | 42 | [[package]] 43 | name = "crossbeam-utils" 44 | version = "0.8.14" 45 | source = "registry+https://github.com/rust-lang/crates.io-index" 46 | checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" 47 | dependencies = [ 48 | "cfg-if", 49 | ] 50 | 51 | [[package]] 52 | name = "dashmap" 53 | version = "5.4.0" 54 | source = "registry+https://github.com/rust-lang/crates.io-index" 55 | checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc" 56 | dependencies = [ 57 | "cfg-if", 58 | "hashbrown", 59 | "lock_api", 60 | "once_cell", 61 | "parking_lot_core", 62 | ] 63 | 64 | [[package]] 65 | name = "form_urlencoded" 66 | version = "1.1.0" 67 | source = "registry+https://github.com/rust-lang/crates.io-index" 68 | checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" 69 | dependencies = [ 70 | "percent-encoding", 71 | ] 72 | 73 | [[package]] 74 | name = "hashbrown" 75 | version = "0.12.3" 76 | source = "registry+https://github.com/rust-lang/crates.io-index" 77 | checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" 78 | 79 | [[package]] 80 | name = "idna" 81 | version = "0.3.0" 82 | source = "registry+https://github.com/rust-lang/crates.io-index" 83 | checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" 84 | dependencies = [ 85 | "unicode-bidi", 86 | "unicode-normalization", 87 | ] 88 | 89 | [[package]] 90 | name = "itoa" 91 | version = "1.0.5" 92 | source = "registry+https://github.com/rust-lang/crates.io-index" 93 | checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" 94 | 95 | [[package]] 96 | name = "leptos-language-server" 97 | version = "0.1.0" 98 | dependencies = [ 99 | "dashmap", 100 | "leptosfmt-formatter", 101 | "log", 102 | "lsp-server", 103 | "lsp-types", 104 | "ropey", 105 | "serde", 106 | "serde_json", 107 | "syn 1.0.109", 108 | ] 109 | 110 | [[package]] 111 | name = "leptosfmt-formatter" 112 | version = "0.1.4" 113 | source = "git+https://github.com/bram209/leptosfmt#7897b02b2a1ff7adac520b3d2e9825813f1a2e2b" 114 | dependencies = [ 115 | "crop", 116 | "leptosfmt-pretty-printer", 117 | "leptosfmt-prettyplease", 118 | "proc-macro2", 119 | "syn 1.0.109", 120 | "syn-rsx", 121 | "thiserror", 122 | ] 123 | 124 | [[package]] 125 | name = "leptosfmt-pretty-printer" 126 | version = "0.1.4" 127 | source = "git+https://github.com/bram209/leptosfmt#7897b02b2a1ff7adac520b3d2e9825813f1a2e2b" 128 | 129 | [[package]] 130 | name = "leptosfmt-prettyplease" 131 | version = "0.1.25" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "c53da478f04c3c876f0d4ec02db3456838a6c2a2de1b7863038fb8ba9bae0113" 134 | dependencies = [ 135 | "proc-macro2", 136 | "syn 1.0.109", 137 | ] 138 | 139 | [[package]] 140 | name = "libc" 141 | version = "0.2.139" 142 | source = "registry+https://github.com/rust-lang/crates.io-index" 143 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 144 | 145 | [[package]] 146 | name = "lock_api" 147 | version = "0.4.9" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 150 | dependencies = [ 151 | "autocfg", 152 | "scopeguard", 153 | ] 154 | 155 | [[package]] 156 | name = "log" 157 | version = "0.4.17" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 160 | dependencies = [ 161 | "cfg-if", 162 | ] 163 | 164 | [[package]] 165 | name = "lsp-server" 166 | version = "0.7.0" 167 | source = "registry+https://github.com/rust-lang/crates.io-index" 168 | checksum = "68a9b4c78d1c3f35c5864c90e9633377b5f374a4a4983ac64c30b8ae898f9305" 169 | dependencies = [ 170 | "crossbeam-channel", 171 | "log", 172 | "serde", 173 | "serde_json", 174 | ] 175 | 176 | [[package]] 177 | name = "lsp-types" 178 | version = "0.94.0" 179 | source = "registry+https://github.com/rust-lang/crates.io-index" 180 | checksum = "0b63735a13a1f9cd4f4835223d828ed9c2e35c8c5e61837774399f558b6a1237" 181 | dependencies = [ 182 | "bitflags", 183 | "serde", 184 | "serde_json", 185 | "serde_repr", 186 | "url", 187 | ] 188 | 189 | [[package]] 190 | name = "once_cell" 191 | version = "1.17.1" 192 | source = "registry+https://github.com/rust-lang/crates.io-index" 193 | checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" 194 | 195 | [[package]] 196 | name = "parking_lot_core" 197 | version = "0.9.7" 198 | source = "registry+https://github.com/rust-lang/crates.io-index" 199 | checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" 200 | dependencies = [ 201 | "cfg-if", 202 | "libc", 203 | "redox_syscall", 204 | "smallvec", 205 | "windows-sys", 206 | ] 207 | 208 | [[package]] 209 | name = "percent-encoding" 210 | version = "2.2.0" 211 | source = "registry+https://github.com/rust-lang/crates.io-index" 212 | checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" 213 | 214 | [[package]] 215 | name = "proc-macro2" 216 | version = "1.0.52" 217 | source = "registry+https://github.com/rust-lang/crates.io-index" 218 | checksum = "1d0e1ae9e836cc3beddd63db0df682593d7e2d3d891ae8c9083d2113e1744224" 219 | dependencies = [ 220 | "unicode-ident", 221 | ] 222 | 223 | [[package]] 224 | name = "quote" 225 | version = "1.0.26" 226 | source = "registry+https://github.com/rust-lang/crates.io-index" 227 | checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" 228 | dependencies = [ 229 | "proc-macro2", 230 | ] 231 | 232 | [[package]] 233 | name = "redox_syscall" 234 | version = "0.2.16" 235 | source = "registry+https://github.com/rust-lang/crates.io-index" 236 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 237 | dependencies = [ 238 | "bitflags", 239 | ] 240 | 241 | [[package]] 242 | name = "ropey" 243 | version = "1.6.0" 244 | source = "registry+https://github.com/rust-lang/crates.io-index" 245 | checksum = "53ce7a2c43a32e50d666e33c5a80251b31147bb4b49024bcab11fb6f20c671ed" 246 | dependencies = [ 247 | "smallvec", 248 | "str_indices", 249 | ] 250 | 251 | [[package]] 252 | name = "ryu" 253 | version = "1.0.12" 254 | source = "registry+https://github.com/rust-lang/crates.io-index" 255 | checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" 256 | 257 | [[package]] 258 | name = "scopeguard" 259 | version = "1.1.0" 260 | source = "registry+https://github.com/rust-lang/crates.io-index" 261 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 262 | 263 | [[package]] 264 | name = "serde" 265 | version = "1.0.152" 266 | source = "registry+https://github.com/rust-lang/crates.io-index" 267 | checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" 268 | dependencies = [ 269 | "serde_derive", 270 | ] 271 | 272 | [[package]] 273 | name = "serde_derive" 274 | version = "1.0.152" 275 | source = "registry+https://github.com/rust-lang/crates.io-index" 276 | checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" 277 | dependencies = [ 278 | "proc-macro2", 279 | "quote", 280 | "syn 1.0.109", 281 | ] 282 | 283 | [[package]] 284 | name = "serde_json" 285 | version = "1.0.93" 286 | source = "registry+https://github.com/rust-lang/crates.io-index" 287 | checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" 288 | dependencies = [ 289 | "itoa", 290 | "ryu", 291 | "serde", 292 | ] 293 | 294 | [[package]] 295 | name = "serde_repr" 296 | version = "0.1.10" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "9a5ec9fa74a20ebbe5d9ac23dac1fc96ba0ecfe9f50f2843b52e537b10fbcb4e" 299 | dependencies = [ 300 | "proc-macro2", 301 | "quote", 302 | "syn 1.0.109", 303 | ] 304 | 305 | [[package]] 306 | name = "smallvec" 307 | version = "1.10.0" 308 | source = "registry+https://github.com/rust-lang/crates.io-index" 309 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 310 | 311 | [[package]] 312 | name = "str_indices" 313 | version = "0.4.1" 314 | source = "registry+https://github.com/rust-lang/crates.io-index" 315 | checksum = "5f026164926842ec52deb1938fae44f83dfdb82d0a5b0270c5bd5935ab74d6dd" 316 | 317 | [[package]] 318 | name = "syn" 319 | version = "1.0.109" 320 | source = "registry+https://github.com/rust-lang/crates.io-index" 321 | checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" 322 | dependencies = [ 323 | "proc-macro2", 324 | "quote", 325 | "unicode-ident", 326 | ] 327 | 328 | [[package]] 329 | name = "syn" 330 | version = "2.0.0" 331 | source = "registry+https://github.com/rust-lang/crates.io-index" 332 | checksum = "4cff13bb1732bccfe3b246f3fdb09edfd51c01d6f5299b7ccd9457c2e4e37774" 333 | dependencies = [ 334 | "proc-macro2", 335 | "quote", 336 | "unicode-ident", 337 | ] 338 | 339 | [[package]] 340 | name = "syn-rsx" 341 | version = "0.9.0" 342 | source = "registry+https://github.com/rust-lang/crates.io-index" 343 | checksum = "0b7b0f81c7d3e9bbe4b3005599a3e0b0bbb27bd3514f2b0567b478cc548c3736" 344 | dependencies = [ 345 | "proc-macro2", 346 | "quote", 347 | "syn 1.0.109", 348 | "thiserror", 349 | ] 350 | 351 | [[package]] 352 | name = "thiserror" 353 | version = "1.0.40" 354 | source = "registry+https://github.com/rust-lang/crates.io-index" 355 | checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" 356 | dependencies = [ 357 | "thiserror-impl", 358 | ] 359 | 360 | [[package]] 361 | name = "thiserror-impl" 362 | version = "1.0.40" 363 | source = "registry+https://github.com/rust-lang/crates.io-index" 364 | checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" 365 | dependencies = [ 366 | "proc-macro2", 367 | "quote", 368 | "syn 2.0.0", 369 | ] 370 | 371 | [[package]] 372 | name = "tinyvec" 373 | version = "1.6.0" 374 | source = "registry+https://github.com/rust-lang/crates.io-index" 375 | checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" 376 | dependencies = [ 377 | "tinyvec_macros", 378 | ] 379 | 380 | [[package]] 381 | name = "tinyvec_macros" 382 | version = "0.1.1" 383 | source = "registry+https://github.com/rust-lang/crates.io-index" 384 | checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" 385 | 386 | [[package]] 387 | name = "unicode-bidi" 388 | version = "0.3.10" 389 | source = "registry+https://github.com/rust-lang/crates.io-index" 390 | checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" 391 | 392 | [[package]] 393 | name = "unicode-ident" 394 | version = "1.0.6" 395 | source = "registry+https://github.com/rust-lang/crates.io-index" 396 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 397 | 398 | [[package]] 399 | name = "unicode-normalization" 400 | version = "0.1.22" 401 | source = "registry+https://github.com/rust-lang/crates.io-index" 402 | checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" 403 | dependencies = [ 404 | "tinyvec", 405 | ] 406 | 407 | [[package]] 408 | name = "url" 409 | version = "2.3.1" 410 | source = "registry+https://github.com/rust-lang/crates.io-index" 411 | checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" 412 | dependencies = [ 413 | "form_urlencoded", 414 | "idna", 415 | "percent-encoding", 416 | "serde", 417 | ] 418 | 419 | [[package]] 420 | name = "windows-sys" 421 | version = "0.45.0" 422 | source = "registry+https://github.com/rust-lang/crates.io-index" 423 | checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" 424 | dependencies = [ 425 | "windows-targets", 426 | ] 427 | 428 | [[package]] 429 | name = "windows-targets" 430 | version = "0.42.1" 431 | source = "registry+https://github.com/rust-lang/crates.io-index" 432 | checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" 433 | dependencies = [ 434 | "windows_aarch64_gnullvm", 435 | "windows_aarch64_msvc", 436 | "windows_i686_gnu", 437 | "windows_i686_msvc", 438 | "windows_x86_64_gnu", 439 | "windows_x86_64_gnullvm", 440 | "windows_x86_64_msvc", 441 | ] 442 | 443 | [[package]] 444 | name = "windows_aarch64_gnullvm" 445 | version = "0.42.1" 446 | source = "registry+https://github.com/rust-lang/crates.io-index" 447 | checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" 448 | 449 | [[package]] 450 | name = "windows_aarch64_msvc" 451 | version = "0.42.1" 452 | source = "registry+https://github.com/rust-lang/crates.io-index" 453 | checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" 454 | 455 | [[package]] 456 | name = "windows_i686_gnu" 457 | version = "0.42.1" 458 | source = "registry+https://github.com/rust-lang/crates.io-index" 459 | checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" 460 | 461 | [[package]] 462 | name = "windows_i686_msvc" 463 | version = "0.42.1" 464 | source = "registry+https://github.com/rust-lang/crates.io-index" 465 | checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" 466 | 467 | [[package]] 468 | name = "windows_x86_64_gnu" 469 | version = "0.42.1" 470 | source = "registry+https://github.com/rust-lang/crates.io-index" 471 | checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" 472 | 473 | [[package]] 474 | name = "windows_x86_64_gnullvm" 475 | version = "0.42.1" 476 | source = "registry+https://github.com/rust-lang/crates.io-index" 477 | checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" 478 | 479 | [[package]] 480 | name = "windows_x86_64_msvc" 481 | version = "0.42.1" 482 | source = "registry+https://github.com/rust-lang/crates.io-index" 483 | checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" 484 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | 3 | members = ["crates/*"] 4 | -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Bram 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 | # leptos-language-server 2 | 3 | A language server for the Leptos web framework. 4 | 5 | ## Status 6 | 7 | > ! The latest released alpha version of this language server is using a outdated formatter. 8 | 9 | At this point, I am not sure if it is worth it to build a language server for leptosfmt. 10 | Editor support with rust analyzer inside the macro is already pretty good and I have limited time to work on this project. I will try to update the language server soon, so that the latest version of the formatter is used. 11 | 12 | Until then, you may keep using the language server if it works for you. The most notable feature that the later versions of `leptosfmt` support are non-doc comments, so if you want those, you will have to use `leptosfmt` directly for now. You can find the `leptosfmt` cli here: https://github.com/bram209/leptosfmt 13 | 14 | ## Features 15 | 16 | - `view!` macro formatting 17 | - ... 18 | 19 | ### Formatting 20 | ![leptos-lsp-formatting](https://user-images.githubusercontent.com/9047770/228370475-729213ed-9670-4b91-8a8c-d04a87a39ee1.gif) 21 | -------------------------------------------------------------------------------- /cliff.toml: -------------------------------------------------------------------------------- 1 | # configuration file for git-cliff 2 | # see https://github.com/orhun/git-cliff#configuration-file 3 | 4 | [changelog] 5 | # changelog header 6 | header = """ 7 | # Changelog\n 8 | All notable changes to this project will be documented in this file.\n 9 | """ 10 | # template for the changelog body 11 | # https://tera.netlify.app/docs/#introduction 12 | body = """ 13 | {% if version %}\ 14 | ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} 15 | {% else %}\ 16 | ## [unreleased] 17 | {% endif %}\ 18 | {% for group, commits in commits | group_by(attribute="group") %} 19 | ### {{ group | upper_first }} 20 | {% for commit in commits %} 21 | - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ 22 | {% endfor %} 23 | {% endfor %}\n 24 | """ 25 | # remove the leading and trailing whitespace from the template 26 | trim = true 27 | # changelog footer 28 | footer = """ 29 | 30 | """ 31 | 32 | [git] 33 | # parse the commits based on https://www.conventionalcommits.org 34 | conventional_commits = true 35 | # filter out the commits that are not conventional 36 | filter_unconventional = true 37 | # process each line of a commit as an individual commit 38 | split_commits = false 39 | # regex for preprocessing the commit messages 40 | commit_preprocessors = [ 41 | { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/bram209/leptos-language-server/issues/${2}))" }, # replace issue numbers 42 | ] 43 | # regex for parsing and grouping commits 44 | commit_parsers = [ 45 | { message = "^feat", group = "Features" }, 46 | { message = "^fix", group = "Bug Fixes" }, 47 | { message = "^ci", group = "Continuous Integration" }, 48 | { message = "^doc", group = "Documentation" }, 49 | { message = "^perf", group = "Performance" }, 50 | { message = "^refactor", group = "Refactor" }, 51 | { message = "^style", group = "Styling" }, 52 | { message = "^test", group = "Testing" }, 53 | { message = "chore: Release", skip = true }, 54 | { message = "^chore", group = "Miscellaneous Tasks" }, 55 | { body = ".*security", group = "Security" }, 56 | ] 57 | # protect breaking changes from being skipped due to matching a skipping commit_parser 58 | protect_breaking_commits = false 59 | # filter out the commits that are not matched by commit parsers 60 | filter_commits = true 61 | # glob pattern for matching git tags 62 | tag_pattern = "[0-9]*" 63 | # regex for skipping tags 64 | skip_tags = "" 65 | # regex for ignoring tags 66 | ignore_tags = "" 67 | # sort the tags topologically 68 | topo_order = false 69 | # sort the commits inside sections by oldest/newest order 70 | sort_commits = "oldest" 71 | # limit the number of commits included in the changelog. 72 | # limit_commits = 42 73 | # link_parsers = [ 74 | # { pattern = "#(\\d+)", href = "https://github.com/orhun/git-cliff/issues/$1" }, 75 | # { pattern = "RFC(\\d+)", text = "ietf-rfc$1", href = "https://datatracker.ietf.org/doc/html/rfc$1" }, 76 | # ] 77 | -------------------------------------------------------------------------------- /crates/lsp_server/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /crates/lsp_server/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "leptos-language-server" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | dashmap = "5.4.0" 10 | log = "0.4.17" 11 | lsp-server = "0.7.0" 12 | lsp-types = "0.94.0" 13 | ropey = "1.6.0" 14 | serde = { version = "1.0.152", features = ["derive"] } 15 | serde_json = "1.0.93" 16 | leptosfmt-formatter = { git = "https://github.com/bram209/leptosfmt" } 17 | syn = "1.0.109" 18 | -------------------------------------------------------------------------------- /crates/lsp_server/src/capabilities/document.rs: -------------------------------------------------------------------------------- 1 | use lsp_types::{ 2 | notification::{DidChangeTextDocument, DidOpenTextDocument}, 3 | DidChangeTextDocumentParams, DidOpenTextDocumentParams, TextDocumentContentChangeEvent, 4 | TextDocumentItem, Url, 5 | }; 6 | 7 | use crate::{core::text_document::TextDocument, LanguageServer, NotificationHandler}; 8 | 9 | impl NotificationHandler for LanguageServer { 10 | fn handle(&self, params: DidChangeTextDocumentParams) -> crate::Result<()> { 11 | update_text_document(self, ¶ms.text_document.uri, params.content_changes); 12 | Ok(()) 13 | } 14 | } 15 | 16 | impl NotificationHandler for LanguageServer { 17 | fn handle(&self, params: DidOpenTextDocumentParams) -> crate::Result<()> { 18 | self.documents.insert( 19 | params.text_document.uri.path().to_owned(), 20 | params.text_document.into(), 21 | ); 22 | 23 | Ok(()) 24 | } 25 | } 26 | 27 | pub fn update_text_document( 28 | language_server: &LanguageServer, 29 | url: &Url, 30 | changes: Vec, 31 | ) { 32 | // TODO: What to do if document is not found? 33 | language_server 34 | .documents 35 | .try_get_mut(url.path()) 36 | .try_unwrap() 37 | .map(|mut document| { 38 | changes.iter().for_each(|change| { 39 | document.apply_change(change); 40 | }); 41 | eprintln!("{}", document.get_text()); 42 | }) 43 | .unwrap(); 44 | } 45 | 46 | impl From for TextDocument { 47 | fn from(value: TextDocumentItem) -> Self { 48 | Self::new( 49 | value.version, 50 | value.uri.to_string(), 51 | value.language_id, 52 | &value.text, 53 | ) 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /crates/lsp_server/src/capabilities/formatting.rs: -------------------------------------------------------------------------------- 1 | use lsp_types::{ 2 | request::{Formatting, RangeFormatting, Request}, 3 | DocumentFormattingParams, DocumentRangeFormattingParams, Position, TextEdit, 4 | }; 5 | use syn::spanned::Spanned; 6 | 7 | use crate::{core::rsx_document::RsxDocument, LanguageServer, RequestHandler, Result}; 8 | 9 | type FormattingResult = Result<::Result>; 10 | 11 | impl RequestHandler for LanguageServer { 12 | fn handle(&self, params: DocumentFormattingParams) -> FormattingResult { 13 | let document = self 14 | .documents 15 | .get(¶ms.text_document.uri.path().to_string()) 16 | .unwrap(); 17 | 18 | // TODO do not always re-parse whole document, track 'dirty' macro callsites and only reformat them instead 19 | let rsx_doc = RsxDocument::parse(&document.get_text()).unwrap(); 20 | 21 | let text_edits: Vec<_> = rsx_doc 22 | .macro_callsites 23 | .iter() 24 | .map(|view_macro| { 25 | // let ViewMacro { start, end, .. } = view_macro; 26 | let span = view_macro.span(); 27 | let start = span.start(); 28 | let end = span.end(); 29 | 30 | let start = Position { 31 | line: start.line as u32 - 1, 32 | character: start.column as u32, 33 | }; 34 | let end = Position { 35 | line: end.line as u32 - 1, 36 | character: end.column as u32, 37 | }; 38 | let formatted = leptosfmt_formatter::format_macro(view_macro, Default::default()); 39 | TextEdit { 40 | range: lsp_types::Range { start, end }, 41 | new_text: formatted, 42 | } 43 | }) 44 | .collect(); 45 | 46 | Ok(Some(text_edits)) 47 | } 48 | } 49 | 50 | impl RequestHandler for LanguageServer { 51 | fn handle(&self, _: DocumentRangeFormattingParams) -> FormattingResult { 52 | Ok(None) 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /crates/lsp_server/src/capabilities/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod document; 2 | pub mod formatting; 3 | -------------------------------------------------------------------------------- /crates/lsp_server/src/core/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod rsx_document; 2 | pub mod text_document; 3 | -------------------------------------------------------------------------------- /crates/lsp_server/src/core/rsx_document.rs: -------------------------------------------------------------------------------- 1 | use leptosfmt_formatter::collect_macros_in_file; 2 | use syn::Macro; 3 | 4 | pub struct RsxDocument { 5 | pub macro_callsites: Vec, 6 | } 7 | 8 | impl RsxDocument { 9 | pub fn parse(file_source: &str) -> Result { 10 | let file = syn::parse_file(file_source)?; 11 | let macro_callsites = collect_macros_in_file(&file) 12 | .into_iter() 13 | .map(ToOwned::to_owned) 14 | .collect(); 15 | Ok(Self { macro_callsites }) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /crates/lsp_server/src/core/text_document.rs: -------------------------------------------------------------------------------- 1 | use std::borrow::Cow; 2 | 3 | use lsp_types::{Position, Range, TextDocumentContentChangeEvent}; 4 | use ropey::Rope; 5 | 6 | #[allow(unused)] 7 | #[derive(Clone)] 8 | pub struct TextDocument { 9 | version: i32, 10 | uri: String, 11 | language_id: String, 12 | content: Rope, 13 | } 14 | 15 | impl TextDocument { 16 | pub fn new(version: i32, uri: String, language_id: String, content: &str) -> Self { 17 | Self { 18 | version, 19 | uri, 20 | language_id, 21 | content: content.into(), 22 | } 23 | } 24 | 25 | pub fn get_text(&self) -> String { 26 | self.content.to_string() 27 | } 28 | 29 | pub fn apply_change(&mut self, change: &TextDocumentContentChangeEvent) { 30 | let change_text = change.text.as_str(); 31 | let text_bytes = change_text.as_bytes(); 32 | let text_end_byte_index = text_bytes.len(); 33 | 34 | let range = match change.range { 35 | Some(range) => range, 36 | None => { 37 | let start = byte_index_to_position(&self.content, 0); 38 | let end = byte_index_to_position(&self.content, text_end_byte_index); 39 | Range { start, end } 40 | } 41 | }; 42 | 43 | let start_index = position_to_byte_index(&self.content, range.start); 44 | let end_index = position_to_byte_index(&self.content, range.end); 45 | 46 | self.content.remove(start_index..end_index); 47 | self.content.insert(start_index, change_text); 48 | } 49 | 50 | pub fn get_text_region(&self, start: Position, end: Position) -> Cow<'_, str> { 51 | let start = position_to_byte_index(&self.content, start); 52 | let end = position_to_byte_index(&self.content, end); 53 | self.content.get_byte_slice(start..end).unwrap().into() 54 | } 55 | } 56 | 57 | pub fn position_to_byte_index(rope: &Rope, position: Position) -> usize { 58 | let row_index = position.line as usize; 59 | let column_index = position.character as usize; 60 | 61 | rope.line_to_char(row_index) + rope.utf16_cu_to_char(column_index) 62 | } 63 | 64 | pub fn byte_index_to_position(rope: &Rope, byte_index: usize) -> Position { 65 | let line_index = rope.byte_to_line(byte_index); 66 | 67 | let line_utf16_cu_index = { 68 | let char_index = rope.line_to_char(line_index); 69 | rope.char_to_utf16_cu(char_index) 70 | }; 71 | 72 | let character_utf16_cu_index = { 73 | let char_index = rope.byte_to_char(byte_index); 74 | rope.char_to_utf16_cu(char_index) 75 | }; 76 | 77 | let character = character_utf16_cu_index - line_utf16_cu_index; 78 | 79 | Position::new(line_index as u32, character as u32) 80 | } 81 | 82 | #[cfg(test)] 83 | mod tests { 84 | use super::*; 85 | 86 | #[test] 87 | fn test_apply_insertion() { 88 | let mut text_document = TextDocument::new( 89 | 0, 90 | "file:///test.rs".to_string(), 91 | "rust".to_string(), 92 | "this is\na\npiece of text", 93 | ); 94 | 95 | let change = TextDocumentContentChangeEvent { 96 | range: Some(Range { 97 | start: Position { 98 | line: 1, 99 | character: 1, 100 | }, 101 | end: Position { 102 | line: 1, 103 | character: 1, 104 | }, 105 | }), 106 | range_length: None, 107 | text: " nice".to_string(), 108 | }; 109 | 110 | text_document.apply_change(&change); 111 | assert_eq!(text_document.get_text(), "this is\na nice\npiece of text"); 112 | } 113 | 114 | #[test] 115 | fn test_apply_modification() { 116 | let mut text_document = TextDocument::new( 117 | 0, 118 | "file:///test.rs".to_string(), 119 | "rust".to_string(), 120 | "this is\na\npiece of text", 121 | ); 122 | 123 | let change = TextDocumentContentChangeEvent { 124 | range: Some(Range { 125 | start: Position { 126 | line: 2, 127 | character: 9, 128 | }, 129 | end: Position { 130 | line: 2, 131 | character: 13, 132 | }, 133 | }), 134 | range_length: None, 135 | text: "cake".to_string(), 136 | }; 137 | 138 | text_document.apply_change(&change); 139 | assert_eq!(text_document.get_text(), "this is\na\npiece of cake"); 140 | } 141 | 142 | #[test] 143 | fn test_position_to_byte_index() { 144 | let text = "line 1\nline 2\nline 3"; 145 | let rope = Rope::from(text); 146 | 147 | let byte_index = position_to_byte_index( 148 | &rope, 149 | Position { 150 | line: 1, 151 | character: 5, 152 | }, 153 | ); 154 | 155 | assert_eq!(byte_index, 12); 156 | assert_eq!(text.as_bytes()[byte_index], b'2'); 157 | } 158 | } 159 | -------------------------------------------------------------------------------- /crates/lsp_server/src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod capabilities; 2 | mod core; 3 | 4 | use crate::core::rsx_document::RsxDocument; 5 | 6 | use crate::core::text_document::TextDocument; 7 | 8 | use dashmap::DashMap; 9 | use lsp_server::ResponseError; 10 | use lsp_types::{notification::Notification, request::Request, Url}; 11 | 12 | pub type Result = std::result::Result; 13 | 14 | pub trait RequestHandler { 15 | fn handle(&self, params: R::Params) -> Result; 16 | } 17 | 18 | pub trait NotificationHandler { 19 | fn handle(&self, params: N::Params) -> Result<()>; 20 | } 21 | 22 | #[allow(unused)] 23 | #[derive(Default)] 24 | pub struct LanguageServer { 25 | documents: DashMap, 26 | rsx_documents: DashMap, 27 | } 28 | 29 | impl LanguageServer { 30 | pub fn new() -> Self { 31 | Self::default() 32 | } 33 | } 34 | 35 | pub enum DocumentError { 36 | DocumentNotFound { path: String }, 37 | } 38 | 39 | impl LanguageServer { 40 | pub fn get_text_document(&self, url: &Url) -> std::result::Result { 41 | self.documents 42 | .try_get(url.path()) 43 | .try_unwrap() 44 | .ok_or_else(|| DocumentError::DocumentNotFound { 45 | path: url.path().to_string(), 46 | }) 47 | .map(|document| document.clone()) 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /crates/lsp_server/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::error::Error; 2 | 3 | use leptos_language_server::{LanguageServer, NotificationHandler, RequestHandler}; 4 | use lsp_types::notification::{DidChangeTextDocument, DidOpenTextDocument, Notification}; 5 | use lsp_types::request::{Formatting, Request}; 6 | use lsp_types::{InitializeParams, ServerCapabilities}; 7 | use lsp_types::{OneOf, TextDocumentSyncCapability, TextDocumentSyncKind}; 8 | 9 | use lsp_server::{Connection, ExtractError, Message, RequestId, Response}; 10 | 11 | fn main() -> Result<(), Box> { 12 | // Note that we must have our logging only write out to stderr. 13 | eprintln!("starting Leptos Language Server"); 14 | 15 | // Create the transport. Includes the stdio (stdin and stdout) versions but this could 16 | // also be implemented to use sockets or HTTP. 17 | let (connection, io_threads) = Connection::stdio(); 18 | 19 | // Run the server and wait for the two threads to end (typically by trigger LSP Exit event). 20 | let server_capabilities = serde_json::to_value(ServerCapabilities { 21 | document_formatting_provider: Some(OneOf::Left(true)), 22 | text_document_sync: Some(TextDocumentSyncCapability::Kind( 23 | TextDocumentSyncKind::INCREMENTAL, 24 | )), 25 | ..Default::default() 26 | }) 27 | .unwrap(); 28 | 29 | let initialization_params = connection.initialize(server_capabilities)?; 30 | main_loop(connection, initialization_params)?; 31 | io_threads.join()?; 32 | 33 | // Shut down gracefully. 34 | eprintln!("shutting down server"); 35 | Ok(()) 36 | } 37 | 38 | fn main_loop( 39 | connection: Connection, 40 | params: serde_json::Value, 41 | ) -> Result<(), Box> { 42 | let _params: InitializeParams = serde_json::from_value(params).unwrap(); 43 | let language_server = LanguageServer::new(); 44 | eprintln!("starting main loop"); 45 | for msg in &connection.receiver { 46 | eprintln!("got msg: {msg:?}"); 47 | match msg { 48 | Message::Request(req) => { 49 | if connection.handle_shutdown(&req)? { 50 | return Ok(()); 51 | } 52 | 53 | #[allow(clippy::single_match)] 54 | match req.method.as_str() { 55 | Formatting::METHOD => { 56 | handle_request::(&language_server, &connection, req)?; 57 | } 58 | _ => {} 59 | }; 60 | } 61 | Message::Response(resp) => { 62 | eprintln!("got response: {resp:?}"); 63 | } 64 | Message::Notification(notif) => { 65 | eprintln!("got notification: {notif:?}"); 66 | match notif.method.as_str() { 67 | DidChangeTextDocument::METHOD => { 68 | handle_notification::( 69 | &language_server, 70 | &connection, 71 | notif, 72 | )?; 73 | } 74 | DidOpenTextDocument::METHOD => { 75 | handle_notification::( 76 | &language_server, 77 | &connection, 78 | notif, 79 | )?; 80 | } 81 | _ => {} 82 | }; 83 | } 84 | } 85 | } 86 | Ok(()) 87 | } 88 | 89 | // TODO this is a very naive implementation that handles everything on the main thread -> should create a dispatcher that can dispatch requests on a thread pool 90 | // or maybe look into tower-lsp? 91 | fn handle_request( 92 | language_server: &LanguageServer, 93 | connection: &Connection, 94 | req: lsp_server::Request, 95 | ) -> Result<(), Box> 96 | where 97 | R: lsp_types::request::Request, 98 | R::Params: serde::de::DeserializeOwned, 99 | LanguageServer: RequestHandler, 100 | { 101 | let (id, params) = cast::(req)?; 102 | let result = RequestHandler::::handle(language_server, params); 103 | 104 | let resp = match result { 105 | Ok(result) => { 106 | let result = serde_json::to_value(&result).unwrap(); 107 | Response { 108 | id, 109 | result: Some(result), 110 | error: None, 111 | } 112 | } 113 | Err(error) => Response { 114 | id, 115 | result: None, 116 | error: Some(error), 117 | }, 118 | }; 119 | 120 | connection.sender.send(Message::Response(resp))?; 121 | Ok(()) 122 | } 123 | 124 | fn handle_notification( 125 | language_server: &LanguageServer, 126 | _connection: &Connection, 127 | notif: lsp_server::Notification, 128 | ) -> Result<(), Box> 129 | where 130 | N: lsp_types::notification::Notification, 131 | N::Params: serde::de::DeserializeOwned, 132 | LanguageServer: NotificationHandler, 133 | { 134 | // TODO better error handling? 135 | let params = cast_notif::(notif).unwrap(); 136 | NotificationHandler::::handle(language_server, params).unwrap(); 137 | Ok(()) 138 | } 139 | 140 | fn cast_notif( 141 | notif: lsp_server::Notification, 142 | ) -> Result> 143 | where 144 | N: lsp_types::notification::Notification, 145 | N::Params: serde::de::DeserializeOwned, 146 | { 147 | notif.extract(N::METHOD) 148 | } 149 | 150 | fn cast( 151 | req: lsp_server::Request, 152 | ) -> Result<(RequestId, R::Params), ExtractError> 153 | where 154 | R: lsp_types::request::Request, 155 | R::Params: serde::de::DeserializeOwned, 156 | { 157 | req.extract(R::METHOD) 158 | } 159 | -------------------------------------------------------------------------------- /editors/vscode/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | out 3 | node_modules 4 | leptos-language-server 5 | *.vsix -------------------------------------------------------------------------------- /editors/vscode/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that compiles the extension and then opens it inside a new window 2 | { 3 | "version": "0.2.0", 4 | "configurations": [ 5 | { 6 | "type": "extensionHost", 7 | "request": "launch", 8 | "name": "Launch Client", 9 | "runtimeExecutable": "${execPath}", 10 | "args": ["--extensionDevelopmentPath=${workspaceRoot}"], 11 | "outFiles": ["${workspaceRoot}/client/out/**/*.js"], 12 | "autoAttachChildProcesses": true, 13 | "preLaunchTask": { 14 | "type": "npm", 15 | "script": "watch" 16 | }, 17 | "env": { 18 | "SERVER_PATH": "${workspaceRoot}/../../target/debug/leptos-language-server" 19 | } 20 | }, 21 | { 22 | "name": "Language Server E2E Test", 23 | "type": "extensionHost", 24 | "request": "launch", 25 | "runtimeExecutable": "${execPath}", 26 | "args": [ 27 | "--extensionDevelopmentPath=${workspaceRoot}", 28 | "--extensionTestsPath=${workspaceRoot}/client/out/test/index", 29 | "${workspaceRoot}/client/testFixture" 30 | ], 31 | "outFiles": ["${workspaceRoot}/client/out/test/**/*.js"] 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /editors/vscode/.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "tasks": [ 4 | { 5 | "type": "npm", 6 | "script": "compile", 7 | "group": "build", 8 | "presentation": { 9 | "panel": "dedicated", 10 | "reveal": "never" 11 | }, 12 | "problemMatcher": [ 13 | "$tsc" 14 | ] 15 | }, 16 | { 17 | "type": "npm", 18 | "script": "watch", 19 | "isBackground": true, 20 | "group": { 21 | "kind": "build", 22 | "isDefault": true 23 | }, 24 | "presentation": { 25 | "panel": "dedicated", 26 | "reveal": "never" 27 | }, 28 | "problemMatcher": [ 29 | "$tsc-watch" 30 | ] 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /editors/vscode/.vscodeignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | client/node_modules -------------------------------------------------------------------------------- /editors/vscode/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Bram 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 | -------------------------------------------------------------------------------- /editors/vscode/client/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "leptos-language-client", 3 | "version": "0.0.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "leptos-language-client", 9 | "version": "0.0.1", 10 | "license": "MIT", 11 | "dependencies": { 12 | "vscode-languageclient": "^8.1.0" 13 | }, 14 | "devDependencies": { 15 | "@types/node": "^18.14.4", 16 | "@types/vscode": "^1.75.1", 17 | "@vscode/test-electron": "^2.2.3" 18 | }, 19 | "engines": { 20 | "vscode": "^1.75.0" 21 | } 22 | }, 23 | "node_modules/@tootallnate/once": { 24 | "version": "1.1.2", 25 | "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", 26 | "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", 27 | "dev": true, 28 | "engines": { 29 | "node": ">= 6" 30 | } 31 | }, 32 | "node_modules/@types/node": { 33 | "version": "18.14.4", 34 | "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.4.tgz", 35 | "integrity": "sha512-VhCw7I7qO2X49+jaKcAUwi3rR+hbxT5VcYF493+Z5kMLI0DL568b7JI4IDJaxWFH0D/xwmGJNoXisyX+w7GH/g==", 36 | "dev": true 37 | }, 38 | "node_modules/@types/vscode": { 39 | "version": "1.76.0", 40 | "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.76.0.tgz", 41 | "integrity": "sha512-CQcY3+Fe5hNewHnOEAVYj4dd1do/QHliXaknAEYSXx2KEHUzFibDZSKptCon+HPgK55xx20pR+PBJjf0MomnBA==", 42 | "dev": true 43 | }, 44 | "node_modules/@vscode/test-electron": { 45 | "version": "2.3.0", 46 | "resolved": "https://registry.npmjs.org/@vscode/test-electron/-/test-electron-2.3.0.tgz", 47 | "integrity": "sha512-fwzA9RtazH1GT/sckYlbxu6t5e4VaMXwCVtyLv4UAG0hP6NTfnMaaG25XCfWqlVwFhBMcQXHBCy5dmz2eLUnkw==", 48 | "dev": true, 49 | "dependencies": { 50 | "http-proxy-agent": "^4.0.1", 51 | "https-proxy-agent": "^5.0.0", 52 | "jszip": "^3.10.1", 53 | "semver": "^7.3.8" 54 | }, 55 | "engines": { 56 | "node": ">=16" 57 | } 58 | }, 59 | "node_modules/agent-base": { 60 | "version": "6.0.2", 61 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 62 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 63 | "dev": true, 64 | "dependencies": { 65 | "debug": "4" 66 | }, 67 | "engines": { 68 | "node": ">= 6.0.0" 69 | } 70 | }, 71 | "node_modules/balanced-match": { 72 | "version": "1.0.2", 73 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 74 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 75 | }, 76 | "node_modules/brace-expansion": { 77 | "version": "2.0.1", 78 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 79 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 80 | "dependencies": { 81 | "balanced-match": "^1.0.0" 82 | } 83 | }, 84 | "node_modules/core-util-is": { 85 | "version": "1.0.3", 86 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", 87 | "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", 88 | "dev": true 89 | }, 90 | "node_modules/debug": { 91 | "version": "4.3.4", 92 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 93 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 94 | "dev": true, 95 | "dependencies": { 96 | "ms": "2.1.2" 97 | }, 98 | "engines": { 99 | "node": ">=6.0" 100 | }, 101 | "peerDependenciesMeta": { 102 | "supports-color": { 103 | "optional": true 104 | } 105 | } 106 | }, 107 | "node_modules/http-proxy-agent": { 108 | "version": "4.0.1", 109 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", 110 | "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", 111 | "dev": true, 112 | "dependencies": { 113 | "@tootallnate/once": "1", 114 | "agent-base": "6", 115 | "debug": "4" 116 | }, 117 | "engines": { 118 | "node": ">= 6" 119 | } 120 | }, 121 | "node_modules/https-proxy-agent": { 122 | "version": "5.0.1", 123 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", 124 | "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", 125 | "dev": true, 126 | "dependencies": { 127 | "agent-base": "6", 128 | "debug": "4" 129 | }, 130 | "engines": { 131 | "node": ">= 6" 132 | } 133 | }, 134 | "node_modules/immediate": { 135 | "version": "3.0.6", 136 | "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", 137 | "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", 138 | "dev": true 139 | }, 140 | "node_modules/inherits": { 141 | "version": "2.0.4", 142 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 143 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 144 | "dev": true 145 | }, 146 | "node_modules/isarray": { 147 | "version": "1.0.0", 148 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 149 | "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", 150 | "dev": true 151 | }, 152 | "node_modules/jszip": { 153 | "version": "3.10.1", 154 | "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", 155 | "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", 156 | "dev": true, 157 | "dependencies": { 158 | "lie": "~3.3.0", 159 | "pako": "~1.0.2", 160 | "readable-stream": "~2.3.6", 161 | "setimmediate": "^1.0.5" 162 | } 163 | }, 164 | "node_modules/lie": { 165 | "version": "3.3.0", 166 | "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", 167 | "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", 168 | "dev": true, 169 | "dependencies": { 170 | "immediate": "~3.0.5" 171 | } 172 | }, 173 | "node_modules/lru-cache": { 174 | "version": "6.0.0", 175 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 176 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 177 | "dependencies": { 178 | "yallist": "^4.0.0" 179 | }, 180 | "engines": { 181 | "node": ">=10" 182 | } 183 | }, 184 | "node_modules/minimatch": { 185 | "version": "5.1.6", 186 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", 187 | "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", 188 | "dependencies": { 189 | "brace-expansion": "^2.0.1" 190 | }, 191 | "engines": { 192 | "node": ">=10" 193 | } 194 | }, 195 | "node_modules/ms": { 196 | "version": "2.1.2", 197 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 198 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 199 | "dev": true 200 | }, 201 | "node_modules/pako": { 202 | "version": "1.0.11", 203 | "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", 204 | "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", 205 | "dev": true 206 | }, 207 | "node_modules/process-nextick-args": { 208 | "version": "2.0.1", 209 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 210 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 211 | "dev": true 212 | }, 213 | "node_modules/readable-stream": { 214 | "version": "2.3.8", 215 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", 216 | "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", 217 | "dev": true, 218 | "dependencies": { 219 | "core-util-is": "~1.0.0", 220 | "inherits": "~2.0.3", 221 | "isarray": "~1.0.0", 222 | "process-nextick-args": "~2.0.0", 223 | "safe-buffer": "~5.1.1", 224 | "string_decoder": "~1.1.1", 225 | "util-deprecate": "~1.0.1" 226 | } 227 | }, 228 | "node_modules/safe-buffer": { 229 | "version": "5.1.2", 230 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 231 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 232 | "dev": true 233 | }, 234 | "node_modules/semver": { 235 | "version": "7.3.8", 236 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", 237 | "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", 238 | "dependencies": { 239 | "lru-cache": "^6.0.0" 240 | }, 241 | "bin": { 242 | "semver": "bin/semver.js" 243 | }, 244 | "engines": { 245 | "node": ">=10" 246 | } 247 | }, 248 | "node_modules/setimmediate": { 249 | "version": "1.0.5", 250 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 251 | "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", 252 | "dev": true 253 | }, 254 | "node_modules/string_decoder": { 255 | "version": "1.1.1", 256 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 257 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 258 | "dev": true, 259 | "dependencies": { 260 | "safe-buffer": "~5.1.0" 261 | } 262 | }, 263 | "node_modules/util-deprecate": { 264 | "version": "1.0.2", 265 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 266 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", 267 | "dev": true 268 | }, 269 | "node_modules/vscode-jsonrpc": { 270 | "version": "8.1.0", 271 | "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.1.0.tgz", 272 | "integrity": "sha512-6TDy/abTQk+zDGYazgbIPc+4JoXdwC8NHU9Pbn4UJP1fehUyZmM4RHp5IthX7A6L5KS30PRui+j+tbbMMMafdw==", 273 | "engines": { 274 | "node": ">=14.0.0" 275 | } 276 | }, 277 | "node_modules/vscode-languageclient": { 278 | "version": "8.1.0", 279 | "resolved": "https://registry.npmjs.org/vscode-languageclient/-/vscode-languageclient-8.1.0.tgz", 280 | "integrity": "sha512-GL4QdbYUF/XxQlAsvYWZRV3V34kOkpRlvV60/72ghHfsYFnS/v2MANZ9P6sHmxFcZKOse8O+L9G7Czg0NUWing==", 281 | "dependencies": { 282 | "minimatch": "^5.1.0", 283 | "semver": "^7.3.7", 284 | "vscode-languageserver-protocol": "3.17.3" 285 | }, 286 | "engines": { 287 | "vscode": "^1.67.0" 288 | } 289 | }, 290 | "node_modules/vscode-languageserver-protocol": { 291 | "version": "3.17.3", 292 | "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.3.tgz", 293 | "integrity": "sha512-924/h0AqsMtA5yK22GgMtCYiMdCOtWTSGgUOkgEDX+wk2b0x4sAfLiO4NxBxqbiVtz7K7/1/RgVrVI0NClZwqA==", 294 | "dependencies": { 295 | "vscode-jsonrpc": "8.1.0", 296 | "vscode-languageserver-types": "3.17.3" 297 | } 298 | }, 299 | "node_modules/vscode-languageserver-types": { 300 | "version": "3.17.3", 301 | "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.3.tgz", 302 | "integrity": "sha512-SYU4z1dL0PyIMd4Vj8YOqFvHu7Hz/enbWtpfnVbJHU4Nd1YNYx8u0ennumc6h48GQNeOLxmwySmnADouT/AuZA==" 303 | }, 304 | "node_modules/yallist": { 305 | "version": "4.0.0", 306 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 307 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 308 | } 309 | } 310 | } 311 | -------------------------------------------------------------------------------- /editors/vscode/client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "leptos-language-client", 3 | "description": "VSCode part of a language server", 4 | "author": "Bram Hoendervangers", 5 | "license": "MIT", 6 | "version": "0.0.1", 7 | "publisher": "vscode", 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/Microsoft/vscode-extension-samples" 11 | }, 12 | "engines": { 13 | "vscode": "^1.75.0" 14 | }, 15 | "dependencies": { 16 | "vscode-languageclient": "^8.1.0" 17 | }, 18 | "devDependencies": { 19 | "@types/node": "^18.14.4", 20 | "@types/vscode": "^1.75.1", 21 | "@vscode/test-electron": "^2.2.3" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /editors/vscode/client/src/extension.ts: -------------------------------------------------------------------------------- 1 | /* -------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | * ------------------------------------------------------------------------------------------ */ 5 | 6 | import * as path from "path"; 7 | import { workspace, ExtensionContext } from "vscode"; 8 | 9 | import { 10 | Executable, 11 | LanguageClient, 12 | LanguageClientOptions, 13 | ServerOptions, 14 | TransportKind, 15 | } from "vscode-languageclient/node"; 16 | 17 | let client: LanguageClient; 18 | 19 | export function activate(context: ExtensionContext) { 20 | const command = process.env.SERVER_PATH || context.asAbsolutePath("./leptos-language-server"); 21 | const run: Executable = { 22 | command, 23 | transport: TransportKind.stdio, 24 | options: { 25 | env: { 26 | ...process.env, 27 | // eslint-disable-next-line @typescript-eslint/naming-convention 28 | RUST_LOG: "debug", 29 | }, 30 | }, 31 | }; 32 | 33 | const serverOptions: ServerOptions = { 34 | run, 35 | debug: run, 36 | }; 37 | 38 | // Options to control the language client 39 | const clientOptions: LanguageClientOptions = { 40 | // Register the server for plain text documents 41 | documentSelector: [{ scheme: "file", language: "rust" }], 42 | synchronize: { 43 | // Notify the server about file changes to '.clientrc files contained in the workspace 44 | fileEvents: workspace.createFileSystemWatcher("**/.clientrc"), 45 | }, 46 | }; 47 | 48 | // Create the language client and start the client. 49 | client = new LanguageClient( 50 | "leptos-language-server", 51 | "Leptos Language Server", 52 | serverOptions, 53 | clientOptions 54 | ); 55 | 56 | // Start the client. This will also launch the server 57 | client.start(); 58 | } 59 | 60 | export function deactivate(): Thenable | undefined { 61 | if (!client) { 62 | return undefined; 63 | } 64 | return client.stop(); 65 | } 66 | -------------------------------------------------------------------------------- /editors/vscode/client/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es2020", 5 | "lib": ["es2020"], 6 | "outDir": "out", 7 | "rootDir": "src", 8 | "sourceMap": true 9 | }, 10 | "include": ["src"], 11 | "exclude": ["node_modules", ".vscode-test"] 12 | } -------------------------------------------------------------------------------- /editors/vscode/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "leptos-language-server", 3 | "version": "0.1.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "leptos-language-server", 9 | "version": "0.1.0", 10 | "hasInstallScript": true, 11 | "license": "MIT", 12 | "devDependencies": { 13 | "@types/mocha": "^9.1.0", 14 | "@types/node": "^16.11.7", 15 | "@typescript-eslint/eslint-plugin": "^5.54.0", 16 | "@typescript-eslint/parser": "^5.54.0", 17 | "esbuild": "^0.17.14", 18 | "eslint": "^8.35.0", 19 | "mocha": "^9.2.1", 20 | "typescript": "^4.9.5" 21 | }, 22 | "engines": { 23 | "vscode": "^1.75.0" 24 | } 25 | }, 26 | "node_modules/@esbuild/android-arm": { 27 | "version": "0.17.14", 28 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.14.tgz", 29 | "integrity": "sha512-0CnlwnjDU8cks0yJLXfkaU/uoLyRf9VZJs4p1PskBr2AlAHeEsFEwJEo0of/Z3g+ilw5mpyDwThlxzNEIxOE4g==", 30 | "cpu": [ 31 | "arm" 32 | ], 33 | "dev": true, 34 | "optional": true, 35 | "os": [ 36 | "android" 37 | ], 38 | "engines": { 39 | "node": ">=12" 40 | } 41 | }, 42 | "node_modules/@esbuild/android-arm64": { 43 | "version": "0.17.14", 44 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.14.tgz", 45 | "integrity": "sha512-eLOpPO1RvtsP71afiFTvS7tVFShJBCT0txiv/xjFBo5a7R7Gjw7X0IgIaFoLKhqXYAXhahoXm7qAmRXhY4guJg==", 46 | "cpu": [ 47 | "arm64" 48 | ], 49 | "dev": true, 50 | "optional": true, 51 | "os": [ 52 | "android" 53 | ], 54 | "engines": { 55 | "node": ">=12" 56 | } 57 | }, 58 | "node_modules/@esbuild/android-x64": { 59 | "version": "0.17.14", 60 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.14.tgz", 61 | "integrity": "sha512-nrfQYWBfLGfSGLvRVlt6xi63B5IbfHm3tZCdu/82zuFPQ7zez4XjmRtF/wIRYbJQ/DsZrxJdEvYFE67avYXyng==", 62 | "cpu": [ 63 | "x64" 64 | ], 65 | "dev": true, 66 | "optional": true, 67 | "os": [ 68 | "android" 69 | ], 70 | "engines": { 71 | "node": ">=12" 72 | } 73 | }, 74 | "node_modules/@esbuild/darwin-arm64": { 75 | "version": "0.17.14", 76 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.14.tgz", 77 | "integrity": "sha512-eoSjEuDsU1ROwgBH/c+fZzuSyJUVXQTOIN9xuLs9dE/9HbV/A5IqdXHU1p2OfIMwBwOYJ9SFVGGldxeRCUJFyw==", 78 | "cpu": [ 79 | "arm64" 80 | ], 81 | "dev": true, 82 | "optional": true, 83 | "os": [ 84 | "darwin" 85 | ], 86 | "engines": { 87 | "node": ">=12" 88 | } 89 | }, 90 | "node_modules/@esbuild/darwin-x64": { 91 | "version": "0.17.14", 92 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.14.tgz", 93 | "integrity": "sha512-zN0U8RWfrDttdFNkHqFYZtOH8hdi22z0pFm0aIJPsNC4QQZv7je8DWCX5iA4Zx6tRhS0CCc0XC2m7wKsbWEo5g==", 94 | "cpu": [ 95 | "x64" 96 | ], 97 | "dev": true, 98 | "optional": true, 99 | "os": [ 100 | "darwin" 101 | ], 102 | "engines": { 103 | "node": ">=12" 104 | } 105 | }, 106 | "node_modules/@esbuild/freebsd-arm64": { 107 | "version": "0.17.14", 108 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.14.tgz", 109 | "integrity": "sha512-z0VcD4ibeZWVQCW1O7szaLxGsx54gcCnajEJMdYoYjLiq4g1jrP2lMq6pk71dbS5+7op/L2Aod+erw+EUr28/A==", 110 | "cpu": [ 111 | "arm64" 112 | ], 113 | "dev": true, 114 | "optional": true, 115 | "os": [ 116 | "freebsd" 117 | ], 118 | "engines": { 119 | "node": ">=12" 120 | } 121 | }, 122 | "node_modules/@esbuild/freebsd-x64": { 123 | "version": "0.17.14", 124 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.14.tgz", 125 | "integrity": "sha512-hd9mPcxfTgJlolrPlcXkQk9BMwNBvNBsVaUe5eNUqXut6weDQH8whcNaKNF2RO8NbpT6GY8rHOK2A9y++s+ehw==", 126 | "cpu": [ 127 | "x64" 128 | ], 129 | "dev": true, 130 | "optional": true, 131 | "os": [ 132 | "freebsd" 133 | ], 134 | "engines": { 135 | "node": ">=12" 136 | } 137 | }, 138 | "node_modules/@esbuild/linux-arm": { 139 | "version": "0.17.14", 140 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.14.tgz", 141 | "integrity": "sha512-BNTl+wSJ1omsH8s3TkQmIIIQHwvwJrU9u1ggb9XU2KTVM4TmthRIVyxSp2qxROJHhZuW/r8fht46/QE8hU8Qvg==", 142 | "cpu": [ 143 | "arm" 144 | ], 145 | "dev": true, 146 | "optional": true, 147 | "os": [ 148 | "linux" 149 | ], 150 | "engines": { 151 | "node": ">=12" 152 | } 153 | }, 154 | "node_modules/@esbuild/linux-arm64": { 155 | "version": "0.17.14", 156 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.14.tgz", 157 | "integrity": "sha512-FhAMNYOq3Iblcj9i+K0l1Fp/MHt+zBeRu/Qkf0LtrcFu3T45jcwB6A1iMsemQ42vR3GBhjNZJZTaCe3VFPbn9g==", 158 | "cpu": [ 159 | "arm64" 160 | ], 161 | "dev": true, 162 | "optional": true, 163 | "os": [ 164 | "linux" 165 | ], 166 | "engines": { 167 | "node": ">=12" 168 | } 169 | }, 170 | "node_modules/@esbuild/linux-ia32": { 171 | "version": "0.17.14", 172 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.14.tgz", 173 | "integrity": "sha512-91OK/lQ5y2v7AsmnFT+0EyxdPTNhov3y2CWMdizyMfxSxRqHazXdzgBKtlmkU2KYIc+9ZK3Vwp2KyXogEATYxQ==", 174 | "cpu": [ 175 | "ia32" 176 | ], 177 | "dev": true, 178 | "optional": true, 179 | "os": [ 180 | "linux" 181 | ], 182 | "engines": { 183 | "node": ">=12" 184 | } 185 | }, 186 | "node_modules/@esbuild/linux-loong64": { 187 | "version": "0.17.14", 188 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.14.tgz", 189 | "integrity": "sha512-vp15H+5NR6hubNgMluqqKza85HcGJgq7t6rMH7O3Y6ApiOWPkvW2AJfNojUQimfTp6OUrACUXfR4hmpcENXoMQ==", 190 | "cpu": [ 191 | "loong64" 192 | ], 193 | "dev": true, 194 | "optional": true, 195 | "os": [ 196 | "linux" 197 | ], 198 | "engines": { 199 | "node": ">=12" 200 | } 201 | }, 202 | "node_modules/@esbuild/linux-mips64el": { 203 | "version": "0.17.14", 204 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.14.tgz", 205 | "integrity": "sha512-90TOdFV7N+fgi6c2+GO9ochEkmm9kBAKnuD5e08GQMgMINOdOFHuYLPQ91RYVrnWwQ5683sJKuLi9l4SsbJ7Hg==", 206 | "cpu": [ 207 | "mips64el" 208 | ], 209 | "dev": true, 210 | "optional": true, 211 | "os": [ 212 | "linux" 213 | ], 214 | "engines": { 215 | "node": ">=12" 216 | } 217 | }, 218 | "node_modules/@esbuild/linux-ppc64": { 219 | "version": "0.17.14", 220 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.14.tgz", 221 | "integrity": "sha512-NnBGeoqKkTugpBOBZZoktQQ1Yqb7aHKmHxsw43NddPB2YWLAlpb7THZIzsRsTr0Xw3nqiPxbA1H31ZMOG+VVPQ==", 222 | "cpu": [ 223 | "ppc64" 224 | ], 225 | "dev": true, 226 | "optional": true, 227 | "os": [ 228 | "linux" 229 | ], 230 | "engines": { 231 | "node": ">=12" 232 | } 233 | }, 234 | "node_modules/@esbuild/linux-riscv64": { 235 | "version": "0.17.14", 236 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.14.tgz", 237 | "integrity": "sha512-0qdlKScLXA8MGVy21JUKvMzCYWovctuP8KKqhtE5A6IVPq4onxXhSuhwDd2g5sRCzNDlDjitc5sX31BzDoL5Fw==", 238 | "cpu": [ 239 | "riscv64" 240 | ], 241 | "dev": true, 242 | "optional": true, 243 | "os": [ 244 | "linux" 245 | ], 246 | "engines": { 247 | "node": ">=12" 248 | } 249 | }, 250 | "node_modules/@esbuild/linux-s390x": { 251 | "version": "0.17.14", 252 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.14.tgz", 253 | "integrity": "sha512-Hdm2Jo1yaaOro4v3+6/zJk6ygCqIZuSDJHdHaf8nVH/tfOuoEX5Riv03Ka15LmQBYJObUTNS1UdyoMk0WUn9Ww==", 254 | "cpu": [ 255 | "s390x" 256 | ], 257 | "dev": true, 258 | "optional": true, 259 | "os": [ 260 | "linux" 261 | ], 262 | "engines": { 263 | "node": ">=12" 264 | } 265 | }, 266 | "node_modules/@esbuild/linux-x64": { 267 | "version": "0.17.14", 268 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.14.tgz", 269 | "integrity": "sha512-8KHF17OstlK4DuzeF/KmSgzrTWQrkWj5boluiiq7kvJCiQVzUrmSkaBvcLB2UgHpKENO2i6BthPkmUhNDaJsVw==", 270 | "cpu": [ 271 | "x64" 272 | ], 273 | "dev": true, 274 | "optional": true, 275 | "os": [ 276 | "linux" 277 | ], 278 | "engines": { 279 | "node": ">=12" 280 | } 281 | }, 282 | "node_modules/@esbuild/netbsd-x64": { 283 | "version": "0.17.14", 284 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.14.tgz", 285 | "integrity": "sha512-nVwpqvb3yyXztxIT2+VsxJhB5GCgzPdk1n0HHSnchRAcxqKO6ghXwHhJnr0j/B+5FSyEqSxF4q03rbA2fKXtUQ==", 286 | "cpu": [ 287 | "x64" 288 | ], 289 | "dev": true, 290 | "optional": true, 291 | "os": [ 292 | "netbsd" 293 | ], 294 | "engines": { 295 | "node": ">=12" 296 | } 297 | }, 298 | "node_modules/@esbuild/openbsd-x64": { 299 | "version": "0.17.14", 300 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.14.tgz", 301 | "integrity": "sha512-1RZ7uQQ9zcy/GSAJL1xPdN7NDdOOtNEGiJalg/MOzeakZeTrgH/DoCkbq7TaPDiPhWqnDF+4bnydxRqQD7il6g==", 302 | "cpu": [ 303 | "x64" 304 | ], 305 | "dev": true, 306 | "optional": true, 307 | "os": [ 308 | "openbsd" 309 | ], 310 | "engines": { 311 | "node": ">=12" 312 | } 313 | }, 314 | "node_modules/@esbuild/sunos-x64": { 315 | "version": "0.17.14", 316 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.14.tgz", 317 | "integrity": "sha512-nqMjDsFwv7vp7msrwWRysnM38Sd44PKmW8EzV01YzDBTcTWUpczQg6mGao9VLicXSgW/iookNK6AxeogNVNDZA==", 318 | "cpu": [ 319 | "x64" 320 | ], 321 | "dev": true, 322 | "optional": true, 323 | "os": [ 324 | "sunos" 325 | ], 326 | "engines": { 327 | "node": ">=12" 328 | } 329 | }, 330 | "node_modules/@esbuild/win32-arm64": { 331 | "version": "0.17.14", 332 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.14.tgz", 333 | "integrity": "sha512-xrD0mccTKRBBIotrITV7WVQAwNJ5+1va6L0H9zN92v2yEdjfAN7864cUaZwJS7JPEs53bDTzKFbfqVlG2HhyKQ==", 334 | "cpu": [ 335 | "arm64" 336 | ], 337 | "dev": true, 338 | "optional": true, 339 | "os": [ 340 | "win32" 341 | ], 342 | "engines": { 343 | "node": ">=12" 344 | } 345 | }, 346 | "node_modules/@esbuild/win32-ia32": { 347 | "version": "0.17.14", 348 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.14.tgz", 349 | "integrity": "sha512-nXpkz9bbJrLLyUTYtRotSS3t5b+FOuljg8LgLdINWFs3FfqZMtbnBCZFUmBzQPyxqU87F8Av+3Nco/M3hEcu1w==", 350 | "cpu": [ 351 | "ia32" 352 | ], 353 | "dev": true, 354 | "optional": true, 355 | "os": [ 356 | "win32" 357 | ], 358 | "engines": { 359 | "node": ">=12" 360 | } 361 | }, 362 | "node_modules/@esbuild/win32-x64": { 363 | "version": "0.17.14", 364 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.14.tgz", 365 | "integrity": "sha512-gPQmsi2DKTaEgG14hc3CHXHp62k8g6qr0Pas+I4lUxRMugGSATh/Bi8Dgusoz9IQ0IfdrvLpco6kujEIBoaogA==", 366 | "cpu": [ 367 | "x64" 368 | ], 369 | "dev": true, 370 | "optional": true, 371 | "os": [ 372 | "win32" 373 | ], 374 | "engines": { 375 | "node": ">=12" 376 | } 377 | }, 378 | "node_modules/@eslint/eslintrc": { 379 | "version": "2.0.0", 380 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.0.tgz", 381 | "integrity": "sha512-fluIaaV+GyV24CCu/ggiHdV+j4RNh85yQnAYS/G2mZODZgGmmlrgCydjUcV3YvxCm9x8nMAfThsqTni4KiXT4A==", 382 | "dev": true, 383 | "dependencies": { 384 | "ajv": "^6.12.4", 385 | "debug": "^4.3.2", 386 | "espree": "^9.4.0", 387 | "globals": "^13.19.0", 388 | "ignore": "^5.2.0", 389 | "import-fresh": "^3.2.1", 390 | "js-yaml": "^4.1.0", 391 | "minimatch": "^3.1.2", 392 | "strip-json-comments": "^3.1.1" 393 | }, 394 | "engines": { 395 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 396 | }, 397 | "funding": { 398 | "url": "https://opencollective.com/eslint" 399 | } 400 | }, 401 | "node_modules/@eslint/js": { 402 | "version": "8.35.0", 403 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.35.0.tgz", 404 | "integrity": "sha512-JXdzbRiWclLVoD8sNUjR443VVlYqiYmDVT6rGUEIEHU5YJW0gaVZwV2xgM7D4arkvASqD0IlLUVjHiFuxaftRw==", 405 | "dev": true, 406 | "engines": { 407 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 408 | } 409 | }, 410 | "node_modules/@humanwhocodes/config-array": { 411 | "version": "0.11.8", 412 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", 413 | "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", 414 | "dev": true, 415 | "dependencies": { 416 | "@humanwhocodes/object-schema": "^1.2.1", 417 | "debug": "^4.1.1", 418 | "minimatch": "^3.0.5" 419 | }, 420 | "engines": { 421 | "node": ">=10.10.0" 422 | } 423 | }, 424 | "node_modules/@humanwhocodes/module-importer": { 425 | "version": "1.0.1", 426 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 427 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 428 | "dev": true, 429 | "engines": { 430 | "node": ">=12.22" 431 | }, 432 | "funding": { 433 | "type": "github", 434 | "url": "https://github.com/sponsors/nzakas" 435 | } 436 | }, 437 | "node_modules/@humanwhocodes/object-schema": { 438 | "version": "1.2.1", 439 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", 440 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", 441 | "dev": true 442 | }, 443 | "node_modules/@nodelib/fs.scandir": { 444 | "version": "2.1.5", 445 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 446 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 447 | "dev": true, 448 | "dependencies": { 449 | "@nodelib/fs.stat": "2.0.5", 450 | "run-parallel": "^1.1.9" 451 | }, 452 | "engines": { 453 | "node": ">= 8" 454 | } 455 | }, 456 | "node_modules/@nodelib/fs.stat": { 457 | "version": "2.0.5", 458 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 459 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 460 | "dev": true, 461 | "engines": { 462 | "node": ">= 8" 463 | } 464 | }, 465 | "node_modules/@nodelib/fs.walk": { 466 | "version": "1.2.8", 467 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 468 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 469 | "dev": true, 470 | "dependencies": { 471 | "@nodelib/fs.scandir": "2.1.5", 472 | "fastq": "^1.6.0" 473 | }, 474 | "engines": { 475 | "node": ">= 8" 476 | } 477 | }, 478 | "node_modules/@types/json-schema": { 479 | "version": "7.0.11", 480 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", 481 | "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", 482 | "dev": true 483 | }, 484 | "node_modules/@types/mocha": { 485 | "version": "9.1.1", 486 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.1.tgz", 487 | "integrity": "sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==", 488 | "dev": true 489 | }, 490 | "node_modules/@types/node": { 491 | "version": "16.18.14", 492 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.14.tgz", 493 | "integrity": "sha512-wvzClDGQXOCVNU4APPopC2KtMYukaF1MN/W3xAmslx22Z4/IF1/izDMekuyoUlwfnDHYCIZGaj7jMwnJKBTxKw==", 494 | "dev": true 495 | }, 496 | "node_modules/@types/semver": { 497 | "version": "7.3.13", 498 | "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", 499 | "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", 500 | "dev": true 501 | }, 502 | "node_modules/@typescript-eslint/eslint-plugin": { 503 | "version": "5.54.0", 504 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.0.tgz", 505 | "integrity": "sha512-+hSN9BdSr629RF02d7mMtXhAJvDTyCbprNYJKrXETlul/Aml6YZwd90XioVbjejQeHbb3R8Dg0CkRgoJDxo8aw==", 506 | "dev": true, 507 | "dependencies": { 508 | "@typescript-eslint/scope-manager": "5.54.0", 509 | "@typescript-eslint/type-utils": "5.54.0", 510 | "@typescript-eslint/utils": "5.54.0", 511 | "debug": "^4.3.4", 512 | "grapheme-splitter": "^1.0.4", 513 | "ignore": "^5.2.0", 514 | "natural-compare-lite": "^1.4.0", 515 | "regexpp": "^3.2.0", 516 | "semver": "^7.3.7", 517 | "tsutils": "^3.21.0" 518 | }, 519 | "engines": { 520 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 521 | }, 522 | "funding": { 523 | "type": "opencollective", 524 | "url": "https://opencollective.com/typescript-eslint" 525 | }, 526 | "peerDependencies": { 527 | "@typescript-eslint/parser": "^5.0.0", 528 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 529 | }, 530 | "peerDependenciesMeta": { 531 | "typescript": { 532 | "optional": true 533 | } 534 | } 535 | }, 536 | "node_modules/@typescript-eslint/parser": { 537 | "version": "5.54.0", 538 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.54.0.tgz", 539 | "integrity": "sha512-aAVL3Mu2qTi+h/r04WI/5PfNWvO6pdhpeMRWk9R7rEV4mwJNzoWf5CCU5vDKBsPIFQFjEq1xg7XBI2rjiMXQbQ==", 540 | "dev": true, 541 | "dependencies": { 542 | "@typescript-eslint/scope-manager": "5.54.0", 543 | "@typescript-eslint/types": "5.54.0", 544 | "@typescript-eslint/typescript-estree": "5.54.0", 545 | "debug": "^4.3.4" 546 | }, 547 | "engines": { 548 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 549 | }, 550 | "funding": { 551 | "type": "opencollective", 552 | "url": "https://opencollective.com/typescript-eslint" 553 | }, 554 | "peerDependencies": { 555 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 556 | }, 557 | "peerDependenciesMeta": { 558 | "typescript": { 559 | "optional": true 560 | } 561 | } 562 | }, 563 | "node_modules/@typescript-eslint/scope-manager": { 564 | "version": "5.54.0", 565 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.54.0.tgz", 566 | "integrity": "sha512-VTPYNZ7vaWtYna9M4oD42zENOBrb+ZYyCNdFs949GcN8Miwn37b8b7eMj+EZaq7VK9fx0Jd+JhmkhjFhvnovhg==", 567 | "dev": true, 568 | "dependencies": { 569 | "@typescript-eslint/types": "5.54.0", 570 | "@typescript-eslint/visitor-keys": "5.54.0" 571 | }, 572 | "engines": { 573 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 574 | }, 575 | "funding": { 576 | "type": "opencollective", 577 | "url": "https://opencollective.com/typescript-eslint" 578 | } 579 | }, 580 | "node_modules/@typescript-eslint/type-utils": { 581 | "version": "5.54.0", 582 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.54.0.tgz", 583 | "integrity": "sha512-WI+WMJ8+oS+LyflqsD4nlXMsVdzTMYTxl16myXPaCXnSgc7LWwMsjxQFZCK/rVmTZ3FN71Ct78ehO9bRC7erYQ==", 584 | "dev": true, 585 | "dependencies": { 586 | "@typescript-eslint/typescript-estree": "5.54.0", 587 | "@typescript-eslint/utils": "5.54.0", 588 | "debug": "^4.3.4", 589 | "tsutils": "^3.21.0" 590 | }, 591 | "engines": { 592 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 593 | }, 594 | "funding": { 595 | "type": "opencollective", 596 | "url": "https://opencollective.com/typescript-eslint" 597 | }, 598 | "peerDependencies": { 599 | "eslint": "*" 600 | }, 601 | "peerDependenciesMeta": { 602 | "typescript": { 603 | "optional": true 604 | } 605 | } 606 | }, 607 | "node_modules/@typescript-eslint/types": { 608 | "version": "5.54.0", 609 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.0.tgz", 610 | "integrity": "sha512-nExy+fDCBEgqblasfeE3aQ3NuafBUxZxgxXcYfzYRZFHdVvk5q60KhCSkG0noHgHRo/xQ/BOzURLZAafFpTkmQ==", 611 | "dev": true, 612 | "engines": { 613 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 614 | }, 615 | "funding": { 616 | "type": "opencollective", 617 | "url": "https://opencollective.com/typescript-eslint" 618 | } 619 | }, 620 | "node_modules/@typescript-eslint/typescript-estree": { 621 | "version": "5.54.0", 622 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.0.tgz", 623 | "integrity": "sha512-X2rJG97Wj/VRo5YxJ8Qx26Zqf0RRKsVHd4sav8NElhbZzhpBI8jU54i6hfo9eheumj4oO4dcRN1B/zIVEqR/MQ==", 624 | "dev": true, 625 | "dependencies": { 626 | "@typescript-eslint/types": "5.54.0", 627 | "@typescript-eslint/visitor-keys": "5.54.0", 628 | "debug": "^4.3.4", 629 | "globby": "^11.1.0", 630 | "is-glob": "^4.0.3", 631 | "semver": "^7.3.7", 632 | "tsutils": "^3.21.0" 633 | }, 634 | "engines": { 635 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 636 | }, 637 | "funding": { 638 | "type": "opencollective", 639 | "url": "https://opencollective.com/typescript-eslint" 640 | }, 641 | "peerDependenciesMeta": { 642 | "typescript": { 643 | "optional": true 644 | } 645 | } 646 | }, 647 | "node_modules/@typescript-eslint/utils": { 648 | "version": "5.54.0", 649 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.54.0.tgz", 650 | "integrity": "sha512-cuwm8D/Z/7AuyAeJ+T0r4WZmlnlxQ8wt7C7fLpFlKMR+dY6QO79Cq1WpJhvZbMA4ZeZGHiRWnht7ZJ8qkdAunw==", 651 | "dev": true, 652 | "dependencies": { 653 | "@types/json-schema": "^7.0.9", 654 | "@types/semver": "^7.3.12", 655 | "@typescript-eslint/scope-manager": "5.54.0", 656 | "@typescript-eslint/types": "5.54.0", 657 | "@typescript-eslint/typescript-estree": "5.54.0", 658 | "eslint-scope": "^5.1.1", 659 | "eslint-utils": "^3.0.0", 660 | "semver": "^7.3.7" 661 | }, 662 | "engines": { 663 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 664 | }, 665 | "funding": { 666 | "type": "opencollective", 667 | "url": "https://opencollective.com/typescript-eslint" 668 | }, 669 | "peerDependencies": { 670 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 671 | } 672 | }, 673 | "node_modules/@typescript-eslint/visitor-keys": { 674 | "version": "5.54.0", 675 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.0.tgz", 676 | "integrity": "sha512-xu4wT7aRCakGINTLGeyGqDn+78BwFlggwBjnHa1ar/KaGagnmwLYmlrXIrgAaQ3AE1Vd6nLfKASm7LrFHNbKGA==", 677 | "dev": true, 678 | "dependencies": { 679 | "@typescript-eslint/types": "5.54.0", 680 | "eslint-visitor-keys": "^3.3.0" 681 | }, 682 | "engines": { 683 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 684 | }, 685 | "funding": { 686 | "type": "opencollective", 687 | "url": "https://opencollective.com/typescript-eslint" 688 | } 689 | }, 690 | "node_modules/@ungap/promise-all-settled": { 691 | "version": "1.1.2", 692 | "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", 693 | "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", 694 | "dev": true 695 | }, 696 | "node_modules/acorn": { 697 | "version": "8.8.2", 698 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", 699 | "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", 700 | "dev": true, 701 | "bin": { 702 | "acorn": "bin/acorn" 703 | }, 704 | "engines": { 705 | "node": ">=0.4.0" 706 | } 707 | }, 708 | "node_modules/acorn-jsx": { 709 | "version": "5.3.2", 710 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 711 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 712 | "dev": true, 713 | "peerDependencies": { 714 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 715 | } 716 | }, 717 | "node_modules/ajv": { 718 | "version": "6.12.6", 719 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 720 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 721 | "dev": true, 722 | "dependencies": { 723 | "fast-deep-equal": "^3.1.1", 724 | "fast-json-stable-stringify": "^2.0.0", 725 | "json-schema-traverse": "^0.4.1", 726 | "uri-js": "^4.2.2" 727 | }, 728 | "funding": { 729 | "type": "github", 730 | "url": "https://github.com/sponsors/epoberezkin" 731 | } 732 | }, 733 | "node_modules/ansi-colors": { 734 | "version": "4.1.1", 735 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", 736 | "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", 737 | "dev": true, 738 | "engines": { 739 | "node": ">=6" 740 | } 741 | }, 742 | "node_modules/ansi-regex": { 743 | "version": "5.0.1", 744 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 745 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 746 | "dev": true, 747 | "engines": { 748 | "node": ">=8" 749 | } 750 | }, 751 | "node_modules/ansi-styles": { 752 | "version": "4.3.0", 753 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 754 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 755 | "dev": true, 756 | "dependencies": { 757 | "color-convert": "^2.0.1" 758 | }, 759 | "engines": { 760 | "node": ">=8" 761 | }, 762 | "funding": { 763 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 764 | } 765 | }, 766 | "node_modules/anymatch": { 767 | "version": "3.1.3", 768 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 769 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 770 | "dev": true, 771 | "dependencies": { 772 | "normalize-path": "^3.0.0", 773 | "picomatch": "^2.0.4" 774 | }, 775 | "engines": { 776 | "node": ">= 8" 777 | } 778 | }, 779 | "node_modules/argparse": { 780 | "version": "2.0.1", 781 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 782 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 783 | "dev": true 784 | }, 785 | "node_modules/array-union": { 786 | "version": "2.1.0", 787 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 788 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 789 | "dev": true, 790 | "engines": { 791 | "node": ">=8" 792 | } 793 | }, 794 | "node_modules/balanced-match": { 795 | "version": "1.0.2", 796 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 797 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 798 | "dev": true 799 | }, 800 | "node_modules/binary-extensions": { 801 | "version": "2.2.0", 802 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 803 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 804 | "dev": true, 805 | "engines": { 806 | "node": ">=8" 807 | } 808 | }, 809 | "node_modules/brace-expansion": { 810 | "version": "1.1.11", 811 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 812 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 813 | "dev": true, 814 | "dependencies": { 815 | "balanced-match": "^1.0.0", 816 | "concat-map": "0.0.1" 817 | } 818 | }, 819 | "node_modules/braces": { 820 | "version": "3.0.2", 821 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 822 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 823 | "dev": true, 824 | "dependencies": { 825 | "fill-range": "^7.0.1" 826 | }, 827 | "engines": { 828 | "node": ">=8" 829 | } 830 | }, 831 | "node_modules/browser-stdout": { 832 | "version": "1.3.1", 833 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 834 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 835 | "dev": true 836 | }, 837 | "node_modules/callsites": { 838 | "version": "3.1.0", 839 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 840 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 841 | "dev": true, 842 | "engines": { 843 | "node": ">=6" 844 | } 845 | }, 846 | "node_modules/camelcase": { 847 | "version": "6.3.0", 848 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", 849 | "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", 850 | "dev": true, 851 | "engines": { 852 | "node": ">=10" 853 | }, 854 | "funding": { 855 | "url": "https://github.com/sponsors/sindresorhus" 856 | } 857 | }, 858 | "node_modules/chalk": { 859 | "version": "4.1.2", 860 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 861 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 862 | "dev": true, 863 | "dependencies": { 864 | "ansi-styles": "^4.1.0", 865 | "supports-color": "^7.1.0" 866 | }, 867 | "engines": { 868 | "node": ">=10" 869 | }, 870 | "funding": { 871 | "url": "https://github.com/chalk/chalk?sponsor=1" 872 | } 873 | }, 874 | "node_modules/chokidar": { 875 | "version": "3.5.3", 876 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 877 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 878 | "dev": true, 879 | "funding": [ 880 | { 881 | "type": "individual", 882 | "url": "https://paulmillr.com/funding/" 883 | } 884 | ], 885 | "dependencies": { 886 | "anymatch": "~3.1.2", 887 | "braces": "~3.0.2", 888 | "glob-parent": "~5.1.2", 889 | "is-binary-path": "~2.1.0", 890 | "is-glob": "~4.0.1", 891 | "normalize-path": "~3.0.0", 892 | "readdirp": "~3.6.0" 893 | }, 894 | "engines": { 895 | "node": ">= 8.10.0" 896 | }, 897 | "optionalDependencies": { 898 | "fsevents": "~2.3.2" 899 | } 900 | }, 901 | "node_modules/chokidar/node_modules/glob-parent": { 902 | "version": "5.1.2", 903 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 904 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 905 | "dev": true, 906 | "dependencies": { 907 | "is-glob": "^4.0.1" 908 | }, 909 | "engines": { 910 | "node": ">= 6" 911 | } 912 | }, 913 | "node_modules/cliui": { 914 | "version": "7.0.4", 915 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", 916 | "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", 917 | "dev": true, 918 | "dependencies": { 919 | "string-width": "^4.2.0", 920 | "strip-ansi": "^6.0.0", 921 | "wrap-ansi": "^7.0.0" 922 | } 923 | }, 924 | "node_modules/color-convert": { 925 | "version": "2.0.1", 926 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 927 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 928 | "dev": true, 929 | "dependencies": { 930 | "color-name": "~1.1.4" 931 | }, 932 | "engines": { 933 | "node": ">=7.0.0" 934 | } 935 | }, 936 | "node_modules/color-name": { 937 | "version": "1.1.4", 938 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 939 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 940 | "dev": true 941 | }, 942 | "node_modules/concat-map": { 943 | "version": "0.0.1", 944 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 945 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 946 | "dev": true 947 | }, 948 | "node_modules/cross-spawn": { 949 | "version": "7.0.3", 950 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 951 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 952 | "dev": true, 953 | "dependencies": { 954 | "path-key": "^3.1.0", 955 | "shebang-command": "^2.0.0", 956 | "which": "^2.0.1" 957 | }, 958 | "engines": { 959 | "node": ">= 8" 960 | } 961 | }, 962 | "node_modules/debug": { 963 | "version": "4.3.4", 964 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 965 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 966 | "dev": true, 967 | "dependencies": { 968 | "ms": "2.1.2" 969 | }, 970 | "engines": { 971 | "node": ">=6.0" 972 | }, 973 | "peerDependenciesMeta": { 974 | "supports-color": { 975 | "optional": true 976 | } 977 | } 978 | }, 979 | "node_modules/decamelize": { 980 | "version": "4.0.0", 981 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 982 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 983 | "dev": true, 984 | "engines": { 985 | "node": ">=10" 986 | }, 987 | "funding": { 988 | "url": "https://github.com/sponsors/sindresorhus" 989 | } 990 | }, 991 | "node_modules/deep-is": { 992 | "version": "0.1.4", 993 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 994 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 995 | "dev": true 996 | }, 997 | "node_modules/diff": { 998 | "version": "5.0.0", 999 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", 1000 | "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", 1001 | "dev": true, 1002 | "engines": { 1003 | "node": ">=0.3.1" 1004 | } 1005 | }, 1006 | "node_modules/dir-glob": { 1007 | "version": "3.0.1", 1008 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 1009 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 1010 | "dev": true, 1011 | "dependencies": { 1012 | "path-type": "^4.0.0" 1013 | }, 1014 | "engines": { 1015 | "node": ">=8" 1016 | } 1017 | }, 1018 | "node_modules/doctrine": { 1019 | "version": "3.0.0", 1020 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 1021 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 1022 | "dev": true, 1023 | "dependencies": { 1024 | "esutils": "^2.0.2" 1025 | }, 1026 | "engines": { 1027 | "node": ">=6.0.0" 1028 | } 1029 | }, 1030 | "node_modules/emoji-regex": { 1031 | "version": "8.0.0", 1032 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1033 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1034 | "dev": true 1035 | }, 1036 | "node_modules/esbuild": { 1037 | "version": "0.17.14", 1038 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.14.tgz", 1039 | "integrity": "sha512-vOO5XhmVj/1XQR9NQ1UPq6qvMYL7QFJU57J5fKBKBKxp17uDt5PgxFDb4A2nEiXhr1qQs4x0F5+66hVVw4ruNw==", 1040 | "dev": true, 1041 | "hasInstallScript": true, 1042 | "bin": { 1043 | "esbuild": "bin/esbuild" 1044 | }, 1045 | "engines": { 1046 | "node": ">=12" 1047 | }, 1048 | "optionalDependencies": { 1049 | "@esbuild/android-arm": "0.17.14", 1050 | "@esbuild/android-arm64": "0.17.14", 1051 | "@esbuild/android-x64": "0.17.14", 1052 | "@esbuild/darwin-arm64": "0.17.14", 1053 | "@esbuild/darwin-x64": "0.17.14", 1054 | "@esbuild/freebsd-arm64": "0.17.14", 1055 | "@esbuild/freebsd-x64": "0.17.14", 1056 | "@esbuild/linux-arm": "0.17.14", 1057 | "@esbuild/linux-arm64": "0.17.14", 1058 | "@esbuild/linux-ia32": "0.17.14", 1059 | "@esbuild/linux-loong64": "0.17.14", 1060 | "@esbuild/linux-mips64el": "0.17.14", 1061 | "@esbuild/linux-ppc64": "0.17.14", 1062 | "@esbuild/linux-riscv64": "0.17.14", 1063 | "@esbuild/linux-s390x": "0.17.14", 1064 | "@esbuild/linux-x64": "0.17.14", 1065 | "@esbuild/netbsd-x64": "0.17.14", 1066 | "@esbuild/openbsd-x64": "0.17.14", 1067 | "@esbuild/sunos-x64": "0.17.14", 1068 | "@esbuild/win32-arm64": "0.17.14", 1069 | "@esbuild/win32-ia32": "0.17.14", 1070 | "@esbuild/win32-x64": "0.17.14" 1071 | } 1072 | }, 1073 | "node_modules/escalade": { 1074 | "version": "3.1.1", 1075 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 1076 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 1077 | "dev": true, 1078 | "engines": { 1079 | "node": ">=6" 1080 | } 1081 | }, 1082 | "node_modules/escape-string-regexp": { 1083 | "version": "4.0.0", 1084 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1085 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1086 | "dev": true, 1087 | "engines": { 1088 | "node": ">=10" 1089 | }, 1090 | "funding": { 1091 | "url": "https://github.com/sponsors/sindresorhus" 1092 | } 1093 | }, 1094 | "node_modules/eslint": { 1095 | "version": "8.35.0", 1096 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.35.0.tgz", 1097 | "integrity": "sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw==", 1098 | "dev": true, 1099 | "dependencies": { 1100 | "@eslint/eslintrc": "^2.0.0", 1101 | "@eslint/js": "8.35.0", 1102 | "@humanwhocodes/config-array": "^0.11.8", 1103 | "@humanwhocodes/module-importer": "^1.0.1", 1104 | "@nodelib/fs.walk": "^1.2.8", 1105 | "ajv": "^6.10.0", 1106 | "chalk": "^4.0.0", 1107 | "cross-spawn": "^7.0.2", 1108 | "debug": "^4.3.2", 1109 | "doctrine": "^3.0.0", 1110 | "escape-string-regexp": "^4.0.0", 1111 | "eslint-scope": "^7.1.1", 1112 | "eslint-utils": "^3.0.0", 1113 | "eslint-visitor-keys": "^3.3.0", 1114 | "espree": "^9.4.0", 1115 | "esquery": "^1.4.2", 1116 | "esutils": "^2.0.2", 1117 | "fast-deep-equal": "^3.1.3", 1118 | "file-entry-cache": "^6.0.1", 1119 | "find-up": "^5.0.0", 1120 | "glob-parent": "^6.0.2", 1121 | "globals": "^13.19.0", 1122 | "grapheme-splitter": "^1.0.4", 1123 | "ignore": "^5.2.0", 1124 | "import-fresh": "^3.0.0", 1125 | "imurmurhash": "^0.1.4", 1126 | "is-glob": "^4.0.0", 1127 | "is-path-inside": "^3.0.3", 1128 | "js-sdsl": "^4.1.4", 1129 | "js-yaml": "^4.1.0", 1130 | "json-stable-stringify-without-jsonify": "^1.0.1", 1131 | "levn": "^0.4.1", 1132 | "lodash.merge": "^4.6.2", 1133 | "minimatch": "^3.1.2", 1134 | "natural-compare": "^1.4.0", 1135 | "optionator": "^0.9.1", 1136 | "regexpp": "^3.2.0", 1137 | "strip-ansi": "^6.0.1", 1138 | "strip-json-comments": "^3.1.0", 1139 | "text-table": "^0.2.0" 1140 | }, 1141 | "bin": { 1142 | "eslint": "bin/eslint.js" 1143 | }, 1144 | "engines": { 1145 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1146 | }, 1147 | "funding": { 1148 | "url": "https://opencollective.com/eslint" 1149 | } 1150 | }, 1151 | "node_modules/eslint-scope": { 1152 | "version": "5.1.1", 1153 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 1154 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 1155 | "dev": true, 1156 | "dependencies": { 1157 | "esrecurse": "^4.3.0", 1158 | "estraverse": "^4.1.1" 1159 | }, 1160 | "engines": { 1161 | "node": ">=8.0.0" 1162 | } 1163 | }, 1164 | "node_modules/eslint-utils": { 1165 | "version": "3.0.0", 1166 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 1167 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 1168 | "dev": true, 1169 | "dependencies": { 1170 | "eslint-visitor-keys": "^2.0.0" 1171 | }, 1172 | "engines": { 1173 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 1174 | }, 1175 | "funding": { 1176 | "url": "https://github.com/sponsors/mysticatea" 1177 | }, 1178 | "peerDependencies": { 1179 | "eslint": ">=5" 1180 | } 1181 | }, 1182 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 1183 | "version": "2.1.0", 1184 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 1185 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 1186 | "dev": true, 1187 | "engines": { 1188 | "node": ">=10" 1189 | } 1190 | }, 1191 | "node_modules/eslint-visitor-keys": { 1192 | "version": "3.3.0", 1193 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", 1194 | "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", 1195 | "dev": true, 1196 | "engines": { 1197 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1198 | } 1199 | }, 1200 | "node_modules/eslint/node_modules/eslint-scope": { 1201 | "version": "7.1.1", 1202 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", 1203 | "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", 1204 | "dev": true, 1205 | "dependencies": { 1206 | "esrecurse": "^4.3.0", 1207 | "estraverse": "^5.2.0" 1208 | }, 1209 | "engines": { 1210 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1211 | } 1212 | }, 1213 | "node_modules/eslint/node_modules/estraverse": { 1214 | "version": "5.3.0", 1215 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1216 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1217 | "dev": true, 1218 | "engines": { 1219 | "node": ">=4.0" 1220 | } 1221 | }, 1222 | "node_modules/espree": { 1223 | "version": "9.4.1", 1224 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", 1225 | "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", 1226 | "dev": true, 1227 | "dependencies": { 1228 | "acorn": "^8.8.0", 1229 | "acorn-jsx": "^5.3.2", 1230 | "eslint-visitor-keys": "^3.3.0" 1231 | }, 1232 | "engines": { 1233 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1234 | }, 1235 | "funding": { 1236 | "url": "https://opencollective.com/eslint" 1237 | } 1238 | }, 1239 | "node_modules/esquery": { 1240 | "version": "1.5.0", 1241 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", 1242 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", 1243 | "dev": true, 1244 | "dependencies": { 1245 | "estraverse": "^5.1.0" 1246 | }, 1247 | "engines": { 1248 | "node": ">=0.10" 1249 | } 1250 | }, 1251 | "node_modules/esquery/node_modules/estraverse": { 1252 | "version": "5.3.0", 1253 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1254 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1255 | "dev": true, 1256 | "engines": { 1257 | "node": ">=4.0" 1258 | } 1259 | }, 1260 | "node_modules/esrecurse": { 1261 | "version": "4.3.0", 1262 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1263 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1264 | "dev": true, 1265 | "dependencies": { 1266 | "estraverse": "^5.2.0" 1267 | }, 1268 | "engines": { 1269 | "node": ">=4.0" 1270 | } 1271 | }, 1272 | "node_modules/esrecurse/node_modules/estraverse": { 1273 | "version": "5.3.0", 1274 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1275 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1276 | "dev": true, 1277 | "engines": { 1278 | "node": ">=4.0" 1279 | } 1280 | }, 1281 | "node_modules/estraverse": { 1282 | "version": "4.3.0", 1283 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 1284 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 1285 | "dev": true, 1286 | "engines": { 1287 | "node": ">=4.0" 1288 | } 1289 | }, 1290 | "node_modules/esutils": { 1291 | "version": "2.0.3", 1292 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1293 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1294 | "dev": true, 1295 | "engines": { 1296 | "node": ">=0.10.0" 1297 | } 1298 | }, 1299 | "node_modules/fast-deep-equal": { 1300 | "version": "3.1.3", 1301 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1302 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1303 | "dev": true 1304 | }, 1305 | "node_modules/fast-glob": { 1306 | "version": "3.2.12", 1307 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", 1308 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", 1309 | "dev": true, 1310 | "dependencies": { 1311 | "@nodelib/fs.stat": "^2.0.2", 1312 | "@nodelib/fs.walk": "^1.2.3", 1313 | "glob-parent": "^5.1.2", 1314 | "merge2": "^1.3.0", 1315 | "micromatch": "^4.0.4" 1316 | }, 1317 | "engines": { 1318 | "node": ">=8.6.0" 1319 | } 1320 | }, 1321 | "node_modules/fast-glob/node_modules/glob-parent": { 1322 | "version": "5.1.2", 1323 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1324 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1325 | "dev": true, 1326 | "dependencies": { 1327 | "is-glob": "^4.0.1" 1328 | }, 1329 | "engines": { 1330 | "node": ">= 6" 1331 | } 1332 | }, 1333 | "node_modules/fast-json-stable-stringify": { 1334 | "version": "2.1.0", 1335 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1336 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1337 | "dev": true 1338 | }, 1339 | "node_modules/fast-levenshtein": { 1340 | "version": "2.0.6", 1341 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1342 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1343 | "dev": true 1344 | }, 1345 | "node_modules/fastq": { 1346 | "version": "1.15.0", 1347 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", 1348 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", 1349 | "dev": true, 1350 | "dependencies": { 1351 | "reusify": "^1.0.4" 1352 | } 1353 | }, 1354 | "node_modules/file-entry-cache": { 1355 | "version": "6.0.1", 1356 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1357 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1358 | "dev": true, 1359 | "dependencies": { 1360 | "flat-cache": "^3.0.4" 1361 | }, 1362 | "engines": { 1363 | "node": "^10.12.0 || >=12.0.0" 1364 | } 1365 | }, 1366 | "node_modules/fill-range": { 1367 | "version": "7.0.1", 1368 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1369 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1370 | "dev": true, 1371 | "dependencies": { 1372 | "to-regex-range": "^5.0.1" 1373 | }, 1374 | "engines": { 1375 | "node": ">=8" 1376 | } 1377 | }, 1378 | "node_modules/find-up": { 1379 | "version": "5.0.0", 1380 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1381 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1382 | "dev": true, 1383 | "dependencies": { 1384 | "locate-path": "^6.0.0", 1385 | "path-exists": "^4.0.0" 1386 | }, 1387 | "engines": { 1388 | "node": ">=10" 1389 | }, 1390 | "funding": { 1391 | "url": "https://github.com/sponsors/sindresorhus" 1392 | } 1393 | }, 1394 | "node_modules/flat": { 1395 | "version": "5.0.2", 1396 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 1397 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 1398 | "dev": true, 1399 | "bin": { 1400 | "flat": "cli.js" 1401 | } 1402 | }, 1403 | "node_modules/flat-cache": { 1404 | "version": "3.0.4", 1405 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 1406 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 1407 | "dev": true, 1408 | "dependencies": { 1409 | "flatted": "^3.1.0", 1410 | "rimraf": "^3.0.2" 1411 | }, 1412 | "engines": { 1413 | "node": "^10.12.0 || >=12.0.0" 1414 | } 1415 | }, 1416 | "node_modules/flatted": { 1417 | "version": "3.2.7", 1418 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", 1419 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", 1420 | "dev": true 1421 | }, 1422 | "node_modules/fs.realpath": { 1423 | "version": "1.0.0", 1424 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1425 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1426 | "dev": true 1427 | }, 1428 | "node_modules/fsevents": { 1429 | "version": "2.3.2", 1430 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 1431 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 1432 | "dev": true, 1433 | "hasInstallScript": true, 1434 | "optional": true, 1435 | "os": [ 1436 | "darwin" 1437 | ], 1438 | "engines": { 1439 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1440 | } 1441 | }, 1442 | "node_modules/get-caller-file": { 1443 | "version": "2.0.5", 1444 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1445 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1446 | "dev": true, 1447 | "engines": { 1448 | "node": "6.* || 8.* || >= 10.*" 1449 | } 1450 | }, 1451 | "node_modules/glob": { 1452 | "version": "7.2.0", 1453 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 1454 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 1455 | "dev": true, 1456 | "dependencies": { 1457 | "fs.realpath": "^1.0.0", 1458 | "inflight": "^1.0.4", 1459 | "inherits": "2", 1460 | "minimatch": "^3.0.4", 1461 | "once": "^1.3.0", 1462 | "path-is-absolute": "^1.0.0" 1463 | }, 1464 | "engines": { 1465 | "node": "*" 1466 | }, 1467 | "funding": { 1468 | "url": "https://github.com/sponsors/isaacs" 1469 | } 1470 | }, 1471 | "node_modules/glob-parent": { 1472 | "version": "6.0.2", 1473 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1474 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1475 | "dev": true, 1476 | "dependencies": { 1477 | "is-glob": "^4.0.3" 1478 | }, 1479 | "engines": { 1480 | "node": ">=10.13.0" 1481 | } 1482 | }, 1483 | "node_modules/globals": { 1484 | "version": "13.20.0", 1485 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", 1486 | "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", 1487 | "dev": true, 1488 | "dependencies": { 1489 | "type-fest": "^0.20.2" 1490 | }, 1491 | "engines": { 1492 | "node": ">=8" 1493 | }, 1494 | "funding": { 1495 | "url": "https://github.com/sponsors/sindresorhus" 1496 | } 1497 | }, 1498 | "node_modules/globby": { 1499 | "version": "11.1.0", 1500 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 1501 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1502 | "dev": true, 1503 | "dependencies": { 1504 | "array-union": "^2.1.0", 1505 | "dir-glob": "^3.0.1", 1506 | "fast-glob": "^3.2.9", 1507 | "ignore": "^5.2.0", 1508 | "merge2": "^1.4.1", 1509 | "slash": "^3.0.0" 1510 | }, 1511 | "engines": { 1512 | "node": ">=10" 1513 | }, 1514 | "funding": { 1515 | "url": "https://github.com/sponsors/sindresorhus" 1516 | } 1517 | }, 1518 | "node_modules/grapheme-splitter": { 1519 | "version": "1.0.4", 1520 | "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", 1521 | "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", 1522 | "dev": true 1523 | }, 1524 | "node_modules/growl": { 1525 | "version": "1.10.5", 1526 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 1527 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 1528 | "dev": true, 1529 | "engines": { 1530 | "node": ">=4.x" 1531 | } 1532 | }, 1533 | "node_modules/has-flag": { 1534 | "version": "4.0.0", 1535 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1536 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1537 | "dev": true, 1538 | "engines": { 1539 | "node": ">=8" 1540 | } 1541 | }, 1542 | "node_modules/he": { 1543 | "version": "1.2.0", 1544 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1545 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1546 | "dev": true, 1547 | "bin": { 1548 | "he": "bin/he" 1549 | } 1550 | }, 1551 | "node_modules/ignore": { 1552 | "version": "5.2.4", 1553 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", 1554 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", 1555 | "dev": true, 1556 | "engines": { 1557 | "node": ">= 4" 1558 | } 1559 | }, 1560 | "node_modules/import-fresh": { 1561 | "version": "3.3.0", 1562 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1563 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1564 | "dev": true, 1565 | "dependencies": { 1566 | "parent-module": "^1.0.0", 1567 | "resolve-from": "^4.0.0" 1568 | }, 1569 | "engines": { 1570 | "node": ">=6" 1571 | }, 1572 | "funding": { 1573 | "url": "https://github.com/sponsors/sindresorhus" 1574 | } 1575 | }, 1576 | "node_modules/imurmurhash": { 1577 | "version": "0.1.4", 1578 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1579 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1580 | "dev": true, 1581 | "engines": { 1582 | "node": ">=0.8.19" 1583 | } 1584 | }, 1585 | "node_modules/inflight": { 1586 | "version": "1.0.6", 1587 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1588 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1589 | "dev": true, 1590 | "dependencies": { 1591 | "once": "^1.3.0", 1592 | "wrappy": "1" 1593 | } 1594 | }, 1595 | "node_modules/inherits": { 1596 | "version": "2.0.4", 1597 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1598 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1599 | "dev": true 1600 | }, 1601 | "node_modules/is-binary-path": { 1602 | "version": "2.1.0", 1603 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1604 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1605 | "dev": true, 1606 | "dependencies": { 1607 | "binary-extensions": "^2.0.0" 1608 | }, 1609 | "engines": { 1610 | "node": ">=8" 1611 | } 1612 | }, 1613 | "node_modules/is-extglob": { 1614 | "version": "2.1.1", 1615 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1616 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1617 | "dev": true, 1618 | "engines": { 1619 | "node": ">=0.10.0" 1620 | } 1621 | }, 1622 | "node_modules/is-fullwidth-code-point": { 1623 | "version": "3.0.0", 1624 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1625 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1626 | "dev": true, 1627 | "engines": { 1628 | "node": ">=8" 1629 | } 1630 | }, 1631 | "node_modules/is-glob": { 1632 | "version": "4.0.3", 1633 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1634 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1635 | "dev": true, 1636 | "dependencies": { 1637 | "is-extglob": "^2.1.1" 1638 | }, 1639 | "engines": { 1640 | "node": ">=0.10.0" 1641 | } 1642 | }, 1643 | "node_modules/is-number": { 1644 | "version": "7.0.0", 1645 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1646 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1647 | "dev": true, 1648 | "engines": { 1649 | "node": ">=0.12.0" 1650 | } 1651 | }, 1652 | "node_modules/is-path-inside": { 1653 | "version": "3.0.3", 1654 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1655 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1656 | "dev": true, 1657 | "engines": { 1658 | "node": ">=8" 1659 | } 1660 | }, 1661 | "node_modules/is-plain-obj": { 1662 | "version": "2.1.0", 1663 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 1664 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 1665 | "dev": true, 1666 | "engines": { 1667 | "node": ">=8" 1668 | } 1669 | }, 1670 | "node_modules/is-unicode-supported": { 1671 | "version": "0.1.0", 1672 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", 1673 | "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", 1674 | "dev": true, 1675 | "engines": { 1676 | "node": ">=10" 1677 | }, 1678 | "funding": { 1679 | "url": "https://github.com/sponsors/sindresorhus" 1680 | } 1681 | }, 1682 | "node_modules/isexe": { 1683 | "version": "2.0.0", 1684 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1685 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1686 | "dev": true 1687 | }, 1688 | "node_modules/js-sdsl": { 1689 | "version": "4.3.0", 1690 | "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", 1691 | "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", 1692 | "dev": true, 1693 | "funding": { 1694 | "type": "opencollective", 1695 | "url": "https://opencollective.com/js-sdsl" 1696 | } 1697 | }, 1698 | "node_modules/js-yaml": { 1699 | "version": "4.1.0", 1700 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1701 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1702 | "dev": true, 1703 | "dependencies": { 1704 | "argparse": "^2.0.1" 1705 | }, 1706 | "bin": { 1707 | "js-yaml": "bin/js-yaml.js" 1708 | } 1709 | }, 1710 | "node_modules/json-schema-traverse": { 1711 | "version": "0.4.1", 1712 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1713 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1714 | "dev": true 1715 | }, 1716 | "node_modules/json-stable-stringify-without-jsonify": { 1717 | "version": "1.0.1", 1718 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1719 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1720 | "dev": true 1721 | }, 1722 | "node_modules/levn": { 1723 | "version": "0.4.1", 1724 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1725 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1726 | "dev": true, 1727 | "dependencies": { 1728 | "prelude-ls": "^1.2.1", 1729 | "type-check": "~0.4.0" 1730 | }, 1731 | "engines": { 1732 | "node": ">= 0.8.0" 1733 | } 1734 | }, 1735 | "node_modules/locate-path": { 1736 | "version": "6.0.0", 1737 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1738 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1739 | "dev": true, 1740 | "dependencies": { 1741 | "p-locate": "^5.0.0" 1742 | }, 1743 | "engines": { 1744 | "node": ">=10" 1745 | }, 1746 | "funding": { 1747 | "url": "https://github.com/sponsors/sindresorhus" 1748 | } 1749 | }, 1750 | "node_modules/lodash.merge": { 1751 | "version": "4.6.2", 1752 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1753 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1754 | "dev": true 1755 | }, 1756 | "node_modules/log-symbols": { 1757 | "version": "4.1.0", 1758 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", 1759 | "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", 1760 | "dev": true, 1761 | "dependencies": { 1762 | "chalk": "^4.1.0", 1763 | "is-unicode-supported": "^0.1.0" 1764 | }, 1765 | "engines": { 1766 | "node": ">=10" 1767 | }, 1768 | "funding": { 1769 | "url": "https://github.com/sponsors/sindresorhus" 1770 | } 1771 | }, 1772 | "node_modules/lru-cache": { 1773 | "version": "6.0.0", 1774 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1775 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1776 | "dev": true, 1777 | "dependencies": { 1778 | "yallist": "^4.0.0" 1779 | }, 1780 | "engines": { 1781 | "node": ">=10" 1782 | } 1783 | }, 1784 | "node_modules/merge2": { 1785 | "version": "1.4.1", 1786 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1787 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1788 | "dev": true, 1789 | "engines": { 1790 | "node": ">= 8" 1791 | } 1792 | }, 1793 | "node_modules/micromatch": { 1794 | "version": "4.0.5", 1795 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1796 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1797 | "dev": true, 1798 | "dependencies": { 1799 | "braces": "^3.0.2", 1800 | "picomatch": "^2.3.1" 1801 | }, 1802 | "engines": { 1803 | "node": ">=8.6" 1804 | } 1805 | }, 1806 | "node_modules/minimatch": { 1807 | "version": "3.1.2", 1808 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1809 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1810 | "dev": true, 1811 | "dependencies": { 1812 | "brace-expansion": "^1.1.7" 1813 | }, 1814 | "engines": { 1815 | "node": "*" 1816 | } 1817 | }, 1818 | "node_modules/mocha": { 1819 | "version": "9.2.2", 1820 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-9.2.2.tgz", 1821 | "integrity": "sha512-L6XC3EdwT6YrIk0yXpavvLkn8h+EU+Y5UcCHKECyMbdUIxyMuZj4bX4U9e1nvnvUUvQVsV2VHQr5zLdcUkhW/g==", 1822 | "dev": true, 1823 | "dependencies": { 1824 | "@ungap/promise-all-settled": "1.1.2", 1825 | "ansi-colors": "4.1.1", 1826 | "browser-stdout": "1.3.1", 1827 | "chokidar": "3.5.3", 1828 | "debug": "4.3.3", 1829 | "diff": "5.0.0", 1830 | "escape-string-regexp": "4.0.0", 1831 | "find-up": "5.0.0", 1832 | "glob": "7.2.0", 1833 | "growl": "1.10.5", 1834 | "he": "1.2.0", 1835 | "js-yaml": "4.1.0", 1836 | "log-symbols": "4.1.0", 1837 | "minimatch": "4.2.1", 1838 | "ms": "2.1.3", 1839 | "nanoid": "3.3.1", 1840 | "serialize-javascript": "6.0.0", 1841 | "strip-json-comments": "3.1.1", 1842 | "supports-color": "8.1.1", 1843 | "which": "2.0.2", 1844 | "workerpool": "6.2.0", 1845 | "yargs": "16.2.0", 1846 | "yargs-parser": "20.2.4", 1847 | "yargs-unparser": "2.0.0" 1848 | }, 1849 | "bin": { 1850 | "_mocha": "bin/_mocha", 1851 | "mocha": "bin/mocha" 1852 | }, 1853 | "engines": { 1854 | "node": ">= 12.0.0" 1855 | }, 1856 | "funding": { 1857 | "type": "opencollective", 1858 | "url": "https://opencollective.com/mochajs" 1859 | } 1860 | }, 1861 | "node_modules/mocha/node_modules/debug": { 1862 | "version": "4.3.3", 1863 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", 1864 | "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", 1865 | "dev": true, 1866 | "dependencies": { 1867 | "ms": "2.1.2" 1868 | }, 1869 | "engines": { 1870 | "node": ">=6.0" 1871 | }, 1872 | "peerDependenciesMeta": { 1873 | "supports-color": { 1874 | "optional": true 1875 | } 1876 | } 1877 | }, 1878 | "node_modules/mocha/node_modules/debug/node_modules/ms": { 1879 | "version": "2.1.2", 1880 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1881 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1882 | "dev": true 1883 | }, 1884 | "node_modules/mocha/node_modules/minimatch": { 1885 | "version": "4.2.1", 1886 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.1.tgz", 1887 | "integrity": "sha512-9Uq1ChtSZO+Mxa/CL1eGizn2vRn3MlLgzhT0Iz8zaY8NdvxvB0d5QdPFmCKf7JKA9Lerx5vRrnwO03jsSfGG9g==", 1888 | "dev": true, 1889 | "dependencies": { 1890 | "brace-expansion": "^1.1.7" 1891 | }, 1892 | "engines": { 1893 | "node": ">=10" 1894 | } 1895 | }, 1896 | "node_modules/mocha/node_modules/ms": { 1897 | "version": "2.1.3", 1898 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1899 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1900 | "dev": true 1901 | }, 1902 | "node_modules/mocha/node_modules/supports-color": { 1903 | "version": "8.1.1", 1904 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1905 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1906 | "dev": true, 1907 | "dependencies": { 1908 | "has-flag": "^4.0.0" 1909 | }, 1910 | "engines": { 1911 | "node": ">=10" 1912 | }, 1913 | "funding": { 1914 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1915 | } 1916 | }, 1917 | "node_modules/ms": { 1918 | "version": "2.1.2", 1919 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1920 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1921 | "dev": true 1922 | }, 1923 | "node_modules/nanoid": { 1924 | "version": "3.3.1", 1925 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz", 1926 | "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==", 1927 | "dev": true, 1928 | "bin": { 1929 | "nanoid": "bin/nanoid.cjs" 1930 | }, 1931 | "engines": { 1932 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1933 | } 1934 | }, 1935 | "node_modules/natural-compare": { 1936 | "version": "1.4.0", 1937 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1938 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1939 | "dev": true 1940 | }, 1941 | "node_modules/natural-compare-lite": { 1942 | "version": "1.4.0", 1943 | "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", 1944 | "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", 1945 | "dev": true 1946 | }, 1947 | "node_modules/normalize-path": { 1948 | "version": "3.0.0", 1949 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1950 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1951 | "dev": true, 1952 | "engines": { 1953 | "node": ">=0.10.0" 1954 | } 1955 | }, 1956 | "node_modules/once": { 1957 | "version": "1.4.0", 1958 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1959 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1960 | "dev": true, 1961 | "dependencies": { 1962 | "wrappy": "1" 1963 | } 1964 | }, 1965 | "node_modules/optionator": { 1966 | "version": "0.9.1", 1967 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", 1968 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", 1969 | "dev": true, 1970 | "dependencies": { 1971 | "deep-is": "^0.1.3", 1972 | "fast-levenshtein": "^2.0.6", 1973 | "levn": "^0.4.1", 1974 | "prelude-ls": "^1.2.1", 1975 | "type-check": "^0.4.0", 1976 | "word-wrap": "^1.2.3" 1977 | }, 1978 | "engines": { 1979 | "node": ">= 0.8.0" 1980 | } 1981 | }, 1982 | "node_modules/p-limit": { 1983 | "version": "3.1.0", 1984 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1985 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1986 | "dev": true, 1987 | "dependencies": { 1988 | "yocto-queue": "^0.1.0" 1989 | }, 1990 | "engines": { 1991 | "node": ">=10" 1992 | }, 1993 | "funding": { 1994 | "url": "https://github.com/sponsors/sindresorhus" 1995 | } 1996 | }, 1997 | "node_modules/p-locate": { 1998 | "version": "5.0.0", 1999 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 2000 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 2001 | "dev": true, 2002 | "dependencies": { 2003 | "p-limit": "^3.0.2" 2004 | }, 2005 | "engines": { 2006 | "node": ">=10" 2007 | }, 2008 | "funding": { 2009 | "url": "https://github.com/sponsors/sindresorhus" 2010 | } 2011 | }, 2012 | "node_modules/parent-module": { 2013 | "version": "1.0.1", 2014 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 2015 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 2016 | "dev": true, 2017 | "dependencies": { 2018 | "callsites": "^3.0.0" 2019 | }, 2020 | "engines": { 2021 | "node": ">=6" 2022 | } 2023 | }, 2024 | "node_modules/path-exists": { 2025 | "version": "4.0.0", 2026 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 2027 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 2028 | "dev": true, 2029 | "engines": { 2030 | "node": ">=8" 2031 | } 2032 | }, 2033 | "node_modules/path-is-absolute": { 2034 | "version": "1.0.1", 2035 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2036 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 2037 | "dev": true, 2038 | "engines": { 2039 | "node": ">=0.10.0" 2040 | } 2041 | }, 2042 | "node_modules/path-key": { 2043 | "version": "3.1.1", 2044 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 2045 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 2046 | "dev": true, 2047 | "engines": { 2048 | "node": ">=8" 2049 | } 2050 | }, 2051 | "node_modules/path-type": { 2052 | "version": "4.0.0", 2053 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 2054 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 2055 | "dev": true, 2056 | "engines": { 2057 | "node": ">=8" 2058 | } 2059 | }, 2060 | "node_modules/picomatch": { 2061 | "version": "2.3.1", 2062 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 2063 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 2064 | "dev": true, 2065 | "engines": { 2066 | "node": ">=8.6" 2067 | }, 2068 | "funding": { 2069 | "url": "https://github.com/sponsors/jonschlinkert" 2070 | } 2071 | }, 2072 | "node_modules/prelude-ls": { 2073 | "version": "1.2.1", 2074 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 2075 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 2076 | "dev": true, 2077 | "engines": { 2078 | "node": ">= 0.8.0" 2079 | } 2080 | }, 2081 | "node_modules/punycode": { 2082 | "version": "2.3.0", 2083 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", 2084 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", 2085 | "dev": true, 2086 | "engines": { 2087 | "node": ">=6" 2088 | } 2089 | }, 2090 | "node_modules/queue-microtask": { 2091 | "version": "1.2.3", 2092 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 2093 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 2094 | "dev": true, 2095 | "funding": [ 2096 | { 2097 | "type": "github", 2098 | "url": "https://github.com/sponsors/feross" 2099 | }, 2100 | { 2101 | "type": "patreon", 2102 | "url": "https://www.patreon.com/feross" 2103 | }, 2104 | { 2105 | "type": "consulting", 2106 | "url": "https://feross.org/support" 2107 | } 2108 | ] 2109 | }, 2110 | "node_modules/randombytes": { 2111 | "version": "2.1.0", 2112 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 2113 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 2114 | "dev": true, 2115 | "dependencies": { 2116 | "safe-buffer": "^5.1.0" 2117 | } 2118 | }, 2119 | "node_modules/readdirp": { 2120 | "version": "3.6.0", 2121 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 2122 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 2123 | "dev": true, 2124 | "dependencies": { 2125 | "picomatch": "^2.2.1" 2126 | }, 2127 | "engines": { 2128 | "node": ">=8.10.0" 2129 | } 2130 | }, 2131 | "node_modules/regexpp": { 2132 | "version": "3.2.0", 2133 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 2134 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 2135 | "dev": true, 2136 | "engines": { 2137 | "node": ">=8" 2138 | }, 2139 | "funding": { 2140 | "url": "https://github.com/sponsors/mysticatea" 2141 | } 2142 | }, 2143 | "node_modules/require-directory": { 2144 | "version": "2.1.1", 2145 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2146 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 2147 | "dev": true, 2148 | "engines": { 2149 | "node": ">=0.10.0" 2150 | } 2151 | }, 2152 | "node_modules/resolve-from": { 2153 | "version": "4.0.0", 2154 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 2155 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 2156 | "dev": true, 2157 | "engines": { 2158 | "node": ">=4" 2159 | } 2160 | }, 2161 | "node_modules/reusify": { 2162 | "version": "1.0.4", 2163 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 2164 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 2165 | "dev": true, 2166 | "engines": { 2167 | "iojs": ">=1.0.0", 2168 | "node": ">=0.10.0" 2169 | } 2170 | }, 2171 | "node_modules/rimraf": { 2172 | "version": "3.0.2", 2173 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 2174 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 2175 | "dev": true, 2176 | "dependencies": { 2177 | "glob": "^7.1.3" 2178 | }, 2179 | "bin": { 2180 | "rimraf": "bin.js" 2181 | }, 2182 | "funding": { 2183 | "url": "https://github.com/sponsors/isaacs" 2184 | } 2185 | }, 2186 | "node_modules/run-parallel": { 2187 | "version": "1.2.0", 2188 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 2189 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 2190 | "dev": true, 2191 | "funding": [ 2192 | { 2193 | "type": "github", 2194 | "url": "https://github.com/sponsors/feross" 2195 | }, 2196 | { 2197 | "type": "patreon", 2198 | "url": "https://www.patreon.com/feross" 2199 | }, 2200 | { 2201 | "type": "consulting", 2202 | "url": "https://feross.org/support" 2203 | } 2204 | ], 2205 | "dependencies": { 2206 | "queue-microtask": "^1.2.2" 2207 | } 2208 | }, 2209 | "node_modules/safe-buffer": { 2210 | "version": "5.2.1", 2211 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2212 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 2213 | "dev": true, 2214 | "funding": [ 2215 | { 2216 | "type": "github", 2217 | "url": "https://github.com/sponsors/feross" 2218 | }, 2219 | { 2220 | "type": "patreon", 2221 | "url": "https://www.patreon.com/feross" 2222 | }, 2223 | { 2224 | "type": "consulting", 2225 | "url": "https://feross.org/support" 2226 | } 2227 | ] 2228 | }, 2229 | "node_modules/semver": { 2230 | "version": "7.3.8", 2231 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", 2232 | "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", 2233 | "dev": true, 2234 | "dependencies": { 2235 | "lru-cache": "^6.0.0" 2236 | }, 2237 | "bin": { 2238 | "semver": "bin/semver.js" 2239 | }, 2240 | "engines": { 2241 | "node": ">=10" 2242 | } 2243 | }, 2244 | "node_modules/serialize-javascript": { 2245 | "version": "6.0.0", 2246 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", 2247 | "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", 2248 | "dev": true, 2249 | "dependencies": { 2250 | "randombytes": "^2.1.0" 2251 | } 2252 | }, 2253 | "node_modules/shebang-command": { 2254 | "version": "2.0.0", 2255 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2256 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2257 | "dev": true, 2258 | "dependencies": { 2259 | "shebang-regex": "^3.0.0" 2260 | }, 2261 | "engines": { 2262 | "node": ">=8" 2263 | } 2264 | }, 2265 | "node_modules/shebang-regex": { 2266 | "version": "3.0.0", 2267 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2268 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2269 | "dev": true, 2270 | "engines": { 2271 | "node": ">=8" 2272 | } 2273 | }, 2274 | "node_modules/slash": { 2275 | "version": "3.0.0", 2276 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 2277 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 2278 | "dev": true, 2279 | "engines": { 2280 | "node": ">=8" 2281 | } 2282 | }, 2283 | "node_modules/string-width": { 2284 | "version": "4.2.3", 2285 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2286 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2287 | "dev": true, 2288 | "dependencies": { 2289 | "emoji-regex": "^8.0.0", 2290 | "is-fullwidth-code-point": "^3.0.0", 2291 | "strip-ansi": "^6.0.1" 2292 | }, 2293 | "engines": { 2294 | "node": ">=8" 2295 | } 2296 | }, 2297 | "node_modules/strip-ansi": { 2298 | "version": "6.0.1", 2299 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2300 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2301 | "dev": true, 2302 | "dependencies": { 2303 | "ansi-regex": "^5.0.1" 2304 | }, 2305 | "engines": { 2306 | "node": ">=8" 2307 | } 2308 | }, 2309 | "node_modules/strip-json-comments": { 2310 | "version": "3.1.1", 2311 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2312 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2313 | "dev": true, 2314 | "engines": { 2315 | "node": ">=8" 2316 | }, 2317 | "funding": { 2318 | "url": "https://github.com/sponsors/sindresorhus" 2319 | } 2320 | }, 2321 | "node_modules/supports-color": { 2322 | "version": "7.2.0", 2323 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2324 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2325 | "dev": true, 2326 | "dependencies": { 2327 | "has-flag": "^4.0.0" 2328 | }, 2329 | "engines": { 2330 | "node": ">=8" 2331 | } 2332 | }, 2333 | "node_modules/text-table": { 2334 | "version": "0.2.0", 2335 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2336 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 2337 | "dev": true 2338 | }, 2339 | "node_modules/to-regex-range": { 2340 | "version": "5.0.1", 2341 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2342 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2343 | "dev": true, 2344 | "dependencies": { 2345 | "is-number": "^7.0.0" 2346 | }, 2347 | "engines": { 2348 | "node": ">=8.0" 2349 | } 2350 | }, 2351 | "node_modules/tslib": { 2352 | "version": "1.14.1", 2353 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 2354 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 2355 | "dev": true 2356 | }, 2357 | "node_modules/tsutils": { 2358 | "version": "3.21.0", 2359 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", 2360 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 2361 | "dev": true, 2362 | "dependencies": { 2363 | "tslib": "^1.8.1" 2364 | }, 2365 | "engines": { 2366 | "node": ">= 6" 2367 | }, 2368 | "peerDependencies": { 2369 | "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" 2370 | } 2371 | }, 2372 | "node_modules/type-check": { 2373 | "version": "0.4.0", 2374 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2375 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2376 | "dev": true, 2377 | "dependencies": { 2378 | "prelude-ls": "^1.2.1" 2379 | }, 2380 | "engines": { 2381 | "node": ">= 0.8.0" 2382 | } 2383 | }, 2384 | "node_modules/type-fest": { 2385 | "version": "0.20.2", 2386 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 2387 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 2388 | "dev": true, 2389 | "engines": { 2390 | "node": ">=10" 2391 | }, 2392 | "funding": { 2393 | "url": "https://github.com/sponsors/sindresorhus" 2394 | } 2395 | }, 2396 | "node_modules/typescript": { 2397 | "version": "4.9.5", 2398 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", 2399 | "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", 2400 | "dev": true, 2401 | "bin": { 2402 | "tsc": "bin/tsc", 2403 | "tsserver": "bin/tsserver" 2404 | }, 2405 | "engines": { 2406 | "node": ">=4.2.0" 2407 | } 2408 | }, 2409 | "node_modules/uri-js": { 2410 | "version": "4.4.1", 2411 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2412 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2413 | "dev": true, 2414 | "dependencies": { 2415 | "punycode": "^2.1.0" 2416 | } 2417 | }, 2418 | "node_modules/which": { 2419 | "version": "2.0.2", 2420 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2421 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2422 | "dev": true, 2423 | "dependencies": { 2424 | "isexe": "^2.0.0" 2425 | }, 2426 | "bin": { 2427 | "node-which": "bin/node-which" 2428 | }, 2429 | "engines": { 2430 | "node": ">= 8" 2431 | } 2432 | }, 2433 | "node_modules/word-wrap": { 2434 | "version": "1.2.3", 2435 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 2436 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 2437 | "dev": true, 2438 | "engines": { 2439 | "node": ">=0.10.0" 2440 | } 2441 | }, 2442 | "node_modules/workerpool": { 2443 | "version": "6.2.0", 2444 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.0.tgz", 2445 | "integrity": "sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==", 2446 | "dev": true 2447 | }, 2448 | "node_modules/wrap-ansi": { 2449 | "version": "7.0.0", 2450 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 2451 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 2452 | "dev": true, 2453 | "dependencies": { 2454 | "ansi-styles": "^4.0.0", 2455 | "string-width": "^4.1.0", 2456 | "strip-ansi": "^6.0.0" 2457 | }, 2458 | "engines": { 2459 | "node": ">=10" 2460 | }, 2461 | "funding": { 2462 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2463 | } 2464 | }, 2465 | "node_modules/wrappy": { 2466 | "version": "1.0.2", 2467 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2468 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2469 | "dev": true 2470 | }, 2471 | "node_modules/y18n": { 2472 | "version": "5.0.8", 2473 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 2474 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 2475 | "dev": true, 2476 | "engines": { 2477 | "node": ">=10" 2478 | } 2479 | }, 2480 | "node_modules/yallist": { 2481 | "version": "4.0.0", 2482 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2483 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2484 | "dev": true 2485 | }, 2486 | "node_modules/yargs": { 2487 | "version": "16.2.0", 2488 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", 2489 | "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", 2490 | "dev": true, 2491 | "dependencies": { 2492 | "cliui": "^7.0.2", 2493 | "escalade": "^3.1.1", 2494 | "get-caller-file": "^2.0.5", 2495 | "require-directory": "^2.1.1", 2496 | "string-width": "^4.2.0", 2497 | "y18n": "^5.0.5", 2498 | "yargs-parser": "^20.2.2" 2499 | }, 2500 | "engines": { 2501 | "node": ">=10" 2502 | } 2503 | }, 2504 | "node_modules/yargs-parser": { 2505 | "version": "20.2.4", 2506 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", 2507 | "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", 2508 | "dev": true, 2509 | "engines": { 2510 | "node": ">=10" 2511 | } 2512 | }, 2513 | "node_modules/yargs-unparser": { 2514 | "version": "2.0.0", 2515 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 2516 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 2517 | "dev": true, 2518 | "dependencies": { 2519 | "camelcase": "^6.0.0", 2520 | "decamelize": "^4.0.0", 2521 | "flat": "^5.0.2", 2522 | "is-plain-obj": "^2.1.0" 2523 | }, 2524 | "engines": { 2525 | "node": ">=10" 2526 | } 2527 | }, 2528 | "node_modules/yocto-queue": { 2529 | "version": "0.1.0", 2530 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2531 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2532 | "dev": true, 2533 | "engines": { 2534 | "node": ">=10" 2535 | }, 2536 | "funding": { 2537 | "url": "https://github.com/sponsors/sindresorhus" 2538 | } 2539 | } 2540 | } 2541 | } 2542 | -------------------------------------------------------------------------------- /editors/vscode/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "leptos-language-server", 3 | "description": "Leptos Language Server", 4 | "author": "Bram Hoendervangers", 5 | "license": "MIT", 6 | "version": "0.1.0", 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/bram209/leptos-language-server" 10 | }, 11 | "publisher": "bram209", 12 | "categories": [], 13 | "keywords": [ 14 | "leptos", 15 | "rust", 16 | "lsp", 17 | "language server", 18 | "formatter", 19 | "leptosfmt" 20 | ], 21 | "engines": { 22 | "vscode": "^1.75.0" 23 | }, 24 | "activationEvents": [ 25 | "onLanguage:rust" 26 | ], 27 | "main": "client/out/extension.js", 28 | "contributes": { 29 | "configuration": { 30 | "type": "object", 31 | "title": "Example configuration", 32 | "properties": { 33 | "leptos-language-server.maxNumberOfProblems": { 34 | "scope": "resource", 35 | "type": "number", 36 | "default": 100, 37 | "description": "Controls the maximum number of problems produced by the server." 38 | }, 39 | "leptos-language-server.trace.server": { 40 | "scope": "window", 41 | "type": "string", 42 | "enum": [ 43 | "off", 44 | "messages", 45 | "verbose" 46 | ], 47 | "default": "off", 48 | "description": "Traces the communication between VS Code and the language server." 49 | } 50 | } 51 | } 52 | }, 53 | "scripts": { 54 | "vscode:prepublish": "npm run esbuild-base -- --minify", 55 | "esbuild-base": "esbuild ./client/src/extension.ts --bundle --outfile=./client/out/extension.js --external:vscode --format=cjs --platform=node", 56 | "esbuild": "npm run esbuild-base -- --sourcemap", 57 | "compile": "tsc -b", 58 | "watch": "tsc -b -w", 59 | "lint": "eslint ./client/src ./server/src --ext .ts,.tsx", 60 | "postinstall": "cd client && npm install && cd ..", 61 | "test": "sh ./scripts/e2e.sh" 62 | }, 63 | "devDependencies": { 64 | "@types/mocha": "^9.1.0", 65 | "@types/node": "^16.11.7", 66 | "@typescript-eslint/eslint-plugin": "^5.54.0", 67 | "@typescript-eslint/parser": "^5.54.0", 68 | "esbuild": "^0.17.14", 69 | "eslint": "^8.35.0", 70 | "mocha": "^9.2.1", 71 | "typescript": "^4.9.5" 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /editors/vscode/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es2020", 5 | "lib": ["es2020"], 6 | "outDir": "out", 7 | "rootDir": "src", 8 | "sourceMap": true 9 | }, 10 | "include": [ 11 | "src" 12 | ], 13 | "exclude": [ 14 | "node_modules", 15 | ".vscode-test" 16 | ], 17 | "references": [ 18 | { "path": "./client" }, 19 | ] 20 | } --------------------------------------------------------------------------------