From 0fe7ebe978319bbdf459d0e1f1d77a6fdf47fa12 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 13 Apr 2024 10:56:00 +0600 Subject: [PATCH] Update hotjar version to `6.3.1` --- package-lock.json | 8 ++++---- package.json | 2 +- src/utils/index.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5114e63ed..49d0ca9d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "postcss": "^8.4.38", "prettier": "^3.2.5", "react-helmet-async": "^2.0.4", - "react-hotjar": "^6.2.0", + "react-hotjar": "^6.3.1", "react-icons": "^5.0.1", "tailwindcss": "^3.4.1", "typescript": "^5.2.2", @@ -7053,9 +7053,9 @@ } }, "node_modules/react-hotjar": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/react-hotjar/-/react-hotjar-6.2.0.tgz", - "integrity": "sha512-uMX2IS5IKt1VkhHPwl2QEAEUmmm6VyxfzlwHLUKTQGZoE/0HWD71iGA7T31PO3KeN9+XUsTJS2P3zHva6TyhrQ==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/react-hotjar/-/react-hotjar-6.3.1.tgz", + "integrity": "sha512-EwMqL+ROSlKzatMhT/aqRq7XWWfzlnHynSBSTJh5M2O78mBiPohiSl4Ysls3HOQkkD9y6L22BW0c9bxK2JguwQ==", "dev": true }, "node_modules/react-icons": { diff --git a/package.json b/package.json index 11289aa1a..0089d2b54 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "postcss": "^8.4.38", "prettier": "^3.2.5", "react-helmet-async": "^2.0.4", - "react-hotjar": "^6.2.0", + "react-hotjar": "^6.3.1", "react-icons": "^5.0.1", "tailwindcss": "^3.4.1", "typescript": "^5.2.2", diff --git a/src/utils/index.tsx b/src/utils/index.tsx index 86ad24501..0e8da7fbd 100644 --- a/src/utils/index.tsx +++ b/src/utils/index.tsx @@ -209,7 +209,7 @@ export const skeleton = ({ export const setupHotjar = (hotjarConfig: SanitizedHotjar): void => { if (hotjarConfig?.id) { const snippetVersion = hotjarConfig?.snippetVersion || 6; - hotjar.initialize(parseInt(hotjarConfig.id), snippetVersion); + hotjar.initialize({ id: parseInt(hotjarConfig.id), sv: snippetVersion }); } };