From 68461823b2f56459f0d30bcfa6b33f6531f5cbd5 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 24 Sep 2024 01:29:18 +0000 Subject: [PATCH] fix: upgrade posthog-js from 1.53.4 to 1.160.1 Snyk has created this PR to upgrade posthog-js from 1.53.4 to 1.160.1. See this package in npm: posthog-js See this project in Snyk: https://app.snyk.io/org/xiezhifeng/project/4cd83905-705f-4073-a501-ed2ae70c9655?utm_source=github&utm_medium=referral&page=upgrade-pr --- package-lock.json | 59 +++++++++++++++++++++++++---------------------- package.json | 2 +- 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/package-lock.json b/package-lock.json index d1a2880..e76829f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "micro-cors": "^0.1.1", "next": "^13.4.10", "next-auth": "^4.22.1", - "posthog-js": "^1.53.4", + "posthog-js": "^1.160.1", "posthog-node": "^3.1.0", "react": "18.2.0", "react-dom": "18.2.0", @@ -6673,12 +6673,14 @@ "dev": true }, "node_modules/posthog-js": { - "version": "1.53.4", - "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.53.4.tgz", - "integrity": "sha512-aaQ9S+/eDuBl2XTuU/lMyMtX7eeNAQ/+53O0O+I05FwX7e5NDN1nVqlnkMP0pfZlFcnsPaVqm8N3HoYj+b7Eow==", + "version": "1.160.1", + "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.160.1.tgz", + "integrity": "sha512-OfzFSArlkSEUxQzL9+2qulbkJsVFAvpgb7rQaWBGtlY3qPKfdND+ak79rZkVPZHkP0JOh4keAM6xE4ZxLesvXA==", + "license": "MIT", "dependencies": { - "fflate": "^0.4.1", - "rrweb-snapshot": "^1.1.14" + "fflate": "^0.4.8", + "preact": "^10.19.3", + "web-vitals": "^4.0.1" } }, "node_modules/posthog-node": { @@ -6702,9 +6704,10 @@ } }, "node_modules/preact": { - "version": "10.13.2", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.13.2.tgz", - "integrity": "sha512-q44QFLhOhty2Bd0Y46fnYW0gD/cbVM9dUVtNTDKPcdXSMA7jfY+Jpd6rk3GB0lcQss0z5s/6CmVP0Z/hV+g6pw==", + "version": "10.24.0", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.0.tgz", + "integrity": "sha512-aK8Cf+jkfyuZ0ZZRG9FbYqwmEiGQ4y/PUO4SuTWoyWL244nZZh7bd5h2APd4rSNDYTBNghg1L+5iJN3Skxtbsw==", + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" @@ -7385,11 +7388,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/rrweb-snapshot": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/rrweb-snapshot/-/rrweb-snapshot-1.1.14.tgz", - "integrity": "sha512-eP5pirNjP5+GewQfcOQY4uBiDnpqxNRc65yKPW0eSoU1XamDfc4M8oqpXGMyUyvLyxFDB0q0+DChuxxiU2FXBQ==" - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -8401,6 +8399,12 @@ "node": ">=10.13.0" } }, + "node_modules/web-vitals": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.3.tgz", + "integrity": "sha512-/CFAm1mNxSmOj6i0Co+iGFJ58OS4NRGVP+AWS/l509uIK5a1bSoIVaHz/ZumpHTfHSZBpgrJ+wjfpAOrTHok5Q==", + "license": "Apache-2.0" + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -13415,12 +13419,13 @@ "dev": true }, "posthog-js": { - "version": "1.53.4", - "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.53.4.tgz", - "integrity": "sha512-aaQ9S+/eDuBl2XTuU/lMyMtX7eeNAQ/+53O0O+I05FwX7e5NDN1nVqlnkMP0pfZlFcnsPaVqm8N3HoYj+b7Eow==", + "version": "1.160.1", + "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.160.1.tgz", + "integrity": "sha512-OfzFSArlkSEUxQzL9+2qulbkJsVFAvpgb7rQaWBGtlY3qPKfdND+ak79rZkVPZHkP0JOh4keAM6xE4ZxLesvXA==", "requires": { - "fflate": "^0.4.1", - "rrweb-snapshot": "^1.1.14" + "fflate": "^0.4.8", + "preact": "^10.19.3", + "web-vitals": "^4.0.1" } }, "posthog-node": { @@ -13443,9 +13448,9 @@ } }, "preact": { - "version": "10.13.2", - "resolved": "https://registry.npmjs.org/preact/-/preact-10.13.2.tgz", - "integrity": "sha512-q44QFLhOhty2Bd0Y46fnYW0gD/cbVM9dUVtNTDKPcdXSMA7jfY+Jpd6rk3GB0lcQss0z5s/6CmVP0Z/hV+g6pw==" + "version": "10.24.0", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.0.tgz", + "integrity": "sha512-aK8Cf+jkfyuZ0ZZRG9FbYqwmEiGQ4y/PUO4SuTWoyWL244nZZh7bd5h2APd4rSNDYTBNghg1L+5iJN3Skxtbsw==" }, "preact-render-to-string": { "version": "5.2.6", @@ -13880,11 +13885,6 @@ "glob": "^7.1.3" } }, - "rrweb-snapshot": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/rrweb-snapshot/-/rrweb-snapshot-1.1.14.tgz", - "integrity": "sha512-eP5pirNjP5+GewQfcOQY4uBiDnpqxNRc65yKPW0eSoU1XamDfc4M8oqpXGMyUyvLyxFDB0q0+DChuxxiU2FXBQ==" - }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -14609,6 +14609,11 @@ "graceful-fs": "^4.1.2" } }, + "web-vitals": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.3.tgz", + "integrity": "sha512-/CFAm1mNxSmOj6i0Co+iGFJ58OS4NRGVP+AWS/l509uIK5a1bSoIVaHz/ZumpHTfHSZBpgrJ+wjfpAOrTHok5Q==" + }, "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", diff --git a/package.json b/package.json index e902ebf..54b96f1 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "micro-cors": "^0.1.1", "next": "^13.4.10", "next-auth": "^4.22.1", - "posthog-js": "^1.53.4", + "posthog-js": "^1.160.1", "posthog-node": "^3.1.0", "react": "18.2.0", "react-dom": "18.2.0",