diff --git a/package-lock.json b/package-lock.json index 2f5cc21..19b45c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,20 +11,20 @@ "dependencies": { "@cicada-lang/framework": "^0.2.0", "@cicada-lang/partech": "^0.2.5", - "@xieyuheng/command-line": "^0.1.2", + "@xieyuheng/command-line": "^0.1.3", "@xieyuheng/ty": "^0.3.1", "picocolors": "^1.1.1", - "vitest": "^2.1.4" + "vitest": "^2.1.8" }, "bin": { "inet-cute": "bin/inet-cute.js" }, "devDependencies": { - "@types/node": "^22.9.0", + "@types/node": "^22.10.2", "@xieyuheng/test-runner": "^0.2.10", - "prettier": "^3.3.3", + "prettier": "^3.4.2", "prettier-plugin-organize-imports": "^4.1.0", - "typescript": "^5.6.3" + "typescript": "^5.7.2" } }, "node_modules/@cicada-lang/framework": { @@ -477,9 +477,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.4.tgz", - "integrity": "sha512-jfUJrFct/hTA0XDM5p/htWKoNNTbDLY0KRwEt6pyOA6k2fmk0WVwl65PdUdJZgzGEHWx+49LilkcSaumQRyNQw==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.28.1.tgz", + "integrity": "sha512-2aZp8AES04KI2dy3Ss6/MDjXbwBzj+i0GqKtWXgw2/Ma6E4jJvujryO6gJAghIRVz7Vwr9Gtl/8na3nDUKpraQ==", "cpu": [ "arm" ], @@ -490,9 +490,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.24.4.tgz", - "integrity": "sha512-j4nrEO6nHU1nZUuCfRKoCcvh7PIywQPUCBa2UsootTHvTHIoIu2BzueInGJhhvQO/2FTRdNYpf63xsgEqH9IhA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.28.1.tgz", + "integrity": "sha512-EbkK285O+1YMrg57xVA+Dp0tDBRB93/BZKph9XhMjezf6F4TpYjaUSuPt5J0fZXlSag0LmZAsTmdGGqPp4pQFA==", "cpu": [ "arm64" ], @@ -503,9 +503,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.4.tgz", - "integrity": "sha512-GmU/QgGtBTeraKyldC7cDVVvAJEOr3dFLKneez/n7BvX57UdhOqDsVwzU7UOnYA7AAOt+Xb26lk79PldDHgMIQ==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.28.1.tgz", + "integrity": "sha512-prduvrMKU6NzMq6nxzQw445zXgaDBbMQvmKSJaxpaZ5R1QDM8w+eGxo6Y/jhT/cLoCvnZI42oEqf9KQNYz1fqQ==", "cpu": [ "arm64" ], @@ -516,9 +516,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.24.4.tgz", - "integrity": "sha512-N6oDBiZCBKlwYcsEPXGDE4g9RoxZLK6vT98M8111cW7VsVJFpNEqvJeIPfsCzbf0XEakPslh72X0gnlMi4Ddgg==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.28.1.tgz", + "integrity": "sha512-WsvbOunsUk0wccO/TV4o7IKgloJ942hVFK1CLatwv6TJspcCZb9umQkPdvB7FihmdxgaKR5JyxDjWpCOp4uZlQ==", "cpu": [ "x64" ], @@ -529,9 +529,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.24.4.tgz", - "integrity": "sha512-py5oNShCCjCyjWXCZNrRGRpjWsF0ic8f4ieBNra5buQz0O/U6mMXCpC1LvrHuhJsNPgRt36tSYMidGzZiJF6mw==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.28.1.tgz", + "integrity": "sha512-HTDPdY1caUcU4qK23FeeGxCdJF64cKkqajU0iBnTVxS8F7H/7BewvYoG+va1KPSL63kQ1PGNyiwKOfReavzvNA==", "cpu": [ "arm64" ], @@ -542,9 +542,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.24.4.tgz", - "integrity": "sha512-L7VVVW9FCnTTp4i7KrmHeDsDvjB4++KOBENYtNYAiYl96jeBThFfhP6HVxL74v4SiZEVDH/1ILscR5U9S4ms4g==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.28.1.tgz", + "integrity": "sha512-m/uYasxkUevcFTeRSM9TeLyPe2QDuqtjkeoTpP9SW0XxUWfcYrGDMkO/m2tTw+4NMAF9P2fU3Mw4ahNvo7QmsQ==", "cpu": [ "x64" ], @@ -555,9 +555,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.24.4.tgz", - "integrity": "sha512-10ICosOwYChROdQoQo589N5idQIisxjaFE/PAnX2i0Zr84mY0k9zul1ArH0rnJ/fpgiqfu13TFZR5A5YJLOYZA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.28.1.tgz", + "integrity": "sha512-QAg11ZIt6mcmzpNE6JZBpKfJaKkqTm1A9+y9O+frdZJEuhQxiugM05gnCWiANHj4RmbgeVJpTdmKRmH/a+0QbA==", "cpu": [ "arm" ], @@ -568,9 +568,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.24.4.tgz", - "integrity": "sha512-ySAfWs69LYC7QhRDZNKqNhz2UKN8LDfbKSMAEtoEI0jitwfAG2iZwVqGACJT+kfYvvz3/JgsLlcBP+WWoKCLcw==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.28.1.tgz", + "integrity": "sha512-dRP9PEBfolq1dmMcFqbEPSd9VlRuVWEGSmbxVEfiq2cs2jlZAl0YNxFzAQS2OrQmsLBLAATDMb3Z6MFv5vOcXg==", "cpu": [ "arm" ], @@ -581,9 +581,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.4.tgz", - "integrity": "sha512-uHYJ0HNOI6pGEeZ/5mgm5arNVTI0nLlmrbdph+pGXpC9tFHFDQmDMOEqkmUObRfosJqpU8RliYoGz06qSdtcjg==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.28.1.tgz", + "integrity": "sha512-uGr8khxO+CKT4XU8ZUH1TTEUtlktK6Kgtv0+6bIFSeiSlnGJHG1tSFSjm41uQ9sAO/5ULx9mWOz70jYLyv1QkA==", "cpu": [ "arm64" ], @@ -594,9 +594,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.24.4.tgz", - "integrity": "sha512-38yiWLemQf7aLHDgTg85fh3hW9stJ0Muk7+s6tIkSUOMmi4Xbv5pH/5Bofnsb6spIwD5FJiR+jg71f0CH5OzoA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.28.1.tgz", + "integrity": "sha512-QF54q8MYGAqMLrX2t7tNpi01nvq5RI59UBNx+3+37zoKX5KViPo/gk2QLhsuqok05sSCRluj0D00LzCwBikb0A==", "cpu": [ "arm64" ], @@ -606,10 +606,23 @@ "linux" ] }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.28.1.tgz", + "integrity": "sha512-vPul4uodvWvLhRco2w0GcyZcdyBfpfDRgNKU+p35AWEbJ/HPs1tOUrkSueVbBS0RQHAf/A+nNtDpvw95PeVKOA==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.24.4.tgz", - "integrity": "sha512-q73XUPnkwt9ZNF2xRS4fvneSuaHw2BXuV5rI4cw0fWYVIWIBeDZX7c7FWhFQPNTnE24172K30I+dViWRVD9TwA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.28.1.tgz", + "integrity": "sha512-pTnTdBuC2+pt1Rmm2SV7JWRqzhYpEILML4PKODqLz+C7Ou2apEV52h19CR7es+u04KlqplggmN9sqZlekg3R1A==", "cpu": [ "ppc64" ], @@ -620,9 +633,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.24.4.tgz", - "integrity": "sha512-Aie/TbmQi6UXokJqDZdmTJuZBCU3QBDA8oTKRGtd4ABi/nHgXICulfg1KI6n9/koDsiDbvHAiQO3YAUNa/7BCw==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.28.1.tgz", + "integrity": "sha512-vWXy1Nfg7TPBSuAncfInmAI/WZDd5vOklyLJDdIRKABcZWojNDY0NJwruY2AcnCLnRJKSaBgf/GiJfauu8cQZA==", "cpu": [ "riscv64" ], @@ -633,9 +646,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.24.4.tgz", - "integrity": "sha512-P8MPErVO/y8ohWSP9JY7lLQ8+YMHfTI4bAdtCi3pC2hTeqFJco2jYspzOzTUB8hwUWIIu1xwOrJE11nP+0JFAQ==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.28.1.tgz", + "integrity": "sha512-/yqC2Y53oZjb0yz8PVuGOQQNOTwxcizudunl/tFs1aLvObTclTwZ0JhXF2XcPT/zuaymemCDSuuUPXJJyqeDOg==", "cpu": [ "s390x" ], @@ -646,9 +659,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.4.tgz", - "integrity": "sha512-K03TljaaoPK5FOyNMZAAEmhlyO49LaE4qCsr0lYHUKyb6QacTNF9pnfPpXnFlFD3TXuFbFbz7tJ51FujUXkXYA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.28.1.tgz", + "integrity": "sha512-fzgeABz7rrAlKYB0y2kSEiURrI0691CSL0+KXwKwhxvj92VULEDQLpBYLHpF49MSiPG4sq5CK3qHMnb9tlCjBw==", "cpu": [ "x64" ], @@ -659,9 +672,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.24.4.tgz", - "integrity": "sha512-VJYl4xSl/wqG2D5xTYncVWW+26ICV4wubwN9Gs5NrqhJtayikwCXzPL8GDsLnaLU3WwhQ8W02IinYSFJfyo34Q==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.28.1.tgz", + "integrity": "sha512-xQTDVzSGiMlSshpJCtudbWyRfLaNiVPXt1WgdWTwWz9n0U12cI2ZVtWe/Jgwyv/6wjL7b66uu61Vg0POWVfz4g==", "cpu": [ "x64" ], @@ -672,9 +685,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.24.4.tgz", - "integrity": "sha512-ku2GvtPwQfCqoPFIJCqZ8o7bJcj+Y54cZSr43hHca6jLwAiCbZdBUOrqE6y29QFajNAzzpIOwsckaTFmN6/8TA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.28.1.tgz", + "integrity": "sha512-wSXmDRVupJstFP7elGMgv+2HqXelQhuNf+IS4V+nUpNVi/GUiBgDmfwD0UGN3pcAnWsgKG3I52wMOBnk1VHr/A==", "cpu": [ "arm64" ], @@ -685,9 +698,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.24.4.tgz", - "integrity": "sha512-V3nCe+eTt/W6UYNr/wGvO1fLpHUrnlirlypZfKCT1fG6hWfqhPgQV/K/mRBXBpxc0eKLIF18pIOFVPh0mqHjlg==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.28.1.tgz", + "integrity": "sha512-ZkyTJ/9vkgrE/Rk9vhMXhf8l9D+eAhbAVbsGsXKy2ohmJaWg0LPQLnIxRdRp/bKyr8tXuPlXhIoGlEB5XpJnGA==", "cpu": [ "ia32" ], @@ -698,9 +711,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.4.tgz", - "integrity": "sha512-LTw1Dfd0mBIEqUVCxbvTE/LLo+9ZxVC9k99v1v4ahg9Aak6FpqOfNu5kRkeTAn0wphoC4JU7No1/rL+bBCEwhg==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.28.1.tgz", + "integrity": "sha512-ZvK2jBafvttJjoIdKm/Q/Bh7IJ1Ose9IBOwpOXcOvW3ikGTQGmKDgxTC6oCAzW6PynbkKP8+um1du81XJHZ0JA==", "cpu": [ "x64" ], @@ -735,28 +748,28 @@ } }, "node_modules/@types/node": { - "version": "22.9.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz", - "integrity": "sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==", + "version": "22.10.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", + "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", "license": "MIT", "dependencies": { - "undici-types": "~6.19.8" + "undici-types": "~6.20.0" } }, "node_modules/@types/qs": { - "version": "6.9.16", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.16.tgz", - "integrity": "sha512-7i+zxXdPD0T4cKDuxCUXJ4wHcsJLwENa6Z3dCu8cfCK743OGy5Nu1RmAGqDPsoTDINVEcdXKRvR/zre+P2Ku1A==", + "version": "6.9.17", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.17.tgz", + "integrity": "sha512-rX4/bPcfmvxHDv0XjfJELTTr+iB+tn032nPILqHm5wbthUUUuVtNGGqzhya9XUxjTP8Fpr0qYgSZZKxGY++svQ==", "license": "MIT" }, "node_modules/@vitest/expect": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.4.tgz", - "integrity": "sha512-DOETT0Oh1avie/D/o2sgMHGrzYUFFo3zqESB2Hn70z6QB1HrS2IQ9z5DfyTqU8sg4Bpu13zZe9V4+UTNQlUeQA==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.8.tgz", + "integrity": "sha512-8ytZ/fFHq2g4PJVAtDX57mayemKgDR6X3Oa2Foro+EygiOJHUXhCqBAAKQYYajZpFoIfvBCF1j6R6IYRSIUFuw==", "license": "MIT", "dependencies": { - "@vitest/spy": "2.1.4", - "@vitest/utils": "2.1.4", + "@vitest/spy": "2.1.8", + "@vitest/utils": "2.1.8", "chai": "^5.1.2", "tinyrainbow": "^1.2.0" }, @@ -765,12 +778,12 @@ } }, "node_modules/@vitest/mocker": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.4.tgz", - "integrity": "sha512-Ky/O1Lc0QBbutJdW0rqLeFNbuLEyS+mIPiNdlVlp2/yhJ0SbyYqObS5IHdhferJud8MbbwMnexg4jordE5cCoQ==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.8.tgz", + "integrity": "sha512-7guJ/47I6uqfttp33mgo6ga5Gr1VnL58rcqYKyShoRK9ebu8T5Rs6HN3s1NABiBeVTdWNrwUMcHH54uXZBN4zA==", "license": "MIT", "dependencies": { - "@vitest/spy": "2.1.4", + "@vitest/spy": "2.1.8", "estree-walker": "^3.0.3", "magic-string": "^0.30.12" }, @@ -791,9 +804,9 @@ } }, "node_modules/@vitest/pretty-format": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.4.tgz", - "integrity": "sha512-L95zIAkEuTDbUX1IsjRl+vyBSLh3PwLLgKpghl37aCK9Jvw0iP+wKwIFhfjdUtA2myLgjrG6VU6JCFLv8q/3Ww==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.8.tgz", + "integrity": "sha512-9HiSZ9zpqNLKlbIDRWOnAWqgcA7xu+8YxXSekhr0Ykab7PAYFkhkwoqVArPOtJhPmYeE2YHgKZlj3CP36z2AJQ==", "license": "MIT", "dependencies": { "tinyrainbow": "^1.2.0" @@ -803,12 +816,12 @@ } }, "node_modules/@vitest/runner": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.4.tgz", - "integrity": "sha512-sKRautINI9XICAMl2bjxQM8VfCMTB0EbsBc/EDFA57V6UQevEKY/TOPOF5nzcvCALltiLfXWbq4MaAwWx/YxIA==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.8.tgz", + "integrity": "sha512-17ub8vQstRnRlIU5k50bG+QOMLHRhYPAna5tw8tYbj+jzjcspnwnwtPtiOlkuKC4+ixDPTuLZiqiWWQ2PSXHVg==", "license": "MIT", "dependencies": { - "@vitest/utils": "2.1.4", + "@vitest/utils": "2.1.8", "pathe": "^1.1.2" }, "funding": { @@ -816,12 +829,12 @@ } }, "node_modules/@vitest/snapshot": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.4.tgz", - "integrity": "sha512-3Kab14fn/5QZRog5BPj6Rs8dc4B+mim27XaKWFWHWA87R56AKjHTGcBFKpvZKDzC4u5Wd0w/qKsUIio3KzWW4Q==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.8.tgz", + "integrity": "sha512-20T7xRFbmnkfcmgVEz+z3AU/3b0cEzZOt/zmnvZEctg64/QZbSDJEVm9fLnnlSi74KibmRsO9/Qabi+t0vCRPg==", "license": "MIT", "dependencies": { - "@vitest/pretty-format": "2.1.4", + "@vitest/pretty-format": "2.1.8", "magic-string": "^0.30.12", "pathe": "^1.1.2" }, @@ -830,9 +843,9 @@ } }, "node_modules/@vitest/spy": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.4.tgz", - "integrity": "sha512-4JOxa+UAizJgpZfaCPKK2smq9d8mmjZVPMt2kOsg/R8QkoRzydHH1qHxIYNvr1zlEaFj4SXiaaJWxq/LPLKaLg==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.8.tgz", + "integrity": "sha512-5swjf2q95gXeYPevtW0BLk6H8+bPlMb4Vw/9Em4hFxDcaOxS+e0LOX4yqNxoHzMR2akEB2xfpnWUzkZokmgWDg==", "license": "MIT", "dependencies": { "tinyspy": "^3.0.2" @@ -842,12 +855,12 @@ } }, "node_modules/@vitest/utils": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.4.tgz", - "integrity": "sha512-MXDnZn0Awl2S86PSNIim5PWXgIAx8CIkzu35mBdSApUip6RFOGXBCf3YFyeEu8n1IHk4bWD46DeYFu9mQlFIRg==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.8.tgz", + "integrity": "sha512-dwSoui6djdwbfFmIgbIjX2ZhIoG7Ex/+xpxyiEgIGzjliY8xGkcpITKTlp6B4MgtGkF2ilvm97cPM96XZaAgcA==", "license": "MIT", "dependencies": { - "@vitest/pretty-format": "2.1.4", + "@vitest/pretty-format": "2.1.8", "loupe": "^3.1.2", "tinyrainbow": "^1.2.0" }, @@ -856,22 +869,16 @@ } }, "node_modules/@xieyuheng/command-line": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@xieyuheng/command-line/-/command-line-0.1.2.tgz", - "integrity": "sha512-fw4E0qYtAcHwLhKq4G18T2AoW9IitZY1jFD3LIu2xEl+iJRcZNSOb/Hqn8xFtuIJ0VpJuW5zYGwq4RVGNrT6XQ==", + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@xieyuheng/command-line/-/command-line-0.1.3.tgz", + "integrity": "sha512-f3dEXddG010qHYfa3gN7pFDk1uXk6TlMrszjnKKlCN1IU7Ai7pcLvUrkayqfZfD6AM8G6z0vCCcqbtTTE94TZw==", "license": "GPL-3.0-or-later", "dependencies": { - "@xieyuheng/ty": "^0.2.1", - "picocolors": "^1.0.0", + "@xieyuheng/ty": "^0.3.1", + "picocolors": "^1.1.1", "yargs-parser": "^21.1.1" } }, - "node_modules/@xieyuheng/command-line/node_modules/@xieyuheng/ty": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@xieyuheng/ty/-/ty-0.2.3.tgz", - "integrity": "sha512-u8STEzFGKPiHiKMeXNbYSYH1BzA+LaCyuGHENgGzrOK0SXYHmm5GheUsNrNdDd9lHwkEmTqYUiEGnMrwkVMLGQ==", - "license": "GPL-3.0-or-later" - }, "node_modules/@xieyuheng/test-runner": { "version": "0.2.10", "resolved": "https://registry.npmjs.org/@xieyuheng/test-runner/-/test-runner-0.2.10.tgz", @@ -963,17 +970,27 @@ "node": ">=8" } }, - "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "node_modules/call-bind-apply-helpers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", + "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", "license": "MIT", "dependencies": { - "es-define-property": "^1.0.0", "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz", + "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -1065,9 +1082,9 @@ "license": "MIT" }, "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -1090,23 +1107,6 @@ "node": ">=6" } }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -1116,6 +1116,20 @@ "node": ">=0.4.0" } }, + "node_modules/dunder-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.0.tgz", + "integrity": "sha512-9+Sj30DIu+4KvHqMfLUGLFYL2PkURSYMVXJyXe92nFRvlYq5hBjLEhblKB+vkd/WVlUYMWigiY07T91Fkk0+4A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/entities": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.3.tgz", @@ -1123,13 +1137,10 @@ "license": "BSD-2-Clause" }, "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, "engines": { "node": ">= 0.4" } @@ -1143,6 +1154,24 @@ "node": ">= 0.4" } }, + "node_modules/es-module-lexer": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.5.4.tgz", + "integrity": "sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==", + "license": "MIT" + }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", + "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/esbuild": { "version": "0.21.5", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", @@ -1284,16 +1313,21 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.6.tgz", + "integrity": "sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==", "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "dunder-proto": "^1.0.0", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -1325,33 +1359,9 @@ } }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "license": "MIT", "engines": { "node": ">= 0.4" @@ -1361,9 +1371,9 @@ } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "license": "MIT", "engines": { "node": ">= 0.4" @@ -1472,14 +1482,23 @@ "license": "MIT" }, "node_modules/magic-string": { - "version": "0.30.12", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.12.tgz", - "integrity": "sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==", + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0" } }, + "node_modules/math-intrinsics": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.0.0.tgz", + "integrity": "sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/mdurl": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", @@ -1547,9 +1566,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", "funding": [ { "type": "github", @@ -1574,9 +1593,9 @@ } }, "node_modules/object-inspect": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", - "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", + "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", "license": "MIT", "engines": { "node": ">= 0.4" @@ -1624,9 +1643,9 @@ } }, "node_modules/postcss": { - "version": "8.4.47", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz", - "integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==", + "version": "8.4.49", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", + "integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==", "funding": [ { "type": "opencollective", @@ -1644,7 +1663,7 @@ "license": "MIT", "dependencies": { "nanoid": "^3.3.7", - "picocolors": "^1.1.0", + "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, "engines": { @@ -1652,9 +1671,9 @@ } }, "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", + "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", "dev": true, "license": "MIT", "bin": { @@ -1700,9 +1719,9 @@ } }, "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.1.tgz", + "integrity": "sha512-EJPeIn0CYrGu+hli1xilKAPXODtJ12T0sP63Ijx2/khC2JtuaN3JyNIpvmnkmaEtha9ocbG4A4cMcr+TvqvwQg==", "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" @@ -1807,9 +1826,9 @@ } }, "node_modules/rollup": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.24.4.tgz", - "integrity": "sha512-vGorVWIsWfX3xbcyAS+I047kFKapHYivmkaT63Smj77XwvLSJos6M1xGqZnBPFQFBRZDOcG1QnYEIxAvTr/HjA==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.28.1.tgz", + "integrity": "sha512-61fXYl/qNVinKmGSTHAZ6Yy8I3YIJC/r2m9feHo6SwVAVcLT5MPwOUFe7EuURA/4m0NR8lXG4BBXuo/IZEsjMg==", "license": "MIT", "dependencies": { "@types/estree": "1.0.6" @@ -1822,24 +1841,25 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.24.4", - "@rollup/rollup-android-arm64": "4.24.4", - "@rollup/rollup-darwin-arm64": "4.24.4", - "@rollup/rollup-darwin-x64": "4.24.4", - "@rollup/rollup-freebsd-arm64": "4.24.4", - "@rollup/rollup-freebsd-x64": "4.24.4", - "@rollup/rollup-linux-arm-gnueabihf": "4.24.4", - "@rollup/rollup-linux-arm-musleabihf": "4.24.4", - "@rollup/rollup-linux-arm64-gnu": "4.24.4", - "@rollup/rollup-linux-arm64-musl": "4.24.4", - "@rollup/rollup-linux-powerpc64le-gnu": "4.24.4", - "@rollup/rollup-linux-riscv64-gnu": "4.24.4", - "@rollup/rollup-linux-s390x-gnu": "4.24.4", - "@rollup/rollup-linux-x64-gnu": "4.24.4", - "@rollup/rollup-linux-x64-musl": "4.24.4", - "@rollup/rollup-win32-arm64-msvc": "4.24.4", - "@rollup/rollup-win32-ia32-msvc": "4.24.4", - "@rollup/rollup-win32-x64-msvc": "4.24.4", + "@rollup/rollup-android-arm-eabi": "4.28.1", + "@rollup/rollup-android-arm64": "4.28.1", + "@rollup/rollup-darwin-arm64": "4.28.1", + "@rollup/rollup-darwin-x64": "4.28.1", + "@rollup/rollup-freebsd-arm64": "4.28.1", + "@rollup/rollup-freebsd-x64": "4.28.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.28.1", + "@rollup/rollup-linux-arm-musleabihf": "4.28.1", + "@rollup/rollup-linux-arm64-gnu": "4.28.1", + "@rollup/rollup-linux-arm64-musl": "4.28.1", + "@rollup/rollup-linux-loongarch64-gnu": "4.28.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.28.1", + "@rollup/rollup-linux-riscv64-gnu": "4.28.1", + "@rollup/rollup-linux-s390x-gnu": "4.28.1", + "@rollup/rollup-linux-x64-gnu": "4.28.1", + "@rollup/rollup-linux-x64-musl": "4.28.1", + "@rollup/rollup-win32-arm64-msvc": "4.28.1", + "@rollup/rollup-win32-ia32-msvc": "4.28.1", + "@rollup/rollup-win32-x64-msvc": "4.28.1", "fsevents": "~2.3.2" } }, @@ -1887,33 +1907,70 @@ ], "license": "MIT" }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "license": "MIT", "dependencies": { - "define-data-property": "^1.1.4", "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/side-channel": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", - "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -1944,9 +2001,9 @@ "license": "MIT" }, "node_modules/std-env": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", - "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.8.0.tgz", + "integrity": "sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==", "license": "MIT" }, "node_modules/string_decoder": { @@ -2033,9 +2090,9 @@ "license": "MIT" }, "node_modules/tinypool": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.1.tgz", - "integrity": "sha512-URZYihUbRPcGv95En+sz6MfghfIc2OJ1sv/RmhWZLouPY0/8Vo80viwPvg3dlaS9fuq7fQMEfgRRK7BBZThBEA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.2.tgz", + "integrity": "sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==", "license": "MIT", "engines": { "node": "^18.0.0 || >=20.0.0" @@ -2079,9 +2136,9 @@ "license": "MIT" }, "node_modules/typescript": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", - "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", "dev": true, "license": "Apache-2.0", "bin": { @@ -2093,9 +2150,9 @@ } }, "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", "license": "MIT" }, "node_modules/util-deprecate": { @@ -2105,9 +2162,9 @@ "license": "MIT" }, "node_modules/vite": { - "version": "5.4.10", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.10.tgz", - "integrity": "sha512-1hvaPshuPUtxeQ0hsVH3Mud0ZanOLwVTneA1EgbAM5LhaZEqyPWGRQ7BtaMvUrTDeEaC8pxtj6a6jku3x4z6SQ==", + "version": "5.4.11", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.11.tgz", + "integrity": "sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==", "license": "MIT", "dependencies": { "esbuild": "^0.21.3", @@ -2164,13 +2221,14 @@ } }, "node_modules/vite-node": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.4.tgz", - "integrity": "sha512-kqa9v+oi4HwkG6g8ufRnb5AeplcRw8jUF6/7/Qz1qRQOXHImG8YnLbB+LLszENwFnoBl9xIf9nVdCFzNd7GQEg==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.8.tgz", + "integrity": "sha512-uPAwSr57kYjAUux+8E2j0q0Fxpn8M9VoyfGiRI8Kfktz9NcYMCenwY5RnZxnF1WTu3TGiYipirIzacLL3VVGFg==", "license": "MIT", "dependencies": { "cac": "^6.7.14", "debug": "^4.3.7", + "es-module-lexer": "^1.5.4", "pathe": "^1.1.2", "vite": "^5.0.0" }, @@ -2185,30 +2243,30 @@ } }, "node_modules/vitest": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.4.tgz", - "integrity": "sha512-eDjxbVAJw1UJJCHr5xr/xM86Zx+YxIEXGAR+bmnEID7z9qWfoxpHw0zdobz+TQAFOLT+nEXz3+gx6nUJ7RgmlQ==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.8.tgz", + "integrity": "sha512-1vBKTZskHw/aosXqQUlVWWlGUxSJR8YtiyZDJAFeW2kPAeX6S3Sool0mjspO+kXLuxVWlEDDowBAeqeAQefqLQ==", "license": "MIT", "dependencies": { - "@vitest/expect": "2.1.4", - "@vitest/mocker": "2.1.4", - "@vitest/pretty-format": "^2.1.4", - "@vitest/runner": "2.1.4", - "@vitest/snapshot": "2.1.4", - "@vitest/spy": "2.1.4", - "@vitest/utils": "2.1.4", + "@vitest/expect": "2.1.8", + "@vitest/mocker": "2.1.8", + "@vitest/pretty-format": "^2.1.8", + "@vitest/runner": "2.1.8", + "@vitest/snapshot": "2.1.8", + "@vitest/spy": "2.1.8", + "@vitest/utils": "2.1.8", "chai": "^5.1.2", "debug": "^4.3.7", "expect-type": "^1.1.0", "magic-string": "^0.30.12", "pathe": "^1.1.2", - "std-env": "^3.7.0", + "std-env": "^3.8.0", "tinybench": "^2.9.0", "tinyexec": "^0.3.1", "tinypool": "^1.0.1", "tinyrainbow": "^1.2.0", "vite": "^5.0.0", - "vite-node": "2.1.4", + "vite-node": "2.1.8", "why-is-node-running": "^2.3.0" }, "bin": { @@ -2223,8 +2281,8 @@ "peerDependencies": { "@edge-runtime/vm": "*", "@types/node": "^18.0.0 || >=20.0.0", - "@vitest/browser": "2.1.4", - "@vitest/ui": "2.1.4", + "@vitest/browser": "2.1.8", + "@vitest/ui": "2.1.8", "happy-dom": "*", "jsdom": "*" }, @@ -2266,9 +2324,9 @@ } }, "node_modules/yaml": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.0.tgz", - "integrity": "sha512-a6ae//JvKDEra2kdi1qzCyrJW/WZCgFi8ydDV+eXExl95t+5R+ijnqHJbz9tmMh8FUjx3iv2fCQ4dclAQlO2UQ==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", + "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", "license": "ISC", "bin": { "yaml": "bin.mjs" diff --git a/package.json b/package.json index 77f1613..ffe2442 100644 --- a/package.json +++ b/package.json @@ -24,16 +24,16 @@ "dependencies": { "@cicada-lang/framework": "^0.2.0", "@cicada-lang/partech": "^0.2.5", - "@xieyuheng/command-line": "^0.1.2", + "@xieyuheng/command-line": "^0.1.3", "@xieyuheng/ty": "^0.3.1", "picocolors": "^1.1.1", - "vitest": "^2.1.4" + "vitest": "^2.1.8" }, "devDependencies": { - "@types/node": "^22.9.0", + "@types/node": "^22.10.2", "@xieyuheng/test-runner": "^0.2.10", - "prettier": "^3.3.3", + "prettier": "^3.4.2", "prettier-plugin-organize-imports": "^4.1.0", - "typescript": "^5.6.3" + "typescript": "^5.7.2" } } diff --git a/src/app/App.ts b/src/app/App.ts index ad55c90..9ce3137 100644 --- a/src/app/App.ts +++ b/src/app/App.ts @@ -1,5 +1,5 @@ -import { AppHome } from "./AppHome.js" -import { AppReplEventHandler } from "./AppReplEventHandler.js" +import { AppHome } from "./AppHome.ts" +import { AppReplEventHandler } from "./AppReplEventHandler.ts" export class App { home = new AppHome() diff --git a/src/app/AppReplEventHandler.ts b/src/app/AppReplEventHandler.ts index c96b444..8d3cca8 100644 --- a/src/app/AppReplEventHandler.ts +++ b/src/app/AppReplEventHandler.ts @@ -6,11 +6,11 @@ import { ParsingError } from "@cicada-lang/partech" import fs from "fs" import { relative } from "node:path" import process from "process" -import { Fetcher } from "../fetcher/Fetcher.js" -import { Report } from "../lang/errors/Report.js" -import { parseStmts } from "../lang/syntax/index.js" -import { Loader } from "../loader/index.js" -import { version } from "../version.js" +import { Fetcher } from "../fetcher/Fetcher.ts" +import { Report } from "../lang/errors/Report.ts" +import { parseStmts } from "../lang/syntax/index.ts" +import { Loader } from "../loader/index.ts" +import { version } from "../version.ts" const fetcher = new Fetcher() diff --git a/src/app/index.ts b/src/app/index.ts index 013f271..cb78bd7 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -1,3 +1,3 @@ -import { App } from "./App.js" +import { App } from "./App.ts" export const app = new App() diff --git a/src/command-line/commands/Default.ts b/src/command-line/commands/Default.ts index bce67d0..a59d0d4 100644 --- a/src/command-line/commands/Default.ts +++ b/src/command-line/commands/Default.ts @@ -1,7 +1,7 @@ import { Command, CommandRunner } from "@xieyuheng/command-line" import ty from "@xieyuheng/ty" -import { version } from "../../version.js" -import * as Commands from "./index.js" +import { version } from "../../version.ts" +import * as Commands from "./index.ts" type Args = { path?: string } type Opts = { help?: boolean; version?: boolean } diff --git a/src/command-line/commands/Repl.ts b/src/command-line/commands/Repl.ts index 478087b..1b411a6 100644 --- a/src/command-line/commands/Repl.ts +++ b/src/command-line/commands/Repl.ts @@ -1,7 +1,7 @@ import { ReadlineRepl } from "@cicada-lang/framework/lib/repls/readline-repl/index.js" import { Command, CommandRunner } from "@xieyuheng/command-line" import Path from "path" -import { app } from "../../app/index.js" +import { app } from "../../app/index.ts" type Args = {} diff --git a/src/command-line/commands/Run.ts b/src/command-line/commands/Run.ts index 8ac8d42..a0929c5 100644 --- a/src/command-line/commands/Run.ts +++ b/src/command-line/commands/Run.ts @@ -4,10 +4,10 @@ import ty from "@xieyuheng/ty" import fs from "node:fs" import { relative } from "node:path" import process from "node:process" -import { Fetcher } from "../../fetcher/index.js" -import { Report } from "../../lang/errors/Report.js" -import { Loader } from "../../loader/index.js" -import { createURL } from "../../utils/createURL.js" +import { Fetcher } from "../../fetcher/index.ts" +import { Report } from "../../lang/errors/Report.ts" +import { Loader } from "../../loader/index.ts" +import { createURL } from "../../utils/createURL.ts" type Args = { path: string } type Opts = {} diff --git a/src/command-line/commands/index.ts b/src/command-line/commands/index.ts index be99c0d..9f5b796 100644 --- a/src/command-line/commands/index.ts +++ b/src/command-line/commands/index.ts @@ -1,4 +1,4 @@ export * from "@xieyuheng/command-line/lib/commands/index.js" -export * from "./Default.js" -export * from "./Repl.js" -export * from "./Run.js" +export * from "./Default.ts" +export * from "./Repl.ts" +export * from "./Run.ts" diff --git a/src/command-line/index.ts b/src/command-line/index.ts index adf4d23..5775bf5 100644 --- a/src/command-line/index.ts +++ b/src/command-line/index.ts @@ -1,5 +1,5 @@ import { CommandRunner, CommandRunners } from "@xieyuheng/command-line" -import * as Commands from "./commands/index.js" +import * as Commands from "./commands/index.ts" export function createCommandRunner(): CommandRunner { return new CommandRunners.CommonCommandRunner({ diff --git a/src/fetcher/index.ts b/src/fetcher/index.ts index 0e7aced..149fae6 100644 --- a/src/fetcher/index.ts +++ b/src/fetcher/index.ts @@ -1 +1 @@ -export * from "./Fetcher.js" +export * from "./Fetcher.ts" diff --git a/src/index.ts b/src/index.ts index a88ed10..b0c3294 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,18 +1,18 @@ -export * from "./fetcher/index.js" -export * from "./lang/cap/index.js" -export * from "./lang/definition/index.js" -export * from "./lang/edge/index.js" -export * from "./lang/env/index.js" -export * from "./lang/errors/index.js" -export * from "./lang/interact/index.js" -export * from "./lang/mod/index.js" -export * from "./lang/net/index.js" -export * from "./lang/node/index.js" -export * from "./lang/port/index.js" -export * from "./lang/present/index.js" -export * from "./lang/rule/index.js" -export * from "./lang/run/index.js" -export * from "./lang/syntax/index.js" -export * from "./lang/value/index.js" -export * from "./lang/word/index.js" -export * from "./loader/index.js" +export * from "./fetcher/index.ts" +export * from "./lang/cap/index.ts" +export * from "./lang/definition/index.ts" +export * from "./lang/edge/index.ts" +export * from "./lang/env/index.ts" +export * from "./lang/errors/index.ts" +export * from "./lang/interact/index.ts" +export * from "./lang/mod/index.ts" +export * from "./lang/net/index.ts" +export * from "./lang/node/index.ts" +export * from "./lang/port/index.ts" +export * from "./lang/present/index.ts" +export * from "./lang/rule/index.ts" +export * from "./lang/run/index.ts" +export * from "./lang/syntax/index.ts" +export * from "./lang/value/index.ts" +export * from "./lang/word/index.ts" +export * from "./loader/index.ts" diff --git a/src/lang/builtins/Type.ts b/src/lang/builtins/Type.ts index 9c7db3a..64810e4 100644 --- a/src/lang/builtins/Type.ts +++ b/src/lang/builtins/Type.ts @@ -1,4 +1,4 @@ -import { type Env } from "../env/index.js" +import { type Env } from "../env/index.ts" export function compose(env: Env): void { env.stack.push({ diff --git a/src/lang/builtins/apply.ts b/src/lang/builtins/apply.ts index 785ecf1..b1b9670 100644 --- a/src/lang/builtins/apply.ts +++ b/src/lang/builtins/apply.ts @@ -1,7 +1,7 @@ -import { type ComposeOptions } from "../compose/compose.js" -import { composeNode } from "../compose/composeNode.js" -import { type Env } from "../env/index.js" -import { formatValue } from "../value/index.js" +import { type ComposeOptions } from "../compose/compose.ts" +import { composeNode } from "../compose/composeNode.ts" +import { type Env } from "../env/index.ts" +import { formatValue } from "../value/index.ts" export function compose(env: Env, options: ComposeOptions): void { const value = env.stack.pop() diff --git a/src/lang/builtins/connect.ts b/src/lang/builtins/connect.ts index 8ecffdd..66afd83 100644 --- a/src/lang/builtins/connect.ts +++ b/src/lang/builtins/connect.ts @@ -1,8 +1,8 @@ -import { type ComposeOptions } from "../compose/compose.js" -import { connect } from "../connect/connect.js" -import { type Env } from "../env/index.js" -import { unifyTypes } from "../unify/unifyTypes.js" -import { formatValue } from "../value/formatValue.js" +import { type ComposeOptions } from "../compose/compose.ts" +import { connect } from "../connect/connect.ts" +import { type Env } from "../env/index.ts" +import { unifyTypes } from "../unify/unifyTypes.ts" +import { formatValue } from "../value/formatValue.ts" export function compose(env: Env, options: ComposeOptions): void { const first = env.stack.pop() diff --git a/src/lang/builtins/defineBuiltinOperator.ts b/src/lang/builtins/defineBuiltinOperator.ts index 0f2e80f..ce012d7 100644 --- a/src/lang/builtins/defineBuiltinOperator.ts +++ b/src/lang/builtins/defineBuiltinOperator.ts @@ -1,6 +1,6 @@ -import { type ComposeOptions } from "../compose/compose.js" -import { type Env } from "../env/index.js" -import { type Mod } from "../mod/index.js" +import { type ComposeOptions } from "../compose/compose.ts" +import { type Env } from "../env/index.ts" +import { type Mod } from "../mod/index.ts" export function defineBuiltinOperator( mod: Mod, diff --git a/src/lang/builtins/defineBuiltinOperators.ts b/src/lang/builtins/defineBuiltinOperators.ts index 25d1a80..f996a1d 100644 --- a/src/lang/builtins/defineBuiltinOperators.ts +++ b/src/lang/builtins/defineBuiltinOperators.ts @@ -1,13 +1,13 @@ -import { type Mod } from "../mod/index.js" -import * as Type from "./Type.js" -import * as apply from "./apply.js" -import * as connect from "./connect.js" -import { defineBuiltinOperator } from "./defineBuiltinOperator.js" -import * as inspect from "./inspect.js" -import * as rot from "./rot.js" -import * as run from "./run.js" -import * as spread from "./spread.js" -import * as swap from "./swap.js" +import { type Mod } from "../mod/index.ts" +import * as Type from "./Type.ts" +import * as apply from "./apply.ts" +import * as connect from "./connect.ts" +import { defineBuiltinOperator } from "./defineBuiltinOperator.ts" +import * as inspect from "./inspect.ts" +import * as rot from "./rot.ts" +import * as run from "./run.ts" +import * as spread from "./spread.ts" +import * as swap from "./swap.ts" export function defineBuiltinOperators(mod: Mod): void { defineBuiltinOperator(mod, "swap", swap) diff --git a/src/lang/builtins/inspect.ts b/src/lang/builtins/inspect.ts index 8de12f6..68849ca 100644 --- a/src/lang/builtins/inspect.ts +++ b/src/lang/builtins/inspect.ts @@ -1,8 +1,8 @@ -import { indent } from "../../utils/indent.js" -import { type Env } from "../env/index.js" -import { findConnectedComponent } from "../net/findConnectedComponent.js" -import { formatNet } from "../net/formatNet.js" -import { formatValue } from "../value/formatValue.js" +import { indent } from "../../utils/indent.ts" +import { type Env } from "../env/index.ts" +import { findConnectedComponent } from "../net/findConnectedComponent.ts" +import { formatNet } from "../net/formatNet.ts" +import { formatValue } from "../value/formatValue.ts" export function compose(env: Env): void { const value = env.stack[env.stack.length - 1] diff --git a/src/lang/builtins/rot.ts b/src/lang/builtins/rot.ts index 4f64aa1..70674c4 100644 --- a/src/lang/builtins/rot.ts +++ b/src/lang/builtins/rot.ts @@ -1,5 +1,5 @@ -import { type Env } from "../env/index.js" -import { formatValue } from "../value/formatValue.js" +import { type Env } from "../env/index.ts" +import { formatValue } from "../value/formatValue.ts" export function compose(env: Env): void { const first = env.stack.pop() diff --git a/src/lang/builtins/run.ts b/src/lang/builtins/run.ts index 4563e0f..2a9cbc2 100644 --- a/src/lang/builtins/run.ts +++ b/src/lang/builtins/run.ts @@ -1,6 +1,6 @@ -import { type Env } from "../env/index.js" -import { runPort } from "../run/runPort.js" -import { formatValue } from "../value/formatValue.js" +import { type Env } from "../env/index.ts" +import { runPort } from "../run/runPort.ts" +import { formatValue } from "../value/formatValue.ts" export function compose(env: Env): void { const port = env.stack.pop() diff --git a/src/lang/builtins/spread.ts b/src/lang/builtins/spread.ts index 3dad091..32cad51 100644 --- a/src/lang/builtins/spread.ts +++ b/src/lang/builtins/spread.ts @@ -1,8 +1,8 @@ -import { type ComposeOptions } from "../compose/compose.js" -import { type Env } from "../env/index.js" -import { findInputPorts } from "../net/findInputPorts.js" -import { findOutputPorts } from "../net/findOutputPorts.js" -import { formatValue } from "../value/index.js" +import { type ComposeOptions } from "../compose/compose.ts" +import { type Env } from "../env/index.ts" +import { findInputPorts } from "../net/findInputPorts.ts" +import { findOutputPorts } from "../net/findOutputPorts.ts" +import { formatValue } from "../value/index.ts" export function compose(env: Env, options: ComposeOptions): void { const value = env.stack.pop() diff --git a/src/lang/builtins/swap.ts b/src/lang/builtins/swap.ts index d6e7098..c994ab9 100644 --- a/src/lang/builtins/swap.ts +++ b/src/lang/builtins/swap.ts @@ -1,5 +1,5 @@ -import { type Env } from "../env/index.js" -import { formatValue } from "../value/formatValue.js" +import { type Env } from "../env/index.ts" +import { formatValue } from "../value/formatValue.ts" export function compose(env: Env): void { const first = env.stack.pop() diff --git a/src/lang/cap/capInputPort.ts b/src/lang/cap/capInputPort.ts index 6b7bb54..ec0bf44 100644 --- a/src/lang/cap/capInputPort.ts +++ b/src/lang/cap/capInputPort.ts @@ -1,11 +1,11 @@ -import { connect } from "../connect/connect.js" -import { type Mod } from "../mod/index.js" -import { addNode } from "../net/addNode.js" -import { findNodeEntryOrFail } from "../net/findNodeEntryOrFail.js" -import { findOutputPorts } from "../net/findOutputPorts.js" -import { type Net } from "../net/index.js" -import { type PortExp } from "../port/PortExp.js" -import { type Port } from "../port/index.js" +import { connect } from "../connect/connect.ts" +import { type Mod } from "../mod/index.ts" +import { addNode } from "../net/addNode.ts" +import { findNodeEntryOrFail } from "../net/findNodeEntryOrFail.ts" +import { findOutputPorts } from "../net/findOutputPorts.ts" +import { type Net } from "../net/index.ts" +import { type PortExp } from "../port/PortExp.ts" +import { type Port } from "../port/index.ts" export function capInputPort(mod: Mod, net: Net, port: Port): Port { const portExp: PortExp = { diff --git a/src/lang/cap/capNodeAllPorts.ts b/src/lang/cap/capNodeAllPorts.ts index ea62eb2..413cc35 100644 --- a/src/lang/cap/capNodeAllPorts.ts +++ b/src/lang/cap/capNodeAllPorts.ts @@ -1,10 +1,10 @@ -import { type Mod } from "../mod/index.js" -import { findInputPorts } from "../net/findInputPorts.js" -import { findOutputPorts } from "../net/findOutputPorts.js" -import { type Net } from "../net/index.js" -import { type Node } from "../node/index.js" -import { capInputPort } from "./capInputPort.js" -import { capOutputPort } from "./capOutputPort.js" +import { type Mod } from "../mod/index.ts" +import { findInputPorts } from "../net/findInputPorts.ts" +import { findOutputPorts } from "../net/findOutputPorts.ts" +import { type Net } from "../net/index.ts" +import { type Node } from "../node/index.ts" +import { capInputPort } from "./capInputPort.ts" +import { capOutputPort } from "./capOutputPort.ts" export function capNodeAllPorts(mod: Mod, net: Net, node: Node): void { for (const port of findInputPorts(net, node)) { diff --git a/src/lang/cap/capNodeNonPrinciplePorts.ts b/src/lang/cap/capNodeNonPrinciplePorts.ts index 6ba55d0..26058b8 100644 --- a/src/lang/cap/capNodeNonPrinciplePorts.ts +++ b/src/lang/cap/capNodeNonPrinciplePorts.ts @@ -1,10 +1,10 @@ -import { type Mod } from "../mod/index.js" -import { findInputPorts } from "../net/findInputPorts.js" -import { findOutputPorts } from "../net/findOutputPorts.js" -import { type Net } from "../net/index.js" -import { type Node } from "../node/index.js" -import { capInputPort } from "./capInputPort.js" -import { capOutputPort } from "./capOutputPort.js" +import { type Mod } from "../mod/index.ts" +import { findInputPorts } from "../net/findInputPorts.ts" +import { findOutputPorts } from "../net/findOutputPorts.ts" +import { type Net } from "../net/index.ts" +import { type Node } from "../node/index.ts" +import { capInputPort } from "./capInputPort.ts" +import { capOutputPort } from "./capOutputPort.ts" export function capNodeNonPrinciplePorts(mod: Mod, net: Net, node: Node): void { for (const port of findInputPorts(net, node)) { diff --git a/src/lang/cap/capOutputPort.ts b/src/lang/cap/capOutputPort.ts index 1a2561e..45219a8 100644 --- a/src/lang/cap/capOutputPort.ts +++ b/src/lang/cap/capOutputPort.ts @@ -1,11 +1,11 @@ -import { connect } from "../connect/connect.js" -import { type Mod } from "../mod/index.js" -import { addNode } from "../net/addNode.js" -import { findInputPorts } from "../net/findInputPorts.js" -import { findNodeEntryOrFail } from "../net/findNodeEntryOrFail.js" -import { type Net } from "../net/index.js" -import { type PortExp } from "../port/PortExp.js" -import { type Port } from "../port/index.js" +import { connect } from "../connect/connect.ts" +import { type Mod } from "../mod/index.ts" +import { addNode } from "../net/addNode.ts" +import { findInputPorts } from "../net/findInputPorts.ts" +import { findNodeEntryOrFail } from "../net/findNodeEntryOrFail.ts" +import { type Net } from "../net/index.ts" +import { type PortExp } from "../port/PortExp.ts" +import { type Port } from "../port/index.ts" export function capOutputPort(mod: Mod, net: Net, port: Port): Port { const portExp: PortExp = { diff --git a/src/lang/cap/capType.ts b/src/lang/cap/capType.ts index 49443d8..3c49f03 100644 --- a/src/lang/cap/capType.ts +++ b/src/lang/cap/capType.ts @@ -1,11 +1,11 @@ -import { type Mod } from "../mod/index.js" -import { addNode } from "../net/addNode.js" -import { findNodeEntryOrFail } from "../net/findNodeEntryOrFail.js" -import { findOutputPorts } from "../net/findOutputPorts.js" -import { type Net } from "../net/index.js" -import { type PortExp } from "../port/PortExp.js" -import { type Port } from "../port/index.js" -import { type Value } from "../value/index.js" +import { type Mod } from "../mod/index.ts" +import { addNode } from "../net/addNode.ts" +import { findNodeEntryOrFail } from "../net/findNodeEntryOrFail.ts" +import { findOutputPorts } from "../net/findOutputPorts.ts" +import { type Net } from "../net/index.ts" +import { type PortExp } from "../port/PortExp.ts" +import { type Port } from "../port/index.ts" +import { type Value } from "../value/index.ts" export function capType(mod: Mod, net: Net, t: Value): Port { const portExp: PortExp = { diff --git a/src/lang/cap/index.ts b/src/lang/cap/index.ts index c31b16f..a3726cd 100644 --- a/src/lang/cap/index.ts +++ b/src/lang/cap/index.ts @@ -1,5 +1,5 @@ -export * from "./capInputPort.js" -export * from "./capNodeAllPorts.js" -export * from "./capNodeNonPrinciplePorts.js" -export * from "./capOutputPort.js" -export * from "./capType.js" +export * from "./capInputPort.ts" +export * from "./capNodeAllPorts.ts" +export * from "./capNodeNonPrinciplePorts.ts" +export * from "./capOutputPort.ts" +export * from "./capType.ts" diff --git a/src/lang/check/checkAllLocalsAreUsed.ts b/src/lang/check/checkAllLocalsAreUsed.ts index e7704bd..a827dc8 100644 --- a/src/lang/check/checkAllLocalsAreUsed.ts +++ b/src/lang/check/checkAllLocalsAreUsed.ts @@ -1,4 +1,4 @@ -import { type Value } from "../value/index.js" +import { type Value } from "../value/index.ts" export function checkAllLocalsAreUsed(locals: Map): void { if (locals.size > 0) { diff --git a/src/lang/check/checkNode.ts b/src/lang/check/checkNode.ts index ff48580..fa170f6 100644 --- a/src/lang/check/checkNode.ts +++ b/src/lang/check/checkNode.ts @@ -1,12 +1,12 @@ -import { createChecking } from "../checking/createChecking.js" -import { collectWords } from "../compose/collectWords.js" -import { createEnv } from "../env/createEnv.js" -import { type Mod } from "../mod/index.js" -import { type PortExp } from "../port/PortExp.js" -import { formatValue } from "../value/formatValue.js" -import { type Value } from "../value/index.js" -import { type Word } from "../word/index.js" -import { checkAllLocalsAreUsed } from "./checkAllLocalsAreUsed.js" +import { createChecking } from "../checking/createChecking.ts" +import { collectWords } from "../compose/collectWords.ts" +import { createEnv } from "../env/createEnv.ts" +import { type Mod } from "../mod/index.ts" +import { type PortExp } from "../port/PortExp.ts" +import { formatValue } from "../value/formatValue.ts" +import { type Value } from "../value/index.ts" +import { type Word } from "../word/index.ts" +import { checkAllLocalsAreUsed } from "./checkAllLocalsAreUsed.ts" export function checkNode( mod: Mod, diff --git a/src/lang/check/checkPortSigns.ts b/src/lang/check/checkPortSigns.ts index 2e21420..b3d2ab1 100644 --- a/src/lang/check/checkPortSigns.ts +++ b/src/lang/check/checkPortSigns.ts @@ -1,5 +1,5 @@ -import { type Port } from "../port/index.js" -import { formatValue } from "../value/formatValue.js" +import { type Port } from "../port/index.ts" +import { formatValue } from "../value/formatValue.ts" export function checkPortSigns(first: Port, second: Port): void { if (first.sign === 1 && second.sign === 1) { diff --git a/src/lang/check/checkRule.ts b/src/lang/check/checkRule.ts index a879f09..94fca1f 100644 --- a/src/lang/check/checkRule.ts +++ b/src/lang/check/checkRule.ts @@ -1,13 +1,13 @@ -import { capNodeNonPrinciplePorts } from "../cap/capNodeNonPrinciplePorts.js" -import { createChecking } from "../checking/createChecking.js" -import { compose } from "../compose/compose.js" -import { createEnv } from "../env/createEnv.js" -import { refreshNode } from "../freshen/refreshNode.js" -import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.js" -import { type Mod } from "../mod/index.js" -import { createNodeFromDefinition } from "../node/createNodeFromDefinition.js" -import { type Word } from "../word/index.js" -import { checkAllLocalsAreUsed } from "./checkAllLocalsAreUsed.js" +import { capNodeNonPrinciplePorts } from "../cap/capNodeNonPrinciplePorts.ts" +import { createChecking } from "../checking/createChecking.ts" +import { compose } from "../compose/compose.ts" +import { createEnv } from "../env/createEnv.ts" +import { refreshNode } from "../freshen/refreshNode.ts" +import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.ts" +import { type Mod } from "../mod/index.ts" +import { createNodeFromDefinition } from "../node/createNodeFromDefinition.ts" +import { type Word } from "../word/index.ts" +import { checkAllLocalsAreUsed } from "./checkAllLocalsAreUsed.ts" export function checkRule( mod: Mod, diff --git a/src/lang/check/checkRuleIsAboutOwnNode.ts b/src/lang/check/checkRuleIsAboutOwnNode.ts index 340da94..40dd197 100644 --- a/src/lang/check/checkRuleIsAboutOwnNode.ts +++ b/src/lang/check/checkRuleIsAboutOwnNode.ts @@ -1,5 +1,5 @@ -import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.js" -import { type Mod } from "../mod/index.js" +import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.ts" +import { type Mod } from "../mod/index.ts" export function checkRuleIsAboutOwnNode( mod: Mod, diff --git a/src/lang/check/checkRuleNodeOrder.ts b/src/lang/check/checkRuleNodeOrder.ts index 8810966..1c3241e 100644 --- a/src/lang/check/checkRuleNodeOrder.ts +++ b/src/lang/check/checkRuleNodeOrder.ts @@ -1,5 +1,5 @@ -import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.js" -import { type Mod } from "../mod/index.js" +import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.ts" +import { type Mod } from "../mod/index.ts" export function checkRuleNodeOrder( mod: Mod, diff --git a/src/lang/check/checkType.ts b/src/lang/check/checkType.ts index 4e5e339..c8c6037 100644 --- a/src/lang/check/checkType.ts +++ b/src/lang/check/checkType.ts @@ -1,11 +1,11 @@ -import { createChecking } from "../checking/createChecking.js" -import { collectWords } from "../compose/collectWords.js" -import { createEnv } from "../env/createEnv.js" -import { type Mod } from "../mod/index.js" -import { formatValue } from "../value/formatValue.js" -import { type Value } from "../value/index.js" -import { type Word } from "../word/index.js" -import { checkAllLocalsAreUsed } from "./checkAllLocalsAreUsed.js" +import { createChecking } from "../checking/createChecking.ts" +import { collectWords } from "../compose/collectWords.ts" +import { createEnv } from "../env/createEnv.ts" +import { type Mod } from "../mod/index.ts" +import { formatValue } from "../value/formatValue.ts" +import { type Value } from "../value/index.ts" +import { type Word } from "../word/index.ts" +import { checkAllLocalsAreUsed } from "./checkAllLocalsAreUsed.ts" export function checkType( mod: Mod, diff --git a/src/lang/check/checkTypeTermArgs.ts b/src/lang/check/checkTypeTermArgs.ts index 2a7ca48..e71d0d2 100644 --- a/src/lang/check/checkTypeTermArgs.ts +++ b/src/lang/check/checkTypeTermArgs.ts @@ -1,5 +1,5 @@ -import { formatValue } from "../value/formatValue.js" -import { type Value } from "../value/index.js" +import { formatValue } from "../value/formatValue.ts" +import { type Value } from "../value/index.ts" export function checkTypeTermArgs(args: Array): void { for (const arg of args) { diff --git a/src/lang/check/checkWords.ts b/src/lang/check/checkWords.ts index 7ca70b9..f54a67f 100644 --- a/src/lang/check/checkWords.ts +++ b/src/lang/check/checkWords.ts @@ -1,14 +1,14 @@ -import { capType } from "../cap/capType.js" -import { createChecking } from "../checking/createChecking.js" -import { collectWords } from "../compose/collectWords.js" -import { compose } from "../compose/compose.js" -import { createEnv } from "../env/createEnv.js" -import { freshenType } from "../freshen/freshenType.js" -import { type Mod } from "../mod/index.js" -import { unifyTypes } from "../unify/unifyTypes.js" -import { formatValue } from "../value/formatValue.js" -import { type Word } from "../word/index.js" -import { checkAllLocalsAreUsed } from "./checkAllLocalsAreUsed.js" +import { capType } from "../cap/capType.ts" +import { createChecking } from "../checking/createChecking.ts" +import { collectWords } from "../compose/collectWords.ts" +import { compose } from "../compose/compose.ts" +import { createEnv } from "../env/createEnv.ts" +import { freshenType } from "../freshen/freshenType.ts" +import { type Mod } from "../mod/index.ts" +import { unifyTypes } from "../unify/unifyTypes.ts" +import { formatValue } from "../value/formatValue.ts" +import { type Word } from "../word/index.ts" +import { checkAllLocalsAreUsed } from "./checkAllLocalsAreUsed.ts" export function checkWords( mod: Mod, diff --git a/src/lang/checking/Checking.ts b/src/lang/checking/Checking.ts index 1861731..d40de8f 100644 --- a/src/lang/checking/Checking.ts +++ b/src/lang/checking/Checking.ts @@ -1,4 +1,4 @@ -import { type Value } from "../value/index.js" +import { type Value } from "../value/index.ts" export type Checking = { substitution: Map diff --git a/src/lang/checking/createChecking.ts b/src/lang/checking/createChecking.ts index b59533c..5001ed7 100644 --- a/src/lang/checking/createChecking.ts +++ b/src/lang/checking/createChecking.ts @@ -1,4 +1,4 @@ -import { type Checking } from "./Checking.js" +import { type Checking } from "./Checking.ts" export function createChecking(): Checking { return { diff --git a/src/lang/checking/index.ts b/src/lang/checking/index.ts index 25c01f3..1fb8155 100644 --- a/src/lang/checking/index.ts +++ b/src/lang/checking/index.ts @@ -1 +1 @@ -export * from "./Checking.js" +export * from "./Checking.ts" diff --git a/src/lang/compose/collectWords.ts b/src/lang/compose/collectWords.ts index 2afe139..a25aa06 100644 --- a/src/lang/compose/collectWords.ts +++ b/src/lang/compose/collectWords.ts @@ -1,9 +1,9 @@ -import { type Env } from "../env/index.js" -import { type Mod } from "../mod/index.js" -import { type Value } from "../value/index.js" -import { type Word } from "../word/index.js" -import { type ComposeOptions } from "./compose.js" -import { composeWords } from "./composeWords.js" +import { type Env } from "../env/index.ts" +import { type Mod } from "../mod/index.ts" +import { type Value } from "../value/index.ts" +import { type Word } from "../word/index.ts" +import { type ComposeOptions } from "./compose.ts" +import { composeWords } from "./composeWords.ts" export function collectWords( mod: Mod, diff --git a/src/lang/compose/compose.ts b/src/lang/compose/compose.ts index afbb6b2..d5af875 100644 --- a/src/lang/compose/compose.ts +++ b/src/lang/compose/compose.ts @@ -1,18 +1,18 @@ -import { type Checking } from "../checking/index.js" -import { connect } from "../connect/connect.js" -import { type Env } from "../env/index.js" -import { appendReport } from "../errors/appendReport.js" -import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.js" -import { type Mod } from "../mod/index.js" -import { disconnectPort } from "../net/disconnectPort.js" -import { findPortEntry } from "../net/findPortEntry.js" -import { createNodeFromDefinition } from "../node/createNodeFromDefinition.js" -import { type Node } from "../node/index.js" -import { unifyTypes } from "../unify/unifyTypes.js" -import { formatWord } from "../word/formatWord.js" -import { type Word } from "../word/index.js" -import { composeDefinition } from "./composeDefinition.js" -import { findCurrentPortOrFail } from "./findCurrentPortOrFail.js" +import { type Checking } from "../checking/index.ts" +import { connect } from "../connect/connect.ts" +import { type Env } from "../env/index.ts" +import { appendReport } from "../errors/appendReport.ts" +import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.ts" +import { type Mod } from "../mod/index.ts" +import { disconnectPort } from "../net/disconnectPort.ts" +import { findPortEntry } from "../net/findPortEntry.ts" +import { createNodeFromDefinition } from "../node/createNodeFromDefinition.ts" +import { type Node } from "../node/index.ts" +import { unifyTypes } from "../unify/unifyTypes.ts" +import { formatWord } from "../word/formatWord.ts" +import { type Word } from "../word/index.ts" +import { composeDefinition } from "./composeDefinition.ts" +import { findCurrentPortOrFail } from "./findCurrentPortOrFail.ts" export interface ComposeOptions { current?: { first: Node; second: Node } diff --git a/src/lang/compose/composeDefinition.ts b/src/lang/compose/composeDefinition.ts index ffed605..6bc0d90 100644 --- a/src/lang/compose/composeDefinition.ts +++ b/src/lang/compose/composeDefinition.ts @@ -1,12 +1,12 @@ -import { arrayPopMany } from "../../utils/arrayPopMany.js" -import { checkTypeTermArgs } from "../check/checkTypeTermArgs.js" -import { type Definition } from "../definition/index.js" -import { type Env } from "../env/index.js" -import { createNodeFromDefinition } from "../node/createNodeFromDefinition.js" -import { formatValue } from "../value/formatValue.js" -import { type ComposeOptions } from "./compose.js" -import { composeNode } from "./composeNode.js" -import { composeWords } from "./composeWords.js" +import { arrayPopMany } from "../../utils/arrayPopMany.ts" +import { checkTypeTermArgs } from "../check/checkTypeTermArgs.ts" +import { type Definition } from "../definition/index.ts" +import { type Env } from "../env/index.ts" +import { createNodeFromDefinition } from "../node/createNodeFromDefinition.ts" +import { formatValue } from "../value/formatValue.ts" +import { type ComposeOptions } from "./compose.ts" +import { composeNode } from "./composeNode.ts" +import { composeWords } from "./composeWords.ts" export function composeDefinition( env: Env, diff --git a/src/lang/compose/composeNode.ts b/src/lang/compose/composeNode.ts index 71a6bed..2d7f2bf 100644 --- a/src/lang/compose/composeNode.ts +++ b/src/lang/compose/composeNode.ts @@ -1,11 +1,11 @@ -import { connect } from "../connect/connect.js" -import { type Env } from "../env/index.js" -import { refreshNode } from "../freshen/refreshNode.js" -import { findInputPorts } from "../net/findInputPorts.js" -import { findOutputPorts } from "../net/findOutputPorts.js" -import { type Node } from "../node/index.js" -import { unifyTypes } from "../unify/unifyTypes.js" -import { type ComposeOptions } from "./compose.js" +import { connect } from "../connect/connect.ts" +import { type Env } from "../env/index.ts" +import { refreshNode } from "../freshen/refreshNode.ts" +import { findInputPorts } from "../net/findInputPorts.ts" +import { findOutputPorts } from "../net/findOutputPorts.ts" +import { type Node } from "../node/index.ts" +import { unifyTypes } from "../unify/unifyTypes.ts" +import { type ComposeOptions } from "./compose.ts" export function composeNode( env: Env, diff --git a/src/lang/compose/composeWords.ts b/src/lang/compose/composeWords.ts index 7958886..8535372 100644 --- a/src/lang/compose/composeWords.ts +++ b/src/lang/compose/composeWords.ts @@ -1,7 +1,7 @@ -import { type Env } from "../env/index.js" -import { type Mod } from "../mod/index.js" -import { type Word } from "../word/index.js" -import { compose, type ComposeOptions } from "./compose.js" +import { type Env } from "../env/index.ts" +import { type Mod } from "../mod/index.ts" +import { type Word } from "../word/index.ts" +import { compose, type ComposeOptions } from "./compose.ts" export function composeWords( mod: Mod, diff --git a/src/lang/compose/findCurrentPortOrFail.ts b/src/lang/compose/findCurrentPortOrFail.ts index da019a8..6b6572a 100644 --- a/src/lang/compose/findCurrentPortOrFail.ts +++ b/src/lang/compose/findCurrentPortOrFail.ts @@ -1,10 +1,10 @@ -import { findInputPorts } from "../net/findInputPorts.js" -import { findOutputPorts } from "../net/findOutputPorts.js" -import { findPortEntry } from "../net/findPortEntry.js" -import { type Net } from "../net/index.js" -import { type Node } from "../node/index.js" -import { type Port } from "../port/index.js" -import { type ComposeOptions } from "./compose.js" +import { findInputPorts } from "../net/findInputPorts.ts" +import { findOutputPorts } from "../net/findOutputPorts.ts" +import { findPortEntry } from "../net/findPortEntry.ts" +import { type Net } from "../net/index.ts" +import { type Node } from "../node/index.ts" +import { type Port } from "../port/index.ts" +import { type ComposeOptions } from "./compose.ts" export function findCurrentPortOrFail( net: Net, diff --git a/src/lang/connect/connect.ts b/src/lang/connect/connect.ts index cdb29e6..53c6d7e 100644 --- a/src/lang/connect/connect.ts +++ b/src/lang/connect/connect.ts @@ -1,9 +1,9 @@ -import { checkPortSigns } from "../check/checkPortSigns.js" -import { findPortEntry } from "../net/findPortEntry.js" -import { findPortRecordOrFail } from "../net/findPortRecordOrFail.js" -import { type Net } from "../net/index.js" -import { type Port } from "../port/index.js" -import { formatValue } from "../value/formatValue.js" +import { checkPortSigns } from "../check/checkPortSigns.ts" +import { findPortEntry } from "../net/findPortEntry.ts" +import { findPortRecordOrFail } from "../net/findPortRecordOrFail.ts" +import { type Net } from "../net/index.ts" +import { type Port } from "../port/index.ts" +import { formatValue } from "../value/formatValue.ts" export function connect(net: Net, first: Port, second: Port): void { const firstPortEntry = findPortEntry(net, first) diff --git a/src/lang/definition/Definition.ts b/src/lang/definition/Definition.ts index ae6d71a..fbf868d 100644 --- a/src/lang/definition/Definition.ts +++ b/src/lang/definition/Definition.ts @@ -1,9 +1,9 @@ -import { type ComposeOptions } from "../compose/compose.js" -import { type Env } from "../env/index.js" -import { type Mod } from "../mod/index.js" -import { type PortExp } from "../port/PortExp.js" -import { type Span } from "../span/index.js" -import { type Word } from "../word/index.js" +import { type ComposeOptions } from "../compose/compose.ts" +import { type Env } from "../env/index.ts" +import { type Mod } from "../mod/index.ts" +import { type PortExp } from "../port/PortExp.ts" +import { type Span } from "../span/index.ts" +import { type Word } from "../word/index.ts" export type Definition = | NodeDefinition diff --git a/src/lang/definition/definitionMaybeSpan.ts b/src/lang/definition/definitionMaybeSpan.ts index 22919a2..fa27c44 100644 --- a/src/lang/definition/definitionMaybeSpan.ts +++ b/src/lang/definition/definitionMaybeSpan.ts @@ -1,5 +1,5 @@ -import { type Span } from "../span/index.js" -import { type Definition } from "./Definition.js" +import { type Span } from "../span/index.ts" +import { type Definition } from "./Definition.ts" export function definitionMaybeSpan(definition: Definition): Span | undefined { if (definition["@kind"] === "OperatorDefinition") { diff --git a/src/lang/definition/index.ts b/src/lang/definition/index.ts index ff02f98..dd1e291 100644 --- a/src/lang/definition/index.ts +++ b/src/lang/definition/index.ts @@ -1 +1 @@ -export * from "./Definition.js" +export * from "./Definition.ts" diff --git a/src/lang/edge/Edge.ts b/src/lang/edge/Edge.ts index 002d211..019dff9 100644 --- a/src/lang/edge/Edge.ts +++ b/src/lang/edge/Edge.ts @@ -1,4 +1,4 @@ -import { type Port } from "../port/index.js" +import { type Port } from "../port/index.ts" export type Edge = { first: Port diff --git a/src/lang/edge/edgeEqual.ts b/src/lang/edge/edgeEqual.ts index 3f45410..74f36a7 100644 --- a/src/lang/edge/edgeEqual.ts +++ b/src/lang/edge/edgeEqual.ts @@ -1,5 +1,5 @@ -import { portEqual } from "../port/portEqual.js" -import { type Edge } from "./Edge.js" +import { portEqual } from "../port/portEqual.ts" +import { type Edge } from "./Edge.ts" export function edgeEqual(x: Edge, y: Edge): boolean { return ( diff --git a/src/lang/edge/formatEdge.ts b/src/lang/edge/formatEdge.ts index 375b4c1..f09d384 100644 --- a/src/lang/edge/formatEdge.ts +++ b/src/lang/edge/formatEdge.ts @@ -1,5 +1,5 @@ -import { type Edge } from "../edge/index.js" -import { formatNode } from "../node/formatNode.js" +import { type Edge } from "../edge/index.ts" +import { formatNode } from "../node/formatNode.ts" export function formatEdge(edge: Edge): string { const first = formatNode(edge.first.node) diff --git a/src/lang/edge/index.ts b/src/lang/edge/index.ts index 5ab0f3f..693a48d 100644 --- a/src/lang/edge/index.ts +++ b/src/lang/edge/index.ts @@ -1,3 +1,3 @@ -export * from "./Edge.js" -export * from "./edgeEqual.js" -export * from "./formatEdge.js" +export * from "./Edge.ts" +export * from "./edgeEqual.ts" +export * from "./formatEdge.ts" diff --git a/src/lang/env/Env.ts b/src/lang/env/Env.ts index 6c8e693..870f2ae 100644 --- a/src/lang/env/Env.ts +++ b/src/lang/env/Env.ts @@ -1,6 +1,6 @@ -import { type Mod } from "../mod/index.js" -import { type Net } from "../net/index.js" -import { type Value } from "../value/index.js" +import { type Mod } from "../mod/index.ts" +import { type Net } from "../net/index.ts" +import { type Value } from "../value/index.ts" export type Env = { mod: Mod diff --git a/src/lang/env/createEnv.ts b/src/lang/env/createEnv.ts index 6d8f0b2..12c4395 100644 --- a/src/lang/env/createEnv.ts +++ b/src/lang/env/createEnv.ts @@ -1,7 +1,7 @@ -import { type Env } from "../env/index.js" -import { type Mod } from "../mod/index.js" -import { createNet } from "../net/createNet.js" -import { type Net } from "../net/index.js" +import { type Env } from "../env/index.ts" +import { type Mod } from "../mod/index.ts" +import { createNet } from "../net/createNet.ts" +import { type Net } from "../net/index.ts" export function createEnv( mod: Mod, diff --git a/src/lang/env/formatEnv.ts b/src/lang/env/formatEnv.ts index 318c52a..3316aec 100644 --- a/src/lang/env/formatEnv.ts +++ b/src/lang/env/formatEnv.ts @@ -1,8 +1,8 @@ -import { indent } from "../../utils/indent.js" -import { formatNet } from "../net/formatNet.js" -import { netIsEmpty } from "../net/netIsEmpty.js" -import { formatValue } from "../value/index.js" -import { type Env } from "./Env.js" +import { indent } from "../../utils/indent.ts" +import { formatNet } from "../net/formatNet.ts" +import { netIsEmpty } from "../net/netIsEmpty.ts" +import { formatValue } from "../value/index.ts" +import { type Env } from "./Env.ts" export function formatEnv(env: Env): string { const netText = netIsEmpty(env.net) diff --git a/src/lang/env/index.ts b/src/lang/env/index.ts index f46143f..4a78994 100644 --- a/src/lang/env/index.ts +++ b/src/lang/env/index.ts @@ -1,3 +1,3 @@ -export * from "./createEnv.js" -export * from "./Env.js" -export * from "./formatEnv.js" +export * from "./createEnv.ts" +export * from "./Env.ts" +export * from "./formatEnv.ts" diff --git a/src/lang/errors/Report.ts b/src/lang/errors/Report.ts index 090c202..922d601 100644 --- a/src/lang/errors/Report.ts +++ b/src/lang/errors/Report.ts @@ -1,5 +1,5 @@ import * as pt from "@cicada-lang/partech" -import { type Span } from "../span/index.js" +import { type Span } from "../span/index.ts" export type ReportEntry = { message: string diff --git a/src/lang/errors/appendReport.ts b/src/lang/errors/appendReport.ts index 183b2c5..6c45726 100644 --- a/src/lang/errors/appendReport.ts +++ b/src/lang/errors/appendReport.ts @@ -1,5 +1,5 @@ -import { Report, type ReportEntry } from "./Report.js" -import { createReportEntry } from "./createReportEntry.js" +import { Report, type ReportEntry } from "./Report.ts" +import { createReportEntry } from "./createReportEntry.ts" export function appendReport(error: unknown, entry: ReportEntry): Report { // NOTE We put the most recent report entry at the end, diff --git a/src/lang/errors/createReport.ts b/src/lang/errors/createReport.ts index d8573da..abed491 100644 --- a/src/lang/errors/createReport.ts +++ b/src/lang/errors/createReport.ts @@ -1,4 +1,4 @@ -import { Report, type ReportEntry } from "./Report.js" +import { Report, type ReportEntry } from "./Report.ts" export function createReport(entry: ReportEntry): Report { return new Report([entry]) diff --git a/src/lang/errors/createReportEntry.ts b/src/lang/errors/createReportEntry.ts index 4a43190..e82dbde 100644 --- a/src/lang/errors/createReportEntry.ts +++ b/src/lang/errors/createReportEntry.ts @@ -1,4 +1,4 @@ -import { type ReportEntry } from "./Report.js" +import { type ReportEntry } from "./Report.ts" export function createReportEntry(error: unknown): ReportEntry { if (error instanceof Error) { diff --git a/src/lang/errors/index.ts b/src/lang/errors/index.ts index 047042c..8ec0f75 100644 --- a/src/lang/errors/index.ts +++ b/src/lang/errors/index.ts @@ -1,4 +1,4 @@ -export * from "./appendReport.js" -export * from "./createReport.js" -export * from "./ParsingError.js" -export * from "./Report.js" +export * from "./appendReport.ts" +export * from "./createReport.ts" +export * from "./ParsingError.ts" +export * from "./Report.ts" diff --git a/src/lang/freshen/freshenType.ts b/src/lang/freshen/freshenType.ts index d19a89f..8c34a84 100644 --- a/src/lang/freshen/freshenType.ts +++ b/src/lang/freshen/freshenType.ts @@ -1,5 +1,5 @@ -import { stringToSubscript } from "../../utils/stringToSubscript.js" -import { type Value } from "../value/index.js" +import { stringToSubscript } from "../../utils/stringToSubscript.ts" +import { type Value } from "../value/index.ts" export function freshenType( typeVarCounters: Map, diff --git a/src/lang/freshen/refreshNode.ts b/src/lang/freshen/refreshNode.ts index 6370747..3ea4228 100644 --- a/src/lang/freshen/refreshNode.ts +++ b/src/lang/freshen/refreshNode.ts @@ -1,7 +1,7 @@ -import { findPortRecordOrFail } from "../net/findPortRecordOrFail.js" -import { type Net } from "../net/index.js" -import { type Node } from "../node/index.js" -import { freshenType } from "./freshenType.js" +import { findPortRecordOrFail } from "../net/findPortRecordOrFail.ts" +import { type Net } from "../net/index.ts" +import { type Node } from "../node/index.ts" +import { freshenType } from "./freshenType.ts" /* diff --git a/src/lang/import/formatImportBinding.ts b/src/lang/import/formatImportBinding.ts index cdcb2ff..a968c12 100644 --- a/src/lang/import/formatImportBinding.ts +++ b/src/lang/import/formatImportBinding.ts @@ -1,4 +1,4 @@ -import { type ImportBinding } from "./ImportBinding.js" +import { type ImportBinding } from "./ImportBinding.ts" export function formatImportBinding(binding: ImportBinding): string { if (binding.alias) { diff --git a/src/lang/import/importAll.ts b/src/lang/import/importAll.ts index da2601a..ec9dafa 100644 --- a/src/lang/import/importAll.ts +++ b/src/lang/import/importAll.ts @@ -1,4 +1,4 @@ -import { type Mod } from "../mod/index.js" +import { type Mod } from "../mod/index.ts" export function importAll(mod: Mod, targetMod: Mod): void { for (const [name, definition] of targetMod.definitions) { diff --git a/src/lang/import/importMany.ts b/src/lang/import/importMany.ts index 27d9811..0e5e3ce 100644 --- a/src/lang/import/importMany.ts +++ b/src/lang/import/importMany.ts @@ -1,6 +1,6 @@ -import { type Mod } from "../mod/index.js" -import { type ImportBinding } from "./ImportBinding.js" -import { importOne } from "./importOne.js" +import { type Mod } from "../mod/index.ts" +import { type ImportBinding } from "./ImportBinding.ts" +import { importOne } from "./importOne.ts" export function importMany( mod: Mod, diff --git a/src/lang/import/importNodeRules.ts b/src/lang/import/importNodeRules.ts index 49ebac8..4b91549 100644 --- a/src/lang/import/importNodeRules.ts +++ b/src/lang/import/importNodeRules.ts @@ -1,5 +1,5 @@ -import { type Mod } from "../mod/index.js" -import { nodeKeyWithoutId, type NodeWithoutId } from "../node/index.js" +import { type Mod } from "../mod/index.ts" +import { nodeKeyWithoutId, type NodeWithoutId } from "../node/index.ts" export function importNodeRules( mod: Mod, diff --git a/src/lang/import/importOne.ts b/src/lang/import/importOne.ts index a68b18c..2992b0a 100644 --- a/src/lang/import/importOne.ts +++ b/src/lang/import/importOne.ts @@ -1,6 +1,6 @@ -import { type Mod } from "../mod/index.js" -import { type ImportBinding } from "./ImportBinding.js" -import { importNodeRules } from "./importNodeRules.js" +import { type Mod } from "../mod/index.ts" +import { type ImportBinding } from "./ImportBinding.ts" +import { importNodeRules } from "./importNodeRules.ts" export function importOne( mod: Mod, diff --git a/src/lang/interact/index.ts b/src/lang/interact/index.ts index 531ad8a..a61c721 100644 --- a/src/lang/interact/index.ts +++ b/src/lang/interact/index.ts @@ -1 +1 @@ -export * from "./interact.js" +export * from "./interact.ts" diff --git a/src/lang/interact/interact.ts b/src/lang/interact/interact.ts index 9720581..0c2a998 100644 --- a/src/lang/interact/interact.ts +++ b/src/lang/interact/interact.ts @@ -1,9 +1,9 @@ -import { type Checking } from "../checking/index.js" -import { compose } from "../compose/compose.js" -import { type Edge } from "../edge/index.js" -import { type Env } from "../env/index.js" -import { findRuleByPorts } from "../mod/findRuleByPorts.js" -import { deleteNodeEntry } from "../net/deleteNodeEntry.js" +import { type Checking } from "../checking/index.ts" +import { compose } from "../compose/compose.ts" +import { type Edge } from "../edge/index.ts" +import { type Env } from "../env/index.ts" +import { findRuleByPorts } from "../mod/findRuleByPorts.ts" +import { deleteNodeEntry } from "../net/deleteNodeEntry.ts" export type InteractOptions = { checking?: Checking diff --git a/src/lang/mod/Mod.ts b/src/lang/mod/Mod.ts index cff688b..07b06b7 100644 --- a/src/lang/mod/Mod.ts +++ b/src/lang/mod/Mod.ts @@ -1,9 +1,9 @@ -import { Loader } from "../../loader/index.js" -import { type Checking } from "../checking/index.js" -import { type Definition } from "../definition/index.js" -import { type Env } from "../env/Env.js" -import { type Stmt } from "../stmt/Stmt.js" -import { type RuleEntry } from "./RuleEntry.js" +import { Loader } from "../../loader/index.ts" +import { type Checking } from "../checking/index.ts" +import { type Definition } from "../definition/index.ts" +import { type Env } from "../env/Env.ts" +import { type Stmt } from "../stmt/Stmt.ts" +import { type RuleEntry } from "./RuleEntry.ts" export type Mod = { loader: Loader diff --git a/src/lang/mod/RuleEntry.ts b/src/lang/mod/RuleEntry.ts index 3413ff2..dc9ab6c 100644 --- a/src/lang/mod/RuleEntry.ts +++ b/src/lang/mod/RuleEntry.ts @@ -1,6 +1,6 @@ -import { type NodeWithoutId } from "../node/index.js" -import { type Word } from "../word/index.js" -import { type Mod } from "./Mod.js" +import { type NodeWithoutId } from "../node/index.ts" +import { type Word } from "../word/index.ts" +import { type Mod } from "./Mod.ts" export type RuleEntry = { name: string diff --git a/src/lang/mod/createMod.ts b/src/lang/mod/createMod.ts index e0b63d2..247be30 100644 --- a/src/lang/mod/createMod.ts +++ b/src/lang/mod/createMod.ts @@ -1,9 +1,9 @@ -import { Loader } from "../../loader/index.js" -import { defineBuiltinOperators } from "../builtins/defineBuiltinOperators.js" -import { createChecking } from "../checking/createChecking.js" -import { createEnv } from "../env/createEnv.js" -import { type Stmt } from "../stmt/Stmt.js" -import { type Mod } from "./Mod.js" +import { Loader } from "../../loader/index.ts" +import { defineBuiltinOperators } from "../builtins/defineBuiltinOperators.ts" +import { createChecking } from "../checking/createChecking.ts" +import { createEnv } from "../env/createEnv.ts" +import { type Stmt } from "../stmt/Stmt.ts" +import { type Mod } from "./Mod.ts" export function createMod(options: { url: URL diff --git a/src/lang/mod/define.ts b/src/lang/mod/define.ts index 1edca73..bf72a0f 100644 --- a/src/lang/mod/define.ts +++ b/src/lang/mod/define.ts @@ -1,5 +1,5 @@ -import { type Definition } from "../definition/index.js" -import { type Mod } from "./Mod.js" +import { type Definition } from "../definition/index.ts" +import { type Mod } from "./Mod.ts" export function define(mod: Mod, name: string, definition: Definition): void { const found = mod.definitions.get(name) diff --git a/src/lang/mod/defineRule.ts b/src/lang/mod/defineRule.ts index ca25701..6722082 100644 --- a/src/lang/mod/defineRule.ts +++ b/src/lang/mod/defineRule.ts @@ -1,7 +1,7 @@ -import { nodeKeyWithoutId } from "../node/nodeKeyWithoutId.js" -import { type Word } from "../word/index.js" -import { type Mod } from "./Mod.js" -import { findDefinitionOrFail } from "./findDefinitionOrFail.js" +import { nodeKeyWithoutId } from "../node/nodeKeyWithoutId.ts" +import { type Word } from "../word/index.ts" +import { type Mod } from "./Mod.ts" +import { findDefinitionOrFail } from "./findDefinitionOrFail.ts" export function defineRule( mod: Mod, diff --git a/src/lang/mod/findDefinition.ts b/src/lang/mod/findDefinition.ts index 2086d1f..0839575 100644 --- a/src/lang/mod/findDefinition.ts +++ b/src/lang/mod/findDefinition.ts @@ -1,5 +1,5 @@ -import { type Definition } from "../definition/index.js" -import { type Mod } from "./Mod.js" +import { type Definition } from "../definition/index.ts" +import { type Mod } from "./Mod.ts" export function findDefinition(mod: Mod, name: string): Definition | undefined { return mod.definitions.get(name) diff --git a/src/lang/mod/findDefinitionOrFail.ts b/src/lang/mod/findDefinitionOrFail.ts index 5a7c52a..a9de1ff 100644 --- a/src/lang/mod/findDefinitionOrFail.ts +++ b/src/lang/mod/findDefinitionOrFail.ts @@ -1,5 +1,5 @@ -import { type Definition } from "../definition/index.js" -import { type Mod } from "./Mod.js" +import { type Definition } from "../definition/index.ts" +import { type Mod } from "./Mod.ts" export function findDefinitionOrFail(mod: Mod, name: string): Definition { const definition = mod.definitions.get(name) diff --git a/src/lang/mod/findNodeRuleEntries.ts b/src/lang/mod/findNodeRuleEntries.ts index 0acb6b4..a815f5c 100644 --- a/src/lang/mod/findNodeRuleEntries.ts +++ b/src/lang/mod/findNodeRuleEntries.ts @@ -1,8 +1,8 @@ -import { type NodeWithoutId } from "../node/index.js" -import { nodeKeyWithoutId } from "../node/nodeKeyWithoutId.js" -import { type Mod } from "./Mod.js" -import { type RuleEntry } from "./RuleEntry.js" -import { hasNodeDefinition } from "./hasNodeDefinition.js" +import { type NodeWithoutId } from "../node/index.ts" +import { nodeKeyWithoutId } from "../node/nodeKeyWithoutId.ts" +import { type Mod } from "./Mod.ts" +import { type RuleEntry } from "./RuleEntry.ts" +import { hasNodeDefinition } from "./hasNodeDefinition.ts" export function findNodeRuleEntries( mod: Mod, diff --git a/src/lang/mod/findRuleByName.ts b/src/lang/mod/findRuleByName.ts index 24f89e9..0ce65ad 100644 --- a/src/lang/mod/findRuleByName.ts +++ b/src/lang/mod/findRuleByName.ts @@ -1,7 +1,7 @@ -import { type Rule } from "../rule/index.js" -import { type Mod } from "./Mod.js" -import { findDefinitionOrFail } from "./findDefinitionOrFail.js" -import { findRuleByNodes } from "./findRuleByNodes.js" +import { type Rule } from "../rule/index.ts" +import { type Mod } from "./Mod.ts" +import { findDefinitionOrFail } from "./findDefinitionOrFail.ts" +import { findRuleByNodes } from "./findRuleByNodes.ts" export function findRuleByName(mod: Mod, ruleName: string): Rule | undefined { const [firstName, secondName] = ruleName.split(" ") diff --git a/src/lang/mod/findRuleByNodes.ts b/src/lang/mod/findRuleByNodes.ts index 6c87170..66e7c27 100644 --- a/src/lang/mod/findRuleByNodes.ts +++ b/src/lang/mod/findRuleByNodes.ts @@ -1,7 +1,7 @@ -import { type NodeWithoutId } from "../node/Node.js" -import { nodeKeyWithoutId } from "../node/nodeKeyWithoutId.js" -import { type Rule } from "../rule/index.js" -import { type Mod } from "./Mod.js" +import { type NodeWithoutId } from "../node/Node.ts" +import { nodeKeyWithoutId } from "../node/nodeKeyWithoutId.ts" +import { type Rule } from "../rule/index.ts" +import { type Mod } from "./Mod.ts" export function findRuleByNodes( mod: Mod, diff --git a/src/lang/mod/findRuleByPorts.ts b/src/lang/mod/findRuleByPorts.ts index 0fdcebd..220a2e4 100644 --- a/src/lang/mod/findRuleByPorts.ts +++ b/src/lang/mod/findRuleByPorts.ts @@ -1,7 +1,7 @@ -import { type Port } from "../port/index.js" -import { type Rule } from "../rule/index.js" -import { type Mod } from "./Mod.js" -import { findRuleByNodes } from "./findRuleByNodes.js" +import { type Port } from "../port/index.ts" +import { type Rule } from "../rule/index.ts" +import { type Mod } from "./Mod.ts" +import { findRuleByNodes } from "./findRuleByNodes.ts" export function findRuleByPorts( mod: Mod, diff --git a/src/lang/mod/hasNodeDefinition.ts b/src/lang/mod/hasNodeDefinition.ts index f2231f9..0a650b1 100644 --- a/src/lang/mod/hasNodeDefinition.ts +++ b/src/lang/mod/hasNodeDefinition.ts @@ -1,6 +1,6 @@ -import { type NodeWithoutId } from "../node/index.js" -import { type Mod } from "./Mod.js" -import { findDefinition } from "./findDefinition.js" +import { type NodeWithoutId } from "../node/index.ts" +import { type Mod } from "./Mod.ts" +import { findDefinition } from "./findDefinition.ts" export function hasNodeDefinition(mod: Mod, node: NodeWithoutId): boolean { const definition = findDefinition(mod, node.name) diff --git a/src/lang/mod/index.ts b/src/lang/mod/index.ts index c97feb2..ff1fe98 100644 --- a/src/lang/mod/index.ts +++ b/src/lang/mod/index.ts @@ -1,11 +1,11 @@ -export * from "./createMod.js" -export * from "./define.js" -export * from "./defineRule.js" -export * from "./findDefinition.js" -export * from "./findDefinitionOrFail.js" -export * from "./findNodeRuleEntries.js" -export * from "./findRuleByName.js" -export * from "./findRuleByNodes.js" -export * from "./findRuleByPorts.js" -export * from "./Mod.js" -export * from "./RuleEntry.js" +export * from "./createMod.ts" +export * from "./define.ts" +export * from "./defineRule.ts" +export * from "./findDefinition.ts" +export * from "./findDefinitionOrFail.ts" +export * from "./findNodeRuleEntries.ts" +export * from "./findRuleByName.ts" +export * from "./findRuleByNodes.ts" +export * from "./findRuleByPorts.ts" +export * from "./Mod.ts" +export * from "./RuleEntry.ts" diff --git a/src/lang/net/Net.ts b/src/lang/net/Net.ts index 983bb7f..f99e081 100644 --- a/src/lang/net/Net.ts +++ b/src/lang/net/Net.ts @@ -1,7 +1,7 @@ -import { type Edge } from "../edge/index.js" -import { type Port } from "../port/index.js" -import { type Sign } from "../sign/index.js" -import { type Value } from "../value/index.js" +import { type Edge } from "../edge/index.ts" +import { type Port } from "../port/index.ts" +import { type Sign } from "../sign/index.ts" +import { type Value } from "../value/index.ts" /* diff --git a/src/lang/net/addNode.ts b/src/lang/net/addNode.ts index e1a797c..a5bd5c6 100644 --- a/src/lang/net/addNode.ts +++ b/src/lang/net/addNode.ts @@ -1,9 +1,9 @@ -import { type Mod } from "../mod/index.js" -import { type Net, type PortRecord } from "../net/index.js" -import { createNodeId } from "../node/createNodeId.js" -import { type Node } from "../node/index.js" -import { nodeKey } from "../node/nodeKey.js" -import { type PortExp } from "../port/PortExp.js" +import { type Mod } from "../mod/index.ts" +import { type Net, type PortRecord } from "../net/index.ts" +import { createNodeId } from "../node/createNodeId.ts" +import { type Node } from "../node/index.ts" +import { nodeKey } from "../node/nodeKey.ts" +import { type PortExp } from "../port/PortExp.ts" export function addNode( net: Net, diff --git a/src/lang/net/allEdges.ts b/src/lang/net/allEdges.ts index b6a9269..6432e4c 100644 --- a/src/lang/net/allEdges.ts +++ b/src/lang/net/allEdges.ts @@ -1,9 +1,9 @@ -import { type Edge } from "../edge/index.js" -import { nodeKey } from "../node/nodeKey.js" -import { type Port } from "../port/index.js" -import { type Net } from "./Net.js" -import { createNodeFromNodeEntry } from "./createNodeFromNodeEntry.js" -import { createPortFromPortEntry } from "./createPortFromPortEntry.js" +import { type Edge } from "../edge/index.ts" +import { nodeKey } from "../node/nodeKey.ts" +import { type Port } from "../port/index.ts" +import { type Net } from "./Net.ts" +import { createNodeFromNodeEntry } from "./createNodeFromNodeEntry.ts" +import { createPortFromPortEntry } from "./createPortFromPortEntry.ts" export function allEdges(net: Net): Array { const edges: Array = [] diff --git a/src/lang/net/cloneNodeEntry.ts b/src/lang/net/cloneNodeEntry.ts index 371a1e0..551a638 100644 --- a/src/lang/net/cloneNodeEntry.ts +++ b/src/lang/net/cloneNodeEntry.ts @@ -1,5 +1,5 @@ -import { type NodeEntry } from "./Net.js" -import { clonePortRecord } from "./clonePortRecord.js" +import { type NodeEntry } from "./Net.ts" +import { clonePortRecord } from "./clonePortRecord.ts" export function cloneNodeEntry(entry: NodeEntry): NodeEntry { return { ...entry, ports: clonePortRecord(entry.ports) } diff --git a/src/lang/net/clonePortEntry.ts b/src/lang/net/clonePortEntry.ts index dbacb55..284e42e 100644 --- a/src/lang/net/clonePortEntry.ts +++ b/src/lang/net/clonePortEntry.ts @@ -1,4 +1,4 @@ -import { type PortEntry } from "./Net.js" +import { type PortEntry } from "./Net.ts" export function clonePortEntry(entry: PortEntry): PortEntry { return { diff --git a/src/lang/net/clonePortRecord.ts b/src/lang/net/clonePortRecord.ts index 92f16e0..6c40d43 100644 --- a/src/lang/net/clonePortRecord.ts +++ b/src/lang/net/clonePortRecord.ts @@ -1,5 +1,5 @@ -import { type PortRecord } from "./Net.js" -import { clonePortEntry } from "./clonePortEntry.js" +import { type PortRecord } from "./Net.ts" +import { clonePortEntry } from "./clonePortEntry.ts" export function clonePortRecord(record: PortRecord): PortRecord { return Object.fromEntries( diff --git a/src/lang/net/copyConnectedComponent.ts b/src/lang/net/copyConnectedComponent.ts index 109b26a..4800c4f 100644 --- a/src/lang/net/copyConnectedComponent.ts +++ b/src/lang/net/copyConnectedComponent.ts @@ -1,9 +1,9 @@ -import { edgeEqual } from "../edge/edgeEqual.js" -import { type Node } from "../node/index.js" -import { type Net } from "./Net.js" -import { copyNode } from "./copyNode.js" -import { findPortRecordOrFail } from "./findPortRecordOrFail.js" -import { hasNode } from "./hasNode.js" +import { edgeEqual } from "../edge/edgeEqual.ts" +import { type Node } from "../node/index.ts" +import { type Net } from "./Net.ts" +import { copyNode } from "./copyNode.ts" +import { findPortRecordOrFail } from "./findPortRecordOrFail.ts" +import { hasNode } from "./hasNode.ts" export function copyConnectedComponent( net: Net, diff --git a/src/lang/net/copyNode.ts b/src/lang/net/copyNode.ts index c38718a..122303e 100644 --- a/src/lang/net/copyNode.ts +++ b/src/lang/net/copyNode.ts @@ -1,8 +1,8 @@ -import { type Node } from "../node/index.js" -import { nodeKey } from "../node/nodeKey.js" -import { type Net } from "./Net.js" -import { cloneNodeEntry } from "./cloneNodeEntry.js" -import { findNodeEntryOrFail } from "./findNodeEntryOrFail.js" +import { type Node } from "../node/index.ts" +import { nodeKey } from "../node/nodeKey.ts" +import { type Net } from "./Net.ts" +import { cloneNodeEntry } from "./cloneNodeEntry.ts" +import { findNodeEntryOrFail } from "./findNodeEntryOrFail.ts" export function copyNode(source: Net, target: Net, node: Node): void { const entry = findNodeEntryOrFail(source, node) diff --git a/src/lang/net/createNet.ts b/src/lang/net/createNet.ts index 47368c2..ad8e076 100644 --- a/src/lang/net/createNet.ts +++ b/src/lang/net/createNet.ts @@ -1,4 +1,4 @@ -import { type Net } from "./Net.js" +import { type Net } from "./Net.ts" export function createNet(): Net { return { diff --git a/src/lang/net/createNodeFromNodeEntry.ts b/src/lang/net/createNodeFromNodeEntry.ts index 772a219..857dcf1 100644 --- a/src/lang/net/createNodeFromNodeEntry.ts +++ b/src/lang/net/createNodeFromNodeEntry.ts @@ -1,5 +1,5 @@ -import { type Node } from "../node/index.js" -import { type NodeEntry } from "./Net.js" +import { type Node } from "../node/index.ts" +import { type NodeEntry } from "./Net.ts" export function createNodeFromNodeEntry(nodeEntry: NodeEntry): Node { return { diff --git a/src/lang/net/createPortFromPortEntry.ts b/src/lang/net/createPortFromPortEntry.ts index aa56fed..b71feb2 100644 --- a/src/lang/net/createPortFromPortEntry.ts +++ b/src/lang/net/createPortFromPortEntry.ts @@ -1,6 +1,6 @@ -import { type Node } from "../node/index.js" -import { type Port } from "../port/index.js" -import { type PortEntry } from "./Net.js" +import { type Node } from "../node/index.ts" +import { type Port } from "../port/index.ts" +import { type PortEntry } from "./Net.ts" export function createPortFromPortEntry( node: Node, diff --git a/src/lang/net/deleteNodeEntry.ts b/src/lang/net/deleteNodeEntry.ts index 241e6ae..0e1913f 100644 --- a/src/lang/net/deleteNodeEntry.ts +++ b/src/lang/net/deleteNodeEntry.ts @@ -1,6 +1,6 @@ -import { type Node } from "../node/index.js" -import { nodeKey } from "../node/nodeKey.js" -import { type Net } from "./Net.js" +import { type Node } from "../node/index.ts" +import { nodeKey } from "../node/nodeKey.ts" +import { type Net } from "./Net.ts" export function deleteNodeEntry(net: Net, node: Node): void { net.nodeEntries.delete(nodeKey(node)) diff --git a/src/lang/net/disconnectPort.ts b/src/lang/net/disconnectPort.ts index 5c6950c..2e063f2 100644 --- a/src/lang/net/disconnectPort.ts +++ b/src/lang/net/disconnectPort.ts @@ -1,6 +1,6 @@ -import { type Port } from "../port/index.js" -import { type Net } from "./Net.js" -import { findNodeEntry } from "./findNodeEntry.js" +import { type Port } from "../port/index.ts" +import { type Net } from "./Net.ts" +import { findNodeEntry } from "./findNodeEntry.ts" export function disconnectPort(net: Net, port: Port): Port | undefined { const nodeEntry = findNodeEntry(net, port.node) diff --git a/src/lang/net/findConnectedComponent.ts b/src/lang/net/findConnectedComponent.ts index 5a9c117..64af0c0 100644 --- a/src/lang/net/findConnectedComponent.ts +++ b/src/lang/net/findConnectedComponent.ts @@ -1,7 +1,7 @@ -import { type Node } from "../node/index.js" -import { type Net } from "./Net.js" -import { copyConnectedComponent } from "./copyConnectedComponent.js" -import { createNet } from "./createNet.js" +import { type Node } from "../node/index.ts" +import { type Net } from "./Net.ts" +import { copyConnectedComponent } from "./copyConnectedComponent.ts" +import { createNet } from "./createNet.ts" export function findConnectedComponent(net: Net, node: Node): Net { const component = createNet() diff --git a/src/lang/net/findInputPorts.ts b/src/lang/net/findInputPorts.ts index bd5630a..bdaa955 100644 --- a/src/lang/net/findInputPorts.ts +++ b/src/lang/net/findInputPorts.ts @@ -1,8 +1,8 @@ -import { type Node } from "../node/index.js" -import { type Port } from "../port/index.js" -import { type Net } from "./Net.js" -import { createPortFromPortEntry } from "./createPortFromPortEntry.js" -import { findPortRecordOrFail } from "./findPortRecordOrFail.js" +import { type Node } from "../node/index.ts" +import { type Port } from "../port/index.ts" +import { type Net } from "./Net.ts" +import { createPortFromPortEntry } from "./createPortFromPortEntry.ts" +import { findPortRecordOrFail } from "./findPortRecordOrFail.ts" export function findInputPorts(net: Net, node: Node): Array { const portRecord = findPortRecordOrFail(net, node) diff --git a/src/lang/net/findNodeEntry.ts b/src/lang/net/findNodeEntry.ts index 50e18d5..08608fd 100644 --- a/src/lang/net/findNodeEntry.ts +++ b/src/lang/net/findNodeEntry.ts @@ -1,6 +1,6 @@ -import { type Node } from "../node/index.js" -import { nodeKey } from "../node/nodeKey.js" -import { type Net, type NodeEntry } from "./Net.js" +import { type Node } from "../node/index.ts" +import { nodeKey } from "../node/nodeKey.ts" +import { type Net, type NodeEntry } from "./Net.ts" export function findNodeEntry(net: Net, node: Node): NodeEntry | undefined { return net.nodeEntries.get(nodeKey(node)) diff --git a/src/lang/net/findNodeEntryOrFail.ts b/src/lang/net/findNodeEntryOrFail.ts index 03f33bf..fa153f0 100644 --- a/src/lang/net/findNodeEntryOrFail.ts +++ b/src/lang/net/findNodeEntryOrFail.ts @@ -1,7 +1,7 @@ -import { formatNode } from "../node/formatNode.js" -import { type Node } from "../node/index.js" -import { nodeKey } from "../node/nodeKey.js" -import { type Net, type NodeEntry } from "./Net.js" +import { formatNode } from "../node/formatNode.ts" +import { type Node } from "../node/index.ts" +import { nodeKey } from "../node/nodeKey.ts" +import { type Net, type NodeEntry } from "./Net.ts" export function findNodeEntryOrFail(net: Net, node: Node): NodeEntry { const nodeEntry = net.nodeEntries.get(nodeKey(node)) diff --git a/src/lang/net/findOutputPorts.ts b/src/lang/net/findOutputPorts.ts index fecbd98..0fa21ce 100644 --- a/src/lang/net/findOutputPorts.ts +++ b/src/lang/net/findOutputPorts.ts @@ -1,8 +1,8 @@ -import { type Node } from "../node/index.js" -import { type Port } from "../port/index.js" -import { type Net } from "./Net.js" -import { createPortFromPortEntry } from "./createPortFromPortEntry.js" -import { findPortRecordOrFail } from "./findPortRecordOrFail.js" +import { type Node } from "../node/index.ts" +import { type Port } from "../port/index.ts" +import { type Net } from "./Net.ts" +import { createPortFromPortEntry } from "./createPortFromPortEntry.ts" +import { findPortRecordOrFail } from "./findPortRecordOrFail.ts" export function findOutputPorts(net: Net, node: Node): Array { const portRecord = findPortRecordOrFail(net, node) diff --git a/src/lang/net/findPortEntry.ts b/src/lang/net/findPortEntry.ts index 785e8be..fde7958 100644 --- a/src/lang/net/findPortEntry.ts +++ b/src/lang/net/findPortEntry.ts @@ -1,6 +1,6 @@ -import { type Port } from "../port/index.js" -import { type Net, type PortEntry } from "./Net.js" -import { findNodeEntry } from "./findNodeEntry.js" +import { type Port } from "../port/index.ts" +import { type Net, type PortEntry } from "./Net.ts" +import { findNodeEntry } from "./findNodeEntry.ts" export function findPortEntry(net: Net, port: Port): PortEntry | undefined { const nodeEntry = findNodeEntry(net, port.node) diff --git a/src/lang/net/findPortRecord.ts b/src/lang/net/findPortRecord.ts index 1aed46c..486113f 100644 --- a/src/lang/net/findPortRecord.ts +++ b/src/lang/net/findPortRecord.ts @@ -1,6 +1,6 @@ -import { type Node } from "../node/index.js" -import { type Net, type PortRecord } from "./Net.js" -import { findNodeEntry } from "./findNodeEntry.js" +import { type Node } from "../node/index.ts" +import { type Net, type PortRecord } from "./Net.ts" +import { findNodeEntry } from "./findNodeEntry.ts" export function findPortRecord(net: Net, node: Node): PortRecord | undefined { const nodeEntry = findNodeEntry(net, node) diff --git a/src/lang/net/findPortRecordOrFail.ts b/src/lang/net/findPortRecordOrFail.ts index edd5b66..68b3021 100644 --- a/src/lang/net/findPortRecordOrFail.ts +++ b/src/lang/net/findPortRecordOrFail.ts @@ -1,7 +1,7 @@ -import { formatNode } from "../node/formatNode.js" -import { type Node } from "../node/index.js" -import { type Net, type PortRecord } from "./Net.js" -import { findNodeEntry } from "./findNodeEntry.js" +import { formatNode } from "../node/formatNode.ts" +import { type Node } from "../node/index.ts" +import { type Net, type PortRecord } from "./Net.ts" +import { findNodeEntry } from "./findNodeEntry.ts" export function findPortRecordOrFail(net: Net, node: Node): PortRecord { const nodeEntry = findNodeEntry(net, node) diff --git a/src/lang/net/findPrincipalPort.ts b/src/lang/net/findPrincipalPort.ts index c50a2c8..8c59da4 100644 --- a/src/lang/net/findPrincipalPort.ts +++ b/src/lang/net/findPrincipalPort.ts @@ -1,8 +1,8 @@ -import { formatNode, type Node } from "../node/index.js" -import { type Port } from "../port/index.js" -import { type Net } from "./Net.js" -import { createPortFromPortEntry } from "./createPortFromPortEntry.js" -import { findPortRecordOrFail } from "./findPortRecordOrFail.js" +import { formatNode, type Node } from "../node/index.ts" +import { type Port } from "../port/index.ts" +import { type Net } from "./Net.ts" +import { createPortFromPortEntry } from "./createPortFromPortEntry.ts" +import { findPortRecordOrFail } from "./findPortRecordOrFail.ts" export function findPrincipalPort(net: Net, node: Node): Port { const portRecord = findPortRecordOrFail(net, node) diff --git a/src/lang/net/formatNet.ts b/src/lang/net/formatNet.ts index dacc981..2598356 100644 --- a/src/lang/net/formatNet.ts +++ b/src/lang/net/formatNet.ts @@ -1,6 +1,6 @@ -import { formatEdge } from "../edge/formatEdge.js" -import { type Net } from "./Net.js" -import { allEdges } from "./allEdges.js" +import { formatEdge } from "../edge/formatEdge.ts" +import { type Net } from "./Net.ts" +import { allEdges } from "./allEdges.ts" export function formatNet(net: Net): string { return allEdges(net).map(formatEdge).join("\n") diff --git a/src/lang/net/hasNode.ts b/src/lang/net/hasNode.ts index c4f7da5..3f987ed 100644 --- a/src/lang/net/hasNode.ts +++ b/src/lang/net/hasNode.ts @@ -1,6 +1,6 @@ -import { type Node } from "../node/index.js" -import { type Net } from "./Net.js" -import { findPortRecord } from "./findPortRecord.js" +import { type Node } from "../node/index.ts" +import { type Net } from "./Net.ts" +import { findPortRecord } from "./findPortRecord.ts" export function hasNode(net: Net, node: Node): boolean { return Boolean(findPortRecord(net, node)) diff --git a/src/lang/net/index.ts b/src/lang/net/index.ts index eb23373..997cd73 100644 --- a/src/lang/net/index.ts +++ b/src/lang/net/index.ts @@ -1,4 +1,4 @@ -export * from "./allEdges.js" -export * from "./copyConnectedComponent.js" -export * from "./createNet.js" -export * from "./Net.js" +export * from "./allEdges.ts" +export * from "./copyConnectedComponent.ts" +export * from "./createNet.ts" +export * from "./Net.ts" diff --git a/src/lang/net/moveConnectedComponent.ts b/src/lang/net/moveConnectedComponent.ts index cdfb10d..7c443ac 100644 --- a/src/lang/net/moveConnectedComponent.ts +++ b/src/lang/net/moveConnectedComponent.ts @@ -1,10 +1,10 @@ -import { edgeEqual } from "../edge/edgeEqual.js" -import { type Edge } from "../edge/index.js" -import { type Node } from "../node/index.js" -import { type Net } from "./Net.js" -import { findPortRecordOrFail } from "./findPortRecordOrFail.js" -import { hasNode } from "./hasNode.js" -import { moveNode } from "./moveNode.js" +import { edgeEqual } from "../edge/edgeEqual.ts" +import { type Edge } from "../edge/index.ts" +import { type Node } from "../node/index.ts" +import { type Net } from "./Net.ts" +import { findPortRecordOrFail } from "./findPortRecordOrFail.ts" +import { hasNode } from "./hasNode.ts" +import { moveNode } from "./moveNode.ts" export function moveConnectedComponent( net: Net, diff --git a/src/lang/net/moveNode.ts b/src/lang/net/moveNode.ts index 6a3e9e4..8814ad8 100644 --- a/src/lang/net/moveNode.ts +++ b/src/lang/net/moveNode.ts @@ -1,7 +1,7 @@ -import { type Node } from "../node/index.js" -import { nodeKey } from "../node/nodeKey.js" -import { type Net } from "./Net.js" -import { findNodeEntryOrFail } from "./findNodeEntryOrFail.js" +import { type Node } from "../node/index.ts" +import { nodeKey } from "../node/nodeKey.ts" +import { type Net } from "./Net.ts" +import { findNodeEntryOrFail } from "./findNodeEntryOrFail.ts" export function moveNode(source: Net, target: Net, node: Node): void { const entry = findNodeEntryOrFail(source, node) diff --git a/src/lang/net/netIsEmpty.ts b/src/lang/net/netIsEmpty.ts index cab662e..3491357 100644 --- a/src/lang/net/netIsEmpty.ts +++ b/src/lang/net/netIsEmpty.ts @@ -1,4 +1,4 @@ -import { type Net } from "./Net.js" +import { type Net } from "./Net.ts" export function netIsEmpty(net: Net): boolean { return net.activeEdges.length === 0 && net.nodeEntries.size === 0 diff --git a/src/lang/node/createNodeFromDefinition.ts b/src/lang/node/createNodeFromDefinition.ts index 87d25f9..f0bd4af 100644 --- a/src/lang/node/createNodeFromDefinition.ts +++ b/src/lang/node/createNodeFromDefinition.ts @@ -1,7 +1,7 @@ -import { type Definition } from "../definition/index.js" -import { addNode } from "../net/addNode.js" -import { type Net } from "../net/index.js" -import { type Node } from "../node/index.js" +import { type Definition } from "../definition/index.ts" +import { addNode } from "../net/addNode.ts" +import { type Net } from "../net/index.ts" +import { type Node } from "../node/index.ts" export function createNodeFromDefinition( net: Net, diff --git a/src/lang/node/createNodeId.ts b/src/lang/node/createNodeId.ts index 8381546..b4c7633 100644 --- a/src/lang/node/createNodeId.ts +++ b/src/lang/node/createNodeId.ts @@ -1,5 +1,5 @@ -import { type Mod } from "../mod/index.js" -import { globalNodeCounters } from "./globalNodeCounters.js" +import { type Mod } from "../mod/index.ts" +import { globalNodeCounters } from "./globalNodeCounters.ts" export function createNodeId(mod: Mod, name: string): string { const foundCounter = globalNodeCounters.get(name) diff --git a/src/lang/node/formatNode.ts b/src/lang/node/formatNode.ts index ecca4ce..da2c025 100644 --- a/src/lang/node/formatNode.ts +++ b/src/lang/node/formatNode.ts @@ -1,5 +1,5 @@ -import { stringToSubscript } from "../../utils/stringToSubscript.js" -import { type Node } from "../node/index.js" +import { stringToSubscript } from "../../utils/stringToSubscript.ts" +import { type Node } from "../node/index.ts" export function formatNode(node: Node): string { const subscript = stringToSubscript(node.id.toString()) diff --git a/src/lang/node/index.ts b/src/lang/node/index.ts index 3fd3560..1cc76a3 100644 --- a/src/lang/node/index.ts +++ b/src/lang/node/index.ts @@ -1,5 +1,5 @@ -export * from "./formatNode.js" -export * from "./Node.js" -export * from "./nodeEqual.js" -export * from "./nodeKey.js" -export * from "./nodeKeyWithoutId.js" +export * from "./formatNode.ts" +export * from "./Node.ts" +export * from "./nodeEqual.ts" +export * from "./nodeKey.ts" +export * from "./nodeKeyWithoutId.ts" diff --git a/src/lang/node/nodeEqual.ts b/src/lang/node/nodeEqual.ts index 2d7161c..6415bf9 100644 --- a/src/lang/node/nodeEqual.ts +++ b/src/lang/node/nodeEqual.ts @@ -1,4 +1,4 @@ -import { type Node } from "./Node.js" +import { type Node } from "./Node.ts" export function nodeEqual(x: Node, y: Node): boolean { return x.name === y.name && x.id === y.id diff --git a/src/lang/node/nodeKey.ts b/src/lang/node/nodeKey.ts index 82f9e80..1c85025 100644 --- a/src/lang/node/nodeKey.ts +++ b/src/lang/node/nodeKey.ts @@ -1,4 +1,4 @@ -import { type Node } from "./Node.js" +import { type Node } from "./Node.ts" export function nodeKey(node: Node): string { return `${node.url.href}/${node.name}#${node.id}` diff --git a/src/lang/node/nodeKeyWithoutId.ts b/src/lang/node/nodeKeyWithoutId.ts index ea04c8a..1ba5ce8 100644 --- a/src/lang/node/nodeKeyWithoutId.ts +++ b/src/lang/node/nodeKeyWithoutId.ts @@ -1,4 +1,4 @@ -import { type NodeWithoutId } from "./Node.js" +import { type NodeWithoutId } from "./Node.ts" export function nodeKeyWithoutId(node: NodeWithoutId): string { return `${node.url.href}/${node.name}` diff --git a/src/lang/port/Port.ts b/src/lang/port/Port.ts index b5350ec..328c76b 100644 --- a/src/lang/port/Port.ts +++ b/src/lang/port/Port.ts @@ -1,6 +1,6 @@ -import { type Node } from "../node/index.js" -import { type Sign } from "../sign/index.js" -import { type Value } from "../value/index.js" +import { type Node } from "../node/index.ts" +import { type Sign } from "../sign/index.ts" +import { type Value } from "../value/index.ts" export type Port = { "@type": "Value" diff --git a/src/lang/port/PortExp.ts b/src/lang/port/PortExp.ts index 4ed8aa1..dd900c5 100644 --- a/src/lang/port/PortExp.ts +++ b/src/lang/port/PortExp.ts @@ -1,4 +1,4 @@ -import { type Value } from "../value/index.js" +import { type Value } from "../value/index.ts" export type PortExp = { "@type": "PortExp" diff --git a/src/lang/port/createInputPort.ts b/src/lang/port/createInputPort.ts index c42fe97..47063c6 100644 --- a/src/lang/port/createInputPort.ts +++ b/src/lang/port/createInputPort.ts @@ -1,6 +1,6 @@ -import { type Node } from "../node/index.js" -import { type PortExp } from "../port/PortExp.js" -import { type Port } from "./Port.js" +import { type Node } from "../node/index.ts" +import { type PortExp } from "../port/PortExp.ts" +import { type Port } from "./Port.ts" export function createInputPort(node: Node, portExp: PortExp): Port { return { diff --git a/src/lang/port/createOutputPort.ts b/src/lang/port/createOutputPort.ts index 6cf27b0..879faad 100644 --- a/src/lang/port/createOutputPort.ts +++ b/src/lang/port/createOutputPort.ts @@ -1,6 +1,6 @@ -import { type Node } from "../node/index.js" -import { type PortExp } from "../port/PortExp.js" -import { type Port } from "./Port.js" +import { type Node } from "../node/index.ts" +import { type PortExp } from "../port/PortExp.ts" +import { type Port } from "./Port.ts" export function createOutputPort(node: Node, portExp: PortExp): Port { return { diff --git a/src/lang/port/index.ts b/src/lang/port/index.ts index 98eed77..b802015 100644 --- a/src/lang/port/index.ts +++ b/src/lang/port/index.ts @@ -1,2 +1,2 @@ -export * from "./Port.js" -export * from "./portEqual.js" +export * from "./Port.ts" +export * from "./portEqual.ts" diff --git a/src/lang/port/portEqual.ts b/src/lang/port/portEqual.ts index 4bbe794..61ae1f9 100644 --- a/src/lang/port/portEqual.ts +++ b/src/lang/port/portEqual.ts @@ -1,5 +1,5 @@ -import { nodeEqual } from "../node/nodeEqual.js" -import { type Port } from "./Port.js" +import { nodeEqual } from "../node/nodeEqual.ts" +import { type Port } from "./Port.ts" export function portEqual(x: Port, y: Port): boolean { return nodeEqual(x.node, y.node) && x.name === y.name diff --git a/src/lang/present/index.ts b/src/lang/present/index.ts index c54462d..8a65de3 100644 --- a/src/lang/present/index.ts +++ b/src/lang/present/index.ts @@ -1,3 +1,3 @@ -export * from "./presentNodeAsNet.js" -export * from "./presentRuleAsNets.js" -export * from "./presentWordAsEnv.js" +export * from "./presentNodeAsNet.ts" +export * from "./presentRuleAsNets.ts" +export * from "./presentWordAsEnv.ts" diff --git a/src/lang/present/presentNodeAsNet.test.ts b/src/lang/present/presentNodeAsNet.test.ts index 4ba374a..26d46dc 100644 --- a/src/lang/present/presentNodeAsNet.test.ts +++ b/src/lang/present/presentNodeAsNet.test.ts @@ -1,8 +1,8 @@ import { expect, test } from "vitest" -import { Fetcher } from "../../fetcher/index.js" -import { Loader } from "../../loader/index.js" -import { formatNet } from "../net/formatNet.js" -import { presentNodeAsNet } from "./presentNodeAsNet.js" +import { Fetcher } from "../../fetcher/index.ts" +import { Loader } from "../../loader/index.ts" +import { formatNet } from "../net/formatNet.ts" +import { presentNodeAsNet } from "./presentNodeAsNet.ts" test("presentNodeAsNet", async () => { const text = ` diff --git a/src/lang/present/presentNodeAsNet.ts b/src/lang/present/presentNodeAsNet.ts index f9cb034..25931c8 100644 --- a/src/lang/present/presentNodeAsNet.ts +++ b/src/lang/present/presentNodeAsNet.ts @@ -1,7 +1,7 @@ -import { capNodeAllPorts } from "../cap/index.js" -import { findDefinitionOrFail, type Mod } from "../mod/index.js" -import { createNet, type Net } from "../net/index.js" -import { createNodeFromDefinition } from "../node/createNodeFromDefinition.js" +import { capNodeAllPorts } from "../cap/index.ts" +import { findDefinitionOrFail, type Mod } from "../mod/index.ts" +import { createNet, type Net } from "../net/index.ts" +import { createNodeFromDefinition } from "../node/createNodeFromDefinition.ts" export function presentNodeAsNet(mod: Mod, nodeName: string): Net { const net = createNet() diff --git a/src/lang/present/presentRuleAsNets.test.ts b/src/lang/present/presentRuleAsNets.test.ts index 0c7fa31..4751a2e 100644 --- a/src/lang/present/presentRuleAsNets.test.ts +++ b/src/lang/present/presentRuleAsNets.test.ts @@ -1,8 +1,8 @@ import { expect, test } from "vitest" -import { Fetcher } from "../../fetcher/index.js" -import { Loader } from "../../loader/index.js" -import { formatNet } from "../net/formatNet.js" -import { presentRuleAsNets } from "./presentRuleAsNets.js" +import { Fetcher } from "../../fetcher/index.ts" +import { Loader } from "../../loader/index.ts" +import { formatNet } from "../net/formatNet.ts" +import { presentRuleAsNets } from "./presentRuleAsNets.ts" test("presentRuleAsNets", async () => { const text = ` diff --git a/src/lang/present/presentRuleAsNets.ts b/src/lang/present/presentRuleAsNets.ts index 03e654e..f37c9cd 100644 --- a/src/lang/present/presentRuleAsNets.ts +++ b/src/lang/present/presentRuleAsNets.ts @@ -1,14 +1,14 @@ -import { capNodeNonPrinciplePorts } from "../cap/index.js" -import { compose } from "../compose/compose.js" -import { connect } from "../connect/connect.js" -import { createEnv } from "../env/createEnv.js" -import { findRuleByName } from "../mod/findRuleByName.js" -import { findDefinitionOrFail, type Mod } from "../mod/index.js" -import { deleteNodeEntry } from "../net/deleteNodeEntry.js" -import { findPrincipalPort } from "../net/findPrincipalPort.js" -import { copyConnectedComponent, createNet, type Net } from "../net/index.js" -import { createNodeFromDefinition } from "../node/createNodeFromDefinition.js" -import { type Node } from "../node/index.js" +import { capNodeNonPrinciplePorts } from "../cap/index.ts" +import { compose } from "../compose/compose.ts" +import { connect } from "../connect/connect.ts" +import { createEnv } from "../env/createEnv.ts" +import { findRuleByName } from "../mod/findRuleByName.ts" +import { findDefinitionOrFail, type Mod } from "../mod/index.ts" +import { deleteNodeEntry } from "../net/deleteNodeEntry.ts" +import { findPrincipalPort } from "../net/findPrincipalPort.ts" +import { copyConnectedComponent, createNet, type Net } from "../net/index.ts" +import { createNodeFromDefinition } from "../node/createNodeFromDefinition.ts" +import { type Node } from "../node/index.ts" export function presentRuleAsNets(mod: Mod, ruleName: string): [Net, Net] { const env = createEnv(mod) diff --git a/src/lang/present/presentWordAsEnv.test.ts b/src/lang/present/presentWordAsEnv.test.ts index aeeb5b0..85a4527 100644 --- a/src/lang/present/presentWordAsEnv.test.ts +++ b/src/lang/present/presentWordAsEnv.test.ts @@ -1,8 +1,8 @@ import { expect, test } from "vitest" -import { Fetcher } from "../../fetcher/index.js" -import { Loader } from "../../loader/index.js" -import { formatEnv } from "../env/formatEnv.js" -import { presentWordAsEnv } from "./presentWordAsEnv.js" +import { Fetcher } from "../../fetcher/index.ts" +import { Loader } from "../../loader/index.ts" +import { formatEnv } from "../env/formatEnv.ts" +import { presentWordAsEnv } from "./presentWordAsEnv.ts" test("presentWordAsEnv", async () => { const text = ` diff --git a/src/lang/present/presentWordAsEnv.ts b/src/lang/present/presentWordAsEnv.ts index 33383a4..61ca421 100644 --- a/src/lang/present/presentWordAsEnv.ts +++ b/src/lang/present/presentWordAsEnv.ts @@ -1,10 +1,10 @@ -import { capType } from "../cap/index.js" -import { collectWords } from "../compose/collectWords.js" -import { compose } from "../compose/compose.js" -import { createEnv } from "../env/createEnv.js" -import { type Env } from "../env/index.js" -import { findDefinitionOrFail, type Mod } from "../mod/index.js" -import { formatWord } from "../word/index.js" +import { capType } from "../cap/index.ts" +import { collectWords } from "../compose/collectWords.ts" +import { compose } from "../compose/compose.ts" +import { createEnv } from "../env/createEnv.ts" +import { type Env } from "../env/index.ts" +import { findDefinitionOrFail, type Mod } from "../mod/index.ts" +import { formatWord } from "../word/index.ts" export function presentWordAsEnv(mod: Mod, name: string): Env { const definition = findDefinitionOrFail(mod, name) diff --git a/src/lang/rule/Rule.ts b/src/lang/rule/Rule.ts index 4189e63..322f28d 100644 --- a/src/lang/rule/Rule.ts +++ b/src/lang/rule/Rule.ts @@ -1,5 +1,5 @@ -import { type Mod } from "../mod/index.js" -import { type Word } from "../word/index.js" +import { type Mod } from "../mod/index.ts" +import { type Word } from "../word/index.ts" export type Rule = { mod: Mod diff --git a/src/lang/rule/index.ts b/src/lang/rule/index.ts index 6974d98..8e79b09 100644 --- a/src/lang/rule/index.ts +++ b/src/lang/rule/index.ts @@ -1 +1 @@ -export * from "./Rule.js" +export * from "./Rule.ts" diff --git a/src/lang/run/closeAllFreePorts.ts b/src/lang/run/closeAllFreePorts.ts index cc88d75..79a0280 100644 --- a/src/lang/run/closeAllFreePorts.ts +++ b/src/lang/run/closeAllFreePorts.ts @@ -1,10 +1,10 @@ -import { capInputPort } from "../cap/capInputPort.js" -import { capOutputPort } from "../cap/capOutputPort.js" -import { type Mod } from "../mod/index.js" -import { createNodeFromNodeEntry } from "../net/createNodeFromNodeEntry.js" -import { createPortFromPortEntry } from "../net/createPortFromPortEntry.js" -import { type Net } from "../net/index.js" -import { type Port } from "../port/index.js" +import { capInputPort } from "../cap/capInputPort.ts" +import { capOutputPort } from "../cap/capOutputPort.ts" +import { type Mod } from "../mod/index.ts" +import { createNodeFromNodeEntry } from "../net/createNodeFromNodeEntry.ts" +import { createPortFromPortEntry } from "../net/createPortFromPortEntry.ts" +import { type Net } from "../net/index.ts" +import { type Port } from "../port/index.ts" /* diff --git a/src/lang/run/closePort.ts b/src/lang/run/closePort.ts index baaafac..9f69dd9 100644 --- a/src/lang/run/closePort.ts +++ b/src/lang/run/closePort.ts @@ -1,8 +1,8 @@ -import { capInputPort } from "../cap/capInputPort.js" -import { capOutputPort } from "../cap/capOutputPort.js" -import { type Mod } from "../mod/index.js" -import { type Net } from "../net/index.js" -import { type Port } from "../port/index.js" +import { capInputPort } from "../cap/capInputPort.ts" +import { capOutputPort } from "../cap/capOutputPort.ts" +import { type Mod } from "../mod/index.ts" +import { type Net } from "../net/index.ts" +import { type Port } from "../port/index.ts" export function closePort(mod: Mod, component: Net, port: Port): Port { return port.sign === 1 diff --git a/src/lang/run/collectConnectedPort.ts b/src/lang/run/collectConnectedPort.ts index 236cbcf..7513919 100644 --- a/src/lang/run/collectConnectedPort.ts +++ b/src/lang/run/collectConnectedPort.ts @@ -1,9 +1,9 @@ -import { deleteNodeEntry } from "../net/deleteNodeEntry.js" -import { disconnectPort } from "../net/disconnectPort.js" -import { findPortEntry } from "../net/findPortEntry.js" -import { type Net } from "../net/index.js" -import { type Port } from "../port/index.js" -import { formatValue } from "../value/formatValue.js" +import { deleteNodeEntry } from "../net/deleteNodeEntry.ts" +import { disconnectPort } from "../net/disconnectPort.ts" +import { findPortEntry } from "../net/findPortEntry.ts" +import { type Net } from "../net/index.ts" +import { type Port } from "../port/index.ts" +import { formatValue } from "../value/formatValue.ts" export function collectConnectedPort(component: Net, capPort: Port): Port { const capPortEntry = findPortEntry(component, capPort) diff --git a/src/lang/run/index.ts b/src/lang/run/index.ts index 7d534de..0b5f6a3 100644 --- a/src/lang/run/index.ts +++ b/src/lang/run/index.ts @@ -1,4 +1,4 @@ -export * from "./closeAllFreePorts.js" -export * from "./releaseCapPorts.js" -export * from "./runNet.js" -export * from "./runPort.js" +export * from "./closeAllFreePorts.ts" +export * from "./releaseCapPorts.ts" +export * from "./runNet.ts" +export * from "./runPort.ts" diff --git a/src/lang/run/releaseCapPorts.ts b/src/lang/run/releaseCapPorts.ts index 2e0982e..054f078 100644 --- a/src/lang/run/releaseCapPorts.ts +++ b/src/lang/run/releaseCapPorts.ts @@ -1,7 +1,7 @@ -import { deleteNodeEntry } from "../net/deleteNodeEntry.js" -import { disconnectPort } from "../net/disconnectPort.js" -import { type Net } from "../net/index.js" -import { type Port } from "../port/index.js" +import { deleteNodeEntry } from "../net/deleteNodeEntry.ts" +import { disconnectPort } from "../net/disconnectPort.ts" +import { type Net } from "../net/index.ts" +import { type Port } from "../port/index.ts" export function releaseCapPorts(component: Net, capPorts: Array): void { for (const capPort of capPorts) { diff --git a/src/lang/run/runNet.ts b/src/lang/run/runNet.ts index 9c75cb1..27ca27b 100644 --- a/src/lang/run/runNet.ts +++ b/src/lang/run/runNet.ts @@ -1,7 +1,7 @@ -import { createEnv } from "../env/createEnv.js" -import { interact } from "../interact/index.js" -import { type Mod } from "../mod/index.js" -import { type Net } from "../net/index.js" +import { createEnv } from "../env/createEnv.ts" +import { interact } from "../interact/index.ts" +import { type Mod } from "../mod/index.ts" +import { type Net } from "../net/index.ts" export function runNet(mod: Mod, net: Net): void { const env = createEnv(mod, { net }) diff --git a/src/lang/run/runPort.ts b/src/lang/run/runPort.ts index 90ab777..0d9016c 100644 --- a/src/lang/run/runPort.ts +++ b/src/lang/run/runPort.ts @@ -1,13 +1,13 @@ -import { type Mod } from "../mod/index.js" -import { createNet } from "../net/createNet.js" -import { type Net } from "../net/index.js" -import { moveConnectedComponent } from "../net/moveConnectedComponent.js" -import { type Port } from "../port/index.js" -import { closeAllFreePorts } from "./closeAllFreePorts.js" -import { closePort } from "./closePort.js" -import { collectConnectedPort } from "./collectConnectedPort.js" -import { releaseCapPorts } from "./releaseCapPorts.js" -import { runNet } from "./runNet.js" +import { type Mod } from "../mod/index.ts" +import { createNet } from "../net/createNet.ts" +import { type Net } from "../net/index.ts" +import { moveConnectedComponent } from "../net/moveConnectedComponent.ts" +import { type Port } from "../port/index.ts" +import { closeAllFreePorts } from "./closeAllFreePorts.ts" +import { closePort } from "./closePort.ts" +import { collectConnectedPort } from "./collectConnectedPort.ts" +import { releaseCapPorts } from "./releaseCapPorts.ts" +import { runNet } from "./runNet.ts" export function runPort(mod: Mod, net: Net, port: Port): Port { const component = createNet() diff --git a/src/lang/sign/index.ts b/src/lang/sign/index.ts index 51c1b14..3e96024 100644 --- a/src/lang/sign/index.ts +++ b/src/lang/sign/index.ts @@ -1 +1 @@ -export * from "./Sign.js" +export * from "./Sign.ts" diff --git a/src/lang/stmt/Stmt.ts b/src/lang/stmt/Stmt.ts index 6ebf491..b59c2bf 100644 --- a/src/lang/stmt/Stmt.ts +++ b/src/lang/stmt/Stmt.ts @@ -1,5 +1,5 @@ -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" export interface Stmt { span: Span diff --git a/src/lang/stmt/index.ts b/src/lang/stmt/index.ts index b54cfa1..04a2cc1 100644 --- a/src/lang/stmt/index.ts +++ b/src/lang/stmt/index.ts @@ -1 +1 @@ -export * from "./Stmt.js" +export * from "./Stmt.ts" diff --git a/src/lang/stmts/Check.ts b/src/lang/stmts/Check.ts index 1db9150..e8d591e 100644 --- a/src/lang/stmts/Check.ts +++ b/src/lang/stmts/Check.ts @@ -1,9 +1,9 @@ -import { checkWords } from "../check/checkWords.js" -import { appendReport } from "../errors/appendReport.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" -import { type Word } from "../word/index.js" +import { checkWords } from "../check/checkWords.ts" +import { appendReport } from "../errors/appendReport.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" +import { type Word } from "../word/index.ts" // Just like unnamed `claim` + `define`. diff --git a/src/lang/stmts/Claim.ts b/src/lang/stmts/Claim.ts index 4d3f5ed..1d9af65 100644 --- a/src/lang/stmts/Claim.ts +++ b/src/lang/stmts/Claim.ts @@ -1,12 +1,12 @@ -import { definitionMaybeSpan } from "../definition/definitionMaybeSpan.js" -import { appendReport } from "../errors/appendReport.js" -import { createReport } from "../errors/createReport.js" -import { define } from "../mod/define.js" -import { findDefinition } from "../mod/findDefinition.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" -import { type Word } from "../word/index.js" +import { definitionMaybeSpan } from "../definition/definitionMaybeSpan.ts" +import { appendReport } from "../errors/appendReport.ts" +import { createReport } from "../errors/createReport.ts" +import { define } from "../mod/define.ts" +import { findDefinition } from "../mod/findDefinition.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" +import { type Word } from "../word/index.ts" export class Claim implements Stmt { constructor( diff --git a/src/lang/stmts/Compose.ts b/src/lang/stmts/Compose.ts index 0e49b21..e0014df 100644 --- a/src/lang/stmts/Compose.ts +++ b/src/lang/stmts/Compose.ts @@ -1,10 +1,10 @@ -import { compose } from "../compose/compose.js" -import { appendReport } from "../errors/appendReport.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" -import { formatWord } from "../word/formatWord.js" -import { type Word } from "../word/index.js" +import { compose } from "../compose/compose.ts" +import { appendReport } from "../errors/appendReport.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" +import { formatWord } from "../word/formatWord.ts" +import { type Word } from "../word/index.ts" export class Compose implements Stmt { constructor( diff --git a/src/lang/stmts/Define.ts b/src/lang/stmts/Define.ts index ab26c66..4568f60 100644 --- a/src/lang/stmts/Define.ts +++ b/src/lang/stmts/Define.ts @@ -1,12 +1,12 @@ -import { checkWords } from "../check/checkWords.js" -import { definitionMaybeSpan } from "../definition/definitionMaybeSpan.js" -import { appendReport } from "../errors/appendReport.js" -import { createReport } from "../errors/createReport.js" -import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" -import { type Word } from "../word/index.js" +import { checkWords } from "../check/checkWords.ts" +import { definitionMaybeSpan } from "../definition/definitionMaybeSpan.ts" +import { appendReport } from "../errors/appendReport.ts" +import { createReport } from "../errors/createReport.ts" +import { findDefinitionOrFail } from "../mod/findDefinitionOrFail.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" +import { type Word } from "../word/index.ts" export class Define implements Stmt { constructor( diff --git a/src/lang/stmts/DefineNode.ts b/src/lang/stmts/DefineNode.ts index 191cf49..1d425df 100644 --- a/src/lang/stmts/DefineNode.ts +++ b/src/lang/stmts/DefineNode.ts @@ -1,10 +1,10 @@ -import { checkNode } from "../check/checkNode.js" -import { appendReport } from "../errors/appendReport.js" -import { define } from "../mod/define.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" -import { type Word } from "../word/index.js" +import { checkNode } from "../check/checkNode.ts" +import { appendReport } from "../errors/appendReport.ts" +import { define } from "../mod/define.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" +import { type Word } from "../word/index.ts" export class DefineNode implements Stmt { constructor( diff --git a/src/lang/stmts/DefineRule.ts b/src/lang/stmts/DefineRule.ts index 90d52ed..89541f6 100644 --- a/src/lang/stmts/DefineRule.ts +++ b/src/lang/stmts/DefineRule.ts @@ -1,12 +1,12 @@ -import { checkRule } from "../check/checkRule.js" -import { checkRuleIsAboutOwnNode } from "../check/checkRuleIsAboutOwnNode.js" -import { checkRuleNodeOrder } from "../check/checkRuleNodeOrder.js" -import { appendReport } from "../errors/appendReport.js" -import { defineRule } from "../mod/defineRule.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" -import { type Word } from "../word/index.js" +import { checkRule } from "../check/checkRule.ts" +import { checkRuleIsAboutOwnNode } from "../check/checkRuleIsAboutOwnNode.ts" +import { checkRuleNodeOrder } from "../check/checkRuleNodeOrder.ts" +import { appendReport } from "../errors/appendReport.ts" +import { defineRule } from "../mod/defineRule.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" +import { type Word } from "../word/index.ts" export class DefineRule implements Stmt { constructor( diff --git a/src/lang/stmts/DefineType.ts b/src/lang/stmts/DefineType.ts index 3c2b684..3959188 100644 --- a/src/lang/stmts/DefineType.ts +++ b/src/lang/stmts/DefineType.ts @@ -1,10 +1,10 @@ -import { checkType } from "../check/checkType.js" -import { appendReport } from "../errors/appendReport.js" -import { define } from "../mod/define.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" -import { type Word } from "../word/index.js" +import { checkType } from "../check/checkType.ts" +import { appendReport } from "../errors/appendReport.ts" +import { define } from "../mod/define.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" +import { type Word } from "../word/index.ts" export class DefineType implements Stmt { constructor( diff --git a/src/lang/stmts/Import.ts b/src/lang/stmts/Import.ts index f4ebebd..88c8103 100644 --- a/src/lang/stmts/Import.ts +++ b/src/lang/stmts/Import.ts @@ -1,10 +1,10 @@ -import { appendReport } from "../errors/appendReport.js" -import { type ImportBinding } from "../import/ImportBinding.js" -import { formatImportBinding } from "../import/formatImportBinding.js" -import { importMany } from "../import/importMany.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" +import { appendReport } from "../errors/appendReport.ts" +import { type ImportBinding } from "../import/ImportBinding.ts" +import { formatImportBinding } from "../import/formatImportBinding.ts" +import { importMany } from "../import/importMany.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" export class Import implements Stmt { constructor( diff --git a/src/lang/stmts/Require.ts b/src/lang/stmts/Require.ts index de89405..540c819 100644 --- a/src/lang/stmts/Require.ts +++ b/src/lang/stmts/Require.ts @@ -1,8 +1,8 @@ -import { appendReport } from "../errors/appendReport.js" -import { importAll } from "../import/importAll.js" -import { type Mod } from "../mod/index.js" -import { type Span } from "../span/index.js" -import { type Stmt } from "../stmt/index.js" +import { appendReport } from "../errors/appendReport.ts" +import { importAll } from "../import/importAll.ts" +import { type Mod } from "../mod/index.ts" +import { type Span } from "../span/index.ts" +import { type Stmt } from "../stmt/index.ts" export class Require implements Stmt { constructor( diff --git a/src/lang/stmts/index.ts b/src/lang/stmts/index.ts index de1eac5..6bbe431 100644 --- a/src/lang/stmts/index.ts +++ b/src/lang/stmts/index.ts @@ -1,9 +1,9 @@ -export * from "./Check.js" -export * from "./Claim.js" -export * from "./Compose.js" -export * from "./Define.js" -export * from "./DefineNode.js" -export * from "./DefineRule.js" -export * from "./DefineType.js" -export * from "./Import.js" -export * from "./Require.js" +export * from "./Check.ts" +export * from "./Claim.ts" +export * from "./Compose.ts" +export * from "./Define.ts" +export * from "./DefineNode.ts" +export * from "./DefineRule.ts" +export * from "./DefineType.ts" +export * from "./Import.ts" +export * from "./Require.ts" diff --git a/src/lang/syntax/grammars/index.ts b/src/lang/syntax/grammars/index.ts index 12e9c0c..a316490 100644 --- a/src/lang/syntax/grammars/index.ts +++ b/src/lang/syntax/grammars/index.ts @@ -5,8 +5,8 @@ export const one_or_more = pt.grammars.one_or_more export const optional = pt.grammars.optional export const dashline = pt.grammars.dashline -export * from "./import_binding.js" -export * from "./label.js" -export * from "./name.js" -export * from "./stmt.js" -export * from "./word.js" +export * from "./import_binding.ts" +export * from "./label.ts" +export * from "./name.ts" +export * from "./stmt.ts" +export * from "./word.ts" diff --git a/src/lang/syntax/index.ts b/src/lang/syntax/index.ts index 750aee6..2d90cd0 100644 --- a/src/lang/syntax/index.ts +++ b/src/lang/syntax/index.ts @@ -1,6 +1,6 @@ import * as pt from "@cicada-lang/partech" -import * as grammars from "./grammars/index.js" -import * as matchers from "./matchers/index.js" +import * as grammars from "./grammars/index.ts" +import * as matchers from "./matchers/index.ts" /** diff --git a/src/lang/syntax/matchers/import_binding_matcher.ts b/src/lang/syntax/matchers/import_binding_matcher.ts index d440579..ee4f3c6 100644 --- a/src/lang/syntax/matchers/import_binding_matcher.ts +++ b/src/lang/syntax/matchers/import_binding_matcher.ts @@ -1,6 +1,6 @@ import * as pt from "@cicada-lang/partech" -import { type ImportBinding } from "../../import/ImportBinding.js" -import * as matchers from "../matchers/index.js" +import { type ImportBinding } from "../../import/ImportBinding.ts" +import * as matchers from "../matchers/index.ts" export function import_binding_matcher(tree: pt.Tree): ImportBinding { return pt.matcher({ diff --git a/src/lang/syntax/matchers/index.ts b/src/lang/syntax/matchers/index.ts index fb91127..b54e25e 100644 --- a/src/lang/syntax/matchers/index.ts +++ b/src/lang/syntax/matchers/index.ts @@ -1,5 +1,5 @@ -export * from "./import_binding_matcher.js" -export * from "./label_matcher.js" -export * from "./name_matcher.js" -export * from "./stmt_matcher.js" -export * from "./word_matcher.js" +export * from "./import_binding_matcher.ts" +export * from "./label_matcher.ts" +export * from "./name_matcher.ts" +export * from "./stmt_matcher.ts" +export * from "./word_matcher.ts" diff --git a/src/lang/syntax/matchers/stmt_matcher.ts b/src/lang/syntax/matchers/stmt_matcher.ts index d90bee1..55b6fac 100644 --- a/src/lang/syntax/matchers/stmt_matcher.ts +++ b/src/lang/syntax/matchers/stmt_matcher.ts @@ -1,7 +1,7 @@ import * as pt from "@cicada-lang/partech" -import type { Stmt } from "../../stmt/index.js" -import * as Stmts from "../../stmts/index.js" -import * as matchers from "../matchers/index.js" +import type { Stmt } from "../../stmt/index.ts" +import * as Stmts from "../../stmts/index.ts" +import * as matchers from "../matchers/index.ts" export function stmt_matcher(tree: pt.Tree): Stmt { return pt.matcher({ diff --git a/src/lang/syntax/matchers/word_matcher.ts b/src/lang/syntax/matchers/word_matcher.ts index caab95f..4178089 100644 --- a/src/lang/syntax/matchers/word_matcher.ts +++ b/src/lang/syntax/matchers/word_matcher.ts @@ -1,5 +1,5 @@ import * as pt from "@cicada-lang/partech" -import { type Word } from "../../word/index.js" +import { type Word } from "../../word/index.ts" export function word_matcher(tree: pt.Tree): Word { return pt.matcher({ diff --git a/src/lang/unify/deepWalkType.ts b/src/lang/unify/deepWalkType.ts index 602575e..d358ae3 100644 --- a/src/lang/unify/deepWalkType.ts +++ b/src/lang/unify/deepWalkType.ts @@ -1,4 +1,4 @@ -import { type Value } from "../value/index.js" +import { type Value } from "../value/index.ts" export function deepWalkType( substitution: Map, diff --git a/src/lang/unify/occurInType.ts b/src/lang/unify/occurInType.ts index 752c4cc..c300719 100644 --- a/src/lang/unify/occurInType.ts +++ b/src/lang/unify/occurInType.ts @@ -1,5 +1,5 @@ -import { type Value } from "../value/index.js" -import { walkType } from "./walkType.js" +import { type Value } from "../value/index.ts" +import { walkType } from "./walkType.ts" export function occurInType( substitution: Map, diff --git a/src/lang/unify/unifyTypes.ts b/src/lang/unify/unifyTypes.ts index b51b63e..445089d 100644 --- a/src/lang/unify/unifyTypes.ts +++ b/src/lang/unify/unifyTypes.ts @@ -1,10 +1,10 @@ -import { appendReport } from "../errors/appendReport.js" -import { createReport } from "../errors/createReport.js" -import { formatValue } from "../value/formatValue.js" -import { type Value } from "../value/index.js" -import { deepWalkType } from "./deepWalkType.js" -import { occurInType } from "./occurInType.js" -import { walkType } from "./walkType.js" +import { appendReport } from "../errors/appendReport.ts" +import { createReport } from "../errors/createReport.ts" +import { formatValue } from "../value/formatValue.ts" +import { type Value } from "../value/index.ts" +import { deepWalkType } from "./deepWalkType.ts" +import { occurInType } from "./occurInType.ts" +import { walkType } from "./walkType.ts" export function unifyTypes( substitution: Map, diff --git a/src/lang/unify/walkType.ts b/src/lang/unify/walkType.ts index 34a6078..6b4111b 100644 --- a/src/lang/unify/walkType.ts +++ b/src/lang/unify/walkType.ts @@ -1,4 +1,4 @@ -import { type Value } from "../value/index.js" +import { type Value } from "../value/index.ts" export function walkType(substitution: Map, t: Value): Value { while (t["@kind"] === "Symbol") { diff --git a/src/lang/value/Value.ts b/src/lang/value/Value.ts index 83bb43a..cffac27 100644 --- a/src/lang/value/Value.ts +++ b/src/lang/value/Value.ts @@ -1,5 +1,5 @@ -import { type Node } from "../node/index.js" -import { type Port } from "../port/index.js" +import { type Node } from "../node/index.ts" +import { type Port } from "../port/index.ts" export type Value = Port | Node | Type | Symbol | TypeTerm | Labeled diff --git a/src/lang/value/formatValue.ts b/src/lang/value/formatValue.ts index 75342d0..a62d9a7 100644 --- a/src/lang/value/formatValue.ts +++ b/src/lang/value/formatValue.ts @@ -1,5 +1,5 @@ -import { formatNode } from "../node/formatNode.js" -import { type Value } from "./Value.js" +import { formatNode } from "../node/formatNode.ts" +import { type Value } from "./Value.ts" export function formatValue(value: Value): string { switch (value["@kind"]) { diff --git a/src/lang/value/index.ts b/src/lang/value/index.ts index f12a289..65bea81 100644 --- a/src/lang/value/index.ts +++ b/src/lang/value/index.ts @@ -1,2 +1,2 @@ -export * from "./formatValue.js" -export * from "./Value.js" +export * from "./formatValue.ts" +export * from "./Value.ts" diff --git a/src/lang/word/Word.ts b/src/lang/word/Word.ts index 5ee3bf8..1040e47 100644 --- a/src/lang/word/Word.ts +++ b/src/lang/word/Word.ts @@ -1,4 +1,4 @@ -import { type Span } from "../span/index.js" +import { type Span } from "../span/index.ts" export type Word = | Call diff --git a/src/lang/word/formatWord.ts b/src/lang/word/formatWord.ts index a87bda9..a0e1e7a 100644 --- a/src/lang/word/formatWord.ts +++ b/src/lang/word/formatWord.ts @@ -1,4 +1,4 @@ -import { type Word } from "./Word.js" +import { type Word } from "./Word.ts" export function formatWord(word: Word): string { switch (word["@kind"]) { diff --git a/src/lang/word/index.ts b/src/lang/word/index.ts index 40be2d2..c094b5a 100644 --- a/src/lang/word/index.ts +++ b/src/lang/word/index.ts @@ -1,2 +1,2 @@ -export * from "./formatWord.js" -export * from "./Word.js" +export * from "./formatWord.ts" +export * from "./Word.ts" diff --git a/src/loader/Loader.ts b/src/loader/Loader.ts index 1abdc12..f014205 100644 --- a/src/loader/Loader.ts +++ b/src/loader/Loader.ts @@ -1,7 +1,7 @@ -import { Fetcher } from "../fetcher/index.js" -import { createMod } from "../lang/mod/createMod.js" -import { type Mod } from "../lang/mod/index.js" -import { parseStmts } from "../lang/syntax/index.js" +import { Fetcher } from "../fetcher/index.ts" +import { createMod } from "../lang/mod/createMod.ts" +import { type Mod } from "../lang/mod/index.ts" +import { parseStmts } from "../lang/syntax/index.ts" export class Loader { loaded: Map = new Map() diff --git a/src/loader/index.ts b/src/loader/index.ts index 753abca..488562f 100644 --- a/src/loader/index.ts +++ b/src/loader/index.ts @@ -1 +1 @@ -export * from "./Loader.js" +export * from "./Loader.ts" diff --git a/tsconfig.json b/tsconfig.json index 4b7619c..636d3a1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "module": "node16", "target": "es6", "strict": true, + "rewriteRelativeImportExtensions": true, "verbatimModuleSyntax": true, "declaration": true, "sourceMap": true,