From 56a3a0b8d2a7e508a7169f49ed9dc4faa4fbfa0c Mon Sep 17 00:00:00 2001 From: Ilya Hancharyk Date: Mon, 17 Jul 2023 17:05:33 +0300 Subject: [PATCH 1/4] Bump package versions. Remove unused packages --- package-lock.json | 2057 ++++++++++++++++++++------------------------- package.json | 24 +- 2 files changed, 936 insertions(+), 1145 deletions(-) diff --git a/package-lock.json b/package-lock.json index 38bfea8..1a0513d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,19 +9,16 @@ "version": "5.0.5", "license": "Apache-2.0", "dependencies": { - "@jest/reporters": "27.5.1", "@reportportal/client-javascript": "^5.0.12", - "jest-cli": "^27.5.1", "strip-ansi": "^6.0.1" }, "devDependencies": { - "@types/jest": "^27.5.2", + "@types/jest": "^29.5.3", "eslint": "^7.32.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-plugin-import": "^2.27.5", "eslint-plugin-node": "^11.1.0", - "jest": "^27.5.1", - "jest-circus": "^27.5.1" + "jest": "^29.6.1" }, "engines": { "node": ">=10.x" @@ -31,6 +28,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" @@ -43,6 +41,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", + "dev": true, "dependencies": { "@babel/highlight": "^7.22.5" }, @@ -51,33 +50,35 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.5.tgz", - "integrity": "sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==", + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.9.tgz", + "integrity": "sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==", + "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.5.tgz", - "integrity": "sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==", + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", + "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", + "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.5", - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helpers": "^7.22.5", - "@babel/parser": "^7.22.5", + "@babel/generator": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.9", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helpers": "^7.22.6", + "@babel/parser": "^7.22.7", "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.5", + "@babel/traverse": "^7.22.8", "@babel/types": "^7.22.5", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.2", - "semver": "^6.3.0" + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -87,10 +88,17 @@ "url": "https://opencollective.com/babel" } }, + "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.22.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.5.tgz", - "integrity": "sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==", + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.9.tgz", + "integrity": "sha512-KtLMbmicyuK2Ak/FTCJVbDnkN1SlT8/kceFTiuDiiRUUSMnHMidxSCdG4ndkTOHHpoomWe/4xkvHkEOncwjYIw==", + "dev": true, "dependencies": { "@babel/types": "^7.22.5", "@jridgewell/gen-mapping": "^0.3.2", @@ -102,15 +110,16 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.5.tgz", - "integrity": "sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==", + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.9.tgz", + "integrity": "sha512-7qYrNM6HjpnPHJbopxmb8hSPoZ0gsX8IvUS32JGVoy+pU9e5N0nLr1VjJoR6kA4d9dmGLxNYOjeB8sUDal2WMw==", + "dev": true, "dependencies": { - "@babel/compat-data": "^7.22.5", + "@babel/compat-data": "^7.22.9", "@babel/helper-validator-option": "^7.22.5", - "browserslist": "^4.21.3", + "browserslist": "^4.21.9", "lru-cache": "^5.1.1", - "semver": "^6.3.0" + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -123,6 +132,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -131,6 +141,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "dev": true, "dependencies": { "@babel/template": "^7.22.5", "@babel/types": "^7.22.5" @@ -143,6 +154,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, "dependencies": { "@babel/types": "^7.22.5" }, @@ -154,6 +166,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", + "dev": true, "dependencies": { "@babel/types": "^7.22.5" }, @@ -162,27 +175,29 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz", - "integrity": "sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==", + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz", + "integrity": "sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==", + "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.5", "@babel/helper-module-imports": "^7.22.5", "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.5", - "@babel/types": "^7.22.5" + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.5" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-plugin-utils": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -191,6 +206,7 @@ "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==", + "dev": true, "dependencies": { "@babel/types": "^7.22.5" }, @@ -199,9 +215,10 @@ } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.5.tgz", - "integrity": "sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, "dependencies": { "@babel/types": "^7.22.5" }, @@ -213,6 +230,7 @@ "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==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -221,6 +239,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -229,17 +248,19 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", + "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.5.tgz", - "integrity": "sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.6.tgz", + "integrity": "sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA==", + "dev": true, "dependencies": { "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.5", + "@babel/traverse": "^7.22.6", "@babel/types": "^7.22.5" }, "engines": { @@ -250,6 +271,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", + "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.22.5", "chalk": "^2.0.0", @@ -263,6 +285,7 @@ "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" }, @@ -274,6 +297,7 @@ "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", @@ -287,6 +311,7 @@ "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" } @@ -294,12 +319,14 @@ "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==" + "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" } @@ -308,6 +335,7 @@ "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" } @@ -316,6 +344,7 @@ "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" }, @@ -324,9 +353,10 @@ } }, "node_modules/@babel/parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz", - "integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==", + "version": "7.22.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.7.tgz", + "integrity": "sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==", + "dev": true, "bin": { "parser": "bin/babel-parser.js" }, @@ -338,6 +368,7 @@ "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -349,6 +380,7 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -360,6 +392,7 @@ "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -371,6 +404,7 @@ "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -382,6 +416,7 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -389,10 +424,26 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", + "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -404,6 +455,7 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -415,6 +467,7 @@ "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -426,6 +479,7 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -437,6 +491,7 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -448,6 +503,7 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -459,6 +515,7 @@ "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -473,6 +530,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", + "dev": true, "dependencies": { "@babel/helper-plugin-utils": "^7.22.5" }, @@ -498,6 +556,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.22.5", "@babel/parser": "^7.22.5", @@ -508,17 +567,18 @@ } }, "node_modules/@babel/traverse": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.5.tgz", - "integrity": "sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==", + "version": "7.22.8", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.8.tgz", + "integrity": "sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.5", + "@babel/generator": "^7.22.7", "@babel/helper-environment-visitor": "^7.22.5", "@babel/helper-function-name": "^7.22.5", "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.5", - "@babel/parser": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.22.7", "@babel/types": "^7.22.5", "debug": "^4.1.0", "globals": "^11.1.0" @@ -531,6 +591,7 @@ "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "dev": true, "dependencies": { "@babel/helper-string-parser": "^7.22.5", "@babel/helper-validator-identifier": "^7.22.5", @@ -543,7 +604,8 @@ "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true }, "node_modules/@eslint/eslintrc": { "version": "0.4.3", @@ -616,6 +678,7 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -631,62 +694,65 @@ "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, "engines": { "node": ">=8" } }, "node_modules/@jest/console": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.6.1.tgz", + "integrity": "sha512-Aj772AYgwTSr5w8qnyoJ0eDYvN6bMsH3ORH1ivMotrInHLKdUz6BDlaEXHdM6kODaBIkNIyQGzsMvRdOv7VG7Q==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.1", "@types/node": "*", "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/core": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.6.1.tgz", + "integrity": "sha512-CcowHypRSm5oYQ1obz1wfvkjZZ2qoQlrKKvlfPwh5jUXVU12TWr2qMeH8chLMuTFzHh5a1g2yaqlqDICbr+ukQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.6.1", + "@jest/reporters": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "ci-info": "^3.2.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", + "jest-changed-files": "^29.5.0", + "jest-config": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-resolve-dependencies": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "jest-watcher": "^29.6.1", "micromatch": "^4.0.4", - "rimraf": "^3.0.0", + "pretty-format": "^29.6.1", "slash": "^3.0.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -698,81 +764,110 @@ } }, "node_modules/@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.6.1.tgz", + "integrity": "sha512-RMMXx4ws+Gbvw3DfLSuo2cfQlK7IwGbpuEWXCqyYDcqYTI+9Ju3a5hDnXaxjNsa6uKh9PQF2v+qg+RLe63tz5A==", + "dev": true, "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/fake-timers": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", - "jest-mock": "^27.5.1" + "jest-mock": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-N5xlPrAYaRNyFgVf2s9Uyyvr795jnB6rObuPx4QFvNJz8aAjpZUDfO4bh5G/xuplMID8PrnuF1+SfSyDxhsgYg==", + "dev": true, + "dependencies": { + "expect": "^29.6.1", + "jest-snapshot": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.1.tgz", + "integrity": "sha512-o319vIf5pEMx0LmzSxxkYYxo4wrRLKHq9dP1yJU7FoPTB0LfAKSz8SWD6D/6U3v/O52t9cF5t+MeJiRsfk7zMw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.4.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.6.1.tgz", + "integrity": "sha512-RdgHgbXyosCDMVYmj7lLpUwXA4c69vcNzhrt69dJJdf8azUrpRh3ckFCaTPNjsEeRi27Cig0oKDGxy5j7hOgHg==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", + "@jest/types": "^29.6.1", + "@sinonjs/fake-timers": "^10.0.2", "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" + "jest-message-util": "^29.6.1", + "jest-mock": "^29.6.1", + "jest-util": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/globals": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.6.1.tgz", + "integrity": "sha512-2VjpaGy78JY9n9370H8zGRCFbYVWwjY6RdDMhoJHa1sYfwe6XM/azGN0SjY8kk7BOZApIejQ1BFPyH7FPG0w3A==", + "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/types": "^29.6.1", + "jest-mock": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/reporters": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.6.1.tgz", + "integrity": "sha512-9zuaI9QKr9JnoZtFQlw4GREQbxgmNYXU6QuWtmuODvk5nvPUeBYapVR/VYMyi2WSx3jXTLJTJji8rN6+Cm4+FA==", + "dev": true, "dependencies": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", "@types/node": "*", "chalk": "^4.0.0", "collect-v8-coverage": "^1.0.0", "exit": "^0.1.2", - "glob": "^7.1.2", + "glob": "^7.1.3", "graceful-fs": "^4.2.9", "istanbul-lib-coverage": "^3.0.0", "istanbul-lib-instrument": "^5.1.0", "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", "slash": "^3.0.0", - "source-map": "^0.6.0", "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -783,91 +878,110 @@ } } }, + "node_modules/@jest/schemas": { + "version": "29.6.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.0.tgz", + "integrity": "sha512-rxLjXyJBTL4LQeJW3aKo0M/+GkCOXsO+8i9Iu7eDb6KwtP65ayoDsitrdPBtujxQ88k4wI2FNYfa6TOGwSn6cQ==", + "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": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "version": "29.6.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.0.tgz", + "integrity": "sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA==", + "dev": true, "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" + "graceful-fs": "^4.2.9" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-result": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.6.1.tgz", + "integrity": "sha512-Ynr13ZRcpX6INak0TPUukU8GWRfm/vAytE3JbJNGAvINySWYdfE7dGZMbk36oVuK4CigpbhMn8eg1dixZ7ZJOw==", + "dev": true, "dependencies": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.6.1", + "@jest/types": "^29.6.1", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-sequencer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.6.1.tgz", + "integrity": "sha512-oBkC36PCDf/wb6dWeQIhaviU0l5u6VCsXa119yqdUosYAt7/FbQU2M2UoziO3igj/HBDEgp57ONQ3fm0v9uyyg==", + "dev": true, "dependencies": { - "@jest/test-result": "^27.5.1", + "@jest/test-result": "^29.6.1", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" + "jest-haste-map": "^29.6.1", + "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/transform": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.6.1.tgz", + "integrity": "sha512-URnTneIU3ZjRSaf906cvf6Hpox3hIeJXRnz3VDSw5/X93gR8ycdfSIEy19FlVx8NFmpN7fe3Gb1xF+NjXaQLWg==", + "dev": true, "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", "babel-plugin-istanbul": "^6.1.1", "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-haste-map": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.6.1", "micromatch": "^4.0.4", "pirates": "^4.0.4", "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" + "write-file-atomic": "^4.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.1.tgz", + "integrity": "sha512-tPKQNMPuXgvdOn2/Lg9HNfUvjYVGolt04Hp03f5hAk878uwOLikN+JzeLY0HcVgKgFl9Hs3EIqpu3WX27XNhnw==", + "dev": true, "dependencies": { + "@jest/schemas": "^29.6.0", "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^16.0.0", + "@types/yargs": "^17.0.8", "chalk": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "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==", + "dev": true, "dependencies": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -881,6 +995,7 @@ "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" } @@ -889,6 +1004,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, "engines": { "node": ">=6.0.0" } @@ -896,12 +1012,14 @@ "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==" + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.18", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, "dependencies": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" @@ -910,7 +1028,8 @@ "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true }, "node_modules/@reportportal/client-javascript": { "version": "5.0.12", @@ -928,34 +1047,35 @@ "node": ">=10.x" } }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, "node_modules/@sinonjs/commons": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", - "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", + "dev": true, "dependencies": { "type-detect": "4.0.8" } }, "node_modules/@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, "dependencies": { - "@sinonjs/commons": "^1.7.0" - } - }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "engines": { - "node": ">= 6" + "@sinonjs/commons": "^3.0.0" } }, "node_modules/@types/babel__core": { "version": "7.20.1", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "dev": true, "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -968,6 +1088,7 @@ "version": "7.6.4", "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, "dependencies": { "@babel/types": "^7.0.0" } @@ -976,6 +1097,7 @@ "version": "7.4.1", "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" @@ -985,6 +1107,7 @@ "version": "7.20.1", "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", + "dev": true, "dependencies": { "@babel/types": "^7.20.7" } @@ -993,6 +1116,7 @@ "version": "4.1.6", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, "dependencies": { "@types/node": "*" } @@ -1000,12 +1124,14 @@ "node_modules/@types/istanbul-lib-coverage": { "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==" + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true }, "node_modules/@types/istanbul-lib-report": { "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": "*" } @@ -1014,18 +1140,19 @@ "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": "*" } }, "node_modules/@types/jest": { - "version": "27.5.2", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", - "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", + "version": "29.5.3", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.3.tgz", + "integrity": "sha512-1Nq7YrO/vJE/FYnqYyw0FS8LdrjExSgIiHyKg7xPpn+yi8Q4huZryKnkJatN1ZRH89Kw2v33/8ZMB7DuZeSLlA==", "dev": true, "dependencies": { - "jest-matcher-utils": "^27.0.0", - "pretty-format": "^27.0.0" + "expect": "^29.0.0", + "pretty-format": "^29.0.0" } }, "node_modules/@types/json5": { @@ -1035,24 +1162,28 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.3.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz", - "integrity": "sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==" + "version": "20.4.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.2.tgz", + "integrity": "sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==", + "dev": true }, "node_modules/@types/prettier": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==" + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true }, "node_modules/@types/stack-utils": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==" + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true }, "node_modules/@types/yargs": { - "version": "16.0.5", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dev": true, "dependencies": { "@types/yargs-parser": "*" } @@ -1060,17 +1191,14 @@ "node_modules/@types/yargs-parser": { "version": "21.0.0", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" - }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==" + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true }, "node_modules/acorn": { "version": "7.4.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, "bin": { "acorn": "bin/acorn" }, @@ -1078,15 +1206,6 @@ "node": ">=0.4.0" } }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", @@ -1096,25 +1215,6 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -1144,6 +1244,7 @@ "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, "dependencies": { "type-fest": "^0.21.3" }, @@ -1166,6 +1267,7 @@ "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" }, @@ -1180,6 +1282,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -1192,6 +1295,7 @@ "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" } @@ -1309,21 +1413,21 @@ } }, "node_modules/babel-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.1.tgz", + "integrity": "sha512-qu+3bdPEQC6KZSPz+4Fyjbga5OODNcp49j6GKzG1EKbkfyJBxEYGVUmVGpwCSeGouG52R4EgYMLb6p9YeEEQ4A==", + "dev": true, "dependencies": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/transform": "^29.6.1", "@types/babel__core": "^7.1.14", "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", + "babel-preset-jest": "^29.5.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.8.0" @@ -1333,6 +1437,7 @@ "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, "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -1345,23 +1450,25 @@ } }, "node_modules/babel-plugin-jest-hoist": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", + "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", + "dev": true, "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", + "@types/babel__core": "^7.1.14", "@types/babel__traverse": "^7.0.6" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/babel-preset-current-node-syntax": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", @@ -1381,15 +1488,16 @@ } }, "node_modules/babel-preset-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", + "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", + "dev": true, "dependencies": { - "babel-plugin-jest-hoist": "^27.5.1", + "babel-plugin-jest-hoist": "^29.5.0", "babel-preset-current-node-syntax": "^1.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.0.0" @@ -1413,6 +1521,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, "dependencies": { "fill-range": "^7.0.1" }, @@ -1420,15 +1529,11 @@ "node": ">=8" } }, - "node_modules/browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" - }, "node_modules/browserslist": { "version": "4.21.9", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", "integrity": "sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==", + "dev": true, "funding": [ { "type": "opencollective", @@ -1460,6 +1565,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, "dependencies": { "node-int64": "^0.4.0" } @@ -1467,7 +1573,8 @@ "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true }, "node_modules/call-bind": { "version": "1.0.2", @@ -1486,6 +1593,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, "engines": { "node": ">=6" } @@ -1494,14 +1602,16 @@ "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001504", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001504.tgz", - "integrity": "sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q==", + "version": "1.0.30001516", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001516.tgz", + "integrity": "sha512-Wmec9pCBY8CWbmI4HsjBeQLqDTqV91nFVR83DnZpYyRnPI1wePDsTg0bGLPC5VU/3OIZV1fmxEea1b+tFKe86g==", + "dev": true, "funding": [ { "type": "opencollective", @@ -1521,6 +1631,7 @@ "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" @@ -1536,6 +1647,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, "engines": { "node": ">=10" } @@ -1544,6 +1656,7 @@ "version": "3.8.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true, "funding": [ { "type": "github", @@ -1557,36 +1670,44 @@ "node_modules/cjs-module-lexer": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", - "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==" + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true }, "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, "dependencies": { "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", + "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" } }, "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" } }, "node_modules/collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "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==", + "dev": true, "dependencies": { "color-name": "~1.1.4" }, @@ -1597,7 +1718,8 @@ "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==" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, "node_modules/combined-stream": { "version": "1.0.8", @@ -1622,14 +1744,16 @@ "dev": true }, "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==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true }, "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, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -1639,44 +1763,11 @@ "node": ">= 8" } }, - "node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==" - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==" - }, - "node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "engines": { - "node": ">=10" - } - }, "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, "dependencies": { "ms": "2.1.2" }, @@ -1689,25 +1780,23 @@ } } }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" - }, "node_modules/dedent": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "dev": true }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true }, "node_modules/deepmerge": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -1740,16 +1829,18 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, "engines": { "node": ">=8" } }, "node_modules/diff-sequences": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/doctrine": { @@ -1764,36 +1855,19 @@ "node": ">=6.0.0" } }, - "node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "engines": { - "node": ">=8" - } - }, "node_modules/electron-to-chromium": { - "version": "1.4.433", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.433.tgz", - "integrity": "sha512-MGO1k0w1RgrfdbLVwmXcDhHHuxCn2qRgR7dYsJvWFKDttvYPx6FNzCGG0c/fBBvzK2LDh3UV7Tt9awnHnvAAUQ==" + "version": "1.4.461", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.461.tgz", + "integrity": "sha512-1JkvV2sgEGTDXjdsaQCeSwYYuhLRphRpc+g6EHTFELJXEiznLt3/0pZ9JuAOQ5p2rI3YxKTbivtvajirIfhrEQ==", + "dev": true }, "node_modules/emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sindresorhus/emittery?sponsor=1" @@ -1802,7 +1876,8 @@ "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==" + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, "node_modules/enquirer": { "version": "2.3.6", @@ -1820,6 +1895,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, "dependencies": { "is-arrayish": "^0.2.1" } @@ -1916,6 +1992,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, "engines": { "node": ">=6" } @@ -1932,87 +2009,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/escodegen/node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/eslint": { - "version": "7.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", - "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", - "dev": true, + "node_modules/eslint": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", + "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", + "dev": true, "dependencies": { "@babel/code-frame": "7.12.11", "@eslint/eslintrc": "^0.4.3", @@ -2369,6 +2370,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -2432,6 +2434,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -2440,6 +2443,7 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -2462,22 +2466,26 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, "engines": { "node": ">= 0.8.0" } }, "node_modules/expect": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" + "@jest/expect-utils": "^29.6.1", + "@types/node": "*", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/fast-deep-equal": { @@ -2489,17 +2497,20 @@ "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", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true }, "node_modules/fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, "dependencies": { "bser": "2.1.1" } @@ -2520,6 +2531,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, "dependencies": { "to-regex-range": "^5.0.1" }, @@ -2531,6 +2543,7 @@ "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" @@ -2608,6 +2621,7 @@ "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, "hasInstallScript": true, "optional": true, "os": [ @@ -2620,7 +2634,8 @@ "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true }, "node_modules/function.prototype.name": { "version": "1.1.5", @@ -2659,6 +2674,7 @@ "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, "engines": { "node": ">=6.9.0" } @@ -2667,6 +2683,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, "engines": { "node": "6.* || 8.* || >= 10.*" } @@ -2690,6 +2707,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, "engines": { "node": ">=8.0.0" } @@ -2698,6 +2716,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, "engines": { "node": ">=10" }, @@ -2756,6 +2775,7 @@ "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" } @@ -2790,12 +2810,14 @@ "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==" + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, "dependencies": { "function-bind": "^1.1.1" }, @@ -2816,6 +2838,7 @@ "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" } @@ -2871,66 +2894,21 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" - }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, "engines": { "node": ">=10.17.0" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", @@ -2969,6 +2947,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -2987,6 +2966,7 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, "engines": { "node": ">=0.8.19" } @@ -3044,7 +3024,8 @@ "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true }, "node_modules/is-bigint": { "version": "1.0.4", @@ -3090,6 +3071,7 @@ "version": "2.12.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dev": true, "dependencies": { "has": "^1.0.3" }, @@ -3125,6 +3107,7 @@ "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, "engines": { "node": ">=8" } @@ -3133,6 +3116,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, "engines": { "node": ">=6" } @@ -3165,6 +3149,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, "engines": { "node": ">=0.12.0" } @@ -3184,11 +3169,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==" - }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -3232,6 +3212,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, "engines": { "node": ">=8" }, @@ -3288,11 +3269,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -3308,12 +3284,14 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true }, "node_modules/istanbul-lib-coverage": { "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" } @@ -3322,6 +3300,7 @@ "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", @@ -3337,6 +3316,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^3.0.0", @@ -3350,6 +3330,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -3363,6 +3344,7 @@ "version": "3.1.5", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -3372,20 +3354,21 @@ } }, "node_modules/jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.6.1.tgz", + "integrity": "sha512-Nirw5B4nn69rVUZtemCQhwxOBhm0nsp3hmtF4rzCeWD7BkjAXRIji7xWQfnTNbz9g0aVsBX6aZK3n+23LM6uDw==", "dev": true, "dependencies": { - "@jest/core": "^27.5.1", + "@jest/core": "^29.6.1", + "@jest/types": "^29.6.1", "import-local": "^3.0.2", - "jest-cli": "^27.5.1" + "jest-cli": "^29.6.1" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -3397,70 +3380,73 @@ } }, "node_modules/jest-changed-files": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", + "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", "execa": "^5.0.0", - "throat": "^6.0.1" + "p-limit": "^3.1.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.6.1.tgz", + "integrity": "sha512-tPbYLEiBU4MYAL2XoZme/bgfUeotpDBd81lgHLCbDZZFaGmECk0b+/xejPFtmiBP87GgP/y4jplcRpbH+fgCzQ==", + "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", "dedent": "^0.7.0", - "expect": "^27.5.1", "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", + "jest-each": "^29.6.1", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "p-limit": "^3.1.0", + "pretty-format": "^29.6.1", + "pure-rand": "^6.0.0", "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" + "stack-utils": "^2.0.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-cli": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.6.1.tgz", + "integrity": "sha512-607dSgTA4ODIN6go9w6xY3EYkyPFGicx51a69H7yfvt7lN53xNswEVLovq+E77VsTRi5fWprLH0yl4DJgE8Ing==", + "dev": true, "dependencies": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/core": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", "chalk": "^4.0.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-config": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", "prompts": "^2.0.1", - "yargs": "^16.2.0" + "yargs": "^17.3.1" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -3472,241 +3458,211 @@ } }, "node_modules/jest-config": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", - "dependencies": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", + "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.6.1", + "@jest/types": "^29.6.1", + "babel-jest": "^29.6.1", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", - "glob": "^7.1.1", + "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-circus": "^29.6.1", + "jest-environment-node": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", "micromatch": "^4.0.4", "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", + "pretty-format": "^29.6.1", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { + "@types/node": "*", "ts-node": ">=9.0.0" }, "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, "ts-node": { "optional": true } } }, "node_modules/jest-diff": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, "dependencies": { "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-docblock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", + "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", + "dev": true, "dependencies": { "detect-newline": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.6.1.tgz", + "integrity": "sha512-n5eoj5eiTHpKQCAVcNTT7DRqeUmJ01hsAL0Q1SMiBHcBcvTKDELixQOGMCpqhbIuTcfC4kMfSnpmDqRgRJcLNQ==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.1", "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-jsdom": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" + "jest-get-type": "^29.4.3", + "jest-util": "^29.6.1", + "pretty-format": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.1.tgz", + "integrity": "sha512-ZNIfAiE+foBog24W+2caIldl4Irh8Lx1PUhg/GZ0odM1d/h2qORAsejiFc7zb+SEmYPn1yDZzEDSU5PmDkmVLQ==", + "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" + "jest-mock": "^29.6.1", + "jest-util": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-haste-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.1.tgz", + "integrity": "sha512-0m7f9PZXxOCk1gRACiVgX85knUKPKLPg4oRCjLoqIm9brTHXaorMA0JpmtmVkQiT8nmXyIVoZd/nnH1cfC33ig==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", + "@jest/types": "^29.6.1", + "@types/graceful-fs": "^4.1.3", "@types/node": "*", "anymatch": "^3.0.3", "fb-watchman": "^2.0.0", "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", "micromatch": "^4.0.4", - "walker": "^1.0.7" + "walker": "^1.0.8" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "optionalDependencies": { "fsevents": "^2.3.2" } }, - "node_modules/jest-jasmine2": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, "node_modules/jest-leak-detector": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.6.1.tgz", + "integrity": "sha512-OrxMNyZirpOEwkF3UHnIkAiZbtkBWiye+hhBweCHkVbCgyEy71Mwbb5zgeTNYWJBi1qgDVfPC1IwO9dVEeTLwQ==", + "dev": true, "dependencies": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, "dependencies": { "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.6.1.tgz", + "integrity": "sha512-KoAW2zAmNSd3Gk88uJ56qXUWbFk787QKmjjJVOjtGFmmGSZgDBrlIL4AfQw1xyMYPNVD7dNInfIbur9B2rd/wQ==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.1", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", + "pretty-format": "^29.6.1", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.6.1.tgz", + "integrity": "sha512-brovyV9HBkjXAEdRooaTQK42n8usKoSRR3gihzUpYeV/vwqgSoNfrksO7UfSACnPmxasO/8TmHM3w9Hp3G1dgw==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" + "@jest/types": "^29.6.1", + "@types/node": "*", + "jest-util": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-pnp-resolver": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, "engines": { "node": ">=6" }, @@ -3720,157 +3676,149 @@ } }, "node_modules/jest-regex-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", + "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", + "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.6.1.tgz", + "integrity": "sha512-AeRkyS8g37UyJiP9w3mmI/VXU/q8l/IH52vj/cDAyScDcemRbSBhfX/NMYIGilQgSVwsjxrCHf3XJu4f+lxCMg==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", + "jest-haste-map": "^29.6.1", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", + "resolve.exports": "^2.0.0", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve-dependencies": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.1.tgz", + "integrity": "sha512-BbFvxLXtcldaFOhNMXmHRWx1nXQO5LoXiKSGQcA1LxxirYceZT6ch8KTE1bK3X31TNG/JbkI7OkS/ABexVahiw==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" + "jest-regex-util": "^29.4.3", + "jest-snapshot": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runner": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", - "dependencies": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.6.1.tgz", + "integrity": "sha512-tw0wb2Q9yhjAQ2w8rHRDxteryyIck7gIzQE4Reu3JuOBpGp96xWgF0nY8MDdejzrLCZKDcp8JlZrBN/EtkQvPQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.6.1", + "@jest/environment": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "emittery": "^0.13.1", "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" + "jest-docblock": "^29.4.3", + "jest-environment-node": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-leak-detector": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-resolve": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-util": "^29.6.1", + "jest-watcher": "^29.6.1", + "jest-worker": "^29.6.1", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runtime": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.6.1.tgz", + "integrity": "sha512-D6/AYOA+Lhs5e5il8+5pSLemjtJezUr+8zx+Sn8xlmOux3XOqx4d8l/2udBea8CRPqqrzhsKUsN/gBDE/IcaPQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/globals": "^29.6.1", + "@jest/source-map": "^29.6.0", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", "chalk": "^4.0.0", "cjs-module-lexer": "^1.0.0", "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-mock": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-serializer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", - "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.1.tgz", + "integrity": "sha512-G4UQE1QQ6OaCgfY+A0uR1W2AY0tGXUPQpoUClhWHq1Xdnx1H6JOrC2nH5lqnOEqaDgbHFgIwZ7bNq24HpB180A==", + "dev": true, "dependencies": { - "@babel/core": "^7.7.2", + "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", "@types/prettier": "^2.1.5", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^27.5.1", + "expect": "^29.6.1", "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" + "pretty-format": "^29.6.1", + "semver": "^7.5.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "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" }, @@ -3882,6 +3830,7 @@ "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" }, @@ -3895,14 +3844,16 @@ "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==" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "node_modules/jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.6.1.tgz", + "integrity": "sha512-NRFCcjc+/uO3ijUVyNOQJluf8PtGCe/W6cix36+M3cTFgiYqFOOW5MgN4JOOcvbUhcKTYVd1CvHz/LWi8d16Mg==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.1", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", @@ -3910,29 +3861,31 @@ "picomatch": "^2.2.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.6.1.tgz", + "integrity": "sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA==", + "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.6.1", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", + "jest-get-type": "^29.4.3", "leven": "^3.1.0", - "pretty-format": "^27.5.1" + "pretty-format": "^29.6.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate/node_modules/camelcase": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, "engines": { "node": ">=10" }, @@ -3941,39 +3894,44 @@ } }, "node_modules/jest-watcher": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.6.1.tgz", + "integrity": "sha512-d4wpjWTS7HEZPaaj8m36QiaP856JthRZkrgcIY/7ISoUWPIillrXM23WPboZVLbiwZBt4/qn2Jke84Sla6JhFA==", + "dev": true, "dependencies": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "jest-util": "^27.5.1", + "emittery": "^0.13.1", + "jest-util": "^29.6.1", "string-length": "^4.0.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.1.tgz", + "integrity": "sha512-U+Wrbca7S8ZAxAe9L6nb6g8kPdia5hj32Puu5iOqBCMTMWFHXuK6dOV2IFrpedbTV8fjMFLdWNttQTBL6u2MRA==", + "dev": true, "dependencies": { "@types/node": "*", + "jest-util": "^29.6.1", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, "engines": { - "node": ">= 10.13.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "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", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -3987,12 +3945,14 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "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==", + "dev": true, "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -4001,79 +3961,11 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/acorn": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", - "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/jsdom/node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, "bin": { "jsesc": "bin/jsesc" }, @@ -4084,7 +3976,8 @@ "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", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true }, "node_modules/json-schema-traverse": { "version": "0.4.1", @@ -4102,6 +3995,7 @@ "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, "bin": { "json5": "lib/cli.js" }, @@ -4113,6 +4007,7 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, "engines": { "node": ">=6" } @@ -4121,6 +4016,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, "engines": { "node": ">=6" } @@ -4141,12 +4037,14 @@ "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true }, "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" }, @@ -4154,11 +4052,6 @@ "node": ">=8" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -4175,6 +4068,7 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, "dependencies": { "yallist": "^3.0.2" } @@ -4183,6 +4077,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, "dependencies": { "semver": "^6.0.0" }, @@ -4197,6 +4092,7 @@ "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, "dependencies": { "tmpl": "1.0.5" } @@ -4204,12 +4100,14 @@ "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "node_modules/micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, "dependencies": { "braces": "^3.0.2", "picomatch": "^2.3.1" @@ -4241,6 +4139,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, "engines": { "node": ">=6" } @@ -4268,27 +4167,32 @@ "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true }, "node_modules/node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==" + "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==", + "dev": true }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -4297,6 +4201,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, "dependencies": { "path-key": "^3.0.0" }, @@ -4304,11 +4209,6 @@ "node": ">=8" } }, - "node_modules/nwsapi": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.5.tgz", - "integrity": "sha512-6xpotnECFy/og7tKSBVmUNft7J3jyXAka4XvG6AUhFWRz+Q/Ljus7znJAA3bxColfQLdS+XsjoodtJfCgeTEFQ==" - }, "node_modules/object-inspect": { "version": "1.12.3", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", @@ -4388,6 +4288,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, "dependencies": { "mimic-fn": "^2.1.0" }, @@ -4416,14 +4317,15 @@ } }, "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==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, "dependencies": { - "p-try": "^2.0.0" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4433,6 +4335,7 @@ "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" }, @@ -4440,10 +4343,26 @@ "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" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, "engines": { "node": ">=6" } @@ -4464,6 +4383,7 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -4477,15 +4397,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==" - }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, "engines": { "node": ">=8" } @@ -4502,6 +4418,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, "engines": { "node": ">=8" } @@ -4509,17 +4426,20 @@ "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, "engines": { "node": ">=8.6" }, @@ -4528,9 +4448,10 @@ } }, "node_modules/pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, "engines": { "node": ">= 6" } @@ -4539,6 +4460,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, "dependencies": { "find-up": "^4.0.0" }, @@ -4556,22 +4478,24 @@ } }, "node_modules/pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, "dependencies": { - "ansi-regex": "^5.0.1", + "@jest/schemas": "^29.6.0", "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" + "react-is": "^18.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, "engines": { "node": ">=10" }, @@ -4592,6 +4516,7 @@ "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -4600,28 +4525,36 @@ "node": ">= 6" } }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" - }, "node_modules/punycode": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "dev": true, "engines": { "node": ">=6" } }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==" + "node_modules/pure-rand": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", + "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] }, "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true }, "node_modules/regenerator-runtime": { "version": "0.13.11", @@ -4661,6 +4594,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -4674,15 +4608,11 @@ "node": ">=0.10.0" } }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" - }, "node_modules/resolve": { "version": "1.22.2", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dev": true, "dependencies": { "is-core-module": "^2.11.0", "path-parse": "^1.0.7", @@ -4699,6 +4629,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, "dependencies": { "resolve-from": "^5.0.0" }, @@ -4710,14 +4641,16 @@ "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/resolve.exports": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", - "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, "engines": { "node": ">=10" } @@ -4726,6 +4659,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, "dependencies": { "glob": "^7.1.3" }, @@ -4750,26 +4684,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" - } - }, "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" } @@ -4778,6 +4697,7 @@ "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, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -4789,6 +4709,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, "engines": { "node": ">=8" } @@ -4810,17 +4731,20 @@ "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==" + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, "engines": { "node": ">=8" } @@ -4846,14 +4770,16 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, "engines": { "node": ">=0.10.0" } }, "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -4862,12 +4788,14 @@ "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": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true }, "node_modules/stack-utils": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -4879,6 +4807,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, "engines": { "node": ">=8" } @@ -4887,6 +4816,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -4899,6 +4829,7 @@ "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, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -4968,6 +4899,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, "engines": { "node": ">=8" } @@ -4976,6 +4908,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, "engines": { "node": ">=6" } @@ -4984,6 +4917,7 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, "engines": { "node": ">=8" }, @@ -4995,6 +4929,7 @@ "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" }, @@ -5002,22 +4937,11 @@ "node": ">=8" } }, - "node_modules/supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, "engines": { "node": ">= 0.4" }, @@ -5025,11 +4949,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==" - }, "node_modules/table": { "version": "6.8.1", "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", @@ -5068,25 +4987,11 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true }, - "node_modules/terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dependencies": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -5102,20 +5007,17 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, - "node_modules/throat": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", - "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==" - }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==" + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, "engines": { "node": ">=4" } @@ -5124,6 +5026,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, "dependencies": { "is-number": "^7.0.0" }, @@ -5131,31 +5034,6 @@ "node": ">=8.0" } }, - "node_modules/tough-cookie": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", - "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/tsconfig-paths": { "version": "3.14.2", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", @@ -5205,6 +5083,7 @@ "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, "engines": { "node": ">=4" } @@ -5213,6 +5092,7 @@ "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" }, @@ -5234,14 +5114,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -5262,18 +5134,11 @@ "resolved": "https://registry.npmjs.org/uniqid/-/uniqid-5.4.0.tgz", "integrity": "sha512-38JRbJ4Fj94VmnC7G/J/5n5SC7Ab46OM5iNtSstB/ko3l1b5g7ALt4qzHFgGciFkyiRNtDXtLNb+VsxtMSE77A==" }, - "node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/update-browserslist-db": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, "funding": [ { "type": "opencollective", @@ -5308,15 +5173,6 @@ "punycode": "^2.1.0" } }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, "node_modules/uuid": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", @@ -5332,92 +5188,39 @@ "dev": true }, "node_modules/v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", + "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", + "dev": true, "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" + "convert-source-map": "^1.6.0" }, "engines": { "node": ">=10.12.0" } }, - "node_modules/v8-to-istanbul/node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", - "dependencies": { - "browser-process-hrtime": "^1.0.0" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - } + "node_modules/v8-to-istanbul/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/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, "dependencies": { "makeerror": "1.0.12" } }, - "node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "engines": { - "node": ">=10.4" - } - }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==" - }, - "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "dependencies": { "isexe": "^2.0.0" }, @@ -5468,6 +5271,7 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -5476,6 +5280,7 @@ "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", @@ -5494,50 +5299,23 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, "dependencies": { "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "engines": { - "node": ">=8.3.0" + "signal-exit": "^3.0.7" }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==" - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, "engines": { "node": ">=10" } @@ -5545,31 +5323,46 @@ "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true }, "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, "dependencies": { - "cliui": "^7.0.2", + "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "string-width": "^4.2.0", + "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "yargs-parser": "^21.1.1" }, "engines": { - "node": ">=10" + "node": ">=12" } }, "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } } } diff --git a/package.json b/package.json index 0684ce4..f9a3e10 100755 --- a/package.json +++ b/package.json @@ -7,6 +7,12 @@ "type": "git", "url": "git+https://github.com/reportportal/agent-js-jest.git" }, + "scripts": { + "lint": "eslint . --quiet", + "format": "npm run lint -- --fix", + "test": "jest --detectOpenHandles --config ./jest.config.js", + "test:coverage": "jest --coverage" + }, "author": "ReportPortal.io", "license": "Apache-2.0", "engines": { @@ -17,22 +23,13 @@ "utils", "constants" ], - "scripts": { - "lint": "eslint . --quiet", - "format": "npm run lint -- --fix", - "test": "jest --detectOpenHandles --config ./jest.config.js", - "test:coverage": "jest --coverage" - }, "dependencies": { - "@jest/reporters": "27.5.1", "@reportportal/client-javascript": "^5.0.12", - "jest-cli": "^27.5.1", "strip-ansi": "^6.0.1" }, "devDependencies": { - "@types/jest": "^27.5.2", - "jest": "^27.5.1", - "jest-circus": "^27.5.1", + "@types/jest": "^29.5.3", + "jest": "^29.6.1", "eslint": "^7.32.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-plugin-import": "^2.27.5", @@ -43,10 +40,11 @@ }, "homepage": "https://github.com/reportportal/agent-js-jest#readme", "keywords": [ - "epam", "reportportal", + "jest", "rp", - "jest" + "reporter", + "epam" ], "contributors": [ { From e8e683b587f157a64bb4fd51ff142b63fceb8bbc Mon Sep 17 00:00:00 2001 From: Ilya Hancharyk Date: Mon, 17 Jul 2023 17:11:50 +0300 Subject: [PATCH 2/4] Bump eslint. Update indentation --- .eslintrc | 1 - __tests__/getOptions.spec.js | 172 ++--- __tests__/index.spec.js | 714 ++++++++++---------- __tests__/mocks/reportportal-client.mock.js | 108 +-- __tests__/objectUtils.spec.js | 502 +++++++------- constants/index.js | 46 +- index.js | 405 ++++++----- jest.config.js | 30 +- package-lock.json | 607 +++++++++-------- package.json | 4 +- utils/getOptions.js | 56 +- utils/objectUtils.js | 184 ++--- 12 files changed, 1437 insertions(+), 1392 deletions(-) diff --git a/.eslintrc b/.eslintrc index 30f8f39..9aedfc9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -8,7 +8,6 @@ "es6": true }, "rules": { - "indent": ["error", 4], "max-len": ["error", 120], "valid-jsdoc": ["error", { "requireReturn": false }], "consistent-return": 0, diff --git a/__tests__/getOptions.spec.js b/__tests__/getOptions.spec.js index 58296a9..7e28602 100644 --- a/__tests__/getOptions.spec.js +++ b/__tests__/getOptions.spec.js @@ -19,112 +19,112 @@ const fs = require('fs'); const path = require('path'); const process = require('process'); const { - options, - getAppOptions, - getEnvOptions, + options, + getAppOptions, + getEnvOptions, } = require('../utils/getOptions'); const constants = require('../constants/index'); describe('Get Options script', () => { - const OLD_ENV = process.env; - const processCwdValue = process.cwd(); - - beforeEach(() => { - jest.resetModules(); - process.env = { ...OLD_ENV }; - delete process.env.NODE_ENV; - }); - - afterEach(() => { - jest.clearAllMocks(); - process.env = OLD_ENV; + const OLD_ENV = process.env; + const processCwdValue = process.cwd(); + + beforeEach(() => { + jest.resetModules(); + process.env = { ...OLD_ENV }; + delete process.env.NODE_ENV; + }); + + afterEach(() => { + jest.clearAllMocks(); + process.env = OLD_ENV; + }); + + describe('getEnvOptions', () => { + test('should return empty envOptions object if environments don\'t set', () => { + const envOptionsObject = getEnvOptions(); + + expect(envOptionsObject).toBeDefined(); + expect(envOptionsObject).toEqual({}); }); - describe('getEnvOptions', () => { - test('should return empty envOptions object if environments don\'t set', () => { - const envOptionsObject = getEnvOptions(); - - expect(envOptionsObject).toBeDefined(); - expect(envOptionsObject).toEqual({}); - }); - - test('should return envOptions object with correct values', () => { - const expectedEnvOptionsObject = { - suiteName: 'suite name', - output: 'output', - classNameTemplate: 'class name', - titleTemplate: 'title', - }; - process.env = { - JEST_SUITE_NAME: 'suite name', - JEST_JUNIT_OUTPUT: 'output', - JEST_JUNIT_CLASSNAME: 'class name', - JEST_JUNIT_TITLE: 'title', - }; - - const envOptionsObject = getEnvOptions(); - - expect(envOptionsObject).toBeDefined(); - expect(envOptionsObject).toEqual(expectedEnvOptionsObject); - }); + test('should return envOptions object with correct values', () => { + const expectedEnvOptionsObject = { + suiteName: 'suite name', + output: 'output', + classNameTemplate: 'class name', + titleTemplate: 'title', + }; + process.env = { + JEST_SUITE_NAME: 'suite name', + JEST_JUNIT_OUTPUT: 'output', + JEST_JUNIT_CLASSNAME: 'class name', + JEST_JUNIT_TITLE: 'title', + }; + + const envOptionsObject = getEnvOptions(); + + expect(envOptionsObject).toBeDefined(); + expect(envOptionsObject).toEqual(expectedEnvOptionsObject); }); + }); - describe('getAppOptions', () => { - test('should return empty AppOptions object if fs.existsSync return false', () => { - const pathToResolve = `${path.sep}path${path.sep}to${path.sep}directory`; - jest.mock('fs'); - fs.existsSync = jest.fn(); - fs.existsSync.mockReturnValue(false); + describe('getAppOptions', () => { + test('should return empty AppOptions object if fs.existsSync return false', () => { + const pathToResolve = `${path.sep}path${path.sep}to${path.sep}directory`; + jest.mock('fs'); + fs.existsSync = jest.fn(); + fs.existsSync.mockReturnValue(false); - const appOptionsObject = getAppOptions(pathToResolve); + const appOptionsObject = getAppOptions(pathToResolve); - expect(appOptionsObject).toBeDefined(); - expect(appOptionsObject).toEqual({}); - }); + expect(appOptionsObject).toBeDefined(); + expect(appOptionsObject).toEqual({}); + }); - test('should return empty AppOptions object if fs.existsSync return true and type of options' + test('should return empty AppOptions object if fs.existsSync return true and type of options' + ' is not [object Object]', () => { - const spyProcessCwd = jest.spyOn(process, 'cwd'); - // eslint-disable-next-line max-len - spyProcessCwd.mockReturnValue(`${processCwdValue}${path.sep}__tests__${path.sep}fixtures${path.sep}mockedPackageJsonString`); - jest.mock('fs'); - fs.existsSync = jest.fn(); - fs.existsSync.mockReturnValue(true); + const spyProcessCwd = jest.spyOn(process, 'cwd'); + // eslint-disable-next-line max-len + spyProcessCwd.mockReturnValue(`${processCwdValue}${path.sep}__tests__${path.sep}fixtures${path.sep}mockedPackageJsonString`); + jest.mock('fs'); + fs.existsSync = jest.fn(); + fs.existsSync.mockReturnValue(true); - const appOptionsObject = getAppOptions(process.cwd()); + const appOptionsObject = getAppOptions(process.cwd()); - expect(appOptionsObject).toBeDefined(); - expect(appOptionsObject).toEqual({}); + expect(appOptionsObject).toBeDefined(); + expect(appOptionsObject).toEqual({}); - spyProcessCwd.mockClear(); - }); + spyProcessCwd.mockClear(); + }); - test('should return AppOptions object if fs.existsSync return true and type of options' + test('should return AppOptions object if fs.existsSync return true and type of options' + ' is [object Object]', () => { - const spyProcessCwd = jest.spyOn(process, 'cwd'); - // eslint-disable-next-line max-len - spyProcessCwd.mockReturnValue(`${processCwdValue}${path.sep}__tests__${path.sep}fixtures${path.sep}mockedPackageJsonObject`); - jest.mock('fs'); - fs.existsSync = jest.fn(); - fs.existsSync.mockReturnValue(true); - - const appOptionsObject = getAppOptions(process.cwd()); - - expect(appOptionsObject).toBeDefined(); - expect(appOptionsObject).toEqual({ keyOne: 'valueOne' }); - }); + const spyProcessCwd = jest.spyOn(process, 'cwd'); + // eslint-disable-next-line max-len + spyProcessCwd.mockReturnValue(`${processCwdValue}${path.sep}__tests__${path.sep}fixtures${path.sep}mockedPackageJsonObject`); + jest.mock('fs'); + fs.existsSync = jest.fn(); + fs.existsSync.mockReturnValue(true); + + const appOptionsObject = getAppOptions(process.cwd()); + + expect(appOptionsObject).toBeDefined(); + expect(appOptionsObject).toEqual({ keyOne: 'valueOne' }); }); + }); - describe('options', () => { - test('should return options object with empty reporterOptions object', () => { - const expectedOptions = { ...constants.DEFAULT_OPTIONS }; - const spyProcessCwd = jest.spyOn(process, 'cwd'); - spyProcessCwd.mockReturnValue(processCwdValue); + describe('options', () => { + test('should return options object with empty reporterOptions object', () => { + const expectedOptions = { ...constants.DEFAULT_OPTIONS }; + const spyProcessCwd = jest.spyOn(process, 'cwd'); + spyProcessCwd.mockReturnValue(processCwdValue); - const optionsObject = options(); + const optionsObject = options(); - expect(optionsObject).toBeDefined(); - expect(optionsObject).toEqual(expectedOptions); - }); + expect(optionsObject).toBeDefined(); + expect(optionsObject).toEqual(expectedOptions); }); + }); }); diff --git a/__tests__/index.spec.js b/__tests__/index.spec.js index 00aebfa..b05028e 100644 --- a/__tests__/index.spec.js +++ b/__tests__/index.spec.js @@ -26,437 +26,435 @@ const options = getOptions(); const currentDate = new Date(); const RealDate = Date; const systemAttr = { - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, }; const duration = 5; const testResult = { - testResults: [ - { - title: 'Title', - status: 'failed', - ancestorTitles: ['Suite name', 'Test name'], - failureMessages: 'error message', - invocations: 1, - duration, - }, - ], + testResults: [ + { + title: 'Title', + status: 'failed', + ancestorTitles: ['Suite name', 'Test name'], + failureMessages: 'error message', + invocations: 1, + duration, + }, + ], }; const testObj = { - path: `C:${path.sep}testProject${path.sep}example.js`, + path: `C:${path.sep}testProject${path.sep}example.js`, }; describe('index script', () => { - let reporter; - - beforeAll(() => { - reporter = new JestReportPortal(GLOBAL_CONFIG, options); - reporter.client = new RPClient(); + let reporter; + + beforeAll(() => { + reporter = new JestReportPortal(GLOBAL_CONFIG, options); + reporter.client = new RPClient(); + }); + + beforeEach(() => { + global.Date = jest.fn( + (...args) => + (args.length + ? new RealDate(...args) + : new RealDate(currentDate)), + ); + Object.assign(Date, RealDate); + }); + + afterEach(() => { + jest.clearAllMocks(); + reporter.tempLaunchId = ''; + reporter.tempSuiteIds = new Map(); + reporter.tempTestIds = new Map(); + reporter.tempStepId = null; + global.Date = RealDate; + }); + + afterAll(() => { + reporter = null; + }); + + describe('constructor', () => { + test('client and options should be defined', () => { + expect(reporter.reportOptions).toBeDefined(); + expect(reporter.client).toBeDefined(); }); + }); + + describe('onRunStart', () => { + test('startLaunch should be called with parameters', () => { + reporter.onRunStart(); + + expect(reporter.tempLaunchId).toEqual('startLaunch'); + expect(reporter.client.startLaunch).toHaveBeenCalledTimes(1); - beforeEach(() => { - global.Date = jest.fn( - (...args) => - (args.length - ? new RealDate(...args) - : new RealDate(currentDate)), - ); - Object.assign(Date, RealDate); + const launchObj = { + description: options.description, + attributes: [...options.attributes, systemAttr], + rerun: undefined, + rerunOf: undefined, + startTime: new Date().valueOf(), + }; + + expect(reporter.client.startLaunch).toHaveBeenCalledWith(launchObj); }); + }); - afterEach(() => { - jest.clearAllMocks(); - reporter.tempLaunchId = ''; - reporter.tempSuiteIds = new Map(); - reporter.tempTestIds = new Map(); - reporter.tempStepId = null; - global.Date = RealDate; + describe('onTestResult', () => { + test('startSuite, startTest, spyStartStep, finishTest, finishSuite, spyFinishStep' + + 'should be called with parameters', () => { + const spyStartSuite = jest.spyOn(reporter, '_startSuite'); + const spyStartTest = jest.spyOn(reporter, '_startTest'); + const spyStartStep = jest.spyOn(reporter, '_startStep'); + const spyFinishTest = jest.spyOn(reporter, '_finishTest'); + const spyFinishSuite = jest.spyOn(reporter, '_finishSuite'); + const spyFinishStep = jest.spyOn(reporter, '_finishStep'); + reporter.tempTestIds = new Map([['tempTestId', '1234']]); + reporter.tempSuiteIds = new Map([['tempSuiteId', '4321']]); + + reporter.onTestResult(testObj, testResult); + + expect(spyStartSuite).toHaveBeenCalledWith(testResult.testResults[0].ancestorTitles[0], testObj.path, duration); + expect(spyStartTest).toHaveBeenCalledWith(testResult.testResults[0], testObj.path, duration); + expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); + expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); + expect(spyFinishTest).toHaveBeenCalledWith('1234', 'tempTestId'); + expect(spyFinishSuite).toHaveBeenCalledWith('4321', 'tempSuiteId'); }); - afterAll(() => { - reporter = null; + test('startStep, finishStep should be called one times with second parameter \'false\' if there' + + ' are no retries', () => { + const spyStartStep = jest.spyOn(reporter, '_startStep'); + const spyFinishStep = jest.spyOn(reporter, '_finishStep'); + + reporter.onTestResult(testObj, testResult); + + expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); + expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); + expect(spyStartStep).toHaveBeenCalledTimes(1); + expect(spyFinishStep).toHaveBeenCalledTimes(1); }); - describe('constructor', () => { - test('client and options should be defined', () => { - expect(reporter.reportOptions).toBeDefined(); - expect(reporter.client).toBeDefined(); - }); + test('startStep, finishStep should be called two times with second parameter \'true\' if there' + + ' are retries', () => { + const spyStartStep = jest.spyOn(reporter, '_startStep'); + const spyFinishStep = jest.spyOn(reporter, '_finishStep'); + const testResult = { + testResults: [ + { + title: 'Title', + status: 'failed', + ancestorTitles: ['Suite name', 'Test name'], + failureMessages: 'error message', + invocations: 2, + }, + ], + }; + + reporter.onTestResult(testObj, testResult); + + expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], true, testObj.path); + expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], true); + expect(spyStartStep).toHaveBeenCalledTimes(2); + expect(spyFinishStep).toHaveBeenCalledTimes(2); }); - describe('onRunStart', () => { - test('startLaunch should be called with parameters', () => { - reporter.onRunStart(); + test('startStep, finishStep should be called ones with second parameter \'false\' if there is' + + ' no invocations', () => { + const spyStartStep = jest.spyOn(reporter, '_startStep'); + const spyFinishStep = jest.spyOn(reporter, '_finishStep'); + const testResult = { + testResults: [ + { + title: 'Title', + status: 'failed', + ancestorTitles: ['Suite name', 'Test name'], + failureMessages: 'error message', + }, + ], + }; + + reporter.onTestResult(testObj, testResult); - expect(reporter.tempLaunchId).toEqual('startLaunch'); - expect(reporter.client.startLaunch).toHaveBeenCalledTimes(1); + expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); + expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); + }); - const launchObj = { - description: options.description, - attributes: [...options.attributes, systemAttr], - rerun: undefined, - rerunOf: undefined, - startTime: new Date().valueOf(), - }; + test('startTest should not be called if there are no tests', () => { + const spyStartTest = jest.spyOn(reporter, '_startTest'); + const testResult = { + testResults: [ + { + title: 'Title', + status: 'failed', + ancestorTitles: ['Suite name'], + failureMessages: 'error message', + }, + ], + }; - expect(reporter.client.startLaunch).toHaveBeenCalledWith(launchObj); - }); + reporter.onTestResult(testObj, testResult); + + expect(spyStartTest).not.toHaveBeenCalled(); }); + }); - describe('onTestResult', () => { - test('startSuite, startTest, spyStartStep, finishTest, finishSuite, spyFinishStep' - + 'should be called with parameters', () => { - const spyStartSuite = jest.spyOn(reporter, '_startSuite'); - const spyStartTest = jest.spyOn(reporter, '_startTest'); - const spyStartStep = jest.spyOn(reporter, '_startStep'); - const spyFinishTest = jest.spyOn(reporter, '_finishTest'); - const spyFinishSuite = jest.spyOn(reporter, '_finishSuite'); - const spyFinishStep = jest.spyOn(reporter, '_finishStep'); - reporter.tempTestIds = new Map([['tempTestId', '1234']]); - reporter.tempSuiteIds = new Map([['tempSuiteId', '4321']]); - - reporter.onTestResult(testObj, testResult); - - expect(spyStartSuite).toHaveBeenCalledWith( - testResult.testResults[0].ancestorTitles[0], testObj.path, duration, - ); - expect(spyStartTest).toHaveBeenCalledWith(testResult.testResults[0], testObj.path, duration); - expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); - expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); - expect(spyFinishTest).toHaveBeenCalledWith('1234', 'tempTestId'); - expect(spyFinishSuite).toHaveBeenCalledWith('4321', 'tempSuiteId'); - }); - - test('startStep, finishStep should be called one times with second parameter \'false\' if there' - + ' are no retries', () => { - const spyStartStep = jest.spyOn(reporter, '_startStep'); - const spyFinishStep = jest.spyOn(reporter, '_finishStep'); + describe('onRunComplete', () => { + test('finishLaunch should be called with tempLaunchId', async () => { + reporter.tempLaunchId = 'tempLaunchId'; - reporter.onTestResult(testObj, testResult); + await reporter.onRunComplete(); - expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); - expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); - expect(spyStartStep).toHaveBeenCalledTimes(1); - expect(spyFinishStep).toHaveBeenCalledTimes(1); - }); + expect(reporter.client.finishLaunch).toHaveBeenCalledWith('tempLaunchId'); + }); + }); - test('startStep, finishStep should be called two times with second parameter \'true\' if there' - + ' are retries', () => { - const spyStartStep = jest.spyOn(reporter, '_startStep'); - const spyFinishStep = jest.spyOn(reporter, '_finishStep'); - const testResult = { - testResults: [ - { - title: 'Title', - status: 'failed', - ancestorTitles: ['Suite name', 'Test name'], - failureMessages: 'error message', - invocations: 2, - }, - ], - }; - - reporter.onTestResult(testObj, testResult); - - expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], true, testObj.path); - expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], true); - expect(spyStartStep).toHaveBeenCalledTimes(2); - expect(spyFinishStep).toHaveBeenCalledTimes(2); - }); - - test('startStep, finishStep should be called ones with second parameter \'false\' if there is' - + ' no invocations', () => { - const spyStartStep = jest.spyOn(reporter, '_startStep'); - const spyFinishStep = jest.spyOn(reporter, '_finishStep'); - const testResult = { - testResults: [ - { - title: 'Title', - status: 'failed', - ancestorTitles: ['Suite name', 'Test name'], - failureMessages: 'error message', - }, - ], - }; - - reporter.onTestResult(testObj, testResult); - - expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); - expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); - }); - - test('startTest should not be called if there are no tests', () => { - const spyStartTest = jest.spyOn(reporter, '_startTest'); - const testResult = { - testResults: [ - { - title: 'Title', - status: 'failed', - ancestorTitles: ['Suite name'], - failureMessages: 'error message', - }, - ], - }; - - reporter.onTestResult(testObj, testResult); - - expect(spyStartTest).not.toHaveBeenCalled(); - }); + describe('_startSuite', () => { + test('startTestItem should be called with parameters if tempSuiteIds doesn\'t contain this suite,' + + 'tempSuiteId should be defined', () => { + jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); + const expectedStartTestItemParameter = { + type: 'SUITE', + name: 'suite name', + codeRef: 'example.js/suite name', + startTime: new Date().valueOf() - duration, + }; + const expectedTempSuiteIds = new Map([['suite name', 'startTestItem']]); + reporter.tempLaunchId = 'tempLaunchId'; + + reporter._startSuite('suite name', testObj.path, duration); + + expect(reporter.client.startTestItem).toHaveBeenCalledWith(expectedStartTestItemParameter, 'tempLaunchId'); + expect(reporter.tempSuiteIds).toEqual(expectedTempSuiteIds); }); - describe('onRunComplete', () => { - test('finishLaunch should be called with tempLaunchId', async () => { - reporter.tempLaunchId = 'tempLaunchId'; + test('startTestItem should not be called with parameters if tempSuiteIds contains this suite', () => { + reporter.tempSuiteIds = new Map([['suite name', 'startTestItem']]); - await reporter.onRunComplete(); + reporter._startSuite('suite name', testObj.path); - expect(reporter.client.finishLaunch).toHaveBeenCalledWith('tempLaunchId'); - }); + expect(reporter.client.startTestItem).not.toHaveBeenCalled(); }); + }); - describe('_startSuite', () => { - test('startTestItem should be called with parameters if tempSuiteIds doesn\'t contain this suite,' + describe('_startTest', () => { + test('startTestItem should be called with parameters if tempTestIds doesn\'t contain this suite,' + 'tempSuiteId should be defined', () => { - jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); - const expectedStartTestItemParameter = { - type: 'SUITE', - name: 'suite name', - codeRef: 'example.js/suite name', - startTime: new Date().valueOf() - duration, - }; - const expectedTempSuiteIds = new Map([['suite name', 'startTestItem']]); - reporter.tempLaunchId = 'tempLaunchId'; - - reporter._startSuite('suite name', testObj.path, duration); + jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); + const expectedStartTestItemParameter = { + type: 'TEST', + name: 'Test name', + codeRef: 'example.js/Suite name/Test name', + startTime: new Date().valueOf() - duration, + }; + const expectedTempTestIds = new Map([['Suite name/Test name', 'startTestItem']]); + reporter.tempLaunchId = 'tempLaunchId'; + reporter.tempSuiteIds = new Map([['Suite name', 'suiteId']]); + + reporter._startTest({ ancestorTitles: ['Suite name', 'Test name'] }, testObj.path, duration); + + expect(reporter.client.startTestItem) + .toHaveBeenCalledWith(expectedStartTestItemParameter, 'tempLaunchId', 'suiteId'); + expect(reporter.tempTestIds).toEqual(expectedTempTestIds); + }); - expect(reporter.client.startTestItem).toHaveBeenCalledWith(expectedStartTestItemParameter, 'tempLaunchId'); - expect(reporter.tempSuiteIds).toEqual(expectedTempSuiteIds); - }); + test('startTestItem should not be called with parameters if tempTestIds contains this test', () => { + reporter.tempTestIds = new Map([['Suite name/Test name', 'startTestItem']]); - test('startTestItem should not be called with parameters if tempSuiteIds contains this suite', () => { - reporter.tempSuiteIds = new Map([['suite name', 'startTestItem']]); + reporter._startTest({ ancestorTitles: ['Suite name', 'Test name'] }, testObj.path); - reporter._startSuite('suite name', testObj.path); + expect(reporter.client.startTestItem).not.toHaveBeenCalled(); + }); + }); + + describe('_startStep', () => { + test('startTestItem should be called with parameters with tempTestId, tempStepId should be defined', () => { + jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); + const expectedStartStepItemParameter = { + type: 'STEP', + name: 'Step', + codeRef: 'example.js/Suite/Test/Step', + retry: true, + startTime: new Date().valueOf() - duration, + }; + reporter.tempLaunchId = 'tempLaunchId'; + reporter.tempTestIds = new Map([['Suite/Test', 'tempTestId']]); + + reporter._startStep({ title: 'Step', ancestorTitles: ['Suite', 'Test'], duration }, true, testObj.path); + + expect(reporter.client.startTestItem) + .toHaveBeenCalledWith(expectedStartStepItemParameter, 'tempLaunchId', 'tempTestId'); + expect(reporter.tempStepId).toEqual('startTestItem'); + }); - expect(reporter.client.startTestItem).not.toHaveBeenCalled(); - }); + test('startTestItem should be called with parameters with tempSuiteId, tempStepId should be defined', () => { + jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); + const expectedStartStepItemParameter = { + type: 'STEP', + name: 'Step', + codeRef: 'example.js/Suite/Step', + retry: true, + startTime: new Date().valueOf() - duration, + }; + reporter.tempLaunchId = 'tempLaunchId'; + reporter.tempSuiteIds = new Map([['Suite', 'tempSuiteId']]); + + reporter._startStep({ title: 'Step', ancestorTitles: ['Suite'], duration }, true, testObj.path); + + expect(reporter.client.startTestItem) + .toHaveBeenCalledWith(expectedStartStepItemParameter, 'tempLaunchId', 'tempSuiteId'); + expect(reporter.tempStepId).toEqual('startTestItem'); }); + }); - describe('_startTest', () => { - test('startTestItem should be called with parameters if tempTestIds doesn\'t contain this suite,' - + 'tempSuiteId should be defined', () => { - jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); - const expectedStartTestItemParameter = { - type: 'TEST', - name: 'Test name', - codeRef: 'example.js/Suite name/Test name', - startTime: new Date().valueOf() - duration, - }; - const expectedTempTestIds = new Map([['Suite name/Test name', 'startTestItem']]); - reporter.tempLaunchId = 'tempLaunchId'; - reporter.tempSuiteIds = new Map([['Suite name', 'suiteId']]); - - reporter._startTest({ ancestorTitles: ['Suite name', 'Test name'] }, testObj.path, duration); - - expect(reporter.client.startTestItem) - .toHaveBeenCalledWith(expectedStartTestItemParameter, 'tempLaunchId', 'suiteId'); - expect(reporter.tempTestIds).toEqual(expectedTempTestIds); - }); - - test('startTestItem should not be called with parameters if tempTestIds contains this test', () => { - reporter.tempTestIds = new Map([['Suite name/Test name', 'startTestItem']]); - - reporter._startTest({ ancestorTitles: ['Suite name', 'Test name'] }, testObj.path); - - expect(reporter.client.startTestItem).not.toHaveBeenCalled(); - }); + describe('_sendLog', () => { + test('sendLog should be called with parameters', () => { + const expectedLogObjectParameter = { + message: 'message', + level: 'error', + }; + reporter.tempStepId = 'tempStepId'; + + reporter._sendLog('message'); + + expect(reporter.client.sendLog).toHaveBeenCalledWith('tempStepId', expectedLogObjectParameter); }); + }); + + describe('_finishStep', () => { + test('_finishPassedTest should be called if step status is passed', () => { + const spyFinishPassedTest = jest.spyOn(reporter, '_finishPassedStep'); + const spyFinishFailedTest = jest.spyOn(reporter, '_finishFailedStep'); + const spyFinishSkippedTest = jest.spyOn(reporter, '_finishSkippedStep'); - describe('_startStep', () => { - test('startTestItem should be called with parameters with tempTestId, tempStepId should be defined', () => { - jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); - const expectedStartStepItemParameter = { - type: 'STEP', - name: 'Step', - codeRef: 'example.js/Suite/Test/Step', - retry: true, - startTime: new Date().valueOf() - duration, - }; - reporter.tempLaunchId = 'tempLaunchId'; - reporter.tempTestIds = new Map([['Suite/Test', 'tempTestId']]); - - reporter._startStep({ title: 'Step', ancestorTitles: ['Suite', 'Test'], duration }, true, testObj.path); - - expect(reporter.client.startTestItem) - .toHaveBeenCalledWith(expectedStartStepItemParameter, 'tempLaunchId', 'tempTestId'); - expect(reporter.tempStepId).toEqual('startTestItem'); - }); - - test('startTestItem should be called with parameters with tempSuiteId, tempStepId should be defined', () => { - jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); - const expectedStartStepItemParameter = { - type: 'STEP', - name: 'Step', - codeRef: 'example.js/Suite/Step', - retry: true, - startTime: new Date().valueOf() - duration, - }; - reporter.tempLaunchId = 'tempLaunchId'; - reporter.tempSuiteIds = new Map([['Suite', 'tempSuiteId']]); - - reporter._startStep({ title: 'Step', ancestorTitles: ['Suite'], duration }, true, testObj.path); - - expect(reporter.client.startTestItem) - .toHaveBeenCalledWith(expectedStartStepItemParameter, 'tempLaunchId', 'tempSuiteId'); - expect(reporter.tempStepId).toEqual('startTestItem'); - }); + reporter._finishStep({ status: testItemStatuses.PASSED, failureMessages: [] }); + + expect(spyFinishPassedTest).toHaveBeenCalled(); + expect(spyFinishFailedTest).not.toHaveBeenCalled(); + expect(spyFinishSkippedTest).not.toHaveBeenCalled(); }); - describe('_sendLog', () => { - test('sendLog should be called with parameters', () => { - const expectedLogObjectParameter = { - message: 'message', - level: 'error', - }; - reporter.tempStepId = 'tempStepId'; + test('_finishFailedStep should be called with error message if step status is failed', () => { + const spyFinishPassedTest = jest.spyOn(reporter, '_finishPassedStep'); + const spyFinishFailedTest = jest.spyOn(reporter, '_finishFailedStep'); + const spyFinishSkippedTest = jest.spyOn(reporter, '_finishSkippedStep'); - reporter._sendLog('message'); + reporter._finishStep( + { status: testItemStatuses.FAILED, failureMessages: ['error message'] }, + false, + ); - expect(reporter.client.sendLog).toHaveBeenCalledWith('tempStepId', expectedLogObjectParameter); - }); + expect(spyFinishFailedTest).toHaveBeenCalledWith('error message', false); + expect(spyFinishPassedTest).not.toHaveBeenCalled(); + expect(spyFinishSkippedTest).not.toHaveBeenCalled(); }); - describe('_finishStep', () => { - test('_finishPassedTest should be called if step status is passed', () => { - const spyFinishPassedTest = jest.spyOn(reporter, '_finishPassedStep'); - const spyFinishFailedTest = jest.spyOn(reporter, '_finishFailedStep'); - const spyFinishSkippedTest = jest.spyOn(reporter, '_finishSkippedStep'); - - reporter._finishStep({ status: testItemStatuses.PASSED, failureMessages: [] }); - - expect(spyFinishPassedTest).toHaveBeenCalled(); - expect(spyFinishFailedTest).not.toHaveBeenCalled(); - expect(spyFinishSkippedTest).not.toHaveBeenCalled(); - }); - - test('_finishFailedStep should be called with error message if step status is failed', () => { - const spyFinishPassedTest = jest.spyOn(reporter, '_finishPassedStep'); - const spyFinishFailedTest = jest.spyOn(reporter, '_finishFailedStep'); - const spyFinishSkippedTest = jest.spyOn(reporter, '_finishSkippedStep'); - - reporter._finishStep( - { status: testItemStatuses.FAILED, failureMessages: ['error message'] }, - false, - ); - - expect(spyFinishFailedTest).toHaveBeenCalledWith('error message', false); - expect(spyFinishPassedTest).not.toHaveBeenCalled(); - expect(spyFinishSkippedTest).not.toHaveBeenCalled(); - }); - - test('_finishPassedStep should be called if step status is skipped or any other', () => { - const spyFinishPassedTest = jest.spyOn(reporter, '_finishPassedStep'); - const spyFinishFailedTest = jest.spyOn(reporter, '_finishFailedStep'); - const spyFinishSkippedTest = jest.spyOn(reporter, '_finishSkippedStep'); - - reporter._finishStep({ status: testItemStatuses.SKIPPED, failureMessages: [] }); - - expect(spyFinishSkippedTest).toHaveBeenCalled(); - expect(spyFinishPassedTest).not.toHaveBeenCalled(); - expect(spyFinishFailedTest).not.toHaveBeenCalled(); - }); + test('_finishPassedStep should be called if step status is skipped or any other', () => { + const spyFinishPassedTest = jest.spyOn(reporter, '_finishPassedStep'); + const spyFinishFailedTest = jest.spyOn(reporter, '_finishFailedStep'); + const spyFinishSkippedTest = jest.spyOn(reporter, '_finishSkippedStep'); + + reporter._finishStep({ status: testItemStatuses.SKIPPED, failureMessages: [] }); + + expect(spyFinishSkippedTest).toHaveBeenCalled(); + expect(spyFinishPassedTest).not.toHaveBeenCalled(); + expect(spyFinishFailedTest).not.toHaveBeenCalled(); }); + }); - describe('_finishTest', () => { - test('finishTestItem should be called with parameters, tempTestId should be deleted', () => { - reporter.tempTestIds = new Map([['Test', 'tempTestId']]); + describe('_finishTest', () => { + test('finishTestItem should be called with parameters, tempTestId should be deleted', () => { + reporter.tempTestIds = new Map([['Test', 'tempTestId']]); - reporter._finishTest('tempTestId', 'Test'); + reporter._finishTest('tempTestId', 'Test'); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempTestId', {}); - expect(reporter.tempTestIds.get('Test')).toEqual(undefined); - }); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempTestId', {}); + expect(reporter.tempTestIds.get('Test')).toEqual(undefined); + }); - test('finishTestItem should not be called with parameters if there is no tempTestId', () => { - reporter._finishTest(undefined); + test('finishTestItem should not be called with parameters if there is no tempTestId', () => { + reporter._finishTest(undefined); - expect(reporter.client.finishTestItem).not.toHaveBeenCalled(); - }); + expect(reporter.client.finishTestItem).not.toHaveBeenCalled(); }); + }); - describe('_finishSuite', () => { - test('finishTestItem should be called with parameters, tempSuiteId should be deleted', () => { - reporter.tempSuiteIds = new Map([['Suite', 'tempSuiteId']]); + describe('_finishSuite', () => { + test('finishTestItem should be called with parameters, tempSuiteId should be deleted', () => { + reporter.tempSuiteIds = new Map([['Suite', 'tempSuiteId']]); - reporter._finishSuite('tempSuiteId', 'Suite'); + reporter._finishSuite('tempSuiteId', 'Suite'); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempSuiteId', {}); - expect(reporter.tempSuiteIds.get('Suite')).toEqual(undefined); - }); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempSuiteId', {}); + expect(reporter.tempSuiteIds.get('Suite')).toEqual(undefined); + }); - test('finishTestItem should not be called with parameters if there is no tempSuiteId', () => { - reporter._finishSuite(undefined); + test('finishTestItem should not be called with parameters if there is no tempSuiteId', () => { + reporter._finishSuite(undefined); - expect(reporter.client.finishTestItem).not.toHaveBeenCalled(); - }); + expect(reporter.client.finishTestItem).not.toHaveBeenCalled(); }); + }); - describe('_finishPassedStep', () => { - test('finishTestItem should be called with parameters', () => { - const expectedFinishTestItemParameter = { - status: 'passed', - retry: false, - }; - reporter.tempStepId = 'tempStepId'; + describe('_finishPassedStep', () => { + test('finishTestItem should be called with parameters', () => { + const expectedFinishTestItemParameter = { + status: 'passed', + retry: false, + }; + reporter.tempStepId = 'tempStepId'; - reporter._finishPassedStep(false); + reporter._finishPassedStep(false); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); - }); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); }); + }); - describe('_finishFailedStep', () => { - test('_sendLog should be called with failure message, finishTestItem should be called with parameters', () => { - const spySendLog = jest.spyOn(reporter, '_sendLog'); - const expectedFinishTestItemParameter = { - status: 'failed', - retry: false, - }; - reporter.tempStepId = 'tempStepId'; + describe('_finishFailedStep', () => { + test('_sendLog should be called with failure message, finishTestItem should be called with parameters', () => { + const spySendLog = jest.spyOn(reporter, '_sendLog'); + const expectedFinishTestItemParameter = { + status: 'failed', + retry: false, + }; + reporter.tempStepId = 'tempStepId'; - reporter._finishFailedStep('error message', false); + reporter._finishFailedStep('error message', false); - expect(spySendLog).toHaveBeenCalledWith('error message'); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); - }); + expect(spySendLog).toHaveBeenCalledWith('error message'); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); }); + }); - describe('_finishSkippedStep', () => { - test('finishTestItem should be called with parameters', () => { - const expectedFinishTestItemParameter = { - status: 'skipped', - retry: false, - }; - reporter.tempStepId = 'tempStepId'; + describe('_finishSkippedStep', () => { + test('finishTestItem should be called with parameters', () => { + const expectedFinishTestItemParameter = { + status: 'skipped', + retry: false, + }; + reporter.tempStepId = 'tempStepId'; - reporter._finishSkippedStep(false); + reporter._finishSkippedStep(false); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); - }); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); + }); - test('finishTestItem should be called with issue parameter if skippedIssue is false', () => { - const expectedFinishTestItemParameter = { - status: 'skipped', - retry: false, - issue: { issueType: 'NOT_ISSUE' }, - }; - reporter.tempStepId = 'tempStepId'; - reporter.reportOptions.skippedIssue = false; + test('finishTestItem should be called with issue parameter if skippedIssue is false', () => { + const expectedFinishTestItemParameter = { + status: 'skipped', + retry: false, + issue: { issueType: 'NOT_ISSUE' }, + }; + reporter.tempStepId = 'tempStepId'; + reporter.reportOptions.skippedIssue = false; - reporter._finishSkippedStep(false); + reporter._finishSkippedStep(false); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); - }); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); }); + }); }); diff --git a/__tests__/mocks/reportportal-client.mock.js b/__tests__/mocks/reportportal-client.mock.js index b242a35..5d85ed1 100644 --- a/__tests__/mocks/reportportal-client.mock.js +++ b/__tests__/mocks/reportportal-client.mock.js @@ -15,69 +15,69 @@ */ const reporterOptions = { - apiKey: '00000000-0000-0000-0000-000000000000', - endpoint: 'endpoint', - project: 'projectName', - launch: 'launcherName', - description: 'description', - logLaunchLink: true, - attributes: [ - { - key: 'YourKey', - value: 'YourValue', - }, - { - value: 'YourValue', - }, - ], + apiKey: '00000000-0000-0000-0000-000000000000', + endpoint: 'endpoint', + project: 'projectName', + launch: 'launcherName', + description: 'description', + logLaunchLink: true, + attributes: [ + { + key: 'YourKey', + value: 'YourValue', + }, + { + value: 'YourValue', + }, + ], }; class RPClient { - constructor() { - this.startLaunch = this.mockStartLaunch(); - this.finishLaunch = this.mockFinishLaunch(); - this.startTestItem = this.mockStartTestItem(); - this.finishTestItem = this.mockFinishTestItem(); - this.sendLog = this.mockSendLog(); - } + constructor() { + this.startLaunch = this.mockStartLaunch(); + this.finishLaunch = this.mockFinishLaunch(); + this.startTestItem = this.mockStartTestItem(); + this.finishTestItem = this.mockFinishTestItem(); + this.sendLog = this.mockSendLog(); + } - mockStartLaunch() { - return jest.fn().mockReturnValue({ - promise: Promise.resolve('ok'), - tempId: 'startLaunch', - }); - } + mockStartLaunch() { + return jest.fn().mockReturnValue({ + promise: Promise.resolve('ok'), + tempId: 'startLaunch', + }); + } - mockFinishLaunch() { - return jest.fn().mockReturnValue({ - promise: Promise.resolve('ok'), - tempId: 'finishLaunch', - }); - } + mockFinishLaunch() { + return jest.fn().mockReturnValue({ + promise: Promise.resolve('ok'), + tempId: 'finishLaunch', + }); + } - mockStartTestItem() { - return jest.fn().mockReturnValue({ - promise: Promise.resolve('ok'), - tempId: 'startTestItem', - }); - } + mockStartTestItem() { + return jest.fn().mockReturnValue({ + promise: Promise.resolve('ok'), + tempId: 'startTestItem', + }); + } - mockFinishTestItem() { - return jest.fn().mockReturnValue({ - promise: Promise.resolve('ok'), - tempId: 'finishTestItem', - }); - } + mockFinishTestItem() { + return jest.fn().mockReturnValue({ + promise: Promise.resolve('ok'), + tempId: 'finishTestItem', + }); + } - mockSendLog() { - return jest.fn().mockReturnValue({ - promise: Promise.resolve('ok'), - tempId: 'sendLog', - }); - } + mockSendLog() { + return jest.fn().mockReturnValue({ + promise: Promise.resolve('ok'), + tempId: 'sendLog', + }); + } } module.exports = { - getOptions: (options) => Object.assign(reporterOptions, options), - RPClient, + getOptions: (options) => Object.assign(reporterOptions, options), + RPClient, }; diff --git a/__tests__/objectUtils.spec.js b/__tests__/objectUtils.spec.js index 9b2b35b..faff4e4 100644 --- a/__tests__/objectUtils.spec.js +++ b/__tests__/objectUtils.spec.js @@ -17,304 +17,304 @@ /* eslint-disable no-undef */ const path = require('path'); const { - getAgentOptions, - getStartLaunchObject, - getSuiteStartObject, - getTestStartObject, - getStepStartObject, - getAgentInfo, - getCodeRef, - getFullTestName, - getFullStepName, - getSystemAttributes, + getAgentOptions, + getStartLaunchObject, + getSuiteStartObject, + getTestStartObject, + getStepStartObject, + getAgentInfo, + getCodeRef, + getFullTestName, + getFullStepName, + getSystemAttributes, } = require('../utils/objectUtils'); const pjson = require('../package.json'); const defaultOptions = { - launch: 'launchName', - description: 'description', - attributes: [ - { - key: 'YourKey', - value: 'YourValue', - }, { - value: 'YourValue', - }, - ], - rerun: true, - rerunOf: '00000000-0000-0000-0000-000000000000', + launch: 'launchName', + description: 'description', + attributes: [ + { + key: 'YourKey', + value: 'YourValue', + }, { + value: 'YourValue', + }, + ], + rerun: true, + rerunOf: '00000000-0000-0000-0000-000000000000', }; const currentDate = new Date(); const RealDate = Date; const duration = 5; describe('Object Utils script', () => { - const OLD_ENV = process.env; - - beforeEach(() => { - global.Date = jest.fn( - (...args) => - (args.length - ? new RealDate(...args) - : new RealDate(currentDate)), - ); - Object.assign(Date, RealDate); - - jest.resetModules(); - process.env = { ...OLD_ENV }; - delete process.env.NODE_ENV; + const OLD_ENV = process.env; + + beforeEach(() => { + global.Date = jest.fn( + (...args) => + (args.length + ? new RealDate(...args) + : new RealDate(currentDate)), + ); + Object.assign(Date, RealDate); + + jest.resetModules(); + process.env = { ...OLD_ENV }; + delete process.env.NODE_ENV; + }); + + afterEach(() => { + jest.clearAllMocks(); + global.Date = RealDate; + process.env = OLD_ENV; + }); + + describe('getStartLaunchObject', () => { + test('should return start launch object with correct values', () => { + const expectedStartLaunchObject = { + description: 'description', + attributes: [ + { + key: 'YourKey', + value: 'YourValue', + }, { + value: 'YourValue', + }, { + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, + }, + ], + rerun: true, + rerunOf: '00000000-0000-0000-0000-000000000000', + startTime: new Date().valueOf(), + }; + + const startLaunchObject = getStartLaunchObject(defaultOptions); + + expect(startLaunchObject).toBeDefined(); + expect(startLaunchObject).toEqual(expectedStartLaunchObject); }); - afterEach(() => { - jest.clearAllMocks(); - global.Date = RealDate; - process.env = OLD_ENV; + test('should return start launch object with default values if options don\'t set', () => { + const expectedStartLaunchObject = { + attributes: [ + { + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, + }, + ], + startTime: new Date().valueOf(), + }; + + const startLaunchObject = getStartLaunchObject(); + + expect(startLaunchObject).toBeDefined(); + expect(startLaunchObject).toEqual(expectedStartLaunchObject); }); + }); - describe('getStartLaunchObject', () => { - test('should return start launch object with correct values', () => { - const expectedStartLaunchObject = { - description: 'description', - attributes: [ - { - key: 'YourKey', - value: 'YourValue', - }, { - value: 'YourValue', - }, { - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, - }, - ], - rerun: true, - rerunOf: '00000000-0000-0000-0000-000000000000', - startTime: new Date().valueOf(), - }; - - const startLaunchObject = getStartLaunchObject(defaultOptions); - - expect(startLaunchObject).toBeDefined(); - expect(startLaunchObject).toEqual(expectedStartLaunchObject); - }); - - test('should return start launch object with default values if options don\'t set', () => { - const expectedStartLaunchObject = { - attributes: [ - { - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, - }, - ], - startTime: new Date().valueOf(), - }; - - const startLaunchObject = getStartLaunchObject(); - - expect(startLaunchObject).toBeDefined(); - expect(startLaunchObject).toEqual(expectedStartLaunchObject); - }); + describe('getStepStartObject', () => { + test('should return step start object with correct values', () => { + const expectedStepStartObject = { + type: 'STEP', + name: 'step title', + retry: true, + startTime: new Date().valueOf() - duration, + }; + + const stepStartObject = getStepStartObject('step title', true, undefined, duration); + + expect(stepStartObject).toBeDefined(); + expect(stepStartObject).toEqual(expectedStepStartObject); }); + }); - describe('getStepStartObject', () => { - test('should return step start object with correct values', () => { - const expectedStepStartObject = { - type: 'STEP', - name: 'step title', - retry: true, - startTime: new Date().valueOf() - duration, - }; + describe('getTestStartObject', () => { + test('should return test start object with correct values', () => { + const expectedTestStartObject = { + type: 'TEST', + name: 'test title', + startTime: new Date().valueOf() - duration, + }; - const stepStartObject = getStepStartObject('step title', true, undefined, duration); + const testStartObject = getTestStartObject('test title', undefined, duration); - expect(stepStartObject).toBeDefined(); - expect(stepStartObject).toEqual(expectedStepStartObject); - }); + expect(testStartObject).toBeDefined(); + expect(testStartObject).toEqual(expectedTestStartObject); }); + }); - describe('getTestStartObject', () => { - test('should return test start object with correct values', () => { - const expectedTestStartObject = { - type: 'TEST', - name: 'test title', - startTime: new Date().valueOf() - duration, - }; + describe('getSuiteStartObject', () => { + test('should return suite start object with correct values', () => { + const expectedSuiteStartObject = { + type: 'SUITE', + name: 'suite name', + startTime: new Date().valueOf() - duration, + }; - const testStartObject = getTestStartObject('test title', undefined, duration); + const suiteStartObject = getSuiteStartObject('suite name', undefined, duration); - expect(testStartObject).toBeDefined(); - expect(testStartObject).toEqual(expectedTestStartObject); - }); + expect(suiteStartObject).toBeDefined(); + expect(suiteStartObject).toEqual(expectedSuiteStartObject); + }); + }); + + describe('getAgentOptions', () => { + test('should return agent options object with correct values, some parameters taken from' + + ' environment variables', () => { + process.env = { + RP_API_KEY: '123', + RP_LAUNCH: 'launch name', + RP_PROJECT_NAME: 'project name', + RP_ATTRIBUTES: 'attributesOne,attributesTwoKey:attributesTwoValue', + }; + const expectedAgentOptions = { + apiKey: '123', + endpoint: 'endpoint', + launch: 'launch name', + project: 'project name', + rerun: true, + rerunOf: '00000000-0000-0000-0000-000000000000', + description: 'description', + attributes: [ + { key: null, value: 'attributesOne' }, + { key: 'attributesTwoKey', value: 'attributesTwoValue' }, + ], + mode: 'DEBUG', + debug: true, + }; + const options = { + endpoint: 'endpoint', + rerun: true, + rerunOf: '00000000-0000-0000-0000-000000000000', + description: 'description', + mode: 'DEBUG', + debug: true, + }; + + const agentOptions = getAgentOptions(options); + + expect(agentOptions).toBeDefined(); + expect(agentOptions).toEqual(expectedAgentOptions); }); - describe('getSuiteStartObject', () => { - test('should return suite start object with correct values', () => { - const expectedSuiteStartObject = { - type: 'SUITE', - name: 'suite name', - startTime: new Date().valueOf() - duration, - }; + test('should return agent options object with default values if options don\'t set', () => { + const expectedClientInitObject = {}; - const suiteStartObject = getSuiteStartObject('suite name', undefined, duration); + const clientInitObject = getAgentOptions(); - expect(suiteStartObject).toBeDefined(); - expect(suiteStartObject).toEqual(expectedSuiteStartObject); - }); + expect(clientInitObject).toBeDefined(); + expect(clientInitObject).toEqual(expectedClientInitObject); }); + }); - describe('getAgentOptions', () => { - test('should return agent options object with correct values, some parameters taken from' - + ' environment variables', () => { - process.env = { - RP_API_KEY: '123', - RP_LAUNCH: 'launch name', - RP_PROJECT_NAME: 'project name', - RP_ATTRIBUTES: 'attributesOne,attributesTwoKey:attributesTwoValue', - }; - const expectedAgentOptions = { - apiKey: '123', - endpoint: 'endpoint', - launch: 'launch name', - project: 'project name', - rerun: true, - rerunOf: '00000000-0000-0000-0000-000000000000', - description: 'description', - attributes: [ - { key: null, value: 'attributesOne' }, - { key: 'attributesTwoKey', value: 'attributesTwoValue' }, - ], - mode: 'DEBUG', - debug: true, - }; - const options = { - endpoint: 'endpoint', - rerun: true, - rerunOf: '00000000-0000-0000-0000-000000000000', - description: 'description', - mode: 'DEBUG', - debug: true, - }; - - const agentOptions = getAgentOptions(options); - - expect(agentOptions).toBeDefined(); - expect(agentOptions).toEqual(expectedAgentOptions); - }); - - test('should return agent options object with default values if options don\'t set', () => { - const expectedClientInitObject = {}; - - const clientInitObject = getAgentOptions(); - - expect(clientInitObject).toBeDefined(); - expect(clientInitObject).toEqual(expectedClientInitObject); - }); + describe('getAgentInfo', () => { + test('should return the name and version of application from package.json file', () => { + const agentInfo = getAgentInfo(); + + expect(agentInfo.name).toBe(pjson.name); + expect(agentInfo.version).toBe(pjson.version); + }); + }); + + describe('getSystemAttributes', () => { + test('should return only agent system attribute if parameter is true', () => { + const expectedSystemAttribute = [{ + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, + }]; + + const systemAttributes = getSystemAttributes(true); + + expect(systemAttributes).toEqual(expectedSystemAttribute); }); - describe('getAgentInfo', () => { - test('should return the name and version of application from package.json file', () => { - const agentInfo = getAgentInfo(); + test('should return only agent system attribute if there is no parameter', () => { + const expectedSystemAttribute = [{ + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, + }]; + + const systemAttributes = getSystemAttributes(); - expect(agentInfo.name).toBe(pjson.name); - expect(agentInfo.version).toBe(pjson.version); - }); + expect(systemAttributes).toEqual(expectedSystemAttribute); }); - describe('getSystemAttributes', () => { - test('should return only agent system attribute if parameter is true', () => { - const expectedSystemAttribute = [{ - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, - }]; - - const systemAttributes = getSystemAttributes(true); - - expect(systemAttributes).toEqual(expectedSystemAttribute); - }); - - test('should return only agent system attribute if there is no parameter', () => { - const expectedSystemAttribute = [{ - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, - }]; - - const systemAttributes = getSystemAttributes(); - - expect(systemAttributes).toEqual(expectedSystemAttribute); - }); - - test('should return agent and skippedIssue system attributes if parameter is false', () => { - const expectedSystemAttribute = [{ - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, - }, { - key: 'skippedIssue', - value: 'false', - system: true, - }]; - - const systemAttributes = getSystemAttributes(false); - - expect(systemAttributes).toEqual(expectedSystemAttribute); - }); + test('should return agent and skippedIssue system attributes if parameter is false', () => { + const expectedSystemAttribute = [{ + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, + }, { + key: 'skippedIssue', + value: 'false', + system: true, + }]; + + const systemAttributes = getSystemAttributes(false); + + expect(systemAttributes).toEqual(expectedSystemAttribute); }); + }); - describe('getCodeRef', () => { - test('should return correct code ref with separator', () => { - jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); - const mockedTest = { - title: 'testTitle', - filePath: `C:${path.sep}testProject${path.sep}test${path.sep}example.js`, - }; - const expectedCodeRef = 'test/example.js/testTitle'; + describe('getCodeRef', () => { + test('should return correct code ref with separator', () => { + jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); + const mockedTest = { + title: 'testTitle', + filePath: `C:${path.sep}testProject${path.sep}test${path.sep}example.js`, + }; + const expectedCodeRef = 'test/example.js/testTitle'; - const codeRef = getCodeRef(mockedTest.filePath, mockedTest.title); + const codeRef = getCodeRef(mockedTest.filePath, mockedTest.title); - expect(codeRef).toEqual(expectedCodeRef); - }); + expect(codeRef).toEqual(expectedCodeRef); + }); - test('should return correct code ref without separator', () => { - jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); - const mockedTest = { - title: 'testTitle', - filePath: `C:${path.sep}testProject${path.sep}example.js`, - }; - const expectedCodeRef = 'example.js/testTitle'; + test('should return correct code ref without separator', () => { + jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); + const mockedTest = { + title: 'testTitle', + filePath: `C:${path.sep}testProject${path.sep}example.js`, + }; + const expectedCodeRef = 'example.js/testTitle'; - const codeRef = getCodeRef(mockedTest.filePath, mockedTest.title); + const codeRef = getCodeRef(mockedTest.filePath, mockedTest.title); - expect(codeRef).toEqual(expectedCodeRef); - }); + expect(codeRef).toEqual(expectedCodeRef); }); + }); - describe('getFullTestName', () => { - test('should return correct full test name', () => { - const mockedTest = { - ancestorTitles: ['rootDescribe', 'parentDescribe', 'testTitle'], - }; - const expectedFullTestName = 'rootDescribe/parentDescribe/testTitle'; + describe('getFullTestName', () => { + test('should return correct full test name', () => { + const mockedTest = { + ancestorTitles: ['rootDescribe', 'parentDescribe', 'testTitle'], + }; + const expectedFullTestName = 'rootDescribe/parentDescribe/testTitle'; - const fullTestName = getFullTestName(mockedTest); + const fullTestName = getFullTestName(mockedTest); - expect(fullTestName).toEqual(expectedFullTestName); - }); + expect(fullTestName).toEqual(expectedFullTestName); }); + }); - describe('getFullStepName', () => { - test('should return correct full step name', () => { - const mockedTest = { - title: 'stepTitle', - ancestorTitles: ['rootDescribe', 'parentDescribe'], - }; - const expectedFullStepName = 'rootDescribe/parentDescribe/stepTitle'; + describe('getFullStepName', () => { + test('should return correct full step name', () => { + const mockedTest = { + title: 'stepTitle', + ancestorTitles: ['rootDescribe', 'parentDescribe'], + }; + const expectedFullStepName = 'rootDescribe/parentDescribe/stepTitle'; - const fullStepName = getFullStepName(mockedTest); + const fullStepName = getFullStepName(mockedTest); - expect(fullStepName).toEqual(expectedFullStepName); - }); + expect(fullStepName).toEqual(expectedFullStepName); }); + }); }); diff --git a/constants/index.js b/constants/index.js index a803a80..0f5fa86 100755 --- a/constants/index.js +++ b/constants/index.js @@ -17,27 +17,27 @@ const path = require('path'); module.exports = { - ENVIRONMENT_CONFIG_MAP: { - JEST_SUITE_NAME: 'suiteName', - JEST_JUNIT_OUTPUT: 'output', - JEST_JUNIT_CLASSNAME: 'classNameTemplate', - JEST_JUNIT_SUITE_NAME: 'suiteNameTemplate', - JEST_JUNIT_TITLE: 'titleTemplate', - JEST_JUNIT_ANCESTOR_SEPARATOR: 'ancestorSeparator', - JEST_USE_PATH_FOR_SUITE_NAME: 'usePathForSuiteName', - }, - DEFAULT_OPTIONS: { - suiteName: 'jest tests', - output: path.join(process.cwd(), './junit.xml'), - classNameTemplate: '{classname} {title}', - suiteNameTemplate: '{title}', - titleTemplate: '{classname} {title}', - ancestorSeparator: ' ', - usePathForSuiteName: 'false', - }, - CLASSNAME_VAR: 'classname', - FILENAME_VAR: 'filename', - FILEPATH_VAR: 'filepath', - TITLE_VAR: 'title', - DISPLAY_NAME_VAR: 'displayName', + ENVIRONMENT_CONFIG_MAP: { + JEST_SUITE_NAME: 'suiteName', + JEST_JUNIT_OUTPUT: 'output', + JEST_JUNIT_CLASSNAME: 'classNameTemplate', + JEST_JUNIT_SUITE_NAME: 'suiteNameTemplate', + JEST_JUNIT_TITLE: 'titleTemplate', + JEST_JUNIT_ANCESTOR_SEPARATOR: 'ancestorSeparator', + JEST_USE_PATH_FOR_SUITE_NAME: 'usePathForSuiteName', + }, + DEFAULT_OPTIONS: { + suiteName: 'jest tests', + output: path.join(process.cwd(), './junit.xml'), + classNameTemplate: '{classname} {title}', + suiteNameTemplate: '{title}', + titleTemplate: '{classname} {title}', + ancestorSeparator: ' ', + usePathForSuiteName: 'false', + }, + CLASSNAME_VAR: 'classname', + FILENAME_VAR: 'filename', + FILEPATH_VAR: 'filepath', + TITLE_VAR: 'title', + DISPLAY_NAME_VAR: 'displayName', }; diff --git a/index.js b/index.js index eb6f1af..95ba981 100644 --- a/index.js +++ b/index.js @@ -18,233 +18,230 @@ const stripAnsi = require('strip-ansi'); const RPClient = require('@reportportal/client-javascript'); const getOptions = require('./utils/getOptions'); const { - getAgentOptions, getSuiteStartObject, - getStartLaunchObject, getTestStartObject, getStepStartObject, - getAgentInfo, getCodeRef, getFullTestName, getFullStepName, + getAgentOptions, getSuiteStartObject, + getStartLaunchObject, getTestStartObject, getStepStartObject, + getAgentInfo, getCodeRef, getFullTestName, getFullStepName, } = require('./utils/objectUtils'); const testItemStatuses = { PASSED: 'passed', FAILED: 'failed', SKIPPED: 'pending' }; const logLevels = { - ERROR: 'error', - TRACE: 'trace', - DEBUG: 'debug', - INFO: 'info', - WARN: 'warn', + ERROR: 'error', + TRACE: 'trace', + DEBUG: 'debug', + INFO: 'info', + WARN: 'warn', }; const promiseErrorHandler = (promise) => { - promise.catch((err) => { - console.error(err); - }); + promise.catch((err) => { + console.error(err); + }); }; class JestReportPortal { - constructor(globalConfig, options) { - const agentInfo = getAgentInfo(); - this.reportOptions = getAgentOptions(getOptions.options(options)); - this.client = new RPClient(this.reportOptions, agentInfo); - this.tempSuiteIds = new Map(); - this.tempTestIds = new Map(); - this.tempStepId = null; - this.promises = []; - } - - // eslint-disable-next-line no-unused-vars - onRunStart() { - const startLaunchObj = getStartLaunchObject(this.reportOptions); - const { tempId, promise } = this.client.startLaunch(startLaunchObj); - - this.tempLaunchId = tempId; - promiseErrorHandler(promise); - this.promises.push(promise); - } - - // eslint-disable-next-line no-unused-vars - onTestResult(test, testResult) { - let suiteDuration = 0; - let testDuration = 0; - for (let result = 0; result < testResult.testResults.length; result++) { - suiteDuration += testResult.testResults[result].duration; - if (testResult.testResults[result].ancestorTitles.length !== 1) { - testDuration += testResult.testResults[result].duration; - } - } - - testResult.testResults.forEach((t) => { - if (t.ancestorTitles.length > 0) { - this._startSuite(t.ancestorTitles[0], test.path, suiteDuration); - } - if (t.ancestorTitles.length > 1) { - this._startTest(t, test.path, testDuration); - } - - if (!t.invocations) { - this._startStep(t, false, test.path); - this._finishStep(t, false); - return; - } - - for (let i = 0; i < t.invocations; i++) { - const isRetried = t.invocations !== 1; - - this._startStep(t, isRetried, test.path); - this._finishStep(t, isRetried); - } - }); - - this.tempTestIds.forEach((tempTestId, key) => { - this._finishTest(tempTestId, key); - }); - this.tempSuiteIds.forEach((tempSuiteId, key) => { - this._finishSuite(tempSuiteId, key); - }); - } - - // eslint-disable-next-line no-unused-vars - async onRunComplete() { - await Promise.all(this.promises); - if (this.reportOptions.launchId) { - return; - } - const { promise } = this.client.finishLaunch(this.tempLaunchId); - - if (this.reportOptions.logLaunchLink === true) { - promise.then((response) => { - console.log(`\nReportPortal Launch Link: ${response.link}`); - }); - } - - promiseErrorHandler(promise); - await promise; - } - - _startSuite(suiteName, path, suiteDuration) { - if (this.tempSuiteIds.get(suiteName)) { - return; - } - const codeRef = getCodeRef(path, suiteName); - const { tempId, promise } = this.client.startTestItem(getSuiteStartObject(suiteName, codeRef, suiteDuration), - this.tempLaunchId); - - this.tempSuiteIds.set(suiteName, tempId); - promiseErrorHandler(promise); - this.promises.push(promise); - } - - _startTest(test, testPath, testDuration) { - if (this.tempTestIds.get(test.ancestorTitles.join('/'))) { - return; - } - - const tempSuiteId = this.tempSuiteIds.get(test.ancestorTitles[0]); - const fullTestName = getFullTestName(test); - const codeRef = getCodeRef(testPath, fullTestName); - const testStartObj = getTestStartObject( - test.ancestorTitles[test.ancestorTitles.length - 1], codeRef, testDuration, - ); - const parentId = this.tempTestIds.get(test.ancestorTitles.slice(0, -1).join('/')) || tempSuiteId; - const { tempId, promise } = this.client.startTestItem(testStartObj, this.tempLaunchId, parentId); - - this.tempTestIds.set(fullTestName, tempId); - promiseErrorHandler(promise); - this.promises.push(promise); - } - - _startStep(test, isRetried, testPath) { - const tempSuiteId = this.tempSuiteIds.get(test.ancestorTitles[0]); - const fullStepName = getFullStepName(test); - const codeRef = getCodeRef(testPath, fullStepName); - const stepDuration = test.duration; - const stepStartObj = getStepStartObject(test.title, isRetried, codeRef, stepDuration); - const parentId = this.tempTestIds.get(test.ancestorTitles.join('/')) || tempSuiteId; - const { tempId, promise } = this.client.startTestItem(stepStartObj, this.tempLaunchId, parentId); - - this.tempStepId = tempId; - promiseErrorHandler(promise); - this.promises.push(promise); + constructor(globalConfig, options) { + const agentInfo = getAgentInfo(); + this.reportOptions = getAgentOptions(getOptions.options(options)); + this.client = new RPClient(this.reportOptions, agentInfo); + this.tempSuiteIds = new Map(); + this.tempTestIds = new Map(); + this.tempStepId = null; + this.promises = []; + } + + onRunStart() { + const startLaunchObj = getStartLaunchObject(this.reportOptions); + const { tempId, promise } = this.client.startLaunch(startLaunchObj); + + this.tempLaunchId = tempId; + promiseErrorHandler(promise); + this.promises.push(promise); + } + + onTestResult(test, testResult) { + let suiteDuration = 0; + let testDuration = 0; + for (let result = 0; result < testResult.testResults.length; result++) { + suiteDuration += testResult.testResults[result].duration; + if (testResult.testResults[result].ancestorTitles.length !== 1) { + testDuration += testResult.testResults[result].duration; + } } - _finishStep(test, isRetried) { - const errorMsg = test.failureMessages[0]; - - switch (test.status) { - case testItemStatuses.PASSED: - this._finishPassedStep(isRetried); - break; - case testItemStatuses.FAILED: - this._finishFailedStep(errorMsg, isRetried); - break; - default: - this._finishSkippedStep(isRetried); - } - } + testResult.testResults.forEach((t) => { + if (t.ancestorTitles.length > 0) { + this._startSuite(t.ancestorTitles[0], test.path, suiteDuration); + } + if (t.ancestorTitles.length > 1) { + this._startTest(t, test.path, testDuration); + } + + if (!t.invocations) { + this._startStep(t, false, test.path); + this._finishStep(t, false); + return; + } + + for (let i = 0; i < t.invocations; i++) { + const isRetried = t.invocations !== 1; + + this._startStep(t, isRetried, test.path); + this._finishStep(t, isRetried); + } + }); - _finishPassedStep(isRetried) { - const status = testItemStatuses.PASSED; - const finishTestObj = { status, retry: isRetried }; - const { promise } = this.client.finishTestItem(this.tempStepId, finishTestObj); + this.tempTestIds.forEach((tempTestId, key) => { + this._finishTest(tempTestId, key); + }); + this.tempSuiteIds.forEach((tempSuiteId, key) => { + this._finishSuite(tempSuiteId, key); + }); + } - promiseErrorHandler(promise); - this.promises.push(promise); + async onRunComplete() { + await Promise.all(this.promises); + if (this.reportOptions.launchId) { + return; } + const { promise } = this.client.finishLaunch(this.tempLaunchId); - _finishFailedStep(failureMessage, isRetried) { - const status = testItemStatuses.FAILED; - const finishTestObj = { status, retry: isRetried }; - - this._sendLog(failureMessage); - - const { promise } = this.client.finishTestItem(this.tempStepId, finishTestObj); - - promiseErrorHandler(promise); - this.promises.push(promise); + if (this.reportOptions.logLaunchLink === true) { + promise.then((response) => { + console.log(`\nReportPortal Launch Link: ${response.link}`); + }); } - _sendLog(message) { - const newMessage = stripAnsi(message); - const logObject = { - message: newMessage, - level: logLevels.ERROR, - }; - const { promise } = this.client.sendLog(this.tempStepId, logObject); + promiseErrorHandler(promise); + await promise; + } - promiseErrorHandler(promise); - this.promises.push(promise); + _startSuite(suiteName, path, suiteDuration) { + if (this.tempSuiteIds.get(suiteName)) { + return; } - - _finishSkippedStep(isRetried) { - const status = 'skipped'; - const issue = this.reportOptions.skippedIssue === false ? { issueType: 'NOT_ISSUE' } : null; - const finishTestObj = { - status, - retry: isRetried, - ...(issue && { issue }), - }; - const { promise } = this.client.finishTestItem(this.tempStepId, finishTestObj); - - promiseErrorHandler(promise); - this.promises.push(promise); + const codeRef = getCodeRef(path, suiteName); + const { tempId, promise } = this.client.startTestItem( + getSuiteStartObject(suiteName, codeRef, suiteDuration), + this.tempLaunchId, + ); + + this.tempSuiteIds.set(suiteName, tempId); + promiseErrorHandler(promise); + this.promises.push(promise); + } + + _startTest(test, testPath, testDuration) { + if (this.tempTestIds.get(test.ancestorTitles.join('/'))) { + return; } - _finishTest(tempTestId, key) { - if (!tempTestId) return; - - const { promise } = this.client.finishTestItem(tempTestId, {}); - - this.tempTestIds.delete(key); - promiseErrorHandler(promise); - this.promises.push(promise); - } - - _finishSuite(tempSuiteId, key) { - if (!tempSuiteId) return; - - const { promise } = this.client.finishTestItem(tempSuiteId, {}); - - this.tempSuiteIds.delete(key); - promiseErrorHandler(promise); - this.promises.push(promise); + const tempSuiteId = this.tempSuiteIds.get(test.ancestorTitles[0]); + const fullTestName = getFullTestName(test); + const codeRef = getCodeRef(testPath, fullTestName); + const testStartObj = getTestStartObject(test.ancestorTitles[test.ancestorTitles.length - 1], codeRef, testDuration); + const parentId = this.tempTestIds.get(test.ancestorTitles.slice(0, -1).join('/')) || tempSuiteId; + const { tempId, promise } = this.client.startTestItem(testStartObj, this.tempLaunchId, parentId); + + this.tempTestIds.set(fullTestName, tempId); + promiseErrorHandler(promise); + this.promises.push(promise); + } + + _startStep(test, isRetried, testPath) { + const tempSuiteId = this.tempSuiteIds.get(test.ancestorTitles[0]); + const fullStepName = getFullStepName(test); + const codeRef = getCodeRef(testPath, fullStepName); + const stepDuration = test.duration; + const stepStartObj = getStepStartObject(test.title, isRetried, codeRef, stepDuration); + const parentId = this.tempTestIds.get(test.ancestorTitles.join('/')) || tempSuiteId; + const { tempId, promise } = this.client.startTestItem(stepStartObj, this.tempLaunchId, parentId); + + this.tempStepId = tempId; + promiseErrorHandler(promise); + this.promises.push(promise); + } + + _finishStep(test, isRetried) { + const errorMsg = test.failureMessages[0]; + + switch (test.status) { + case testItemStatuses.PASSED: + this._finishPassedStep(isRetried); + break; + case testItemStatuses.FAILED: + this._finishFailedStep(errorMsg, isRetried); + break; + default: + this._finishSkippedStep(isRetried); } + } + + _finishPassedStep(isRetried) { + const status = testItemStatuses.PASSED; + const finishTestObj = { status, retry: isRetried }; + const { promise } = this.client.finishTestItem(this.tempStepId, finishTestObj); + + promiseErrorHandler(promise); + this.promises.push(promise); + } + + _finishFailedStep(failureMessage, isRetried) { + const status = testItemStatuses.FAILED; + const finishTestObj = { status, retry: isRetried }; + + this._sendLog(failureMessage); + + const { promise } = this.client.finishTestItem(this.tempStepId, finishTestObj); + + promiseErrorHandler(promise); + this.promises.push(promise); + } + + _sendLog(message) { + const newMessage = stripAnsi(message); + const logObject = { + message: newMessage, + level: logLevels.ERROR, + }; + const { promise } = this.client.sendLog(this.tempStepId, logObject); + + promiseErrorHandler(promise); + this.promises.push(promise); + } + + _finishSkippedStep(isRetried) { + const status = 'skipped'; + const issue = this.reportOptions.skippedIssue === false ? { issueType: 'NOT_ISSUE' } : null; + const finishTestObj = { + status, + retry: isRetried, + ...(issue && { issue }), + }; + const { promise } = this.client.finishTestItem(this.tempStepId, finishTestObj); + + promiseErrorHandler(promise); + this.promises.push(promise); + } + + _finishTest(tempTestId, key) { + if (!tempTestId) return; + + const { promise } = this.client.finishTestItem(tempTestId, {}); + + this.tempTestIds.delete(key); + promiseErrorHandler(promise); + this.promises.push(promise); + } + + _finishSuite(tempSuiteId, key) { + if (!tempSuiteId) return; + + const { promise } = this.client.finishTestItem(tempSuiteId, {}); + + this.tempSuiteIds.delete(key); + promiseErrorHandler(promise); + this.promises.push(promise); + } } module.exports = JestReportPortal; diff --git a/jest.config.js b/jest.config.js index 10978b9..14a3cb7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -15,20 +15,20 @@ */ module.exports = { - moduleFileExtensions: [ - 'js', - ], - testRegex: '/__tests__/.*\\.spec.(js)$', - collectCoverageFrom: [ - './utils/**', - './index.js', - ], - coverageThreshold: { - global: { - branches: 80, - functions: 80, - lines: 80, - statements: 80, - }, + moduleFileExtensions: [ + 'js', + ], + testRegex: '/__tests__/.*\\.spec.(js)$', + collectCoverageFrom: [ + './utils/**', + './index.js', + ], + coverageThreshold: { + global: { + branches: 80, + functions: 80, + lines: 80, + statements: 80, }, + }, }; diff --git a/package-lock.json b/package-lock.json index 1a0513d..5032114 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,8 @@ }, "devDependencies": { "@types/jest": "^29.5.3", - "eslint": "^7.32.0", - "eslint-config-airbnb-base": "^14.2.1", + "eslint": "^8.45.0", + "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-node": "^11.1.0", "jest": "^29.6.1" @@ -24,6 +24,15 @@ "node": ">=10.x" } }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@ampproject/remapping": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", @@ -607,26 +616,59 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", + "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", "dev": true, "dependencies": { "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "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.20.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", @@ -642,6 +684,18 @@ "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", @@ -654,20 +708,42 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@eslint/js": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", + "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/@humanwhocodes/config-array": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", - "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.0", + "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" }, "engines": { "node": ">=10.10.0" } }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, "node_modules/@humanwhocodes/object-schema": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", @@ -1031,6 +1107,41 @@ "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", "dev": true }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@reportportal/client-javascript": { "version": "5.0.12", "resolved": "https://registry.npmjs.org/@reportportal/client-javascript/-/client-javascript-5.0.12.tgz", @@ -1195,9 +1306,9 @@ "dev": true }, "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -1231,15 +1342,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -1368,15 +1470,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -1879,18 +1972,6 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "dependencies": { - "ansi-colors": "^4.1.1" - }, - "engines": { - "node": ">=8.6" - } - }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -2010,78 +2091,76 @@ } }, "node_modules/eslint": { - "version": "7.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", - "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.3", - "@humanwhocodes/config-array": "^0.5.0", + "version": "8.45.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.45.0.tgz", + "integrity": "sha512-pd8KSxiQpdYRfYa9Wufvdoct3ZPQQuVuU5O6scNgMuOMYuxvH0IGaYK0wUFjo4UYYQQCUndlXiMbnxopwvvTiw==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.1.0", + "@eslint/js": "8.44.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", - "debug": "^4.0.1", + "debug": "^4.3.2", "doctrine": "^3.0.0", - "enquirer": "^2.3.5", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.6.0", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.1.2", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" }, "bin": { "eslint": "bin/eslint.js" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-config-airbnb-base": { - "version": "14.2.1", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz", - "integrity": "sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==", + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", "dev": true, "dependencies": { "confusing-browser-globals": "^1.0.10", "object.assign": "^4.1.2", - "object.entries": "^1.1.2" + "object.entries": "^1.1.5", + "semver": "^6.3.0" }, "engines": { - "node": ">= 6" + "node": "^10.12.0 || >=12.0.0" }, "peerDependencies": { - "eslint": "^5.16.0 || ^6.8.0 || ^7.2.0", - "eslint-plugin-import": "^2.22.1" + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.2" } }, "node_modules/eslint-import-resolver-node": { @@ -2219,26 +2298,20 @@ "eslint": ">=5.16.0" } }, - "node_modules/eslint-plugin-node/node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.1.tgz", + "integrity": "sha512-CvefSOsDdaYYvxChovdrPo/ZGt8d5lrJWleAc1diXRKhHGiTYEI26cvo8Kle/wGnsizoCJjK73FMg1/IkIwiNA==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "estraverse": "^5.2.0" }, "engines": { - "node": ">=8.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-utils": { @@ -2266,21 +2339,37 @@ } }, "node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", "dev": true, "engines": { - "node": ">=10" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "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/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": { - "@babel/highlight": "^7.10.4" + "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/globals": { @@ -2298,31 +2387,46 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/lru-cache": { + "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/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, "dependencies": { - "yallist": "^4.0.0" + "p-locate": "^5.0.0" }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/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==", + "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": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "p-limit": "^3.0.2" }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint/node_modules/type-fest": { @@ -2337,33 +2441,21 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/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/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/esprima": { @@ -2391,15 +2483,6 @@ "node": ">=0.10" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", @@ -2412,7 +2495,7 @@ "node": ">=4.0" } }, - "node_modules/esrecurse/node_modules/estraverse": { + "node_modules/estraverse": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", @@ -2421,15 +2504,6 @@ "node": ">=4.0" } }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -2506,6 +2580,15 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", @@ -2655,12 +2738,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "dev": true - }, "node_modules/functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -2760,15 +2837,15 @@ } }, "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==", + "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.1" + "is-glob": "^4.0.3" }, "engines": { - "node": ">= 6" + "node": ">=10.13.0" } }, "node_modules/globals": { @@ -2813,6 +2890,12 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -2910,9 +2993,9 @@ } }, "node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true, "engines": { "node": ">= 4" @@ -3169,6 +3252,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -4058,12 +4150,6 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", - "dev": true - }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -4300,17 +4386,17 @@ } }, "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" }, "engines": { "node": ">= 0.8.0" @@ -4503,15 +4589,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", @@ -4550,6 +4627,26 @@ } ] }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/react-is": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", @@ -4599,15 +4696,6 @@ "node": ">=0.10.0" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/resolve": { "version": "1.22.2", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", @@ -4655,6 +4743,16 @@ "node": ">=10" } }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -4670,6 +4768,29 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/safe-regex-test": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", @@ -4749,23 +4870,6 @@ "node": ">=8" } }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -4949,44 +5053,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/table": { - "version": "6.8.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.1.tgz", - "integrity": "sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==", - "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table/node_modules/ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -5181,12 +5247,6 @@ "uuid": "dist/bin/uuid" } }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, "node_modules/v8-to-istanbul": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", @@ -5267,15 +5327,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", diff --git a/package.json b/package.json index f9a3e10..5f48d5d 100755 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "devDependencies": { "@types/jest": "^29.5.3", "jest": "^29.6.1", - "eslint": "^7.32.0", - "eslint-config-airbnb-base": "^14.2.1", + "eslint": "^8.45.0", + "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-node": "^11.1.0" }, diff --git a/utils/getOptions.js b/utils/getOptions.js index e8b2ac8..1fe59f9 100755 --- a/utils/getOptions.js +++ b/utils/getOptions.js @@ -20,48 +20,48 @@ const fs = require('fs'); const constants = require('../constants/index'); const getEnvOptions = () => { - const options = {}; + const options = {}; - for (const name in constants.ENVIRONMENT_CONFIG_MAP) { - if (process.env[name]) { - options[constants.ENVIRONMENT_CONFIG_MAP[name]] = process.env[name]; - } + for (const name in constants.ENVIRONMENT_CONFIG_MAP) { + if (process.env[name]) { + options[constants.ENVIRONMENT_CONFIG_MAP[name]] = process.env[name]; } + } - return options; + return options; }; const getAppOptions = (pathToResolve) => { - let traversing = true; + let traversing = true; - // Find nearest package.json by traversing up directories until / - while (traversing) { - traversing = pathToResolve !== path.sep; + // Find nearest package.json by traversing up directories until / + while (traversing) { + traversing = pathToResolve !== path.sep; - const pkgpath = path.join(pathToResolve, 'package.json'); + const pkgpath = path.join(pathToResolve, 'package.json'); - if (fs.existsSync(pkgpath)) { - let options = (require(pkgpath) || {})['jest-junit']; + if (fs.existsSync(pkgpath)) { + let options = (require(pkgpath) || {})['jest-junit']; - if (Object.prototype.toString.call(options) !== '[object Object]') { - options = {}; - } + if (Object.prototype.toString.call(options) !== '[object Object]') { + options = {}; + } - return options; - } - pathToResolve = path.dirname(pathToResolve); + return options; } + pathToResolve = path.dirname(pathToResolve); + } - return {}; + return {}; }; module.exports = { - options: (reporterOptions = {}) => Object.assign( - constants.DEFAULT_OPTIONS, - reporterOptions, - getAppOptions(process.cwd()), - getEnvOptions(), - ), - getAppOptions, - getEnvOptions, + options: (reporterOptions = {}) => Object.assign( + constants.DEFAULT_OPTIONS, + reporterOptions, + getAppOptions(process.cwd()), + getEnvOptions(), + ), + getAppOptions, + getEnvOptions, }; diff --git a/utils/objectUtils.js b/utils/objectUtils.js index f898419..188e05d 100644 --- a/utils/objectUtils.js +++ b/utils/objectUtils.js @@ -23,112 +23,112 @@ const PJSON_NAME = pjson.name; const entityType = { SUITE: 'SUITE', TEST: 'TEST', STEP: 'STEP' }; const getStartLaunchObject = (options = {}) => { - const systemAttr = getSystemAttributes(options.skippedIssue); - - return { - description: options.description, - attributes: options.attributes ? options.attributes.concat(systemAttr) : systemAttr, - rerun: options.rerun, - rerunOf: options.rerunOf, - mode: options.mode, - startTime: new Date().valueOf(), - id: options.launchId, - }; + const systemAttr = getSystemAttributes(options.skippedIssue); + + return { + description: options.description, + attributes: options.attributes ? options.attributes.concat(systemAttr) : systemAttr, + rerun: options.rerun, + rerunOf: options.rerunOf, + mode: options.mode, + startTime: new Date().valueOf(), + id: options.launchId, + }; }; const getStepStartObject = (stepTitle, isRetried, codeRef, stepDuration) => ({ - type: entityType.STEP, - name: stepTitle, - codeRef, - startTime: new Date().valueOf() - stepDuration, - retry: isRetried, + type: entityType.STEP, + name: stepTitle, + codeRef, + startTime: new Date().valueOf() - stepDuration, + retry: isRetried, }); const getTestStartObject = (testTitle, codeRef, testDuration) => ({ - type: entityType.TEST, - name: testTitle, - codeRef, - startTime: new Date().valueOf() - testDuration, + type: entityType.TEST, + name: testTitle, + codeRef, + startTime: new Date().valueOf() - testDuration, }); const getSuiteStartObject = (suiteName, codeRef, suiteDuration) => ({ - type: entityType.SUITE, - name: suiteName, - codeRef, - startTime: new Date().valueOf() - suiteDuration, + type: entityType.SUITE, + name: suiteName, + codeRef, + startTime: new Date().valueOf() - suiteDuration, }); const getAgentOptions = (options = {}) => { - const env_attributes = process.env.RP_ATTRIBUTES === undefined - ? undefined - : process.env.RP_ATTRIBUTES.split(',').map((item) => { - const itemArr = item.split(':'); - - return { - key: itemArr.length === 1 ? null : itemArr[0], - value: itemArr.length === 1 ? itemArr[0] : itemArr[1], - }; - }); - - let apiKey = process.env.RP_API_KEY || options.apiKey; - if (!apiKey) { - apiKey = process.env.RP_TOKEN || options.token; - if (apiKey) { - console.warn('ReportPortal warning. Option "token" is deprecated. Use "apiKey" instead.'); - } + const env_attributes = process.env.RP_ATTRIBUTES === undefined + ? undefined + : process.env.RP_ATTRIBUTES.split(',').map((item) => { + const itemArr = item.split(':'); + + return { + key: itemArr.length === 1 ? null : itemArr[0], + value: itemArr.length === 1 ? itemArr[0] : itemArr[1], + }; + }); + + let apiKey = process.env.RP_API_KEY || options.apiKey; + if (!apiKey) { + apiKey = process.env.RP_TOKEN || options.token; + if (apiKey) { + console.warn('ReportPortal warning. Option "token" is deprecated. Use "apiKey" instead.'); } - - return { - apiKey, - endpoint: process.env.RP_ENDPOINT || options.endpoint, - launch: process.env.RP_LAUNCH || options.launch, - project: process.env.RP_PROJECT_NAME || options.project, - rerun: options.rerun, - rerunOf: options.rerunOf, - skippedIssue: options.skippedIssue, - description: process.env.RP_DESCRIPTION || options.description, - attributes: env_attributes || options.attributes, - mode: process.env.RP_MODE || options.mode, - debug: options.debug, - restClientConfig: options.restClientConfig, - launchId: process.env.RP_LAUNCH_ID || options.launchId, - logLaunchLink: options.logLaunchLink, - }; + } + + return { + apiKey, + endpoint: process.env.RP_ENDPOINT || options.endpoint, + launch: process.env.RP_LAUNCH || options.launch, + project: process.env.RP_PROJECT_NAME || options.project, + rerun: options.rerun, + rerunOf: options.rerunOf, + skippedIssue: options.skippedIssue, + description: process.env.RP_DESCRIPTION || options.description, + attributes: env_attributes || options.attributes, + mode: process.env.RP_MODE || options.mode, + debug: options.debug, + restClientConfig: options.restClientConfig, + launchId: process.env.RP_LAUNCH_ID || options.launchId, + logLaunchLink: options.logLaunchLink, + }; }; const getAgentInfo = () => ({ - version: PJSON_VERSION, - name: PJSON_NAME, + version: PJSON_VERSION, + name: PJSON_NAME, }); const getSystemAttributes = (skippedIssue) => { - const systemAttr = [{ - key: 'agent', - value: `${PJSON_NAME}|${PJSON_VERSION}`, - system: true, - }]; - - if (skippedIssue === false) { - const skippedIssueAttribute = { - key: 'skippedIssue', - value: 'false', - system: true, - }; - - systemAttr.push(skippedIssueAttribute); - } + const systemAttr = [{ + key: 'agent', + value: `${PJSON_NAME}|${PJSON_VERSION}`, + system: true, + }]; + + if (skippedIssue === false) { + const skippedIssueAttribute = { + key: 'skippedIssue', + value: 'false', + system: true, + }; + + systemAttr.push(skippedIssueAttribute); + } - return systemAttr; + return systemAttr; }; const getCodeRef = (testPath, title) => { - const testFileDir = path - .parse(path.normalize(path.relative(process.cwd(), testPath))) - .dir.replace(new RegExp('\\'.concat(path.sep), 'g'), '/'); - const separator = testFileDir ? '/' : ''; - const testFile = path.parse(testPath); + const testFileDir = path + .parse(path.normalize(path.relative(process.cwd(), testPath))) + .dir.replace(new RegExp('\\'.concat(path.sep), 'g'), '/'); + const separator = testFileDir ? '/' : ''; + const testFile = path.parse(testPath); - return `${testFileDir}${separator}${testFile.base}/${title}`; + return `${testFileDir}${separator}${testFile.base}/${title}`; }; const getFullTestName = (test) => `${test.ancestorTitles.join('/')}`; @@ -136,14 +136,14 @@ const getFullTestName = (test) => `${test.ancestorTitles.join('/')}`; const getFullStepName = (test) => `${test.ancestorTitles.join('/')}/${test.title}`; module.exports = { - getAgentOptions, - getStartLaunchObject, - getSuiteStartObject, - getTestStartObject, - getStepStartObject, - getAgentInfo, - getCodeRef, - getFullTestName, - getFullStepName, - getSystemAttributes, + getAgentOptions, + getStartLaunchObject, + getSuiteStartObject, + getTestStartObject, + getStepStartObject, + getAgentInfo, + getCodeRef, + getFullTestName, + getFullStepName, + getSystemAttributes, }; From 28d80da1487e47c85680af8f6d8ef6ea5441048f Mon Sep 17 00:00:00 2001 From: Ilya Hancharyk Date: Mon, 17 Jul 2023 17:23:25 +0300 Subject: [PATCH 3/4] Add prettier --- .eslintrc | 7 +- .prettierrc | 6 + __tests__/getOptions.spec.js | 80 +++++---- __tests__/index.spec.js | 312 ++++++++++++++++++++-------------- __tests__/objectUtils.spec.js | 142 +++++++++------- index.js | 33 +++- jest.config.js | 9 +- package-lock.json | 71 +++++++- package.json | 117 ++++++------- utils/getOptions.js | 13 +- utils/objectUtils.js | 33 ++-- 11 files changed, 501 insertions(+), 322 deletions(-) create mode 100644 .prettierrc diff --git a/.eslintrc b/.eslintrc index 9aedfc9..2b8f2f3 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,10 @@ { - "extends": "airbnb-base", + "extends": [ + "airbnb-base", + "plugin:prettier/recommended", + "plugin:import/recommended" + ], + "plugins": ["prettier"], "globals": { "expectAsync": true }, diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..270219c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "arrowParens": "always", + "singleQuote": true, + "trailingComma": "all", + "printWidth": 100 +} diff --git a/__tests__/getOptions.spec.js b/__tests__/getOptions.spec.js index 7e28602..4d72410 100644 --- a/__tests__/getOptions.spec.js +++ b/__tests__/getOptions.spec.js @@ -18,11 +18,7 @@ const fs = require('fs'); const path = require('path'); const process = require('process'); -const { - options, - getAppOptions, - getEnvOptions, -} = require('../utils/getOptions'); +const { options, getAppOptions, getEnvOptions } = require('../utils/getOptions'); const constants = require('../constants/index'); describe('Get Options script', () => { @@ -41,7 +37,7 @@ describe('Get Options script', () => { }); describe('getEnvOptions', () => { - test('should return empty envOptions object if environments don\'t set', () => { + test("should return empty envOptions object if environments don't set", () => { const envOptionsObject = getEnvOptions(); expect(envOptionsObject).toBeDefined(); @@ -82,37 +78,47 @@ describe('Get Options script', () => { expect(appOptionsObject).toEqual({}); }); - test('should return empty AppOptions object if fs.existsSync return true and type of options' - + ' is not [object Object]', () => { - const spyProcessCwd = jest.spyOn(process, 'cwd'); - // eslint-disable-next-line max-len - spyProcessCwd.mockReturnValue(`${processCwdValue}${path.sep}__tests__${path.sep}fixtures${path.sep}mockedPackageJsonString`); - jest.mock('fs'); - fs.existsSync = jest.fn(); - fs.existsSync.mockReturnValue(true); - - const appOptionsObject = getAppOptions(process.cwd()); - - expect(appOptionsObject).toBeDefined(); - expect(appOptionsObject).toEqual({}); - - spyProcessCwd.mockClear(); - }); - - test('should return AppOptions object if fs.existsSync return true and type of options' - + ' is [object Object]', () => { - const spyProcessCwd = jest.spyOn(process, 'cwd'); - // eslint-disable-next-line max-len - spyProcessCwd.mockReturnValue(`${processCwdValue}${path.sep}__tests__${path.sep}fixtures${path.sep}mockedPackageJsonObject`); - jest.mock('fs'); - fs.existsSync = jest.fn(); - fs.existsSync.mockReturnValue(true); - - const appOptionsObject = getAppOptions(process.cwd()); - - expect(appOptionsObject).toBeDefined(); - expect(appOptionsObject).toEqual({ keyOne: 'valueOne' }); - }); + test( + 'should return empty AppOptions object if fs.existsSync return true and type of options' + + ' is not [object Object]', + () => { + const spyProcessCwd = jest.spyOn(process, 'cwd'); + // eslint-disable-next-line max-len + spyProcessCwd.mockReturnValue( + `${processCwdValue}${path.sep}__tests__${path.sep}fixtures${path.sep}mockedPackageJsonString`, + ); + jest.mock('fs'); + fs.existsSync = jest.fn(); + fs.existsSync.mockReturnValue(true); + + const appOptionsObject = getAppOptions(process.cwd()); + + expect(appOptionsObject).toBeDefined(); + expect(appOptionsObject).toEqual({}); + + spyProcessCwd.mockClear(); + }, + ); + + test( + 'should return AppOptions object if fs.existsSync return true and type of options' + + ' is [object Object]', + () => { + const spyProcessCwd = jest.spyOn(process, 'cwd'); + // eslint-disable-next-line max-len + spyProcessCwd.mockReturnValue( + `${processCwdValue}${path.sep}__tests__${path.sep}fixtures${path.sep}mockedPackageJsonObject`, + ); + jest.mock('fs'); + fs.existsSync = jest.fn(); + fs.existsSync.mockReturnValue(true); + + const appOptionsObject = getAppOptions(process.cwd()); + + expect(appOptionsObject).toBeDefined(); + expect(appOptionsObject).toEqual({ keyOne: 'valueOne' }); + }, + ); }); describe('options', () => { diff --git a/__tests__/index.spec.js b/__tests__/index.spec.js index b05028e..c5a2b82 100644 --- a/__tests__/index.spec.js +++ b/__tests__/index.spec.js @@ -56,11 +56,8 @@ describe('index script', () => { }); beforeEach(() => { - global.Date = jest.fn( - (...args) => - (args.length - ? new RealDate(...args) - : new RealDate(currentDate)), + global.Date = jest.fn((...args) => + args.length ? new RealDate(...args) : new RealDate(currentDate), ); Object.assign(Date, RealDate); }); @@ -105,84 +102,104 @@ describe('index script', () => { }); describe('onTestResult', () => { - test('startSuite, startTest, spyStartStep, finishTest, finishSuite, spyFinishStep' - + 'should be called with parameters', () => { - const spyStartSuite = jest.spyOn(reporter, '_startSuite'); - const spyStartTest = jest.spyOn(reporter, '_startTest'); - const spyStartStep = jest.spyOn(reporter, '_startStep'); - const spyFinishTest = jest.spyOn(reporter, '_finishTest'); - const spyFinishSuite = jest.spyOn(reporter, '_finishSuite'); - const spyFinishStep = jest.spyOn(reporter, '_finishStep'); - reporter.tempTestIds = new Map([['tempTestId', '1234']]); - reporter.tempSuiteIds = new Map([['tempSuiteId', '4321']]); - - reporter.onTestResult(testObj, testResult); - - expect(spyStartSuite).toHaveBeenCalledWith(testResult.testResults[0].ancestorTitles[0], testObj.path, duration); - expect(spyStartTest).toHaveBeenCalledWith(testResult.testResults[0], testObj.path, duration); - expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); - expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); - expect(spyFinishTest).toHaveBeenCalledWith('1234', 'tempTestId'); - expect(spyFinishSuite).toHaveBeenCalledWith('4321', 'tempSuiteId'); - }); - - test('startStep, finishStep should be called one times with second parameter \'false\' if there' - + ' are no retries', () => { - const spyStartStep = jest.spyOn(reporter, '_startStep'); - const spyFinishStep = jest.spyOn(reporter, '_finishStep'); - - reporter.onTestResult(testObj, testResult); - - expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); - expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); - expect(spyStartStep).toHaveBeenCalledTimes(1); - expect(spyFinishStep).toHaveBeenCalledTimes(1); - }); - - test('startStep, finishStep should be called two times with second parameter \'true\' if there' - + ' are retries', () => { - const spyStartStep = jest.spyOn(reporter, '_startStep'); - const spyFinishStep = jest.spyOn(reporter, '_finishStep'); - const testResult = { - testResults: [ - { - title: 'Title', - status: 'failed', - ancestorTitles: ['Suite name', 'Test name'], - failureMessages: 'error message', - invocations: 2, - }, - ], - }; + test( + 'startSuite, startTest, spyStartStep, finishTest, finishSuite, spyFinishStep' + + 'should be called with parameters', + () => { + const spyStartSuite = jest.spyOn(reporter, '_startSuite'); + const spyStartTest = jest.spyOn(reporter, '_startTest'); + const spyStartStep = jest.spyOn(reporter, '_startStep'); + const spyFinishTest = jest.spyOn(reporter, '_finishTest'); + const spyFinishSuite = jest.spyOn(reporter, '_finishSuite'); + const spyFinishStep = jest.spyOn(reporter, '_finishStep'); + reporter.tempTestIds = new Map([['tempTestId', '1234']]); + reporter.tempSuiteIds = new Map([['tempSuiteId', '4321']]); + + reporter.onTestResult(testObj, testResult); + + expect(spyStartSuite).toHaveBeenCalledWith( + testResult.testResults[0].ancestorTitles[0], + testObj.path, + duration, + ); + expect(spyStartTest).toHaveBeenCalledWith( + testResult.testResults[0], + testObj.path, + duration, + ); + expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); + expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); + expect(spyFinishTest).toHaveBeenCalledWith('1234', 'tempTestId'); + expect(spyFinishSuite).toHaveBeenCalledWith('4321', 'tempSuiteId'); + }, + ); - reporter.onTestResult(testObj, testResult); + test( + "startStep, finishStep should be called one times with second parameter 'false' if there" + + ' are no retries', + () => { + const spyStartStep = jest.spyOn(reporter, '_startStep'); + const spyFinishStep = jest.spyOn(reporter, '_finishStep'); - expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], true, testObj.path); - expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], true); - expect(spyStartStep).toHaveBeenCalledTimes(2); - expect(spyFinishStep).toHaveBeenCalledTimes(2); - }); + reporter.onTestResult(testObj, testResult); - test('startStep, finishStep should be called ones with second parameter \'false\' if there is' - + ' no invocations', () => { - const spyStartStep = jest.spyOn(reporter, '_startStep'); - const spyFinishStep = jest.spyOn(reporter, '_finishStep'); - const testResult = { - testResults: [ - { - title: 'Title', - status: 'failed', - ancestorTitles: ['Suite name', 'Test name'], - failureMessages: 'error message', - }, - ], - }; + expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); + expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); + expect(spyStartStep).toHaveBeenCalledTimes(1); + expect(spyFinishStep).toHaveBeenCalledTimes(1); + }, + ); - reporter.onTestResult(testObj, testResult); + test( + "startStep, finishStep should be called two times with second parameter 'true' if there" + + ' are retries', + () => { + const spyStartStep = jest.spyOn(reporter, '_startStep'); + const spyFinishStep = jest.spyOn(reporter, '_finishStep'); + const testResult = { + testResults: [ + { + title: 'Title', + status: 'failed', + ancestorTitles: ['Suite name', 'Test name'], + failureMessages: 'error message', + invocations: 2, + }, + ], + }; + + reporter.onTestResult(testObj, testResult); + + expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], true, testObj.path); + expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], true); + expect(spyStartStep).toHaveBeenCalledTimes(2); + expect(spyFinishStep).toHaveBeenCalledTimes(2); + }, + ); - expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); - expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); - }); + test( + "startStep, finishStep should be called ones with second parameter 'false' if there is" + + ' no invocations', + () => { + const spyStartStep = jest.spyOn(reporter, '_startStep'); + const spyFinishStep = jest.spyOn(reporter, '_finishStep'); + const testResult = { + testResults: [ + { + title: 'Title', + status: 'failed', + ancestorTitles: ['Suite name', 'Test name'], + failureMessages: 'error message', + }, + ], + }; + + reporter.onTestResult(testObj, testResult); + + expect(spyStartStep).toHaveBeenCalledWith(testResult.testResults[0], false, testObj.path); + expect(spyFinishStep).toHaveBeenCalledWith(testResult.testResults[0], false); + }, + ); test('startTest should not be called if there are no tests', () => { const spyStartTest = jest.spyOn(reporter, '_startTest'); @@ -214,23 +231,29 @@ describe('index script', () => { }); describe('_startSuite', () => { - test('startTestItem should be called with parameters if tempSuiteIds doesn\'t contain this suite,' - + 'tempSuiteId should be defined', () => { - jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); - const expectedStartTestItemParameter = { - type: 'SUITE', - name: 'suite name', - codeRef: 'example.js/suite name', - startTime: new Date().valueOf() - duration, - }; - const expectedTempSuiteIds = new Map([['suite name', 'startTestItem']]); - reporter.tempLaunchId = 'tempLaunchId'; - - reporter._startSuite('suite name', testObj.path, duration); - - expect(reporter.client.startTestItem).toHaveBeenCalledWith(expectedStartTestItemParameter, 'tempLaunchId'); - expect(reporter.tempSuiteIds).toEqual(expectedTempSuiteIds); - }); + test( + "startTestItem should be called with parameters if tempSuiteIds doesn't contain this suite," + + 'tempSuiteId should be defined', + () => { + jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); + const expectedStartTestItemParameter = { + type: 'SUITE', + name: 'suite name', + codeRef: 'example.js/suite name', + startTime: new Date().valueOf() - duration, + }; + const expectedTempSuiteIds = new Map([['suite name', 'startTestItem']]); + reporter.tempLaunchId = 'tempLaunchId'; + + reporter._startSuite('suite name', testObj.path, duration); + + expect(reporter.client.startTestItem).toHaveBeenCalledWith( + expectedStartTestItemParameter, + 'tempLaunchId', + ); + expect(reporter.tempSuiteIds).toEqual(expectedTempSuiteIds); + }, + ); test('startTestItem should not be called with parameters if tempSuiteIds contains this suite', () => { reporter.tempSuiteIds = new Map([['suite name', 'startTestItem']]); @@ -242,25 +265,35 @@ describe('index script', () => { }); describe('_startTest', () => { - test('startTestItem should be called with parameters if tempTestIds doesn\'t contain this suite,' - + 'tempSuiteId should be defined', () => { - jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); - const expectedStartTestItemParameter = { - type: 'TEST', - name: 'Test name', - codeRef: 'example.js/Suite name/Test name', - startTime: new Date().valueOf() - duration, - }; - const expectedTempTestIds = new Map([['Suite name/Test name', 'startTestItem']]); - reporter.tempLaunchId = 'tempLaunchId'; - reporter.tempSuiteIds = new Map([['Suite name', 'suiteId']]); - - reporter._startTest({ ancestorTitles: ['Suite name', 'Test name'] }, testObj.path, duration); - - expect(reporter.client.startTestItem) - .toHaveBeenCalledWith(expectedStartTestItemParameter, 'tempLaunchId', 'suiteId'); - expect(reporter.tempTestIds).toEqual(expectedTempTestIds); - }); + test( + "startTestItem should be called with parameters if tempTestIds doesn't contain this suite," + + 'tempSuiteId should be defined', + () => { + jest.spyOn(process, 'cwd').mockImplementation(() => `C:${path.sep}testProject`); + const expectedStartTestItemParameter = { + type: 'TEST', + name: 'Test name', + codeRef: 'example.js/Suite name/Test name', + startTime: new Date().valueOf() - duration, + }; + const expectedTempTestIds = new Map([['Suite name/Test name', 'startTestItem']]); + reporter.tempLaunchId = 'tempLaunchId'; + reporter.tempSuiteIds = new Map([['Suite name', 'suiteId']]); + + reporter._startTest( + { ancestorTitles: ['Suite name', 'Test name'] }, + testObj.path, + duration, + ); + + expect(reporter.client.startTestItem).toHaveBeenCalledWith( + expectedStartTestItemParameter, + 'tempLaunchId', + 'suiteId', + ); + expect(reporter.tempTestIds).toEqual(expectedTempTestIds); + }, + ); test('startTestItem should not be called with parameters if tempTestIds contains this test', () => { reporter.tempTestIds = new Map([['Suite name/Test name', 'startTestItem']]); @@ -284,10 +317,17 @@ describe('index script', () => { reporter.tempLaunchId = 'tempLaunchId'; reporter.tempTestIds = new Map([['Suite/Test', 'tempTestId']]); - reporter._startStep({ title: 'Step', ancestorTitles: ['Suite', 'Test'], duration }, true, testObj.path); + reporter._startStep( + { title: 'Step', ancestorTitles: ['Suite', 'Test'], duration }, + true, + testObj.path, + ); - expect(reporter.client.startTestItem) - .toHaveBeenCalledWith(expectedStartStepItemParameter, 'tempLaunchId', 'tempTestId'); + expect(reporter.client.startTestItem).toHaveBeenCalledWith( + expectedStartStepItemParameter, + 'tempLaunchId', + 'tempTestId', + ); expect(reporter.tempStepId).toEqual('startTestItem'); }); @@ -303,10 +343,17 @@ describe('index script', () => { reporter.tempLaunchId = 'tempLaunchId'; reporter.tempSuiteIds = new Map([['Suite', 'tempSuiteId']]); - reporter._startStep({ title: 'Step', ancestorTitles: ['Suite'], duration }, true, testObj.path); + reporter._startStep( + { title: 'Step', ancestorTitles: ['Suite'], duration }, + true, + testObj.path, + ); - expect(reporter.client.startTestItem) - .toHaveBeenCalledWith(expectedStartStepItemParameter, 'tempLaunchId', 'tempSuiteId'); + expect(reporter.client.startTestItem).toHaveBeenCalledWith( + expectedStartStepItemParameter, + 'tempLaunchId', + 'tempSuiteId', + ); expect(reporter.tempStepId).toEqual('startTestItem'); }); }); @@ -321,7 +368,10 @@ describe('index script', () => { reporter._sendLog('message'); - expect(reporter.client.sendLog).toHaveBeenCalledWith('tempStepId', expectedLogObjectParameter); + expect(reporter.client.sendLog).toHaveBeenCalledWith( + 'tempStepId', + expectedLogObjectParameter, + ); }); }); @@ -410,7 +460,10 @@ describe('index script', () => { reporter._finishPassedStep(false); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith( + 'tempStepId', + expectedFinishTestItemParameter, + ); }); }); @@ -426,7 +479,10 @@ describe('index script', () => { reporter._finishFailedStep('error message', false); expect(spySendLog).toHaveBeenCalledWith('error message'); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith( + 'tempStepId', + expectedFinishTestItemParameter, + ); }); }); @@ -440,7 +496,10 @@ describe('index script', () => { reporter._finishSkippedStep(false); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith( + 'tempStepId', + expectedFinishTestItemParameter, + ); }); test('finishTestItem should be called with issue parameter if skippedIssue is false', () => { @@ -454,7 +513,10 @@ describe('index script', () => { reporter._finishSkippedStep(false); - expect(reporter.client.finishTestItem).toHaveBeenCalledWith('tempStepId', expectedFinishTestItemParameter); + expect(reporter.client.finishTestItem).toHaveBeenCalledWith( + 'tempStepId', + expectedFinishTestItemParameter, + ); }); }); }); diff --git a/__tests__/objectUtils.spec.js b/__tests__/objectUtils.spec.js index faff4e4..ccdb744 100644 --- a/__tests__/objectUtils.spec.js +++ b/__tests__/objectUtils.spec.js @@ -37,7 +37,8 @@ const defaultOptions = { { key: 'YourKey', value: 'YourValue', - }, { + }, + { value: 'YourValue', }, ], @@ -52,11 +53,8 @@ describe('Object Utils script', () => { const OLD_ENV = process.env; beforeEach(() => { - global.Date = jest.fn( - (...args) => - (args.length - ? new RealDate(...args) - : new RealDate(currentDate)), + global.Date = jest.fn((...args) => + args.length ? new RealDate(...args) : new RealDate(currentDate), ); Object.assign(Date, RealDate); @@ -79,9 +77,11 @@ describe('Object Utils script', () => { { key: 'YourKey', value: 'YourValue', - }, { + }, + { value: 'YourValue', - }, { + }, + { key: 'agent', value: `${pjson.name}|${pjson.version}`, system: true, @@ -98,7 +98,7 @@ describe('Object Utils script', () => { expect(startLaunchObject).toEqual(expectedStartLaunchObject); }); - test('should return start launch object with default values if options don\'t set', () => { + test("should return start launch object with default values if options don't set", () => { const expectedStartLaunchObject = { attributes: [ { @@ -164,45 +164,48 @@ describe('Object Utils script', () => { }); describe('getAgentOptions', () => { - test('should return agent options object with correct values, some parameters taken from' - + ' environment variables', () => { - process.env = { - RP_API_KEY: '123', - RP_LAUNCH: 'launch name', - RP_PROJECT_NAME: 'project name', - RP_ATTRIBUTES: 'attributesOne,attributesTwoKey:attributesTwoValue', - }; - const expectedAgentOptions = { - apiKey: '123', - endpoint: 'endpoint', - launch: 'launch name', - project: 'project name', - rerun: true, - rerunOf: '00000000-0000-0000-0000-000000000000', - description: 'description', - attributes: [ - { key: null, value: 'attributesOne' }, - { key: 'attributesTwoKey', value: 'attributesTwoValue' }, - ], - mode: 'DEBUG', - debug: true, - }; - const options = { - endpoint: 'endpoint', - rerun: true, - rerunOf: '00000000-0000-0000-0000-000000000000', - description: 'description', - mode: 'DEBUG', - debug: true, - }; - - const agentOptions = getAgentOptions(options); - - expect(agentOptions).toBeDefined(); - expect(agentOptions).toEqual(expectedAgentOptions); - }); + test( + 'should return agent options object with correct values, some parameters taken from' + + ' environment variables', + () => { + process.env = { + RP_API_KEY: '123', + RP_LAUNCH: 'launch name', + RP_PROJECT_NAME: 'project name', + RP_ATTRIBUTES: 'attributesOne,attributesTwoKey:attributesTwoValue', + }; + const expectedAgentOptions = { + apiKey: '123', + endpoint: 'endpoint', + launch: 'launch name', + project: 'project name', + rerun: true, + rerunOf: '00000000-0000-0000-0000-000000000000', + description: 'description', + attributes: [ + { key: null, value: 'attributesOne' }, + { key: 'attributesTwoKey', value: 'attributesTwoValue' }, + ], + mode: 'DEBUG', + debug: true, + }; + const options = { + endpoint: 'endpoint', + rerun: true, + rerunOf: '00000000-0000-0000-0000-000000000000', + description: 'description', + mode: 'DEBUG', + debug: true, + }; + + const agentOptions = getAgentOptions(options); + + expect(agentOptions).toBeDefined(); + expect(agentOptions).toEqual(expectedAgentOptions); + }, + ); - test('should return agent options object with default values if options don\'t set', () => { + test("should return agent options object with default values if options don't set", () => { const expectedClientInitObject = {}; const clientInitObject = getAgentOptions(); @@ -223,11 +226,13 @@ describe('Object Utils script', () => { describe('getSystemAttributes', () => { test('should return only agent system attribute if parameter is true', () => { - const expectedSystemAttribute = [{ - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, - }]; + const expectedSystemAttribute = [ + { + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, + }, + ]; const systemAttributes = getSystemAttributes(true); @@ -235,11 +240,13 @@ describe('Object Utils script', () => { }); test('should return only agent system attribute if there is no parameter', () => { - const expectedSystemAttribute = [{ - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, - }]; + const expectedSystemAttribute = [ + { + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, + }, + ]; const systemAttributes = getSystemAttributes(); @@ -247,15 +254,18 @@ describe('Object Utils script', () => { }); test('should return agent and skippedIssue system attributes if parameter is false', () => { - const expectedSystemAttribute = [{ - key: 'agent', - value: `${pjson.name}|${pjson.version}`, - system: true, - }, { - key: 'skippedIssue', - value: 'false', - system: true, - }]; + const expectedSystemAttribute = [ + { + key: 'agent', + value: `${pjson.name}|${pjson.version}`, + system: true, + }, + { + key: 'skippedIssue', + value: 'false', + system: true, + }, + ]; const systemAttributes = getSystemAttributes(false); diff --git a/index.js b/index.js index 95ba981..7dfda0c 100644 --- a/index.js +++ b/index.js @@ -18,9 +18,15 @@ const stripAnsi = require('strip-ansi'); const RPClient = require('@reportportal/client-javascript'); const getOptions = require('./utils/getOptions'); const { - getAgentOptions, getSuiteStartObject, - getStartLaunchObject, getTestStartObject, getStepStartObject, - getAgentInfo, getCodeRef, getFullTestName, getFullStepName, + getAgentOptions, + getSuiteStartObject, + getStartLaunchObject, + getTestStartObject, + getStepStartObject, + getAgentInfo, + getCodeRef, + getFullTestName, + getFullStepName, } = require('./utils/objectUtils'); const testItemStatuses = { PASSED: 'passed', FAILED: 'failed', SKIPPED: 'pending' }; @@ -138,9 +144,18 @@ class JestReportPortal { const tempSuiteId = this.tempSuiteIds.get(test.ancestorTitles[0]); const fullTestName = getFullTestName(test); const codeRef = getCodeRef(testPath, fullTestName); - const testStartObj = getTestStartObject(test.ancestorTitles[test.ancestorTitles.length - 1], codeRef, testDuration); - const parentId = this.tempTestIds.get(test.ancestorTitles.slice(0, -1).join('/')) || tempSuiteId; - const { tempId, promise } = this.client.startTestItem(testStartObj, this.tempLaunchId, parentId); + const testStartObj = getTestStartObject( + test.ancestorTitles[test.ancestorTitles.length - 1], + codeRef, + testDuration, + ); + const parentId = + this.tempTestIds.get(test.ancestorTitles.slice(0, -1).join('/')) || tempSuiteId; + const { tempId, promise } = this.client.startTestItem( + testStartObj, + this.tempLaunchId, + parentId, + ); this.tempTestIds.set(fullTestName, tempId); promiseErrorHandler(promise); @@ -154,7 +169,11 @@ class JestReportPortal { const stepDuration = test.duration; const stepStartObj = getStepStartObject(test.title, isRetried, codeRef, stepDuration); const parentId = this.tempTestIds.get(test.ancestorTitles.join('/')) || tempSuiteId; - const { tempId, promise } = this.client.startTestItem(stepStartObj, this.tempLaunchId, parentId); + const { tempId, promise } = this.client.startTestItem( + stepStartObj, + this.tempLaunchId, + parentId, + ); this.tempStepId = tempId; promiseErrorHandler(promise); diff --git a/jest.config.js b/jest.config.js index 14a3cb7..977481a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -15,14 +15,9 @@ */ module.exports = { - moduleFileExtensions: [ - 'js', - ], + moduleFileExtensions: ['js'], testRegex: '/__tests__/.*\\.spec.(js)$', - collectCoverageFrom: [ - './utils/**', - './index.js', - ], + collectCoverageFrom: ['./utils/**', './index.js'], coverageThreshold: { global: { branches: 80, diff --git a/package-lock.json b/package-lock.json index 5032114..7fd1c9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,9 +16,12 @@ "@types/jest": "^29.5.3", "eslint": "^8.45.0", "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-prettier": "^8.8.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-node": "^11.1.0", - "jest": "^29.6.1" + "eslint-plugin-prettier": "^4.2.1", + "jest": "^29.6.1", + "prettier": "^2.8.8" }, "engines": { "node": ">=10.x" @@ -2163,6 +2166,18 @@ "eslint-plugin-import": "^2.25.2" } }, + "node_modules/eslint-config-prettier": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", + "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, "node_modules/eslint-import-resolver-node": { "version": "0.3.7", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", @@ -2298,6 +2313,27 @@ "eslint": ">=5.16.0" } }, + "node_modules/eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, "node_modules/eslint-scope": { "version": "7.2.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.1.tgz", @@ -2568,6 +2604,12 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "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==", + "dev": true + }, "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", @@ -4563,6 +4605,33 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/pretty-format": { "version": "29.6.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", diff --git a/package.json b/package.json index 5f48d5d..e9cd055 100755 --- a/package.json +++ b/package.json @@ -1,61 +1,64 @@ { - "name": "@reportportal/agent-js-jest", - "version": "5.0.5", - "description": "A Jest reporter that uploads test results to ReportPortal", - "main": "index.js", - "repository": { - "type": "git", - "url": "git+https://github.com/reportportal/agent-js-jest.git" + "name": "@reportportal/agent-js-jest", + "version": "5.0.5", + "description": "A Jest reporter that uploads test results to ReportPortal", + "main": "index.js", + "repository": { + "type": "git", + "url": "git+https://github.com/reportportal/agent-js-jest.git" + }, + "scripts": { + "lint": "eslint . --quiet", + "format": "npm run lint -- --fix", + "test": "jest --detectOpenHandles --config ./jest.config.js", + "test:coverage": "jest --coverage" + }, + "author": "ReportPortal.io", + "license": "Apache-2.0", + "engines": { + "node": ">=10.x" + }, + "files": [ + "index.js", + "utils", + "constants" + ], + "dependencies": { + "@reportportal/client-javascript": "^5.0.12", + "strip-ansi": "^6.0.1" + }, + "devDependencies": { + "@types/jest": "^29.5.3", + "jest": "^29.6.1", + "eslint": "^8.45.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-plugin-import": "^2.27.5", + "eslint-plugin-node": "^11.1.0", + "eslint-config-prettier": "^8.8.0", + "eslint-plugin-prettier": "^4.2.1", + "prettier": "^2.8.8" + }, + "bugs": { + "url": "https://github.com/reportportal/agent-js-jest/issues" + }, + "homepage": "https://github.com/reportportal/agent-js-jest#readme", + "keywords": [ + "reportportal", + "jest", + "rp", + "reporter", + "epam" + ], + "contributors": [ + { + "name": "Uladzislau Akulich" }, - "scripts": { - "lint": "eslint . --quiet", - "format": "npm run lint -- --fix", - "test": "jest --detectOpenHandles --config ./jest.config.js", - "test:coverage": "jest --coverage" + { + "name": "Ringo De Smet" }, - "author": "ReportPortal.io", - "license": "Apache-2.0", - "engines": { - "node": ">=10.x" - }, - "files": [ - "index.js", - "utils", - "constants" - ], - "dependencies": { - "@reportportal/client-javascript": "^5.0.12", - "strip-ansi": "^6.0.1" - }, - "devDependencies": { - "@types/jest": "^29.5.3", - "jest": "^29.6.1", - "eslint": "^8.45.0", - "eslint-config-airbnb-base": "^15.0.0", - "eslint-plugin-import": "^2.27.5", - "eslint-plugin-node": "^11.1.0" - }, - "bugs": { - "url": "https://github.com/reportportal/agent-js-jest/issues" - }, - "homepage": "https://github.com/reportportal/agent-js-jest#readme", - "keywords": [ - "reportportal", - "jest", - "rp", - "reporter", - "epam" - ], - "contributors": [ - { - "name": "Uladzislau Akulich" - }, - { - "name": "Ringo De Smet" - }, - { - "name": "Ontoforce", - "email": "https://www.ontoforce.com" - } - ] + { + "name": "Ontoforce", + "email": "https://www.ontoforce.com" + } + ] } diff --git a/utils/getOptions.js b/utils/getOptions.js index 1fe59f9..3fdd5af 100755 --- a/utils/getOptions.js +++ b/utils/getOptions.js @@ -56,12 +56,13 @@ const getAppOptions = (pathToResolve) => { }; module.exports = { - options: (reporterOptions = {}) => Object.assign( - constants.DEFAULT_OPTIONS, - reporterOptions, - getAppOptions(process.cwd()), - getEnvOptions(), - ), + options: (reporterOptions = {}) => + Object.assign( + constants.DEFAULT_OPTIONS, + reporterOptions, + getAppOptions(process.cwd()), + getEnvOptions(), + ), getAppOptions, getEnvOptions, }; diff --git a/utils/objectUtils.js b/utils/objectUtils.js index 188e05d..8538f84 100644 --- a/utils/objectUtils.js +++ b/utils/objectUtils.js @@ -59,16 +59,17 @@ const getSuiteStartObject = (suiteName, codeRef, suiteDuration) => ({ }); const getAgentOptions = (options = {}) => { - const env_attributes = process.env.RP_ATTRIBUTES === undefined - ? undefined - : process.env.RP_ATTRIBUTES.split(',').map((item) => { - const itemArr = item.split(':'); - - return { - key: itemArr.length === 1 ? null : itemArr[0], - value: itemArr.length === 1 ? itemArr[0] : itemArr[1], - }; - }); + const env_attributes = + process.env.RP_ATTRIBUTES === undefined + ? undefined + : process.env.RP_ATTRIBUTES.split(',').map((item) => { + const itemArr = item.split(':'); + + return { + key: itemArr.length === 1 ? null : itemArr[0], + value: itemArr.length === 1 ? itemArr[0] : itemArr[1], + }; + }); let apiKey = process.env.RP_API_KEY || options.apiKey; if (!apiKey) { @@ -102,11 +103,13 @@ const getAgentInfo = () => ({ }); const getSystemAttributes = (skippedIssue) => { - const systemAttr = [{ - key: 'agent', - value: `${PJSON_NAME}|${PJSON_VERSION}`, - system: true, - }]; + const systemAttr = [ + { + key: 'agent', + value: `${PJSON_NAME}|${PJSON_VERSION}`, + system: true, + }, + ]; if (skippedIssue === false) { const skippedIssueAttribute = { From 3eaf291156735e56601470c10fd5ccf371b99394 Mon Sep 17 00:00:00 2001 From: Ilya Hancharyk Date: Mon, 17 Jul 2023 17:26:26 +0300 Subject: [PATCH 4/4] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d3ae29..734e63b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ### Changed - `token` configuration option was renamed to `apiKey` to maintain common convention. - `@reportportal/client-javascript` bumped to version `5.0.12`. +- Readme file updated. ## [5.0.5] - 2023-03-16 ### Added