diff --git a/plugins/woocommerce-blocks/package-lock.json b/plugins/woocommerce-blocks/package-lock.json index be7746baeee..48ec26eb6d6 100644 --- a/plugins/woocommerce-blocks/package-lock.json +++ b/plugins/woocommerce-blocks/package-lock.json @@ -27,7 +27,7 @@ "dinero.js": "1.9.1", "dompurify": "^2.4.0", "downshift": "6.1.7", - "html-react-parser": "0.14.3", + "html-react-parser": "3.0.4", "react-number-format": "4.9.3", "reakit": "1.3.11", "snakecase-keys": "5.4.2", @@ -10709,10 +10709,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/domhandler": { - "version": "2.4.1", - "license": "MIT" - }, "node_modules/@types/dompurify": { "version": "2.3.4", "dev": true, @@ -10721,24 +10717,6 @@ "@types/trusted-types": "*" } }, - "node_modules/@types/domutils": { - "version": "1.7.4", - "license": "MIT", - "dependencies": { - "domhandler": "^2.4.0" - } - }, - "node_modules/@types/domutils/node_modules/domelementtype": { - "version": "1.3.1", - "license": "BSD-2-Clause" - }, - "node_modules/@types/domutils/node_modules/domhandler": { - "version": "2.4.2", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "1" - } - }, "node_modules/@types/eslint": { "version": "8.4.1", "dev": true, @@ -10818,26 +10796,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/htmlparser2": { - "version": "3.10.2", - "license": "MIT", - "dependencies": { - "@types/domutils": "*", - "@types/node": "*", - "domhandler": "^2.4.0" - } - }, - "node_modules/@types/htmlparser2/node_modules/domelementtype": { - "version": "1.3.1", - "license": "BSD-2-Clause" - }, - "node_modules/@types/htmlparser2/node_modules/domhandler": { - "version": "2.4.2", - "license": "BSD-2-Clause", - "dependencies": { - "domelementtype": "1" - } - }, "node_modules/@types/http-cache-semantics": { "version": "4.0.1", "dev": true, @@ -10960,6 +10918,7 @@ }, "node_modules/@types/node": { "version": "14.18.16", + "dev": true, "license": "MIT" }, "node_modules/@types/node-fetch": { @@ -24500,7 +24459,6 @@ }, "node_modules/domelementtype": { "version": "2.3.0", - "dev": true, "funding": [ { "type": "github", @@ -28686,84 +28644,81 @@ "license": "MIT" }, "node_modules/html-dom-parser": { - "version": "0.3.0", - "license": "MIT", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-3.1.2.tgz", + "integrity": "sha512-mLTtl3pVn3HnqZSZzW3xVs/mJAKrG1yIw3wlp+9bdoZHHLaBRvELdpfShiPVLyjPypq1Fugv2KMDoGHW4lVXnw==", "dependencies": { - "@types/domhandler": "2.4.1", - "domhandler": "2.4.2", - "htmlparser2": "3.10.1" + "domhandler": "5.0.3", + "htmlparser2": "8.0.1" } }, "node_modules/html-dom-parser/node_modules/dom-serializer": { - "version": "0.2.2", - "license": "MIT", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", "dependencies": { - "domelementtype": "^2.0.1", - "entities": "^2.0.0" + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" } }, - "node_modules/html-dom-parser/node_modules/dom-serializer/node_modules/domelementtype": { - "version": "2.3.0", + "node_modules/html-dom-parser/node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/html-dom-parser/node_modules/domutils": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", + "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.1" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/html-dom-parser/node_modules/entities": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/html-dom-parser/node_modules/htmlparser2": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz", + "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==", "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", { "type": "github", "url": "https://github.com/sponsors/fb55" } ], - "license": "BSD-2-Clause" - }, - "node_modules/html-dom-parser/node_modules/dom-serializer/node_modules/entities": { - "version": "2.2.0", - "license": "BSD-2-Clause", - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/html-dom-parser/node_modules/domelementtype": { - "version": "1.3.1", - "license": "BSD-2-Clause" - }, - "node_modules/html-dom-parser/node_modules/domhandler": { - "version": "2.4.2", - "license": "BSD-2-Clause", "dependencies": { - "domelementtype": "1" - } - }, - "node_modules/html-dom-parser/node_modules/domutils": { - "version": "1.7.0", - "license": "BSD-2-Clause", - "dependencies": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "node_modules/html-dom-parser/node_modules/entities": { - "version": "1.1.2", - "license": "BSD-2-Clause" - }, - "node_modules/html-dom-parser/node_modules/htmlparser2": { - "version": "3.10.1", - "license": "MIT", - "dependencies": { - "domelementtype": "^1.3.1", - "domhandler": "^2.3.0", - "domutils": "^1.5.1", - "entities": "^1.1.1", - "inherits": "^2.0.1", - "readable-stream": "^3.1.1" - } - }, - "node_modules/html-dom-parser/node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "entities": "^4.3.0" } }, "node_modules/html-element-map": { @@ -28828,16 +28783,31 @@ } }, "node_modules/html-react-parser": { - "version": "0.14.3", - "license": "MIT", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-3.0.4.tgz", + "integrity": "sha512-va68PSmC7uA6PbOEc9yuw5Mu3OHPXmFKUpkLGvUPdTuNrZ0CJZk1s/8X/FaHjswK/6uZghu2U02tJjussT8+uw==", "dependencies": { - "@types/htmlparser2": "3.10.2", - "html-dom-parser": "0.3.0", - "react-property": "1.0.1", - "style-to-js": "1.1.0" + "domhandler": "5.0.3", + "html-dom-parser": "3.1.2", + "react-property": "2.0.0", + "style-to-js": "1.1.1" }, "peerDependencies": { - "react": "^0.14 || ^15 || ^16 || ^17" + "react": "0.14 || 15 || 16 || 17 || 18" + } + }, + "node_modules/html-react-parser/node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" } }, "node_modules/html-tags": { @@ -29531,6 +29501,7 @@ }, "node_modules/inherits": { "version": "2.0.4", + "devOptional": true, "license": "ISC" }, "node_modules/ini": { @@ -42557,8 +42528,9 @@ } }, "node_modules/react-property": { - "version": "1.0.1", - "license": "MIT" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/react-property/-/react-property-2.0.0.tgz", + "integrity": "sha512-kzmNjIgU32mO4mmH5+iUyrqlpFQhF8K2k7eZ4fdLSOPFrD1XgEuSBv9LDEgxRXTMBqMd8ppT0x6TIzqE5pdGdw==" }, "node_modules/react-refresh": { "version": "0.11.0", @@ -45577,6 +45549,7 @@ }, "node_modules/string_decoder": { "version": "1.1.1", + "devOptional": true, "license": "MIT", "dependencies": { "safe-buffer": "~5.1.0" @@ -45826,8 +45799,9 @@ "license": "ISC" }, "node_modules/style-to-js": { - "version": "1.1.0", - "license": "MIT", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.1.tgz", + "integrity": "sha512-RJ18Z9t2B02sYhZtfWKQq5uplVctgvjTfLWT7+Eb1zjUjIrWzX5SdlkwLGQozrqarTmEzJJ/YmdNJCUNI47elg==", "dependencies": { "style-to-object": "0.3.0" } @@ -48005,6 +47979,7 @@ }, "node_modules/util-deprecate": { "version": "1.0.2", + "devOptional": true, "license": "MIT" }, "node_modules/util.promisify": { @@ -57589,9 +57564,6 @@ "version": "1.9.0", "dev": true }, - "@types/domhandler": { - "version": "2.4.1" - }, "@types/dompurify": { "version": "2.3.4", "dev": true, @@ -57599,23 +57571,6 @@ "@types/trusted-types": "*" } }, - "@types/domutils": { - "version": "1.7.4", - "requires": { - "domhandler": "^2.4.0" - }, - "dependencies": { - "domelementtype": { - "version": "1.3.1" - }, - "domhandler": { - "version": "2.4.2", - "requires": { - "domelementtype": "1" - } - } - } - }, "@types/eslint": { "version": "8.4.1", "dev": true, @@ -57685,25 +57640,6 @@ "version": "5.1.2", "dev": true }, - "@types/htmlparser2": { - "version": "3.10.2", - "requires": { - "@types/domutils": "*", - "@types/node": "*", - "domhandler": "^2.4.0" - }, - "dependencies": { - "domelementtype": { - "version": "1.3.1" - }, - "domhandler": { - "version": "2.4.2", - "requires": { - "domelementtype": "1" - } - } - } - }, "@types/http-cache-semantics": { "version": "4.0.1", "dev": true @@ -57806,7 +57742,8 @@ "version": "1.6.9" }, "@types/node": { - "version": "14.18.16" + "version": "14.18.16", + "dev": true }, "@types/node-fetch": { "version": "2.6.2", @@ -67138,8 +67075,7 @@ "dev": true }, "domelementtype": { - "version": "2.3.0", - "dev": true + "version": "2.3.0" }, "domexception": { "version": "2.0.1", @@ -69941,64 +69877,56 @@ "dev": true }, "html-dom-parser": { - "version": "0.3.0", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-3.1.2.tgz", + "integrity": "sha512-mLTtl3pVn3HnqZSZzW3xVs/mJAKrG1yIw3wlp+9bdoZHHLaBRvELdpfShiPVLyjPypq1Fugv2KMDoGHW4lVXnw==", "requires": { - "@types/domhandler": "2.4.1", - "domhandler": "2.4.2", - "htmlparser2": "3.10.1" + "domhandler": "5.0.3", + "htmlparser2": "8.0.1" }, "dependencies": { "dom-serializer": { - "version": "0.2.2", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", "requires": { - "domelementtype": "^2.0.1", - "entities": "^2.0.0" - }, - "dependencies": { - "domelementtype": { - "version": "2.3.0" - }, - "entities": { - "version": "2.2.0" - } + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" } }, - "domelementtype": { - "version": "1.3.1" - }, "domhandler": { - "version": "2.4.2", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", "requires": { - "domelementtype": "1" + "domelementtype": "^2.3.0" } }, "domutils": { - "version": "1.7.0", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.0.1.tgz", + "integrity": "sha512-z08c1l761iKhDFtfXO04C7kTdPBLi41zwOZl00WS8b5eiaebNpY00HKbztwBq+e3vyqWNwWF3mP9YLUeqIrF+Q==", "requires": { - "dom-serializer": "0", - "domelementtype": "1" + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.1" } }, "entities": { - "version": "1.1.2" + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz", + "integrity": "sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==" }, "htmlparser2": { - "version": "3.10.1", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.1.tgz", + "integrity": "sha512-4lVbmc1diZC7GUJQtRQ5yBAeUCL1exyMwmForWkRLnwyzWBFxN633SALPMGYaWZvKe9j1pRZJpauvmxENSp/EA==", "requires": { - "domelementtype": "^1.3.1", - "domhandler": "^2.3.0", - "domutils": "^1.5.1", - "entities": "^1.1.1", - "inherits": "^2.0.1", - "readable-stream": "^3.1.1" - } - }, - "readable-stream": { - "version": "3.6.0", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "domutils": "^3.0.1", + "entities": "^4.3.0" } } } @@ -70046,12 +69974,24 @@ } }, "html-react-parser": { - "version": "0.14.3", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-3.0.4.tgz", + "integrity": "sha512-va68PSmC7uA6PbOEc9yuw5Mu3OHPXmFKUpkLGvUPdTuNrZ0CJZk1s/8X/FaHjswK/6uZghu2U02tJjussT8+uw==", "requires": { - "@types/htmlparser2": "3.10.2", - "html-dom-parser": "0.3.0", - "react-property": "1.0.1", - "style-to-js": "1.1.0" + "domhandler": "5.0.3", + "html-dom-parser": "3.1.2", + "react-property": "2.0.0", + "style-to-js": "1.1.1" + }, + "dependencies": { + "domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "requires": { + "domelementtype": "^2.3.0" + } + } } }, "html-tags": { @@ -70483,7 +70423,8 @@ } }, "inherits": { - "version": "2.0.4" + "version": "2.0.4", + "devOptional": true }, "ini": { "version": "1.3.8", @@ -79729,7 +79670,9 @@ } }, "react-property": { - "version": "1.0.1" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/react-property/-/react-property-2.0.0.tgz", + "integrity": "sha512-kzmNjIgU32mO4mmH5+iUyrqlpFQhF8K2k7eZ4fdLSOPFrD1XgEuSBv9LDEgxRXTMBqMd8ppT0x6TIzqE5pdGdw==" }, "react-refresh": { "version": "0.11.0", @@ -81820,6 +81763,7 @@ }, "string_decoder": { "version": "1.1.1", + "devOptional": true, "requires": { "safe-buffer": "~5.1.0" } @@ -81973,7 +81917,9 @@ "dev": true }, "style-to-js": { - "version": "1.1.0", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.1.tgz", + "integrity": "sha512-RJ18Z9t2B02sYhZtfWKQq5uplVctgvjTfLWT7+Eb1zjUjIrWzX5SdlkwLGQozrqarTmEzJJ/YmdNJCUNI47elg==", "requires": { "style-to-object": "0.3.0" } @@ -83414,7 +83360,8 @@ } }, "util-deprecate": { - "version": "1.0.2" + "version": "1.0.2", + "devOptional": true }, "util.promisify": { "version": "1.0.0", diff --git a/plugins/woocommerce-blocks/package.json b/plugins/woocommerce-blocks/package.json index 13fcc88b273..f2290d8f079 100644 --- a/plugins/woocommerce-blocks/package.json +++ b/plugins/woocommerce-blocks/package.json @@ -235,7 +235,7 @@ "dinero.js": "1.9.1", "dompurify": "^2.4.0", "downshift": "6.1.7", - "html-react-parser": "0.14.3", + "html-react-parser": "3.0.4", "react-number-format": "4.9.3", "reakit": "1.3.11", "snakecase-keys": "5.4.2",