From f7c13356b74b83f785671968f750f52271866e03 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 1 Feb 2024 03:35:33 +0000 Subject: [PATCH] feat: upgrade html-react-parser from 3.0.16 to 5.1.0 Snyk has created this PR to upgrade html-react-parser from 3.0.16 to 5.1.0. See this package in npm: https://www.npmjs.com/package/html-react-parser See this project in Snyk: https://app.snyk.io/org/contentstack-ghost/project/e48227ed-fe1d-4e8a-9606-3aee8c8c77ae?utm_source=github&utm_medium=referral&page=upgrade-pr --- package-lock.json | 122 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/package-lock.json b/package-lock.json index 86a17a1..bf4e693 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "contentstack-react-starter-app", - "version": "2.0.4", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "contentstack-react-starter-app", - "version": "2.0.4", + "version": "1.0.0", "license": "MIT", "dependencies": { "@contentstack/live-preview-utils": "^1.4.0", "@contentstack/utils": "^1.3.0", "@textea/json-viewer": "^3.1.1", "@types/react": "^18.2.15", - "html-react-parser": "^3.0.16", + "html-react-parser": "^5.1.0", "moment": "^2.29.4", "nth-check": "^2.1.1", "react": "^18.2.0", @@ -9286,12 +9286,12 @@ } }, "node_modules/html-dom-parser": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-3.1.7.tgz", - "integrity": "sha512-cDgNF4YgF6J3H+d9mcldGL19p0GzVdS3iGuDNzYWQpU47q3+IRM85X3Xo07E+nntF4ek4s78A9V24EwxlPTjig==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.6.tgz", + "integrity": "sha512-6KSMOgxzAIZZ1Tcc6eNEfRFC/XE0+TiYaWanKNYKHSEQOtdxrR0t8ILKXNDcRea/WbIDltLUIP8mi/tw7dtFvQ==", "dependencies": { "domhandler": "5.0.3", - "htmlparser2": "8.0.2" + "htmlparser2": "9.0.0" } }, "node_modules/html-dom-parser/node_modules/domhandler": { @@ -9364,14 +9364,14 @@ } }, "node_modules/html-react-parser": { - "version": "3.0.16", - "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-3.0.16.tgz", - "integrity": "sha512-ysQZtRFPcg+McVb4B05oNWSnqM14zagpvTgGcI5e1/BvCl38YwzWzKibrbBmXeemg70olN1bAoeixo7o06G5Eg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-5.1.0.tgz", + "integrity": "sha512-9BXtf81EFbi/YZDvDQkiwuPg4y8bXQrrWwrMvpIJxREXPv5HiLS0aQvtjY7YP3z2mYFD4urCWSl2ebSDdrrGwg==", "dependencies": { "domhandler": "5.0.3", - "html-dom-parser": "3.1.7", - "react-property": "2.0.0", - "style-to-js": "1.1.3" + "html-dom-parser": "5.0.6", + "react-property": "2.0.2", + "style-to-js": "1.1.10" }, "peerDependencies": { "react": "0.14 || 15 || 16 || 17 || 18" @@ -9415,9 +9415,9 @@ } }, "node_modules/htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-9.0.0.tgz", + "integrity": "sha512-uxbSI98wmFT/G4P2zXx4OVx04qWUmyFPrD2/CNepa2Zo3GPNaCaaxElDgwUrwYWkK1nr9fft0Ya8dws8coDLLQ==", "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", { @@ -9428,8 +9428,8 @@ "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" + "domutils": "^3.1.0", + "entities": "^4.5.0" } }, "node_modules/htmlparser2/node_modules/dom-serializer": { @@ -9701,9 +9701,9 @@ "dev": true }, "node_modules/inline-style-parser": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", - "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.2.tgz", + "integrity": "sha512-EcKzdTHVe8wFVOGEYXiW9WmJXPjqi1T+234YpJr98RiFYKHV3cdy1+3mkTE+KHTHxFFLH51SfaGOoUdW+v7ViQ==" }, "node_modules/internal-slot": { "version": "1.0.5", @@ -14219,9 +14219,9 @@ } }, "node_modules/react-property": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/react-property/-/react-property-2.0.0.tgz", - "integrity": "sha512-kzmNjIgU32mO4mmH5+iUyrqlpFQhF8K2k7eZ4fdLSOPFrD1XgEuSBv9LDEgxRXTMBqMd8ppT0x6TIzqE5pdGdw==" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/react-property/-/react-property-2.0.2.tgz", + "integrity": "sha512-+PbtI3VuDV0l6CleQMsx2gtK0JZbZKbpdu5ynr+lbsuvtmgbNcS3VM0tuY2QjFNOcWxvXeHjDpy42RO+4U2rug==" }, "node_modules/react-refresh": { "version": "0.11.0", @@ -15598,19 +15598,19 @@ } }, "node_modules/style-to-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.3.tgz", - "integrity": "sha512-zKI5gN/zb7LS/Vm0eUwjmjrXWw8IMtyA8aPBJZdYiQTXj4+wQ3IucOLIOnF7zCHxvW8UhIGh/uZh/t9zEHXNTQ==", + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.10.tgz", + "integrity": "sha512-VC7MBJa+y0RZhpnLKDPmVRLRswsASLmixkiZ5R8xZpNT9VyjeRzwnXd2pBzAWdgSGv/pCNNH01gPCCUsB9exYg==", "dependencies": { - "style-to-object": "0.4.1" + "style-to-object": "1.0.5" } }, "node_modules/style-to-object": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz", - "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.5.tgz", + "integrity": "sha512-rDRwHtoDD3UMMrmZ6BzOW0naTjMsVZLIjsGleSKS/0Oz+cgCfAPRspaqJuE8rDzpKha/nEvnM0IF4seEAZUTKQ==", "dependencies": { - "inline-style-parser": "0.1.1" + "inline-style-parser": "0.2.2" } }, "node_modules/stylehacks": { @@ -24389,12 +24389,12 @@ } }, "html-dom-parser": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-3.1.7.tgz", - "integrity": "sha512-cDgNF4YgF6J3H+d9mcldGL19p0GzVdS3iGuDNzYWQpU47q3+IRM85X3Xo07E+nntF4ek4s78A9V24EwxlPTjig==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.0.6.tgz", + "integrity": "sha512-6KSMOgxzAIZZ1Tcc6eNEfRFC/XE0+TiYaWanKNYKHSEQOtdxrR0t8ILKXNDcRea/WbIDltLUIP8mi/tw7dtFvQ==", "requires": { "domhandler": "5.0.3", - "htmlparser2": "8.0.2" + "htmlparser2": "9.0.0" }, "dependencies": { "domhandler": { @@ -24444,14 +24444,14 @@ } }, "html-react-parser": { - "version": "3.0.16", - "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-3.0.16.tgz", - "integrity": "sha512-ysQZtRFPcg+McVb4B05oNWSnqM14zagpvTgGcI5e1/BvCl38YwzWzKibrbBmXeemg70olN1bAoeixo7o06G5Eg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-5.1.0.tgz", + "integrity": "sha512-9BXtf81EFbi/YZDvDQkiwuPg4y8bXQrrWwrMvpIJxREXPv5HiLS0aQvtjY7YP3z2mYFD4urCWSl2ebSDdrrGwg==", "requires": { "domhandler": "5.0.3", - "html-dom-parser": "3.1.7", - "react-property": "2.0.0", - "style-to-js": "1.1.3" + "html-dom-parser": "5.0.6", + "react-property": "2.0.2", + "style-to-js": "1.1.10" }, "dependencies": { "domhandler": { @@ -24478,14 +24478,14 @@ } }, "htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-9.0.0.tgz", + "integrity": "sha512-uxbSI98wmFT/G4P2zXx4OVx04qWUmyFPrD2/CNepa2Zo3GPNaCaaxElDgwUrwYWkK1nr9fft0Ya8dws8coDLLQ==", "requires": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" + "domutils": "^3.1.0", + "entities": "^4.5.0" }, "dependencies": { "dom-serializer": { @@ -24685,9 +24685,9 @@ "dev": true }, "inline-style-parser": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.1.1.tgz", - "integrity": "sha512-7NXolsK4CAS5+xvdj5OMMbI962hU/wvwoxk+LWR9Ek9bVtyuuYScDN6eS0rUm6TxApFpw7CX1o4uJzcd4AyD3Q==" + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.2.tgz", + "integrity": "sha512-EcKzdTHVe8wFVOGEYXiW9WmJXPjqi1T+234YpJr98RiFYKHV3cdy1+3mkTE+KHTHxFFLH51SfaGOoUdW+v7ViQ==" }, "internal-slot": { "version": "1.0.5", @@ -27891,9 +27891,9 @@ "requires": {} }, "react-property": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/react-property/-/react-property-2.0.0.tgz", - "integrity": "sha512-kzmNjIgU32mO4mmH5+iUyrqlpFQhF8K2k7eZ4fdLSOPFrD1XgEuSBv9LDEgxRXTMBqMd8ppT0x6TIzqE5pdGdw==" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/react-property/-/react-property-2.0.2.tgz", + "integrity": "sha512-+PbtI3VuDV0l6CleQMsx2gtK0JZbZKbpdu5ynr+lbsuvtmgbNcS3VM0tuY2QjFNOcWxvXeHjDpy42RO+4U2rug==" }, "react-refresh": { "version": "0.11.0", @@ -28933,19 +28933,19 @@ "requires": {} }, "style-to-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.3.tgz", - "integrity": "sha512-zKI5gN/zb7LS/Vm0eUwjmjrXWw8IMtyA8aPBJZdYiQTXj4+wQ3IucOLIOnF7zCHxvW8UhIGh/uZh/t9zEHXNTQ==", + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.10.tgz", + "integrity": "sha512-VC7MBJa+y0RZhpnLKDPmVRLRswsASLmixkiZ5R8xZpNT9VyjeRzwnXd2pBzAWdgSGv/pCNNH01gPCCUsB9exYg==", "requires": { - "style-to-object": "0.4.1" + "style-to-object": "1.0.5" } }, "style-to-object": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz", - "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.5.tgz", + "integrity": "sha512-rDRwHtoDD3UMMrmZ6BzOW0naTjMsVZLIjsGleSKS/0Oz+cgCfAPRspaqJuE8rDzpKha/nEvnM0IF4seEAZUTKQ==", "requires": { - "inline-style-parser": "0.1.1" + "inline-style-parser": "0.2.2" } }, "stylehacks": { diff --git a/package.json b/package.json index 6f76fee..028cb0e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "@contentstack/utils": "^1.3.0", "@textea/json-viewer": "^3.1.1", "@types/react": "^18.2.15", - "html-react-parser": "^3.0.16", + "html-react-parser": "^5.1.0", "moment": "^2.29.4", "nth-check": "^2.1.1", "react": "^18.2.0",