From 2f178fc025f72556bee8f7c0cd0353d27571b480 Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Mon, 12 Sep 2022 14:14:40 +0530 Subject: [PATCH 1/4] chore: update jest to the latest version --- package-lock.json | 1612 ++++++++--------- package.json | 6 +- .../CssMinimizerPlugin.test.js.snap | 156 +- test/__snapshots__/cache-option.test.js.snap | 80 +- .../__snapshots__/exclude-option.test.js.snap | 24 +- .../__snapshots__/include-option.test.js.snap | 24 +- test/__snapshots__/minify-option.test.js.snap | 222 +-- .../parallel-option.test.js.snap | 48 +- .../sourceMap-option.test.js.snap | 70 +- test/__snapshots__/test-option.test.js.snap | 18 +- .../warningsFilter-option.test.js.snap | 6 +- test/__snapshots__/worker.test.js.snap | 48 +- 12 files changed, 1117 insertions(+), 1197 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1ff294d..def08a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "cssnano": "^5.1.8", - "jest-worker": "^27.5.1", + "jest-worker": "^29.0.3", "postcss": "^8.4.13", "schema-utils": "^4.0.0", "serialize-javascript": "^6.0.0", @@ -27,7 +27,7 @@ "@types/csso": "^5.0.0", "@types/serialize-javascript": "^5.0.2", "@webpack-contrib/eslint-config-webpack": "^3.0.0", - "babel-jest": "^28.1.0", + "babel-jest": "^29.0.3", "clean-css": "^5.3.0", "copy-webpack-plugin": "^9.1.0", "cross-env": "^7.0.3", @@ -41,7 +41,7 @@ "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "husky": "^8.0.1", - "jest": "^28.1.0", + "jest": "^29.0.3", "lightningcss": "^1.14.0", "lint-staged": "^12.4.1", "memfs": "^3.4.1", @@ -958,6 +958,21 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", + "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "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", @@ -2479,20 +2494,20 @@ } }, "node_modules/@jest/console": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz", - "integrity": "sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.0.3.tgz", + "integrity": "sha512-cGg0r+klVHSYnfE977S9wmpuQ9L+iYuYgL+5bPXiUlUynLLYunRxswEmhBzvrSKGof5AKiHuTTmUKAqRcDY9dg==", "dev": true, "dependencies": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/node": "*", "chalk": "^4.0.0", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", + "jest-message-util": "^29.0.3", + "jest-util": "^29.0.3", "slash": "^3.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/console/node_modules/ansi-styles": { @@ -2575,43 +2590,42 @@ } }, "node_modules/@jest/core": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-28.1.3.tgz", - "integrity": "sha512-CIKBrlaKOzA7YG19BEqCw3SLIsEwjZkeJzf5bdooVnW4bH5cktqe3JX+G2YV1aK5vP8N9na1IGWFzYaTp6k6NA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.0.3.tgz", + "integrity": "sha512-1d0hLbOrM1qQE3eP3DtakeMbKTcXiXP3afWxqz103xPyddS2NhnNghS7MaXx1dcDt4/6p4nlhmeILo2ofgi8cQ==", "dev": true, "dependencies": { - "@jest/console": "^28.1.3", - "@jest/reporters": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/console": "^29.0.3", + "@jest/reporters": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", "ci-info": "^3.2.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", - "jest-changed-files": "^28.1.3", - "jest-config": "^28.1.3", - "jest-haste-map": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-regex-util": "^28.0.2", - "jest-resolve": "^28.1.3", - "jest-resolve-dependencies": "^28.1.3", - "jest-runner": "^28.1.3", - "jest-runtime": "^28.1.3", - "jest-snapshot": "^28.1.3", - "jest-util": "^28.1.3", - "jest-validate": "^28.1.3", - "jest-watcher": "^28.1.3", + "jest-changed-files": "^29.0.0", + "jest-config": "^29.0.3", + "jest-haste-map": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.3", + "jest-resolve-dependencies": "^29.0.3", + "jest-runner": "^29.0.3", + "jest-runtime": "^29.0.3", + "jest-snapshot": "^29.0.3", + "jest-util": "^29.0.3", + "jest-validate": "^29.0.3", + "jest-watcher": "^29.0.3", "micromatch": "^4.0.4", - "pretty-format": "^28.1.3", - "rimraf": "^3.0.0", + "pretty-format": "^29.0.3", "slash": "^3.0.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -2702,88 +2716,89 @@ } }, "node_modules/@jest/environment": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-28.1.3.tgz", - "integrity": "sha512-1bf40cMFTEkKyEf585R9Iz1WayDjHoHqvts0XFYEqyKM3cFWDpeMoqKKTAF9LSYQModPUlh8FKptoM2YcMWAXA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.0.3.tgz", + "integrity": "sha512-iKl272NKxYNQNqXMQandAIwjhQaGw5uJfGXduu8dS9llHi8jV2ChWrtOAVPnMbaaoDhnI3wgUGNDvZgHeEJQCA==", "dev": true, "dependencies": { - "@jest/fake-timers": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/fake-timers": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", - "jest-mock": "^28.1.3" + "jest-mock": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/expect": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-28.1.3.tgz", - "integrity": "sha512-lzc8CpUbSoE4dqT0U+g1qODQjBRHPpCPXissXD4mS9+sWQdmmpeJ9zSH1rS1HEkrsMN0fb7nKrJ9giAR1d3wBw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.0.3.tgz", + "integrity": "sha512-6W7K+fsI23FQ01H/BWccPyDZFrnU9QlzDcKOjrNVU5L8yUORFAJJIpmyxWPW70+X624KUNqzZwPThPMX28aXEQ==", "dev": true, "dependencies": { - "expect": "^28.1.3", - "jest-snapshot": "^28.1.3" + "expect": "^29.0.3", + "jest-snapshot": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/expect-utils": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-28.1.3.tgz", - "integrity": "sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.0.3.tgz", + "integrity": "sha512-i1xUkau7K/63MpdwiRqaxgZOjxYs4f0WMTGJnYwUKubsNRZSeQbLorS7+I4uXVF9KQ5r61BUPAUMZ7Lf66l64Q==", "dev": true, "dependencies": { - "jest-get-type": "^28.0.2" + "jest-get-type": "^29.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/fake-timers": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-28.1.3.tgz", - "integrity": "sha512-D/wOkL2POHv52h+ok5Oj/1gOG9HSywdoPtFsRCUmlCILXNn5eIWmcnd3DIiWlJnpGvQtmajqBP95Ei0EimxfLw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.0.3.tgz", + "integrity": "sha512-tmbUIo03x0TdtcZCESQ0oQSakPCpo7+s6+9mU19dd71MptkP4zCwoeZqna23//pgbhtT1Wq02VmA9Z9cNtvtCQ==", "dev": true, "dependencies": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@sinonjs/fake-timers": "^9.1.2", "@types/node": "*", - "jest-message-util": "^28.1.3", - "jest-mock": "^28.1.3", - "jest-util": "^28.1.3" + "jest-message-util": "^29.0.3", + "jest-mock": "^29.0.3", + "jest-util": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/globals": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-28.1.3.tgz", - "integrity": "sha512-XFU4P4phyryCXu1pbcqMO0GSQcYe1IsalYCDzRNyhetyeyxMcIxa11qPNDpVNLeretItNqEmYYQn1UYz/5x1NA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.0.3.tgz", + "integrity": "sha512-YqGHT65rFY2siPIHHFjuCGUsbzRjdqkwbat+Of6DmYRg5shIXXrLdZoVE/+TJ9O1dsKsFmYhU58JvIbZRU1Z9w==", "dev": true, "dependencies": { - "@jest/environment": "^28.1.3", - "@jest/expect": "^28.1.3", - "@jest/types": "^28.1.3" + "@jest/environment": "^29.0.3", + "@jest/expect": "^29.0.3", + "@jest/types": "^29.0.3", + "jest-mock": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/reporters": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-28.1.3.tgz", - "integrity": "sha512-JuAy7wkxQZVNU/V6g9xKzCGC5LVXx9FDcABKsSXp5MiKPEE2144a/vXTEDoyzjUpZKfVwp08Wqg5A4WfTMAzjg==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.0.3.tgz", + "integrity": "sha512-3+QU3d4aiyOWfmk1obDerie4XNCaD5Xo1IlKNde2yGEi02WQD+ZQD0i5Hgqm1e73sMV7kw6pMlCnprtEwEVwxw==", "dev": true, "dependencies": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", - "@jridgewell/trace-mapping": "^0.3.13", + "@jest/console": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", + "@jridgewell/trace-mapping": "^0.3.15", "@types/node": "*", "chalk": "^4.0.0", "collect-v8-coverage": "^1.0.0", @@ -2795,9 +2810,9 @@ "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", - "jest-worker": "^28.1.3", + "jest-message-util": "^29.0.3", + "jest-util": "^29.0.3", + "jest-worker": "^29.0.3", "slash": "^3.0.0", "string-length": "^4.0.1", "strip-ansi": "^6.0.0", @@ -2805,7 +2820,7 @@ "v8-to-istanbul": "^9.0.1" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -2874,35 +2889,6 @@ "node": ">=8" } }, - "node_modules/@jest/reporters/node_modules/jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/@jest/reporters/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" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, "node_modules/@jest/reporters/node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -2925,59 +2911,59 @@ } }, "node_modules/@jest/schemas": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz", - "integrity": "sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz", + "integrity": "sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==", "dev": true, "dependencies": { "@sinclair/typebox": "^0.24.1" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/source-map": { - "version": "28.1.2", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-28.1.2.tgz", - "integrity": "sha512-cV8Lx3BeStJb8ipPHnqVw/IM2VCMWO3crWZzYodSIkxXnRcXJipCdx1JCK0K5MsJJouZQTH73mzf4vgxRaH9ww==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.0.0.tgz", + "integrity": "sha512-nOr+0EM8GiHf34mq2GcJyz/gYFyLQ2INDhAylrZJ9mMWoW21mLBfZa0BUVPPMxVYrLjeiRe2Z7kWXOGnS0TFhQ==", "dev": true, "dependencies": { - "@jridgewell/trace-mapping": "^0.3.13", + "@jridgewell/trace-mapping": "^0.3.15", "callsites": "^3.0.0", "graceful-fs": "^4.2.9" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-result": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz", - "integrity": "sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.0.3.tgz", + "integrity": "sha512-vViVnQjCgTmbhDKEonKJPtcFe9G/CJO4/Np4XwYJah+lF2oI7KKeRp8t1dFvv44wN2NdbDb/qC6pi++Vpp0Dlg==", "dev": true, "dependencies": { - "@jest/console": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/console": "^29.0.3", + "@jest/types": "^29.0.3", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-sequencer": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-28.1.3.tgz", - "integrity": "sha512-NIMPEqqa59MWnDi1kvXXpYbqsfQmSJsIbnd85mdVGkiDfQ9WQQTXOLsvISUfonmnBT+w85WEgneCigEEdHDFxw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.0.3.tgz", + "integrity": "sha512-Hf4+xYSWZdxTNnhDykr8JBs0yBN/nxOXyUQWfotBUqqy0LF9vzcFB0jm/EDNZCx587znLWTIgxcokW7WeZMobQ==", "dev": true, "dependencies": { - "@jest/test-result": "^28.1.3", + "@jest/test-result": "^29.0.3", "graceful-fs": "^4.2.9", - "jest-haste-map": "^28.1.3", + "jest-haste-map": "^29.0.3", "slash": "^3.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-sequencer/node_modules/slash": { @@ -2990,29 +2976,29 @@ } }, "node_modules/@jest/transform": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-28.1.3.tgz", - "integrity": "sha512-u5dT5di+oFI6hfcLOHGTAfmUxFRrjK+vnaP0kkVow9Md/M7V/MxqQMOz/VV25UZO8pzeA9PjfTpOu6BDuwSPQA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.3.tgz", + "integrity": "sha512-C5ihFTRYaGDbi/xbRQRdbo5ddGtI4VSpmL6AIcZxdhwLbXMa7PcXxxqyI91vGOFHnn5aVM3WYnYKCHEqmLVGzg==", "dev": true, "dependencies": { "@babel/core": "^7.11.6", - "@jest/types": "^28.1.3", - "@jridgewell/trace-mapping": "^0.3.13", + "@jest/types": "^29.0.3", + "@jridgewell/trace-mapping": "^0.3.15", "babel-plugin-istanbul": "^6.1.1", "chalk": "^4.0.0", "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^28.1.3", - "jest-regex-util": "^28.0.2", - "jest-util": "^28.1.3", + "jest-haste-map": "^29.0.3", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.3", "micromatch": "^4.0.4", "pirates": "^4.0.4", "slash": "^3.0.0", "write-file-atomic": "^4.0.1" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/transform/node_modules/ansi-styles": { @@ -3095,12 +3081,12 @@ } }, "node_modules/@jest/types": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz", - "integrity": "sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.0.3.tgz", + "integrity": "sha512-coBJmOQvurXjN1Hh5PzF7cmsod0zLIOXpP8KD161mqNlroMhLcwpODiEzi7ZsRl5Z/AIuxpeNm8DCl43F4kz8A==", "dev": true, "dependencies": { - "@jest/schemas": "^28.1.3", + "@jest/schemas": "^29.0.0", "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", @@ -3108,7 +3094,7 @@ "chalk": "^4.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/types/node_modules/ansi-styles": { @@ -3311,9 +3297,9 @@ } }, "node_modules/@sinclair/typebox": { - "version": "0.24.39", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.39.tgz", - "integrity": "sha512-GqtkxoAjhTzoMwFg/JYRl+1+miOoyvp6mkLpbMSd2fIQak2KvY00ndlXxxkDBpuCPYkorZeEZf0LEQn9V9NRVQ==", + "version": "0.24.40", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.40.tgz", + "integrity": "sha512-Xint60L8rF0+nRy+6fCjW9jQMmu7fTpbwTBrXZiK6eq/RHDJS7LvWX/0oXC8O7fCePmrY/XdfaTv2HiUDeCq4g==", "dev": true }, "node_modules/@sinonjs/commons": { @@ -3963,21 +3949,21 @@ } }, "node_modules/babel-jest": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-28.1.3.tgz", - "integrity": "sha512-epUaPOEWMk3cWX0M/sPvCHHCe9fMFAa/9hXEgKP8nFfNl/jlGkE9ucq9NqkZGXLDduCJYS0UvSlPUwC0S+rH6Q==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.0.3.tgz", + "integrity": "sha512-ApPyHSOhS/sVzwUOQIWJmdvDhBsMG01HX9z7ogtkp1TToHGGUWFlnXJUIzCgKPSfiYLn3ibipCYzsKSURHEwLg==", "dev": true, "dependencies": { - "@jest/transform": "^28.1.3", + "@jest/transform": "^29.0.3", "@types/babel__core": "^7.1.14", "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^28.1.3", + "babel-preset-jest": "^29.0.2", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "slash": "^3.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.8.0" @@ -4088,9 +4074,9 @@ } }, "node_modules/babel-plugin-jest-hoist": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-28.1.3.tgz", - "integrity": "sha512-Ys3tUKAmfnkRUpPdpa98eYrAR0nV+sSFUZZEGuQ2EbFd1y4SOLtD5QDNHAq+bb9a+bbXvYQC4b+ID/THIMcU6Q==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.0.2.tgz", + "integrity": "sha512-eBr2ynAEFjcebVvu8Ktx580BD1QKCrBG1XwEUTXJe285p9HA/4hOhfWCFRQhTKSyBV0VzjhG7H91Eifz9s29hg==", "dev": true, "dependencies": { "@babel/template": "^7.3.3", @@ -4099,7 +4085,7 @@ "@types/babel__traverse": "^7.0.6" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/babel-plugin-polyfill-corejs2": { @@ -4165,16 +4151,16 @@ } }, "node_modules/babel-preset-jest": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-28.1.3.tgz", - "integrity": "sha512-L+fupJvlWAHbQfn74coNX3zf60LXMJsezNvvx8eIh7iOR1luJ1poxYgQk1F8PYtNq/6QODDHCqsSnTFSWC491A==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.0.2.tgz", + "integrity": "sha512-BeVXp7rH5TK96ofyEnHjznjLMQ2nAeDJ+QzxKnHAAMs0RgrQsCywjAN8m4mOm5Di0pxU//3AoEeJJrerMH5UeA==", "dev": true, "dependencies": { - "babel-plugin-jest-hoist": "^28.1.3", + "babel-plugin-jest-hoist": "^29.0.2", "babel-preset-current-node-syntax": "^1.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.0.0" @@ -5821,12 +5807,12 @@ } }, "node_modules/diff-sequences": { - "version": "28.1.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-28.1.1.tgz", - "integrity": "sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", + "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", "dev": true, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/dir-glob": { @@ -6982,19 +6968,19 @@ } }, "node_modules/expect": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/expect/-/expect-28.1.3.tgz", - "integrity": "sha512-eEh0xn8HlsuOBxFgIss+2mX85VAS4Qy3OSkjV7rlBWljtA4oWH37glVGyOZSZvErDT/yBywZdPGwCXuTvSG85g==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.0.3.tgz", + "integrity": "sha512-t8l5DTws3212VbmPL+tBFXhjRHLmctHB0oQbL8eUc6S7NzZtYUhycrFO9mkxA0ZUC6FAWdNi7JchJSkODtcu1Q==", "dev": true, "dependencies": { - "@jest/expect-utils": "^28.1.3", - "jest-get-type": "^28.0.2", - "jest-matcher-utils": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3" + "@jest/expect-utils": "^29.0.3", + "jest-get-type": "^29.0.0", + "jest-matcher-utils": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-util": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/fast-deep-equal": { @@ -8215,21 +8201,21 @@ } }, "node_modules/jest": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest/-/jest-28.1.3.tgz", - "integrity": "sha512-N4GT5on8UkZgH0O5LUavMRV1EDEhNTL0KEfRmDIeZHSV7p2XgLoY9t9VDUgL6o+yfdgYHVxuz81G8oB9VG5uyA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.0.3.tgz", + "integrity": "sha512-ElgUtJBLgXM1E8L6K1RW1T96R897YY/3lRYqq9uVcPWtP2AAl/nQ16IYDh/FzQOOQ12VEuLdcPU83mbhG2C3PQ==", "dev": true, "dependencies": { - "@jest/core": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/core": "^29.0.3", + "@jest/types": "^29.0.3", "import-local": "^3.0.2", - "jest-cli": "^28.1.3" + "jest-cli": "^29.0.3" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -8241,46 +8227,46 @@ } }, "node_modules/jest-changed-files": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-28.1.3.tgz", - "integrity": "sha512-esaOfUWJXk2nfZt9SPyC8gA1kNfdKLkQWyzsMlqq8msYSlNKfmZxfRgZn4Cd4MGVUF+7v6dBs0d5TOAKa7iIiA==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.0.0.tgz", + "integrity": "sha512-28/iDMDrUpGoCitTURuDqUzWQoWmOmOKOFST1mi2lwh62X4BFf6khgH3uSuo1e49X/UDjuApAj3w0wLOex4VPQ==", "dev": true, "dependencies": { "execa": "^5.0.0", "p-limit": "^3.1.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-28.1.3.tgz", - "integrity": "sha512-cZ+eS5zc79MBwt+IhQhiEp0OeBddpc1n8MBo1nMB8A7oPMKEO+Sre+wHaLJexQUj9Ya/8NOBY0RESUgYjB6fow==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.0.3.tgz", + "integrity": "sha512-QeGzagC6Hw5pP+df1+aoF8+FBSgkPmraC1UdkeunWh0jmrp7wC0Hr6umdUAOELBQmxtKAOMNC3KAdjmCds92Zg==", "dev": true, "dependencies": { - "@jest/environment": "^28.1.3", - "@jest/expect": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/environment": "^29.0.3", + "@jest/expect": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", "dedent": "^0.7.0", "is-generator-fn": "^2.0.0", - "jest-each": "^28.1.3", - "jest-matcher-utils": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-runtime": "^28.1.3", - "jest-snapshot": "^28.1.3", - "jest-util": "^28.1.3", + "jest-each": "^29.0.3", + "jest-matcher-utils": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-runtime": "^29.0.3", + "jest-snapshot": "^29.0.3", + "jest-util": "^29.0.3", "p-limit": "^3.1.0", - "pretty-format": "^28.1.3", + "pretty-format": "^29.0.3", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus/node_modules/ansi-styles": { @@ -8363,21 +8349,21 @@ } }, "node_modules/jest-cli": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-28.1.3.tgz", - "integrity": "sha512-roY3kvrv57Azn1yPgdTebPAXvdR2xfezaKKYzVxZ6It/5NCxzJym6tUI5P1zkdWhfUYkxEI9uZWcQdaFLo8mJQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.0.3.tgz", + "integrity": "sha512-aUy9Gd/Kut1z80eBzG10jAn6BgS3BoBbXyv+uXEqBJ8wnnuZ5RpNfARoskSrTIy1GY4a8f32YGuCMwibtkl9CQ==", "dev": true, "dependencies": { - "@jest/core": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/core": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/types": "^29.0.3", "chalk": "^4.0.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", "import-local": "^3.0.2", - "jest-config": "^28.1.3", - "jest-util": "^28.1.3", - "jest-validate": "^28.1.3", + "jest-config": "^29.0.3", + "jest-util": "^29.0.3", + "jest-validate": "^29.0.3", "prompts": "^2.0.1", "yargs": "^17.3.1" }, @@ -8385,7 +8371,7 @@ "jest": "bin/jest.js" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -8467,36 +8453,36 @@ } }, "node_modules/jest-config": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-28.1.3.tgz", - "integrity": "sha512-MG3INjByJ0J4AsNBm7T3hsuxKQqFIiRo/AUqb1q9LRKI5UU6Aar9JHbr9Ivn1TVwfUD9KirRoM/T6u8XlcQPHQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.0.3.tgz", + "integrity": "sha512-U5qkc82HHVYe3fNu2CRXLN4g761Na26rWKf7CjM8LlZB3In1jadEkZdMwsE37rd9RSPV0NfYaCjHdk/gu3v+Ew==", "dev": true, "dependencies": { "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^28.1.3", - "@jest/types": "^28.1.3", - "babel-jest": "^28.1.3", + "@jest/test-sequencer": "^29.0.3", + "@jest/types": "^29.0.3", + "babel-jest": "^29.0.3", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-circus": "^28.1.3", - "jest-environment-node": "^28.1.3", - "jest-get-type": "^28.0.2", - "jest-regex-util": "^28.0.2", - "jest-resolve": "^28.1.3", - "jest-runner": "^28.1.3", - "jest-util": "^28.1.3", - "jest-validate": "^28.1.3", + "jest-circus": "^29.0.3", + "jest-environment-node": "^29.0.3", + "jest-get-type": "^29.0.0", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.3", + "jest-runner": "^29.0.3", + "jest-util": "^29.0.3", + "jest-validate": "^29.0.3", "micromatch": "^4.0.4", "parse-json": "^5.2.0", - "pretty-format": "^28.1.3", + "pretty-format": "^29.0.3", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@types/node": "*", @@ -8591,18 +8577,18 @@ } }, "node_modules/jest-diff": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-28.1.3.tgz", - "integrity": "sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.3.tgz", + "integrity": "sha512-+X/AIF5G/vX9fWK+Db9bi9BQas7M9oBME7egU7psbn4jlszLFCu0dW63UgeE6cs/GANq4fLaT+8sGHQQ0eCUfg==", "dev": true, "dependencies": { "chalk": "^4.0.0", - "diff-sequences": "^28.1.1", - "jest-get-type": "^28.0.2", - "pretty-format": "^28.1.3" + "diff-sequences": "^29.0.0", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-diff/node_modules/ansi-styles": { @@ -8676,31 +8662,31 @@ } }, "node_modules/jest-docblock": { - "version": "28.1.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-28.1.1.tgz", - "integrity": "sha512-3wayBVNiOYx0cwAbl9rwm5kKFP8yHH3d/fkEaL02NPTkDojPtheGB7HZSFY4wzX+DxyrvhXz0KSCVksmCknCuA==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.0.0.tgz", + "integrity": "sha512-s5Kpra/kLzbqu9dEjov30kj1n4tfu3e7Pl8v+f8jOkeWNqM6Ds8jRaJfZow3ducoQUrf2Z4rs2N5S3zXnb83gw==", "dev": true, "dependencies": { "detect-newline": "^3.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-28.1.3.tgz", - "integrity": "sha512-arT1z4sg2yABU5uogObVPvSlSMQlDA48owx07BDPAiasW0yYpYHYOo4HHLz9q0BVzDVU4hILFjzJw0So9aCL/g==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.0.3.tgz", + "integrity": "sha512-wILhZfESURHHBNvPMJ0lZlYZrvOQJxAo3wNHi+ycr90V7M+uGR9Gh4+4a/BmaZF0XTyZsk4OiYEf3GJN7Ltqzg==", "dev": true, "dependencies": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "chalk": "^4.0.0", - "jest-get-type": "^28.0.2", - "jest-util": "^28.1.3", - "pretty-format": "^28.1.3" + "jest-get-type": "^29.0.0", + "jest-util": "^29.0.3", + "pretty-format": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each/node_modules/ansi-styles": { @@ -8774,120 +8760,82 @@ } }, "node_modules/jest-environment-node": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-28.1.3.tgz", - "integrity": "sha512-ugP6XOhEpjAEhGYvp5Xj989ns5cB1K6ZdjBYuS30umT4CQEETaxSiPcZ/E1kFktX4GkrcM4qu07IIlDYX1gp+A==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.0.3.tgz", + "integrity": "sha512-cdZqRCnmIlTXC+9vtvmfiY/40Cj6s2T0czXuq1whvQdmpzAnj4sbqVYuZ4zFHk766xTTJ+Ij3uUqkk8KCfXoyg==", "dev": true, "dependencies": { - "@jest/environment": "^28.1.3", - "@jest/fake-timers": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/environment": "^29.0.3", + "@jest/fake-timers": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", - "jest-mock": "^28.1.3", - "jest-util": "^28.1.3" + "jest-mock": "^29.0.3", + "jest-util": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-get-type": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-28.0.2.tgz", - "integrity": "sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-haste-map": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-28.1.3.tgz", - "integrity": "sha512-3S+RQWDXccXDKSWnkHa/dPwt+2qwA8CJzR61w3FoYCvoo3Pn8tvGcysmMF0Bj0EX5RYvAI2EIvC57OmotfdtKA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.3.tgz", + "integrity": "sha512-uMqR99+GuBHo0RjRhOE4iA6LmsxEwRdgiIAQgMU/wdT2XebsLDz5obIwLZm/Psj+GwSEQhw9AfAVKGYbh2G55A==", "dev": true, "dependencies": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@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": "^28.0.2", - "jest-util": "^28.1.3", - "jest-worker": "^28.1.3", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.3", + "jest-worker": "^29.0.3", "micromatch": "^4.0.4", "walker": "^1.0.8" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "optionalDependencies": { "fsevents": "^2.3.2" } }, - "node_modules/jest-haste-map/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-haste-map/node_modules/jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-haste-map/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" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, "node_modules/jest-leak-detector": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-28.1.3.tgz", - "integrity": "sha512-WFVJhnQsiKtDEo5lG2mM0v40QWnBM+zMdHHyJs8AWZ7J0QZJS59MsyKeJHWhpBZBH32S48FOVvGyOFT1h0DlqA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.0.3.tgz", + "integrity": "sha512-YfW/G63dAuiuQ3QmQlh8hnqLDe25WFY3eQhuc/Ev1AGmkw5zREblTh7TCSKLoheyggu6G9gxO2hY8p9o6xbaRQ==", "dev": true, "dependencies": { - "jest-get-type": "^28.0.2", - "pretty-format": "^28.1.3" + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-matcher-utils": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-28.1.3.tgz", - "integrity": "sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.3.tgz", + "integrity": "sha512-RsR1+cZ6p1hDV4GSCQTg+9qjeotQCgkaleIKLK7dm+U4V/H2bWedU3RAtLm8+mANzZ7eDV33dMar4pejd7047w==", "dev": true, "dependencies": { "chalk": "^4.0.0", - "jest-diff": "^28.1.3", - "jest-get-type": "^28.0.2", - "pretty-format": "^28.1.3" + "jest-diff": "^29.0.3", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-matcher-utils/node_modules/ansi-styles": { @@ -8961,23 +8909,23 @@ } }, "node_modules/jest-message-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz", - "integrity": "sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.0.3.tgz", + "integrity": "sha512-7T8JiUTtDfppojosORAflABfLsLKMLkBHSWkjNQrjIltGoDzNGn7wEPOSfjqYAGTYME65esQzMJxGDjuLBKdOg==", "dev": true, "dependencies": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^28.1.3", + "pretty-format": "^29.0.3", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-message-util/node_modules/ansi-styles": { @@ -9060,16 +9008,16 @@ } }, "node_modules/jest-mock": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-28.1.3.tgz", - "integrity": "sha512-o3J2jr6dMMWYVH4Lh/NKmDXdosrsJgi4AviS8oXLujcjpCMBb1FMsblDnOXKZKfSiHLxYub1eS0IHuRXsio9eA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.0.3.tgz", + "integrity": "sha512-ort9pYowltbcrCVR43wdlqfAiFJXBx8l4uJDsD8U72LgBcetvEp+Qxj1W9ZYgMRoeAo+ov5cnAGF2B6+Oth+ww==", "dev": true, "dependencies": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/node": "*" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-pnp-resolver": { @@ -9090,45 +9038,45 @@ } }, "node_modules/jest-regex-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", - "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-28.1.3.tgz", - "integrity": "sha512-Z1W3tTjE6QaNI90qo/BJpfnvpxtaFTFw5CDgwpyE/Kz8U/06N1Hjf4ia9quUhCh39qIGWF1ZuxFiBiJQwSEYKQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.0.3.tgz", + "integrity": "sha512-toVkia85Y/BPAjJasTC9zIPY6MmVXQPtrCk8SmiheC4MwVFE/CMFlOtMN6jrwPMC6TtNh8+sTMllasFeu1wMPg==", "dev": true, "dependencies": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^28.1.3", + "jest-haste-map": "^29.0.3", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^28.1.3", - "jest-validate": "^28.1.3", + "jest-util": "^29.0.3", + "jest-validate": "^29.0.3", "resolve": "^1.20.0", "resolve.exports": "^1.1.0", "slash": "^3.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve-dependencies": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-28.1.3.tgz", - "integrity": "sha512-qa0QO2Q0XzQoNPouMbCc7Bvtsem8eQgVPNkwn9LnS+R2n8DaVDPL/U1gngC0LTl1RYXJU0uJa2BMC2DbTfFrHA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.0.3.tgz", + "integrity": "sha512-KzuBnXqNvbuCdoJpv8EanbIGObk7vUBNt/PwQPPx2aMhlv/jaXpUJsqWYRpP/0a50faMBY7WFFP8S3/CCzwfDw==", "dev": true, "dependencies": { - "jest-regex-util": "^28.0.2", - "jest-snapshot": "^28.1.3" + "jest-regex-util": "^29.0.0", + "jest-snapshot": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve/node_modules/ansi-styles": { @@ -9211,35 +9159,35 @@ } }, "node_modules/jest-runner": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-28.1.3.tgz", - "integrity": "sha512-GkMw4D/0USd62OVO0oEgjn23TM+YJa2U2Wu5zz9xsQB1MxWKDOlrnykPxnMsN0tnJllfLPinHTka61u0QhaxBA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.0.3.tgz", + "integrity": "sha512-Usu6VlTOZlCZoNuh3b2Tv/yzDpKqtiNAetG9t3kJuHfUyVMNW7ipCCJOUojzKkjPoaN7Bl1f7Buu6PE0sGpQxw==", "dev": true, "dependencies": { - "@jest/console": "^28.1.3", - "@jest/environment": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/console": "^29.0.3", + "@jest/environment": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", "chalk": "^4.0.0", "emittery": "^0.10.2", "graceful-fs": "^4.2.9", - "jest-docblock": "^28.1.1", - "jest-environment-node": "^28.1.3", - "jest-haste-map": "^28.1.3", - "jest-leak-detector": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-resolve": "^28.1.3", - "jest-runtime": "^28.1.3", - "jest-util": "^28.1.3", - "jest-watcher": "^28.1.3", - "jest-worker": "^28.1.3", + "jest-docblock": "^29.0.0", + "jest-environment-node": "^29.0.3", + "jest-haste-map": "^29.0.3", + "jest-leak-detector": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-resolve": "^29.0.3", + "jest-runtime": "^29.0.3", + "jest-util": "^29.0.3", + "jest-watcher": "^29.0.3", + "jest-worker": "^29.0.3", "p-limit": "^3.1.0", "source-map-support": "0.5.13" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runner/node_modules/ansi-styles": { @@ -9300,35 +9248,6 @@ "node": ">=8" } }, - "node_modules/jest-runner/node_modules/jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" - } - }, - "node_modules/jest-runner/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" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, "node_modules/jest-runner/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -9342,36 +9261,36 @@ } }, "node_modules/jest-runtime": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-28.1.3.tgz", - "integrity": "sha512-NU+881ScBQQLc1JHG5eJGU7Ui3kLKrmwCPPtYsJtBykixrM2OhVQlpMmFWJjMyDfdkGgBMNjXCGB/ebzsgNGQw==", - "dev": true, - "dependencies": { - "@jest/environment": "^28.1.3", - "@jest/fake-timers": "^28.1.3", - "@jest/globals": "^28.1.3", - "@jest/source-map": "^28.1.2", - "@jest/test-result": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.0.3.tgz", + "integrity": "sha512-12gZXRQ7ozEeEHKTY45a+YLqzNDR/x4c//X6AqwKwKJPpWM8FY4vwn4VQJOcLRS3Nd1fWwgP7LU4SoynhuUMHQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.0.3", + "@jest/fake-timers": "^29.0.3", + "@jest/globals": "^29.0.3", + "@jest/source-map": "^29.0.0", + "@jest/test-result": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", + "@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": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-mock": "^28.1.3", - "jest-regex-util": "^28.0.2", - "jest-resolve": "^28.1.3", - "jest-snapshot": "^28.1.3", - "jest-util": "^28.1.3", + "jest-haste-map": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-mock": "^29.0.3", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.3", + "jest-snapshot": "^29.0.3", + "jest-util": "^29.0.3", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runtime/node_modules/ansi-styles": { @@ -9454,37 +9373,38 @@ } }, "node_modules/jest-snapshot": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-28.1.3.tgz", - "integrity": "sha512-4lzMgtiNlc3DU/8lZfmqxN3AYD6GGLbl+72rdBpXvcV+whX7mDrREzkPdp2RnmfIiWBg1YbuFSkXduF2JcafJg==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.0.3.tgz", + "integrity": "sha512-52q6JChm04U3deq+mkQ7R/7uy7YyfVIrebMi6ZkBoDJ85yEjm/sJwdr1P0LOIEHmpyLlXrxy3QP0Zf5J2kj0ew==", "dev": true, "dependencies": { "@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.3.3", - "@jest/expect-utils": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/expect-utils": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", "@types/babel__traverse": "^7.0.6", "@types/prettier": "^2.1.5", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^28.1.3", + "expect": "^29.0.3", "graceful-fs": "^4.2.9", - "jest-diff": "^28.1.3", - "jest-get-type": "^28.0.2", - "jest-haste-map": "^28.1.3", - "jest-matcher-utils": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", + "jest-diff": "^29.0.3", + "jest-get-type": "^29.0.0", + "jest-haste-map": "^29.0.3", + "jest-matcher-utils": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-util": "^29.0.3", "natural-compare": "^1.4.0", - "pretty-format": "^28.1.3", + "pretty-format": "^29.0.3", "semver": "^7.3.5" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot/node_modules/ansi-styles": { @@ -9573,12 +9493,12 @@ } }, "node_modules/jest-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", - "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.3.tgz", + "integrity": "sha512-Q0xaG3YRG8QiTC4R6fHjHQPaPpz9pJBEi0AeOE4mQh/FuWOijFjGXMMOfQEaU9i3z76cNR7FobZZUQnL6IyfdQ==", "dev": true, "dependencies": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", @@ -9586,7 +9506,7 @@ "picomatch": "^2.2.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-util/node_modules/ansi-styles": { @@ -9660,20 +9580,20 @@ } }, "node_modules/jest-validate": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-28.1.3.tgz", - "integrity": "sha512-SZbOGBWEsaTxBGCOpsRWlXlvNkvTkY0XxRfh7zYmvd8uL5Qzyg0CHAXiXKROflh801quA6+/DsT4ODDthOC/OA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.0.3.tgz", + "integrity": "sha512-OebiqqT6lK8cbMPtrSoS3aZP4juID762lZvpf1u+smZnwTEBCBInan0GAIIhv36MxGaJvmq5uJm7dl5gVt+Zrw==", "dev": true, "dependencies": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^28.0.2", + "jest-get-type": "^29.0.0", "leven": "^3.1.0", - "pretty-format": "^28.1.3" + "pretty-format": "^29.0.3" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate/node_modules/ansi-styles": { @@ -9759,22 +9679,22 @@ } }, "node_modules/jest-watcher": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz", - "integrity": "sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.0.3.tgz", + "integrity": "sha512-tQX9lU91A+9tyUQKUMp0Ns8xAcdhC9fo73eqA3LFxP2bSgiF49TNcc+vf3qgGYYK9qRjFpXW9+4RgF/mbxyOOw==", "dev": true, "dependencies": { - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/test-result": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", "emittery": "^0.10.2", - "jest-util": "^28.1.3", + "jest-util": "^29.0.3", "string-length": "^4.0.1" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-watcher/node_modules/ansi-styles": { @@ -9848,16 +9768,16 @@ } }, "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.0.3", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.3.tgz", + "integrity": "sha512-Tl/YWUugQOjoTYwjKdfJWkSOfhufJHO5LhXTSZC3TRoQKO+fuXnZAdoXXBlpLXKGODBL3OvdUasfDD4PcMe6ng==", "dependencies": { "@types/node": "*", "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/has-flag": { @@ -11942,18 +11862,17 @@ } }, "node_modules/pretty-format": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", - "integrity": "sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.3.tgz", + "integrity": "sha512-cHudsvQr1K5vNVLbvYF/nv3Qy/F/BcEKxGuIeMiVMRHxPOO1RxXooP8g/ZrwAp7Dx+KdMZoOc7NxLHhMrP2f9Q==", "dev": true, "dependencies": { - "@jest/schemas": "^28.1.3", - "ansi-regex": "^5.0.1", + "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", "react-is": "^18.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/pretty-format/node_modules/ansi-styles": { @@ -13384,6 +13303,29 @@ "ajv": "^6.9.1" } }, + "node_modules/terser-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/terser-webpack-plugin/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==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, "node_modules/terser-webpack-plugin/node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -13408,6 +13350,21 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/terser-webpack-plugin/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" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/terser/node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -14808,6 +14765,15 @@ "@babel/helper-plugin-utils": "^7.8.0" } }, + "@babel/plugin-syntax-jsx": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", + "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, "@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", @@ -15896,16 +15862,16 @@ "dev": true }, "@jest/console": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-28.1.3.tgz", - "integrity": "sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.0.3.tgz", + "integrity": "sha512-cGg0r+klVHSYnfE977S9wmpuQ9L+iYuYgL+5bPXiUlUynLLYunRxswEmhBzvrSKGof5AKiHuTTmUKAqRcDY9dg==", "dev": true, "requires": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/node": "*", "chalk": "^4.0.0", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", + "jest-message-util": "^29.0.3", + "jest-util": "^29.0.3", "slash": "^3.0.0" }, "dependencies": { @@ -15967,38 +15933,37 @@ } }, "@jest/core": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-28.1.3.tgz", - "integrity": "sha512-CIKBrlaKOzA7YG19BEqCw3SLIsEwjZkeJzf5bdooVnW4bH5cktqe3JX+G2YV1aK5vP8N9na1IGWFzYaTp6k6NA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.0.3.tgz", + "integrity": "sha512-1d0hLbOrM1qQE3eP3DtakeMbKTcXiXP3afWxqz103xPyddS2NhnNghS7MaXx1dcDt4/6p4nlhmeILo2ofgi8cQ==", "dev": true, "requires": { - "@jest/console": "^28.1.3", - "@jest/reporters": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/console": "^29.0.3", + "@jest/reporters": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", "ci-info": "^3.2.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", - "jest-changed-files": "^28.1.3", - "jest-config": "^28.1.3", - "jest-haste-map": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-regex-util": "^28.0.2", - "jest-resolve": "^28.1.3", - "jest-resolve-dependencies": "^28.1.3", - "jest-runner": "^28.1.3", - "jest-runtime": "^28.1.3", - "jest-snapshot": "^28.1.3", - "jest-util": "^28.1.3", - "jest-validate": "^28.1.3", - "jest-watcher": "^28.1.3", + "jest-changed-files": "^29.0.0", + "jest-config": "^29.0.3", + "jest-haste-map": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.3", + "jest-resolve-dependencies": "^29.0.3", + "jest-runner": "^29.0.3", + "jest-runtime": "^29.0.3", + "jest-snapshot": "^29.0.3", + "jest-util": "^29.0.3", + "jest-validate": "^29.0.3", + "jest-watcher": "^29.0.3", "micromatch": "^4.0.4", - "pretty-format": "^28.1.3", - "rimraf": "^3.0.0", + "pretty-format": "^29.0.3", "slash": "^3.0.0", "strip-ansi": "^6.0.0" }, @@ -16061,73 +16026,74 @@ } }, "@jest/environment": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-28.1.3.tgz", - "integrity": "sha512-1bf40cMFTEkKyEf585R9Iz1WayDjHoHqvts0XFYEqyKM3cFWDpeMoqKKTAF9LSYQModPUlh8FKptoM2YcMWAXA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.0.3.tgz", + "integrity": "sha512-iKl272NKxYNQNqXMQandAIwjhQaGw5uJfGXduu8dS9llHi8jV2ChWrtOAVPnMbaaoDhnI3wgUGNDvZgHeEJQCA==", "dev": true, "requires": { - "@jest/fake-timers": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/fake-timers": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", - "jest-mock": "^28.1.3" + "jest-mock": "^29.0.3" } }, "@jest/expect": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-28.1.3.tgz", - "integrity": "sha512-lzc8CpUbSoE4dqT0U+g1qODQjBRHPpCPXissXD4mS9+sWQdmmpeJ9zSH1rS1HEkrsMN0fb7nKrJ9giAR1d3wBw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.0.3.tgz", + "integrity": "sha512-6W7K+fsI23FQ01H/BWccPyDZFrnU9QlzDcKOjrNVU5L8yUORFAJJIpmyxWPW70+X624KUNqzZwPThPMX28aXEQ==", "dev": true, "requires": { - "expect": "^28.1.3", - "jest-snapshot": "^28.1.3" + "expect": "^29.0.3", + "jest-snapshot": "^29.0.3" } }, "@jest/expect-utils": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-28.1.3.tgz", - "integrity": "sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.0.3.tgz", + "integrity": "sha512-i1xUkau7K/63MpdwiRqaxgZOjxYs4f0WMTGJnYwUKubsNRZSeQbLorS7+I4uXVF9KQ5r61BUPAUMZ7Lf66l64Q==", "dev": true, "requires": { - "jest-get-type": "^28.0.2" + "jest-get-type": "^29.0.0" } }, "@jest/fake-timers": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-28.1.3.tgz", - "integrity": "sha512-D/wOkL2POHv52h+ok5Oj/1gOG9HSywdoPtFsRCUmlCILXNn5eIWmcnd3DIiWlJnpGvQtmajqBP95Ei0EimxfLw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.0.3.tgz", + "integrity": "sha512-tmbUIo03x0TdtcZCESQ0oQSakPCpo7+s6+9mU19dd71MptkP4zCwoeZqna23//pgbhtT1Wq02VmA9Z9cNtvtCQ==", "dev": true, "requires": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@sinonjs/fake-timers": "^9.1.2", "@types/node": "*", - "jest-message-util": "^28.1.3", - "jest-mock": "^28.1.3", - "jest-util": "^28.1.3" + "jest-message-util": "^29.0.3", + "jest-mock": "^29.0.3", + "jest-util": "^29.0.3" } }, "@jest/globals": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-28.1.3.tgz", - "integrity": "sha512-XFU4P4phyryCXu1pbcqMO0GSQcYe1IsalYCDzRNyhetyeyxMcIxa11qPNDpVNLeretItNqEmYYQn1UYz/5x1NA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.0.3.tgz", + "integrity": "sha512-YqGHT65rFY2siPIHHFjuCGUsbzRjdqkwbat+Of6DmYRg5shIXXrLdZoVE/+TJ9O1dsKsFmYhU58JvIbZRU1Z9w==", "dev": true, "requires": { - "@jest/environment": "^28.1.3", - "@jest/expect": "^28.1.3", - "@jest/types": "^28.1.3" + "@jest/environment": "^29.0.3", + "@jest/expect": "^29.0.3", + "@jest/types": "^29.0.3", + "jest-mock": "^29.0.3" } }, "@jest/reporters": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-28.1.3.tgz", - "integrity": "sha512-JuAy7wkxQZVNU/V6g9xKzCGC5LVXx9FDcABKsSXp5MiKPEE2144a/vXTEDoyzjUpZKfVwp08Wqg5A4WfTMAzjg==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.0.3.tgz", + "integrity": "sha512-3+QU3d4aiyOWfmk1obDerie4XNCaD5Xo1IlKNde2yGEi02WQD+ZQD0i5Hgqm1e73sMV7kw6pMlCnprtEwEVwxw==", "dev": true, "requires": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", - "@jridgewell/trace-mapping": "^0.3.13", + "@jest/console": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", + "@jridgewell/trace-mapping": "^0.3.15", "@types/node": "*", "chalk": "^4.0.0", "collect-v8-coverage": "^1.0.0", @@ -16139,9 +16105,9 @@ "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", - "jest-worker": "^28.1.3", + "jest-message-util": "^29.0.3", + "jest-util": "^29.0.3", + "jest-worker": "^29.0.3", "slash": "^3.0.0", "string-length": "^4.0.1", "strip-ansi": "^6.0.0", @@ -16189,28 +16155,6 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "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, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -16229,46 +16173,46 @@ } }, "@jest/schemas": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz", - "integrity": "sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz", + "integrity": "sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==", "dev": true, "requires": { "@sinclair/typebox": "^0.24.1" } }, "@jest/source-map": { - "version": "28.1.2", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-28.1.2.tgz", - "integrity": "sha512-cV8Lx3BeStJb8ipPHnqVw/IM2VCMWO3crWZzYodSIkxXnRcXJipCdx1JCK0K5MsJJouZQTH73mzf4vgxRaH9ww==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.0.0.tgz", + "integrity": "sha512-nOr+0EM8GiHf34mq2GcJyz/gYFyLQ2INDhAylrZJ9mMWoW21mLBfZa0BUVPPMxVYrLjeiRe2Z7kWXOGnS0TFhQ==", "dev": true, "requires": { - "@jridgewell/trace-mapping": "^0.3.13", + "@jridgewell/trace-mapping": "^0.3.15", "callsites": "^3.0.0", "graceful-fs": "^4.2.9" } }, "@jest/test-result": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-28.1.3.tgz", - "integrity": "sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.0.3.tgz", + "integrity": "sha512-vViVnQjCgTmbhDKEonKJPtcFe9G/CJO4/Np4XwYJah+lF2oI7KKeRp8t1dFvv44wN2NdbDb/qC6pi++Vpp0Dlg==", "dev": true, "requires": { - "@jest/console": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/console": "^29.0.3", + "@jest/types": "^29.0.3", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" } }, "@jest/test-sequencer": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-28.1.3.tgz", - "integrity": "sha512-NIMPEqqa59MWnDi1kvXXpYbqsfQmSJsIbnd85mdVGkiDfQ9WQQTXOLsvISUfonmnBT+w85WEgneCigEEdHDFxw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.0.3.tgz", + "integrity": "sha512-Hf4+xYSWZdxTNnhDykr8JBs0yBN/nxOXyUQWfotBUqqy0LF9vzcFB0jm/EDNZCx587znLWTIgxcokW7WeZMobQ==", "dev": true, "requires": { - "@jest/test-result": "^28.1.3", + "@jest/test-result": "^29.0.3", "graceful-fs": "^4.2.9", - "jest-haste-map": "^28.1.3", + "jest-haste-map": "^29.0.3", "slash": "^3.0.0" }, "dependencies": { @@ -16281,22 +16225,22 @@ } }, "@jest/transform": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-28.1.3.tgz", - "integrity": "sha512-u5dT5di+oFI6hfcLOHGTAfmUxFRrjK+vnaP0kkVow9Md/M7V/MxqQMOz/VV25UZO8pzeA9PjfTpOu6BDuwSPQA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.3.tgz", + "integrity": "sha512-C5ihFTRYaGDbi/xbRQRdbo5ddGtI4VSpmL6AIcZxdhwLbXMa7PcXxxqyI91vGOFHnn5aVM3WYnYKCHEqmLVGzg==", "dev": true, "requires": { "@babel/core": "^7.11.6", - "@jest/types": "^28.1.3", - "@jridgewell/trace-mapping": "^0.3.13", + "@jest/types": "^29.0.3", + "@jridgewell/trace-mapping": "^0.3.15", "babel-plugin-istanbul": "^6.1.1", "chalk": "^4.0.0", "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^28.1.3", - "jest-regex-util": "^28.0.2", - "jest-util": "^28.1.3", + "jest-haste-map": "^29.0.3", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.3", "micromatch": "^4.0.4", "pirates": "^4.0.4", "slash": "^3.0.0", @@ -16361,12 +16305,12 @@ } }, "@jest/types": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz", - "integrity": "sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.0.3.tgz", + "integrity": "sha512-coBJmOQvurXjN1Hh5PzF7cmsod0zLIOXpP8KD161mqNlroMhLcwpODiEzi7ZsRl5Z/AIuxpeNm8DCl43F4kz8A==", "dev": true, "requires": { - "@jest/schemas": "^28.1.3", + "@jest/schemas": "^29.0.0", "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", @@ -16529,9 +16473,9 @@ } }, "@sinclair/typebox": { - "version": "0.24.39", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.39.tgz", - "integrity": "sha512-GqtkxoAjhTzoMwFg/JYRl+1+miOoyvp6mkLpbMSd2fIQak2KvY00ndlXxxkDBpuCPYkorZeEZf0LEQn9V9NRVQ==", + "version": "0.24.40", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.40.tgz", + "integrity": "sha512-Xint60L8rF0+nRy+6fCjW9jQMmu7fTpbwTBrXZiK6eq/RHDJS7LvWX/0oXC8O7fCePmrY/XdfaTv2HiUDeCq4g==", "dev": true }, "@sinonjs/commons": { @@ -17106,15 +17050,15 @@ "dev": true }, "babel-jest": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-28.1.3.tgz", - "integrity": "sha512-epUaPOEWMk3cWX0M/sPvCHHCe9fMFAa/9hXEgKP8nFfNl/jlGkE9ucq9NqkZGXLDduCJYS0UvSlPUwC0S+rH6Q==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.0.3.tgz", + "integrity": "sha512-ApPyHSOhS/sVzwUOQIWJmdvDhBsMG01HX9z7ogtkp1TToHGGUWFlnXJUIzCgKPSfiYLn3ibipCYzsKSURHEwLg==", "dev": true, "requires": { - "@jest/transform": "^28.1.3", + "@jest/transform": "^29.0.3", "@types/babel__core": "^7.1.14", "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^28.1.3", + "babel-preset-jest": "^29.0.2", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "slash": "^3.0.0" @@ -17200,9 +17144,9 @@ } }, "babel-plugin-jest-hoist": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-28.1.3.tgz", - "integrity": "sha512-Ys3tUKAmfnkRUpPdpa98eYrAR0nV+sSFUZZEGuQ2EbFd1y4SOLtD5QDNHAq+bb9a+bbXvYQC4b+ID/THIMcU6Q==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.0.2.tgz", + "integrity": "sha512-eBr2ynAEFjcebVvu8Ktx580BD1QKCrBG1XwEUTXJe285p9HA/4hOhfWCFRQhTKSyBV0VzjhG7H91Eifz9s29hg==", "dev": true, "requires": { "@babel/template": "^7.3.3", @@ -17262,12 +17206,12 @@ } }, "babel-preset-jest": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-28.1.3.tgz", - "integrity": "sha512-L+fupJvlWAHbQfn74coNX3zf60LXMJsezNvvx8eIh7iOR1luJ1poxYgQk1F8PYtNq/6QODDHCqsSnTFSWC491A==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.0.2.tgz", + "integrity": "sha512-BeVXp7rH5TK96ofyEnHjznjLMQ2nAeDJ+QzxKnHAAMs0RgrQsCywjAN8m4mOm5Di0pxU//3AoEeJJrerMH5UeA==", "dev": true, "requires": { - "babel-plugin-jest-hoist": "^28.1.3", + "babel-plugin-jest-hoist": "^29.0.2", "babel-preset-current-node-syntax": "^1.0.0" } }, @@ -18435,9 +18379,9 @@ "dev": true }, "diff-sequences": { - "version": "28.1.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-28.1.1.tgz", - "integrity": "sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", + "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", "dev": true }, "dir-glob": { @@ -19205,16 +19149,16 @@ "dev": true }, "expect": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/expect/-/expect-28.1.3.tgz", - "integrity": "sha512-eEh0xn8HlsuOBxFgIss+2mX85VAS4Qy3OSkjV7rlBWljtA4oWH37glVGyOZSZvErDT/yBywZdPGwCXuTvSG85g==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.0.3.tgz", + "integrity": "sha512-t8l5DTws3212VbmPL+tBFXhjRHLmctHB0oQbL8eUc6S7NzZtYUhycrFO9mkxA0ZUC6FAWdNi7JchJSkODtcu1Q==", "dev": true, "requires": { - "@jest/expect-utils": "^28.1.3", - "jest-get-type": "^28.0.2", - "jest-matcher-utils": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3" + "@jest/expect-utils": "^29.0.3", + "jest-get-type": "^29.0.0", + "jest-matcher-utils": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-util": "^29.0.3" } }, "fast-deep-equal": { @@ -20107,21 +20051,21 @@ } }, "jest": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest/-/jest-28.1.3.tgz", - "integrity": "sha512-N4GT5on8UkZgH0O5LUavMRV1EDEhNTL0KEfRmDIeZHSV7p2XgLoY9t9VDUgL6o+yfdgYHVxuz81G8oB9VG5uyA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.0.3.tgz", + "integrity": "sha512-ElgUtJBLgXM1E8L6K1RW1T96R897YY/3lRYqq9uVcPWtP2AAl/nQ16IYDh/FzQOOQ12VEuLdcPU83mbhG2C3PQ==", "dev": true, "requires": { - "@jest/core": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/core": "^29.0.3", + "@jest/types": "^29.0.3", "import-local": "^3.0.2", - "jest-cli": "^28.1.3" + "jest-cli": "^29.0.3" } }, "jest-changed-files": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-28.1.3.tgz", - "integrity": "sha512-esaOfUWJXk2nfZt9SPyC8gA1kNfdKLkQWyzsMlqq8msYSlNKfmZxfRgZn4Cd4MGVUF+7v6dBs0d5TOAKa7iIiA==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.0.0.tgz", + "integrity": "sha512-28/iDMDrUpGoCitTURuDqUzWQoWmOmOKOFST1mi2lwh62X4BFf6khgH3uSuo1e49X/UDjuApAj3w0wLOex4VPQ==", "dev": true, "requires": { "execa": "^5.0.0", @@ -20129,28 +20073,28 @@ } }, "jest-circus": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-28.1.3.tgz", - "integrity": "sha512-cZ+eS5zc79MBwt+IhQhiEp0OeBddpc1n8MBo1nMB8A7oPMKEO+Sre+wHaLJexQUj9Ya/8NOBY0RESUgYjB6fow==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.0.3.tgz", + "integrity": "sha512-QeGzagC6Hw5pP+df1+aoF8+FBSgkPmraC1UdkeunWh0jmrp7wC0Hr6umdUAOELBQmxtKAOMNC3KAdjmCds92Zg==", "dev": true, "requires": { - "@jest/environment": "^28.1.3", - "@jest/expect": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/environment": "^29.0.3", + "@jest/expect": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", "dedent": "^0.7.0", "is-generator-fn": "^2.0.0", - "jest-each": "^28.1.3", - "jest-matcher-utils": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-runtime": "^28.1.3", - "jest-snapshot": "^28.1.3", - "jest-util": "^28.1.3", + "jest-each": "^29.0.3", + "jest-matcher-utils": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-runtime": "^29.0.3", + "jest-snapshot": "^29.0.3", + "jest-util": "^29.0.3", "p-limit": "^3.1.0", - "pretty-format": "^28.1.3", + "pretty-format": "^29.0.3", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, @@ -20213,21 +20157,21 @@ } }, "jest-cli": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-28.1.3.tgz", - "integrity": "sha512-roY3kvrv57Azn1yPgdTebPAXvdR2xfezaKKYzVxZ6It/5NCxzJym6tUI5P1zkdWhfUYkxEI9uZWcQdaFLo8mJQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.0.3.tgz", + "integrity": "sha512-aUy9Gd/Kut1z80eBzG10jAn6BgS3BoBbXyv+uXEqBJ8wnnuZ5RpNfARoskSrTIy1GY4a8f32YGuCMwibtkl9CQ==", "dev": true, "requires": { - "@jest/core": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/core": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/types": "^29.0.3", "chalk": "^4.0.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", "import-local": "^3.0.2", - "jest-config": "^28.1.3", - "jest-util": "^28.1.3", - "jest-validate": "^28.1.3", + "jest-config": "^29.0.3", + "jest-util": "^29.0.3", + "jest-validate": "^29.0.3", "prompts": "^2.0.1", "yargs": "^17.3.1" }, @@ -20284,31 +20228,31 @@ } }, "jest-config": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-28.1.3.tgz", - "integrity": "sha512-MG3INjByJ0J4AsNBm7T3hsuxKQqFIiRo/AUqb1q9LRKI5UU6Aar9JHbr9Ivn1TVwfUD9KirRoM/T6u8XlcQPHQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.0.3.tgz", + "integrity": "sha512-U5qkc82HHVYe3fNu2CRXLN4g761Na26rWKf7CjM8LlZB3In1jadEkZdMwsE37rd9RSPV0NfYaCjHdk/gu3v+Ew==", "dev": true, "requires": { "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^28.1.3", - "@jest/types": "^28.1.3", - "babel-jest": "^28.1.3", + "@jest/test-sequencer": "^29.0.3", + "@jest/types": "^29.0.3", + "babel-jest": "^29.0.3", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-circus": "^28.1.3", - "jest-environment-node": "^28.1.3", - "jest-get-type": "^28.0.2", - "jest-regex-util": "^28.0.2", - "jest-resolve": "^28.1.3", - "jest-runner": "^28.1.3", - "jest-util": "^28.1.3", - "jest-validate": "^28.1.3", + "jest-circus": "^29.0.3", + "jest-environment-node": "^29.0.3", + "jest-get-type": "^29.0.0", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.3", + "jest-runner": "^29.0.3", + "jest-util": "^29.0.3", + "jest-validate": "^29.0.3", "micromatch": "^4.0.4", "parse-json": "^5.2.0", - "pretty-format": "^28.1.3", + "pretty-format": "^29.0.3", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, @@ -20371,15 +20315,15 @@ } }, "jest-diff": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-28.1.3.tgz", - "integrity": "sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.3.tgz", + "integrity": "sha512-+X/AIF5G/vX9fWK+Db9bi9BQas7M9oBME7egU7psbn4jlszLFCu0dW63UgeE6cs/GANq4fLaT+8sGHQQ0eCUfg==", "dev": true, "requires": { "chalk": "^4.0.0", - "diff-sequences": "^28.1.1", - "jest-get-type": "^28.0.2", - "pretty-format": "^28.1.3" + "diff-sequences": "^29.0.0", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.3" }, "dependencies": { "ansi-styles": { @@ -20434,25 +20378,25 @@ } }, "jest-docblock": { - "version": "28.1.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-28.1.1.tgz", - "integrity": "sha512-3wayBVNiOYx0cwAbl9rwm5kKFP8yHH3d/fkEaL02NPTkDojPtheGB7HZSFY4wzX+DxyrvhXz0KSCVksmCknCuA==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.0.0.tgz", + "integrity": "sha512-s5Kpra/kLzbqu9dEjov30kj1n4tfu3e7Pl8v+f8jOkeWNqM6Ds8jRaJfZow3ducoQUrf2Z4rs2N5S3zXnb83gw==", "dev": true, "requires": { "detect-newline": "^3.0.0" } }, "jest-each": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-28.1.3.tgz", - "integrity": "sha512-arT1z4sg2yABU5uogObVPvSlSMQlDA48owx07BDPAiasW0yYpYHYOo4HHLz9q0BVzDVU4hILFjzJw0So9aCL/g==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.0.3.tgz", + "integrity": "sha512-wILhZfESURHHBNvPMJ0lZlYZrvOQJxAo3wNHi+ycr90V7M+uGR9Gh4+4a/BmaZF0XTyZsk4OiYEf3GJN7Ltqzg==", "dev": true, "requires": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "chalk": "^4.0.0", - "jest-get-type": "^28.0.2", - "jest-util": "^28.1.3", - "pretty-format": "^28.1.3" + "jest-get-type": "^29.0.0", + "jest-util": "^29.0.3", + "pretty-format": "^29.0.3" }, "dependencies": { "ansi-styles": { @@ -20507,93 +20451,65 @@ } }, "jest-environment-node": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-28.1.3.tgz", - "integrity": "sha512-ugP6XOhEpjAEhGYvp5Xj989ns5cB1K6ZdjBYuS30umT4CQEETaxSiPcZ/E1kFktX4GkrcM4qu07IIlDYX1gp+A==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.0.3.tgz", + "integrity": "sha512-cdZqRCnmIlTXC+9vtvmfiY/40Cj6s2T0czXuq1whvQdmpzAnj4sbqVYuZ4zFHk766xTTJ+Ij3uUqkk8KCfXoyg==", "dev": true, "requires": { - "@jest/environment": "^28.1.3", - "@jest/fake-timers": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/environment": "^29.0.3", + "@jest/fake-timers": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", - "jest-mock": "^28.1.3", - "jest-util": "^28.1.3" + "jest-mock": "^29.0.3", + "jest-util": "^29.0.3" } }, "jest-get-type": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-28.0.2.tgz", - "integrity": "sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true }, "jest-haste-map": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-28.1.3.tgz", - "integrity": "sha512-3S+RQWDXccXDKSWnkHa/dPwt+2qwA8CJzR61w3FoYCvoo3Pn8tvGcysmMF0Bj0EX5RYvAI2EIvC57OmotfdtKA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.3.tgz", + "integrity": "sha512-uMqR99+GuBHo0RjRhOE4iA6LmsxEwRdgiIAQgMU/wdT2XebsLDz5obIwLZm/Psj+GwSEQhw9AfAVKGYbh2G55A==", "dev": true, "requires": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/graceful-fs": "^4.1.3", "@types/node": "*", "anymatch": "^3.0.3", "fb-watchman": "^2.0.0", "fsevents": "^2.3.2", "graceful-fs": "^4.2.9", - "jest-regex-util": "^28.0.2", - "jest-util": "^28.1.3", - "jest-worker": "^28.1.3", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.3", + "jest-worker": "^29.0.3", "micromatch": "^4.0.4", "walker": "^1.0.8" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - } - }, - "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, - "requires": { - "has-flag": "^4.0.0" - } - } } }, "jest-leak-detector": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-28.1.3.tgz", - "integrity": "sha512-WFVJhnQsiKtDEo5lG2mM0v40QWnBM+zMdHHyJs8AWZ7J0QZJS59MsyKeJHWhpBZBH32S48FOVvGyOFT1h0DlqA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.0.3.tgz", + "integrity": "sha512-YfW/G63dAuiuQ3QmQlh8hnqLDe25WFY3eQhuc/Ev1AGmkw5zREblTh7TCSKLoheyggu6G9gxO2hY8p9o6xbaRQ==", "dev": true, "requires": { - "jest-get-type": "^28.0.2", - "pretty-format": "^28.1.3" + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.3" } }, "jest-matcher-utils": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-28.1.3.tgz", - "integrity": "sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.3.tgz", + "integrity": "sha512-RsR1+cZ6p1hDV4GSCQTg+9qjeotQCgkaleIKLK7dm+U4V/H2bWedU3RAtLm8+mANzZ7eDV33dMar4pejd7047w==", "dev": true, "requires": { "chalk": "^4.0.0", - "jest-diff": "^28.1.3", - "jest-get-type": "^28.0.2", - "pretty-format": "^28.1.3" + "jest-diff": "^29.0.3", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.3" }, "dependencies": { "ansi-styles": { @@ -20648,18 +20564,18 @@ } }, "jest-message-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-28.1.3.tgz", - "integrity": "sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.0.3.tgz", + "integrity": "sha512-7T8JiUTtDfppojosORAflABfLsLKMLkBHSWkjNQrjIltGoDzNGn7wEPOSfjqYAGTYME65esQzMJxGDjuLBKdOg==", "dev": true, "requires": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^28.1.3", + "pretty-format": "^29.0.3", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, @@ -20722,12 +20638,12 @@ } }, "jest-mock": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-28.1.3.tgz", - "integrity": "sha512-o3J2jr6dMMWYVH4Lh/NKmDXdosrsJgi4AviS8oXLujcjpCMBb1FMsblDnOXKZKfSiHLxYub1eS0IHuRXsio9eA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.0.3.tgz", + "integrity": "sha512-ort9pYowltbcrCVR43wdlqfAiFJXBx8l4uJDsD8U72LgBcetvEp+Qxj1W9ZYgMRoeAo+ov5cnAGF2B6+Oth+ww==", "dev": true, "requires": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/node": "*" } }, @@ -20739,23 +20655,23 @@ "requires": {} }, "jest-regex-util": { - "version": "28.0.2", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", - "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-resolve": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-28.1.3.tgz", - "integrity": "sha512-Z1W3tTjE6QaNI90qo/BJpfnvpxtaFTFw5CDgwpyE/Kz8U/06N1Hjf4ia9quUhCh39qIGWF1ZuxFiBiJQwSEYKQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.0.3.tgz", + "integrity": "sha512-toVkia85Y/BPAjJasTC9zIPY6MmVXQPtrCk8SmiheC4MwVFE/CMFlOtMN6jrwPMC6TtNh8+sTMllasFeu1wMPg==", "dev": true, "requires": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^28.1.3", + "jest-haste-map": "^29.0.3", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^28.1.3", - "jest-validate": "^28.1.3", + "jest-util": "^29.0.3", + "jest-validate": "^29.0.3", "resolve": "^1.20.0", "resolve.exports": "^1.1.0", "slash": "^3.0.0" @@ -20819,40 +20735,40 @@ } }, "jest-resolve-dependencies": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-28.1.3.tgz", - "integrity": "sha512-qa0QO2Q0XzQoNPouMbCc7Bvtsem8eQgVPNkwn9LnS+R2n8DaVDPL/U1gngC0LTl1RYXJU0uJa2BMC2DbTfFrHA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.0.3.tgz", + "integrity": "sha512-KzuBnXqNvbuCdoJpv8EanbIGObk7vUBNt/PwQPPx2aMhlv/jaXpUJsqWYRpP/0a50faMBY7WFFP8S3/CCzwfDw==", "dev": true, "requires": { - "jest-regex-util": "^28.0.2", - "jest-snapshot": "^28.1.3" + "jest-regex-util": "^29.0.0", + "jest-snapshot": "^29.0.3" } }, "jest-runner": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-28.1.3.tgz", - "integrity": "sha512-GkMw4D/0USd62OVO0oEgjn23TM+YJa2U2Wu5zz9xsQB1MxWKDOlrnykPxnMsN0tnJllfLPinHTka61u0QhaxBA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.0.3.tgz", + "integrity": "sha512-Usu6VlTOZlCZoNuh3b2Tv/yzDpKqtiNAetG9t3kJuHfUyVMNW7ipCCJOUojzKkjPoaN7Bl1f7Buu6PE0sGpQxw==", "dev": true, "requires": { - "@jest/console": "^28.1.3", - "@jest/environment": "^28.1.3", - "@jest/test-result": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/console": "^29.0.3", + "@jest/environment": "^29.0.3", + "@jest/test-result": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", "chalk": "^4.0.0", "emittery": "^0.10.2", "graceful-fs": "^4.2.9", - "jest-docblock": "^28.1.1", - "jest-environment-node": "^28.1.3", - "jest-haste-map": "^28.1.3", - "jest-leak-detector": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-resolve": "^28.1.3", - "jest-runtime": "^28.1.3", - "jest-util": "^28.1.3", - "jest-watcher": "^28.1.3", - "jest-worker": "^28.1.3", + "jest-docblock": "^29.0.0", + "jest-environment-node": "^29.0.3", + "jest-haste-map": "^29.0.3", + "jest-leak-detector": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-resolve": "^29.0.3", + "jest-runtime": "^29.0.3", + "jest-util": "^29.0.3", + "jest-watcher": "^29.0.3", + "jest-worker": "^29.0.3", "p-limit": "^3.1.0", "source-map-support": "0.5.13" }, @@ -20897,28 +20813,6 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "jest-worker": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", - "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "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, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -20931,31 +20825,31 @@ } }, "jest-runtime": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-28.1.3.tgz", - "integrity": "sha512-NU+881ScBQQLc1JHG5eJGU7Ui3kLKrmwCPPtYsJtBykixrM2OhVQlpMmFWJjMyDfdkGgBMNjXCGB/ebzsgNGQw==", - "dev": true, - "requires": { - "@jest/environment": "^28.1.3", - "@jest/fake-timers": "^28.1.3", - "@jest/globals": "^28.1.3", - "@jest/source-map": "^28.1.2", - "@jest/test-result": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.0.3.tgz", + "integrity": "sha512-12gZXRQ7ozEeEHKTY45a+YLqzNDR/x4c//X6AqwKwKJPpWM8FY4vwn4VQJOcLRS3Nd1fWwgP7LU4SoynhuUMHQ==", + "dev": true, + "requires": { + "@jest/environment": "^29.0.3", + "@jest/fake-timers": "^29.0.3", + "@jest/globals": "^29.0.3", + "@jest/source-map": "^29.0.0", + "@jest/test-result": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", + "@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": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-mock": "^28.1.3", - "jest-regex-util": "^28.0.2", - "jest-resolve": "^28.1.3", - "jest-snapshot": "^28.1.3", - "jest-util": "^28.1.3", + "jest-haste-map": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-mock": "^29.0.3", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.3", + "jest-snapshot": "^29.0.3", + "jest-util": "^29.0.3", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, @@ -21018,33 +20912,34 @@ } }, "jest-snapshot": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-28.1.3.tgz", - "integrity": "sha512-4lzMgtiNlc3DU/8lZfmqxN3AYD6GGLbl+72rdBpXvcV+whX7mDrREzkPdp2RnmfIiWBg1YbuFSkXduF2JcafJg==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.0.3.tgz", + "integrity": "sha512-52q6JChm04U3deq+mkQ7R/7uy7YyfVIrebMi6ZkBoDJ85yEjm/sJwdr1P0LOIEHmpyLlXrxy3QP0Zf5J2kj0ew==", "dev": true, "requires": { "@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.3.3", - "@jest/expect-utils": "^28.1.3", - "@jest/transform": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/expect-utils": "^29.0.3", + "@jest/transform": "^29.0.3", + "@jest/types": "^29.0.3", "@types/babel__traverse": "^7.0.6", "@types/prettier": "^2.1.5", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^28.1.3", + "expect": "^29.0.3", "graceful-fs": "^4.2.9", - "jest-diff": "^28.1.3", - "jest-get-type": "^28.0.2", - "jest-haste-map": "^28.1.3", - "jest-matcher-utils": "^28.1.3", - "jest-message-util": "^28.1.3", - "jest-util": "^28.1.3", + "jest-diff": "^29.0.3", + "jest-get-type": "^29.0.0", + "jest-haste-map": "^29.0.3", + "jest-matcher-utils": "^29.0.3", + "jest-message-util": "^29.0.3", + "jest-util": "^29.0.3", "natural-compare": "^1.4.0", - "pretty-format": "^28.1.3", + "pretty-format": "^29.0.3", "semver": "^7.3.5" }, "dependencies": { @@ -21109,12 +21004,12 @@ } }, "jest-util": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", - "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.3.tgz", + "integrity": "sha512-Q0xaG3YRG8QiTC4R6fHjHQPaPpz9pJBEi0AeOE4mQh/FuWOijFjGXMMOfQEaU9i3z76cNR7FobZZUQnL6IyfdQ==", "dev": true, "requires": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", @@ -21174,17 +21069,17 @@ } }, "jest-validate": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-28.1.3.tgz", - "integrity": "sha512-SZbOGBWEsaTxBGCOpsRWlXlvNkvTkY0XxRfh7zYmvd8uL5Qzyg0CHAXiXKROflh801quA6+/DsT4ODDthOC/OA==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.0.3.tgz", + "integrity": "sha512-OebiqqT6lK8cbMPtrSoS3aZP4juID762lZvpf1u+smZnwTEBCBInan0GAIIhv36MxGaJvmq5uJm7dl5gVt+Zrw==", "dev": true, "requires": { - "@jest/types": "^28.1.3", + "@jest/types": "^29.0.3", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^28.0.2", + "jest-get-type": "^29.0.0", "leven": "^3.1.0", - "pretty-format": "^28.1.3" + "pretty-format": "^29.0.3" }, "dependencies": { "ansi-styles": { @@ -21245,18 +21140,18 @@ } }, "jest-watcher": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-28.1.3.tgz", - "integrity": "sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.0.3.tgz", + "integrity": "sha512-tQX9lU91A+9tyUQKUMp0Ns8xAcdhC9fo73eqA3LFxP2bSgiF49TNcc+vf3qgGYYK9qRjFpXW9+4RgF/mbxyOOw==", "dev": true, "requires": { - "@jest/test-result": "^28.1.3", - "@jest/types": "^28.1.3", + "@jest/test-result": "^29.0.3", + "@jest/types": "^29.0.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", "emittery": "^0.10.2", - "jest-util": "^28.1.3", + "jest-util": "^29.0.3", "string-length": "^4.0.1" }, "dependencies": { @@ -21312,9 +21207,9 @@ } }, "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.0.3", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.3.tgz", + "integrity": "sha512-Tl/YWUugQOjoTYwjKdfJWkSOfhufJHO5LhXTSZC3TRoQKO+fuXnZAdoXXBlpLXKGODBL3OvdUasfDD4PcMe6ng==", "requires": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -22708,13 +22603,12 @@ "dev": true }, "pretty-format": { - "version": "28.1.3", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", - "integrity": "sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q==", + "version": "29.0.3", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.3.tgz", + "integrity": "sha512-cHudsvQr1K5vNVLbvYF/nv3Qy/F/BcEKxGuIeMiVMRHxPOO1RxXooP8g/ZrwAp7Dx+KdMZoOc7NxLHhMrP2f9Q==", "dev": true, "requires": { - "@jest/schemas": "^28.1.3", - "ansi-regex": "^5.0.1", + "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", "react-is": "^18.0.0" }, @@ -23761,6 +23655,23 @@ "dev": true, "requires": {} }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "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==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -23777,6 +23688,15 @@ "ajv": "^6.12.5", "ajv-keywords": "^3.5.2" } + }, + "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, + "requires": { + "has-flag": "^4.0.0" + } } } }, diff --git a/package.json b/package.json index af99911..ade482f 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ }, "dependencies": { "cssnano": "^5.1.8", - "jest-worker": "^27.5.1", + "jest-worker": "^29.0.3", "postcss": "^8.4.13", "schema-utils": "^4.0.0", "serialize-javascript": "^6.0.0", @@ -80,7 +80,7 @@ "@types/csso": "^5.0.0", "@types/serialize-javascript": "^5.0.2", "@webpack-contrib/eslint-config-webpack": "^3.0.0", - "babel-jest": "^28.1.0", + "babel-jest": "^29.0.3", "clean-css": "^5.3.0", "copy-webpack-plugin": "^9.1.0", "cross-env": "^7.0.3", @@ -94,7 +94,7 @@ "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "husky": "^8.0.1", - "jest": "^28.1.0", + "jest": "^29.0.3", "lightningcss": "^1.14.0", "lint-staged": "^12.4.1", "memfs": "^3.4.1", diff --git a/test/__snapshots__/CssMinimizerPlugin.test.js.snap b/test/__snapshots__/CssMinimizerPlugin.test.js.snap index 0b1e421..c500298 100644 --- a/test/__snapshots__/CssMinimizerPlugin.test.js.snap +++ b/test/__snapshots__/CssMinimizerPlugin.test.js.snap @@ -53,54 +53,54 @@ warning http://example.com/www/js/one.css:1:1] `; exports[`CssMinimizerPlugin should build error: error 1`] = ` -Array [ +[ "Error: error.css from Css Minimizer plugin /error.css:1:1: Unknown word [error.css:1,1]", ] `; -exports[`CssMinimizerPlugin should build error: warning 1`] = `Array []`; +exports[`CssMinimizerPlugin should build error: warning 1`] = `[]`; -exports[`CssMinimizerPlugin should build warning: error 1`] = `Array []`; +exports[`CssMinimizerPlugin should build warning: error 1`] = `[]`; exports[`CssMinimizerPlugin should build warning: warning 1`] = ` -Array [ +[ "Warning: foo.css from Css Minimizer plugin [warning-plugin] Warning", ] `; exports[`CssMinimizerPlugin should respect the hash options #1: assets 1`] = ` -Object { +{ "entry.css": "a{text-align:center}", } `; -exports[`CssMinimizerPlugin should respect the hash options #1: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should respect the hash options #1: errors 1`] = `[]`; -exports[`CssMinimizerPlugin should respect the hash options #1: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should respect the hash options #1: warnings 1`] = `[]`; exports[`CssMinimizerPlugin should run plugin against assets added later by plugins: assets 1`] = ` -Object { +{ "newFile.css": ".a{color:coral;display:block}", } `; -exports[`CssMinimizerPlugin should run plugin against assets added later by plugins: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should run plugin against assets added later by plugins: errors 1`] = `[]`; -exports[`CssMinimizerPlugin should run plugin against assets added later by plugins: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should run plugin against assets added later by plugins: warnings 1`] = `[]`; exports[`CssMinimizerPlugin should throw error from postcss: error 1`] = ` -Array [ +[ "Error: foo.css from Css Minimizer plugin error-plugin: /foo.css:2:3: Postcss error [webpack://./test/foo.css:2,2][foo.css:2,3]", ] `; -exports[`CssMinimizerPlugin should throw error from postcss: warning 1`] = `Array []`; +exports[`CssMinimizerPlugin should throw error from postcss: warning 1`] = `[]`; exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", @@ -108,43 +108,43 @@ Object { `; exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": assets 2`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } `; -exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": errors 2`] = `Array []`; +exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": errors 2`] = `[]`; -exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": warnings 1`] = `[]`; -exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": warnings 2`] = `Array []`; +exports[`CssMinimizerPlugin should work and do not use memory cache when the "cache" option is "false": warnings 2`] = `[]`; exports[`CssMinimizerPlugin should work and generate real content hash: assets 1`] = ` -Object { - "entry.ee68cb428fa1feaa2c48.072159461f23c2c047e9.0e6907f00e0eaf46a2f9.css": "body{color:red}a{color:blue}", +{ + "entry.ee68cb428fa1feaa2c48.e55d247f17ebcb48bd51.47e5afd8283b82390673.css": "body{color:red}a{color:blue}", } `; -exports[`CssMinimizerPlugin should work and generate real content hash: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and generate real content hash: errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work and generate real content hash: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and generate real content hash: warnings 1`] = `[]`; exports[`CssMinimizerPlugin should work and show minimized assets in stats: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue}", } `; -exports[`CssMinimizerPlugin should work and show minimized assets in stats: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and show minimized assets in stats: errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work and show minimized assets in stats: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and show minimized assets in stats: warnings 1`] = `[]`; exports[`CssMinimizerPlugin should work and use memory cache out of box: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", @@ -152,23 +152,23 @@ Object { `; exports[`CssMinimizerPlugin should work and use memory cache out of box: assets 2`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } `; -exports[`CssMinimizerPlugin should work and use memory cache out of box: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache out of box: errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache out of box: errors 2`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache out of box: errors 2`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache out of box: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache out of box: warnings 1`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache out of box: warnings 2`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache out of box: warnings 2`] = `[]`; exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", @@ -176,23 +176,23 @@ Object { `; exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: assets 2`] = ` -Object { +{ "foo.css": "a,body{color:red}a{color:blue}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } `; -exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: errors 2`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: errors 2`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 1`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 2`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 2`] = `[]`; exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", @@ -200,22 +200,22 @@ Object { `; exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": assets 2`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } `; -exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": errors 2`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": errors 2`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": warnings 1`] = `[]`; -exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": warnings 2`] = `Array []`; +exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": warnings 2`] = `[]`; -exports[`CssMinimizerPlugin should work with assets using querystring: entry.css.map?v=test 1`] = `"{\\"version\\":3,\\"file\\":\\"entry.css?v=test\\",\\"mappings\\":\\"AAAA,KACE,SACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///entry.css%3Fv=test\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}"`; +exports[`CssMinimizerPlugin should work with assets using querystring: entry.css.map?v=test 1`] = `"{"version":3,"file":"entry.css?v=test","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///entry.css%3Fv=test"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\n"],"names":[],"sourceRoot":""}"`; exports[`CssMinimizerPlugin should work with assets using querystring: entry.css?v=test 1`] = ` "body{color:red}a{color:blue} @@ -223,73 +223,73 @@ exports[`CssMinimizerPlugin should work with assets using querystring: entry.css `; exports[`CssMinimizerPlugin should work with child compilation: assets 1`] = ` -Object { +{ "entry.css": ".entry{text-align:center}", } `; -exports[`CssMinimizerPlugin should work with child compilation: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work with child compilation: errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work with child compilation: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work with child compilation: warnings 1`] = `[]`; exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,KACE,SACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///./foo.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } `; exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: assets 2`] = ` -Object { +{ "foo.css": "a,body{color:red}a{color:blue} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,OACE,SACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///./foo.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,OACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } `; -exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: errors 2`] = `Array []`; +exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: errors 2`] = `[]`; -exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 1`] = `[]`; -exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 2`] = `Array []`; +exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 2`] = `[]`; exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,KACE,SACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///./foo.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } `; exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": assets 2`] = ` -Object { +{ "foo.css": "body{color:red}a{color:blue} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,KACE,SACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///./foo.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } `; -exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": errors 1`] = `[]`; -exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": errors 2`] = `Array []`; +exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": errors 2`] = `[]`; -exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": warnings 1`] = `[]`; -exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": warnings 2`] = `Array []`; +exports[`CssMinimizerPlugin should work with source map and use memory cache when the "cache" option is "true": warnings 2`] = `[]`; exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed: assets 1`] = ` -Object { +{ "foo.css": "body { color: red; } @@ -303,7 +303,7 @@ a { `; exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed: assets 2`] = ` -Object { +{ "foo.css": "a { color: red; }body { color: red; } @@ -317,7 +317,7 @@ a { `; exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed: errors 1`] = ` -Array [ +[ "Warning: foo.css from Css Minimizer plugin [warning-plugin] Warning from foo.css", "Warning: style-2.css from Css Minimizer plugin @@ -327,12 +327,12 @@ Array [ ] `; -exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed: errors 2`] = `Array []`; +exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed: errors 2`] = `[]`; -exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 1`] = `[]`; exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true" and the asset has been changed: warnings 2`] = ` -Array [ +[ "Warning: foo.css from Css Minimizer plugin [warning-plugin] Warning from foo.css", "Warning: style-2.css from Css Minimizer plugin @@ -343,7 +343,7 @@ Array [ `; exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true": assets 1`] = ` -Object { +{ "foo.css": "body { color: red; } @@ -357,7 +357,7 @@ a { `; exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true": assets 2`] = ` -Object { +{ "foo.css": "body { color: red; } @@ -371,7 +371,7 @@ a { `; exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true": errors 1`] = ` -Array [ +[ "Warning: foo.css from Css Minimizer plugin [warning-plugin] Warning from foo.css", "Warning: style-2.css from Css Minimizer plugin @@ -381,12 +381,12 @@ Array [ ] `; -exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true": errors 2`] = `Array []`; +exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true": errors 2`] = `[]`; -exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true": warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true": warnings 1`] = `[]`; exports[`CssMinimizerPlugin should work with warnings and use memory cache when the "cache" option is "true": warnings 2`] = ` -Array [ +[ "Warning: foo.css from Css Minimizer plugin [warning-plugin] Warning from foo.css", "Warning: style-2.css from Css Minimizer plugin @@ -397,13 +397,13 @@ Array [ `; exports[`CssMinimizerPlugin should write stdout and stderr of workers to stdout and stderr of main process in parallel mode: assets 1`] = ` -Object { +{ "one.css": ".minify {};", "two.css": ".minify {};", } `; -exports[`CssMinimizerPlugin should write stdout and stderr of workers to stdout and stderr of main process in parallel mode: errors 1`] = `Array []`; +exports[`CssMinimizerPlugin should write stdout and stderr of workers to stdout and stderr of main process in parallel mode: errors 1`] = `[]`; exports[`CssMinimizerPlugin should write stdout and stderr of workers to stdout and stderr of main process in parallel mode: process stderr output 1`] = ` "stderr @@ -417,4 +417,4 @@ stdout " `; -exports[`CssMinimizerPlugin should write stdout and stderr of workers to stdout and stderr of main process in parallel mode: warnings 1`] = `Array []`; +exports[`CssMinimizerPlugin should write stdout and stderr of workers to stdout and stderr of main process in parallel mode: warnings 1`] = `[]`; diff --git a/test/__snapshots__/cache-option.test.js.snap b/test/__snapshots__/cache-option.test.js.snap index b9e1996..447306e 100644 --- a/test/__snapshots__/cache-option.test.js.snap +++ b/test/__snapshots__/cache-option.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`"cache" option should work with the "false" value for the "cache" option: assets 1`] = ` -Object { +{ "five.css": "body{color:red;font-size:20px}a{color:blue}", "four.css": "h1{color:green}h2{color:#ff0}", "one.css": "a{text-align:center}", @@ -11,7 +11,7 @@ Object { `; exports[`"cache" option should work with the "false" value for the "cache" option: assets 2`] = ` -Object { +{ "five.css": "body{color:red;font-size:20px}a{color:blue}", "four.css": "h1{color:green}h2{color:#ff0}", "one.css": "a{text-align:center}", @@ -20,16 +20,16 @@ Object { } `; -exports[`"cache" option should work with the "false" value for the "cache" option: errors 1`] = `Array []`; +exports[`"cache" option should work with the "false" value for the "cache" option: errors 1`] = `[]`; -exports[`"cache" option should work with the "false" value for the "cache" option: errors 2`] = `Array []`; +exports[`"cache" option should work with the "false" value for the "cache" option: errors 2`] = `[]`; -exports[`"cache" option should work with the "false" value for the "cache" option: warnings 1`] = `Array []`; +exports[`"cache" option should work with the "false" value for the "cache" option: warnings 1`] = `[]`; -exports[`"cache" option should work with the "false" value for the "cache" option: warnings 2`] = `Array []`; +exports[`"cache" option should work with the "false" value for the "cache" option: warnings 2`] = `[]`; exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and output warnings: assets 1`] = ` -Object { +{ "five.css": "body { color: red; } @@ -78,7 +78,7 @@ a { `; exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and output warnings: assets 2`] = ` -Object { +{ "five.css": "body { color: red; } @@ -126,12 +126,12 @@ a { } `; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and output warnings: errors 1`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and output warnings: errors 1`] = `[]`; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and output warnings: errors 2`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and output warnings: errors 2`] = `[]`; exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and output warnings: warnings 1`] = ` -Array [ +[ "Warning: five.css from Css Minimizer plugin [warning-plugin] Warning from five.css", "Warning: four.css from Css Minimizer plugin @@ -146,7 +146,7 @@ Array [ `; exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and output warnings: warnings 2`] = ` -Array [ +[ "Warning: five.css from Css Minimizer plugin [warning-plugin] Warning from five.css", "Warning: four.css from Css Minimizer plugin @@ -161,55 +161,55 @@ Array [ `; exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: assets 1`] = ` -Object { +{ "five.css": "body{color:red;font-size:20px}a{color:blue} /*# sourceMappingURL=five.css.map*/", - "five.css.map": "{\\"version\\":3,\\"file\\":\\"five.css\\",\\"mappings\\":\\"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///./test/bar1.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\nbody {\\\\n color: red;\\\\n font-size: 20px;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "five.css.map": "{"version":3,"file":"five.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\nbody {\\r\\n color: red;\\r\\n font-size: 20px;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", "four.css": "h1{color:green}h2{color:#ff0} /*# sourceMappingURL=four.css.map*/", - "four.css.map": "{\\"version\\":3,\\"file\\":\\"four.css\\",\\"mappings\\":\\"AAAA,GACE,WACF,CACA,GACE,UACF\\",\\"sources\\":[\\"webpack:///./test/bar2.css\\"],\\"sourcesContent\\":[\\"h1 {\\\\n color: green;\\\\n}\\\\nh2 {\\\\n color: yellow;\\\\n}\\\\nh3 {\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "four.css.map": "{"version":3,"file":"four.css","mappings":"AAAA,GACE,WACF,CACA,GACE,UACF","sources":["webpack:///./test/bar2.css"],"sourcesContent":["h1 {\\r\\n color: green;\\r\\n}\\r\\nh2 {\\r\\n color: yellow;\\r\\n}\\r\\nh3 {\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", "one.css": "a{text-align:center} /*# sourceMappingURL=one.css.map*/", - "one.css.map": "{\\"version\\":3,\\"file\\":\\"one.css\\",\\"mappings\\":\\"AAAA,EACE,iBACF\\",\\"sources\\":[\\"webpack:///./test/foo.css\\"],\\"sourcesContent\\":[\\"a {\\\\n text-align: center;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "one.css.map": "{"version":3,"file":"one.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\r\\n text-align: center;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", "three.css": "body{color:red;font-size:20px}a{color:blue} /*# sourceMappingURL=three.css.map*/", - "three.css.map": "{\\"version\\":3,\\"file\\":\\"three.css\\",\\"mappings\\":\\"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///./test/bar1.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\nbody {\\\\n color: red;\\\\n font-size: 20px;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "three.css.map": "{"version":3,"file":"three.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\nbody {\\r\\n color: red;\\r\\n font-size: 20px;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", "two.css": "a{text-align:center} /*# sourceMappingURL=two.css.map*/", - "two.css.map": "{\\"version\\":3,\\"file\\":\\"two.css\\",\\"mappings\\":\\"AAAA,EACE,iBACF\\",\\"sources\\":[\\"webpack:///./test/foo.css\\"],\\"sourcesContent\\":[\\"a {\\\\n text-align: center;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "two.css.map": "{"version":3,"file":"two.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\r\\n text-align: center;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", } `; exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: assets 2`] = ` -Object { +{ "five.css": "body{color:red;font-size:20px}a{color:blue} /*# sourceMappingURL=five.css.map*/", - "five.css.map": "{\\"version\\":3,\\"file\\":\\"five.css\\",\\"mappings\\":\\"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///./test/bar1.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\nbody {\\\\n color: red;\\\\n font-size: 20px;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "five.css.map": "{"version":3,"file":"five.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\nbody {\\r\\n color: red;\\r\\n font-size: 20px;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", "four.css": "h1{color:green}h2{color:#ff0} /*# sourceMappingURL=four.css.map*/", - "four.css.map": "{\\"version\\":3,\\"file\\":\\"four.css\\",\\"mappings\\":\\"AAAA,GACE,WACF,CACA,GACE,UACF\\",\\"sources\\":[\\"webpack:///./test/bar2.css\\"],\\"sourcesContent\\":[\\"h1 {\\\\n color: green;\\\\n}\\\\nh2 {\\\\n color: yellow;\\\\n}\\\\nh3 {\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "four.css.map": "{"version":3,"file":"four.css","mappings":"AAAA,GACE,WACF,CACA,GACE,UACF","sources":["webpack:///./test/bar2.css"],"sourcesContent":["h1 {\\r\\n color: green;\\r\\n}\\r\\nh2 {\\r\\n color: yellow;\\r\\n}\\r\\nh3 {\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", "one.css": "a{text-align:center} /*# sourceMappingURL=one.css.map*/", - "one.css.map": "{\\"version\\":3,\\"file\\":\\"one.css\\",\\"mappings\\":\\"AAAA,EACE,iBACF\\",\\"sources\\":[\\"webpack:///./test/foo.css\\"],\\"sourcesContent\\":[\\"a {\\\\n text-align: center;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "one.css.map": "{"version":3,"file":"one.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\r\\n text-align: center;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", "three.css": "body{color:red;font-size:20px}a{color:blue} /*# sourceMappingURL=three.css.map*/", - "three.css.map": "{\\"version\\":3,\\"file\\":\\"three.css\\",\\"mappings\\":\\"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF\\",\\"sources\\":[\\"webpack:///./test/bar1.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\nbody {\\\\n color: red;\\\\n font-size: 20px;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "three.css.map": "{"version":3,"file":"three.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\nbody {\\r\\n color: red;\\r\\n font-size: 20px;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", "two.css": "a{text-align:center} /*# sourceMappingURL=two.css.map*/", - "two.css.map": "{\\"version\\":3,\\"file\\":\\"two.css\\",\\"mappings\\":\\"AAAA,EACE,iBACF\\",\\"sources\\":[\\"webpack:///./test/foo.css\\"],\\"sourcesContent\\":[\\"a {\\\\n text-align: center;\\\\n}\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "two.css.map": "{"version":3,"file":"two.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\r\\n text-align: center;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", } `; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: errors 1`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: errors 1`] = `[]`; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: errors 2`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: errors 2`] = `[]`; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: warnings 1`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: warnings 1`] = `[]`; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: warnings 2`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option and source maps: warnings 2`] = `[]`; exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: assets 1`] = ` -Object { +{ "five.css": "body{color:red;font-size:20px}a{color:blue}", "four.css": "h1{color:green}h2{color:#ff0}", "one.css": "a{text-align:center}", @@ -219,7 +219,7 @@ Object { `; exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: assets 2`] = ` -Object { +{ "five.css": "body{color:red;font-size:20px}a{color:blue}", "four.css": "h1{color:green}h2{color:#ff0}", "one.css": "a{text-align:center}", @@ -228,16 +228,16 @@ Object { } `; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: errors 1`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: errors 1`] = `[]`; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: errors 2`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: errors 2`] = `[]`; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: warnings 1`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: warnings 1`] = `[]`; -exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: warnings 2`] = `Array []`; +exports[`"cache" option should work with the "filesystem" value for the "cache.type" option: warnings 2`] = `[]`; exports[`"cache" option should work with the "memory" value for the "cache.type" option: assets 1`] = ` -Object { +{ "five.css": "body{color:red;font-size:20px}a{color:blue}", "four.css": "h1{color:green}h2{color:#ff0}", "one.css": "a{text-align:center}", @@ -247,7 +247,7 @@ Object { `; exports[`"cache" option should work with the "memory" value for the "cache.type" option: assets 2`] = ` -Object { +{ "five.css": "body{color:red;font-size:20px}a{color:blue}", "four.css": "h1{color:green}h2{color:#ff0}", "one.css": "a{text-align:center}", @@ -256,10 +256,10 @@ Object { } `; -exports[`"cache" option should work with the "memory" value for the "cache.type" option: errors 1`] = `Array []`; +exports[`"cache" option should work with the "memory" value for the "cache.type" option: errors 1`] = `[]`; -exports[`"cache" option should work with the "memory" value for the "cache.type" option: errors 2`] = `Array []`; +exports[`"cache" option should work with the "memory" value for the "cache.type" option: errors 2`] = `[]`; -exports[`"cache" option should work with the "memory" value for the "cache.type" option: warnings 1`] = `Array []`; +exports[`"cache" option should work with the "memory" value for the "cache.type" option: warnings 1`] = `[]`; -exports[`"cache" option should work with the "memory" value for the "cache.type" option: warnings 2`] = `Array []`; +exports[`"cache" option should work with the "memory" value for the "cache.type" option: warnings 2`] = `[]`; diff --git a/test/__snapshots__/exclude-option.test.js.snap b/test/__snapshots__/exclude-option.test.js.snap index fcc9447..d68cfea 100644 --- a/test/__snapshots__/exclude-option.test.js.snap +++ b/test/__snapshots__/exclude-option.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`exclude option should match snapshot for a single RegExp value excluded1: assets 1`] = ` -Object { +{ "entry.css": "body{color:red}a{color:blue}", "excluded1.css": "a { text-align: center; @@ -12,12 +12,12 @@ Object { } `; -exports[`exclude option should match snapshot for a single RegExp value excluded1: errors 1`] = `Array []`; +exports[`exclude option should match snapshot for a single RegExp value excluded1: errors 1`] = `[]`; -exports[`exclude option should match snapshot for a single RegExp value excluded1: warnings 1`] = `Array []`; +exports[`exclude option should match snapshot for a single RegExp value excluded1: warnings 1`] = `[]`; exports[`exclude option should match snapshot for a single String value excluded1: assets 1`] = ` -Object { +{ "entry.css": "body{color:red}a{color:blue}", "excluded1.css": "a { text-align: center; @@ -28,12 +28,12 @@ Object { } `; -exports[`exclude option should match snapshot for a single String value excluded1: errors 1`] = `Array []`; +exports[`exclude option should match snapshot for a single String value excluded1: errors 1`] = `[]`; -exports[`exclude option should match snapshot for a single String value excluded1: warnings 1`] = `Array []`; +exports[`exclude option should match snapshot for a single String value excluded1: warnings 1`] = `[]`; exports[`exclude option should match snapshot for multiple RegExp values excluded1 and excluded2: assets 1`] = ` -Object { +{ "entry.css": "body{color:red}a{color:blue}", "excluded1.css": "a { text-align: center; @@ -55,12 +55,12 @@ a { } `; -exports[`exclude option should match snapshot for multiple RegExp values excluded1 and excluded2: errors 1`] = `Array []`; +exports[`exclude option should match snapshot for multiple RegExp values excluded1 and excluded2: errors 1`] = `[]`; -exports[`exclude option should match snapshot for multiple RegExp values excluded1 and excluded2: warnings 1`] = `Array []`; +exports[`exclude option should match snapshot for multiple RegExp values excluded1 and excluded2: warnings 1`] = `[]`; exports[`exclude option should match snapshot for multiple String values excluded1 and excluded2: assets 1`] = ` -Object { +{ "entry.css": "body{color:red}a{color:blue}", "excluded1.css": "a { text-align: center; @@ -82,6 +82,6 @@ a { } `; -exports[`exclude option should match snapshot for multiple String values excluded1 and excluded2: errors 1`] = `Array []`; +exports[`exclude option should match snapshot for multiple String values excluded1 and excluded2: errors 1`] = `[]`; -exports[`exclude option should match snapshot for multiple String values excluded1 and excluded2: warnings 1`] = `Array []`; +exports[`exclude option should match snapshot for multiple String values excluded1 and excluded2: warnings 1`] = `[]`; diff --git a/test/__snapshots__/include-option.test.js.snap b/test/__snapshots__/include-option.test.js.snap index 2ef25d1..fffb56c 100644 --- a/test/__snapshots__/include-option.test.js.snap +++ b/test/__snapshots__/include-option.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`include option should match snapshot for a single RegExp value included1: assets 1`] = ` -Object { +{ "entry.css": "body { color: red; } @@ -25,12 +25,12 @@ a { } `; -exports[`include option should match snapshot for a single RegExp value included1: errors 1`] = `Array []`; +exports[`include option should match snapshot for a single RegExp value included1: errors 1`] = `[]`; -exports[`include option should match snapshot for a single RegExp value included1: warnings 1`] = `Array []`; +exports[`include option should match snapshot for a single RegExp value included1: warnings 1`] = `[]`; exports[`include option should match snapshot for a single String value included1: assets 1`] = ` -Object { +{ "entry.css": "body { color: red; } @@ -54,12 +54,12 @@ a { } `; -exports[`include option should match snapshot for a single String value included1: errors 1`] = `Array []`; +exports[`include option should match snapshot for a single String value included1: errors 1`] = `[]`; -exports[`include option should match snapshot for a single String value included1: warnings 1`] = `Array []`; +exports[`include option should match snapshot for a single String value included1: warnings 1`] = `[]`; exports[`include option should match snapshot for multiple RegExp values included1 and included2: assets 1`] = ` -Object { +{ "entry.css": "body { color: red; } @@ -72,12 +72,12 @@ a { } `; -exports[`include option should match snapshot for multiple RegExp values included1 and included2: errors 1`] = `Array []`; +exports[`include option should match snapshot for multiple RegExp values included1 and included2: errors 1`] = `[]`; -exports[`include option should match snapshot for multiple RegExp values included1 and included2: warnings 1`] = `Array []`; +exports[`include option should match snapshot for multiple RegExp values included1 and included2: warnings 1`] = `[]`; exports[`include option should match snapshot for multiple String values included1 and included2: assets 1`] = ` -Object { +{ "entry.css": "body { color: red; } @@ -90,6 +90,6 @@ a { } `; -exports[`include option should match snapshot for multiple String values included1 and included2: errors 1`] = `Array []`; +exports[`include option should match snapshot for multiple String values included1 and included2: errors 1`] = `[]`; -exports[`include option should match snapshot for multiple String values included1 and included2: warnings 1`] = `Array []`; +exports[`include option should match snapshot for multiple String values included1 and included2: warnings 1`] = `[]`; diff --git a/test/__snapshots__/minify-option.test.js.snap b/test/__snapshots__/minify-option.test.js.snap index 5b29710..d89ba7b 100644 --- a/test/__snapshots__/minify-option.test.js.snap +++ b/test/__snapshots__/minify-option.test.js.snap @@ -1,15 +1,15 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`"minify" option should work and allow to return errors and warnings from custom function: assets 1`] = ` -Object { +{ "foo.css": ".test { color: red; }", } `; -exports[`"minify" option should work and allow to return errors and warnings from custom function: error 1`] = `Array []`; +exports[`"minify" option should work and allow to return errors and warnings from custom function: error 1`] = `[]`; exports[`"minify" option should work and allow to return errors and warnings from custom function: warning 1`] = ` -Array [ +[ "Error: foo.css from Css Minimizer plugin Error 1", "Error: foo.css from Css Minimizer plugin @@ -22,7 +22,7 @@ Warning 2", `; exports[`"minify" option should work if minify is array && minimizerOptions is array: assets 1`] = ` -Object { +{ "foo.css": "body { font-weight: bold; } @@ -44,16 +44,16 @@ body a { .three{background: white;} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA;EACE;ACCF;;AAAA;EACE;AAGF;AAFE;EACE;AAIJ,C\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA;EACE;ACCF;;AAAA;EACE;AAGF;AAFE;EACE;AAIJ,C","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work if minify is array && minimizerOptions is array: error 1`] = `Array []`; +exports[`"minify" option should work if minify is array && minimizerOptions is array: error 1`] = `[]`; -exports[`"minify" option should work if minify is array && minimizerOptions is array: warning 1`] = `Array []`; +exports[`"minify" option should work if minify is array && minimizerOptions is array: warning 1`] = `[]`; exports[`"minify" option should work if minify is array && minimizerOptions is object: assets 1`] = ` -Object { +{ "foo.css": "/*HERE*/.one{background: white;} body { font-weight: bold; @@ -74,16 +74,16 @@ body a { .three{color: red;} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA;EACE;ACCF;;AAAA;EACE;AAGF;AAFE;EACE;AAIJ,C\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA;EACE;ACCF;;AAAA;EACE;AAGF;AAFE;EACE;AAIJ,C","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work if minify is array && minimizerOptions is object: error 1`] = `Array []`; +exports[`"minify" option should work if minify is array && minimizerOptions is object: error 1`] = `[]`; -exports[`"minify" option should work if minify is array && minimizerOptions is object: warning 1`] = `Array []`; +exports[`"minify" option should work if minify is array && minimizerOptions is object: warning 1`] = `[]`; exports[`"minify" option should work throw an error if minimizer function doesn't return #2: assets 1`] = ` -Object { +{ "foo.css": "body { font-weight: bold; } @@ -99,16 +99,16 @@ body a { `; exports[`"minify" option should work throw an error if minimizer function doesn't return #2: error 1`] = ` -Array [ +[ "Error: foo.css from Css Minimizer plugin Error: minimizer function doesn't return the 'code' property or result is not a string value", ] `; -exports[`"minify" option should work throw an error if minimizer function doesn't return #2: warning 1`] = `Array []`; +exports[`"minify" option should work throw an error if minimizer function doesn't return #2: warning 1`] = `[]`; exports[`"minify" option should work throw an error if minimizer function doesn't return: assets 1`] = ` -Object { +{ "foo.css": "body { font-weight: bold; } @@ -124,313 +124,313 @@ body a { `; exports[`"minify" option should work throw an error if minimizer function doesn't return: error 1`] = ` -Array [ +[ "Error: foo.css from Css Minimizer plugin Error: minimizer function doesn't return the 'code' property or result is not a string value", ] `; -exports[`"minify" option should work throw an error if minimizer function doesn't return: warning 1`] = `Array []`; +exports[`"minify" option should work throw an error if minimizer function doesn't return: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps #2: assets 1`] = ` -Object { +{ "foo/foo.css": "body{font-weight:700}body{color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo/foo.css\\",\\"mappings\\":\\"AAAA,KACE,YAAa,ICCf,KACE,MAAO,IACP,OACE,WAAY\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KACE,YAAa,ICCf,KACE,MAAO,IACP,OACE,WAAY","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps #2: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps #2: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps #2: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps #2: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:#00f} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,KACE,MAAO,IAET,EACE,MAAO\\",\\"sources\\":[\\"webpack:///./foo.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,MAAO,IAET,EACE,MAAO","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier and generate source maps: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:#00f}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" minifier: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps #2: assets 1`] = ` -Object { +{ "foo/foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo/foo.css\\",\\"mappings\\":\\"AAAA,KCGE,SAAU,CDFV,eCCF,CAEE,OACE,iBAIJ\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KCGE,SAAU,CDFV,eCCF,CAEE,OACE,iBAIJ","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps #2: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps #2: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps #2: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps #2: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: assets 1`] = ` -Object { +{ "foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,KCGE,SAAU,CDFV,eCCF,CAEE,OACE,iBAIJ\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KCGE,SAAU,CDFV,eCCF,CAEE,OACE,iBAIJ","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: warning 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and parser option as "String": entry.js.map 1`] = `"{\\"version\\":3,\\"file\\":\\"entry.js\\",\\"mappings\\":\\";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;ACNO\\",\\"sources\\":[\\"webpack:///webpack/bootstrap\\",\\"webpack:///webpack/runtime/define property getters\\",\\"webpack:///webpack/runtime/hasOwnProperty shorthand\\",\\"webpack:///webpack/runtime/make namespace object\\",\\"webpack:///./sugarss.js\\"],\\"sourcesContent\\":[\\"// The require scope\\\\nvar __webpack_require__ = {};\\\\n\\\\n\\",\\"// define getter functions for harmony exports\\\\n__webpack_require__.d = (exports, definition) => {\\\\n\\\\tfor(var key in definition) {\\\\n\\\\t\\\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\\\n\\\\t\\\\t\\\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\\\n\\\\t\\\\t}\\\\n\\\\t}\\\\n};\\",\\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\\",\\"// define __esModule on exports\\\\n__webpack_require__.r = (exports) => {\\\\n\\\\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\\\\n\\\\t\\\\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\\\\n\\\\t}\\\\n\\\\tObject.defineProperty(exports, '__esModule', { value: true });\\\\n};\\",\\"export const foo = 'foo';\\\\n\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}"`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and parser option as "String": entry.js.map 1`] = `"{"version":3,"file":"entry.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;ACNO","sources":["webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///./sugarss.js"],"sourcesContent":["// The require scope\\nvar __webpack_require__ = {};\\n\\n","// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\\n__webpack_require__.r = (exports) => {\\n\\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\\n\\t\\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\\n\\t}\\n\\tObject.defineProperty(exports, '__esModule', { value: true });\\n};","export const foo = 'foo';\\r\\n"],"names":[],"sourceRoot":""}"`; exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and parser option as "String": index.sss 1`] = `"a{color:#000}"`; exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier: assets 1`] = ` -Object { +{ "foo.css": "body{color:red;font-weight:700}body a{text-align:center}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers and generate source maps: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:#00f} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,KACE,MAAM,IAER,EACE,MAAM\\",\\"sources\\":[\\"webpack:///./foo.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,MAAM,IAER,EACE,MAAM","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers and generate source maps: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers and generate source maps: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers and generate source maps: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers and generate source maps: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:#00f}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "CssMinimizerPlugin.cssoMinify" and "CssMinimizerPlugin.cleanCssMinify" minifiers: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map: assets 1`] = ` -Object { +{ "foo.css": "body{font-weight:700;color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source map: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source maps #2: assets 1`] = ` -Object { +{ "foo/foo.css": "body{font-weight:700;color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo/foo.css\\",\\"mappings\\":\\"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source maps #2: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source maps #2: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source maps #2: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier and generate source maps #2: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier: assets 1`] = ` -Object { +{ "foo.css": "body{font-weight:700;color:red}body a{text-align:center}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifier: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and emit warnings: assets 1`] = ` -Object { +{ "foo.css": "width: calc(100px + 100);{} ", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and emit warnings: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and emit warnings: error 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and emit warnings: warning 1`] = ` -Array [ +[ "Warning: foo.css from Css Minimizer plugin Expected identifier but found whitespace webpack://./wrong-calc.css:1:0", "Warning: foo.css from Css Minimizer plugin -Unexpected \\"calc(\\" webpack://./wrong-calc.css:1:0", +Unexpected "calc(" webpack://./wrong-calc.css:1:0", ] `; exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps #2: assets 1`] = ` -Object { +{ "foo/foo.css": "body{font-weight:700}body{color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo/foo.css\\",\\"mappings\\":\\"AAAA,KACE,gBCCF,KACE,UACA,OACE\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KACE,gBCCF,KACE,UACA,OACE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps #2: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps #2: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps #2: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps #2: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:#00f} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,KACE,UAEF,EACE\\",\\"sources\\":[\\"webpack:///./foo.css\\"],\\"sourcesContent\\":[\\"body {\\\\n color: red;\\\\n}\\\\na {\\\\n color: blue;\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,UAEF,EACE","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier and generate source maps: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier: assets 1`] = ` -Object { +{ "foo.css": "body{font-weight:700}body{color:red}body a{text-align:center} ", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" minifier: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps #2: assets 1`] = ` -Object { +{ "foo/foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo/foo.css\\",\\"mappings\\":\\"AAAA,+BCIE\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps #2: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps #2: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps #2: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps #2: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps: assets 1`] = ` -Object { +{ "foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,+BCIE\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and generate source maps: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and options for "lightningcss": assets 1`] = ` -Object { +{ "foo.css": "table.colortable td{text-align:center}table.colortable td.c{text-transform:uppercase}table.colortable td:first-child,table.colortable td:first-child+td{border:1px solid #000}table.colortable th{text-align:center;color:#fff;background:#000}.example{user-select:none;background:linear-gradient(#fff,#000);transition:all .5s;display:grid}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and options for "lightningcss": error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and options for "lightningcss": error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and options for "lightningcss": warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier and options for "lightningcss": warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier: assets 1`] = ` -Object { +{ "foo.css": "body{color:red;font-weight:700}body a{text-align:center}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify" minifier: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps #2: assets 1`] = ` -Object { +{ "foo/foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo/foo.css\\",\\"mappings\\":\\"AAAA,+BCIE\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps #2: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps #2: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps #2: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps #2: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps: assets 1`] = ` -Object { +{ "foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,+BCIE\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and generate source maps: warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and options for "@parcel/css": assets 1`] = ` -Object { +{ "foo.css": "table.colortable td{text-align:center}table.colortable td.c{text-transform:uppercase}table.colortable td:first-child,table.colortable td:first-child+td{border:1px solid #000}table.colortable th{text-align:center;color:#fff;background:#000}.example{user-select:none;background:linear-gradient(#fff,#000);transition:all .5s;display:grid}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and options for "@parcel/css": error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and options for "@parcel/css": error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and options for "@parcel/css": warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier and options for "@parcel/css": warning 1`] = `[]`; exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier: assets 1`] = ` -Object { +{ "foo.css": "body{color:red;font-weight:700}body a{text-align:center}", } `; -exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier: error 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier: error 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier: warning 1`] = `Array []`; +exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" minifier: warning 1`] = `[]`; exports[`"minify" option should work with "clean-css" minifier: assets 1`] = ` -Object { +{ "foo.css": "body{color:red}a{color:#00f}", } `; -exports[`"minify" option should work with "clean-css" minifier: error 1`] = `Array []`; +exports[`"minify" option should work with "clean-css" minifier: error 1`] = `[]`; -exports[`"minify" option should work with "clean-css" minifier: warning 1`] = `Array []`; +exports[`"minify" option should work with "clean-css" minifier: warning 1`] = `[]`; exports[`"minify" option should work with "csso" minifier: assets 1`] = ` -Object { +{ "foo.css": "body{font-weight:700;color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{\\"version\\":3,\\"file\\":\\"foo.css\\",\\"mappings\\":\\"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB\\",\\"sources\\":[\\"webpack:///./sourcemap/bar.scss\\",\\"webpack:///./sourcemap/foo.scss\\"],\\"sourcesContent\\":[\\"body {\\\\n font-weight: bold;\\\\n}\\",\\"@import 'bar';\\\\n\\\\nbody {\\\\n color: red;\\\\n a {\\\\n text-align: center;\\\\n }\\\\n}\\"],\\"names\\":[],\\"sourceRoot\\":\\"\\"}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", } `; -exports[`"minify" option should work with "csso" minifier: error 1`] = `Array []`; +exports[`"minify" option should work with "csso" minifier: error 1`] = `[]`; -exports[`"minify" option should work with "csso" minifier: warning 1`] = `Array []`; +exports[`"minify" option should work with "csso" minifier: warning 1`] = `[]`; exports[`"minify" option should work with empty code: assets 1`] = ` -Object { +{ "foo.css": "", } `; -exports[`"minify" option should work with empty code: error 1`] = `Array []`; +exports[`"minify" option should work with empty code: error 1`] = `[]`; -exports[`"minify" option should work with empty code: warning 1`] = `Array []`; +exports[`"minify" option should work with empty code: warning 1`] = `[]`; diff --git a/test/__snapshots__/parallel-option.test.js.snap b/test/__snapshots__/parallel-option.test.js.snap index 1882b9e..69075e0 100644 --- a/test/__snapshots__/parallel-option.test.js.snap +++ b/test/__snapshots__/parallel-option.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`parallel option should match snapshot for the "2" value: assets 1`] = ` -Object { +{ "four.css": "body{color:red}a{color:blue}", "one.css": "body{color:red}a{color:blue}", "three.css": "body{color:red}a{color:blue}", @@ -9,12 +9,12 @@ Object { } `; -exports[`parallel option should match snapshot for the "2" value: errors 1`] = `Array []`; +exports[`parallel option should match snapshot for the "2" value: errors 1`] = `[]`; -exports[`parallel option should match snapshot for the "2" value: warnings 1`] = `Array []`; +exports[`parallel option should match snapshot for the "2" value: warnings 1`] = `[]`; exports[`parallel option should match snapshot for the "false" value: assets 1`] = ` -Object { +{ "four.css": "body{color:red}a{color:blue}", "one.css": "body{color:red}a{color:blue}", "three.css": "body{color:red}a{color:blue}", @@ -22,23 +22,23 @@ Object { } `; -exports[`parallel option should match snapshot for the "false" value: errors 1`] = `Array []`; +exports[`parallel option should match snapshot for the "false" value: errors 1`] = `[]`; -exports[`parallel option should match snapshot for the "false" value: warnings 1`] = `Array []`; +exports[`parallel option should match snapshot for the "false" value: warnings 1`] = `[]`; exports[`parallel option should match snapshot for the "true" value and the number of files is less than the number of cores: assets 1`] = ` -Object { +{ "entry-0.css": "body{color:red}a{color:blue}", "entry-1.css": "body{color:red}a{color:blue}", } `; -exports[`parallel option should match snapshot for the "true" value and the number of files is less than the number of cores: errors 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value and the number of files is less than the number of cores: errors 1`] = `[]`; -exports[`parallel option should match snapshot for the "true" value and the number of files is less than the number of cores: warnings 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value and the number of files is less than the number of cores: warnings 1`] = `[]`; exports[`parallel option should match snapshot for the "true" value and the number of files is more than the number of cores: assets 1`] = ` -Object { +{ "eight.css": "body{color:red}a{color:blue}", "five.css": "body{color:red}a{color:blue}", "four.css": "body{color:red}a{color:blue}", @@ -50,12 +50,12 @@ Object { } `; -exports[`parallel option should match snapshot for the "true" value and the number of files is more than the number of cores: errors 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value and the number of files is more than the number of cores: errors 1`] = `[]`; -exports[`parallel option should match snapshot for the "true" value and the number of files is more than the number of cores: warnings 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value and the number of files is more than the number of cores: warnings 1`] = `[]`; exports[`parallel option should match snapshot for the "true" value and the number of files is same than the number of cores: assets 1`] = ` -Object { +{ "entry-0.css": "body{color:red}a{color:blue}", "entry-1.css": "body{color:red}a{color:blue}", "entry-2.css": "body{color:red}a{color:blue}", @@ -63,22 +63,22 @@ Object { } `; -exports[`parallel option should match snapshot for the "true" value and the number of files is same than the number of cores: errors 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value and the number of files is same than the number of cores: errors 1`] = `[]`; -exports[`parallel option should match snapshot for the "true" value and the number of files is same than the number of cores: warnings 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value and the number of files is same than the number of cores: warnings 1`] = `[]`; exports[`parallel option should match snapshot for the "true" value when only one file passed: assets 1`] = ` -Object { +{ "main.css": "body{color:red}a{color:blue}", } `; -exports[`parallel option should match snapshot for the "true" value when only one file passed: errors 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value when only one file passed: errors 1`] = `[]`; -exports[`parallel option should match snapshot for the "true" value when only one file passed: warnings 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value when only one file passed: warnings 1`] = `[]`; exports[`parallel option should match snapshot for the "true" value: assets 1`] = ` -Object { +{ "four.css": "body{color:red}a{color:blue}", "one.css": "body{color:red}a{color:blue}", "three.css": "body{color:red}a{color:blue}", @@ -86,12 +86,12 @@ Object { } `; -exports[`parallel option should match snapshot for the "true" value: errors 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value: errors 1`] = `[]`; -exports[`parallel option should match snapshot for the "true" value: warnings 1`] = `Array []`; +exports[`parallel option should match snapshot for the "true" value: warnings 1`] = `[]`; exports[`parallel option should match snapshot when a value is not specify: assets 1`] = ` -Object { +{ "four.css": "body{color:red}a{color:blue}", "one.css": "body{color:red}a{color:blue}", "three.css": "body{color:red}a{color:blue}", @@ -99,6 +99,6 @@ Object { } `; -exports[`parallel option should match snapshot when a value is not specify: errors 1`] = `Array []`; +exports[`parallel option should match snapshot when a value is not specify: errors 1`] = `[]`; -exports[`parallel option should match snapshot when a value is not specify: warnings 1`] = `Array []`; +exports[`parallel option should match snapshot when a value is not specify: warnings 1`] = `[]`; diff --git a/test/__snapshots__/sourceMap-option.test.js.snap b/test/__snapshots__/sourceMap-option.test.js.snap index 364a5f4..06315ae 100644 --- a/test/__snapshots__/sourceMap-option.test.js.snap +++ b/test/__snapshots__/sourceMap-option.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`when applied with "sourceMap" option should work and emit warning on valid sourcemap and minimizer error: errors 1`] = ` -Array [ +[ "Error: broken-source-map.css from Css Minimizer plugin error-plugin: /broken-source-map.css:1:7: Postcss error [test:1,5][broken-source-map.css:1,7]", "Error: dist/entry2.css from Css Minimizer plugin @@ -9,10 +9,10 @@ error-plugin: /dist/entry2.css:10:3: Postcss error [webpack://./sourcemap/foo.cs ] `; -exports[`when applied with "sourceMap" option should work and emit warning on valid sourcemap and minimizer error: warnings 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work and emit warning on valid sourcemap and minimizer error: warnings 1`] = `[]`; exports[`when applied with "sourceMap" option should work and emit warnings on broken sourcemaps: assets 1`] = ` -Object { +{ "broken-source-map.css": ".bar{color:red};", "dist/entry2.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=entry2.css.map*/", @@ -25,8 +25,8 @@ Object { "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" ], "names": [], "sourceRoot": "" @@ -34,16 +34,16 @@ Object { } `; -exports[`when applied with "sourceMap" option should work and emit warnings on broken sourcemaps: errors 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work and emit warnings on broken sourcemaps: errors 1`] = `[]`; exports[`when applied with "sourceMap" option should work and emit warnings on broken sourcemaps: warnings 1`] = ` -Array [ +[ "Error: broken-source-map.css contains invalid source map", ] `; exports[`when applied with "sourceMap" option should work with SourceMapDevToolPlugin plugin): assets 1`] = ` -Object { +{ "dist/entry.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=https://example.com/project/sourcemaps/entry.css.map*/", "dist/entry2.css": "body{color:red;font-weight:700}body a{text-align:center} @@ -57,8 +57,8 @@ Object { "webpack:///./sourcemap/foo.scss" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}" ], "names": [], "sourceRoot": "" @@ -72,8 +72,8 @@ Object { "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" ], "names": [], "sourceRoot": "" @@ -81,12 +81,12 @@ Object { } `; -exports[`when applied with "sourceMap" option should work with SourceMapDevToolPlugin plugin): errors 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work with SourceMapDevToolPlugin plugin): errors 1`] = `[]`; -exports[`when applied with "sourceMap" option should work with SourceMapDevToolPlugin plugin): warnings 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work with SourceMapDevToolPlugin plugin): warnings 1`] = `[]`; exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "false" value: assets 1`] = ` -Object { +{ "entry.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=entry.css.map*/", "entry.css.map": { @@ -98,8 +98,8 @@ Object { "webpack:///./sourcemap/foo.scss" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}" ], "names": [], "sourceRoot": "" @@ -115,8 +115,8 @@ Object { "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" ], "names": [], "sourceRoot": "" @@ -124,12 +124,12 @@ Object { } `; -exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "false" value: errors 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "false" value: errors 1`] = `[]`; -exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "false" value: warnings 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "false" value: warnings 1`] = `[]`; exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "true" value: assets 1`] = ` -Object { +{ "entry.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=entry.css.map*/", "entry.css.map": { @@ -141,8 +141,8 @@ Object { "webpack:///./sourcemap/foo.scss" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}" ], "names": [], "sourceRoot": "" @@ -158,8 +158,8 @@ Object { "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" ], "names": [], "sourceRoot": "" @@ -167,12 +167,12 @@ Object { } `; -exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "true" value: errors 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "true" value: errors 1`] = `[]`; -exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "true" value: warnings 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work with the "devtool" option and the "parallel" option with "true" value: warnings 1`] = `[]`; exports[`when applied with "sourceMap" option should work with the "devtool" option: assets 1`] = ` -Object { +{ "entry.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=entry.css.map*/", "entry.css.map": { @@ -184,8 +184,8 @@ Object { "webpack:///./sourcemap/foo.scss" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}" ], "names": [], "sourceRoot": "" @@ -201,8 +201,8 @@ Object { "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\n font-weight: bold;\\n}", - "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" + "body {\\r\\n font-weight: bold;\\r\\n}", + "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" ], "names": [], "sourceRoot": "" @@ -210,6 +210,6 @@ Object { } `; -exports[`when applied with "sourceMap" option should work with the "devtool" option: errors 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work with the "devtool" option: errors 1`] = `[]`; -exports[`when applied with "sourceMap" option should work with the "devtool" option: warnings 1`] = `Array []`; +exports[`when applied with "sourceMap" option should work with the "devtool" option: warnings 1`] = `[]`; diff --git a/test/__snapshots__/test-option.test.js.snap b/test/__snapshots__/test-option.test.js.snap index bab6a2b..130e3e6 100644 --- a/test/__snapshots__/test-option.test.js.snap +++ b/test/__snapshots__/test-option.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`when applied with "test" option matches snapshot for a single "test" value (RegExp): assets 1`] = ` -Object { +{ "bar1.css": "body{color:red;font-size:20px}a{color:blue}", "bar2.css": "h1{color:green}h2{color:#ff0}", "foo.css": "a { @@ -12,12 +12,12 @@ Object { } `; -exports[`when applied with "test" option matches snapshot for a single "test" value (RegExp): errors 1`] = `Array []`; +exports[`when applied with "test" option matches snapshot for a single "test" value (RegExp): errors 1`] = `[]`; -exports[`when applied with "test" option matches snapshot for a single "test" value (RegExp): warnings 1`] = `Array []`; +exports[`when applied with "test" option matches snapshot for a single "test" value (RegExp): warnings 1`] = `[]`; exports[`when applied with "test" option matches snapshot for multiple "test" value (RegExp): assets 1`] = ` -Object { +{ "bar1.css": "body{color:red;font-size:20px}a{color:blue}", "bar2.css": "h1{color:green}h2{color:#ff0}", "foo.css": "a { @@ -28,18 +28,18 @@ Object { } `; -exports[`when applied with "test" option matches snapshot for multiple "test" value (RegExp): errors 1`] = `Array []`; +exports[`when applied with "test" option matches snapshot for multiple "test" value (RegExp): errors 1`] = `[]`; -exports[`when applied with "test" option matches snapshot for multiple "test" value (RegExp): warnings 1`] = `Array []`; +exports[`when applied with "test" option matches snapshot for multiple "test" value (RegExp): warnings 1`] = `[]`; exports[`when applied with "test" option matches snapshot with empty value: assets 1`] = ` -Object { +{ "bar1.css": "body{color:red;font-size:20px}a{color:blue}", "bar2.css": "h1{color:green}h2{color:#ff0}", "foo.css": "a{text-align:center}", } `; -exports[`when applied with "test" option matches snapshot with empty value: errors 1`] = `Array []`; +exports[`when applied with "test" option matches snapshot with empty value: errors 1`] = `[]`; -exports[`when applied with "test" option matches snapshot with empty value: warnings 1`] = `Array []`; +exports[`when applied with "test" option matches snapshot with empty value: warnings 1`] = `[]`; diff --git a/test/__snapshots__/warningsFilter-option.test.js.snap b/test/__snapshots__/warningsFilter-option.test.js.snap index c214ef0..8486d18 100644 --- a/test/__snapshots__/warningsFilter-option.test.js.snap +++ b/test/__snapshots__/warningsFilter-option.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`warningsFilter option should match snapshot for a "function" value: assets 1`] = ` -Object { +{ "bar1.css": "body { color: red; } @@ -32,10 +32,10 @@ h3 { } `; -exports[`warningsFilter option should match snapshot for a "function" value: errors 1`] = `Array []`; +exports[`warningsFilter option should match snapshot for a "function" value: errors 1`] = `[]`; exports[`warningsFilter option should match snapshot for a "function" value: warnings 1`] = ` -Array [ +[ "Warning: bar1.css from Css Minimizer plugin [warning-plugin] Warning from bar1.css", "Warning: bar2.css from Css Minimizer plugin diff --git a/test/__snapshots__/worker.test.js.snap b/test/__snapshots__/worker.test.js.snap index 06f2af4..6c5fc70 100644 --- a/test/__snapshots__/worker.test.js.snap +++ b/test/__snapshots__/worker.test.js.snap @@ -1,25 +1,25 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`worker should emit error: error 1`] = ` -Array [ +[ "/entry.css:1:1: Unknown word", ] `; exports[`worker should minify css: result 1`] = ` -Object { - "errors": Array [], - "outputs": Array [ - Object { +{ + "errors": [], + "outputs": [ + { "code": ".foo{color:red}.bar{color:coral}", - "map": Object { + "map": { "file": "entry.css", "mappings": "AAAA,KAAK,SAAU,CACf,KAAK,WAAY", - "names": Array [], - "sources": Array [ + "names": [], + "sources": [ "entry.css", ], - "sourcesContent": Array [ + "sourcesContent": [ ".foo{color:red;} .bar{color:coral;}", ], @@ -27,24 +27,24 @@ Object { }, }, ], - "warnings": Array [], + "warnings": [], } `; exports[`worker should work inputSourceMap as prev: result 1`] = ` -Object { - "errors": Array [], - "outputs": Array [ - Object { +{ + "errors": [], + "outputs": [ + { "code": ".foo{color:red}.bar{color:coral}", - "map": Object { + "map": { "file": "entry.css", "mappings": "AAAA,KAAK,SAAU,CACf,KAAK,WAAY", - "names": Array [], - "sources": Array [ + "names": [], + "sources": [ "entry.css", ], - "sourcesContent": Array [ + "sourcesContent": [ ".foo{color:red;} .bar{color:coral;}", ], @@ -52,19 +52,19 @@ Object { }, }, ], - "warnings": Array [], + "warnings": [], } `; exports[`worker should work options.minify function: result 1`] = ` -Object { - "errors": Array [], - "outputs": Array [ - Object { +{ + "errors": [], + "outputs": [ + { "code": ".minify {};", "map": undefined, }, ], - "warnings": Array [], + "warnings": [], } `; From e9f7c9ffcd4c77b386106d9571b7c02cc03cc2d9 Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Sun, 18 Sep 2022 07:47:32 +0530 Subject: [PATCH 2/4] test: update snaps --- .../CssMinimizerPlugin.test.js.snap | 12 +++---- test/__snapshots__/cache-option.test.js.snap | 20 +++++------ test/__snapshots__/minify-option.test.js.snap | 34 +++++++++--------- .../sourceMap-option.test.js.snap | 36 +++++++++---------- 4 files changed, 51 insertions(+), 51 deletions(-) diff --git a/test/__snapshots__/CssMinimizerPlugin.test.js.snap b/test/__snapshots__/CssMinimizerPlugin.test.js.snap index c500298..c58ff23 100644 --- a/test/__snapshots__/CssMinimizerPlugin.test.js.snap +++ b/test/__snapshots__/CssMinimizerPlugin.test.js.snap @@ -125,7 +125,7 @@ exports[`CssMinimizerPlugin should work and do not use memory cache when the "ca exports[`CssMinimizerPlugin should work and generate real content hash: assets 1`] = ` { - "entry.ee68cb428fa1feaa2c48.e55d247f17ebcb48bd51.47e5afd8283b82390673.css": "body{color:red}a{color:blue}", + "entry.ee68cb428fa1feaa2c48.072159461f23c2c047e9.0e6907f00e0eaf46a2f9.css": "body{color:red}a{color:blue}", } `; @@ -215,7 +215,7 @@ exports[`CssMinimizerPlugin should work and use memory cache when the "cache" op exports[`CssMinimizerPlugin should work and use memory cache when the "cache" option is "true": warnings 2`] = `[]`; -exports[`CssMinimizerPlugin should work with assets using querystring: entry.css.map?v=test 1`] = `"{"version":3,"file":"entry.css?v=test","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///entry.css%3Fv=test"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\n"],"names":[],"sourceRoot":""}"`; +exports[`CssMinimizerPlugin should work with assets using querystring: entry.css.map?v=test 1`] = `"{"version":3,"file":"entry.css?v=test","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///entry.css%3Fv=test"],"sourcesContent":["body {\\n color: red;\\n}\\na {\\n color: blue;\\n}\\n"],"names":[],"sourceRoot":""}"`; exports[`CssMinimizerPlugin should work with assets using querystring: entry.css?v=test 1`] = ` "body{color:red}a{color:blue} @@ -236,7 +236,7 @@ exports[`CssMinimizerPlugin should work with source map and use memory cache whe { "foo.css": "body{color:red}a{color:blue} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\n color: red;\\n}\\na {\\n color: blue;\\n}"],"names":[],"sourceRoot":""}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } @@ -246,7 +246,7 @@ exports[`CssMinimizerPlugin should work with source map and use memory cache whe { "foo.css": "a,body{color:red}a{color:blue} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,OACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,OACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\n color: red;\\n}\\na {\\n color: blue;\\n}"],"names":[],"sourceRoot":""}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } @@ -264,7 +264,7 @@ exports[`CssMinimizerPlugin should work with source map and use memory cache whe { "foo.css": "body{color:red}a{color:blue} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\n color: red;\\n}\\na {\\n color: blue;\\n}"],"names":[],"sourceRoot":""}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } @@ -274,7 +274,7 @@ exports[`CssMinimizerPlugin should work with source map and use memory cache whe { "foo.css": "body{color:red}a{color:blue} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,SACF,CACA,EACE,UACF","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\n color: red;\\n}\\na {\\n color: blue;\\n}"],"names":[],"sourceRoot":""}", "style-2.css": "a{color:coral}", "style.css": "a{color:red}", } diff --git a/test/__snapshots__/cache-option.test.js.snap b/test/__snapshots__/cache-option.test.js.snap index 447306e..ffc37ea 100644 --- a/test/__snapshots__/cache-option.test.js.snap +++ b/test/__snapshots__/cache-option.test.js.snap @@ -164,19 +164,19 @@ exports[`"cache" option should work with the "filesystem" value for the "cache.t { "five.css": "body{color:red;font-size:20px}a{color:blue} /*# sourceMappingURL=five.css.map*/", - "five.css.map": "{"version":3,"file":"five.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\nbody {\\r\\n color: red;\\r\\n font-size: 20px;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "five.css.map": "{"version":3,"file":"five.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\n color: red;\\n}\\nbody {\\n color: red;\\n font-size: 20px;\\n}\\na {\\n color: blue;\\n}\\n"],"names":[],"sourceRoot":""}", "four.css": "h1{color:green}h2{color:#ff0} /*# sourceMappingURL=four.css.map*/", - "four.css.map": "{"version":3,"file":"four.css","mappings":"AAAA,GACE,WACF,CACA,GACE,UACF","sources":["webpack:///./test/bar2.css"],"sourcesContent":["h1 {\\r\\n color: green;\\r\\n}\\r\\nh2 {\\r\\n color: yellow;\\r\\n}\\r\\nh3 {\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "four.css.map": "{"version":3,"file":"four.css","mappings":"AAAA,GACE,WACF,CACA,GACE,UACF","sources":["webpack:///./test/bar2.css"],"sourcesContent":["h1 {\\n color: green;\\n}\\nh2 {\\n color: yellow;\\n}\\nh3 {\\n}\\n"],"names":[],"sourceRoot":""}", "one.css": "a{text-align:center} /*# sourceMappingURL=one.css.map*/", - "one.css.map": "{"version":3,"file":"one.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\r\\n text-align: center;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "one.css.map": "{"version":3,"file":"one.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\n text-align: center;\\n}\\n"],"names":[],"sourceRoot":""}", "three.css": "body{color:red;font-size:20px}a{color:blue} /*# sourceMappingURL=three.css.map*/", - "three.css.map": "{"version":3,"file":"three.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\nbody {\\r\\n color: red;\\r\\n font-size: 20px;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "three.css.map": "{"version":3,"file":"three.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\n color: red;\\n}\\nbody {\\n color: red;\\n font-size: 20px;\\n}\\na {\\n color: blue;\\n}\\n"],"names":[],"sourceRoot":""}", "two.css": "a{text-align:center} /*# sourceMappingURL=two.css.map*/", - "two.css.map": "{"version":3,"file":"two.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\r\\n text-align: center;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "two.css.map": "{"version":3,"file":"two.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\n text-align: center;\\n}\\n"],"names":[],"sourceRoot":""}", } `; @@ -184,19 +184,19 @@ exports[`"cache" option should work with the "filesystem" value for the "cache.t { "five.css": "body{color:red;font-size:20px}a{color:blue} /*# sourceMappingURL=five.css.map*/", - "five.css.map": "{"version":3,"file":"five.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\nbody {\\r\\n color: red;\\r\\n font-size: 20px;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "five.css.map": "{"version":3,"file":"five.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\n color: red;\\n}\\nbody {\\n color: red;\\n font-size: 20px;\\n}\\na {\\n color: blue;\\n}\\n"],"names":[],"sourceRoot":""}", "four.css": "h1{color:green}h2{color:#ff0} /*# sourceMappingURL=four.css.map*/", - "four.css.map": "{"version":3,"file":"four.css","mappings":"AAAA,GACE,WACF,CACA,GACE,UACF","sources":["webpack:///./test/bar2.css"],"sourcesContent":["h1 {\\r\\n color: green;\\r\\n}\\r\\nh2 {\\r\\n color: yellow;\\r\\n}\\r\\nh3 {\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "four.css.map": "{"version":3,"file":"four.css","mappings":"AAAA,GACE,WACF,CACA,GACE,UACF","sources":["webpack:///./test/bar2.css"],"sourcesContent":["h1 {\\n color: green;\\n}\\nh2 {\\n color: yellow;\\n}\\nh3 {\\n}\\n"],"names":[],"sourceRoot":""}", "one.css": "a{text-align:center} /*# sourceMappingURL=one.css.map*/", - "one.css.map": "{"version":3,"file":"one.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\r\\n text-align: center;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "one.css.map": "{"version":3,"file":"one.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\n text-align: center;\\n}\\n"],"names":[],"sourceRoot":""}", "three.css": "body{color:red;font-size:20px}a{color:blue} /*# sourceMappingURL=three.css.map*/", - "three.css.map": "{"version":3,"file":"three.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\nbody {\\r\\n color: red;\\r\\n font-size: 20px;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "three.css.map": "{"version":3,"file":"three.css","mappings":"AAGA,KACE,SAAU,CACV,cACF,CACA,EACE,UACF","sources":["webpack:///./test/bar1.css"],"sourcesContent":["body {\\n color: red;\\n}\\nbody {\\n color: red;\\n font-size: 20px;\\n}\\na {\\n color: blue;\\n}\\n"],"names":[],"sourceRoot":""}", "two.css": "a{text-align:center} /*# sourceMappingURL=two.css.map*/", - "two.css.map": "{"version":3,"file":"two.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\r\\n text-align: center;\\r\\n}\\r\\n"],"names":[],"sourceRoot":""}", + "two.css.map": "{"version":3,"file":"two.css","mappings":"AAAA,EACE,iBACF","sources":["webpack:///./test/foo.css"],"sourcesContent":["a {\\n text-align: center;\\n}\\n"],"names":[],"sourceRoot":""}", } `; diff --git a/test/__snapshots__/minify-option.test.js.snap b/test/__snapshots__/minify-option.test.js.snap index d89ba7b..90d2dfa 100644 --- a/test/__snapshots__/minify-option.test.js.snap +++ b/test/__snapshots__/minify-option.test.js.snap @@ -44,7 +44,7 @@ body a { .three{background: white;} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA;EACE;ACCF;;AAAA;EACE;AAGF;AAFE;EACE;AAIJ,C","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA;EACE;ACCF;;AAAA;EACE;AAGF;AAFE;EACE;AAIJ,C","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -74,7 +74,7 @@ body a { .three{color: red;} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA;EACE;ACCF;;AAAA;EACE;AAGF;AAFE;EACE;AAIJ,C","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA;EACE;ACCF;;AAAA;EACE;AAGF;AAFE;EACE;AAIJ,C","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -136,7 +136,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" mi { "foo/foo.css": "body{font-weight:700}body{color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KACE,YAAa,ICCf,KACE,MAAO,IACP,OACE,WAAY","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KACE,YAAa,ICCf,KACE,MAAO,IACP,OACE,WAAY","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -148,7 +148,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cleanCssMinify" mi { "foo.css": "body{color:red}a{color:#00f} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,MAAO,IAET,EACE,MAAO","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,MAAO,IAET,EACE,MAAO","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\n color: red;\\n}\\na {\\n color: blue;\\n}"],"names":[],"sourceRoot":""}", } `; @@ -170,7 +170,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" min { "foo/foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KCGE,SAAU,CDFV,eCCF,CAEE,OACE,iBAIJ","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KCGE,SAAU,CDFV,eCCF,CAEE,OACE,iBAIJ","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -182,7 +182,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" min { "foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KCGE,SAAU,CDFV,eCCF,CAEE,OACE,iBAIJ","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KCGE,SAAU,CDFV,eCCF,CAEE,OACE,iBAIJ","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -190,7 +190,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" min exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and generate source maps: warning 1`] = `[]`; -exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and parser option as "String": entry.js.map 1`] = `"{"version":3,"file":"entry.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;ACNO","sources":["webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///./sugarss.js"],"sourcesContent":["// The require scope\\nvar __webpack_require__ = {};\\n\\n","// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\\n__webpack_require__.r = (exports) => {\\n\\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\\n\\t\\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\\n\\t}\\n\\tObject.defineProperty(exports, '__esModule', { value: true });\\n};","export const foo = 'foo';\\r\\n"],"names":[],"sourceRoot":""}"`; +exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and parser option as "String": entry.js.map 1`] = `"{"version":3,"file":"entry.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;ACNO","sources":["webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///./sugarss.js"],"sourcesContent":["// The require scope\\nvar __webpack_require__ = {};\\n\\n","// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\\n__webpack_require__.r = (exports) => {\\n\\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\\n\\t\\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\\n\\t}\\n\\tObject.defineProperty(exports, '__esModule', { value: true });\\n};","export const foo = 'foo';\\n"],"names":[],"sourceRoot":""}"`; exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify" minifier and parser option as "String": index.sss 1`] = `"a{color:#000}"`; @@ -208,7 +208,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cssnanoMinify", "C { "foo.css": "body{color:red}a{color:#00f} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,MAAM,IAER,EACE,MAAM","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,MAAM,IAER,EACE,MAAM","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\n color: red;\\n}\\na {\\n color: blue;\\n}"],"names":[],"sourceRoot":""}", } `; @@ -230,7 +230,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifi { "foo.css": "body{font-weight:700;color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -242,7 +242,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.cssoMinify" minifi { "foo/foo.css": "body{font-weight:700;color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -283,7 +283,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" min "foo/foo.css": "body{font-weight:700}body{color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KACE,gBCCF,KACE,UACA,OACE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,KACE,gBCCF,KACE,UACA,OACE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -296,7 +296,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.esbuildMinify" min "foo.css": "body{color:red}a{color:#00f} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,UAEF,EACE","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\r\\n color: red;\\r\\n}\\r\\na {\\r\\n color: blue;\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,KACE,UAEF,EACE","sources":["webpack:///./foo.css"],"sourcesContent":["body {\\n color: red;\\n}\\na {\\n color: blue;\\n}"],"names":[],"sourceRoot":""}", } `; @@ -319,7 +319,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify { "foo/foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -331,7 +331,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.lightningCssMinify { "foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -363,7 +363,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" m { "foo/foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo/foo.css.map": "{"version":3,"file":"foo/foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -375,7 +375,7 @@ exports[`"minify" option should work with "CssMinimizerPlugin.parcelCssMinify" m { "foo.css": "body{color:red;font-weight:700}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,+BCIE","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; @@ -417,7 +417,7 @@ exports[`"minify" option should work with "csso" minifier: assets 1`] = ` { "foo.css": "body{font-weight:700;color:red}body a{text-align:center} /*# sourceMappingURL=foo.css.map*/", - "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\r\\n font-weight: bold;\\r\\n}","@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}"],"names":[],"sourceRoot":""}", + "foo.css.map": "{"version":3,"file":"foo.css","mappings":"AAAA,I,CACE,e,CCEA,S,CACA,M,CACE,iB","sources":["webpack:///./sourcemap/bar.scss","webpack:///./sourcemap/foo.scss"],"sourcesContent":["body {\\n font-weight: bold;\\n}","@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}"],"names":[],"sourceRoot":""}", } `; diff --git a/test/__snapshots__/sourceMap-option.test.js.snap b/test/__snapshots__/sourceMap-option.test.js.snap index 06315ae..dfb7965 100644 --- a/test/__snapshots__/sourceMap-option.test.js.snap +++ b/test/__snapshots__/sourceMap-option.test.js.snap @@ -25,8 +25,8 @@ exports[`when applied with "sourceMap" option should work and emit warnings on b "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" ], "names": [], "sourceRoot": "" @@ -57,8 +57,8 @@ exports[`when applied with "sourceMap" option should work with SourceMapDevToolP "webpack:///./sourcemap/foo.scss" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}" ], "names": [], "sourceRoot": "" @@ -72,8 +72,8 @@ exports[`when applied with "sourceMap" option should work with SourceMapDevToolP "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" ], "names": [], "sourceRoot": "" @@ -98,8 +98,8 @@ exports[`when applied with "sourceMap" option should work with the "devtool" opt "webpack:///./sourcemap/foo.scss" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}" ], "names": [], "sourceRoot": "" @@ -115,8 +115,8 @@ exports[`when applied with "sourceMap" option should work with the "devtool" opt "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" ], "names": [], "sourceRoot": "" @@ -141,8 +141,8 @@ exports[`when applied with "sourceMap" option should work with the "devtool" opt "webpack:///./sourcemap/foo.scss" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}" ], "names": [], "sourceRoot": "" @@ -158,8 +158,8 @@ exports[`when applied with "sourceMap" option should work with the "devtool" opt "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" ], "names": [], "sourceRoot": "" @@ -184,8 +184,8 @@ exports[`when applied with "sourceMap" option should work with the "devtool" opt "webpack:///./sourcemap/foo.scss" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n a {\\r\\n text-align: center;\\r\\n }\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n a {\\n text-align: center;\\n }\\n}" ], "names": [], "sourceRoot": "" @@ -201,8 +201,8 @@ exports[`when applied with "sourceMap" option should work with the "devtool" opt "webpack:///./sourcemap/foo.css" ], "sourcesContent": [ - "body {\\r\\n font-weight: bold;\\r\\n}", - "@import 'bar';\\r\\n\\r\\nbody {\\r\\n color: red;\\r\\n}\\r\\n\\r\\nbody a {\\r\\n text-align: center;\\r\\n}" + "body {\\n font-weight: bold;\\n}", + "@import 'bar';\\n\\nbody {\\n color: red;\\n}\\n\\nbody a {\\n text-align: center;\\n}" ], "names": [], "sourceRoot": "" From 71edcdba0054e2c1e72c26815984104efc342dee Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Sun, 18 Sep 2022 08:05:46 +0530 Subject: [PATCH 3/4] chore: remove jest-worker --- package-lock.json | 21 +++++++++++++++------ package.json | 1 - 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index def08a1..2cd4f37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "license": "MIT", "dependencies": { "cssnano": "^5.1.8", - "jest-worker": "^29.0.3", "postcss": "^8.4.13", "schema-utils": "^4.0.0", "serialize-javascript": "^6.0.0", @@ -3497,7 +3496,8 @@ "node_modules/@types/node": { "version": "14.18.28", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.28.tgz", - "integrity": "sha512-CK2fnrQlIgKlCV3N2kM+Gznb5USlwA1KFX3rJVHmgVk6NJxFPuQ86pAcvKnu37IA4BGlSRz7sEE1lHL1aLZ/eQ==" + "integrity": "sha512-CK2fnrQlIgKlCV3N2kM+Gznb5USlwA1KFX3rJVHmgVk6NJxFPuQ86pAcvKnu37IA4BGlSRz7sEE1lHL1aLZ/eQ==", + "dev": true }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -9771,6 +9771,7 @@ "version": "29.0.3", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.3.tgz", "integrity": "sha512-Tl/YWUugQOjoTYwjKdfJWkSOfhufJHO5LhXTSZC3TRoQKO+fuXnZAdoXXBlpLXKGODBL3OvdUasfDD4PcMe6ng==", + "dev": true, "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -9784,6 +9785,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" } @@ -9792,6 +9794,7 @@ "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" }, @@ -10683,7 +10686,8 @@ "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/merge2": { "version": "1.4.1", @@ -16670,7 +16674,8 @@ "@types/node": { "version": "14.18.28", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.28.tgz", - "integrity": "sha512-CK2fnrQlIgKlCV3N2kM+Gznb5USlwA1KFX3rJVHmgVk6NJxFPuQ86pAcvKnu37IA4BGlSRz7sEE1lHL1aLZ/eQ==" + "integrity": "sha512-CK2fnrQlIgKlCV3N2kM+Gznb5USlwA1KFX3rJVHmgVk6NJxFPuQ86pAcvKnu37IA4BGlSRz7sEE1lHL1aLZ/eQ==", + "dev": true }, "@types/normalize-package-data": { "version": "2.4.1", @@ -21210,6 +21215,7 @@ "version": "29.0.3", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.3.tgz", "integrity": "sha512-Tl/YWUugQOjoTYwjKdfJWkSOfhufJHO5LhXTSZC3TRoQKO+fuXnZAdoXXBlpLXKGODBL3OvdUasfDD4PcMe6ng==", + "dev": true, "requires": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -21219,12 +21225,14 @@ "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true }, "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, "requires": { "has-flag": "^4.0.0" } @@ -21827,7 +21835,8 @@ "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 }, "merge2": { "version": "1.4.1", diff --git a/package.json b/package.json index ade482f..fb739c0 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,6 @@ }, "dependencies": { "cssnano": "^5.1.8", - "jest-worker": "^29.0.3", "postcss": "^8.4.13", "schema-utils": "^4.0.0", "serialize-javascript": "^6.0.0", From 949561d3ceb00914273f112fbdb7934bb6e6fbf0 Mon Sep 17 00:00:00 2001 From: Sachin Kumar Date: Sun, 18 Sep 2022 08:13:53 +0530 Subject: [PATCH 4/4] fix: lint --- package-lock.json | 21 ++++++--------------- package.json | 1 + 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2cd4f37..def08a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "cssnano": "^5.1.8", + "jest-worker": "^29.0.3", "postcss": "^8.4.13", "schema-utils": "^4.0.0", "serialize-javascript": "^6.0.0", @@ -3496,8 +3497,7 @@ "node_modules/@types/node": { "version": "14.18.28", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.28.tgz", - "integrity": "sha512-CK2fnrQlIgKlCV3N2kM+Gznb5USlwA1KFX3rJVHmgVk6NJxFPuQ86pAcvKnu37IA4BGlSRz7sEE1lHL1aLZ/eQ==", - "dev": true + "integrity": "sha512-CK2fnrQlIgKlCV3N2kM+Gznb5USlwA1KFX3rJVHmgVk6NJxFPuQ86pAcvKnu37IA4BGlSRz7sEE1lHL1aLZ/eQ==" }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -9771,7 +9771,6 @@ "version": "29.0.3", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.3.tgz", "integrity": "sha512-Tl/YWUugQOjoTYwjKdfJWkSOfhufJHO5LhXTSZC3TRoQKO+fuXnZAdoXXBlpLXKGODBL3OvdUasfDD4PcMe6ng==", - "dev": true, "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -9785,7 +9784,6 @@ "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" } @@ -9794,7 +9792,6 @@ "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" }, @@ -10686,8 +10683,7 @@ "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==", - "dev": true + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" }, "node_modules/merge2": { "version": "1.4.1", @@ -16674,8 +16670,7 @@ "@types/node": { "version": "14.18.28", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.28.tgz", - "integrity": "sha512-CK2fnrQlIgKlCV3N2kM+Gznb5USlwA1KFX3rJVHmgVk6NJxFPuQ86pAcvKnu37IA4BGlSRz7sEE1lHL1aLZ/eQ==", - "dev": true + "integrity": "sha512-CK2fnrQlIgKlCV3N2kM+Gznb5USlwA1KFX3rJVHmgVk6NJxFPuQ86pAcvKnu37IA4BGlSRz7sEE1lHL1aLZ/eQ==" }, "@types/normalize-package-data": { "version": "2.4.1", @@ -21215,7 +21210,6 @@ "version": "29.0.3", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.3.tgz", "integrity": "sha512-Tl/YWUugQOjoTYwjKdfJWkSOfhufJHO5LhXTSZC3TRoQKO+fuXnZAdoXXBlpLXKGODBL3OvdUasfDD4PcMe6ng==", - "dev": true, "requires": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -21225,14 +21219,12 @@ "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, "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, "requires": { "has-flag": "^4.0.0" } @@ -21835,8 +21827,7 @@ "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==", - "dev": true + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" }, "merge2": { "version": "1.4.1", diff --git a/package.json b/package.json index fb739c0..ade482f 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ }, "dependencies": { "cssnano": "^5.1.8", + "jest-worker": "^29.0.3", "postcss": "^8.4.13", "schema-utils": "^4.0.0", "serialize-javascript": "^6.0.0",