From 36f1ba9dc9dc16c8d14f166d399f6548b01c4a60 Mon Sep 17 00:00:00 2001 From: MrCoder Date: Fri, 6 Dec 2024 10:59:55 +1100 Subject: [PATCH] refactor(diagram): improve null handling and update dependencies - Add null checks in edge and node constructors to prevent runtime errors - Use optional chaining to improve code readability and robustness - Update Vite to version 3.2.11 - Add 'exports: "named"' to vite config for better module resolution --- package.json | 2 +- pnpm-lock.yaml | 618 +++++++++--------- .../SwimLaneDiagram/SwimLaneLayer.vue | 4 +- src/parser/SwimLane/AltStatement.ts | 3 +- src/parser/SwimLane/Edge.ts | 6 +- src/parser/SwimLane/MessageStatement.ts | 2 +- src/parser/SwimLane/Nodes.ts | 8 +- vite.config.lib.js | 2 + 8 files changed, 307 insertions(+), 338 deletions(-) diff --git a/package.json b/package.json index 0047fe377..301566558 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "terser-webpack-plugin": "^3.1.0", "ts-node": "^10.9.1", "typescript": "^4.9.4", - "vite": "^3.2.10", + "vite": "^3.2.11", "vite-plugin-css-injected-by-js": "^2.2.0", "vite-svg-loader": "^4.0.0", "vitest": "^0.26.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 714d68587..47ffcb570 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -97,7 +97,7 @@ importers: version: 6.7.4(eslint@8.30.0)(typescript@4.9.4) "@vitejs/plugin-vue": specifier: ^4.0.0 - version: 4.0.0(vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0))(vue@3.2.45) + version: 4.0.0(vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0))(vue@3.2.45) "@vue/compiler-dom": specifier: ^3.3.8 version: 3.3.8 @@ -130,7 +130,7 @@ importers: version: 7.1.0 eslint-plugin-prettier: specifier: ^5.0.0 - version: 5.0.0(@types/eslint@8.56.10)(eslint-config-prettier@9.0.0(eslint@8.30.0))(eslint@8.30.0)(prettier@3.0.3) + version: 5.0.0(@types/eslint@9.6.1)(eslint-config-prettier@9.0.0(eslint@8.30.0))(eslint@8.30.0)(prettier@3.0.3) eslint-plugin-vue: specifier: ^9.17.0 version: 9.17.0(eslint@8.30.0) @@ -174,17 +174,17 @@ importers: specifier: ^4.9.4 version: 4.9.4 vite: - specifier: ^3.2.10 - version: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0) + specifier: ^3.2.11 + version: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0) vite-plugin-css-injected-by-js: specifier: ^2.2.0 - version: 2.2.0(vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0)) + version: 2.2.0(vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0)) vite-svg-loader: specifier: ^4.0.0 version: 4.0.0 vitest: specifier: ^0.26.1 - version: 0.26.1(jsdom@20.0.3)(less@4.1.3)(sass@1.57.0)(terser@5.31.0) + version: 0.26.1(jsdom@20.0.3)(less@4.1.3)(sass@1.57.0)(terser@5.36.0) packages: "@ampproject/remapping@2.3.0": @@ -208,10 +208,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/code-frame@7.24.6": + "@babel/code-frame@7.26.2": resolution: { - integrity: sha512-ZJhac6FkEd1yhG2AHOmfcXG4ceoLltoCVJjN5XsWN9BifBQr+cHJbWi0h68HZuSORq+3WtJ2z0hwF2NG1b5kcA==, + integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==, } engines: { node: ">=6.9.0" } @@ -222,10 +222,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/compat-data@7.24.6": + "@babel/compat-data@7.26.3": resolution: { - integrity: sha512-aC2DGhBq5eEdyXWqrDInSqQjO0k8xtPRf5YylULqx8MCd6jBtzqfta/3ETMRpuKIc5hyswfO80ObyA1MvkCcUQ==, + integrity: sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g==, } engines: { node: ">=6.9.0" } @@ -253,10 +253,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/generator@7.24.6": + "@babel/generator@7.26.3": resolution: { - integrity: sha512-S7m4eNa6YAPJRHmKsLHIDJhNAGNKoWNiWefz1MBbpnt8g9lvMDl1hir4P9bo/57bQEmuwEhnRU/AMWsD0G/Fbg==, + integrity: sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==, } engines: { node: ">=6.9.0" } @@ -283,10 +283,10 @@ packages: peerDependencies: "@babel/core": ^7.0.0 - "@babel/helper-compilation-targets@7.24.6": + "@babel/helper-compilation-targets@7.25.9": resolution: { - integrity: sha512-VZQ57UsDGlX/5fFA7GkVPplZhHsVc+vuErWgdOiysI9Ksnw0Pbbd6pnPiR/mmJyKHgyIW0c7KT32gmhiF+cirg==, + integrity: sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==, } engines: { node: ">=6.9.0" } @@ -330,13 +330,6 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-environment-visitor@7.24.6": - resolution: - { - integrity: sha512-Y50Cg3k0LKLMjxdPjIl40SdJgMB85iXn27Vk/qbHZCFx/o5XO3PSnpi675h1KEmmDb6OFArfd5SCQEQ5Q4H88g==, - } - engines: { node: ">=6.9.0" } - "@babel/helper-explode-assignable-expression@7.18.6": resolution: { @@ -358,13 +351,6 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-function-name@7.24.6": - resolution: - { - integrity: sha512-xpeLqeeRkbxhnYimfr2PC+iA0Q7ljX/d1eZ9/inYbmfG2jpl8Lu3DyXvpOAnrS5kxkfOWJjioIMQsaMBXFI05w==, - } - engines: { node: ">=6.9.0" } - "@babel/helper-hoist-variables@7.18.6": resolution: { @@ -379,13 +365,6 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-hoist-variables@7.24.6": - resolution: - { - integrity: sha512-SF/EMrC3OD7dSta1bLJIlrsVxwtd0UpjRJqLno6125epQMJ/kyFmpTT4pbvPbdQHzCHg+biQ7Syo8lnDtbR+uA==, - } - engines: { node: ">=6.9.0" } - "@babel/helper-member-expression-to-functions@7.18.9": resolution: { @@ -400,10 +379,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-module-imports@7.24.6": + "@babel/helper-module-imports@7.25.9": resolution: { - integrity: sha512-a26dmxFJBF62rRO9mmpgrfTLsAuyHk4e1hKTUkD/fcMfynt8gvEKwQPQDVxWhca8dHoDck+55DFt42zV0QMw5g==, + integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==, } engines: { node: ">=6.9.0" } @@ -414,10 +393,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-module-transforms@7.24.6": + "@babel/helper-module-transforms@7.26.0": resolution: { - integrity: sha512-Y/YMPm83mV2HJTbX1Qh2sjgjqcacvOlhbzdCCsSlblOKjSYmQqEbO6rUniWQyRo9ncyfjT8hnUjlG06RXDEmcA==, + integrity: sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==, } engines: { node: ">=6.9.0" } peerDependencies: @@ -460,13 +439,6 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-simple-access@7.24.6": - resolution: - { - integrity: sha512-nZzcMMD4ZhmB35MOOzQuiGO5RzL6tJbsT37Zx8M5L/i9KSrukGXWTjLe1knIbb/RmxoJE9GON9soq0c0VEMM5g==, - } - engines: { node: ">=6.9.0" } - "@babel/helper-skip-transparent-expression-wrappers@7.20.0": resolution: { @@ -488,13 +460,6 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-split-export-declaration@7.24.6": - resolution: - { - integrity: sha512-CvLSkwXGWnYlF9+J3iZUvwgAxKiYzK3BWuo+mLzD/MDGOZDj7Gq8+hqaOkMxmJwmlv0iu86uH5fdADd9Hxkymw==, - } - engines: { node: ">=6.9.0" } - "@babel/helper-string-parser@7.21.5": resolution: { @@ -509,10 +474,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-string-parser@7.24.6": + "@babel/helper-string-parser@7.25.9": resolution: { - integrity: sha512-WdJjwMEkmBicq5T9fm/cHND3+UlFa2Yj8ALLgmoSQAJZysYbBjw+azChSGPN4DSPLXOcooGRvDwZWMcF/mLO2Q==, + integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==, } engines: { node: ">=6.9.0" } @@ -530,10 +495,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-validator-identifier@7.24.6": + "@babel/helper-validator-identifier@7.25.9": resolution: { - integrity: sha512-4yA7s865JHaqUdRbnaxarZREuPTHrjpDT+pXoAZ1yhyo6uFnIEpS8VMu16siFOHDpZNKYv5BObhsB//ycbICyw==, + integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==, } engines: { node: ">=6.9.0" } @@ -544,10 +509,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helper-validator-option@7.24.6": + "@babel/helper-validator-option@7.25.9": resolution: { - integrity: sha512-Jktc8KkF3zIkePb48QO+IapbXlSapOW9S+ogZZkcO6bABgYAxtZcjZ/O005111YLf+j4M84uEgwYoidDkXbCkQ==, + integrity: sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==, } engines: { node: ">=6.9.0" } @@ -558,10 +523,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/helpers@7.24.6": + "@babel/helpers@7.26.0": resolution: { - integrity: sha512-V2PI+NqnyFu1i0GyTd/O/cTpxzQCYioSkUIRmgo7gFEHKKCg5w46+r/A6WeUR1+P3TeQ49dspGPNd/E3n9AnnA==, + integrity: sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==, } engines: { node: ">=6.9.0" } @@ -579,13 +544,6 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/highlight@7.24.6": - resolution: - { - integrity: sha512-2YnuOp4HAk2BsBrJJvYCbItHx0zWscI1C3zgWkz+wDyD9I7GIVrfnLyrR4Y1VR+7p+chAEcrgRQYZAGIKMV7vQ==, - } - engines: { node: ">=6.9.0" } - "@babel/parser@7.20.5": resolution: { @@ -610,10 +568,10 @@ packages: engines: { node: ">=6.0.0" } hasBin: true - "@babel/parser@7.24.6": + "@babel/parser@7.26.3": resolution: { - integrity: sha512-eNZXdfU35nJC2h24RznROuOpO94h6x8sg9ju0tT9biNtLZ2vuP8SduLqqV+/8+cebSLV9SJEAN5Z3zQbJG/M+Q==, + integrity: sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==, } engines: { node: ">=6.0.0" } hasBin: true @@ -1221,10 +1179,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/template@7.24.6": + "@babel/template@7.25.9": resolution: { - integrity: sha512-3vgazJlLwNXi9jhrR1ef8qiB65L1RK90+lEQwv4OxveHnqC3BfmnHdgySwRLzf6akhlOYenT+b7AfWq+a//AHw==, + integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==, } engines: { node: ">=6.9.0" } @@ -1235,10 +1193,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/traverse@7.24.6": + "@babel/traverse@7.26.3": resolution: { - integrity: sha512-OsNjaJwT9Zn8ozxcfoBc+RaHdj3gFmCmYoQLUII1o6ZrUwku0BMg80FoOTPx+Gi6XhcQxAYE4xyjPTo4SxEQqw==, + integrity: sha512-yTmc8J+Sj8yLzwr4PD5Xb/WF3bOYu2C2OoSZPzbuqRm4n98XirsbzaX+GloeO376UnSYIYJ4NCanwV5/ugZkwA==, } engines: { node: ">=6.9.0" } @@ -1263,10 +1221,10 @@ packages: } engines: { node: ">=6.9.0" } - "@babel/types@7.24.6": + "@babel/types@7.26.3": resolution: { - integrity: sha512-WaMsgi6Q8zMgMth93GvWPXkhAIEobfsIkLTacoVZoK1J0CevIPGYY2Vo5YvJGqyHqXM6P4ppOYGsIRU8MM9pFQ==, + integrity: sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==, } engines: { node: ">=6.9.0" } @@ -1733,10 +1691,10 @@ packages: integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==, } - "@jridgewell/sourcemap-codec@1.4.15": + "@jridgewell/sourcemap-codec@1.5.0": resolution: { - integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==, + integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==, } "@jridgewell/trace-mapping@0.3.17": @@ -1879,16 +1837,16 @@ packages: integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==, } - "@types/eslint@8.56.10": + "@types/eslint@9.6.1": resolution: { - integrity: sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==, + integrity: sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==, } - "@types/estree@1.0.5": + "@types/estree@1.0.6": resolution: { - integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==, + integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==, } "@types/json-schema@7.0.11": @@ -1927,10 +1885,10 @@ packages: integrity: sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==, } - "@types/node@22.7.3": + "@types/node@22.10.1": resolution: { - integrity: sha512-qXKfhXXqGTyBskvWEzJZPUxSslAiLaB6JGP1ic/XTH9ctGgzdgYguuLP1C601aRTSDNlLb0jbKqXjZ48GNraSA==, + integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==, } "@types/ramda@0.28.20": @@ -2157,94 +2115,94 @@ packages: peerDependencies: vue: ^3.0.1 - "@webassemblyjs/ast@1.12.1": + "@webassemblyjs/ast@1.14.1": resolution: { - integrity: sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==, + integrity: sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==, } - "@webassemblyjs/floating-point-hex-parser@1.11.6": + "@webassemblyjs/floating-point-hex-parser@1.13.2": resolution: { - integrity: sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==, + integrity: sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==, } - "@webassemblyjs/helper-api-error@1.11.6": + "@webassemblyjs/helper-api-error@1.13.2": resolution: { - integrity: sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==, + integrity: sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==, } - "@webassemblyjs/helper-buffer@1.12.1": + "@webassemblyjs/helper-buffer@1.14.1": resolution: { - integrity: sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==, + integrity: sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==, } - "@webassemblyjs/helper-numbers@1.11.6": + "@webassemblyjs/helper-numbers@1.13.2": resolution: { - integrity: sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==, + integrity: sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==, } - "@webassemblyjs/helper-wasm-bytecode@1.11.6": + "@webassemblyjs/helper-wasm-bytecode@1.13.2": resolution: { - integrity: sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==, + integrity: sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==, } - "@webassemblyjs/helper-wasm-section@1.12.1": + "@webassemblyjs/helper-wasm-section@1.14.1": resolution: { - integrity: sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==, + integrity: sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==, } - "@webassemblyjs/ieee754@1.11.6": + "@webassemblyjs/ieee754@1.13.2": resolution: { - integrity: sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==, + integrity: sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==, } - "@webassemblyjs/leb128@1.11.6": + "@webassemblyjs/leb128@1.13.2": resolution: { - integrity: sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==, + integrity: sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==, } - "@webassemblyjs/utf8@1.11.6": + "@webassemblyjs/utf8@1.13.2": resolution: { - integrity: sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==, + integrity: sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==, } - "@webassemblyjs/wasm-edit@1.12.1": + "@webassemblyjs/wasm-edit@1.14.1": resolution: { - integrity: sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g==, + integrity: sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==, } - "@webassemblyjs/wasm-gen@1.12.1": + "@webassemblyjs/wasm-gen@1.14.1": resolution: { - integrity: sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w==, + integrity: sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==, } - "@webassemblyjs/wasm-opt@1.12.1": + "@webassemblyjs/wasm-opt@1.14.1": resolution: { - integrity: sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg==, + integrity: sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==, } - "@webassemblyjs/wasm-parser@1.12.1": + "@webassemblyjs/wasm-parser@1.14.1": resolution: { - integrity: sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ==, + integrity: sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==, } - "@webassemblyjs/wast-printer@1.12.1": + "@webassemblyjs/wast-printer@1.14.1": resolution: { - integrity: sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==, + integrity: sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==, } "@xtuc/ieee754@1.2.0": @@ -2296,6 +2254,7 @@ packages: { integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==, } + deprecated: package has been renamed to acorn-import-attributes peerDependencies: acorn: ^8 @@ -2335,10 +2294,10 @@ packages: engines: { node: ">=0.4.0" } hasBin: true - acorn@8.11.3: + acorn@8.14.0: resolution: { - integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==, + integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==, } engines: { node: ">=0.4.0" } hasBin: true @@ -2720,10 +2679,10 @@ packages: engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 } hasBin: true - browserslist@4.23.0: + browserslist@4.24.2: resolution: { - integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==, + integrity: sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==, } engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 } hasBin: true @@ -2801,10 +2760,10 @@ packages: } engines: { node: ">= 6" } - caniuse-lite@1.0.30001625: + caniuse-lite@1.0.30001686: resolution: { - integrity: sha512-4KE9N2gcRH+HQhpeiRZXd+1niLB/XNLAhSy4z7fI8EzcbcPoAqjNInxVHTiTwWfTIV4w096XG8OtCOCQQKPv3w==, + integrity: sha512-Y7deg0Aergpa24M3qLC5xjNklnKnhsmSyR/V89dLZ1n0ucJIFNs7PgR2Yfa/Zf6W79SbBicgtGxZr2juHkEUIA==, } caseless@0.12.0: @@ -3266,6 +3225,18 @@ packages: supports-color: optional: true + debug@4.3.7: + resolution: + { + integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==, + } + engines: { node: ">=6.0" } + peerDependencies: + supports-color: "*" + peerDependenciesMeta: + supports-color: + optional: true + decimal.js@10.4.3: resolution: { @@ -3449,10 +3420,10 @@ packages: integrity: sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==, } - electron-to-chromium@1.4.786: + electron-to-chromium@1.5.70: resolution: { - integrity: sha512-i/A2UB0sxYViMN0M2zIotQFRIOt1jLuVXudACHBDiJ5gGuAUzf/crZxwlBTdA0O52Hy4CNtTzS7AKRAacs/08Q==, + integrity: sha512-P6FPqAWIZrC3sHDAwBitJBs7N7IF58m39XVny7DFseQXK2eiMn7nNQizFf63mWDDUnFvaqsM8FI0+ZZfLkdUGA==, } emoji-regex@8.0.0: @@ -3499,10 +3470,10 @@ packages: } engines: { node: ">=8.0.0" } - enhanced-resolve@5.16.1: + enhanced-resolve@5.17.1: resolution: { - integrity: sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==, + integrity: sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==, } engines: { node: ">=10.13.0" } @@ -3541,10 +3512,10 @@ packages: } engines: { node: ">= 0.4" } - es-module-lexer@1.5.3: + es-module-lexer@1.5.4: resolution: { - integrity: sha512-i1gCgmR9dCl6Vil6UKPI/trA69s08g/syhiDK9TG0Nf1RJjjFI+AzoWW7sPufzkgYAn861skuCwJa0pIIHYxvg==, + integrity: sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==, } esbuild-android-64@0.15.18: @@ -3742,10 +3713,10 @@ packages: } engines: { node: ">=6" } - escalade@3.1.2: + escalade@3.2.0: resolution: { - integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==, + integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==, } engines: { node: ">=6" } @@ -4856,6 +4827,14 @@ packages: engines: { node: ">=4" } hasBin: true + jsesc@3.0.2: + resolution: + { + integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==, + } + engines: { node: ">=6" } + hasBin: true + json-parse-even-better-errors@2.3.1: resolution: { @@ -5381,10 +5360,10 @@ packages: integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==, } - node-releases@2.0.14: + node-releases@2.0.18: resolution: { - integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==, + integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==, } node-releases@2.0.7: @@ -5707,6 +5686,12 @@ packages: integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==, } + picocolors@1.1.1: + resolution: + { + integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==, + } + picomatch@2.3.1: resolution: { @@ -6633,10 +6618,10 @@ packages: engines: { node: ">=6.0.0" } hasBin: true - terser@5.31.0: + terser@5.36.0: resolution: { - integrity: sha512-Q1JFAoUKE5IMfI4Z/lkE/E6+SwgzO+x4tq4v1AyBLRj8VSYvRO6A/rQrPg1yud4g0En9EKI1TvFRF2tQFcoUkg==, + integrity: sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==, } engines: { node: ">=10" } hasBin: true @@ -6876,10 +6861,10 @@ packages: integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==, } - undici-types@6.19.8: + undici-types@6.20.0: resolution: { - integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==, + integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==, } unicode-canonical-property-names-ecmascript@2.0.0: @@ -6965,10 +6950,10 @@ packages: peerDependencies: browserslist: ">= 4.21.0" - update-browserslist-db@1.0.16: + update-browserslist-db@1.1.1: resolution: { - integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==, + integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==, } hasBin: true peerDependencies: @@ -7143,10 +7128,10 @@ packages: } engines: { node: ">=14" } - watchpack@2.4.1: + watchpack@2.4.2: resolution: { - integrity: sha512-8wrBCMtVhqcXP2Sup1ctSkga6uc2Bx0IIvKyT7yTFier5AXHooSI+QyQQAtTb7+E0IUCCKyTFmXqdqgum2XWGg==, + integrity: sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==, } engines: { node: ">=10.13.0" } @@ -7423,29 +7408,30 @@ snapshots: "@babel/highlight": 7.22.20 chalk: 2.4.2 - "@babel/code-frame@7.24.6": + "@babel/code-frame@7.26.2": dependencies: - "@babel/highlight": 7.24.6 - picocolors: 1.1.0 + "@babel/helper-validator-identifier": 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 "@babel/compat-data@7.20.5": {} - "@babel/compat-data@7.24.6": {} + "@babel/compat-data@7.26.3": {} "@babel/core@7.24.6": dependencies: "@ampproject/remapping": 2.3.0 - "@babel/code-frame": 7.24.6 - "@babel/generator": 7.24.6 - "@babel/helper-compilation-targets": 7.24.6 - "@babel/helper-module-transforms": 7.24.6(@babel/core@7.24.6) - "@babel/helpers": 7.24.6 - "@babel/parser": 7.24.6 - "@babel/template": 7.24.6 - "@babel/traverse": 7.24.6 - "@babel/types": 7.24.6 + "@babel/code-frame": 7.26.2 + "@babel/generator": 7.26.3 + "@babel/helper-compilation-targets": 7.25.9 + "@babel/helper-module-transforms": 7.26.0(@babel/core@7.24.6) + "@babel/helpers": 7.26.0 + "@babel/parser": 7.26.3 + "@babel/template": 7.25.9 + "@babel/traverse": 7.26.3 + "@babel/types": 7.26.3 convert-source-map: 2.0.0 - debug: 4.3.4(supports-color@8.1.1) + debug: 4.3.7 gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -7467,12 +7453,13 @@ snapshots: "@jridgewell/trace-mapping": 0.3.17 jsesc: 2.5.2 - "@babel/generator@7.24.6": + "@babel/generator@7.26.3": dependencies: - "@babel/types": 7.24.6 + "@babel/parser": 7.26.3 + "@babel/types": 7.26.3 "@jridgewell/gen-mapping": 0.3.5 "@jridgewell/trace-mapping": 0.3.25 - jsesc: 2.5.2 + jsesc: 3.0.2 "@babel/helper-annotate-as-pure@7.18.6": dependencies: @@ -7491,11 +7478,11 @@ snapshots: browserslist: 4.21.4 semver: 6.3.1 - "@babel/helper-compilation-targets@7.24.6": + "@babel/helper-compilation-targets@7.25.9": dependencies: - "@babel/compat-data": 7.24.6 - "@babel/helper-validator-option": 7.24.6 - browserslist: 4.23.0 + "@babel/compat-data": 7.26.3 + "@babel/helper-validator-option": 7.25.9 + browserslist: 4.24.2 lru-cache: 5.1.1 semver: 6.3.1 @@ -7534,8 +7521,6 @@ snapshots: "@babel/helper-environment-visitor@7.22.20": {} - "@babel/helper-environment-visitor@7.24.6": {} - "@babel/helper-explode-assignable-expression@7.18.6": dependencies: "@babel/types": 7.22.4 @@ -7550,11 +7535,6 @@ snapshots: "@babel/template": 7.22.15 "@babel/types": 7.23.0 - "@babel/helper-function-name@7.24.6": - dependencies: - "@babel/template": 7.24.6 - "@babel/types": 7.24.6 - "@babel/helper-hoist-variables@7.18.6": dependencies: "@babel/types": 7.22.4 @@ -7563,10 +7543,6 @@ snapshots: dependencies: "@babel/types": 7.23.0 - "@babel/helper-hoist-variables@7.24.6": - dependencies: - "@babel/types": 7.24.6 - "@babel/helper-member-expression-to-functions@7.18.9": dependencies: "@babel/types": 7.22.4 @@ -7575,9 +7551,12 @@ snapshots: dependencies: "@babel/types": 7.22.4 - "@babel/helper-module-imports@7.24.6": + "@babel/helper-module-imports@7.25.9": dependencies: - "@babel/types": 7.24.6 + "@babel/traverse": 7.26.3 + "@babel/types": 7.26.3 + transitivePeerDependencies: + - supports-color "@babel/helper-module-transforms@7.20.2": dependencies: @@ -7592,14 +7571,14 @@ snapshots: transitivePeerDependencies: - supports-color - "@babel/helper-module-transforms@7.24.6(@babel/core@7.24.6)": + "@babel/helper-module-transforms@7.26.0(@babel/core@7.24.6)": dependencies: "@babel/core": 7.24.6 - "@babel/helper-environment-visitor": 7.24.6 - "@babel/helper-module-imports": 7.24.6 - "@babel/helper-simple-access": 7.24.6 - "@babel/helper-split-export-declaration": 7.24.6 - "@babel/helper-validator-identifier": 7.24.6 + "@babel/helper-module-imports": 7.25.9 + "@babel/helper-validator-identifier": 7.25.9 + "@babel/traverse": 7.26.3 + transitivePeerDependencies: + - supports-color "@babel/helper-optimise-call-expression@7.18.6": dependencies: @@ -7631,10 +7610,6 @@ snapshots: dependencies: "@babel/types": 7.22.4 - "@babel/helper-simple-access@7.24.6": - dependencies: - "@babel/types": 7.24.6 - "@babel/helper-skip-transparent-expression-wrappers@7.20.0": dependencies: "@babel/types": 7.22.4 @@ -7647,25 +7622,21 @@ snapshots: dependencies: "@babel/types": 7.23.0 - "@babel/helper-split-export-declaration@7.24.6": - dependencies: - "@babel/types": 7.24.6 - "@babel/helper-string-parser@7.21.5": {} "@babel/helper-string-parser@7.22.5": {} - "@babel/helper-string-parser@7.24.6": {} + "@babel/helper-string-parser@7.25.9": {} "@babel/helper-validator-identifier@7.19.1": {} "@babel/helper-validator-identifier@7.22.20": {} - "@babel/helper-validator-identifier@7.24.6": {} + "@babel/helper-validator-identifier@7.25.9": {} "@babel/helper-validator-option@7.18.6": {} - "@babel/helper-validator-option@7.24.6": {} + "@babel/helper-validator-option@7.25.9": {} "@babel/helper-wrap-function@7.20.5": dependencies: @@ -7676,10 +7647,10 @@ snapshots: transitivePeerDependencies: - supports-color - "@babel/helpers@7.24.6": + "@babel/helpers@7.26.0": dependencies: - "@babel/template": 7.24.6 - "@babel/types": 7.24.6 + "@babel/template": 7.25.9 + "@babel/types": 7.26.3 "@babel/highlight@7.18.6": dependencies: @@ -7693,13 +7664,6 @@ snapshots: chalk: 2.4.2 js-tokens: 4.0.0 - "@babel/highlight@7.24.6": - dependencies: - "@babel/helper-validator-identifier": 7.24.6 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.1.0 - "@babel/parser@7.20.5": dependencies: "@babel/types": 7.22.4 @@ -7712,9 +7676,9 @@ snapshots: dependencies: "@babel/types": 7.23.0 - "@babel/parser@7.24.6": + "@babel/parser@7.26.3": dependencies: - "@babel/types": 7.24.6 + "@babel/types": 7.26.3 "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.18.6(@babel/core@7.24.6)": dependencies: @@ -8218,11 +8182,11 @@ snapshots: "@babel/parser": 7.23.0 "@babel/types": 7.23.0 - "@babel/template@7.24.6": + "@babel/template@7.25.9": dependencies: - "@babel/code-frame": 7.24.6 - "@babel/parser": 7.24.6 - "@babel/types": 7.24.6 + "@babel/code-frame": 7.26.2 + "@babel/parser": 7.26.3 + "@babel/types": 7.26.3 "@babel/traverse@7.23.2": dependencies: @@ -8239,17 +8203,14 @@ snapshots: transitivePeerDependencies: - supports-color - "@babel/traverse@7.24.6": + "@babel/traverse@7.26.3": dependencies: - "@babel/code-frame": 7.24.6 - "@babel/generator": 7.24.6 - "@babel/helper-environment-visitor": 7.24.6 - "@babel/helper-function-name": 7.24.6 - "@babel/helper-hoist-variables": 7.24.6 - "@babel/helper-split-export-declaration": 7.24.6 - "@babel/parser": 7.24.6 - "@babel/types": 7.24.6 - debug: 4.3.4(supports-color@8.1.1) + "@babel/code-frame": 7.26.2 + "@babel/generator": 7.26.3 + "@babel/parser": 7.26.3 + "@babel/template": 7.25.9 + "@babel/types": 7.26.3 + debug: 4.3.7 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -8272,11 +8233,10 @@ snapshots: "@babel/helper-validator-identifier": 7.22.20 to-fast-properties: 2.0.0 - "@babel/types@7.24.6": + "@babel/types@7.26.3": dependencies: - "@babel/helper-string-parser": 7.24.6 - "@babel/helper-validator-identifier": 7.24.6 - to-fast-properties: 2.0.0 + "@babel/helper-string-parser": 7.25.9 + "@babel/helper-validator-identifier": 7.25.9 "@colors/colors@1.5.0": optional: true @@ -8674,7 +8634,7 @@ snapshots: "@jridgewell/gen-mapping@0.3.5": dependencies: "@jridgewell/set-array": 1.2.1 - "@jridgewell/sourcemap-codec": 1.4.15 + "@jridgewell/sourcemap-codec": 1.5.0 "@jridgewell/trace-mapping": 0.3.25 "@jridgewell/resolve-uri@3.1.0": {} @@ -8692,7 +8652,7 @@ snapshots: "@jridgewell/sourcemap-codec@1.4.14": {} - "@jridgewell/sourcemap-codec@1.4.15": {} + "@jridgewell/sourcemap-codec@1.5.0": {} "@jridgewell/trace-mapping@0.3.17": dependencies: @@ -8702,7 +8662,7 @@ snapshots: "@jridgewell/trace-mapping@0.3.25": dependencies: "@jridgewell/resolve-uri": 3.1.2 - "@jridgewell/sourcemap-codec": 1.4.15 + "@jridgewell/sourcemap-codec": 1.5.0 "@jridgewell/trace-mapping@0.3.9": dependencies: @@ -8770,15 +8730,15 @@ snapshots: "@types/eslint-scope@3.7.7": dependencies: - "@types/eslint": 8.56.10 - "@types/estree": 1.0.5 + "@types/eslint": 9.6.1 + "@types/estree": 1.0.6 - "@types/eslint@8.56.10": + "@types/eslint@9.6.1": dependencies: - "@types/estree": 1.0.5 + "@types/estree": 1.0.6 "@types/json-schema": 7.0.15 - "@types/estree@1.0.5": {} + "@types/estree@1.0.6": {} "@types/json-schema@7.0.11": {} @@ -8794,9 +8754,9 @@ snapshots: dependencies: undici-types: 5.26.5 - "@types/node@22.7.3": + "@types/node@22.10.1": dependencies: - undici-types: 6.19.8 + undici-types: 6.20.0 "@types/ramda@0.28.20": dependencies: @@ -8898,9 +8858,9 @@ snapshots: "@typescript-eslint/types": 6.7.4 eslint-visitor-keys: 3.4.3 - "@vitejs/plugin-vue@4.0.0(vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0))(vue@3.2.45)": + "@vitejs/plugin-vue@4.0.0(vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0))(vue@3.2.45)": dependencies: - vite: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0) + vite: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0) vue: 3.2.45 "@vue/compat@3.2.45(vue@3.2.45)": @@ -8991,80 +8951,80 @@ snapshots: dependencies: vue: 3.2.45 - "@webassemblyjs/ast@1.12.1": + "@webassemblyjs/ast@1.14.1": dependencies: - "@webassemblyjs/helper-numbers": 1.11.6 - "@webassemblyjs/helper-wasm-bytecode": 1.11.6 + "@webassemblyjs/helper-numbers": 1.13.2 + "@webassemblyjs/helper-wasm-bytecode": 1.13.2 - "@webassemblyjs/floating-point-hex-parser@1.11.6": {} + "@webassemblyjs/floating-point-hex-parser@1.13.2": {} - "@webassemblyjs/helper-api-error@1.11.6": {} + "@webassemblyjs/helper-api-error@1.13.2": {} - "@webassemblyjs/helper-buffer@1.12.1": {} + "@webassemblyjs/helper-buffer@1.14.1": {} - "@webassemblyjs/helper-numbers@1.11.6": + "@webassemblyjs/helper-numbers@1.13.2": dependencies: - "@webassemblyjs/floating-point-hex-parser": 1.11.6 - "@webassemblyjs/helper-api-error": 1.11.6 + "@webassemblyjs/floating-point-hex-parser": 1.13.2 + "@webassemblyjs/helper-api-error": 1.13.2 "@xtuc/long": 4.2.2 - "@webassemblyjs/helper-wasm-bytecode@1.11.6": {} + "@webassemblyjs/helper-wasm-bytecode@1.13.2": {} - "@webassemblyjs/helper-wasm-section@1.12.1": + "@webassemblyjs/helper-wasm-section@1.14.1": dependencies: - "@webassemblyjs/ast": 1.12.1 - "@webassemblyjs/helper-buffer": 1.12.1 - "@webassemblyjs/helper-wasm-bytecode": 1.11.6 - "@webassemblyjs/wasm-gen": 1.12.1 + "@webassemblyjs/ast": 1.14.1 + "@webassemblyjs/helper-buffer": 1.14.1 + "@webassemblyjs/helper-wasm-bytecode": 1.13.2 + "@webassemblyjs/wasm-gen": 1.14.1 - "@webassemblyjs/ieee754@1.11.6": + "@webassemblyjs/ieee754@1.13.2": dependencies: "@xtuc/ieee754": 1.2.0 - "@webassemblyjs/leb128@1.11.6": + "@webassemblyjs/leb128@1.13.2": dependencies: "@xtuc/long": 4.2.2 - "@webassemblyjs/utf8@1.11.6": {} + "@webassemblyjs/utf8@1.13.2": {} - "@webassemblyjs/wasm-edit@1.12.1": + "@webassemblyjs/wasm-edit@1.14.1": dependencies: - "@webassemblyjs/ast": 1.12.1 - "@webassemblyjs/helper-buffer": 1.12.1 - "@webassemblyjs/helper-wasm-bytecode": 1.11.6 - "@webassemblyjs/helper-wasm-section": 1.12.1 - "@webassemblyjs/wasm-gen": 1.12.1 - "@webassemblyjs/wasm-opt": 1.12.1 - "@webassemblyjs/wasm-parser": 1.12.1 - "@webassemblyjs/wast-printer": 1.12.1 + "@webassemblyjs/ast": 1.14.1 + "@webassemblyjs/helper-buffer": 1.14.1 + "@webassemblyjs/helper-wasm-bytecode": 1.13.2 + "@webassemblyjs/helper-wasm-section": 1.14.1 + "@webassemblyjs/wasm-gen": 1.14.1 + "@webassemblyjs/wasm-opt": 1.14.1 + "@webassemblyjs/wasm-parser": 1.14.1 + "@webassemblyjs/wast-printer": 1.14.1 - "@webassemblyjs/wasm-gen@1.12.1": + "@webassemblyjs/wasm-gen@1.14.1": dependencies: - "@webassemblyjs/ast": 1.12.1 - "@webassemblyjs/helper-wasm-bytecode": 1.11.6 - "@webassemblyjs/ieee754": 1.11.6 - "@webassemblyjs/leb128": 1.11.6 - "@webassemblyjs/utf8": 1.11.6 + "@webassemblyjs/ast": 1.14.1 + "@webassemblyjs/helper-wasm-bytecode": 1.13.2 + "@webassemblyjs/ieee754": 1.13.2 + "@webassemblyjs/leb128": 1.13.2 + "@webassemblyjs/utf8": 1.13.2 - "@webassemblyjs/wasm-opt@1.12.1": + "@webassemblyjs/wasm-opt@1.14.1": dependencies: - "@webassemblyjs/ast": 1.12.1 - "@webassemblyjs/helper-buffer": 1.12.1 - "@webassemblyjs/wasm-gen": 1.12.1 - "@webassemblyjs/wasm-parser": 1.12.1 + "@webassemblyjs/ast": 1.14.1 + "@webassemblyjs/helper-buffer": 1.14.1 + "@webassemblyjs/wasm-gen": 1.14.1 + "@webassemblyjs/wasm-parser": 1.14.1 - "@webassemblyjs/wasm-parser@1.12.1": + "@webassemblyjs/wasm-parser@1.14.1": dependencies: - "@webassemblyjs/ast": 1.12.1 - "@webassemblyjs/helper-api-error": 1.11.6 - "@webassemblyjs/helper-wasm-bytecode": 1.11.6 - "@webassemblyjs/ieee754": 1.11.6 - "@webassemblyjs/leb128": 1.11.6 - "@webassemblyjs/utf8": 1.11.6 + "@webassemblyjs/ast": 1.14.1 + "@webassemblyjs/helper-api-error": 1.13.2 + "@webassemblyjs/helper-wasm-bytecode": 1.13.2 + "@webassemblyjs/ieee754": 1.13.2 + "@webassemblyjs/leb128": 1.13.2 + "@webassemblyjs/utf8": 1.13.2 - "@webassemblyjs/wast-printer@1.12.1": + "@webassemblyjs/wast-printer@1.14.1": dependencies: - "@webassemblyjs/ast": 1.12.1 + "@webassemblyjs/ast": 1.14.1 "@xtuc/long": 4.2.2 "@xtuc/ieee754@1.2.0": {} @@ -9089,9 +9049,9 @@ snapshots: acorn: 8.8.2 acorn-walk: 8.2.0 - acorn-import-assertions@1.9.0(acorn@8.11.3): + acorn-import-assertions@1.9.0(acorn@8.14.0): dependencies: - acorn: 8.11.3 + acorn: 8.14.0 acorn-jsx@5.3.2(acorn@8.8.1): dependencies: @@ -9109,7 +9069,7 @@ snapshots: acorn@7.4.1: {} - acorn@8.11.3: {} + acorn@8.14.0: {} acorn@8.8.1: {} @@ -9205,7 +9165,7 @@ snapshots: autoprefixer@10.4.13(postcss@8.4.31): dependencies: browserslist: 4.21.4 - caniuse-lite: 1.0.30001625 + caniuse-lite: 1.0.30001686 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -9285,17 +9245,17 @@ snapshots: browserslist@4.21.4: dependencies: - caniuse-lite: 1.0.30001625 + caniuse-lite: 1.0.30001686 electron-to-chromium: 1.4.284 node-releases: 2.0.7 update-browserslist-db: 1.0.10(browserslist@4.21.4) - browserslist@4.23.0: + browserslist@4.24.2: dependencies: - caniuse-lite: 1.0.30001625 - electron-to-chromium: 1.4.786 - node-releases: 2.0.14 - update-browserslist-db: 1.0.16(browserslist@4.23.0) + caniuse-lite: 1.0.30001686 + electron-to-chromium: 1.5.70 + node-releases: 2.0.18 + update-browserslist-db: 1.1.1(browserslist@4.24.2) buffer-crc32@0.2.13: {} @@ -9354,7 +9314,7 @@ snapshots: camelcase-css@2.0.1: {} - caniuse-lite@1.0.30001625: {} + caniuse-lite@1.0.30001686: {} caseless@0.12.0: {} @@ -9656,6 +9616,10 @@ snapshots: optionalDependencies: supports-color: 8.1.1 + debug@4.3.7: + dependencies: + ms: 2.1.3 + decimal.js@10.4.3: {} deep-eql@4.1.3: @@ -9754,7 +9718,7 @@ snapshots: electron-to-chromium@1.4.284: {} - electron-to-chromium@1.4.786: {} + electron-to-chromium@1.5.70: {} emoji-regex@8.0.0: {} @@ -9805,7 +9769,7 @@ snapshots: - supports-color - utf-8-validate - enhanced-resolve@5.16.1: + enhanced-resolve@5.17.1: dependencies: graceful-fs: 4.2.11 tapable: 2.2.1 @@ -9827,7 +9791,7 @@ snapshots: es-errors@1.3.0: {} - es-module-lexer@1.5.3: {} + es-module-lexer@1.5.4: {} esbuild-android-64@0.15.18: optional: true @@ -9916,7 +9880,7 @@ snapshots: escalade@3.1.1: {} - escalade@3.1.2: {} + escalade@3.2.0: {} escape-string-regexp@1.0.5: {} @@ -9939,14 +9903,14 @@ snapshots: dependencies: htmlparser2: 8.0.2 - eslint-plugin-prettier@5.0.0(@types/eslint@8.56.10)(eslint-config-prettier@9.0.0(eslint@8.30.0))(eslint@8.30.0)(prettier@3.0.3): + eslint-plugin-prettier@5.0.0(@types/eslint@9.6.1)(eslint-config-prettier@9.0.0(eslint@8.30.0))(eslint@8.30.0)(prettier@3.0.3): dependencies: eslint: 8.30.0 prettier: 3.0.3 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 optionalDependencies: - "@types/eslint": 8.56.10 + "@types/eslint": 9.6.1 eslint-config-prettier: 9.0.0(eslint@8.30.0) eslint-plugin-vue@9.17.0(eslint@8.30.0): @@ -10510,7 +10474,7 @@ snapshots: jest-worker@27.5.1: dependencies: - "@types/node": 22.7.3 + "@types/node": 22.10.1 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -10574,6 +10538,8 @@ snapshots: jsesc@2.5.2: {} + jsesc@3.0.2: {} + json-parse-even-better-errors@2.3.1: {} json-schema-traverse@0.4.1: {} @@ -10871,7 +10837,7 @@ snapshots: neo-async@2.6.2: {} - node-releases@2.0.14: {} + node-releases@2.0.18: {} node-releases@2.0.7: {} @@ -11021,6 +10987,8 @@ snapshots: picocolors@1.1.0: {} + picocolors@1.1.1: {} + picomatch@2.3.1: {} pidtree@0.6.0: {} @@ -11584,7 +11552,7 @@ snapshots: jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 - terser: 5.31.0 + terser: 5.36.0 webpack: 5.91.0 terser@4.8.1: @@ -11594,10 +11562,10 @@ snapshots: source-map: 0.6.1 source-map-support: 0.5.21 - terser@5.31.0: + terser@5.36.0: dependencies: "@jridgewell/source-map": 0.3.6 - acorn: 8.11.3 + acorn: 8.14.0 commander: 2.20.3 source-map-support: 0.5.21 @@ -11708,7 +11676,7 @@ snapshots: undici-types@5.26.5: {} - undici-types@6.19.8: {} + undici-types@6.20.0: {} unicode-canonical-property-names-ecmascript@2.0.0: {} @@ -11747,11 +11715,11 @@ snapshots: escalade: 3.1.1 picocolors: 1.0.0 - update-browserslist-db@1.0.16(browserslist@4.23.0): + update-browserslist-db@1.1.1(browserslist@4.24.2): dependencies: - browserslist: 4.23.0 - escalade: 3.1.2 - picocolors: 1.1.0 + browserslist: 4.24.2 + escalade: 3.2.0 + picocolors: 1.1.1 uri-js@4.4.1: dependencies: @@ -11780,14 +11748,14 @@ snapshots: core-util-is: 1.0.2 extsprintf: 1.3.0 - vite-node@0.26.1(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0): + vite-node@0.26.1(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0): dependencies: debug: 4.3.4(supports-color@8.1.1) mlly: 1.0.0 pathe: 0.2.0 source-map: 0.6.1 source-map-support: 0.5.21 - vite: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0) + vite: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0) transitivePeerDependencies: - "@types/node" - less @@ -11797,16 +11765,16 @@ snapshots: - supports-color - terser - vite-plugin-css-injected-by-js@2.2.0(vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0)): + vite-plugin-css-injected-by-js@2.2.0(vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0)): dependencies: - vite: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0) + vite: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0) vite-svg-loader@4.0.0: dependencies: "@vue/compiler-sfc": 3.2.45 svgo: 3.0.2 - vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0): + vite@3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0): dependencies: esbuild: 0.15.18 postcss: 8.4.47 @@ -11817,9 +11785,9 @@ snapshots: fsevents: 2.3.3 less: 4.1.3 sass: 1.57.0 - terser: 5.31.0 + terser: 5.36.0 - vitest@0.26.1(jsdom@20.0.3)(less@4.1.3)(sass@1.57.0)(terser@5.31.0): + vitest@0.26.1(jsdom@20.0.3)(less@4.1.3)(sass@1.57.0)(terser@5.36.0): dependencies: "@types/chai": 4.3.4 "@types/chai-subset": 1.3.3 @@ -11834,8 +11802,8 @@ snapshots: tinybench: 2.3.1 tinypool: 0.3.0 tinyspy: 1.0.2 - vite: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0) - vite-node: 0.26.1(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.31.0) + vite: 3.2.11(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0) + vite-node: 0.26.1(@types/node@20.14.9)(less@4.1.3)(sass@1.57.0)(terser@5.36.0) optionalDependencies: jsdom: 20.0.3 transitivePeerDependencies: @@ -11880,7 +11848,7 @@ snapshots: dependencies: xml-name-validator: 4.0.0 - watchpack@2.4.1: + watchpack@2.4.2: dependencies: glob-to-regexp: 0.4.1 graceful-fs: 4.2.11 @@ -11897,16 +11865,16 @@ snapshots: webpack@5.91.0: dependencies: "@types/eslint-scope": 3.7.7 - "@types/estree": 1.0.5 - "@webassemblyjs/ast": 1.12.1 - "@webassemblyjs/wasm-edit": 1.12.1 - "@webassemblyjs/wasm-parser": 1.12.1 - acorn: 8.11.3 - acorn-import-assertions: 1.9.0(acorn@8.11.3) - browserslist: 4.23.0 + "@types/estree": 1.0.6 + "@webassemblyjs/ast": 1.14.1 + "@webassemblyjs/wasm-edit": 1.14.1 + "@webassemblyjs/wasm-parser": 1.14.1 + acorn: 8.14.0 + acorn-import-assertions: 1.9.0(acorn@8.14.0) + browserslist: 4.24.2 chrome-trace-event: 1.0.4 - enhanced-resolve: 5.16.1 - es-module-lexer: 1.5.3 + enhanced-resolve: 5.17.1 + es-module-lexer: 1.5.4 eslint-scope: 5.1.1 events: 3.3.0 glob-to-regexp: 0.4.1 @@ -11918,7 +11886,7 @@ snapshots: schema-utils: 3.3.0 tapable: 2.2.1 terser-webpack-plugin: 5.3.10(webpack@5.91.0) - watchpack: 2.4.1 + watchpack: 2.4.2 webpack-sources: 3.2.3 transitivePeerDependencies: - "@swc/core" diff --git a/src/components/SwimLaneDiagram/SwimLaneLayer.vue b/src/components/SwimLaneDiagram/SwimLaneLayer.vue index c28f1979e..89d27c405 100644 --- a/src/components/SwimLaneDiagram/SwimLaneLayer.vue +++ b/src/components/SwimLaneDiagram/SwimLaneLayer.vue @@ -51,10 +51,8 @@ import { import { ref, watchEffect, computed, onMounted, onBeforeUnmount } from "vue"; import ConnectionLayer from "./ConnectionLayer.vue"; import { debounce } from "lodash"; -import { watch } from "vue"; import MessageNode from "./MessageNode.vue"; import ConditionalNode from "./ConditionalNode.vue"; -import { onUpdated } from "vue"; interface Props { diagramModel: SwimLaneDiagramModel; @@ -85,7 +83,7 @@ const gridItems = computed(() => { props.diagramModel.nodes.forEach((node) => { const swimLaneIndex = props.diagramModel.swimLanes.indexOf(node.swimLane); - items[node.rank][swimLaneIndex].push(node); + items[node.rank][swimLaneIndex]?.push(node); }); return items; diff --git a/src/parser/SwimLane/AltStatement.ts b/src/parser/SwimLane/AltStatement.ts index 15ace2031..5e7b6cc26 100644 --- a/src/parser/SwimLane/AltStatement.ts +++ b/src/parser/SwimLane/AltStatement.ts @@ -64,7 +64,8 @@ export class AltStatement extends BlockStatement { const branchInboundNode = i === 0 ? inboundNode : branches[i - 1].getFirstNode(); if (!branchInboundNode) { - throw new Error("No inbound node"); + // throw new Error("No inbound node"); + continue; } const rank = branchInboundNode.rank + i + 1; const tile = branch.createBlock(branchInboundNode, rank); diff --git a/src/parser/SwimLane/Edge.ts b/src/parser/SwimLane/Edge.ts index 1ab190f74..6c29a3cd0 100644 --- a/src/parser/SwimLane/Edge.ts +++ b/src/parser/SwimLane/Edge.ts @@ -8,7 +8,7 @@ export class Edge implements JSONable { type: EdgeType; constructor(source: BaseNode, target: BaseNode, type?: EdgeType) { - this.id = `${source.id}-${target.id}`; + this.id = `${source?.id}-${target?.id}`; this.source = source; this.target = target; this.type = type ?? "normal"; @@ -17,8 +17,8 @@ export class Edge implements JSONable { toJSON() { return { id: this.id, - source: this.source.id, - target: this.target.id, + source: this.source?.id, + target: this.target?.id, type: this.type, }; } diff --git a/src/parser/SwimLane/MessageStatement.ts b/src/parser/SwimLane/MessageStatement.ts index 657308c74..f5b28af1f 100644 --- a/src/parser/SwimLane/MessageStatement.ts +++ b/src/parser/SwimLane/MessageStatement.ts @@ -20,7 +20,7 @@ export class MessageStatement extends BaseStatement { const toName = messageBodyCtx.to().getText(); const message = messageBodyCtx.func().signature()[0].getFormattedText(); const swimLane = this.swimLanes.getLane(toName); - const fromName = inboundNode?.swimLane.name; + const fromName = inboundNode?.swimLane?.name; const fromSwimLaneMaxRank = fromName ? this.swimLanes.getLane(fromName).maxRank : 0; diff --git a/src/parser/SwimLane/Nodes.ts b/src/parser/SwimLane/Nodes.ts index 774e892c6..c7e1ea594 100644 --- a/src/parser/SwimLane/Nodes.ts +++ b/src/parser/SwimLane/Nodes.ts @@ -11,7 +11,7 @@ export class BaseNode implements Shape { type: NodeType | undefined; constructor(name: string, swimLane: SwimLane, rank?: number) { - this.id = `${swimLane.name}-${name}`; + this.id = `${swimLane?.name}-${name}`; this.name = name; this.swimLane = swimLane; this.rank = rank ?? -1; @@ -19,7 +19,7 @@ export class BaseNode implements Shape { // eslint-disable-next-line @typescript-eslint/no-unused-vars addToSwimLane(_rank?: number) { - this.swimLane.addNodes([this]); + this.swimLane?.addNodes([this]); } setRank(rank: number) { @@ -47,7 +47,7 @@ export class BaseNode implements Shape { id: this.id, name: this.name, rank: this.rank, - swimLane: this.swimLane.name, + swimLane: this.swimLane?.name, type: this.type, }; } @@ -63,7 +63,7 @@ export class MessageNode extends BaseNode { addToSwimLane(rank?: number) { if (rank) { - if (this.rank > this.swimLane.maxRank) { + if (this.rank > this.swimLane?.maxRank) { this.rank = rank; } else { this.rank = this.swimLane.maxRank + 1; diff --git a/vite.config.lib.js b/vite.config.lib.js index 2fb88332a..a2cc72452 100644 --- a/vite.config.lib.js +++ b/vite.config.lib.js @@ -20,6 +20,7 @@ export default defineConfig({ { format: "esm", sourcemap: true, + exports: "named", // https://rollupjs.org/guide/en/#outputentryfilenames // It will use the file name in `build.lib.entry` without extension as `[name]` if `[name].xxx.yyy` is provided. // So we hard code as zenuml. We may consider rename `core.ts` to `zenuml.ts`. @@ -31,6 +32,7 @@ export default defineConfig({ name: "zenuml", // it is the global variable name representing your bundle. https://rollupjs.org/guide/en/#outputname format: "umd", sourcemap: true, + exports: "named", entryFileNames: `zenuml.js`, }, ],