diff --git a/package-lock.json b/package-lock.json index b0d5447..2ec4473 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0-beta.5", "license": "Apache-2.0", "dependencies": { - "@tetherto/wdk-wallet": "^1.0.0-beta.4", + "@tetherto/wdk-wallet": "^1.0.0-beta.6", "bare-node-runtime": "^1.1.4" }, "devDependencies": { @@ -516,9 +516,9 @@ "license": "MIT" }, "node_modules/@emnapi/core": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.6.0.tgz", - "integrity": "sha512-zq/ay+9fNIJJtJiZxdTnXS20PllcYMX3OE23ESc4HK/bdYu3cOWYVhsOhVnXALfU/uqJIxn5NBPd9z4v+SfoSg==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.7.1.tgz", + "integrity": "sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==", "dev": true, "license": "MIT", "optional": true, @@ -528,9 +528,9 @@ } }, "node_modules/@emnapi/runtime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.6.0.tgz", - "integrity": "sha512-obtUmAHTMjll499P+D9A3axeJFlhdjOWdKUNs/U6QIGT7V5RjcUW1xToAzjvmgTSQhDbYn/NwfTRoJcQ2rNBxA==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.7.1.tgz", + "integrity": "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==", "dev": true, "license": "MIT", "optional": true, @@ -621,9 +621,9 @@ } }, "node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "dev": true, "license": "MIT", "dependencies": { @@ -1277,57 +1277,15 @@ } }, "node_modules/@tetherto/wdk-wallet": { - "version": "1.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@tetherto/wdk-wallet/-/wdk-wallet-1.0.0-beta.4.tgz", - "integrity": "sha512-jmfnZsvGXHIoHoKrpvnJ+C3AqCozHIIe/ZcLMDHNV/gKFaYvSk1NQjJKWWbogjA58laDoHahWh0pHi2K4U33XA==", + "version": "1.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@tetherto/wdk-wallet/-/wdk-wallet-1.0.0-beta.6.tgz", + "integrity": "sha512-McEyTlNFysSpUgA8GxjMUp1RPSm2FsxlNB0ecIXWyqS52TEevjS2BRgXw/h7vUaa4gien0x8Dt4eBWf13l56Xw==", "license": "Apache-2.0", "dependencies": { - "bare-node-runtime": "1.0.3", + "bare-node-runtime": "^1.1.4", "bip39": "3.1.0" } }, - "node_modules/@tetherto/wdk-wallet/node_modules/bare-node-runtime": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/bare-node-runtime/-/bare-node-runtime-1.0.3.tgz", - "integrity": "sha512-d2paa8BENZ7OBi6P+UjU++YAotorPeBIEpwAO7oPm1HIe4txDDQ2Cy4g+HVYg7aVB9PuezhDhnBCBoE4t/IgGQ==", - "license": "Apache-2.0", - "dependencies": { - "bare-abort-controller": "^1.0.0", - "bare-assert": "^1.1.0", - "bare-async-hooks": "^0.0.0", - "bare-buffer": "^3.3.1", - "bare-console": "^6.0.1", - "bare-crypto": "^1.11.2", - "bare-dgram": "^1.0.1", - "bare-dns": "^2.1.4", - "bare-events": "^2.7.0", - "bare-fetch": "^2.5.0", - "bare-fs": "^4.2.3", - "bare-http1": "^4.0.4", - "bare-https": "^2.0.0", - "bare-inspector": "^4.0.3", - "bare-module": "^5.0.3", - "bare-net": "^2.0.2", - "bare-os": "^3.6.2", - "bare-path": "^3.0.0", - "bare-performance": "^1.0.1", - "bare-process": "^4.2.1", - "bare-querystring": "^1.0.0", - "bare-readline": "^1.1.0", - "bare-repl": "^5.0.0", - "bare-stream": "^2.7.0", - "bare-string-decoder": "^1.0.0", - "bare-subprocess": "^5.1.1", - "bare-timers": "^3.0.3", - "bare-tls": "^2.1.3", - "bare-tty": "^5.0.3", - "bare-url": "^2.2.2", - "bare-utils": "^1.5.1", - "bare-vm": "^1.0.0", - "bare-worker": "^3.0.0", - "bare-zlib": "^1.3.1" - } - }, "node_modules/@tybys/wasm-util": { "version": "0.10.1", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", @@ -1419,9 +1377,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "24.9.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.2.tgz", - "integrity": "sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==", + "version": "25.0.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.3.tgz", + "integrity": "sha512-W609buLVRVmeW693xKfzHeIV6nJGGz98uCPfeXI1ELMLXVeKYZ9m15fAMSaUPBHYLGFsVRcMmSCksQOrZV9BYA==", "dev": true, "license": "MIT", "dependencies": { @@ -1436,9 +1394,9 @@ "license": "MIT" }, "node_modules/@types/yargs": { - "version": "17.0.34", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.34.tgz", - "integrity": "sha512-KExbHVa92aJpw9WDQvzBaGVE2/Pz+pLZQloT2hjL8IqsZnV62rlPOYvNnLmf/L2dyllfVUOVBj64M0z/46eR2A==", + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", "dev": true, "license": "MIT", "dependencies": { @@ -2155,9 +2113,9 @@ } }, "node_modules/bare-addon-resolve": { - "version": "1.9.5", - "resolved": "https://registry.npmjs.org/bare-addon-resolve/-/bare-addon-resolve-1.9.5.tgz", - "integrity": "sha512-XdqrG73zLK9LDfblOJwoAxmJ+7YdfRW4ex46+f4L+wPhk7H7LDrRMAbBw8s8jkxeEFpUenyB7QHnv0ErAWd3Yg==", + "version": "1.9.6", + "resolved": "https://registry.npmjs.org/bare-addon-resolve/-/bare-addon-resolve-1.9.6.tgz", + "integrity": "sha512-hvOQY1zDK6u0rSr27T6QlULoVLwi8J2k8HHHJlxSfT7XQdQ/7bsS+AnjYkHtu/TkL+gm3aMXAKucJkJAbrDG/g==", "license": "Apache-2.0", "dependencies": { "bare-module-resolve": "^1.10.0", @@ -2190,9 +2148,9 @@ } }, "node_modules/bare-assert": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/bare-assert/-/bare-assert-1.1.0.tgz", - "integrity": "sha512-G/oDyI81+FR4Qri6nS+b4XRoh8wjuBMua3R69kIytSdXsl+VD3Qo95im2D+0cL5wXJ5kgxmdUJ0n4nYAA73yNg==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/bare-assert/-/bare-assert-1.2.0.tgz", + "integrity": "sha512-c6uvgvTJBspTDxtVnPgrBKmLgcpW3Fp72NVKDLg6oT4QjQbhGtvrkHMhGYMK1sh4vjBHOBmuUalyt9hSzV37fQ==", "license": "Apache-2.0", "dependencies": { "bare-inspect": "^3.1.2" @@ -2205,9 +2163,9 @@ "license": "Apache-2.0" }, "node_modules/bare-buffer": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/bare-buffer/-/bare-buffer-3.4.1.tgz", - "integrity": "sha512-APbIGnTPoAM1FJvbZbhSgH/2YT9QeBC43D90t4NClWdBVZDk6v9dU1JQxyWhfTrigqZAA0CPggbvFPCnOpmN6Q==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/bare-buffer/-/bare-buffer-3.4.2.tgz", + "integrity": "sha512-e3s+hh+7KsEPA9Gg1q0e6vkvMaO+vyARkDrU/LPfojg4Q2G5wj+fjr8YDFELibSokECMhJmzhJMRwPRKVqPh+g==", "license": "Apache-2.0", "engines": { "bare": ">=1.20.0" @@ -2232,9 +2190,9 @@ } }, "node_modules/bare-channel": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/bare-channel/-/bare-channel-5.2.0.tgz", - "integrity": "sha512-0w3QgrKoT5VbT2ut3JfULbPn6Kh/gEm+A0BnzCx90WqOHxFcO5OfZm6ZRgs/ap3ltQFZewCKk2bY8jgsTPSWZA==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/bare-channel/-/bare-channel-5.2.2.tgz", + "integrity": "sha512-lM5nPZKV4mWB0djziPr+FaLeoaMmNeUjlbtRZ84ad0FbZEWjlrEIj3ShufHx5xXMXgot0GZk+iLtubCYZVoSNQ==", "license": "Apache-2.0", "dependencies": { "bare-events": "^2.0.0", @@ -2246,13 +2204,13 @@ } }, "node_modules/bare-console": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/bare-console/-/bare-console-6.0.1.tgz", - "integrity": "sha512-uSE6oqMZQ5jNrJFzynNDwvgmEHW3wWwktjQ+iGWEb/XTvhNVQDfVugwF/YQ2ZO/RIfMl0P89RoCSkX5bOPjzig==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/bare-console/-/bare-console-6.0.2.tgz", + "integrity": "sha512-GzU+lAa/vCQ3ksC41fCst1nm9B9u4zpyYw6UhjeOlGjbdTWFecQsoPmvW/Md8nQCbHcjRXzendtaLW8z02aFqA==", "license": "Apache-2.0", "dependencies": { "bare-hrtime": "^2.0.0", - "bare-logger": "^1.0.0" + "bare-logger": "^2.0.0" } }, "node_modules/bare-crypto": { @@ -2330,9 +2288,9 @@ } }, "node_modules/bare-events": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.8.1.tgz", - "integrity": "sha512-oxSAxTS1hRfnyit2CL5QpAOS5ixfBjj6ex3yTNvXyY/kE719jQ/IjuESJBK2w5v4wwQRAHGseVJXx9QBYOtFGQ==", + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.8.2.tgz", + "integrity": "sha512-riJjyv1/mHLIPX4RwiK+oW9/4c3TEUeORHKefKAKnZ5kyslbN+HXowtbaVEqt4IMUB7OXlfixcs6gsFeo/jhiQ==", "license": "Apache-2.0", "peerDependencies": { "bare-abort-controller": "*" @@ -2344,9 +2302,9 @@ } }, "node_modules/bare-fetch": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/bare-fetch/-/bare-fetch-2.5.0.tgz", - "integrity": "sha512-2f/mx0hw4CDH2yX2cT7tVZGPnXcUswZCYu/EY72hHfbAipZJwZtDl8f3DsXJG+yXyPBNw3TNPicMbYPpfuaIfw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/bare-fetch/-/bare-fetch-2.5.1.tgz", + "integrity": "sha512-BdJie1S9y3TW0pzF6Q/dP95QDjlUPXexiJWSnKFIM/OHID6ITJk2XEQQ25rsGqwLqxQ4felfGkj13mC/ao27mg==", "license": "Apache-2.0", "dependencies": { "bare-form-data": "^1.1.3", @@ -2387,9 +2345,9 @@ } }, "node_modules/bare-fs": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.5.0.tgz", - "integrity": "sha512-GljgCjeupKZJNetTqxKaQArLK10vpmK28or0+RwWjEl5Rk+/xG3wkpmkv+WrcBm3q1BwHKlnhXzR8O37kcvkXQ==", + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.5.2.tgz", + "integrity": "sha512-veTnRzkb6aPHOvSKIOy60KzURfBdUflr5VReI+NSaPL6xf+XLdONQgZgpYvUuZLVQ8dCqxpBAudaOM1+KpAUxw==", "license": "Apache-2.0", "dependencies": { "bare-events": "^2.5.4", @@ -2417,21 +2375,21 @@ "license": "Apache-2.0" }, "node_modules/bare-http-parser": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/bare-http-parser/-/bare-http-parser-1.0.0.tgz", - "integrity": "sha512-ZI3EFTFp8gHshWlUWl1vZo7KdZgH1hf/mNNDm+9pDVC5fk2dIfKGPQIEciBq3cIWR4JqDQTa6qCxPCqHqVel2g==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bare-http-parser/-/bare-http-parser-1.0.1.tgz", + "integrity": "sha512-A3LTDTcELcmNJ3g5liIaS038v/BQxOhA9cjhBESn7eoV7QCuMoIRBKLDadDe08flxyLbxI2f+1l2MZ/5+HnKPA==", "license": "Apache-2.0" }, "node_modules/bare-http1": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/bare-http1/-/bare-http1-4.1.5.tgz", - "integrity": "sha512-YT6tf5R7eIt1VBBc/mpNDXqbxl21WoYGdBXT5anQz2Xt4G2w2gKjmlkDPFwDARZd5wmgH5D2iIiRWAKwbKgVTQ==", + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/bare-http1/-/bare-http1-4.1.6.tgz", + "integrity": "sha512-IbQZYJZDB+0sriMTH7sW/ygO+mfSm+d5H/qr4IUhKVH4kiGwADw3/rmSIGAnkhppS0kehbypjpmII54nBbkaNg==", "license": "Apache-2.0", "dependencies": { "bare-events": "^2.6.0", "bare-http-parser": "^1.0.0", "bare-stream": "^2.3.0", - "bare-tcp": "^2.0.3" + "bare-tcp": "^2.2.0" }, "peerDependencies": { "bare-buffer": "*", @@ -2447,13 +2405,13 @@ } }, "node_modules/bare-https": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/bare-https/-/bare-https-2.1.0.tgz", - "integrity": "sha512-Sk3RUhXr7rt1Yq4im6xoGYGKz06denjsqM60igKA0IK6Kd3qDlLLZogrWsh3hDsB2kKt60092G3SIMoD9PAR6g==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bare-https/-/bare-https-2.1.1.tgz", + "integrity": "sha512-1yamjW5TIPBoiwRDGVrTLhbsT8sWKTpDCGiNrJylVFUJD29rwhwrBud9KU/Xe1fWuVcefeRjKoyd2ztFVDv+Sw==", "license": "Apache-2.0", "dependencies": { "bare-http1": "^4.0.0", - "bare-tcp": "^2.0.0", + "bare-tcp": "^2.2.0", "bare-tls": "^2.0.0" } }, @@ -2471,9 +2429,9 @@ } }, "node_modules/bare-inspector": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/bare-inspector/-/bare-inspector-4.0.3.tgz", - "integrity": "sha512-yYk6+7tTVKJKHOja5+QBn989ETv8oVsmwoH0nCM+QYC6w5MC03GC4aQNK+lipAZSz1EaAj42WZ8Wewjpy0L9TA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/bare-inspector/-/bare-inspector-5.0.0.tgz", + "integrity": "sha512-blObRFPBK6yn0/wZbrRgkGcOuLUQUYVvkKbsEp5p3bWJB+uNrAh+qUqOijQHS6mZjGvyGCE86VERp3EiUR2TyA==", "license": "Apache-2.0", "dependencies": { "bare-events": "^2.1.0", @@ -2495,18 +2453,18 @@ } }, "node_modules/bare-logger": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bare-logger/-/bare-logger-1.2.1.tgz", - "integrity": "sha512-QeGZ+hWPzU5uJObORFuXYM8s3pqCUZLQlQdmDnQz+vkBhGpAoyr+r+FY9FovSbeGDBu/NRgezjL3L6SmkgBCew==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/bare-logger/-/bare-logger-2.0.0.tgz", + "integrity": "sha512-Oc/jYOFVXnNtIp+BLttGBnOmJU0ved1/R2uUZZNW6VXXP0f6N5v5+tc2sJan7p21VMDPvKCHV+CyUO3QL9lkaA==", "license": "Apache-2.0", "dependencies": { "bare-format": "^1.0.0" } }, "node_modules/bare-module": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/bare-module/-/bare-module-5.0.3.tgz", - "integrity": "sha512-kfXUUGQlmfwecmXKy/r78ObArT+9B/r3elLYHFe3qk4m+8tGV+iFMx7spa6f4iI72pQ+2mvgPYe4sR2zMfRBNw==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/bare-module/-/bare-module-6.1.2.tgz", + "integrity": "sha512-n/M++oHgq8KxIECboY2o9zJ4lDMRmMD2EXO90Iip8GJuS80x+Z0McCwC8dTwUkQrWG5KGuz8MpmoZitfyLQJrQ==", "license": "Apache-2.0", "dependencies": { "bare-bundle": "^1.3.0", @@ -2516,7 +2474,7 @@ "bare-url": "^2.0.1" }, "engines": { - "bare": ">=1.20.3" + "bare": ">=1.23.0" }, "peerDependencies": { "bare-buffer": "*" @@ -2528,9 +2486,9 @@ } }, "node_modules/bare-module-lexer": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/bare-module-lexer/-/bare-module-lexer-1.4.6.tgz", - "integrity": "sha512-qQM/GaXVTlDqCFBN3it8/GD419T+/bbDjWs1k2CaRlDWZtaRcPSZgf23bjVmtP/XglN5ylGPNrAiW/vOSDSDsg==", + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/bare-module-lexer/-/bare-module-lexer-1.4.7.tgz", + "integrity": "sha512-0klU4eMsjh/wcxi8FdHmNom2j2F4kmkXOhyJFL9qTaSFp2lE3m6BtbKgMHY8R5miqC9r8/IfA8wzXnC5Os14WA==", "license": "Apache-2.0", "dependencies": { "require-addon": "^1.0.2" @@ -2545,9 +2503,9 @@ } }, "node_modules/bare-module-resolve": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/bare-module-resolve/-/bare-module-resolve-1.11.2.tgz", - "integrity": "sha512-HIBu9WacMejg3Dz4X1v6lJjp7ECnwpujvuLub+8I7JJLRwJaGxWMzGYvieOoS9R1n5iRByvTmLtIdPbwjfRgiQ==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/bare-module-resolve/-/bare-module-resolve-1.12.0.tgz", + "integrity": "sha512-JrzrqlC3Tds0iKRwQs8xIIJ+FRieKA9ll0jaqpotDLZtjJPVevzRoeuUYZ5GIo1t1z7/pIRdk85Q3i/2xQLfEQ==", "license": "Apache-2.0", "dependencies": { "bare-semver": "^1.0.0" @@ -2641,82 +2599,6 @@ "bare-zlib": "^1.3.1" } }, - "node_modules/bare-node-runtime/node_modules/bare-inspector": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bare-inspector/-/bare-inspector-5.0.0.tgz", - "integrity": "sha512-blObRFPBK6yn0/wZbrRgkGcOuLUQUYVvkKbsEp5p3bWJB+uNrAh+qUqOijQHS6mZjGvyGCE86VERp3EiUR2TyA==", - "license": "Apache-2.0", - "dependencies": { - "bare-events": "^2.1.0", - "bare-http1": "^4.0.0", - "bare-stream": "^2.0.0", - "bare-url": "^2.0.0", - "bare-ws": "^2.0.0" - }, - "engines": { - "bare": ">=1.2.0" - }, - "peerDependencies": { - "bare-tcp": "*" - }, - "peerDependenciesMeta": { - "bare-tcp": { - "optional": true - } - } - }, - "node_modules/bare-node-runtime/node_modules/bare-module": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/bare-module/-/bare-module-6.1.2.tgz", - "integrity": "sha512-n/M++oHgq8KxIECboY2o9zJ4lDMRmMD2EXO90Iip8GJuS80x+Z0McCwC8dTwUkQrWG5KGuz8MpmoZitfyLQJrQ==", - "license": "Apache-2.0", - "dependencies": { - "bare-bundle": "^1.3.0", - "bare-module-lexer": "^1.0.0", - "bare-module-resolve": "^1.8.0", - "bare-path": "^3.0.0", - "bare-url": "^2.0.1" - }, - "engines": { - "bare": ">=1.23.0" - }, - "peerDependencies": { - "bare-buffer": "*" - }, - "peerDependenciesMeta": { - "bare-buffer": { - "optional": true - } - } - }, - "node_modules/bare-node-runtime/node_modules/bare-repl": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/bare-repl/-/bare-repl-6.0.1.tgz", - "integrity": "sha512-dVPUM1UJX2nWTDY3omvrgLeC7IJy3hClxblAWf+dkegz8fh/F9tMs+sB5KCpeBSZ4qvAQv92C+XDtlePqE5sdQ==", - "license": "Apache-2.0", - "dependencies": { - "bare-inspect": "^3.0.0", - "bare-module": "^6.0.1", - "bare-os": "^3.0.1", - "bare-path": "^3.0.0", - "bare-pipe": "^4.0.0", - "bare-readline": "^1.0.0", - "bare-stream": "^2.0.0", - "bare-tty": "^5.0.0" - } - }, - "node_modules/bare-node-runtime/node_modules/bare-worker": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bare-worker/-/bare-worker-4.1.0.tgz", - "integrity": "sha512-Bq+UT/nLhOzouYfkSxvAfj8ovyNpepFP+fN7gbTq7IKL67KnXLRUMm5kNb7x/C/QCgtVMIhmD89LxKrKTgDGZQ==", - "license": "Apache-2.0", - "dependencies": { - "bare-channel": "^5.1.5", - "bare-events": "^2.2.1", - "bare-module": "^6.0.1", - "bare-thread": "^1.1.3" - } - }, "node_modules/bare-os": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.2.tgz", @@ -2736,15 +2618,15 @@ } }, "node_modules/bare-performance": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bare-performance/-/bare-performance-1.2.1.tgz", - "integrity": "sha512-CnvldJmGaZ2q+pa5we87/fxife88F9Wd8Ap1mei/JZugnqn0otri6D/mBa/qkH0dpeXerjo67abg0J2BbyHkTA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/bare-performance/-/bare-performance-1.3.0.tgz", + "integrity": "sha512-ITlHSQwsnJSPjpagTtPo043LRkFgcrl9SgPsVUBXZvTeGWuNLUfMRwmwAS+35i8qnIEinySoLxwhVoJNZAIF2g==", "license": "Apache-2.0" }, "node_modules/bare-pipe": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bare-pipe/-/bare-pipe-4.1.0.tgz", - "integrity": "sha512-0TD3NUIhh7KgPMRLyEBqSXlTZ8X/jcw1ulAjmErDWwoLdIF9FdVXvbpbzyKIl45sr9ZQ4k5AKThAOlrrtZcrXg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/bare-pipe/-/bare-pipe-4.1.2.tgz", + "integrity": "sha512-btXtZLlABEDRp50cfLj9iweISqAJSNMCjeq5v0v9tBY2a7zSSqmfa2ZoE1ki2qxAvubagLUqw6VDifpsuI/qmg==", "license": "Apache-2.0", "dependencies": { "bare-events": "^2.0.0", @@ -2785,9 +2667,9 @@ "license": "Apache-2.0" }, "node_modules/bare-readline": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/bare-readline/-/bare-readline-1.1.0.tgz", - "integrity": "sha512-eOcJNzlkJN7CEKUagMFXNrDXsPrqfhxoz05SX62ZycNj+Dv/ZrvTLCHRAu9QY7xnlqWQfrNdpocqeG8hS7zQRA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/bare-readline/-/bare-readline-1.2.0.tgz", + "integrity": "sha512-cHT2Q2tLHUHOJMHC2Q+UZxBF3j7aoI65/lWOgXUIm8r65dJV3dzIC06PQx8aLOxH4AWk1B5wVEF+cWnS4tkEtw==", "license": "Apache-2.0", "dependencies": { "bare-ansi-escapes": "^2.0.0", @@ -2804,13 +2686,13 @@ } }, "node_modules/bare-repl": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/bare-repl/-/bare-repl-5.0.0.tgz", - "integrity": "sha512-7F9tnc70jPW0Qq5Qot135zXbOvT3JjMZsd8m42gVmvAXa+fjdyCxzoM4P/Dl+Xr5OEPeaKP1zEf6J5YC+Ek+7Q==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/bare-repl/-/bare-repl-6.0.1.tgz", + "integrity": "sha512-dVPUM1UJX2nWTDY3omvrgLeC7IJy3hClxblAWf+dkegz8fh/F9tMs+sB5KCpeBSZ4qvAQv92C+XDtlePqE5sdQ==", "license": "Apache-2.0", "dependencies": { "bare-inspect": "^3.0.0", - "bare-module": "^5.0.0", + "bare-module": "^6.0.1", "bare-os": "^3.0.1", "bare-path": "^3.0.0", "bare-pipe": "^4.0.0", @@ -2826,9 +2708,9 @@ "license": "Apache-2.0" }, "node_modules/bare-signals": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bare-signals/-/bare-signals-4.1.0.tgz", - "integrity": "sha512-KTEy3ihxHvAt9O07uJ8RL82GBfrkUwjypLkXFpID+eYfGasGQ7WlRkcNjhRL6krmOBhDHUNLBkbV3JvDC2Yk5g==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/bare-signals/-/bare-signals-4.2.0.tgz", + "integrity": "sha512-fNHMOdQIlYuTvMB3Oh9Apk99hLKn351+Ir8vz+khiPTcOqIyGG4uWWjdLTzxWdYGsA0eT+We3y0K74hjj2nq7A==", "license": "Apache-2.0", "dependencies": { "bare-events": "^2.5.3", @@ -2877,9 +2759,9 @@ } }, "node_modules/bare-structured-clone": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/bare-structured-clone/-/bare-structured-clone-1.5.1.tgz", - "integrity": "sha512-U2ugj6pwnBsMd3E/dajR9Cp6JHj0Q3Ir3LgZUrejM92Iig7sjiQ8ptnhry3uGC2eSjrY/FlcWKUT3SY+bLRz2w==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/bare-structured-clone/-/bare-structured-clone-1.5.2.tgz", + "integrity": "sha512-V5yevE00wUcmPGgk/O+bsEmuMRGRkwMW1Fncbl8cjH/Eu0+7g0oZSbN7oVGi19c8df9dn25NYymC0v03VVN70w==", "license": "Apache-2.0", "dependencies": { "bare-type": "^1.1.0", @@ -2902,15 +2784,14 @@ } }, "node_modules/bare-subprocess": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/bare-subprocess/-/bare-subprocess-5.1.4.tgz", - "integrity": "sha512-CkZZr2R4mpRu2+WlTs2YZVlOKJ9t2D3SLIwhYBJxnRvtoygPTnMsdc92N6/E8YXY/uhZvbM6ZhEZTt1ubU6xlw==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/bare-subprocess/-/bare-subprocess-5.2.2.tgz", + "integrity": "sha512-L6oXgQ1aWs25RtG5Ky0bDD06p3RAcVVrDDMWb1DfXpHtyEWxamcyIWUbSykxMTWrpLlmSj6ytbb6yoKehGFfmw==", "license": "Apache-2.0", "dependencies": { "bare-env": "^3.0.0", "bare-events": "^2.5.4", "bare-os": "^3.0.1", - "bare-path": "^3.0.0", "bare-pipe": "^4.0.0", "bare-url": "^2.2.2" }, @@ -2927,9 +2808,9 @@ } }, "node_modules/bare-tcp": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/bare-tcp/-/bare-tcp-2.2.0.tgz", - "integrity": "sha512-vzQjwO/g2gqBXnV2JuJGLnAhYV4l/YrWsNJr0swD3I/nh7ohBi/O1Fd9kP1NNlYq3O7E+KQY9BMnpqlHBEd0aA==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/bare-tcp/-/bare-tcp-2.2.2.tgz", + "integrity": "sha512-bYnw1AhzGlfLOD4nTceUXkhhgznZKvDuwjX1Au0VWaVitwqG40oaTvvhEQVCcK3FEwjRTiukUzHnAFsYXUI+3Q==", "license": "Apache-2.0", "dependencies": { "bare-dns": "^2.0.4", @@ -2952,12 +2833,20 @@ } }, "node_modules/bare-timers": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bare-timers/-/bare-timers-3.1.2.tgz", - "integrity": "sha512-JlJU2bdbqmYsDb6biYerjQg7SIeMUBPc7U7NP8uhY0l1IkxldF4lf37GgWYhQWS/WGuxgNnve24qnLunPf0O/w==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/bare-timers/-/bare-timers-3.2.0.tgz", + "integrity": "sha512-pBeQu+mUJzT5en5kxA6C6lJuu/9pcIcGhlqbVXXn61CETzRs9vepOMS3hXl82vFlsg3/ggtG36Q+7OZ4IP2MPw==", "license": "Apache-2.0", "engines": { "bare": ">=1.7.0" + }, + "peerDependencies": { + "bare-abort-controller": "*" + }, + "peerDependenciesMeta": { + "bare-abort-controller": { + "optional": true + } } }, "node_modules/bare-tls": { @@ -2997,9 +2886,9 @@ } }, "node_modules/bare-url": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.3.1.tgz", - "integrity": "sha512-v2yl0TnaZTdEnelkKtXZGnotiV6qATBlnNuUMrHl6v9Lmmrh9mw9RYyImPU7/4RahumSwQS1k2oKXcRfXcbjJw==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.3.2.tgz", + "integrity": "sha512-ZMq4gd9ngV5aTMa5p9+UfY0b3skwhHELaDkhEHetMdX0LRkW9kzaym4oo/Eh+Ghm0CCDuMTsRIGM/ytUc1ZYmw==", "license": "Apache-2.0", "dependencies": { "bare-path": "^3.0.0" @@ -3034,16 +2923,15 @@ } }, "node_modules/bare-worker": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/bare-worker/-/bare-worker-3.2.0.tgz", - "integrity": "sha512-oVbF3vXEMioNyFsfkV8/s7WZOnFsQH5ggr3H8ShvONIGdl22yxAtDR7zU07HUPPExbhAQ3WKPZel+DuuW+uM1A==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bare-worker/-/bare-worker-4.1.0.tgz", + "integrity": "sha512-Bq+UT/nLhOzouYfkSxvAfj8ovyNpepFP+fN7gbTq7IKL67KnXLRUMm5kNb7x/C/QCgtVMIhmD89LxKrKTgDGZQ==", "license": "Apache-2.0", "dependencies": { "bare-channel": "^5.1.5", "bare-events": "^2.2.1", - "bare-module": "^5.0.0", - "bare-os": "^3.0.1", - "bare-url": "^2.0.1" + "bare-module": "^6.0.1", + "bare-thread": "^1.1.3" } }, "node_modules/bare-ws": { @@ -3081,9 +2969,9 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.8.20", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.20.tgz", - "integrity": "sha512-JMWsdF+O8Orq3EMukbUN1QfbLK9mX2CkUmQBcW2T0s8OmdAUL5LLM/6wFwSrqXzlXB13yhyK9gTKS1rIizOduQ==", + "version": "2.9.8", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.8.tgz", + "integrity": "sha512-Y1fOuNDowLfgKOypdc9SPABfoWXuZHBOyCS4cD52IeZBhr4Md6CLLs6atcxVrzRmQ06E7hSlm5bHHApPKR/byA==", "dev": true, "license": "Apache-2.0", "bin": { @@ -3123,9 +3011,9 @@ } }, "node_modules/browserslist": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.27.0.tgz", - "integrity": "sha512-AXVQwdhot1eqLihwasPElhX2tAZiBjWdJ9i/Zcj2S6QYIjkx62OKSfnobkriB81C3l4w0rVy3Nt4jaTBltYEpw==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "dev": true, "funding": [ { @@ -3143,11 +3031,11 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.8.19", - "caniuse-lite": "^1.0.30001751", - "electron-to-chromium": "^1.5.238", - "node-releases": "^2.0.26", - "update-browserslist-db": "^1.1.4" + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" @@ -3267,9 +3155,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001751", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001751.tgz", - "integrity": "sha512-A0QJhug0Ly64Ii3eIqHu5X51ebln3k4yTUkY1j8drqpWHVreg/VLijN48cZ1bYPiqOQuqpkIKnzr/Ul8V+p6Cw==", + "version": "1.0.30001760", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001760.tgz", + "integrity": "sha512-7AAMPcueWELt1p3mi13HR/LHH0TJLT11cnwDJEs3xA4+CK/PLKeO9Kl1oru24htkyUKtkGCvAx4ohB0Ttry8Dw==", "dev": true, "funding": [ { @@ -3331,9 +3219,9 @@ } }, "node_modules/cjs-module-lexer": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.1.0.tgz", - "integrity": "sha512-UX0OwmYRYQQetfrLEZeewIFFI+wSTofC+pMBLNuH3RUuu/xzG1oz84UCEDOSoQlN3fZ4+AzmV50ZYvGqkMh9yA==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.1.1.tgz", + "integrity": "sha512-+CmxIZ/L2vNcEfvNtLdU0ZQ6mbq3FZnwAP2PPTiKP+1QOoKwlKlPgb8UKV0Dds7QVaMnHm+FwSft2VB0s/SLjQ==", "dev": true, "license": "MIT" }, @@ -3583,9 +3471,9 @@ } }, "node_modules/dedent": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.0.tgz", - "integrity": "sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.1.tgz", + "integrity": "sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==", "dev": true, "license": "MIT", "peerDependencies": { @@ -3696,9 +3584,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.243", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.243.tgz", - "integrity": "sha512-ZCphxFW3Q1TVhcgS9blfut1PX8lusVi2SvXQgmEEnK4TCmE1JhH2JkjJN+DNt0pJJwfBri5AROBnz2b/C+YU9g==", + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", "dev": true, "license": "ISC" }, @@ -3733,9 +3621,9 @@ } }, "node_modules/es-abstract": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz", - "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==", + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz", + "integrity": "sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==", "dev": true, "license": "MIT", "dependencies": { @@ -3822,27 +3710,27 @@ } }, "node_modules/es-iterator-helpers": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz", - "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.2.tgz", + "integrity": "sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w==", "dev": true, "license": "MIT", "dependencies": { "call-bind": "^1.0.8", - "call-bound": "^1.0.3", + "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-abstract": "^1.23.6", + "es-abstract": "^1.24.1", "es-errors": "^1.3.0", - "es-set-tostringtag": "^2.0.3", + "es-set-tostringtag": "^2.1.0", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.6", + "get-intrinsic": "^1.3.0", "globalthis": "^1.0.4", "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", "has-proto": "^1.2.0", "has-symbols": "^1.1.0", "internal-slot": "^1.1.0", - "iterator.prototype": "^1.1.4", + "iterator.prototype": "^1.1.5", "safe-array-concat": "^1.1.3" }, "engines": { @@ -4503,9 +4391,9 @@ } }, "node_modules/eslint/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "dev": true, "license": "MIT", "dependencies": { @@ -5048,9 +4936,9 @@ } }, "node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", "dev": true, "license": "ISC", "dependencies": { @@ -6554,9 +6442,9 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", "dev": true, "license": "MIT", "dependencies": { @@ -6933,9 +6821,9 @@ "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.26", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.26.tgz", - "integrity": "sha512-S2M9YimhSjBSvYnlr5/+umAnPHE++ODwt5e2Ij6FoX45HA/s4vHdkDx1eax2pAPeAOqu4s9b7ppahsyEFdVqQA==", + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "dev": true, "license": "MIT" }, @@ -7614,13 +7502,12 @@ } }, "node_modules/require-addon": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/require-addon/-/require-addon-1.1.0.tgz", - "integrity": "sha512-KbXAD5q2+v1GJnkzd8zzbOxchTkStSyJZ9QwoCq3QwEXAaIlG3wDYRZGzVD357jmwaGY7hr5VaoEAL0BkF0Kvg==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/require-addon/-/require-addon-1.2.0.tgz", + "integrity": "sha512-VNPDZlYgIYQwWp9jMTzljx+k0ZtatKlcvOhktZ/anNPI3dQ9NXk7cq2U4iJ1wd9IrytRnYhyEocFWbkdPb+MYA==", "license": "Apache-2.0", "dependencies": { - "bare-addon-resolve": "^1.3.0", - "bare-url": "^2.1.0" + "bare-addon-resolve": "^1.3.0" }, "engines": { "bare": ">=1.10.0" @@ -8808,9 +8695,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", - "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index 8d66cd7..eb07b59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tetherto/wdk", - "version": "1.0.0-beta.4", + "version": "1.0.0-beta.5", "description": "A flexible manager that can register and manage multiple wallet instances for different blockchains dynamically.", "keywords": [ "wdk", @@ -23,7 +23,7 @@ "test:coverage": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage" }, "dependencies": { - "@tetherto/wdk-wallet": "^1.0.0-beta.4", + "@tetherto/wdk-wallet": "^1.0.0-beta.6", "bare-node-runtime": "^1.1.4" }, "devDependencies": { diff --git a/src/wallet-account-with-protocols.js b/src/wallet-account-with-protocols.js index b490df6..245624d 100644 --- a/src/wallet-account-with-protocols.js +++ b/src/wallet-account-with-protocols.js @@ -22,6 +22,8 @@ import { IWalletAccount, NotImplementedError } from '@tetherto/wdk-wallet' /** @typedef {import('@tetherto/wdk-wallet/protocols').ILendingProtocol} ILendingProtocol */ +/** @typedef {import('@tetherto/wdk-wallet/protocols').IFiatProtocol} IFiatProtocol */ + /** @interface */ export class IWalletAccountWithProtocols extends IWalletAccount { /** @@ -30,7 +32,7 @@ export class IWalletAccountWithProtocols extends IWalletAccount { * The label must be unique in the scope of the account and the type of protocol (i.e., there can’t be two protocols of the same * type bound to the same account with the same label). * - * @template {typeof SwapProtocol | typeof BridgeProtocol | typeof LendingProtocol} P + * @template {typeof SwapProtocol | typeof BridgeProtocol | typeof LendingProtocol | typeof FiatProtocol} P * @param {string} label - The label. * @param {P} Protocol - The protocol class. * @param {ConstructorParameters

[1]} config - The protocol configuration. @@ -72,4 +74,15 @@ export class IWalletAccountWithProtocols extends IWalletAccount { getLendingProtocol (label) { throw new NotImplementedError('getLendingProtocol(label)') } + + /** + * Returns the fiat protocol with the given label. + * + * @param {string} label - The label. + * @returns {IFiatProtocol} The fiat protocol. + * @throws {Error} If no fiat protocol has been registered on this account with the given label. + */ + getFiatProtocol (label) { + throw new NotImplementedError('getFiatProtocol(label)') + } } diff --git a/src/wdk-manager.js b/src/wdk-manager.js index 3ae6fa3..4e5cc4e 100644 --- a/src/wdk-manager.js +++ b/src/wdk-manager.js @@ -16,7 +16,7 @@ import WalletManager from '@tetherto/wdk-wallet' -import { SwapProtocol, BridgeProtocol, LendingProtocol } from '@tetherto/wdk-wallet/protocols' +import { SwapProtocol, BridgeProtocol, LendingProtocol, FiatProtocol } from '@tetherto/wdk-wallet/protocols' /** @typedef {import('@tetherto/wdk-wallet').IWalletAccount} IWalletAccount */ @@ -45,7 +45,7 @@ export default class WDK { this._wallets = new Map() /** @private */ - this._protocols = { swap: { }, bridge: { }, lending: { } } + this._protocols = { swap: { }, bridge: { }, lending: { }, fiat: { } } /** @private */ this._middlewares = { } @@ -98,7 +98,7 @@ export default class WDK { * same type bound to the same blockchain with the same label). * * @see {@link IWalletAccountWithProtocols#registerProtocol} to register protocols only for specific accounts. - * @template {typeof SwapProtocol | typeof BridgeProtocol | typeof LendingProtocol} P + * @template {typeof SwapProtocol | typeof BridgeProtocol | typeof LendingProtocol | typeof FiatProtocol} P * @param {string} blockchain - The name of the blockchain the protocol must be bound to. Can be any string (e.g., "ethereum"). * @param {string} label - The label. * @param {P} Protocol - The protocol class. @@ -118,6 +118,10 @@ export default class WDK { this._protocols.lending[blockchain] ??= { } this._protocols.lending[blockchain][label] = { Protocol, config } + } else if (Protocol.prototype instanceof FiatProtocol) { + this._protocols.fiat[blockchain] ??= { } + + this._protocols.fiat[blockchain][label] = { Protocol, config } } return this @@ -229,7 +233,7 @@ export default class WDK { /** @private */ _registerProtocols (account, { blockchain }) { - const protocols = { swap: { }, bridge: { }, lending: { } } + const protocols = { swap: { }, bridge: { }, lending: { }, fiat: { } } account.registerProtocol = (label, Protocol, config) => { if (Protocol.prototype instanceof SwapProtocol) { @@ -238,6 +242,8 @@ export default class WDK { protocols.bridge[label] = new Protocol(account, config) } else if (Protocol.prototype instanceof LendingProtocol) { protocols.lending[label] = new Protocol(account, config) + } else if (Protocol.prototype instanceof FiatProtocol) { + protocols.fiat[label] = new Protocol(account, config) } return account @@ -290,5 +296,21 @@ export default class WDK { throw new Error(`No lending protocol registered for label: ${label}.`) } + + account.getFiatProtocol = (label) => { + if (this._protocols.fiat[blockchain]?.[label]) { + const { Protocol, config } = this._protocols.fiat[blockchain][label] + + const protocol = new Protocol(account, config) + + return protocol + } + + if (protocols.fiat[label]) { + return protocols.fiat[label] + } + + throw new Error(`No fiat protocol registered for label: ${label}.`) + } } } diff --git a/types/src/wallet-account-with-protocols.d.ts b/types/src/wallet-account-with-protocols.d.ts index 70d8fc1..e06be47 100644 --- a/types/src/wallet-account-with-protocols.d.ts +++ b/types/src/wallet-account-with-protocols.d.ts @@ -6,13 +6,13 @@ export interface IWalletAccountWithProtocols extends IWalletAccount { * The label must be unique in the scope of the account and the type of protocol (i.e., there can’t be two protocols of the same * type bound to the same account with the same label). * - * @template {typeof SwapProtocol | typeof BridgeProtocol | typeof LendingProtocol} P + * @template {typeof SwapProtocol | typeof BridgeProtocol | typeof LendingProtocol | typeof FiatProtocol} P * @param {string} label - The label. * @param {P} Protocol - The protocol class. * @param {ConstructorParameters

[1]} config - The protocol configuration. * @returns {IWalletAccountWithProtocols} The account. */ - registerProtocol

(label: string, Protocol: P, config: ConstructorParameters

[1]): IWalletAccountWithProtocols; + registerProtocol

(label: string, Protocol: P, config: ConstructorParameters

[1]): IWalletAccountWithProtocols; /** * Returns the swap protocol with the given label. * @@ -37,9 +37,18 @@ export interface IWalletAccountWithProtocols extends IWalletAccount { * @throws {Error} If no lending protocol has been registered on this account with the given label. */ getLendingProtocol(label: string): ILendingProtocol; + /** + * Returns the fiat protocol with the given label. + * + * @param {string} label - The label. + * @returns {IFiatProtocol} The fiat protocol. + * @throws {Error} If no fiat protocol has been registered on this account with the given label. + */ + getFiatProtocol(label: string): IFiatProtocol; } export type ISwapProtocol = import("@tetherto/wdk-wallet/protocols").ISwapProtocol; export type IBridgeProtocol = import("@tetherto/wdk-wallet/protocols").IBridgeProtocol; export type ILendingProtocol = import("@tetherto/wdk-wallet/protocols").ILendingProtocol; +export type IFiatProtocol = import("@tetherto/wdk-wallet/protocols").IFiatProtocol; import { IWalletAccount } from "@tetherto/wdk-wallet"; -import { SwapProtocol, BridgeProtocol, LendingProtocol } from "@tetherto/wdk-wallet/protocols"; +import { SwapProtocol, BridgeProtocol, LendingProtocol, FiatProtocol } from "@tetherto/wdk-wallet/protocols"; diff --git a/types/src/wdk-manager.d.ts b/types/src/wdk-manager.d.ts index f82c2d4..e3ecee3 100644 --- a/types/src/wdk-manager.d.ts +++ b/types/src/wdk-manager.d.ts @@ -44,14 +44,14 @@ export default class WdkManager { * same type bound to the same blockchain with the same label). * * @see {@link IWalletAccountWithProtocols#registerProtocol} to register protocols only for specific accounts. - * @template {typeof SwapProtocol | typeof BridgeProtocol | typeof LendingProtocol} P + * @template {typeof SwapProtocol | typeof BridgeProtocol | typeof LendingProtocol | typeof FiatProtocol} P * @param {string} blockchain - The name of the blockchain the protocol must be bound to. Can be any string (e.g., "ethereum"). * @param {string} label - The label. * @param {P} Protocol - The protocol class. * @param {ConstructorParameters

[1]} config - The protocol configuration. * @returns {WdkManager} The wdk manager. */ - registerProtocol

(blockchain: string, label: string, Protocol: P, config: ConstructorParameters

[1]): WdkManager; + registerProtocol

(blockchain: string, label: string, Protocol: P, config: ConstructorParameters

[1]): WDK; /** * Registers a new middleware to the wdk manager. * @@ -105,3 +105,4 @@ import WalletManager from "@tetherto/wdk-wallet"; import { SwapProtocol } from "@tetherto/wdk-wallet/protocols"; import { BridgeProtocol } from "@tetherto/wdk-wallet/protocols"; import { LendingProtocol } from "@tetherto/wdk-wallet/protocols"; +import { FiatProtocol } from "@tetherto/wdk-wallet/protocols";