diff --git a/.eslintrc b/.eslintrc index f1a427e..6fe1f8f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -13,6 +13,7 @@ ], "rules": { "no-empty-function": "off", - "@typescript-eslint/no-empty-function": "off" + "@typescript-eslint/no-empty-function": "off", + "@typescript-eslint/no-explicit-any": "off" } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 9a01ada..e6ddc52 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,8 @@ "dependencies": { "bs58": "4.0.1", "elliptic": "6.5.4", - "lodash": "4.17.21" + "lodash": "4.17.21", + "zod": "3.22.4" }, "devDependencies": { "@types/bs58": "4.0.1", @@ -49,12 +50,12 @@ } }, "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", "dev": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/gen-mapping": "^0.1.0", "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { @@ -62,119 +63,48 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.4.tgz", + "integrity": "sha512-r1IONyb6Ia+jYR2vvIDhdWdlTGhqbBoFqLTQidzZ4kepUFH15ejXvFHxCVbtl7BOXIudsIubf4E81xeA3h3IXA==", "dev": true, "dependencies": { - "@babel/highlight": "^7.22.13", + "@babel/highlight": "^7.23.4", "chalk": "^2.4.2" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/code-frame/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/code-frame/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/code-frame/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/compat-data": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.3.tgz", - "integrity": "sha512-BmR4bWbDIoFJmJ9z2cZ8Gmm2MXgEDgjdWgpKmKWUt54UGFJdlj31ECtbaDvCG/qVdG3AQ1SfpZEs01lUFbzLOQ==", + "version": "7.20.14", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.14.tgz", + "integrity": "sha512-0YpKHD6ImkWMEINCyDAD0HLLUH/lPCefG8ld9it8DJB2wnApraKuhgYTvTY1z7UFIfBTGy5LwncZ+5HWWGbhFw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.3.tgz", - "integrity": "sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==", + "version": "7.20.12", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz", + "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==", "dev": true, "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.3", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.23.2", - "@babel/parser": "^7.23.3", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.3", - "@babel/types": "^7.23.3", - "convert-source-map": "^2.0.0", + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.20.7", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helpers": "^7.20.7", + "@babel/parser": "^7.20.7", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.12", + "@babel/types": "^7.20.7", + "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" + "json5": "^2.2.2", + "semver": "^6.3.0" }, "engines": { "node": ">=6.9.0" @@ -184,22 +114,19 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true }, "node_modules/@babel/generator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.3.tgz", - "integrity": "sha512-keeZWAV4LU3tW0qRi19HRpabC/ilM0HRBBzf9/k8FFiG4KVpiv0FIy4hHfLfFQZNhziCTPTmd59zoyv6DNISzg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.4.tgz", + "integrity": "sha512-esuS49Cga3HcThFNebGhlgsrVLkvhqvYDTzgjfFFlHJcIfLe5jFmRRfCQ1KuBfc4Jrtn3ndLgKWAKjBE+IraYQ==", "dev": true, "dependencies": { - "@babel/types": "^7.23.3", + "@babel/types": "^7.23.4", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" @@ -208,29 +135,37 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { - "node": ">=6.9.0" + "node": ">=6.0.0" } }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", + "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-environment-visitor": { @@ -268,34 +203,34 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", "dev": true, "dependencies": { - "@babel/types": "^7.22.15" + "@babel/types": "^7.18.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.11.tgz", + "integrity": "sha512-uRy78kN4psmji1s2QtbtcCSaj/LILFDp0f/ymhpQH5QY3nljUZCaNWz9X1dEj/8MBdBEFECs7yRhKn8i7NjZgg==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.20.2", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.10", + "@babel/types": "^7.20.7" }, "engines": { "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-plugin-utils": { @@ -308,12 +243,12 @@ } }, "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", + "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", "dev": true, "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.20.2" }, "engines": { "node": ">=6.9.0" @@ -332,9 +267,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -350,32 +285,32 @@ } }, "node_modules/@babel/helper-validator-option": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", - "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.2.tgz", - "integrity": "sha512-lzchcp8SjTSVe/fPmLwtWVBFC7+Tbn8LGHDVfDp9JGxpAY5opSaEFgt8UQvrnECWOTdji2mOWMz1rOhkHscmGQ==", + "version": "7.20.13", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.13.tgz", + "integrity": "sha512-nzJ0DWCL3gB5RCXbUO3KIMMsBY2Eqbx8mBpKGE/02PgyRQFcPQLbkQ1vyy596mZLaP+dAfD+R4ckASzNVmW3jg==", "dev": true, "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.23.0" + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.13", + "@babel/types": "^7.20.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.20", @@ -386,81 +321,10 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/parser": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.3.tgz", - "integrity": "sha512-uVsWNvlVsIninV2prNz/3lHCb+5CJ+e+IUBfbjToAHODtfGYLfCFuY4AU7TskI+dAKk+njsPiBjq1gKTvZOBaw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.4.tgz", + "integrity": "sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -661,19 +525,19 @@ } }, "node_modules/@babel/traverse": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.3.tgz", - "integrity": "sha512-+K0yF1/9yR0oHdE0StHuEj3uTPzwwbrLGfNOndVJVV2TqA5+j3oljJUb4nmB954FLGjNem976+B+eDuLIjesiQ==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.4.tgz", + "integrity": "sha512-IYM8wSUwunWTB6tFC2dkKZhxbIjHoWemdK+3f8/wq8aKhbUscxD5MX72ubd90fxvFknaLPeGw5ycU84V1obHJg==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.3", + "@babel/code-frame": "^7.23.4", + "@babel/generator": "^7.23.4", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.3", - "@babel/types": "^7.23.3", + "@babel/parser": "^7.23.4", + "@babel/types": "^7.23.4", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -681,22 +545,13 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/types": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.3.tgz", - "integrity": "sha512-OZnvoH2l8PK5eUvEcUyCt/sXgr/h+UWpVuBbOljwcrAgUl6lpchoQ++PHGyQy1AtYnVA6CEq3y5xeEI10brpXw==", + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.4.tgz", + "integrity": "sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-string-parser": "^7.23.4", "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, @@ -784,6 +639,51 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@eslint/js": { "version": "8.53.0", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.53.0.tgz", @@ -938,113 +838,100 @@ "node": ">=8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" + "engines": { + "node": ">=8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/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==", + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "p-locate": "^4.1.0" + "color-convert": "^2.0.1" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=8" + "node": ">=7.0.0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/@jest/console": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", - "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, "node_modules/@jest/core": { @@ -1094,6 +981,76 @@ } } }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@jest/environment": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", @@ -1209,91 +1166,280 @@ } } }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "@sinclair/typebox": "^0.27.8" + "color-convert": "^2.0.1" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@jest/source-map": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", - "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@jest/test-result": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", - "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "@jest/console": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=7.0.0" } }, - "node_modules/@jest/test-sequencer": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", - "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "dependencies": { - "@jest/test-result": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "slash": "^3.0.0" - }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, - "node_modules/@jest/transform": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", - "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz", + "integrity": "sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==", "dev": true, "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=10" } }, - "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "node_modules/@jest/reporters/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@jest/reporters/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, "dependencies": { @@ -1308,24 +1454,93 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", + "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", "dev": true, "engines": { "node": ">=6.0.0" @@ -1341,9 +1556,9 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", "dev": true }, "node_modules/@jridgewell/trace-mapping": { @@ -1521,9 +1736,9 @@ "dev": true }, "node_modules/@types/babel__core": { - "version": "7.20.4", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.4.tgz", - "integrity": "sha512-mLnSC22IC4vcWiuObSRjrLd9XcBTGf59vUSoq2jkQDJ/QQ8PMI9rSuzE+aEV8karUMbskw07bKYoUJCKTUaygg==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, "dependencies": { "@babel/parser": "^7.20.7", @@ -1562,9 +1777,9 @@ } }, "node_modules/@types/bn.js": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.5.tgz", - "integrity": "sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.0.tgz", + "integrity": "sha512-QSSVYj7pYFN49kW77o2s9xTCwZ8F2xLbjLLSEVh8D2F4JUhZtPAGOFLTD+ffqksBx/u4cE/KImFjyhqCjn/LIA==", "dev": true, "dependencies": { "@types/node": "*" @@ -1604,24 +1819,24 @@ } }, "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", "dev": true }, "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", "dev": true, "dependencies": { "@types/istanbul-lib-coverage": "*" } }, "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, "dependencies": { "@types/istanbul-lib-report": "*" @@ -1638,9 +1853,9 @@ } }, "node_modules/@types/js-levenshtein": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@types/js-levenshtein/-/js-levenshtein-1.1.3.tgz", - "integrity": "sha512-jd+Q+sD20Qfu9e2aEXogiO3vpOC1PYJOUdyN9gvs4Qrvkg4wF43L5OhqrPeokdv8TL0/mXoYfpkcoGZMNN2pkQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/js-levenshtein/-/js-levenshtein-1.1.1.tgz", + "integrity": "sha512-qC4bCqYGy1y/NP7dDVr7KJarn+PbX1nSpwA7JXdu0HxT3QYjO8MJ+cntENtHFVy2dRAyBV23OZ6MxsW1AM1L8g==", "dev": true }, "node_modules/@types/json-schema": { @@ -1675,15 +1890,15 @@ } }, "node_modules/@types/semver": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.5.tgz", - "integrity": "sha512-+d+WYC1BxJ6yVOgUgzK8gWvp5qF8ssV5r4nsDcZWKRWcDQLQ619tvWAxJQYGgBrO1MnLJC7a5GtiYsAoQ47dJg==", + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", "dev": true }, "node_modules/@types/stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, "node_modules/@types/statuses": { @@ -1693,18 +1908,18 @@ "dev": true }, "node_modules/@types/yargs": { - "version": "17.0.31", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.31.tgz", - "integrity": "sha512-bocYSx4DI8TmdlvxqGpVNXOgCNR1Jj0gNPhhAY+iz1rgKDAaYrAYdFYnhDV1IFuiuVc9HkOwyDcFxaTElF3/wg==", + "version": "17.0.22", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.22.tgz", + "integrity": "sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g==", "dev": true, "dependencies": { "@types/yargs-parser": "*" } }, "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", "dev": true }, "node_modules/@types/yauzl": { @@ -1752,6 +1967,39 @@ } } }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/@typescript-eslint/parser": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.11.0.tgz", @@ -1864,6 +2112,39 @@ } } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/@typescript-eslint/utils": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.11.0.tgz", @@ -1889,6 +2170,39 @@ "eslint": "^7.0.0 || ^8.0.0" } }, + "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/@typescript-eslint/visitor-keys": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.11.0.tgz", @@ -1976,18 +2290,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -1998,18 +2300,15 @@ } }, "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "color-convert": "^1.9.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=4" } }, "node_modules/anymatch": { @@ -2026,10 +2325,13 @@ } }, "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } }, "node_modules/array-union": { "version": "2.1.0", @@ -2079,45 +2381,90 @@ "@babel/core": "^7.8.0" } }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" + "color-convert": "^2.0.1" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/babel-plugin-istanbul/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/babel-plugin-jest-hoist": { @@ -2218,9 +2565,9 @@ } }, "node_modules/big-integer": { - "version": "1.6.51", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", "dev": true, "engines": { "node": ">=0.6" @@ -2246,6 +2593,20 @@ "readable-stream": "^3.4.0" } }, + "node_modules/bl/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/bn.js": { "version": "4.12.0", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", @@ -2288,12 +2649,12 @@ "node_modules/brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" + "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" }, "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "version": "4.21.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", + "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", "dev": true, "funding": [ { @@ -2303,17 +2664,13 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" } ], "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" }, "bin": { "browserslist": "cli.js" @@ -2337,7 +2694,7 @@ "node_modules/bs58": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", "dependencies": { "base-x": "^3.0.2" } @@ -2424,9 +2781,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001563", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001563.tgz", - "integrity": "sha512-na2WUmOxnwIZtwnFI2CZ/3er0wdNzU7hN+cPYz/z2ajHThnkWjNBOpEPP4n+4r2WPM847JaMotaJE3bnfzjyKw==", + "version": "1.0.30001450", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001450.tgz", + "integrity": "sha512-qMBmvmQmFXaSxexkjjfMvD5rnDL0+m+dUMZKoDYsGG8iZN29RuYh9eRoMvKsT6uMAWlyUUGDEQGJJYjzCIO9ew==", "dev": true, "funding": [ { @@ -2436,27 +2793,21 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" } ] }, "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=4" } }, "node_modules/char-regex": { @@ -2501,18 +2852,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/chromium-bidi": { "version": "0.4.33", "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.33.tgz", @@ -2527,9 +2866,9 @@ } }, "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.1.tgz", + "integrity": "sha512-4jYS4MOAaCIStSRwiuxc4B8MYhIe676yO1sYGzARnjXkWpmzZMMYxY6zu8WYWDhSuth5zhrQ1rhNSibyyvv4/w==", "dev": true, "funding": [ { @@ -2560,9 +2899,9 @@ } }, "node_modules/cli-spinners": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.1.tgz", - "integrity": "sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz", + "integrity": "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==", "dev": true, "engines": { "node": ">=6" @@ -2594,23 +2933,6 @@ "node": ">=12" } }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/clone": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", @@ -2637,27 +2959,24 @@ "dev": true }, "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "color-name": "1.1.3" } }, "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", "dev": true }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, "node_modules/convert-source-map": { @@ -2701,25 +3020,113 @@ } } }, - "node_modules/create-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", - "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "node_modules/cosmiconfig/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/cosmiconfig/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==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/create-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/create-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/create-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/create-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/create-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/create-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "prompts": "^2.0.1" - }, - "bin": { - "create-jest": "bin/create-jest.js" + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, "node_modules/cross-fetch": { @@ -3037,9 +3444,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.587", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.587.tgz", - "integrity": "sha512-RyJX0q/zOkAoefZhB9XHghGeATVP0Q3mwA253XD/zj2OeXc+JZB9pCaEv6R578JUYaWM9PRhye0kXvd/V1cQ3Q==", + "version": "1.4.284", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", + "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", "dev": true }, "node_modules/elliptic": { @@ -3102,15 +3509,12 @@ } }, "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.8.0" } }, "node_modules/escodegen": { @@ -3258,6 +3662,191 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "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==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/espree": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", @@ -3434,9 +4023,9 @@ "dev": true }, "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", "dev": true }, "node_modules/fast-fifo": { @@ -3461,18 +4050,6 @@ "node": ">=8.6.0" } }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -3527,15 +4104,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/figures/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -3561,29 +4129,25 @@ } }, "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "dependencies": { - "locate-path": "^6.0.0", + "locate-path": "^5.0.0", "path-exists": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", "dev": true, "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", + "flatted": "^3.1.0", "rimraf": "^3.0.2" }, "engines": { @@ -3606,9 +4170,9 @@ } }, "node_modules/flatted": { - "version": "3.2.9", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", - "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", "dev": true }, "node_modules/foreground-child": { @@ -3656,7 +4220,7 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, "node_modules/fsevents": { @@ -3737,15 +4301,15 @@ } }, "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.1.1", + "minimatch": "^3.0.4", "once": "^1.3.0", "path-is-absolute": "^1.0.0" }, @@ -3757,30 +4321,24 @@ } }, "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, "dependencies": { - "is-glob": "^4.0.3" + "is-glob": "^4.0.1" }, "engines": { - "node": ">=10.13.0" + "node": ">= 6" } }, - "node_modules/globals": { - "version": "13.23.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", - "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, "node_modules/globby": { @@ -3804,9 +4362,9 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "dev": true }, "node_modules/graphemer": { @@ -3825,12 +4383,12 @@ } }, "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/hash.js": { @@ -3863,7 +4421,7 @@ "node_modules/hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", "dependencies": { "hash.js": "^1.0.3", "minimalistic-assert": "^1.0.0", @@ -3968,9 +4526,9 @@ ] }, "node_modules/ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true, "engines": { "node": ">= 4" @@ -3992,6 +4550,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/import-local": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", @@ -4023,7 +4590,7 @@ "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "dependencies": { "once": "^1.3.0", @@ -4036,9 +4603,9 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/inquirer": { - "version": "8.2.6", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", - "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", + "version": "8.2.5", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz", + "integrity": "sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==", "dev": true, "dependencies": { "ansi-escapes": "^4.2.1", @@ -4055,12 +4622,82 @@ "string-width": "^4.1.0", "strip-ansi": "^6.0.0", "through": "^2.3.6", - "wrap-ansi": "^6.0.1" + "wrap-ansi": "^7.0.0" }, "engines": { "node": ">=12.0.0" } }, + "node_modules/inquirer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/inquirer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/inquirer/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/inquirer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/inquirer/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/inquirer/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/ip": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", @@ -4260,28 +4897,28 @@ "dev": true }, "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", "dev": true, "engines": { "node": ">=8" } }, "node_modules/istanbul-lib-instrument": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz", - "integrity": "sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", "@istanbuljs/schema": "^0.1.2", "istanbul-lib-coverage": "^3.2.0", - "semver": "^7.5.4" + "semver": "^6.3.0" }, "engines": { - "node": ">=10" + "node": ">=8" } }, "node_modules/istanbul-lib-report": { @@ -4298,6 +4935,27 @@ "node": ">=10" } }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/istanbul-lib-source-maps": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", @@ -4414,6 +5072,76 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-cli": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", @@ -4441,10 +5169,80 @@ "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/jest-config": { @@ -4492,6 +5290,76 @@ } } }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-diff": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", @@ -4507,6 +5375,76 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-docblock": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", @@ -4535,6 +5473,76 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-environment-node": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", @@ -4580,38 +5588,108 @@ "walker": "^1.0.8" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" }, - "optionalDependencies": { - "fsevents": "^2.3.2" + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/jest-leak-detector": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", - "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" + "color-name": "~1.1.4" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=7.0.0" } }, - "node_modules/jest-matcher-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", - "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, "node_modules/jest-message-util": { @@ -4634,6 +5712,76 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-mock": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", @@ -4704,39 +5852,179 @@ "jest-snapshot": "^29.7.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" } }, - "node_modules/jest-runner": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", - "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "@jest/console": "^29.7.0", - "@jest/environment": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-leak-detector": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-resolve": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-util": "^29.7.0", - "jest-watcher": "^29.7.0", - "jest-worker": "^29.7.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" + "has-flag": "^4.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=8" } }, "node_modules/jest-runtime": { @@ -4772,6 +6060,76 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-snapshot": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", @@ -4803,6 +6161,109 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/jest-util": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", @@ -4817,7 +6278,77 @@ "picomatch": "^2.2.3" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/jest-validate": { @@ -4837,6 +6368,21 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/jest-validate/node_modules/camelcase": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", @@ -4849,6 +6395,61 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-watcher": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", @@ -4868,6 +6469,76 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-worker": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", @@ -4883,6 +6554,15 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -4914,12 +6594,13 @@ "dev": true }, "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": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "dependencies": { - "argparse": "^2.0.1" + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" @@ -4937,12 +6618,6 @@ "node": ">=4" } }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -4982,15 +6657,6 @@ "graceful-fs": "^4.1.6" } }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -5029,18 +6695,15 @@ "dev": true }, "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "dependencies": { - "p-locate": "^5.0.0" + "p-locate": "^4.1.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, "node_modules/lodash": { @@ -5051,7 +6714,7 @@ "node_modules/lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", "dev": true }, "node_modules/lodash.merge": { @@ -5076,6 +6739,76 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-symbols/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -5095,11 +6828,44 @@ }, "engines": { "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, + "node_modules/make-dir/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", @@ -5160,7 +6926,7 @@ "node_modules/minimalistic-crypto-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" }, "node_modules/minimatch": { "version": "3.1.2", @@ -5250,6 +7016,76 @@ } } }, + "node_modules/msw/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/msw/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/msw/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/msw/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/msw/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/msw/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/msw/node_modules/type-fest": { "version": "2.19.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", @@ -5310,9 +7146,9 @@ "dev": true }, "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.9.tgz", + "integrity": "sha512-2xfmOrRkGogbTK9R6Leda0DGiXeY3p2NJpy4+gNCffdUvV6mdEJnaDEic1i3Ec2djAo8jWYoJMR5PB0MSMpxUA==", "dev": true }, "node_modules/normalize-path": { @@ -5497,6 +7333,8 @@ }, "node_modules/npm/node_modules/@colors/colors": { "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -5507,6 +7345,8 @@ }, "node_modules/npm/node_modules/@isaacs/cliui": { "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, "inBundle": true, "license": "ISC", @@ -5524,6 +7364,8 @@ }, "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": { "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true, "inBundle": true, "license": "MIT" @@ -5547,6 +7389,8 @@ }, "node_modules/npm/node_modules/@isaacs/string-locale-compare": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/string-locale-compare/-/string-locale-compare-1.1.0.tgz", + "integrity": "sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==", "dev": true, "inBundle": true, "license": "ISC" @@ -5635,6 +7479,8 @@ }, "node_modules/npm/node_modules/@npmcli/disparity-colors": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/disparity-colors/-/disparity-colors-3.0.0.tgz", + "integrity": "sha512-5R/z157/f20Fi0Ou4ZttL51V0xz0EdPEOauFtPCEYOLInDBRCj1/TxOJ5aGTrtShxEshN2d+hXb9ZKSi5RLBcg==", "dev": true, "inBundle": true, "license": "ISC", @@ -5662,6 +7508,8 @@ }, "node_modules/npm/node_modules/@npmcli/fs": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-3.1.0.tgz", + "integrity": "sha512-7kZUAaLscfgbwBQRbvdMYaZOWyMEcPTH/tJjnyAWJ/dvvs9Ef+CERx/qJb9GExJpl1qipaDGn7KqHnFGGixd0w==", "dev": true, "inBundle": true, "license": "ISC", @@ -5693,6 +7541,8 @@ }, "node_modules/npm/node_modules/@npmcli/installed-package-contents": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-2.0.2.tgz", + "integrity": "sha512-xACzLPhnfD51GKvTOOuNX2/V4G4mz9/1I2MfDoye9kBM3RYe5g2YbscsaGoTlaWqkxeiapBWyseULVKpSVHtKQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -5739,6 +7589,8 @@ }, "node_modules/npm/node_modules/@npmcli/name-from-folder": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/name-from-folder/-/name-from-folder-2.0.0.tgz", + "integrity": "sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg==", "dev": true, "inBundle": true, "license": "ISC", @@ -5748,6 +7600,8 @@ }, "node_modules/npm/node_modules/@npmcli/node-gyp": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz", + "integrity": "sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==", "dev": true, "inBundle": true, "license": "ISC", @@ -5815,6 +7669,8 @@ }, "node_modules/npm/node_modules/@pkgjs/parseargs": { "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", "dev": true, "inBundle": true, "license": "MIT", @@ -5895,6 +7751,8 @@ }, "node_modules/npm/node_modules/abbrev": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz", + "integrity": "sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -5904,6 +7762,8 @@ }, "node_modules/npm/node_modules/abort-controller": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", "dev": true, "inBundle": true, "license": "MIT", @@ -5916,6 +7776,8 @@ }, "node_modules/npm/node_modules/agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, "inBundle": true, "license": "MIT", @@ -5928,6 +7790,8 @@ }, "node_modules/npm/node_modules/aggregate-error": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", "dev": true, "inBundle": true, "license": "MIT", @@ -5941,6 +7805,8 @@ }, "node_modules/npm/node_modules/ansi-regex": { "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", "dev": true, "inBundle": true, "license": "MIT", @@ -5953,6 +7819,8 @@ }, "node_modules/npm/node_modules/ansi-styles": { "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, "inBundle": true, "license": "MIT", @@ -5965,12 +7833,16 @@ }, "node_modules/npm/node_modules/aproba": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/archy": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", + "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==", "dev": true, "inBundle": true, "license": "MIT" @@ -5990,12 +7862,16 @@ }, "node_modules/npm/node_modules/balanced-match": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/base64-js": { "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, "funding": [ { @@ -6031,6 +7907,8 @@ }, "node_modules/npm/node_modules/binary-extensions": { "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true, "inBundle": true, "license": "MIT", @@ -6040,6 +7918,8 @@ }, "node_modules/npm/node_modules/brace-expansion": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, "inBundle": true, "license": "MIT", @@ -6049,6 +7929,8 @@ }, "node_modules/npm/node_modules/buffer": { "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", "dev": true, "funding": [ { @@ -6073,6 +7955,8 @@ }, "node_modules/npm/node_modules/builtins": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz", + "integrity": "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6117,6 +8001,8 @@ }, "node_modules/npm/node_modules/chownr": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -6153,6 +8039,8 @@ }, "node_modules/npm/node_modules/clean-stack": { "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", "dev": true, "inBundle": true, "license": "MIT", @@ -6162,6 +8050,8 @@ }, "node_modules/npm/node_modules/cli-columns": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cli-columns/-/cli-columns-4.0.0.tgz", + "integrity": "sha512-XW2Vg+w+L9on9wtwKpyzluIPCWXjaBahI7mTcYjx+BVIYD9c3yqcv/yKC7CmdCZat4rq2yiE1UMSJC5ivKfMtQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6175,6 +8065,8 @@ }, "node_modules/npm/node_modules/cli-columns/node_modules/ansi-regex": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6196,6 +8088,8 @@ }, "node_modules/npm/node_modules/cli-table3": { "version": "0.6.3", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", + "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", "dev": true, "inBundle": true, "license": "MIT", @@ -6211,6 +8105,8 @@ }, "node_modules/npm/node_modules/clone": { "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", "dev": true, "inBundle": true, "license": "MIT", @@ -6229,6 +8125,8 @@ }, "node_modules/npm/node_modules/color-convert": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6241,12 +8139,16 @@ }, "node_modules/npm/node_modules/color-name": { "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/color-support": { "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", "dev": true, "inBundle": true, "license": "ISC", @@ -6256,6 +8158,8 @@ }, "node_modules/npm/node_modules/columnify": { "version": "1.6.0", + "resolved": "https://registry.npmjs.org/columnify/-/columnify-1.6.0.tgz", + "integrity": "sha512-lomjuFZKfM6MSAnV9aCZC9sc0qGbmZdfygNv+nCpqVkSKdCxCklLtd16O0EILGkImHw9ZpHkAnHaB+8Zxq5W6Q==", "dev": true, "inBundle": true, "license": "MIT", @@ -6269,6 +8173,8 @@ }, "node_modules/npm/node_modules/columnify/node_modules/ansi-regex": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6290,18 +8196,24 @@ }, "node_modules/npm/node_modules/common-ancestor-path": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-1.0.1.tgz", + "integrity": "sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/console-control-strings": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/cross-spawn": { "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "inBundle": true, "license": "MIT", @@ -6331,6 +8243,8 @@ }, "node_modules/npm/node_modules/cssesc": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", "dev": true, "inBundle": true, "license": "MIT", @@ -6343,6 +8257,8 @@ }, "node_modules/npm/node_modules/debug": { "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6366,6 +8282,8 @@ }, "node_modules/npm/node_modules/defaults": { "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", "dev": true, "inBundle": true, "license": "MIT", @@ -6378,12 +8296,16 @@ }, "node_modules/npm/node_modules/delegates": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/diff": { "version": "5.1.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", + "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", "dev": true, "inBundle": true, "license": "BSD-3-Clause", @@ -6393,18 +8315,24 @@ }, "node_modules/npm/node_modules/eastasianwidth": { "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/emoji-regex": { "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/encoding": { "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", "dev": true, "inBundle": true, "license": "MIT", @@ -6415,6 +8343,8 @@ }, "node_modules/npm/node_modules/env-paths": { "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", "dev": true, "inBundle": true, "license": "MIT", @@ -6424,12 +8354,16 @@ }, "node_modules/npm/node_modules/err-code": { "version": "2.0.3", + "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", + "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/event-target-shim": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6439,6 +8373,8 @@ }, "node_modules/npm/node_modules/events": { "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "dev": true, "inBundle": true, "license": "MIT", @@ -6454,6 +8390,8 @@ }, "node_modules/npm/node_modules/fastest-levenshtein": { "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", "dev": true, "inBundle": true, "license": "MIT", @@ -6463,6 +8401,8 @@ }, "node_modules/npm/node_modules/foreground-child": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", "dev": true, "inBundle": true, "license": "ISC", @@ -6491,6 +8431,8 @@ }, "node_modules/npm/node_modules/function-bind": { "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, "inBundle": true, "license": "MIT", @@ -6519,6 +8461,8 @@ }, "node_modules/npm/node_modules/gauge/node_modules/ansi-regex": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6562,18 +8506,24 @@ }, "node_modules/npm/node_modules/graceful-fs": { "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/has-unicode": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/hasown": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", "dev": true, "inBundle": true, "license": "MIT", @@ -6598,12 +8548,16 @@ }, "node_modules/npm/node_modules/http-cache-semantics": { "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "dev": true, "inBundle": true, "license": "BSD-2-Clause" }, "node_modules/npm/node_modules/http-proxy-agent": { "version": "7.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", + "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -6630,6 +8584,8 @@ }, "node_modules/npm/node_modules/iconv-lite": { "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, "inBundle": true, "license": "MIT", @@ -6643,6 +8599,8 @@ }, "node_modules/npm/node_modules/ieee754": { "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "dev": true, "funding": [ { @@ -6675,6 +8633,8 @@ }, "node_modules/npm/node_modules/imurmurhash": { "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, "inBundle": true, "license": "MIT", @@ -6684,6 +8644,8 @@ }, "node_modules/npm/node_modules/indent-string": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", "dev": true, "inBundle": true, "license": "MIT", @@ -6720,6 +8682,8 @@ }, "node_modules/npm/node_modules/ip": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", "dev": true, "inBundle": true, "license": "MIT" @@ -6762,6 +8726,8 @@ }, "node_modules/npm/node_modules/is-fullwidth-code-point": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, "inBundle": true, "license": "MIT", @@ -6771,18 +8737,24 @@ }, "node_modules/npm/node_modules/is-lambda": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", + "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/isexe": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/jackspeak": { "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", "dev": true, "inBundle": true, "license": "BlueOak-1.0.0", @@ -6801,6 +8773,8 @@ }, "node_modules/npm/node_modules/json-parse-even-better-errors": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz", + "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==", "dev": true, "inBundle": true, "license": "MIT", @@ -6810,6 +8784,8 @@ }, "node_modules/npm/node_modules/json-stringify-nice": { "version": "1.1.4", + "resolved": "https://registry.npmjs.org/json-stringify-nice/-/json-stringify-nice-1.1.4.tgz", + "integrity": "sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw==", "dev": true, "inBundle": true, "license": "ISC", @@ -6819,6 +8795,8 @@ }, "node_modules/npm/node_modules/jsonparse": { "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", "dev": true, "engines": [ "node >= 0.2.0" @@ -6828,12 +8806,16 @@ }, "node_modules/npm/node_modules/just-diff": { "version": "6.0.2", + "resolved": "https://registry.npmjs.org/just-diff/-/just-diff-6.0.2.tgz", + "integrity": "sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/just-diff-apply": { "version": "5.5.0", + "resolved": "https://registry.npmjs.org/just-diff-apply/-/just-diff-apply-5.5.0.tgz", + "integrity": "sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw==", "dev": true, "inBundle": true, "license": "MIT" @@ -7042,6 +9024,8 @@ }, "node_modules/npm/node_modules/minimatch": { "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", "dev": true, "inBundle": true, "license": "ISC", @@ -7057,6 +9041,8 @@ }, "node_modules/npm/node_modules/minipass": { "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -7066,6 +9052,8 @@ }, "node_modules/npm/node_modules/minipass-collect": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", "dev": true, "inBundle": true, "license": "ISC", @@ -7107,6 +9095,8 @@ }, "node_modules/npm/node_modules/minipass-flush": { "version": "1.0.5", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", "dev": true, "inBundle": true, "license": "ISC", @@ -7131,6 +9121,8 @@ }, "node_modules/npm/node_modules/minipass-json-stream": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minipass-json-stream/-/minipass-json-stream-1.0.1.tgz", + "integrity": "sha512-ODqY18UZt/I8k+b7rl2AENgbWE8IDYam+undIJONvigAz8KR5GWblsFTEfQs0WODsjbSXWlm+JHEv8Gr6Tfdbg==", "dev": true, "inBundle": true, "license": "MIT", @@ -7153,6 +9145,8 @@ }, "node_modules/npm/node_modules/minipass-pipeline": { "version": "1.2.4", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", "dev": true, "inBundle": true, "license": "ISC", @@ -7177,6 +9171,8 @@ }, "node_modules/npm/node_modules/minipass-sized": { "version": "1.0.3", + "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", + "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", "dev": true, "inBundle": true, "license": "ISC", @@ -7201,6 +9197,8 @@ }, "node_modules/npm/node_modules/minizlib": { "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", "dev": true, "inBundle": true, "license": "MIT", @@ -7226,6 +9224,8 @@ }, "node_modules/npm/node_modules/mkdirp": { "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "dev": true, "inBundle": true, "license": "MIT", @@ -7238,12 +9238,16 @@ }, "node_modules/npm/node_modules/ms": { "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/mute-stream": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", + "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", "dev": true, "inBundle": true, "license": "ISC", @@ -7253,6 +9257,8 @@ }, "node_modules/npm/node_modules/negotiator": { "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", "dev": true, "inBundle": true, "license": "MIT", @@ -7325,6 +9331,8 @@ }, "node_modules/npm/node_modules/npm-bundled": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-3.0.0.tgz", + "integrity": "sha512-Vq0eyEQy+elFpzsKjMss9kxqb9tG3YHg4dsyWuUENuzvSUWe1TCnW/vV9FkhvBk/brEDoDiVd+M1Btosa6ImdQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -7431,6 +9439,8 @@ }, "node_modules/npm/node_modules/npm-user-validate": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-2.0.0.tgz", + "integrity": "sha512-sSWeqAYJ2dUPStJB+AEj0DyLRltr/f6YNcvCA7phkB8/RMLMnVsQ41GMwHo/ERZLYNDsyB2wPm7pZo1mqPOl7Q==", "dev": true, "inBundle": true, "license": "BSD-2-Clause", @@ -7440,6 +9450,8 @@ }, "node_modules/npm/node_modules/npmlog": { "version": "7.0.1", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-7.0.1.tgz", + "integrity": "sha512-uJ0YFk/mCQpLBt+bxN88AKd+gyqZvZDbtiNxk6Waqcj2aPRyfVx8ITawkyQynxUagInjdYT1+qj4NfA5KJJUxg==", "dev": true, "inBundle": true, "license": "ISC", @@ -7455,6 +9467,8 @@ }, "node_modules/npm/node_modules/p-map": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -7502,6 +9516,8 @@ }, "node_modules/npm/node_modules/parse-conflict-json": { "version": "3.0.1", + "resolved": "https://registry.npmjs.org/parse-conflict-json/-/parse-conflict-json-3.0.1.tgz", + "integrity": "sha512-01TvEktc68vwbJOtWZluyWeVGWjP+bZwXtPDMQVbBKzbJ/vZBif0L69KH1+cHv1SZ6e0FKLvjyHe8mqsIqYOmw==", "dev": true, "inBundle": true, "license": "ISC", @@ -7516,6 +9532,8 @@ }, "node_modules/npm/node_modules/path-key": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, "inBundle": true, "license": "MIT", @@ -7525,6 +9543,8 @@ }, "node_modules/npm/node_modules/path-scurry": { "version": "1.10.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", "dev": true, "inBundle": true, "license": "BlueOak-1.0.0", @@ -7554,6 +9574,8 @@ }, "node_modules/npm/node_modules/proc-log": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-3.0.0.tgz", + "integrity": "sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==", "dev": true, "inBundle": true, "license": "ISC", @@ -7563,6 +9585,8 @@ }, "node_modules/npm/node_modules/process": { "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", "dev": true, "inBundle": true, "license": "MIT", @@ -7572,6 +9596,8 @@ }, "node_modules/npm/node_modules/promise-all-reject-late": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", + "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", "dev": true, "inBundle": true, "license": "ISC", @@ -7581,6 +9607,8 @@ }, "node_modules/npm/node_modules/promise-call-limit": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/promise-call-limit/-/promise-call-limit-1.0.2.tgz", + "integrity": "sha512-1vTUnfI2hzui8AEIixbdAJlFY4LFDXqQswy/2eOlThAscXCY4It8FdVuI0fMJGAB2aWGbdQf/gv0skKYXmdrHA==", "dev": true, "inBundle": true, "license": "ISC", @@ -7590,12 +9618,16 @@ }, "node_modules/npm/node_modules/promise-inflight": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/promise-retry": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", "dev": true, "inBundle": true, "license": "MIT", @@ -7609,6 +9641,8 @@ }, "node_modules/npm/node_modules/promzard": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/promzard/-/promzard-1.0.0.tgz", + "integrity": "sha512-KQVDEubSUHGSt5xLakaToDFrSoZhStB8dXLzk2xvwR67gJktrHFvpR63oZgHyK19WKbHFLXJqCPXdVR3aBP8Ig==", "dev": true, "inBundle": true, "license": "ISC", @@ -7621,6 +9655,8 @@ }, "node_modules/npm/node_modules/qrcode-terminal": { "version": "0.12.0", + "resolved": "https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz", + "integrity": "sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==", "dev": true, "inBundle": true, "bin": { @@ -7629,6 +9665,8 @@ }, "node_modules/npm/node_modules/read": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/read/-/read-2.1.0.tgz", + "integrity": "sha512-bvxi1QLJHcaywCAEsAk4DG3nVoqiY2Csps3qzWalhj5hFqRn1d/OixkFXtLO1PrgHUcAP0FNaSY/5GYNfENFFQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -7641,6 +9679,8 @@ }, "node_modules/npm/node_modules/read-cmd-shim": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/read-cmd-shim/-/read-cmd-shim-4.0.0.tgz", + "integrity": "sha512-yILWifhaSEEytfXI76kB9xEEiG1AiozaCJZ83A87ytjRiN+jVibXjedjCRNjoZviinhG+4UkalO3mWTd8u5O0Q==", "dev": true, "inBundle": true, "license": "ISC", @@ -7665,6 +9705,8 @@ }, "node_modules/npm/node_modules/read-package-json-fast": { "version": "3.0.2", + "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", + "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", "dev": true, "inBundle": true, "license": "ISC", @@ -7694,6 +9736,8 @@ }, "node_modules/npm/node_modules/retry": { "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", "dev": true, "inBundle": true, "license": "MIT", @@ -7723,6 +9767,8 @@ }, "node_modules/npm/node_modules/safer-buffer": { "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, "inBundle": true, "license": "MIT", @@ -7730,6 +9776,8 @@ }, "node_modules/npm/node_modules/semver": { "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "inBundle": true, "license": "ISC", @@ -7757,12 +9805,16 @@ }, "node_modules/npm/node_modules/set-blocking": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/shebang-command": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "inBundle": true, "license": "MIT", @@ -7775,6 +9827,8 @@ }, "node_modules/npm/node_modules/shebang-regex": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, "inBundle": true, "license": "MIT", @@ -7784,6 +9838,8 @@ }, "node_modules/npm/node_modules/signal-exit": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, "inBundle": true, "license": "ISC", @@ -7811,6 +9867,8 @@ }, "node_modules/npm/node_modules/smart-buffer": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", "dev": true, "inBundle": true, "license": "MIT", @@ -7821,6 +9879,8 @@ }, "node_modules/npm/node_modules/socks": { "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -7849,6 +9909,8 @@ }, "node_modules/npm/node_modules/spdx-correct": { "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -7859,12 +9921,16 @@ }, "node_modules/npm/node_modules/spdx-exceptions": { "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", "dev": true, "inBundle": true, "license": "CC-BY-3.0" }, "node_modules/npm/node_modules/spdx-expression-parse": { "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", "dev": true, "inBundle": true, "license": "MIT", @@ -7902,6 +9968,8 @@ }, "node_modules/npm/node_modules/string-width": { "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "inBundle": true, "license": "MIT", @@ -7917,6 +9985,8 @@ "node_modules/npm/node_modules/string-width-cjs": { "name": "string-width", "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "inBundle": true, "license": "MIT", @@ -7931,6 +10001,8 @@ }, "node_modules/npm/node_modules/string-width-cjs/node_modules/ansi-regex": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -7952,6 +10024,8 @@ }, "node_modules/npm/node_modules/string-width/node_modules/ansi-regex": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -7973,6 +10047,8 @@ }, "node_modules/npm/node_modules/strip-ansi": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -7989,6 +10065,8 @@ "node_modules/npm/node_modules/strip-ansi-cjs": { "name": "strip-ansi", "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "inBundle": true, "license": "MIT", @@ -8072,18 +10150,24 @@ }, "node_modules/npm/node_modules/text-table": { "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/tiny-relative-date": { "version": "1.3.0", + "resolved": "https://registry.npmjs.org/tiny-relative-date/-/tiny-relative-date-1.3.0.tgz", + "integrity": "sha512-MOQHpzllWxDCHHaDno30hhLfbouoYlOI8YlMNtvKe1zXbjEVhbcEovQxvZrPvtiYW630GQDoMMarCnjfyfHA+A==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/treeverse": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/treeverse/-/treeverse-3.0.0.tgz", + "integrity": "sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -8107,6 +10191,8 @@ }, "node_modules/npm/node_modules/unique-filename": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-3.0.0.tgz", + "integrity": "sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==", "dev": true, "inBundle": true, "license": "ISC", @@ -8119,6 +10205,8 @@ }, "node_modules/npm/node_modules/unique-slug": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-4.0.0.tgz", + "integrity": "sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -8131,12 +10219,16 @@ }, "node_modules/npm/node_modules/util-deprecate": { "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/validate-npm-package-license": { "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -8147,6 +10239,8 @@ }, "node_modules/npm/node_modules/validate-npm-package-name": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.0.tgz", + "integrity": "sha512-YuKoXDAhBYxY7SfOKxHBDoSyENFeW5VvIIQp2TGQuit8gpK6MnWaQelBKxso72DoxTZfZdcP3W90LqpSkgPzLQ==", "dev": true, "inBundle": true, "license": "ISC", @@ -8159,12 +10253,16 @@ }, "node_modules/npm/node_modules/walk-up-path": { "version": "3.0.1", + "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz", + "integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA==", "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/wcwidth": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", "dev": true, "inBundle": true, "license": "MIT", @@ -8198,6 +10296,8 @@ }, "node_modules/npm/node_modules/wide-align": { "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", "dev": true, "inBundle": true, "license": "ISC", @@ -8207,6 +10307,8 @@ }, "node_modules/npm/node_modules/wrap-ansi": { "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -8225,6 +10327,8 @@ "node_modules/npm/node_modules/wrap-ansi-cjs": { "name": "wrap-ansi", "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "inBundle": true, "license": "MIT", @@ -8242,6 +10346,8 @@ }, "node_modules/npm/node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "inBundle": true, "license": "MIT", @@ -8278,6 +10384,8 @@ }, "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": { "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true, "inBundle": true, "license": "MIT" @@ -8314,6 +10422,8 @@ }, "node_modules/npm/node_modules/yallist": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true, "inBundle": true, "license": "ISC" @@ -8321,7 +10431,7 @@ "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "dependencies": { "wrappy": "1" @@ -8394,10 +10504,80 @@ "wcwidth": "^1.0.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ora/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ora/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ora/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/ora/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ora/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/os-tmpdir": { @@ -8431,15 +10611,27 @@ } }, "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "dependencies": { - "p-limit": "^3.0.2" + "p-limit": "^2.2.0" }, "engines": { - "node": ">=10" + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -8529,7 +10721,7 @@ "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, "engines": { "node": ">=0.10.0" @@ -8567,13 +10759,10 @@ } }, "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.2.tgz", - "integrity": "sha512-Yj9mA8fPiVgOUpByoTZO5pNrcl5Yk37FcSHsUINpAsaBIEZIuqcCclDZJCVxqQShDsmYX8QG63svJiTbOATZwg==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.1.0.tgz", + "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==", "dev": true, - "dependencies": { - "semver": "^7.3.5" - }, "engines": { "node": "14 || >=16.14" } @@ -8618,9 +10807,9 @@ } }, "node_modules/pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", + "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", "dev": true, "engines": { "node": ">= 6" @@ -8638,58 +10827,6 @@ "node": ">=8" } }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -8907,20 +11044,6 @@ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -8971,7 +11094,7 @@ "node": ">=8" } }, - "node_modules/resolve-cwd/node_modules/resolve-from": { + "node_modules/resolve-from": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", @@ -8980,15 +11103,6 @@ "node": ">=8" } }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/resolve.exports": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", @@ -9133,9 +11247,9 @@ } }, "node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", + "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", "dev": true, "dependencies": { "tslib": "^2.1.0" @@ -9167,38 +11281,14 @@ "dev": true }, "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" } }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -9307,7 +11397,7 @@ "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, "node_modules/stack-utils": { @@ -9357,14 +11447,20 @@ "dev": true }, "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "dependencies": { - "safe-buffer": "~5.2.0" + "safe-buffer": "~5.1.0" } }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, "node_modules/string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", @@ -9463,15 +11559,15 @@ } }, "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "has-flag": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/supports-preserve-symlinks-flag": { @@ -9662,6 +11758,39 @@ } } }, + "node_modules/ts-jest/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", @@ -9690,9 +11819,9 @@ } }, "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, "engines": { "node": ">=10" @@ -9749,9 +11878,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", "dev": true, "funding": [ { @@ -9761,10 +11890,6 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" } ], "dependencies": { @@ -9772,7 +11897,7 @@ "picocolors": "^1.0.0" }, "bin": { - "update-browserslist-db": "cli.js" + "browserslist-lint": "cli.js" }, "peerDependencies": { "browserslist": ">= 4.21.0" @@ -9796,13 +11921,13 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, "node_modules/v8-to-istanbul": { - "version": "9.1.3", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.3.tgz", - "integrity": "sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==", + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", "dev": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", @@ -9863,9 +11988,9 @@ } }, "node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "dependencies": { "ansi-styles": "^4.0.0", @@ -9873,7 +11998,10 @@ "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/wrap-ansi-cjs": { @@ -9894,10 +12022,76 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, "node_modules/write-file-atomic": { @@ -9997,6 +12191,14 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/zod": { + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } } } } diff --git a/package.json b/package.json index 45dc220..2e97a65 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "dependencies": { "bs58": "4.0.1", "elliptic": "6.5.4", - "lodash": "4.17.21" + "lodash": "4.17.21", + "zod": "3.22.4" }, "devDependencies": { "@types/bs58": "4.0.1", @@ -69,4 +70,4 @@ "ts-jest": "29.1.1", "typescript": "5.2.2" } -} \ No newline at end of file +} diff --git a/src/Client.ts b/src/Client.ts index 19c400c..d0f3c6e 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -51,7 +51,6 @@ export class Client { configFilePath: string | null, privateKey: PrivateKey | null, tokenContainer: TokenContainer | null, - identity: string | null, posToken: PosToken | null, environment?: Environment, bitPayClient?: BitPayClient, // using for tests @@ -68,6 +67,9 @@ export class Client { if (bitPayClient !== undefined && bitPayClient !== null) { // using for tests + if (guidGenerator == undefined) { + guidGenerator = new GuidGenerator(); + } this.initForTests(bitPayClient, guidGenerator, tokenContainer); return; } @@ -100,7 +102,7 @@ export class Client { * @param environment */ public static createPosClient(posToken: string, environment?: Environment): Client { - return new Client(null, null, null, null, new PosToken(posToken), environment); + return new Client(null, null, null, new PosToken(posToken), environment); } /** @@ -109,7 +111,7 @@ export class Client { * @param configFilePath */ public static createClientByConfig(configFilePath: string): Client { - return new Client(configFilePath, null, null, null, null, null); + return new Client(configFilePath, null, null, null); } /** @@ -123,7 +125,7 @@ export class Client { tokenContainer: TokenContainer, environment?: Environment ) { - return new Client(null, new PrivateKey(privateKey), tokenContainer, null, null, environment); + return new Client(null, new PrivateKey(privateKey), tokenContainer, null, environment); } public getToken(facade: Facade) { @@ -148,7 +150,7 @@ export class Client { * Current supported values are BTC and BCH. * @return A Rates object populated with the BitPay exchange rate table. */ - public async getRates(currency: string = null): Promise { + public async getRates(currency: string | null): Promise { return this.createRateClient().getRates(currency); } @@ -626,7 +628,7 @@ export class Client { * @param status The status to filter the bills. * @return BillInterface A list of BitPay Bill objects. */ - public async getBills(status: string | null): Promise { + public async getBills(status: string | null): Promise { return this.createBillClient().getBills(status); } @@ -707,9 +709,9 @@ export class Client { * Gets info for specific currency. * * @param currencyCode String Currency code for which the info will be retrieved. - * @return CurrencyInterface Currency info. + * @return CurrencyInterface|null Currency info. */ - public async getCurrencyInfo(currencyCode: string): Promise { + public async getCurrencyInfo(currencyCode: string): Promise { return this.getCurrencyClient().getCurrencyInfo(currencyCode); } @@ -735,6 +737,7 @@ export class Client { } BitPayExceptionProvider.throwGenericExceptionWithMessage('Missing ECKey'); + throw new Error(); } private static getBaseUrl(environment: string) { @@ -801,7 +804,10 @@ export class Client { return facade !== Facade.Pos; } - private static getDateAsString(date: Date): string { + private static getDateAsString(date: Date | null): string | null { + if (date === null) { + return null; + } return date.toISOString().split('T')[0]; } @@ -819,7 +825,7 @@ export class Client { const ecKey = this.getEcKeyByConfig(envConfig); this.bitPayClient = new BitPayClient(Client.getBaseUrl(environment), ecKey, this.getIdentity(ecKey)); this.guidGenerator = new GuidGenerator(); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwGenericExceptionWithMessage('Error when reading configuration file'); } } diff --git a/src/Client/BillClient.ts b/src/Client/BillClient.ts index 2a8d9ad..e26c0da 100644 --- a/src/Client/BillClient.ts +++ b/src/Client/BillClient.ts @@ -29,8 +29,9 @@ export class BillClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwSerializeResourceException('Bill', e.message); + throw new Error(); } } @@ -50,8 +51,9 @@ export class BillClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Bill', e.message); + throw new Error(); } } @@ -63,7 +65,7 @@ export class BillClient { * @throws BitPayGenericException BitPayGenericException * @throws BitPayApiException BitPayApiException */ - public async getBills(status: string | null): Promise { + public async getBills(status: string | null): Promise { const params = { token: this.tokenContainer.getToken(Facade.Merchant) }; if (status) { params['status'] = status; @@ -72,9 +74,10 @@ export class BillClient { const result = await this.bitPayClient.get('bills', params, true); try { - return JSON.parse(result); - } catch (e) { + return JSON.parse(result); + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Bill', e.message); + throw new Error(); } } @@ -92,8 +95,9 @@ export class BillClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Bill', e.message); + throw new Error(); } } @@ -113,8 +117,9 @@ export class BillClient { try { return JSON.parse(result) == 'Success'; - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Bill', e.message); + throw new Error(); } } } diff --git a/src/Client/BitPayClient.ts b/src/Client/BitPayClient.ts index 52ea761..a5469c2 100644 --- a/src/Client/BitPayClient.ts +++ b/src/Client/BitPayClient.ts @@ -9,14 +9,14 @@ import { BitPayExceptionProvider } from '../Exceptions/BitPayExceptionProvider'; import { LoggerProvider } from '../Logger/LoggerProvider'; export class BitPayClient { - private readonly ecKey: KeyPair; - private readonly identity: string; + private readonly ecKey: KeyPair | null; + private readonly identity: string | null; private readonly baseUrl: string; private readonly defaultHeaders: Record; private readonly keyUtils: KeyUtils; private readonly responseParser: BitPayResponseParser; - public constructor(baseUrl: string, ecKey: KeyPair, identity: string) { + public constructor(baseUrl: string, ecKey: KeyPair | null, identity: string | null) { this.ecKey = ecKey; this.baseUrl = baseUrl; this.identity = identity; @@ -67,7 +67,7 @@ export class BitPayClient { LoggerProvider.getLogger().logResponse(method, fullUrl, JSON.stringify(jsonObject)); return this.responseParser.getJsonDataFromJsonResponse(jsonObject); - } catch (e) { + } catch (e: any) { if (e instanceof BitPayException) { throw e; } @@ -106,7 +106,7 @@ export class BitPayClient { LoggerProvider.getLogger().logResponse(method, fullUrl, JSON.stringify(jsonObject)); return this.responseParser.getJsonDataFromJsonResponse(jsonObject); - } catch (e) { + } catch (e: any) { if (e instanceof BitPayException) { throw e; } @@ -146,7 +146,7 @@ export class BitPayClient { LoggerProvider.getLogger().logResponse(method, fullUrl, JSON.stringify(jsonObject)); return this.responseParser.getJsonDataFromJsonResponse(jsonObject); - } catch (e) { + } catch (e: any) { if (e instanceof BitPayException) { throw e; } @@ -184,7 +184,7 @@ export class BitPayClient { LoggerProvider.getLogger().logResponse(method, fullUrl, JSON.stringify(jsonObject)); return this.responseParser.getJsonDataFromJsonResponse(jsonObject); - } catch (e) { + } catch (e: any) { if (e instanceof BitPayException) { throw e; } @@ -200,17 +200,25 @@ export class BitPayClient { * @param jsonData * @throws BitPayApiExtension */ - private getSignatureHeaders(fullUrl: string, headers: Record, jsonData: string) { + private getSignatureHeaders(fullUrl: string, headers: Record, jsonData: string | null) { if (jsonData !== null) { fullUrl = fullUrl + jsonData; } + if (this.ecKey == null) { + BitPayExceptionProvider.throwGenericExceptionWithMessage('Missing ecKey'); + throw new Error(); + } + try { headers['X-Signature'] = this.keyUtils.sign(fullUrl, this.ecKey); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwGenericExceptionWithMessage('Wrong ecKey. ' + e.message); } - headers['X-Identity'] = this.identity; + + if (this.identity !== null) { + headers['X-Identity'] = this.identity; + } return headers; } diff --git a/src/Client/CurrencyClient.ts b/src/Client/CurrencyClient.ts index 12b738c..e92b70c 100644 --- a/src/Client/CurrencyClient.ts +++ b/src/Client/CurrencyClient.ts @@ -12,9 +12,9 @@ export class CurrencyClient { * Retrieve the Currency Info * * @param currencyCode - * @returns Currency + * @returns CurrencyInterface|null */ - public async getCurrencyInfo(currencyCode: string): Promise { + public async getCurrencyInfo(currencyCode: string): Promise { let currencyInfo = null; await this.bitPayClient.get('currencies', null, false).then((ratesData) => { diff --git a/src/Client/InvoiceClient.ts b/src/Client/InvoiceClient.ts index 6be2e42..d2ce120 100644 --- a/src/Client/InvoiceClient.ts +++ b/src/Client/InvoiceClient.ts @@ -36,8 +36,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -59,8 +60,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -79,8 +81,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -99,8 +102,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -117,8 +121,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -138,8 +143,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -161,8 +167,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -184,8 +191,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -207,8 +215,9 @@ export class InvoiceClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } @@ -226,8 +235,9 @@ export class InvoiceClient { try { return BitPayResponseParser.jsonToBoolean(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Invoice', e.message); + throw new Error(); } } } diff --git a/src/Client/LedgerClient.ts b/src/Client/LedgerClient.ts index e6fb485..456995d 100644 --- a/src/Client/LedgerClient.ts +++ b/src/Client/LedgerClient.ts @@ -26,8 +26,9 @@ export class LedgerClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Ledger', e.message); + throw new Error(); } } @@ -47,8 +48,9 @@ export class LedgerClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Ledger', e.message); + throw new Error(); } } } diff --git a/src/Client/PayoutClient.ts b/src/Client/PayoutClient.ts index 3c8bc30..55b9045 100644 --- a/src/Client/PayoutClient.ts +++ b/src/Client/PayoutClient.ts @@ -30,8 +30,9 @@ export class PayoutClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout', e.message); + throw new Error(); } } @@ -49,8 +50,9 @@ export class PayoutClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout', e.message); + throw new Error(); } } @@ -67,8 +69,9 @@ export class PayoutClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout', e.message); + throw new Error(); } } @@ -85,8 +88,9 @@ export class PayoutClient { try { return BitPayResponseParser.jsonToBoolean(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout', e.message); + throw new Error(); } }; @@ -103,8 +107,9 @@ export class PayoutClient { try { return BitPayResponseParser.jsonToBoolean(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout', e.message); + throw new Error(); } }; } diff --git a/src/Client/PayoutRecipientClient.ts b/src/Client/PayoutRecipientClient.ts index 42b4582..deb0b3f 100644 --- a/src/Client/PayoutRecipientClient.ts +++ b/src/Client/PayoutRecipientClient.ts @@ -32,8 +32,9 @@ export class PayoutRecipientClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout Recipient', e.message); + throw new Error(); } } @@ -54,8 +55,9 @@ export class PayoutRecipientClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout Recipient', e.message); + throw new Error(); } } @@ -74,8 +76,9 @@ export class PayoutRecipientClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout Recipient', e.message); + throw new Error(); } } @@ -94,8 +97,9 @@ export class PayoutRecipientClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout Recipient', e.message); + throw new Error(); } } @@ -113,8 +117,9 @@ export class PayoutRecipientClient { try { return BitPayResponseParser.jsonToBoolean(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout Recipient', e.message); + throw new Error(); } } @@ -133,8 +138,9 @@ export class PayoutRecipientClient { try { return BitPayResponseParser.jsonToBoolean(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Payout Recipient', e.message); + throw new Error(); } } } diff --git a/src/Client/RateClient.ts b/src/Client/RateClient.ts index 346dac3..e573845 100644 --- a/src/Client/RateClient.ts +++ b/src/Client/RateClient.ts @@ -24,8 +24,9 @@ export class RateClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Rate', e.message); + throw new Error(); } } @@ -37,15 +38,16 @@ export class RateClient { * @throws BitPayGenericException BitPayGenericException class * @throws BitPayApiException BitPayApiException class */ - public async getRates(currency: string = null): Promise { + public async getRates(currency: string | null): Promise { const uri = currency ? 'rates/' + currency : 'rates'; const result = await this.bitPayClient.get(uri, null, false); try { return new Rates(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Rate', e.message); + throw new Error(); } } } diff --git a/src/Client/RefundClient.ts b/src/Client/RefundClient.ts index c952953..498dbe9 100644 --- a/src/Client/RefundClient.ts +++ b/src/Client/RefundClient.ts @@ -43,8 +43,9 @@ export class RefundClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } @@ -62,8 +63,9 @@ export class RefundClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } @@ -81,8 +83,9 @@ export class RefundClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } @@ -103,8 +106,9 @@ export class RefundClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } @@ -122,8 +126,9 @@ export class RefundClient { try { return BitPayResponseParser.jsonToBoolean(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } @@ -145,8 +150,9 @@ export class RefundClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } @@ -168,8 +174,9 @@ export class RefundClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } @@ -187,8 +194,9 @@ export class RefundClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } @@ -206,8 +214,9 @@ export class RefundClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Refund', e.message); + throw new Error(); } } } diff --git a/src/Client/SettlementClient.ts b/src/Client/SettlementClient.ts index 3b6d4fc..72ba1a0 100644 --- a/src/Client/SettlementClient.ts +++ b/src/Client/SettlementClient.ts @@ -27,8 +27,9 @@ export class SettlementClient { try { const result = await this.bitPayClient.get('settlements/' + settlementId, params, true); return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Settlement', e.message); + throw new Error(); } } @@ -47,8 +48,9 @@ export class SettlementClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Settlement', e.message); + throw new Error(); } } @@ -68,8 +70,9 @@ export class SettlementClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Settlement', e.message); + throw new Error(); } } } diff --git a/src/Client/WalletClient.ts b/src/Client/WalletClient.ts index 601fd7f..3b5c53c 100644 --- a/src/Client/WalletClient.ts +++ b/src/Client/WalletClient.ts @@ -20,8 +20,9 @@ export class WalletClient { try { return JSON.parse(result); - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwDeserializeResourceException('Wallet', e.message); + throw new Error(); } } } diff --git a/src/Exceptions/BitPayApiException.ts b/src/Exceptions/BitPayApiException.ts index 430e754..f578b92 100644 --- a/src/Exceptions/BitPayApiException.ts +++ b/src/Exceptions/BitPayApiException.ts @@ -9,7 +9,7 @@ export class BitPayApiException extends BitPayException { * @param message string [optional] The Exception message to throw. * @param code string [optional] The Exception code to throw. */ - public constructor(message: string = null, code: string = null) { + public constructor(message: string, code: string | null) { super(message); this.code = code; } diff --git a/src/Exceptions/BitPayException.ts b/src/Exceptions/BitPayException.ts index 441b602..223fcbe 100644 --- a/src/Exceptions/BitPayException.ts +++ b/src/Exceptions/BitPayException.ts @@ -1,5 +1,5 @@ export class BitPayException implements Error { - public readonly message: string | null; + public readonly message: string; public readonly name: string = 'BITPAY-EXCEPTION'; public readonly stack: string; @@ -8,8 +8,8 @@ export class BitPayException implements Error { * * @param message string [optional] The Exception message to throw. */ - public constructor(message: string = null) { - this.message = message ? message : this.message; + public constructor(message: string) { + this.message = message; } } diff --git a/src/Exceptions/BitPayExceptionProvider.ts b/src/Exceptions/BitPayExceptionProvider.ts index 770a578..58ff85e 100644 --- a/src/Exceptions/BitPayExceptionProvider.ts +++ b/src/Exceptions/BitPayExceptionProvider.ts @@ -7,12 +7,18 @@ export class BitPayExceptionProvider { static readonly GENERIC_API_UNMAPPED_ERROR_CODE: string = '000000'; public static throwGenericExceptionWithMessage(errorMessage: string | null): void { + if (errorMessage == null) { + errorMessage = 'Unexpected generic error'; + } this.logErrorMessage(errorMessage); throw new BitPayGenericException(errorMessage); } public static throwApiExceptionWithMessage(errorMessage: string | null, code: string | null): void { + if (errorMessage == null) { + errorMessage = 'Unexpected api error'; + } this.logErrorMessage(errorMessage); code = code ? code : this.GENERIC_API_UNMAPPED_ERROR_CODE; @@ -39,6 +45,9 @@ export class BitPayExceptionProvider { } public static throwEncodeException(errorMessage: string | null): void { + if (errorMessage == null) { + errorMessage = 'Unexpected encode error'; + } this.logErrorMessage(errorMessage); const message = 'Failed to encode params : ' + errorMessage; @@ -61,6 +70,9 @@ export class BitPayExceptionProvider { } public static throwValidationException(errorMessage: string | null): void { + if (errorMessage == null) { + errorMessage = 'Unexpected validation error'; + } this.logErrorMessage(errorMessage); throw new BitPayValidationException(errorMessage); diff --git a/src/Logger/BitPayLogger.ts b/src/Logger/BitPayLogger.ts index 39e8dba..8108fd5 100644 --- a/src/Logger/BitPayLogger.ts +++ b/src/Logger/BitPayLogger.ts @@ -1,7 +1,7 @@ export interface BitPayLogger { - logRequest(method: string, endpoint: string, json: string); + logRequest(method: string, endpoint: string, json: string | null): void; - logResponse(method: string, endpoint: string, json: string); + logResponse(method: string, endpoint: string, json: string): void; - logError(message: string); + logError(message: string): void; } diff --git a/src/Logger/EmptyLogger.ts b/src/Logger/EmptyLogger.ts index 6639d97..072a98a 100644 --- a/src/Logger/EmptyLogger.ts +++ b/src/Logger/EmptyLogger.ts @@ -3,9 +3,9 @@ import { BitPayLogger } from './BitPayLogger'; /* eslint @typescript-eslint/no-unused-vars: "off" */ export class EmptyLogger implements BitPayLogger { - logError(message: string) {} + logError(message: string): void {} - logRequest(method: string, endpoint: string, json: string) {} + logRequest(method: string, endpoint: string, json: string | null): void {} - logResponse(method: string, endpoint: string, json: string) {} + logResponse(method: string, endpoint: string, json: string): void {} } diff --git a/src/Model/Bill/Bill.ts b/src/Model/Bill/Bill.ts index 37e64b1..cb07d65 100644 --- a/src/Model/Bill/Bill.ts +++ b/src/Model/Bill/Bill.ts @@ -3,51 +3,51 @@ import { Item } from './Item'; import { BitPayExceptionProvider } from '../../Exceptions/BitPayExceptionProvider'; export interface BillInterface { - currency: string | null; - token: string | null; - email: string | null; - items: Item[] | []; - number: string | null; - name: string | null; - address1: string | null; - address2: string | null; - city: string | null; - state: string | null; - zip: string | null; - country: string | null; - phone: string | null; - dueDate: string | null; - passProcessingFee: boolean | null; - status: string | null; - url: string | null; - createdDate: string | null; - id: string | null; - merchant: string | null; - cc: string[] | []; + number: string; + currency: string; + email: string; + items: Item[]; + token?: string; + name?: string; + address1?: string; + address2?: string; + city?: string; + state?: string; + zip?: string; + country?: string; + phone?: string; + dueDate?: string; + passProcessingFee?: boolean; + status?: string; + url?: string; + createdDate?: string; + id?: string; + merchant?: string; + cc?: string[]; } export class Bill implements BillInterface { - address1: string | null; - address2: string | null; - cc: string[] | []; - city: string | null; - country: string | null; - createdDate: string | null; - currency: string | null; - dueDate: string | null; - email: string | null; - id: string | null; - items: Item[] | []; - merchant: string | null; - name: string | null; - number: string | null; - passProcessingFee: boolean | null; - phone: string | null; - state: string | null; - status: string | null; - token: string | null; - url: string | null; - zip: string | null; + number: string; + currency: string; + email: string; + items: Item[]; + address1?: string; + address2?: string; + cc?: string[]; + city?: string; + country?: string; + createdDate?: string; + dueDate?: string; + id?: string; + merchant?: string; + name?: string; + passProcessingFee?: boolean; + phone?: string; + state?: string; + status?: string; + token?: string; + url?: string; + zip?: string; /** * Constructor, create a minimal request Bill object. diff --git a/src/Model/Bill/Bill.zod.ts b/src/Model/Bill/Bill.zod.ts new file mode 100644 index 0000000..5e51a7d --- /dev/null +++ b/src/Model/Bill/Bill.zod.ts @@ -0,0 +1,26 @@ +import { array, z } from 'zod'; +import { itemInterfaceSchema } from './Item.zod'; + +export const billInterfaceSchema = z.object({ + number: z.string(), + currency: z.string(), + email: z.string(), + token: z.string().optional(), + name: z.string().optional(), + items: array(itemInterfaceSchema), + address1: z.string().optional(), + address2: z.string().optional(), + city: z.string().optional(), + state: z.string().optional(), + zip: z.string().optional(), + country: z.string().optional(), + phone: z.string().optional(), + dueDate: z.string().optional(), + passProcessingFee: z.boolean().optional(), + status: z.string().optional(), + url: z.string().optional(), + createdDate: z.string().optional(), + id: z.string().optional(), + merchant: z.string().optional(), + cc: z.union([z.array(z.string()), z.tuple([])]) +}); diff --git a/src/Model/Bill/Item.ts b/src/Model/Bill/Item.ts index a61a466..423b5df 100644 --- a/src/Model/Bill/Item.ts +++ b/src/Model/Bill/Item.ts @@ -1,13 +1,13 @@ export interface ItemInterface { - id: string; - description: string; + id?: string; + description?: string; price: number; quantity: number; } export class Item implements ItemInterface { - description: string; - id: string; + description?: string; + id?: string; quantity: number; price: number; diff --git a/src/Model/Bill/Item.zod.ts b/src/Model/Bill/Item.zod.ts new file mode 100644 index 0000000..70660d0 --- /dev/null +++ b/src/Model/Bill/Item.zod.ts @@ -0,0 +1,8 @@ +import { z } from 'zod'; + +export const itemInterfaceSchema = z.object({ + id: z.string().optional(), + description: z.string().optional(), + price: z.number(), + quantity: z.number() +}); diff --git a/src/Model/Currency/Currency.zod.ts b/src/Model/Currency/Currency.zod.ts new file mode 100644 index 0000000..7994bb8 --- /dev/null +++ b/src/Model/Currency/Currency.zod.ts @@ -0,0 +1,9 @@ +import { z } from 'zod'; + +export const currencyInterfaceSchema = z.object({ + code: z.string(), + name: z.string(), + symbol: z.string(), + precision: z.number(), + decimals: z.number() +}); diff --git a/src/Model/Invoice/Buyer.ts b/src/Model/Invoice/Buyer.ts index 9e05d24..db0b64c 100644 --- a/src/Model/Invoice/Buyer.ts +++ b/src/Model/Invoice/Buyer.ts @@ -1,27 +1,27 @@ export interface BuyerInterface { - name: string; - address1: string; - address2: string; - locality: string; - region: string; - postalCode: string; - country: string; - email: string; - phone: string; - notify: boolean; + email?: string; + name?: string; + address1?: string; + address2?: string; + locality?: string; + region?: string; + postalCode?: string; + country?: string; + phone?: string; + notify?: boolean; } export class Buyer implements BuyerInterface { - address1: string; - address2: string; - country: string; - email: string; - locality: string; - name: string; - notify: boolean; - phone: string; - postalCode: string; - region: string; + email?: string; + address1?: string; + address2?: string; + country?: string; + locality?: string; + name?: string; + notify?: boolean; + phone?: string; + postalCode?: string; + region?: string; public constructor() {} } diff --git a/src/Model/Invoice/Buyer.zod.ts b/src/Model/Invoice/Buyer.zod.ts new file mode 100644 index 0000000..632fe63 --- /dev/null +++ b/src/Model/Invoice/Buyer.zod.ts @@ -0,0 +1,14 @@ +import { z } from 'zod'; + +export const buyerInterfaceSchema = z.object({ + email: z.string().optional(), + name: z.string().optional(), + address1: z.string().optional(), + address2: z.string().optional(), + locality: z.string().optional(), + region: z.string().optional(), + postalCode: z.string().optional(), + country: z.string().optional(), + phone: z.string().optional(), + notify: z.boolean().optional() +}); diff --git a/src/Model/Invoice/Invoice.ts b/src/Model/Invoice/Invoice.ts index aae7370..16bf670 100644 --- a/src/Model/Invoice/Invoice.ts +++ b/src/Model/Invoice/Invoice.ts @@ -2,86 +2,86 @@ import { Currency } from '../../Currency'; import { Buyer } from './Buyer'; import { InvoiceBuyerProvidedInfo } from './InvoiceBuyerProvidedInfo'; import { InvoiceTransaction } from './InvoiceTransaction'; -import { MinerFees } from './MinerFees'; import { Shopper } from './Shopper'; import { RefundInfo } from './RefundInfo'; -import { SupportedTransactionCurrencies } from './SupportedTransactionCurrencies'; import { InvoiceUniversalCodes } from './InvoiceUniversalCodes'; import { BitPayExceptionProvider } from '../../Exceptions/BitPayExceptionProvider'; +import { MinerFeesItem } from './MinerFeesItem'; +import { SupportedTransactionCurrency } from './SupportedTransactionCurrency'; export interface InvoiceInterface { // API fields // Required fields - currency: string | null; - guid: string | null; - token: string | null; + currency: string; + guid: string; + token: string; // Optional fields - price: number | null; - posData: string | null; - notificationURL: string | null; - transactionSpeed: string | null; - fullNotifications: boolean | null; - notificationEmail: string | null; - redirectURL: string | null; - closeURL: string | null; - orderId: string | null; - itemDesc: string | null; - itemCode: string | null; - physical: boolean | null; - paymentCurrencies: string[] | []; - acceptanceWindow: number | null; - autoRedirect: boolean | null; - forcedBuyerSelectedWallet: string | null; - forcedBuyerSelectedTransactionCurrency: string | null; + price?: number; + posData?: string; + notificationURL?: string; + transactionSpeed?: string; + fullNotifications?: boolean; + notificationEmail?: string; + redirectURL?: string; + closeURL?: string; + orderId?: string; + itemDesc?: string; + itemCode?: string; + physical?: boolean; + paymentCurrencies?: string[]; + acceptanceWindow?: number; + autoRedirect?: boolean; + forcedBuyerSelectedWallet?: string; + forcedBuyerSelectedTransactionCurrency?: string; // Buyer data - buyer: Buyer | null; + buyer?: Buyer; // Response fields - id: string | null; - url: string | null; - status: string | null; - lowFeeDetected: boolean | null; - invoiceTime: number | null; - expirationTime: number | null; - currentTime: number | null; - exceptionStatus: string | null; - targetConfirmations: number | null; - transactions: InvoiceTransaction | null; - refundAddresses: unknown | null; - refundAddressRequestPending: boolean | null; - buyerProvidedEmail: string | null; - buyerProvidedInfo: InvoiceBuyerProvidedInfo | null; - supportedTransactionCurrencies: SupportedTransactionCurrencies | null; - minerFees: MinerFees | null; - shopper: Shopper | null; - billId: string | null; - refundInfo: RefundInfo | null; - extendedNotifications: boolean | null; - transactionCurrency: string | null; - amountPaid: number | null; - displayAmountPaid: number | null; - exchangeRates: Array<[string, Array<[string, number]>]> | null; - paymentSubtotals: Array<[string, number]> | null; - paymentTotals: Array<[string, number]> | null; - paymentDisplayTotals: Array<[string, number]> | null; - paymentDisplaySubTotals: Array<[string, number]> | null; - nonPayProPaymentReceived: boolean | null; - jsonPayProRequired: boolean | null; - merchantName: string | null; - bitpayIdRequired: boolean | null; - underpaidAmount: number | null; - overpaidAmount: number | null; - paymentCodes: Array<[string, Array<[string, number]>]> | null; - isCancelled: boolean | null; - universalCodes: InvoiceUniversalCodes | null; - - setCurrency(_currency: string): void; + id?: string; + url?: string; + status?: string; + lowFeeDetected?: boolean; + invoiceTime?: number; + expirationTime?: number; + currentTime?: number; + exceptionStatus?: boolean | string; + targetConfirmations?: number; + transactions?: InvoiceTransaction[]; + refundAddresses?: unknown; + refundAddressRequestPending?: boolean; + buyerProvidedEmail?: string; + buyerProvidedInfo?: InvoiceBuyerProvidedInfo; + supportedTransactionCurrencies?: Record; + minerFees?: Record; + shopper?: Shopper; + billId?: string; + refundInfo?: RefundInfo; + extendedNotifications?: boolean; + transactionCurrency?: string; + amountPaid?: number; + displayAmountPaid?: string; + exchangeRates?: Record>; + paymentSubtotals?: Record; + paymentTotals?: Record; + paymentDisplayTotals?: Record; + paymentDisplaySubTotals?: Record; + nonPayProPaymentReceived?: boolean; + jsonPayProRequired?: boolean; + merchantName?: string; + bitpayIdRequired?: boolean; + underpaidAmount?: number; + overpaidAmount?: number; + paymentCodes?: Record>; + isCancelled?: boolean; + universalCodes?: InvoiceUniversalCodes; + + setCurrency(_currency?: string): void; } export class Invoice implements InvoiceInterface { @@ -89,73 +89,73 @@ export class Invoice implements InvoiceInterface { // Required fields - currency: string | null; - guid: string | null; - token: string | null; + currency: string; + guid: string; + token: string; // Optional fields - price: number | null; - posData: string | null; - notificationURL: string | null; - transactionSpeed: string | null; - fullNotifications: boolean | null; - notificationEmail: string | null; - redirectURL: string | null; - closeURL: string | null; - orderId: string | null; - itemDesc: string | null; - itemCode: string | null; - physical: boolean | null; - paymentCurrencies: string[] | []; - acceptanceWindow: number | null; - autoRedirect: boolean | null; - forcedBuyerSelectedWallet: string | null; - forcedBuyerSelectedTransactionCurrency: string | null; + price?: number; + posData?: string; + notificationURL?: string; + transactionSpeed?: string; + fullNotifications?: boolean; + notificationEmail?: string; + redirectURL?: string; + closeURL?: string; + orderId?: string; + itemDesc?: string; + itemCode?: string; + physical?: boolean; + paymentCurrencies?: string[]; + acceptanceWindow?: number; + autoRedirect?: boolean; + forcedBuyerSelectedWallet?: string; + forcedBuyerSelectedTransactionCurrency?: string; // Buyer data - buyer: Buyer | null; + buyer?: Buyer; // Response fields - id: string | null; - url: string | null; - status: string | null; - lowFeeDetected: boolean | null; - invoiceTime: number | null; - expirationTime: number | null; - currentTime: number | null; - exceptionStatus: string | null; - targetConfirmations: number | null; - transactions: InvoiceTransaction | null; - refundAddresses: unknown | null; - refundAddressRequestPending: boolean | null; - buyerProvidedEmail: string | null; - buyerProvidedInfo: InvoiceBuyerProvidedInfo | null; - supportedTransactionCurrencies: SupportedTransactionCurrencies | null; - minerFees: MinerFees | null; - shopper: Shopper | null; - billId: string | null; - refundInfo: RefundInfo | null; - extendedNotifications: boolean | null; - transactionCurrency: string | null; - amountPaid: number | null; - displayAmountPaid: number | null; - exchangeRates: Array<[string, Array<[string, number]>]> | null; - paymentSubtotals: Array<[string, number]> | null; - paymentTotals: Array<[string, number]> | null; - paymentDisplayTotals: Array<[string, number]> | null; - paymentDisplaySubTotals: Array<[string, number]> | null; - nonPayProPaymentReceived: boolean | null; - jsonPayProRequired: boolean | null; - merchantName: string | null; - bitpayIdRequired: boolean | null; - underpaidAmount: number | null; - overpaidAmount: number | null; - paymentCodes: Array<[string, Array<[string, number]>]> | null; - isCancelled: boolean | null; - universalCodes: InvoiceUniversalCodes | null; + id?: string; + url?: string; + status?: string; + lowFeeDetected?: boolean; + invoiceTime?: number; + expirationTime?: number; + currentTime?: number; + exceptionStatus?: boolean | string; + targetConfirmations?: number; + transactions?: InvoiceTransaction[]; + refundAddresses?: unknown; + refundAddressRequestPending?: boolean; + buyerProvidedEmail?: string; + buyerProvidedInfo?: InvoiceBuyerProvidedInfo; + supportedTransactionCurrencies?: Record; + minerFees?: Record; + shopper?: Shopper; + billId?: string; + refundInfo?: RefundInfo; + extendedNotifications?: boolean; + transactionCurrency?: string; + amountPaid?: number; + displayAmountPaid?: string; + exchangeRates?: Record>; + paymentSubtotals?: Record; + paymentTotals?: Record; + paymentDisplayTotals?: Record; + paymentDisplaySubTotals?: Record; + nonPayProPaymentReceived?: boolean; + jsonPayProRequired?: boolean; + merchantName?: string; + bitpayIdRequired?: boolean; + underpaidAmount?: number; + overpaidAmount?: number; + paymentCodes?: Record>; + isCancelled?: boolean; + universalCodes?: InvoiceUniversalCodes; /** * Constructor, create a minimal request Invoice object. diff --git a/src/Model/Invoice/Invoice.zod.ts b/src/Model/Invoice/Invoice.zod.ts new file mode 100644 index 0000000..f0577c8 --- /dev/null +++ b/src/Model/Invoice/Invoice.zod.ts @@ -0,0 +1,71 @@ +import { z } from 'zod'; +import { buyerInterfaceSchema } from './Buyer.zod'; +import { invoiceTransactionSchema } from './InvoiceTransaction.zod'; +import { invoiceBuyerProvidedInfoSchema } from './InvoiceBuyerProvidedInfo.zod'; +import { invoiceUniversalCodesSchema } from './InvoiceUniversalCodes.zod'; +import { refundInfoSchema } from './RefundInfo.zod'; +import { shopperSchema } from './Shopper.zod'; +import { minerFeesItemSchema } from './MinerFeesItem.zod'; +import { supportedTransactionCurrencySchema } from './SupportedTransactionCurrency.zod'; + +export const invoiceSchema = z.object({ + buyer: buyerInterfaceSchema.optional(), + transactions: invoiceTransactionSchema.array().optional(), + buyerProvidedInfo: invoiceBuyerProvidedInfoSchema.optional(), + supportedTransactionCurrencies: z.record(z.string(), supportedTransactionCurrencySchema).optional(), + minerFees: z.record(z.string(), minerFeesItemSchema).optional(), + shopper: shopperSchema.optional(), + refundInfo: refundInfoSchema.optional(), + universalCodes: invoiceUniversalCodesSchema.optional(), + + currency: z.string().optional(), + guid: z.string().optional(), + token: z.string().optional(), + price: z.number().optional(), + posData: z.string().optional(), + notificationURL: z.string().optional(), + transactionSpeed: z.string().optional(), + fullNotifications: z.boolean().optional(), + notificationEmail: z.string().optional(), + redirectURL: z.string().optional(), + closeURL: z.string().optional(), + orderId: z.string().optional(), + itemDesc: z.string().optional(), + itemCode: z.string().optional(), + physical: z.boolean().optional(), + paymentCurrencies: z.array(z.string()).optional(), + acceptanceWindow: z.number().optional(), + autoRedirect: z.boolean().optional(), + forcedBuyerSelectedWallet: z.string().optional(), + forcedBuyerSelectedTransactionCurrency: z.string().optional(), + id: z.string().optional(), + url: z.string().optional(), + status: z.string().optional(), + lowFeeDetected: z.boolean().optional(), + invoiceTime: z.number().optional(), + expirationTime: z.number().optional(), + currentTime: z.number().optional(), + exceptionStatus: z.union([z.boolean(), z.string()]).optional(), + targetConfirmations: z.number().optional(), + refundAddresses: z.unknown().optional(), + refundAddressRequestPending: z.boolean().optional(), + buyerProvidedEmail: z.string().optional(), + billId: z.string().optional(), + extendedNotifications: z.boolean().optional(), + transactionCurrency: z.string().optional(), + amountPaid: z.number().optional(), + displayAmountPaid: z.string().optional(), + exchangeRates: z.record(z.record(z.number())).nullable(), + paymentSubtotals: z.record(z.number()).nullable(), + paymentTotals: z.record(z.number()).nullable(), + paymentDisplayTotals: z.record(z.string()).nullable(), + paymentDisplaySubTotals: z.record(z.string()).nullable(), + nonPayProPaymentReceived: z.boolean().optional(), + jsonPayProRequired: z.boolean().optional(), + merchantName: z.string().optional(), + bitpayIdRequired: z.boolean().optional(), + underpaidAmount: z.number().optional(), + overpaidAmount: z.number().optional(), + paymentCodes: z.record(z.record(z.string())).nullable(), + isCancelled: z.boolean().optional() +}); diff --git a/src/Model/Invoice/InvoiceBuyerProvidedInfo.ts b/src/Model/Invoice/InvoiceBuyerProvidedInfo.ts index a512b1c..a8e0db1 100644 --- a/src/Model/Invoice/InvoiceBuyerProvidedInfo.ts +++ b/src/Model/Invoice/InvoiceBuyerProvidedInfo.ts @@ -1,9 +1,9 @@ export interface InvoiceBuyerProvidedInfo { - name: string; - phoneNumber: string; - sms: string; - smsVerified: boolean; - selectedTransactionCurrency: string; - emailAddress: string; - selectedWallet: string; + selectedTransactionCurrency?: string; + emailAddress?: string; + selectedWallet?: string; + name?: string; + phoneNumber?: string; + sms?: string; + smsVerified?: boolean; } diff --git a/src/Model/Invoice/InvoiceBuyerProvidedInfo.zod.ts b/src/Model/Invoice/InvoiceBuyerProvidedInfo.zod.ts new file mode 100644 index 0000000..ac3aeda --- /dev/null +++ b/src/Model/Invoice/InvoiceBuyerProvidedInfo.zod.ts @@ -0,0 +1,11 @@ +import { z } from 'zod'; + +export const invoiceBuyerProvidedInfoSchema = z.object({ + name: z.string().optional(), + phoneNumber: z.string().optional(), + sms: z.string().optional(), + smsVerified: z.boolean().optional(), + selectedTransactionCurrency: z.string().optional(), + emailAddress: z.string().optional(), + selectedWallet: z.string().optional() +}); diff --git a/src/Model/Invoice/InvoiceEventToken.ts b/src/Model/Invoice/InvoiceEventToken.ts index ab978ce..d62901c 100644 --- a/src/Model/Invoice/InvoiceEventToken.ts +++ b/src/Model/Invoice/InvoiceEventToken.ts @@ -1,13 +1,13 @@ export interface InvoiceEventTokenInterface { url: string | null; token: string | null; - events: string[] | []; - actions: string[] | []; + events?: string[]; + actions?: string[]; } export class InvoiceEventToken implements InvoiceEventTokenInterface { url: string | null; - actions: string[] | []; - events: string[] | []; + actions?: string[]; + events?: string[]; token: string | null; } diff --git a/src/Model/Invoice/InvoiceEventToken.zod.ts b/src/Model/Invoice/InvoiceEventToken.zod.ts new file mode 100644 index 0000000..c649739 --- /dev/null +++ b/src/Model/Invoice/InvoiceEventToken.zod.ts @@ -0,0 +1,8 @@ +import { z } from 'zod'; + +export const invoiceEventTokenInterfaceSchema = z.object({ + url: z.string().nullable(), + token: z.string().nullable(), + events: z.array(z.string()).optional(), + actions: z.array(z.string()).optional() +}); diff --git a/src/Model/Invoice/InvoiceTransaction.ts b/src/Model/Invoice/InvoiceTransaction.ts index 14ce84c..cf7027f 100644 --- a/src/Model/Invoice/InvoiceTransaction.ts +++ b/src/Model/Invoice/InvoiceTransaction.ts @@ -1,7 +1,7 @@ export interface InvoiceTransaction { - amount: bigint; - confirmations: number; - time: string; - receivedTime: string; - txid: string; + amount: number; + confirmations?: number; + time?: string; + receivedTime?: string; + txid?: string; } diff --git a/src/Model/Invoice/InvoiceTransaction.zod.ts b/src/Model/Invoice/InvoiceTransaction.zod.ts new file mode 100644 index 0000000..25d3331 --- /dev/null +++ b/src/Model/Invoice/InvoiceTransaction.zod.ts @@ -0,0 +1,9 @@ +import { z } from 'zod'; + +export const invoiceTransactionSchema = z.object({ + amount: z.number(), + confirmations: z.number().optional(), + time: z.string().optional(), + receivedTime: z.string().optional(), + txid: z.string().optional() +}); diff --git a/src/Model/Invoice/InvoiceUniversalCodes.ts b/src/Model/Invoice/InvoiceUniversalCodes.ts index 8ade373..4eb3b48 100644 --- a/src/Model/Invoice/InvoiceUniversalCodes.ts +++ b/src/Model/Invoice/InvoiceUniversalCodes.ts @@ -1,4 +1,4 @@ export interface InvoiceUniversalCodes { - paymentString: string | null; - verificationLink: string | null; + paymentString?: string; + verificationLink?: string; } diff --git a/src/Model/Invoice/InvoiceUniversalCodes.zod.ts b/src/Model/Invoice/InvoiceUniversalCodes.zod.ts new file mode 100644 index 0000000..921fe2e --- /dev/null +++ b/src/Model/Invoice/InvoiceUniversalCodes.zod.ts @@ -0,0 +1,6 @@ +import { z } from 'zod'; + +export const invoiceUniversalCodesSchema = z.object({ + paymentString: z.string().optional(), + verificationLink: z.string().optional() +}); diff --git a/src/Model/Invoice/MinerFees.ts b/src/Model/Invoice/MinerFees.ts deleted file mode 100644 index fd90983..0000000 --- a/src/Model/Invoice/MinerFees.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MinerFeesItem } from './MinerFeesItem'; - -export interface MinerFees { - btc: MinerFeesItem; - bch: MinerFeesItem; - eth: MinerFeesItem; - usdc: MinerFeesItem; - gusd: MinerFeesItem; - pax: MinerFeesItem; - xrp: MinerFeesItem; -} diff --git a/src/Model/Invoice/MinerFeesItem.ts b/src/Model/Invoice/MinerFeesItem.ts index 53ed36b..19f93af 100644 --- a/src/Model/Invoice/MinerFeesItem.ts +++ b/src/Model/Invoice/MinerFeesItem.ts @@ -1,5 +1,5 @@ export interface MinerFeesItem { - satoshisPerByte: bigint; - totalFee: bigint; - fiatAmount: number; + satoshisPerByte?: number; + totalFee?: number; + fiatAmount?: number; } diff --git a/src/Model/Invoice/MinerFeesItem.zod.ts b/src/Model/Invoice/MinerFeesItem.zod.ts new file mode 100644 index 0000000..d2c576a --- /dev/null +++ b/src/Model/Invoice/MinerFeesItem.zod.ts @@ -0,0 +1,7 @@ +import { z } from 'zod'; + +export const minerFeesItemSchema = z.object({ + satoshisPerByte: z.number().optional(), + totalFee: z.number().optional(), + fiatAmount: z.number().optional() +}); diff --git a/src/Model/Invoice/Refund.ts b/src/Model/Invoice/Refund.ts index a7f1340..f48cdb2 100644 --- a/src/Model/Invoice/Refund.ts +++ b/src/Model/Invoice/Refund.ts @@ -1,57 +1,57 @@ import { RefundParams } from './RefundParams'; export interface RefundInterface { - guid: string; - refundEmail: string; amount: number; currency: string; - token: string; + guid?: string; + refundEmail?: string; + token?: string; id: string; requestDate: string; status: string; invoice: string; - supportRequest: string; - refundAddress: string; - txid: string; - type: string; + supportRequest?: string; + refundAddress?: string; + txid?: string; + type?: string; reference?: string; transactionCurrency: string; transactionAmount: number; transactionRefundFee: number; - lastRefundNotification: string; - notificationURL: string; + lastRefundNotification?: string; + notificationURL?: string; refundFee: number; immediate: boolean; buyerPaysRefundFee: boolean; - preview: boolean; - params: RefundParams; + preview?: boolean; + params?: RefundParams; } export class Refund implements RefundInterface { amount: number; currency: string; - guid: string; + guid?: string; id: string; - params: RefundParams; - refundEmail: string; + params?: RefundParams; + refundEmail?: string; requestDate: string; status: string; - token: string; + token?: string; invoice: string; - supportRequest: string; - refundAddress: string; - txid: string; - type: string; + supportRequest?: string; + refundAddress?: string; + txid?: string; + type?: string; reference?: string; transactionCurrency: string; transactionAmount: number; transactionRefundFee: number; - lastRefundNotification: string; - notificationURL: string; + lastRefundNotification?: string; + notificationURL?: string; refundFee: number; immediate: boolean; buyerPaysRefundFee: boolean; - preview: boolean; + preview?: boolean; public constructor(amount: number, invoiceId: string, token: string) { this.amount = amount; diff --git a/src/Model/Invoice/Refund.zod.ts b/src/Model/Invoice/Refund.zod.ts new file mode 100644 index 0000000..ce7593d --- /dev/null +++ b/src/Model/Invoice/Refund.zod.ts @@ -0,0 +1,30 @@ +import { z } from 'zod'; +import { refundParamsSchema } from './RefundParams.zod'; + +export const refundInterfaceSchema = z.object({ + params: refundParamsSchema.optional(), + + guid: z.string().optional(), + refundEmail: z.string().optional(), + amount: z.number(), + currency: z.string(), + token: z.string().optional(), + id: z.string(), + requestDate: z.string(), + status: z.string(), + invoice: z.string(), + supportRequest: z.string().optional(), + refundAddress: z.string().optional(), + txid: z.string().optional(), + type: z.string().optional(), + reference: z.string().optional(), + transactionCurrency: z.string(), + transactionAmount: z.number(), + transactionRefundFee: z.number(), + lastRefundNotification: z.string().optional(), + notificationURL: z.string().optional(), + refundFee: z.number(), + immediate: z.boolean(), + buyerPaysRefundFee: z.boolean(), + preview: z.boolean().optional() +}); diff --git a/src/Model/Invoice/RefundInfo.ts b/src/Model/Invoice/RefundInfo.ts index d1940b4..963c535 100644 --- a/src/Model/Invoice/RefundInfo.ts +++ b/src/Model/Invoice/RefundInfo.ts @@ -1,5 +1,5 @@ export interface RefundInfo { supportRequest: string; currency: string; - amounts: Array<[string, number]>; + amounts: Record; } diff --git a/src/Model/Invoice/RefundInfo.zod.ts b/src/Model/Invoice/RefundInfo.zod.ts new file mode 100644 index 0000000..a68f7f1 --- /dev/null +++ b/src/Model/Invoice/RefundInfo.zod.ts @@ -0,0 +1,7 @@ +import { z } from 'zod'; + +export const refundInfoSchema = z.object({ + supportRequest: z.string(), + currency: z.string(), + amounts: z.record(z.number()).optional() +}); diff --git a/src/Model/Invoice/RefundParams.ts b/src/Model/Invoice/RefundParams.ts index 1d932aa..c21223b 100644 --- a/src/Model/Invoice/RefundParams.ts +++ b/src/Model/Invoice/RefundParams.ts @@ -1,10 +1,10 @@ export interface RefundParams { - requesterType: string; - requesterEmail: string; - amount: number; - currency: string; - email: string; - purchaserNotifyEmail: string; - refundAddress: string; - supportRequestEid: string; + requesterType?: string; + requesterEmail?: string; + amount?: number; + currency?: string; + email?: string; + purchaserNotifyEmail?: string; + refundAddress?: string; + supportRequestEid?: string; } diff --git a/src/Model/Invoice/RefundParams.zod.ts b/src/Model/Invoice/RefundParams.zod.ts new file mode 100644 index 0000000..b2f61bb --- /dev/null +++ b/src/Model/Invoice/RefundParams.zod.ts @@ -0,0 +1,12 @@ +import { z } from 'zod'; + +export const refundParamsSchema = z.object({ + requesterType: z.string().optional(), + requesterEmail: z.string().optional(), + amount: z.number().optional(), + currency: z.string().optional(), + email: z.string().optional(), + purchaserNotifyEmail: z.string().optional(), + refundAddress: z.string().optional(), + supportRequestEid: z.string().optional() +}); diff --git a/src/Model/Invoice/Shopper.ts b/src/Model/Invoice/Shopper.ts index cb6e556..a7b54c4 100644 --- a/src/Model/Invoice/Shopper.ts +++ b/src/Model/Invoice/Shopper.ts @@ -1,3 +1,3 @@ export interface Shopper { - user: string; + user?: string; } diff --git a/src/Model/Invoice/Shopper.zod.ts b/src/Model/Invoice/Shopper.zod.ts new file mode 100644 index 0000000..d92f8eb --- /dev/null +++ b/src/Model/Invoice/Shopper.zod.ts @@ -0,0 +1,5 @@ +import { z } from 'zod'; + +export const shopperSchema = z.object({ + user: z.string().optional() +}); diff --git a/src/Model/Invoice/SupportedTransactionCurrencies.ts b/src/Model/Invoice/SupportedTransactionCurrencies.ts deleted file mode 100644 index bc758e0..0000000 --- a/src/Model/Invoice/SupportedTransactionCurrencies.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { SupportedTransactionCurrency } from './SupportedTransactionCurrency'; - -export interface SupportedTransactionCurrencies { - btc: SupportedTransactionCurrency; - bch: SupportedTransactionCurrency; - eth: SupportedTransactionCurrency; - usdc: SupportedTransactionCurrency; - gusd: SupportedTransactionCurrency; - pax: SupportedTransactionCurrency; - xrp: SupportedTransactionCurrency; -} diff --git a/src/Model/Invoice/SupportedTransactionCurrency.ts b/src/Model/Invoice/SupportedTransactionCurrency.ts index c0ee30f..5435f3d 100644 --- a/src/Model/Invoice/SupportedTransactionCurrency.ts +++ b/src/Model/Invoice/SupportedTransactionCurrency.ts @@ -1,4 +1,4 @@ export interface SupportedTransactionCurrency { enabled: boolean; - reason: string; + reason?: string; } diff --git a/src/Model/Invoice/SupportedTransactionCurrency.zod.ts b/src/Model/Invoice/SupportedTransactionCurrency.zod.ts new file mode 100644 index 0000000..5066585 --- /dev/null +++ b/src/Model/Invoice/SupportedTransactionCurrency.zod.ts @@ -0,0 +1,6 @@ +import { z } from 'zod'; + +export const supportedTransactionCurrencySchema = z.object({ + enabled: z.boolean(), + reason: z.string().optional() +}); diff --git a/src/Model/Ledger/Buyer.ts b/src/Model/Ledger/Buyer.ts deleted file mode 100644 index c2961f7..0000000 --- a/src/Model/Ledger/Buyer.ts +++ /dev/null @@ -1,27 +0,0 @@ -export interface BuyerInterface { - name: string | null; - address1: string | null; - address2: string | null; - city: string | null; - state: string | null; - zip: string | null; - country: string | null; - phone: string | null; - notify: boolean | true; - email: string | null; -} - -export class Buyer implements BuyerInterface { - name: string | null; - address1: string | null; - address2: string | null; - city: string | null; - state: string | null; - zip: string | null; - country: string | null; - phone: string | null; - notify: boolean | true; - email: string | null; - - public constructor() {} -} diff --git a/src/Model/Ledger/BuyerFields.ts b/src/Model/Ledger/BuyerFields.ts new file mode 100644 index 0000000..03f99c3 --- /dev/null +++ b/src/Model/Ledger/BuyerFields.ts @@ -0,0 +1,27 @@ +export interface BuyerFieldsInterface { + buyerName?: string; + buyerAddress1?: string; + buyerAddress2?: string; + buyerCity?: string; + buyerState?: string; + buyerZip?: string; + buyerCountry?: string; + buyerPhone?: string; + buyerNotify?: boolean; + buyerEmail?: string; +} + +export class BuyerFields implements BuyerFields { + buyerName?: string; + buyerAddress1?: string; + buyerAddress2?: string; + buyerCity?: string; + buyerState?: string; + buyerZip?: string; + buyerCountry?: string; + buyerPhone?: string; + buyerNotify?: boolean; + buyerEmail?: string; + + public constructor() {} +} diff --git a/src/Model/Ledger/BuyerFields.zod.ts b/src/Model/Ledger/BuyerFields.zod.ts new file mode 100644 index 0000000..70970cd --- /dev/null +++ b/src/Model/Ledger/BuyerFields.zod.ts @@ -0,0 +1,14 @@ +import { z } from 'zod'; + +export const buyerFieldsInterfaceSchema = z.object({ + buyerName: z.string().optional(), + buyerAddress1: z.string().optional(), + buyerAddress2: z.string().optional(), + buyerCity: z.string().optional(), + buyerState: z.string().optional(), + buyerZip: z.string().optional(), + buyerCountry: z.string().optional(), + buyerPhone: z.string().optional(), + buyerNotify: z.boolean().optional(), + buyerEmail: z.string().optional() +}); diff --git a/src/Model/Ledger/Ledger.zod.ts b/src/Model/Ledger/Ledger.zod.ts new file mode 100644 index 0000000..34c5de1 --- /dev/null +++ b/src/Model/Ledger/Ledger.zod.ts @@ -0,0 +1,6 @@ +import { z } from 'zod'; + +export const ledgerInterfaceSchema = z.object({ + currency: z.string(), + balance: z.number() +}); diff --git a/src/Model/Ledger/LedgerEntry.ts b/src/Model/Ledger/LedgerEntry.ts index 532dc66..bcf71f9 100644 --- a/src/Model/Ledger/LedgerEntry.ts +++ b/src/Model/Ledger/LedgerEntry.ts @@ -1,37 +1,37 @@ -import { Buyer } from './Buyer'; +import { BuyerFields } from './BuyerFields'; export interface LedgerEntryInterface { - type: string | null; - amount: string | null; - code: string | null; - description: string | null; - timestamp: string | null; - txType: string | null; - scale: string | null; - invoiceId: string | null; - buyer: Buyer | null; + type: string; + amount: number; + code: number; + description?: string; + timestamp?: string; + txType?: string; + scale?: number; + invoiceId: string; + buyerFields?: BuyerFields; invoiceAmount: number; - invoiceCurrency: string | null; - transactionCurrency: string | null; - id: string | null; - supportRequest: string | null; + invoiceCurrency: string; + transactionCurrency: string; + id: string; + supportRequest?: string; } export class LedgerEntry implements LedgerEntryInterface { - type: string | null; - amount: string | null; - code: string | null; - description: string | null; - timestamp: string | null; - txType: string | null; - scale: string | null; - invoiceId: string | null; - buyer: Buyer | null; + type: string; + amount: number; + code: number; + description?: string; + timestamp?: string; + txType?: string; + scale?: number; + invoiceId: string; + buyerFields?: BuyerFields; invoiceAmount: number; - invoiceCurrency: string | null; - transactionCurrency: string | null; - id: string | null; - supportRequest: string | null; + invoiceCurrency: string; + transactionCurrency: string; + id: string; + supportRequest?: string; public constructor() {} } diff --git a/src/Model/Ledger/LedgerEntry.zod.ts b/src/Model/Ledger/LedgerEntry.zod.ts new file mode 100644 index 0000000..c606176 --- /dev/null +++ b/src/Model/Ledger/LedgerEntry.zod.ts @@ -0,0 +1,20 @@ +import { z } from 'zod'; +import { buyerFieldsInterfaceSchema } from './BuyerFields.zod'; + +export const ledgerEntryInterfaceSchema = z.object({ + buyerFields: buyerFieldsInterfaceSchema, + + type: z.string(), + amount: z.number(), + code: z.number(), + description: z.string().optional(), + timestamp: z.string().optional(), + txType: z.string().optional(), + scale: z.number().optional(), + invoiceId: z.string(), + invoiceAmount: z.number(), + invoiceCurrency: z.string(), + transactionCurrency: z.string(), + id: z.string(), + supportRequest: z.string().optional() +}); diff --git a/src/Model/Payout/Payout.ts b/src/Model/Payout/Payout.ts index f34a43b..bfb376e 100644 --- a/src/Model/Payout/Payout.ts +++ b/src/Model/Payout/Payout.ts @@ -1,58 +1,58 @@ import { PayoutTransaction } from './PayoutTransaction'; export interface PayoutInterface { - token: string | null; + amount: number; + currency: string; + ledgerCurrency: string; - amount: number | null; - currency: string | null; - effectiveDate: string | null; - dateExecuted: string | null; - ledgerCurrency: string | null; - accountId: string | null; - reference: string | null; - notificationEmail: string | null; - notificationURL: string | null; - email: string | null; - recipientId: string | null; - shopperId: string | null; - label: string | null; - message: string | null; + token?: string; + effectiveDate?: string; + dateExecuted?: string; + accountId?: string; + reference?: string; + notificationEmail?: string; + notificationURL?: string; + email?: string; + recipientId?: string; + shopperId?: string; + label?: string; + message?: string; - id: string | null; - status: string | null; - groupId: string | null; - requestDate: number | null; - exchangeRates: string | null; - transactions: PayoutTransaction[]; - code: number | null; - ignoreEmails: boolean; + id?: string; + status?: string; + groupId?: string; + requestDate?: string; + exchangeRates?: Record>; + transactions?: PayoutTransaction[]; + code?: number; + ignoreEmails?: boolean; } export class Payout implements PayoutInterface { - token: string | null; + amount: number; + currency: string; + ledgerCurrency: string; - amount: number | null; - currency: string | null; - effectiveDate: string | null; - dateExecuted: string | null; - ledgerCurrency: string | null; - accountId: string | null; - reference: string | null; - notificationEmail: string | null; - notificationURL: string | null; - email: string | null; - recipientId: string | null; - shopperId: string | null; - label: string | null; - message: string | null; + token?: string; + effectiveDate?: string; + dateExecuted?: string; + accountId?: string; + reference?: string; + notificationEmail?: string; + notificationURL?: string; + email?: string; + recipientId?: string; + shopperId?: string; + label?: string; + message?: string; - id: string | null; - status: string | null; - groupId: string | null; - requestDate: number | null; - exchangeRates: string | null; - transactions: PayoutTransaction[]; - code: number | null; + id?: string; + status?: string; + groupId?: string; + requestDate?: string; + exchangeRates?: Record>; + transactions?: PayoutTransaction[]; + code?: number; ignoreEmails = false; /** diff --git a/src/Model/Payout/Payout.zod.ts b/src/Model/Payout/Payout.zod.ts new file mode 100644 index 0000000..66bec12 --- /dev/null +++ b/src/Model/Payout/Payout.zod.ts @@ -0,0 +1,29 @@ +import { z } from 'zod'; +import { payoutTransactionInterfaceSchema } from './PayoutTransaction.zod'; + +export const payoutInterfaceSchema = z.object({ + transactions: payoutTransactionInterfaceSchema.array().optional(), + + token: z.string().optional(), + amount: z.number().optional(), + currency: z.string().optional(), + effectiveDate: z.string().optional(), + dateExecuted: z.string().optional(), + ledgerCurrency: z.string().optional(), + accountId: z.string().optional(), + reference: z.string().optional(), + notificationEmail: z.string().optional(), + notificationURL: z.string().optional(), + email: z.string().optional(), + recipientId: z.string().optional(), + shopperId: z.string().optional(), + label: z.string().optional(), + message: z.string().optional(), + id: z.string().optional(), + status: z.string().optional(), + groupId: z.string().optional(), + requestDate: z.string().optional(), + exchangeRates: z.record(z.record(z.number())).optional(), + code: z.number().optional(), + ignoreEmails: z.boolean().optional() +}); diff --git a/src/Model/Payout/PayoutGroup.zod.ts b/src/Model/Payout/PayoutGroup.zod.ts new file mode 100644 index 0000000..13772ad --- /dev/null +++ b/src/Model/Payout/PayoutGroup.zod.ts @@ -0,0 +1,8 @@ +import { z } from 'zod'; +import { payoutInterfaceSchema } from './Payout.zod'; +import { payoutGroupFailedInterfaceSchema } from './PayoutGroupFailed.zod'; + +export const payoutGroupInterfaceSchema = z.object({ + payouts: payoutInterfaceSchema.array(), + failed: payoutGroupFailedInterfaceSchema.array() +}); diff --git a/src/Model/Payout/PayoutGroupFailed.ts b/src/Model/Payout/PayoutGroupFailed.ts index 4e95048..edf91ec 100644 --- a/src/Model/Payout/PayoutGroupFailed.ts +++ b/src/Model/Payout/PayoutGroupFailed.ts @@ -1,11 +1,11 @@ export interface PayoutGroupFailedInterface { errMessage: string; - payoutId: string | null; - payee: string | null; + payoutId?: string; + payee?: string; } export class PayoutGroupFailed implements PayoutGroupFailedInterface { errMessage = ''; - payee: string | null; - payoutId: string | null; + payee?: string; + payoutId?: string; } diff --git a/src/Model/Payout/PayoutGroupFailed.zod.ts b/src/Model/Payout/PayoutGroupFailed.zod.ts new file mode 100644 index 0000000..40633c2 --- /dev/null +++ b/src/Model/Payout/PayoutGroupFailed.zod.ts @@ -0,0 +1,7 @@ +import { z } from 'zod'; + +export const payoutGroupFailedInterfaceSchema = z.object({ + errMessage: z.string(), + payoutId: z.string().optional(), + payee: z.string().optional() +}); diff --git a/src/Model/Payout/PayoutRecipient.ts b/src/Model/Payout/PayoutRecipient.ts index cdb75c7..1adb4b6 100644 --- a/src/Model/Payout/PayoutRecipient.ts +++ b/src/Model/Payout/PayoutRecipient.ts @@ -1,26 +1,25 @@ export interface PayoutRecipientInterface { - email: string; - label: string; - notificationURL: string; + email?: string | null; + label?: string | null; + notificationURL?: string | null; - status: string | null; - id: string | null; - shopperId: string | null; - token: string | null; - guid: string | null; + status?: string; + id?: string; + shopperId?: string | null; + token?: string; + guid?: string; } export class PayoutRecipient implements PayoutRecipientInterface { - email: string; - id: string | null; - label: string; - notificationURL: string; + email?: string; + id?: string; + label?: string; + notificationURL?: string; shopperId: string | null; - status: string | null; - token: string | null; - guid: string | null; + status?: string; + token?: string; + guid?: string; - public constructor(email: string | null, label: string | null, notificationURL: string | null); /** * Constructor, create a minimal Recipient object. * @@ -29,6 +28,7 @@ export class PayoutRecipient implements PayoutRecipientInterface { * @param notificationURL string URL to which BitPay sends webhook notifications to inform the merchant about the * status of a given recipient. HTTPS is mandatory (Optional). */ + public constructor(email: string | null, label: string | null, notificationURL: string | null); public constructor(email: string, label: string, notificationURL: string) { this.email = email; this.label = label; diff --git a/src/Model/Payout/PayoutRecipient.zod.ts b/src/Model/Payout/PayoutRecipient.zod.ts new file mode 100644 index 0000000..1670fd1 --- /dev/null +++ b/src/Model/Payout/PayoutRecipient.zod.ts @@ -0,0 +1,12 @@ +import { z } from 'zod'; + +export const payoutRecipientInterfaceSchema = z.object({ + email: z.string().optional().nullable(), + label: z.string().optional().nullable(), + notificationURL: z.string().optional().nullable(), + status: z.string().optional(), + id: z.string().optional(), + shopperId: z.string().nullable().optional(), + token: z.string().optional(), + guid: z.string().optional() +}); diff --git a/src/Model/Payout/PayoutRecipients.ts b/src/Model/Payout/PayoutRecipients.ts index d555d08..1192d10 100644 --- a/src/Model/Payout/PayoutRecipients.ts +++ b/src/Model/Payout/PayoutRecipients.ts @@ -1,15 +1,15 @@ import { PayoutRecipient } from './PayoutRecipient'; export interface PayoutRecipientsInterface { - guid: string | null; + guid?: string; recipients: PayoutRecipient[] | []; - token: string | null; + token?: string; } export class PayoutRecipients implements PayoutRecipientsInterface { - guid: string | null; + guid?: string; recipients: PayoutRecipient[] | []; - token: string | null; + token?: string; /** * Constructor, create an recipient-full request PayoutBatch object. diff --git a/src/Model/Payout/PayoutRecipients.zod.ts b/src/Model/Payout/PayoutRecipients.zod.ts new file mode 100644 index 0000000..1d32642 --- /dev/null +++ b/src/Model/Payout/PayoutRecipients.zod.ts @@ -0,0 +1,8 @@ +import { z } from 'zod'; +import { payoutRecipientInterfaceSchema } from './PayoutRecipient.zod'; + +export const payoutRecipientsInterfaceSchema = z.object({ + guid: z.string().optional(), + token: z.string().optional(), + recipients: payoutRecipientInterfaceSchema.array().optional() +}); diff --git a/src/Model/Payout/PayoutTransaction.ts b/src/Model/Payout/PayoutTransaction.ts index b02cbc6..53c3829 100644 --- a/src/Model/Payout/PayoutTransaction.ts +++ b/src/Model/Payout/PayoutTransaction.ts @@ -1,13 +1,13 @@ export interface PayoutTransactionInterface { - txid: string | null; - amount: number | null; - date: number | null; + txid: string; + amount: number; + date: string; } export class PayoutTransaction implements PayoutTransactionInterface { - txid: string | null; - amount: number | null; - date: number | null; + txid: string; + amount: number; + date: string; public constructor() {} } diff --git a/src/Model/Payout/PayoutTransaction.zod.ts b/src/Model/Payout/PayoutTransaction.zod.ts new file mode 100644 index 0000000..87cdf18 --- /dev/null +++ b/src/Model/Payout/PayoutTransaction.zod.ts @@ -0,0 +1,7 @@ +import { z } from 'zod'; + +export const payoutTransactionInterfaceSchema = z.object({ + txid: z.string(), + amount: z.number(), + date: z.string() +}); diff --git a/src/Model/Rates/Rate.ts b/src/Model/Rates/Rate.ts new file mode 100644 index 0000000..0a79c49 --- /dev/null +++ b/src/Model/Rates/Rate.ts @@ -0,0 +1,5 @@ +export interface RateInterface { + name: string; + code: string; + rate: number; +} diff --git a/src/Model/Rates/Rate.zod.ts b/src/Model/Rates/Rate.zod.ts new file mode 100644 index 0000000..cb2ab3c --- /dev/null +++ b/src/Model/Rates/Rate.zod.ts @@ -0,0 +1,7 @@ +import { z } from 'zod'; + +export const rateInterfaceSchema = z.object({ + name: z.string(), + code: z.string(), + rate: z.number() +}); diff --git a/src/Model/Rates/Rates.ts b/src/Model/Rates/Rates.ts index 5595706..5b32906 100644 --- a/src/Model/Rates/Rates.ts +++ b/src/Model/Rates/Rates.ts @@ -1,13 +1,6 @@ import { RateClient } from '../../Client/RateClient'; import { BitPayExceptionProvider } from '../../Exceptions/BitPayExceptionProvider'; - -interface RateInterface { - Name: string; - cryptoCode: string; - currencyPair: string; - code: string; - rate: number; -} +import { RateInterface } from './Rate'; class Rates { private rates: RateInterface[]; @@ -33,7 +26,7 @@ class Rates { } public async update(rateClient: RateClient) { - const rates = await rateClient.getRates(); + const rates = await rateClient.getRates(null); this.rates = rates.getRates(); } @@ -44,10 +37,11 @@ class Rates { } return ratesObj; - } catch (e) { + } catch (e: any) { BitPayExceptionProvider.throwGenericExceptionWithMessage(e.message); + throw new Error(); } } } -export { Rates, RateInterface }; +export { Rates }; diff --git a/src/Model/Settlement/InvoiceData.ts b/src/Model/Settlement/InvoiceData.ts index 038f355..a57f021 100644 --- a/src/Model/Settlement/InvoiceData.ts +++ b/src/Model/Settlement/InvoiceData.ts @@ -1,23 +1,23 @@ import { RefundInfo } from './RefundInfo'; export interface InvoiceDataInterface { - orderId: string | null; - date: number; price: number; - currency: string | null; - transactionCurrency: string | null; - payoutPercentage: number; - refundInfo: RefundInfo; + orderId?: string; + date?: string; + currency?: string; + transactionCurrency?: string; + payoutPercentage?: Record; + refundInfo?: RefundInfo; } export class InvoiceData implements InvoiceDataInterface { - orderId: string | null; - date: number; price: number; - currency: string | null; - transactionCurrency: string | null; - payoutPercentage: number; - refundInfo: RefundInfo; + orderId?: string; + date?: string; + currency?: string; + transactionCurrency?: string; + payoutPercentage?: Record; + refundInfo?: RefundInfo; public constructor() {} } diff --git a/src/Model/Settlement/InvoiceData.zod.ts b/src/Model/Settlement/InvoiceData.zod.ts new file mode 100644 index 0000000..3e77a33 --- /dev/null +++ b/src/Model/Settlement/InvoiceData.zod.ts @@ -0,0 +1,13 @@ +import { z } from 'zod'; +import { refundInfoInterfaceSchema } from './RefundInfo.zod'; + +export const invoiceDataInterfaceSchema = z.object({ + refundInfo: refundInfoInterfaceSchema.optional(), + + price: z.number(), + orderId: z.string().optional(), + date: z.string().optional(), + currency: z.string().optional(), + transactionCurrency: z.string().optional(), + payoutPercentage: z.record(z.number()).optional() +}); diff --git a/src/Model/Settlement/PayoutInfo.ts b/src/Model/Settlement/PayoutInfo.ts index 7727dc7..290bc6d 100644 --- a/src/Model/Settlement/PayoutInfo.ts +++ b/src/Model/Settlement/PayoutInfo.ts @@ -1,55 +1,55 @@ export interface PayoutInfoInterface { - name: string | null; - account: string | null; - routing: string | null; - merchantEin: string | null; - label: string | null; - bankCountry: string | null; - bank: string | null; - swift: string | null; - address: string | null; - city: string | null; - postal: string | null; - sort: string | null; - wire: string | null; - bankName: string | null; - bankAddress: string | null; - bankAddress2: string | null; - iban: string | null; - additionalInformation: string | null; - accountHolderName: string | null; - accountHolderAddress: string | null; - accountHolderAddress2: string | null; - accountHolderPostalCode: string | null; - accountHolderCity: string | null; - accountHolderCountry: string | null; + name?: string; + account?: string; + routing?: string; + merchantEin?: string; + label?: string; + bankCountry?: string; + bank?: string; + swift?: string; + address?: string; + city?: string; + postal?: string; + sort?: string; + wire?: boolean; + bankName?: string; + bankAddress?: string; + bankAddress2?: string; + iban?: string; + additionalInformation?: string; + accountHolderName?: string; + accountHolderAddress?: string; + accountHolderAddress2?: string; + accountHolderPostalCode?: string; + accountHolderCity?: string; + accountHolderCountry?: string; } export class PayoutInfo implements PayoutInfoInterface { - name: string | null; - account: string | null; - routing: string | null; - merchantEin: string | null; - label: string | null; - bankCountry: string | null; - bank: string | null; - swift: string | null; - address: string | null; - city: string | null; - postal: string | null; - sort: string | null; - wire: string | null; - bankName: string | null; - bankAddress: string | null; - bankAddress2: string | null; - iban: string | null; - additionalInformation: string | null; - accountHolderName: string | null; - accountHolderAddress: string | null; - accountHolderAddress2: string | null; - accountHolderPostalCode: string | null; - accountHolderCity: string | null; - accountHolderCountry: string | null; + name?: string; + account?: string; + routing?: string; + merchantEin?: string; + label?: string; + bankCountry?: string; + bank?: string; + swift?: string; + address?: string; + city?: string; + postal?: string; + sort?: string; + wire?: boolean; + bankName?: string; + bankAddress?: string; + bankAddress2?: string; + iban?: string; + additionalInformation?: string; + accountHolderName?: string; + accountHolderAddress?: string; + accountHolderAddress2?: string; + accountHolderPostalCode?: string; + accountHolderCity?: string; + accountHolderCountry?: string; public constructor() {} } diff --git a/src/Model/Settlement/PayoutInfo.zod.ts b/src/Model/Settlement/PayoutInfo.zod.ts new file mode 100644 index 0000000..1e3f470 --- /dev/null +++ b/src/Model/Settlement/PayoutInfo.zod.ts @@ -0,0 +1,28 @@ +import { z } from 'zod'; + +export const payoutInfoInterfaceSchema = z.object({ + name: z.string().optional(), + account: z.string().optional(), + routing: z.string().optional(), + merchantEin: z.string().optional(), + label: z.string().optional(), + bankCountry: z.string().optional(), + bank: z.string().optional(), + swift: z.string().optional(), + address: z.string().optional(), + city: z.string().optional(), + postal: z.string().optional(), + sort: z.string().optional(), + wire: z.boolean().optional(), + bankName: z.string().optional(), + bankAddress: z.string().optional(), + bankAddress2: z.string().optional(), + iban: z.string().optional(), + additionalInformation: z.string().optional(), + accountHolderName: z.string().optional(), + accountHolderAddress: z.string().optional(), + accountHolderAddress2: z.string().optional(), + accountHolderPostalCode: z.string().optional(), + accountHolderCity: z.string().optional(), + accountHolderCountry: z.string().optional() +}); diff --git a/src/Model/Settlement/RefundInfo.ts b/src/Model/Settlement/RefundInfo.ts index e4e88a1..6f745ac 100644 --- a/src/Model/Settlement/RefundInfo.ts +++ b/src/Model/Settlement/RefundInfo.ts @@ -1,15 +1,15 @@ export interface RefundInfoInterface { - supportRequest: string | null; - currency: string | null; - refundRequestEid: string | null; - amounts: []; + supportRequest?: string; + currency: string; + refundRequestEid?: string; + amounts?: Record; } export class RefundInfo implements RefundInfoInterface { - supportRequest: string | null; - currency: string | null; - refundRequestEid: string | null; - amounts: []; + supportRequest?: string; + currency: string; + refundRequestEid?: string; + amounts?: Record; public constructor() {} } diff --git a/src/Model/Settlement/RefundInfo.zod.ts b/src/Model/Settlement/RefundInfo.zod.ts new file mode 100644 index 0000000..cbabd55 --- /dev/null +++ b/src/Model/Settlement/RefundInfo.zod.ts @@ -0,0 +1,8 @@ +import { z } from 'zod'; + +export const refundInfoInterfaceSchema = z.object({ + supportRequest: z.string().optional(), + currency: z.string(), + refundRequestEid: z.string().optional(), + amounts: z.record(z.number()).optional() +}); diff --git a/src/Model/Settlement/Settlement.ts b/src/Model/Settlement/Settlement.ts index 0b6ce22..209cfa5 100644 --- a/src/Model/Settlement/Settlement.ts +++ b/src/Model/Settlement/Settlement.ts @@ -5,39 +5,39 @@ import { WithHoldings } from './WithHoldings'; export interface SettlementInterface { id: string | null; accountId: string | null; - currency: string | null; - payoutInfo: PayoutInfo | null; - status: string | null; - dateCreated: number; - dateExecuted: number; - openingDate: number; - closingDate: number; + currency: string; + payoutInfo?: PayoutInfo; + status: string; + dateCreated: string; + dateExecuted: string; + openingDate: string; + closingDate: string; openingBalance: number; ledgerEntriesSum: number; - withholdings: WithHoldings[] | null; - withholdingsSum: number | null; + withholdings?: WithHoldings[]; + withholdingsSum?: number; totalAmount: number; - ledgerEntries: SettlementLedgerEntry[]; - token: string | null; + ledgerEntries?: SettlementLedgerEntry[]; + token?: string; } export class Settlement implements SettlementInterface { id: string | null; accountId: string | null; - currency: string | null; - payoutInfo: PayoutInfo | null; - status: string | null; - dateCreated: number; - dateExecuted: number; - openingDate: number; - closingDate: number; + currency: string; + payoutInfo?: PayoutInfo; + status: string; + dateCreated: string; + dateExecuted: string; + openingDate: string; + closingDate: string; openingBalance: number; ledgerEntriesSum: number; - withholdings: WithHoldings[] | null; - withholdingsSum: number | null; + withholdings?: WithHoldings[]; + withholdingsSum?: number; totalAmount: number; - ledgerEntries: SettlementLedgerEntry[]; - token: string | null; + ledgerEntries?: SettlementLedgerEntry[]; + token?: string; public constructor() {} } diff --git a/src/Model/Settlement/Settlement.zod.ts b/src/Model/Settlement/Settlement.zod.ts new file mode 100644 index 0000000..1102344 --- /dev/null +++ b/src/Model/Settlement/Settlement.zod.ts @@ -0,0 +1,24 @@ +import { z } from 'zod'; +import { withHoldingsInterfaceSchema } from './WithHoldings.zod'; +import { payoutInfoInterfaceSchema } from './PayoutInfo.zod'; +import { settlementLedgerEntryInterfaceSchema } from './SettlementLedgerEntry.zod'; + +export const settlementInterfaceSchema = z.object({ + payoutInfo: payoutInfoInterfaceSchema.optional(), + withholdings: withHoldingsInterfaceSchema.array().optional(), + ledgerEntries: settlementLedgerEntryInterfaceSchema.array().optional(), + + id: z.string().nullable(), + accountId: z.string().nullable(), + currency: z.string(), + status: z.string(), + dateCreated: z.string(), + dateExecuted: z.string(), + openingDate: z.string(), + closingDate: z.string(), + openingBalance: z.number(), + ledgerEntriesSum: z.number(), + withholdingsSum: z.number().optional(), + totalAmount: z.number(), + token: z.string().optional() +}); diff --git a/src/Model/Settlement/SettlementLedgerEntry.ts b/src/Model/Settlement/SettlementLedgerEntry.ts index f825500..c744dcf 100644 --- a/src/Model/Settlement/SettlementLedgerEntry.ts +++ b/src/Model/Settlement/SettlementLedgerEntry.ts @@ -1,21 +1,21 @@ import { InvoiceData } from './InvoiceData'; export interface SettlementLedgerEntryInterface { - code: number | null; - invoiceId: string | null; - amount: number | null; - timestamp: number | null; - description: string | null; - invoiceData: InvoiceData | null; + amount: number; + code?: number; + invoiceId?: string; + timestamp?: string; + description?: string; + invoiceData?: InvoiceData; } export class SettlementLedgerEntry implements SettlementLedgerEntryInterface { - code: number | null; - invoiceId: string | null; - amount: number | null; - timestamp: number | null; - description: string | null; - invoiceData: InvoiceData | null; + amount: number; + code?: number; + invoiceId?: string; + timestamp?: string; + description?: string; + invoiceData?: InvoiceData; public constructor() {} } diff --git a/src/Model/Settlement/SettlementLedgerEntry.zod.ts b/src/Model/Settlement/SettlementLedgerEntry.zod.ts new file mode 100644 index 0000000..c97a749 --- /dev/null +++ b/src/Model/Settlement/SettlementLedgerEntry.zod.ts @@ -0,0 +1,12 @@ +import { z } from 'zod'; +import { invoiceDataInterfaceSchema } from './InvoiceData.zod'; + +export const settlementLedgerEntryInterfaceSchema = z.object({ + invoiceData: invoiceDataInterfaceSchema.optional(), + + amount: z.number(), + code: z.number().optional(), + invoiceId: z.string().optional(), + timestamp: z.string().optional(), + description: z.string().optional() +}); diff --git a/src/Model/Settlement/WithHoldings.ts b/src/Model/Settlement/WithHoldings.ts index 41209da..78debce 100644 --- a/src/Model/Settlement/WithHoldings.ts +++ b/src/Model/Settlement/WithHoldings.ts @@ -1,19 +1,19 @@ export interface WithHoldingsInterface { amount: number; - code: string | null; - description: string | null; - notes: string | null; - label: string | null; - bankCountry: string | null; + code: string; + description?: string; + notes?: string; + label?: string; + bankCountry?: string; } export class WithHoldings implements WithHoldingsInterface { amount: number; - code: string | null; - description: string | null; - notes: string | null; - label: string | null; - bankCountry: string | null; + code: string; + description?: string; + notes?: string; + label?: string; + bankCountry?: string; public constructor() {} } diff --git a/src/Model/Settlement/WithHoldings.zod.ts b/src/Model/Settlement/WithHoldings.zod.ts new file mode 100644 index 0000000..733420f --- /dev/null +++ b/src/Model/Settlement/WithHoldings.zod.ts @@ -0,0 +1,10 @@ +import { z } from 'zod'; + +export const withHoldingsInterfaceSchema = z.object({ + amount: z.number(), + code: z.string(), + description: z.string().optional(), + notes: z.string().optional(), + label: z.string().optional(), + bankCountry: z.string().optional() +}); diff --git a/src/Model/Subscription/BillData.ts b/src/Model/Subscription/BillData.ts deleted file mode 100644 index dbf87d4..0000000 --- a/src/Model/Subscription/BillData.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Item } from './Item'; - -export interface BillDataInterface { - emailBill: boolean | true; - cc: [] | []; - number: string | null; - currency: string | null; - name: string | null; - address1: string | null; - address2: string | null; - city: string | null; - state: string | null; - zip: string | null; - country: string | null; - email: string | null; - phone: string | null; - dueDate: string | null; - passProcessingFee: boolean | false; - items: Item[] | []; - merchant: string | null; -} - -export class BillData implements BillDataInterface { - emailBill: boolean | true; - cc: [] | []; - number: string | null; - currency: string | null; - name: string | null; - address1: string | null; - address2: string | null; - city: string | null; - state: string | null; - zip: string | null; - country: string | null; - email: string | null; - phone: string | null; - dueDate: string | null; - passProcessingFee: boolean | false; - items: Item[] | []; - merchant: string | null; - - public constructor(currency: string, email: string, dueDate: string, items: Item[]) { - this.currency = currency; - this.email = email; - this.dueDate = dueDate; - this.items = items; - } -} diff --git a/src/Model/Subscription/Item.ts b/src/Model/Subscription/Item.ts deleted file mode 100644 index 0f94b92..0000000 --- a/src/Model/Subscription/Item.ts +++ /dev/null @@ -1,17 +0,0 @@ -export interface ItemInterface { - description: string | null; - price: number | null; - quantity: number | null; -} - -export class Item implements ItemInterface { - description: string | null; - price: number | null; - quantity: number | null; - - public constructor(price: number, quantity: number, description: string) { - this.price = price; - this.quantity = quantity; - this.description = description; - } -} diff --git a/src/Model/Subscription/Subscription.ts b/src/Model/Subscription/Subscription.ts deleted file mode 100644 index 3a2cefe..0000000 --- a/src/Model/Subscription/Subscription.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BillData } from './BillData'; - -export interface SubscriptionInterface { - billData: BillData | null; - schedule: string | null; - nextDelivery: string | null; - createdDate: string | null; - token: string | null; - id: string | null; - status: string | null; -} - -export class Subscription implements SubscriptionInterface { - billData: BillData | null; - schedule: string | null; - nextDelivery: string | null; - createdDate: string | null; - token: string | null; - id: string | null; - status: string | null; - - public constructor() {} -} diff --git a/src/Model/Subscription/SubscriptionStatus.ts b/src/Model/Subscription/SubscriptionStatus.ts deleted file mode 100644 index ed9cc44..0000000 --- a/src/Model/Subscription/SubscriptionStatus.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const Draft = 'draft'; -export const Active = 'active'; -export const Cancelled = 'cancelled'; diff --git a/src/Model/Wallet/Currencies.ts b/src/Model/Wallet/Currencies.ts index 66e9e02..6108019 100644 --- a/src/Model/Wallet/Currencies.ts +++ b/src/Model/Wallet/Currencies.ts @@ -6,23 +6,23 @@ import { CurrencyQrInterface } from './CurrencyQr'; * @see Wallets */ export interface CurrenciesInterface { - code: string | null; - p2p: boolean | null; - dappBrowser: boolean | null; - payPro: boolean | null; - qr: CurrencyQrInterface | null; - image: string | null; - withdrawalFee: string | null; - walletConnect: boolean | null; + code: string; + p2p?: boolean; + dappBrowser?: boolean; + payPro?: boolean; + qr?: CurrencyQrInterface; + image?: string; + withdrawalFee?: string; + walletConnect?: boolean; } export class Currencies implements CurrenciesInterface { - code: string | null; - p2p: boolean | null; - dappBrowser: boolean | null; - payPro: boolean | null; - qr: CurrencyQrInterface | null; - image: string | null; - withdrawalFee: string | null; - walletConnect: boolean | null; + code: string; + p2p?: boolean; + dappBrowser?: boolean; + payPro?: boolean; + qr?: CurrencyQrInterface; + image?: string; + withdrawalFee?: string; + walletConnect?: boolean; } diff --git a/src/Model/Wallet/Currencies.zod.ts b/src/Model/Wallet/Currencies.zod.ts new file mode 100644 index 0000000..b532dd2 --- /dev/null +++ b/src/Model/Wallet/Currencies.zod.ts @@ -0,0 +1,14 @@ +import { z } from 'zod'; +import { currencyQrInterfaceSchema } from './CurrencyQr.zod'; + +export const currenciesInterfaceSchema = z.object({ + qr: currencyQrInterfaceSchema.optional(), + + code: z.string(), + p2p: z.boolean().optional(), + dappBrowser: z.boolean().optional(), + payPro: z.boolean().optional(), + image: z.string().optional(), + withdrawalFee: z.string().optional(), + walletConnect: z.boolean().optional() +}); diff --git a/src/Model/Wallet/CurrencyQr.ts b/src/Model/Wallet/CurrencyQr.ts index 12eaf2d..259809a 100644 --- a/src/Model/Wallet/CurrencyQr.ts +++ b/src/Model/Wallet/CurrencyQr.ts @@ -4,10 +4,10 @@ * @see Wallets */ export interface CurrencyQrInterface { - type: string | null; - collapsed: string | null; + type: string; + collapsed?: string; } export class CurrencyQr implements CurrencyQrInterface { - type: string | null; - collapsed: string | null; + type: string; + collapsed?: string; } diff --git a/src/Model/Wallet/CurrencyQr.zod.ts b/src/Model/Wallet/CurrencyQr.zod.ts new file mode 100644 index 0000000..297759e --- /dev/null +++ b/src/Model/Wallet/CurrencyQr.zod.ts @@ -0,0 +1,6 @@ +import { z } from 'zod'; + +export const currencyQrInterfaceSchema = z.object({ + type: z.string(), + collapsed: z.string().optional() +}); diff --git a/src/Model/Wallet/Wallet.ts b/src/Model/Wallet/Wallet.ts index f50abd7..f5cf882 100644 --- a/src/Model/Wallet/Wallet.ts +++ b/src/Model/Wallet/Wallet.ts @@ -6,19 +6,19 @@ import { CurrenciesInterface } from './Currencies'; export interface WalletInterface { - key: string | null; - displayName: string | null; - avatar: string | null; - payPro: boolean | null; - currencies: CurrenciesInterface[] | null; - image: string | null; + key?: string; + displayName?: string; + avatar?: string; + payPro?: boolean; + currencies?: CurrenciesInterface[]; + image?: string; } export class Wallet implements WalletInterface { - key: string | null; - displayName: string | null; - avatar: string | null; - payPro: boolean | null; - currencies: CurrenciesInterface[] | null; - image: string | null; + key?: string; + displayName?: string; + avatar?: string; + payPro?: boolean; + currencies?: CurrenciesInterface[]; + image?: string; } diff --git a/src/Model/Wallet/Wallet.zod.ts b/src/Model/Wallet/Wallet.zod.ts new file mode 100644 index 0000000..5337a4f --- /dev/null +++ b/src/Model/Wallet/Wallet.zod.ts @@ -0,0 +1,12 @@ +import { z } from 'zod'; +import { currenciesInterfaceSchema } from './Currencies.zod'; + +export const walletInterfaceSchema = z.object({ + currencies: currenciesInterfaceSchema.array().optional(), + + key: z.string().optional(), + displayName: z.string().optional(), + avatar: z.string().optional(), + payPro: z.boolean().optional(), + image: z.string().optional() +}); diff --git a/src/Model/index.ts b/src/Model/index.ts index 979df13..c6c2b86 100644 --- a/src/Model/index.ts +++ b/src/Model/index.ts @@ -14,7 +14,8 @@ */ import { Invoice, InvoiceInterface } from './Invoice/Invoice'; -import { RateInterface, Rates } from './Rates/Rates'; +import { RateInterface } from './Rates/Rate'; +import { Rates } from './Rates/Rates'; import { Bill, BillInterface } from './Bill/Bill'; import { Item as BillItem } from './Bill/Item'; import { LedgerInterface } from './Ledger/Ledger'; @@ -23,8 +24,6 @@ import { PayoutRecipient, PayoutRecipientInterface } from './Payout/PayoutRecipi import { PayoutRecipients, PayoutRecipientsInterface } from './Payout/PayoutRecipients'; import { Payout, PayoutInterface } from './Payout/Payout'; import { PayoutGroupInterface } from './Payout/PayoutGroup'; -import { BillData } from './Subscription/BillData'; -import { Item as SubscriptionItem } from './Subscription/Item'; export { Invoice, @@ -42,7 +41,5 @@ export { PayoutRecipientsInterface, Payout, PayoutInterface, - PayoutGroupInterface, - BillData, - SubscriptionItem + PayoutGroupInterface }; diff --git a/src/TokenContainer.ts b/src/TokenContainer.ts index 3e45c59..1578830 100644 --- a/src/TokenContainer.ts +++ b/src/TokenContainer.ts @@ -22,9 +22,15 @@ export class TokenContainer { public getToken(key: string): string { if (!this.data.has(key)) { BitPayExceptionProvider.throwGenericExceptionWithMessage('There is no token for the specified key : ' + key); + throw new Error(); } - return this.data.get(key); + const value: string | undefined = this.data.get(key); + if (value === undefined) { + throw new Error(); + } + + return value; } /** diff --git a/src/util/BitPayResponseParser.ts b/src/util/BitPayResponseParser.ts index 180c88c..7e4fc7f 100644 --- a/src/util/BitPayResponseParser.ts +++ b/src/util/BitPayResponseParser.ts @@ -37,7 +37,7 @@ export class BitPayResponseParser { } return JSON.stringify(responseObj); - } catch (e) { + } catch (e: any) { if (e instanceof BitPayApiException) { throw e; } diff --git a/test/clientFunctional.spec.ts b/test/clientFunctional.spec.ts index 5962013..ba4fc26 100644 --- a/test/clientFunctional.spec.ts +++ b/test/clientFunctional.spec.ts @@ -22,6 +22,18 @@ import { Item } from '../src/Model/Bill/Item'; import { WalletInterface } from '../src/Model/Wallet/Wallet'; import { CurrencyInterface } from '../src/Model/Currency/Currency'; import * as BitPaySDK from '../src/index'; +import { rateInterfaceSchema } from '../src/Model/Rates/Rate.zod'; +import { currencyInterfaceSchema } from '../src/Model/Currency/Currency.zod'; +import { invoiceSchema } from '../src/Model/Invoice/Invoice.zod'; +import { invoiceEventTokenInterfaceSchema } from '../src/Model/Invoice/InvoiceEventToken.zod'; +import { refundInterfaceSchema } from '../src/Model/Invoice/Refund.zod'; +import { payoutRecipientInterfaceSchema } from '../src/Model/Payout/PayoutRecipient.zod'; +import { payoutInterfaceSchema } from '../src/Model/Payout/Payout.zod'; +import { payoutGroupInterfaceSchema } from '../src/Model/Payout/PayoutGroup.zod'; +import { ledgerInterfaceSchema } from '../src/Model/Ledger/Ledger.zod'; +import { ledgerEntryInterfaceSchema } from '../src/Model/Ledger/LedgerEntry.zod'; +import { billInterfaceSchema } from '../src/Model/Bill/Bill.zod'; +import { walletInterfaceSchema } from '../src/Model/Wallet/Wallet.zod'; const Currencies = BitPaySDK.Currency; const PayoutStatus = BitPaySDK.PayoutStatus; @@ -74,6 +86,20 @@ describe('BitPaySDK.Client', () => { tomorrow.setDate(tomorrow.getDate() + 1); }); + /** + * Tested wallet requests: + * + * - GetSupportedWallets() + */ + describe('Wallet', () => { + it('should retrieve supported wallets', async () => { + const result: WalletInterface[] = await client.getSupportedWallets(); + + walletInterfaceSchema.parse(result[0]); + expect(result.length).toBeGreaterThan(0); + }); + }); + /** * Tested rates requests: * - GetRate(string baseCurrency, string currency) @@ -87,10 +113,14 @@ describe('BitPaySDK.Client', () => { }); it('should get rates', async () => { const result = await client.getRates(); + + rateInterfaceSchema.parse(result.getRates()[0]); expect(result.getRates()[0].rate).toBeGreaterThan(0); }); it('should get BTC rates', async () => { const rates = await client.getRates(Currencies.BTC); + + rateInterfaceSchema.parse(rates.getRates()[0]); expect(rates.getRates().length).toBeGreaterThan(0); }); }); @@ -102,6 +132,8 @@ describe('BitPaySDK.Client', () => { describe('Currency', () => { it('should get currency info', async () => { const result: CurrencyInterface = await client.getCurrencyInfo('BTC'); + + currencyInterfaceSchema.parse(result); expect(result.name).toBe('Bitcoin'); }); }); @@ -130,17 +162,22 @@ describe('BitPaySDK.Client', () => { invoiceToken = invoice.token; invoiceGuid = invoice.guid; + invoiceSchema.parse(invoice); expect(invoice.id).not.toBeNull(); expect(invoice.token).not.toBeNull(); expect(invoice.guid).not.toBeNull(); }); it('should get invoice by id', async () => { const invoice: InvoiceInterface = await client.getInvoice(invoiceId); + + invoiceSchema.parse(invoice); expect(invoice.id).toBe(invoiceId); expect(invoice.token).toBe(invoiceToken); }); it('should get invoice by guid', async () => { const invoice: InvoiceInterface = await client.getInvoiceByGuid(invoiceGuid); + + invoiceSchema.parse(invoice); expect(invoice.id).toBe(invoiceId); expect(invoice.token).toBe(invoiceToken); }); @@ -150,19 +187,27 @@ describe('BitPaySDK.Client', () => { dateEnd: tomorrow.toISOString().split('T')[0] }; const invoices: InvoiceInterface[] = await client.getInvoices(params); + + invoiceSchema.parse(invoices[0]); expect(invoices.length).toBeGreaterThan(0); }); it('should get invoice event token', async () => { const invoiceEventToken: InvoiceEventTokenInterface = await client.getInvoiceEventToken(invoiceId); + + invoiceEventTokenInterfaceSchema.parse(invoiceEventToken); expect(invoiceEventToken.token).not.toBeNull(); }); it('should update invoice', async () => { const updatedEmail = 'updated@email.com'; const params = { buyerEmail: updatedEmail }; const updatedInvoice: InvoiceInterface = await client.updateInvoice(invoiceId, params); + + invoiceSchema.parse(updatedInvoice); expect(updatedInvoice.buyerProvidedEmail).toBe(updatedEmail); const getInvoiceAfterUpdate: InvoiceInterface = await client.getInvoice(invoiceId); + + invoiceSchema.parse(getInvoiceAfterUpdate); expect(getInvoiceAfterUpdate.buyerProvidedEmail).toBe(updatedEmail); }); it('should cancel invoice', async () => { @@ -204,24 +249,32 @@ describe('BitPaySDK.Client', () => { const refundToCreateRequest: RefundInterface = new Refund(10.0, invoiceId, 'token'); const refund: RefundInterface = await client.createRefund(refundToCreateRequest); refundId = refund.id; - refundGuid = refund.guid; + refundGuid = refund.guid ?? 'invalidGuid'; + + refundInterfaceSchema.parse(refund); expect(refund.id).not.toBeNull(); }); it('should retrieve refund', async () => { const retrieveRefund: RefundInterface = await client.getRefund(refundId); + + refundInterfaceSchema.parse(retrieveRefund); expect(retrieveRefund.id).not.toBeNull(); expect(retrieveRefund.invoice).not.toBeNull(); }); it('should retrieve refund by guid ', async () => { const retrieveRefund: RefundInterface = await client.getRefundByGuid(refundGuid); + + refundInterfaceSchema.parse(retrieveRefund); expect(retrieveRefund.id).not.toBeNull(); expect(retrieveRefund.invoice).not.toBeNull(); }); it('should retrieve refunds', async () => { const result: RefundInterface[] = await client.getRefunds(invoiceId); + + refundInterfaceSchema.parse(result[0]); expect(result.length).toBeGreaterThan(0); }); @@ -232,8 +285,11 @@ describe('BitPaySDK.Client', () => { it('should cancel refund', async () => { const result: RefundInterface = await client.cancelRefund(refundId); + refundInterfaceSchema.parse(result); expect(result.status).toBe('canceled'); + const refundAfterCanceled: RefundInterface = await client.getRefund(refundId); + refundInterfaceSchema.parse(refundAfterCanceled); expect(refundAfterCanceled.status).toBe('canceled'); }); @@ -243,8 +299,11 @@ describe('BitPaySDK.Client', () => { const result: RefundInterface = await client.cancelRefundByGuid(refund.guid); expect(result.status).toBe('canceled'); + refundInterfaceSchema.parse(result); + const refundAfterCanceled: RefundInterface = await client.getRefundByGuid(refund.guid); expect(refundAfterCanceled.status).toBe('canceled'); + refundInterfaceSchema.parse(refundAfterCanceled); }); }); @@ -263,7 +322,7 @@ describe('BitPaySDK.Client', () => { it('should create recipient', async () => { const recipientsList: PayoutRecipient[] = []; - const requestedRecipient: PayoutRecipientInterface = new PayoutRecipient(email, 'Bob', null); + const requestedRecipient: PayoutRecipient = new PayoutRecipient(email, 'Bob', null); recipientsList.push(requestedRecipient); const result: PayoutRecipientInterface[] = await client.submitPayoutRecipients( @@ -271,11 +330,14 @@ describe('BitPaySDK.Client', () => { ); recipientId = result[0].id as string; + payoutRecipientInterfaceSchema.parse(result[0]); expect(recipientId).not.toBeNull(); }); it('should retrieve recipient', async () => { const result: PayoutRecipientInterface = await client.getPayoutRecipient(recipientId); + + payoutRecipientInterfaceSchema.parse(result); expect(result.email).toBe(email); }); @@ -285,6 +347,8 @@ describe('BitPaySDK.Client', () => { limit: 1, offset: 0 }); + + payoutRecipientInterfaceSchema.parse(result[0]); expect(result.length).toBeGreaterThan(0); }); @@ -293,28 +357,32 @@ describe('BitPaySDK.Client', () => { const updateRecipientRequest = new PayoutRecipient(null, null, null); updateRecipientRequest.label = updatedLabel; const result: PayoutRecipientInterface = await client.updatePayoutRecipient(recipientId, updateRecipientRequest); + + payoutRecipientInterfaceSchema.parse(result); expect(result.label).toBe(updatedLabel); }); it('should request recipient notification', async () => { const result: boolean = await client.requestPayoutRecipientNotification(recipientId); + expect(result).toBe(true); }); it('should delete recipient', async () => { const result: boolean = await client.deletePayoutRecipient(recipientId); + expect(result).toBe(true); }); }); describe('Payout', () => { let payoutId: string; - let payoutGroupId: string; + let payoutGroupId: string | null; it('should submit payout', async () => { const recipientsList: PayoutRecipient[] = []; const payoutEmail = getEmail(); - const requestedRecipient: PayoutRecipientInterface = new PayoutRecipient(payoutEmail, 'Bob', null); + const requestedRecipient: PayoutRecipient = new PayoutRecipient(payoutEmail, 'Bob', null); recipientsList.push(requestedRecipient); const recipients: PayoutRecipientInterface[] = await client.submitPayoutRecipients( @@ -330,17 +398,23 @@ describe('BitPaySDK.Client', () => { const result: PayoutInterface = await client.submitPayout(payout); payoutId = result.id as string; + + payoutInterfaceSchema.parse(result); expect(result.id).not.toBeNull(); }); it('should retrieve payout', async () => { const result: PayoutInterface = await client.getPayout(payoutId); + + payoutInterfaceSchema.parse(result); expect(result.email).toBe(getEmail()); }); it('should retrieve payouts', async () => { const params = { status: PayoutStatus.New }; const result: PayoutInterface[] = await client.getPayouts(params); + + payoutInterfaceSchema.parse(result[0]); expect(result[0].email).toBe(getEmail()); }); @@ -358,7 +432,7 @@ describe('BitPaySDK.Client', () => { // given const recipientsList: PayoutRecipient[] = []; const payoutEmail = getEmail(); - const requestedRecipient: PayoutRecipientInterface = new PayoutRecipient(payoutEmail, 'Bob', null); + const requestedRecipient: PayoutRecipient = new PayoutRecipient(payoutEmail, 'Bob', null); recipientsList.push(requestedRecipient); const recipients: PayoutRecipientInterface[] = await client.submitPayoutRecipients( @@ -377,9 +451,11 @@ describe('BitPaySDK.Client', () => { // when const result: PayoutGroupInterface = await client.submitPayouts([payout]); const firstPayout = result.payouts[0]; - payoutGroupId = firstPayout.groupId; + payoutGroupId = firstPayout.groupId ?? null; // then + payoutGroupInterfaceSchema.parse(result); + payoutInterfaceSchema.parse(firstPayout); expect(result.payouts.length).toBe(1); expect(firstPayout.notificationURL).toBe(notificationURL); expect(firstPayout.reference).toBe(reference); @@ -389,6 +465,7 @@ describe('BitPaySDK.Client', () => { // when const result: PayoutGroupInterface = await client.cancelPayouts(payoutGroupId); // then + payoutGroupInterfaceSchema.parse(result); expect(result.payouts.length).toBe(1); expect(result.payouts[0].status).toBe('cancelled'); }); @@ -404,11 +481,15 @@ describe('BitPaySDK.Client', () => { describe('Ledgers', () => { it('should get ledgers', async () => { const result: LedgerInterface[] = await client.getLedgers(); + + ledgerInterfaceSchema.parse(result[0]); expect(result.length).toBeGreaterThan(0); }); it('should get ledger entries', async () => { const result: LedgerEntryInterface[] = await client.getLedgerEntries('USD', oneMonthAgo, tomorrow); + + ledgerEntryInterfaceSchema.parse(result[0]); expect(result.length).toBeGreaterThan(0); }); }); @@ -444,6 +525,8 @@ describe('BitPaySDK.Client', () => { requestedBill.items = [item1]; const result: BillInterface = await client.createBill(requestedBill); + + billInterfaceSchema.parse(result); expect(result.id).not.toBeNull(); billId = result.id as string; billToken = result.token as string; @@ -451,11 +534,15 @@ describe('BitPaySDK.Client', () => { it('should retrieve bill', async () => { const result: BillInterface = await client.getBill(billId); + + billInterfaceSchema.parse(result); expect(result.name).toBe('John Doe'); }); it('should retrieve bills', async () => { const result: BillInterface[] = await client.getBills(null); + + billInterfaceSchema.parse(result[0]); expect(result.length).toBeGreaterThan(0); }); @@ -469,6 +556,8 @@ describe('BitPaySDK.Client', () => { updatedBillRequest.token = billToken; const result: BillInterface = await client.updateBill(updatedBillRequest, billId); + + billInterfaceSchema.parse(result); expect(result.items[0].price).toBe(9.0); }); @@ -477,16 +566,4 @@ describe('BitPaySDK.Client', () => { expect(result).toBe(true); }); }); - - /** - * Tested wallet requests: - * - * - GetSupportedWallets() - */ - describe('Wallet', () => { - it('should retrieve supported wallets', async () => { - const result: WalletInterface[] = await client.getSupportedWallets(); - expect(result.length).toBeGreaterThan(0); - }); - }); }); diff --git a/test/clientUnit.spec.ts b/test/clientUnit.spec.ts index 2e32d1b..743aa72 100644 --- a/test/clientUnit.spec.ts +++ b/test/clientUnit.spec.ts @@ -72,6 +72,19 @@ import * as invalidSignature from './json/invalidSignature.json'; import { isEqual } from 'lodash'; import * as BitPaySDK from '../src/index'; import BitPayApiException from '../src/Exceptions/BitPayApiException'; +import { invoiceSchema } from '../src/Model/Invoice/Invoice.zod'; +import { billInterfaceSchema } from '../src/Model/Bill/Bill.zod'; +import { currencyInterfaceSchema } from '../src/Model/Currency/Currency.zod'; +import { ledgerEntryInterfaceSchema } from '../src/Model/Ledger/LedgerEntry.zod'; +import { ledgerInterfaceSchema } from '../src/Model/Ledger/Ledger.zod'; +import { payoutInterfaceSchema } from '../src/Model/Payout/Payout.zod'; +import { payoutGroupInterfaceSchema } from '../src/Model/Payout/PayoutGroup.zod'; +import { payoutGroupFailedInterfaceSchema } from '../src/Model/Payout/PayoutGroupFailed.zod'; +import { rateInterfaceSchema } from '../src/Model/Rates/Rate.zod'; +import { refundInterfaceSchema } from '../src/Model/Invoice/Refund.zod'; +import { settlementInterfaceSchema } from '../src/Model/Settlement/Settlement.zod'; +import { walletInterfaceSchema } from '../src/Model/Wallet/Wallet.zod'; +import { payoutRecipientInterfaceSchema } from '../src/Model/Payout/PayoutRecipient.zod'; import { HttpRequestResolverExtras } from 'msw/lib/core/handlers/HttpHandler'; import { ResponseResolverInfo } from 'msw/lib/core/handlers/RequestHandler'; @@ -115,7 +128,7 @@ describe('BitPaySDK.Client', () => { return exampleUuid; }); - client = new Client(null, null, tokenContainer, null, null, undefined, bpc, guidGenerator); + client = new Client(null, null, tokenContainer, null, undefined, bpc, guidGenerator); oneMonthAgo = new Date(); oneMonthAgo.setDate(oneMonthAgo.getDate() - 30); @@ -202,10 +215,8 @@ describe('BitPaySDK.Client', () => { null, tokenContainer, null, - null, undefined, - new BitPayClient(host + '/', ecKey, 'someIdentity'), - null + new BitPayClient(host + '/', ecKey, 'someIdentity') ); it('should throws BitPayException for invalid signature', async () => { @@ -254,6 +265,9 @@ describe('BitPaySDK.Client', () => { ); const result = await client.getSupportedWallets(); + + walletInterfaceSchema.parse(result[0]); + walletInterfaceSchema.parse(result[1]); expect(result.length).toBe(7); expect(result[0].key).toBe('bitpay'); expect(result[0].displayName).toBe('BitPay'); @@ -306,6 +320,7 @@ describe('BitPaySDK.Client', () => { ); const result = await client.createBill(getBill(), Facade.Merchant, true); + billInterfaceSchema.parse(result); expect(result.token).toBe('6EBQR37MgDJPfEiLY3jtRq7eTP2aodR5V5wmXyyZhru5FM5yF4RCGKYQtnT7nhwHjA'); expect(result.items[0].id).toBe('NV35GRWtrdB2cmGEjY4LKY'); }); @@ -324,6 +339,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.getBill('3Zpmji8bRKxWJo2NJbWX5H', Facade.Merchant, true); + billInterfaceSchema.parse(result); + expect(result.id).toBe('3Zpmji8bRKxWJo2NJbWX5H'); expect(result.token).toBe('6EBQR37MgDJPfEiLY3jtRq7eTP2aodR5V5wmXyyZhru5FM5yF4RCGKYQtnT7nhwHjA'); expect(result.merchant).toBe('7HyKWn3d4xdhAMQYAEVxVq'); @@ -344,6 +361,7 @@ describe('BitPaySDK.Client', () => { ); const result = await client.getBills(); + billInterfaceSchema.parse(result[0]); expect(result[0].id).toBe('X6KJbe9RxAGWNReCwd1xRw'); expect(result[0].token).toBe('6EBQR37MgDJPfEiLY3jtRqBMYLg8XSDqhp2kp7VSDqCMHGHnsw4bqnnwQmtehzCvSo'); @@ -370,6 +388,7 @@ describe('BitPaySDK.Client', () => { const result = await client.getBills('draft'); + billInterfaceSchema.parse(result[0]); expect(result[0].id).toBe('X6KJbe9RxAGWNReCwd1xRw'); expect(result[0].token).toBe('6EBQR37MgDJPfEiLY3jtRqBMYLg8XSDqhp2kp7VSDqCMHGHnsw4bqnnwQmtehzCvSo'); expect(result.length).toBe(2); @@ -401,6 +420,7 @@ describe('BitPaySDK.Client', () => { const result = await client.updateBill(bill, '3Zpmji8bRKxWJo2NJbWX5H'); + billInterfaceSchema.parse(result); expect(result.status).toBe('draft'); expect(result.items.length).toBe(3); expect(result.items[2].price).toBe(5); @@ -441,11 +461,13 @@ describe('BitPaySDK.Client', () => { }) ); - const results = await client.getCurrencyInfo('USD'); - expect(results.code).toBe('USD'); - expect(results.symbol).toBe('$'); - expect(results.name).toBe('US Dollar'); - expect(results.minimum).toBe(0.01); + const result = await client.getCurrencyInfo('USD'); + + currencyInterfaceSchema.parse(result); + expect(result.code).toBe('USD'); + expect(result.symbol).toBe('$'); + expect(result.name).toBe('US Dollar'); + expect(result.minimum).toBe(0.01); }); }); @@ -461,7 +483,6 @@ describe('BitPaySDK.Client', () => { invoice.notificationEmail = 'notification@email.com'; invoice.autoRedirect = true; invoice.forcedBuyerSelectedWallet = 'bitpay'; - invoice.forcedBuyerSelectedTransactionCurrency = null; const buyerData = new Buyer(); buyerData.name = 'Marcin'; buyerData.address1 = 'SomeStreet'; @@ -498,6 +519,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.createInvoice(getInvoiceExample(), Facade.Merchant, true); + + invoiceSchema.parse(result); expect(result.id).toBe('G3viJEJgE8Jk2oekSdgT2A'); expect(result.url).toBe('https://bitpay.com/invoice?id=G3viJEJgE8Jk2oekSdgT2A'); expect(result.buyerProvidedInfo.emailAddress).toBe('john@doe.com'); @@ -517,10 +540,15 @@ describe('BitPaySDK.Client', () => { ) ); - const results = await client.getInvoice('G3viJEJgE8Jk2oekSdgT2A'); + const result = await client.getInvoice('G3viJEJgE8Jk2oekSdgT2A'); - expect(results.id).toBe('G3viJEJgE8Jk2oekSdgT2A'); - expect(results.url).toBe('https://bitpay.com/invoice?id=G3viJEJgE8Jk2oekSdgT2A'); + invoiceSchema.parse(result); + expect(result.id).toBe('G3viJEJgE8Jk2oekSdgT2A'); + expect(result.transactions[0].exRates['WBTC']).toBe(0.024436520994387978); + expect(result.transactions[0].exRates['PAX']).toBe(1355.2800000000002); + expect(result.transactions[0].exRates['DOGE']).toBe(2725.466119299674); + expect(result.transactions[0].amount).toBe(739100); + expect(result.url).toBe('https://bitpay.com/invoice?id=G3viJEJgE8Jk2oekSdgT2A'); }); it('should get invoice by guid', async () => { @@ -536,8 +564,10 @@ describe('BitPaySDK.Client', () => { ) ); - const results = await client.getInvoiceByGuid('payment1234'); - expect(results.id).toBe('G3viJEJgE8Jk2oekSdgT2A'); + const result = await client.getInvoiceByGuid('payment1234'); + + invoiceSchema.parse(result); + expect(result.id).toBe('G3viJEJgE8Jk2oekSdgT2A'); }); it('should get invoices', async () => { @@ -569,6 +599,9 @@ describe('BitPaySDK.Client', () => { }; const results = await client.getInvoices(params); + + invoiceSchema.parse(results[0]); + invoiceSchema.parse(results[1]); expect(results.length).toBe(2); }); @@ -588,6 +621,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.payInvoice('G3viJEJgE8Jk2oekSdgT2A', 'complete'); + + invoiceSchema.parse(result); expect(result.token).toBe('AShhrUJ2sEJ4stEzkt5AywcrDDE5A3SpeXsXdbU1TMVo'); }); @@ -605,6 +640,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.cancelInvoice('Hpqc63wvE1ZjzeeH4kEycF'); + + invoiceSchema.parse(result); expect(result.orderId).toBe('20210511_fghij'); }); @@ -622,6 +659,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.cancelInvoiceByGuid('payment1234'); + + invoiceSchema.parse(result); expect(result.orderId).toBe('20210511_fghij'); }); @@ -656,8 +695,9 @@ describe('BitPaySDK.Client', () => { ) ); - const results = await client.getInvoiceEventToken('GZRP3zgNHTDf8F5BmdChKz'); - expect(results.token).toBe('4MuqDPt93i9Xbf8SnAPniwbGeNLW8A3ScgAmukFMgFUFRqTLuuhVdAFfePPysVqL2P'); + const result = await client.getInvoiceEventToken('GZRP3zgNHTDf8F5BmdChKz'); + + expect(result.token).toBe('4MuqDPt93i9Xbf8SnAPniwbGeNLW8A3ScgAmukFMgFUFRqTLuuhVdAFfePPysVqL2P'); }); }); @@ -689,6 +729,8 @@ describe('BitPaySDK.Client', () => { new Date('2021-05-31T03:24:00') ); + ledgerEntryInterfaceSchema.parse(results[0]); + ledgerEntryInterfaceSchema.parse(results[1]); expect(results.length).toBe(3); expect(results[1].code).toBe(1023); expect(results[1].invoiceId).toBe('Hpqc63wvE1ZjzeeH4kEycF'); @@ -709,6 +751,9 @@ describe('BitPaySDK.Client', () => { const results = await client.getLedgers(); + ledgerInterfaceSchema.parse(results[0]); + ledgerInterfaceSchema.parse(results[1]); + ledgerInterfaceSchema.parse(results[2]); expect(results.length).toBe(3); expect(results[0].currency).toBe('EUR'); expect(results[1].currency).toBe('USD'); @@ -740,11 +785,12 @@ describe('BitPaySDK.Client', () => { payout.email = 'john@doe.com'; payout.label = 'John Doe'; - const results = await client.submitPayout(payout); + const result = await client.submitPayout(payout); - expect(results.status).toBe('new'); - expect(results.token).toBe('6RZSTPtnzEaroAe2X4YijenRiqteRDNvzbT8NjtcHjUVd9FUFwa7dsX8RFgRDDC5SL'); - expect(results.email).toBe('john@doe.com'); + payoutInterfaceSchema.parse(result); + expect(result.status).toBe('new'); + expect(result.token).toBe('6RZSTPtnzEaroAe2X4YijenRiqteRDNvzbT8NjtcHjUVd9FUFwa7dsX8RFgRDDC5SL'); + expect(result.email).toBe('john@doe.com'); }); it('should get payout', async () => { @@ -760,11 +806,12 @@ describe('BitPaySDK.Client', () => { ) ); - const results = await client.getPayout('JMwv8wQCXANoU2ZZQ9a9GH'); + const result = await client.getPayout('JMwv8wQCXANoU2ZZQ9a9GH'); - expect(results.status).toBe('complete'); - expect(results.token).toBe('6RZSTPtnzEaroAe2X4YijenRiqteRDNvzbT8NjtcHjUVd9FUFwa7dsX8RFgRDDC5SL'); - expect(results.email).toBe('john@doe.com'); + payoutInterfaceSchema.parse(result); + expect(result.status).toBe('complete'); + expect(result.token).toBe('6RZSTPtnzEaroAe2X4YijenRiqteRDNvzbT8NjtcHjUVd9FUFwa7dsX8RFgRDDC5SL'); + expect(result.email).toBe('john@doe.com'); }); it('should get payouts', async () => { @@ -795,6 +842,8 @@ describe('BitPaySDK.Client', () => { const results = await client.getPayouts(params); + payoutInterfaceSchema.parse(results[0]); + payoutInterfaceSchema.parse(results[1]); expect(results[0].id).toBe('JMwv8wQCXANoU2ZZQ9a9GH'); expect(results[0].email).toBe('john@doe.com'); expect(results[1].id).toBe('KMXZeQigXG6T5abzCJmTcH'); @@ -847,6 +896,9 @@ describe('BitPaySDK.Client', () => { const firstPayout = result.payouts[0]; const firstFailed = result.failed[0]; + payoutGroupInterfaceSchema.parse(result); + payoutInterfaceSchema.parse(firstPayout); + payoutGroupFailedInterfaceSchema.parse(firstFailed); expect(result.payouts.length).toBe(1); expect(firstPayout.notificationURL).toBe(notificationURL); expect(firstPayout.shopperId).toBe(shopperId); @@ -871,6 +923,9 @@ describe('BitPaySDK.Client', () => { const firstPayout = result.payouts[0]; const firstFailed = result.failed[0]; + payoutGroupInterfaceSchema.parse(result); + payoutInterfaceSchema.parse(firstPayout); + payoutGroupFailedInterfaceSchema.parse(firstFailed); expect(result.payouts.length).toBe(2); expect(firstPayout.notificationURL).toBe('https://yournotiticationURL.com/wed3sa0wx1rz5bg0bv97851eqx'); expect(firstPayout.shopperId).toBe('7qohDf2zZnQK5Qanj8oyC2'); @@ -920,6 +975,8 @@ describe('BitPaySDK.Client', () => { const results = await client.submitPayoutRecipients(payoutRecipients); + payoutRecipientInterfaceSchema.parse(results[0]); + payoutRecipientInterfaceSchema.parse(results[1]); expect(results.length).toBe(2); expect(results[0].id).toBe('JA4cEtmBxCp5cybtnh1rds'); expect(results[1].id).toBe('X3icwc4tE8KJ5hEPNPpDXW'); @@ -951,6 +1008,8 @@ describe('BitPaySDK.Client', () => { const results = await client.getPayoutRecipients(params); + payoutRecipientInterfaceSchema.parse(results[0]); + payoutRecipientInterfaceSchema.parse(results[1]); expect(results.length).toBe(2); expect(results[0].id).toBe('JA4cEtmBxCp5cybtnh1rds'); expect(results[1].id).toBe('X3icwc4tE8KJ5hEPNPpDXW'); @@ -972,6 +1031,7 @@ describe('BitPaySDK.Client', () => { const result = await client.getPayoutRecipient('JA4cEtmBxCp5cybtnh1rds'); + payoutRecipientInterfaceSchema.parse(result); expect(result.email).toBe('john.smith@email.com'); expect(result.label).toBe('John Smith'); expect(result.id).toBe('JA4cEtmBxCp5cybtnh1rds'); @@ -1001,6 +1061,7 @@ describe('BitPaySDK.Client', () => { const payoutRecipient = new PayoutRecipient('bob@email.com', 'Bob123', 'https://someurl.com'); + payoutRecipientInterfaceSchema.parse(payoutRecipient); const result = await client.updatePayoutRecipient('X3icwc4tE8KJ5hEPNPpDXW', payoutRecipient); expect(result.label).toBe('Bob123'); }); @@ -1031,8 +1092,10 @@ describe('BitPaySDK.Client', () => { }) ); - const results: RateInterface = await client.getRate('BCH', 'USD'); - expect(results.rate).toBe(100.99); + const result: RateInterface = await client.getRate('BCH', 'USD'); + + rateInterfaceSchema.parse(result); + expect(result.rate).toBe(100.99); }); it('should get rates', async () => { @@ -1043,6 +1106,8 @@ describe('BitPaySDK.Client', () => { ); const results: Rates = await client.getRates(); + + rateInterfaceSchema.parse(results.getRates()[0]); expect(results.getRates().length).toBe(183); }); @@ -1054,6 +1119,8 @@ describe('BitPaySDK.Client', () => { ); const results: Rates = await client.getRates('BTC'); + + rateInterfaceSchema.parse(results.getRates()[0]); expect(results.getRates().length).toBe(183); }); }); @@ -1081,6 +1148,8 @@ describe('BitPaySDK.Client', () => { const refund = new Refund(10.0, 'Hpqc63wvE1ZjzeeH4kEycF', 'token'); const result = await client.createRefund(refund); + + refundInterfaceSchema.parse(result); expect(result.guid).toBe('ee26b5e0-9185-493e-bc12-e846d5fcf07c'); expect(result.amount).toBe(10); expect(result.invoice).toBe('Hpqc63wvE1ZjzeeH4kEycF'); @@ -1100,6 +1169,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.getRefund('WoE46gSLkJQS48RJEiNw3L'); + + refundInterfaceSchema.parse(result); expect(result.guid).toBe('ee26b5e0-9185-493e-bc12-e846d5fcf07c'); expect(result.amount).toBe(10); expect(result.invoice).toBe('Hpqc63wvE1ZjzeeH4kEycF'); @@ -1119,6 +1190,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.getRefundByGuid('ee26b5e0-9185-493e-bc12-e846d5fcf07c'); + + refundInterfaceSchema.parse(result); expect(result.id).toBe('WoE46gSLkJQS48RJEiNw3L'); expect(result.amount).toBe(10); expect(result.invoice).toBe('Hpqc63wvE1ZjzeeH4kEycF'); @@ -1143,6 +1216,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.getRefunds('Hpqc63wvE1ZjzeeH4kEycF'); + + refundInterfaceSchema.parse(result); expect(result.id).toBe('WoE46gSLkJQS48RJEiNw3L'); expect(result.amount).toBe(10); expect(result.invoice).toBe('Hpqc63wvE1ZjzeeH4kEycF'); @@ -1164,6 +1239,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.updateRefund('WoE46gSLkJQS48RJEiNw3L', 'created'); + + refundInterfaceSchema.parse(result); expect(result.id).toBe('WoE46gSLkJQS48RJEiNw3L'); expect(result.status).toBe('created'); expect(result.invoice).toBe('Hpqc63wvE1ZjzeeH4kEycF'); @@ -1185,6 +1262,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.updateRefundByGuid('ee26b5e0-9185-493e-bc12-e846d5fcf07c', 'created'); + + refundInterfaceSchema.parse(result); expect(result.id).toBe('WoE46gSLkJQS48RJEiNw3L'); expect(result.status).toBe('created'); expect(result.invoice).toBe('Hpqc63wvE1ZjzeeH4kEycF'); @@ -1223,6 +1302,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.cancelRefund('WoE46gSLkJQS48RJEiNw3L'); + + refundInterfaceSchema.parse(result); expect(result.invoice).toBe('Hpqc63wvE1ZjzeeH4kEycF'); expect(result.reference).toBe('Test refund'); }); @@ -1241,6 +1322,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.cancelRefundByGuid('WoE46gSLkJQS48RJEiNw3L'); + + refundInterfaceSchema.parse(result); expect(result.invoice).toBe('Hpqc63wvE1ZjzeeH4kEycF'); expect(result.reference).toBe('Test refund'); }); @@ -1280,6 +1363,9 @@ describe('BitPaySDK.Client', () => { }; const result = await client.getSettlements(params); + + settlementInterfaceSchema.parse(result[0]); + settlementInterfaceSchema.parse(result[1]); expect(result.length).toBe(2); expect(result[0].id).toBe('KBkdURgmE3Lsy9VTnavZHX'); expect(result[0].accountId).toBe('YJCgTf3jrXHkUVzLQ7y4eg'); @@ -1301,6 +1387,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.getSettlement('DNFnN3fFjjzLn6if5bdGJC'); + + settlementInterfaceSchema.parse(result); expect(result.id).toBe('RPWTabW8urd3xWv2To989v'); expect(result.accountId).toBe('YJCgTf3jrXHkUVzLQ7y4eg'); expect(result.openingBalance).toBe(23.27); @@ -1324,6 +1412,8 @@ describe('BitPaySDK.Client', () => { ); const result = await client.getSettlementReconciliationReport('RvNuCTMAkURKimwgvSVEMP', token); + + settlementInterfaceSchema.parse(result); expect(result.id).toBe('RvNuCTMAkURKimwgvSVEMP'); expect(result.accountId).toBe('YJCgTf3jrXHkUVzLQ7y4eg'); expect(result.openingBalance).toBe(23.13); diff --git a/test/json/createInvoiceRequest.json b/test/json/createInvoiceRequest.json index 6ac5cf4..cd8e06c 100644 --- a/test/json/createInvoiceRequest.json +++ b/test/json/createInvoiceRequest.json @@ -18,7 +18,6 @@ }, "currency": "USD", "extendedNotifications": true, - "forcedBuyerSelectedTransactionCurrency": null, "forcedBuyerSelectedWallet": "bitpay", "fullNotifications": true, "itemDesc": "Example", diff --git a/test/json/getInvoiceResponse.json b/test/json/getInvoiceResponse.json index c970522..33b9a77 100644 --- a/test/json/getInvoiceResponse.json +++ b/test/json/getInvoiceResponse.json @@ -56,8 +56,7 @@ "sms": "+12223334444", "smsVerified": true, "selectedWallet": "bitpay", - "selectedTransactionCurrency": "BCH", - "emailAddress": "john@doe.com" + "selectedTransactionCurrency": "BCH" }, "paymentSubtotals": { "BTC": 18000, diff --git a/tsconfig.json b/tsconfig.json index 73860da..3f2fff5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,12 +6,15 @@ "target": "es2021", "outDir": "./dist", "sourceMap": true, - "strictNullChecks": false, + "strictBindCallApply": true, + "strictFunctionTypes": true, + "strictNullChecks": true, "strictPropertyInitialization": false, + "useUnknownInCatchVariables": true, "allowSyntheticDefaultImports": true, "esModuleInterop": false, "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, + "resolveJsonModule": true }, "lib": [ "es2021",