Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-hotjar-next

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-hotjar-next - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

2

index.js

@@ -1,1 +0,1 @@

!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(this,(()=>(()=>{"use strict";var e={39:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Hotjar=void 0,o.Hotjar=class{constructor(e,o,t){var i,n,r,s;t?(i=window,n=document,i.hj=i.hj||function(){(i.hj.q=i.hj.q||[]).push(arguments)},i._hjSettings={hjid:e,hjsv:o},r=n.getElementsByTagName("head")[0],(s=n.createElement("script")).async=1,s.src="https://static.hotjar.com/c/hotjar-"+i._hjSettings.hjid+".js?sv="+i._hjSettings.hjsv,r.appendChild(s)):console.log("%c 🔥 HotJar Tracking Disabled 🔥","color: #fff; background: #35495d; font-size: 14px; border-radius: 5px; padding: 10px 5px; margin: 20px 0;")}}},861:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isVueVersionValid=o.isHotjarOptionsValid=void 0,o.isHotjarOptionsValid=function(e){return e.isProduction&&"boolean"!=typeof e.isProduction?(console.error(`vue-hotjar-next: Hotjar option isProduction is of type ${typeof e.isProduction} and should a boolean`),!1):e.snippetVersion&&"number"!=typeof e.snippetVersion?(console.error(`vue-hotjar-next: Hotjar option snippetVersion is of type ${typeof e.snippetVersion} and should a number`),!1):void 0===e.id?(console.error("Hotjar option ID is not defined"),!1):"number"==typeof e.id||(console.error(`vue-hotjar-next: Hotjar option site id is of type ${typeof e.id} and should a number`),!1)},o.isVueVersionValid=function(e){return"3"===e.version[0]||(console.error(`vue-hotjar-next: This plugin is intended to be used with Vue version 3. Version ${e.version} was detected.`),!1)}}},o={};function t(i){var n=o[i];if(void 0!==n)return n.exports;var r=o[i]={exports:{}};return e[i](r,r.exports,t),r.exports}var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0});const o=t(39),n=t(861);e.default={install:(e,t)=>{void 0===t.snippetVersion&&(t.snippetVersion=6),void 0===t.isProduction&&(t.isProduction=!0),n.isHotjarOptionsValid(t)&&n.isVueVersionValid(e)&&(new o.Hotjar(t.id,t.snippetVersion,t.isProduction),window.hj&&(e.config.globalProperties.$hj=window.hj,e.config.globalProperties.$hjSettings=window._hjSettings))}}})(),i})()));
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(this,(()=>(()=>{"use strict";var e={39:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Hotjar=void 0,o.Hotjar=class{constructor(e,o,t){var i,n,r,s;t?(i=window,n=document,i.hj=i.hj||function(){(i.hj.q=i.hj.q||[]).push(arguments)},i._hjSettings={hjid:e,hjsv:o},r=n.getElementsByTagName("head")[0],(s=n.createElement("script")).async=1,s.src="https://static.hotjar.com/c/hotjar-"+i._hjSettings.hjid+".js?sv="+i._hjSettings.hjsv,r.appendChild(s)):console.log("%c 🔥 HotJar Tracking Disabled 🔥","color: #fff; background: #35495d; font-size: 14px; border-radius: 5px; padding: 10px 5px; margin: 20px 0;")}}},861:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isVueVersionValid=o.isHotjarOptionsValid=void 0,o.isHotjarOptionsValid=function(e){return e.isProduction&&"boolean"!=typeof e.isProduction?(console.error(`vue-hotjar-next: Hotjar option isProduction is of type ${typeof e.isProduction} and should a boolean`),!1):e.snippetVersion&&"number"!=typeof e.snippetVersion?(console.error(`vue-hotjar-next: Hotjar option snippetVersion is of type ${typeof e.snippetVersion} and should a number`),!1):void 0===e.id?(console.error("Hotjar option ID is not defined"),!1):"number"==typeof e.id||"string"==typeof e.id||(console.error(`vue-hotjar-next: Hotjar option site id is of type ${typeof e.id} and should be a number or string`),!1)},o.isVueVersionValid=function(e){return"3"===e.version[0]||(console.error(`vue-hotjar-next: This plugin is intended to be used with Vue version 3. Version ${e.version} was detected.`),!1)}}},o={};function t(i){var n=o[i];if(void 0!==n)return n.exports;var r=o[i]={exports:{}};return e[i](r,r.exports,t),r.exports}var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0});const o=t(39),n=t(861);e.default={install:(e,t)=>{if(void 0===t.snippetVersion&&(t.snippetVersion=6),void 0===t.isProduction&&(t.isProduction=!0),n.isHotjarOptionsValid(t)&&n.isVueVersionValid(e)){const i="string"==typeof t.id?parseInt(t.id):t.id;new o.Hotjar(i,t.snippetVersion,t.isProduction),window.hj&&(e.config.globalProperties.$hj=window.hj,e.config.globalProperties.$hjSettings=window._hjSettings)}}}})(),i})()));
{
"name": "vue-hotjar-next",
"version": "2.0.1",
"version": "2.1.0",
"description": "Vue 3 Hotjar plugin",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -60,3 +60,3 @@ <p align="center">

Your Hotjar Site ID is a required parameter with a type of number. You can find this ID at insights.hotjar.com under tracking.
Your Hotjar Site ID is a required parameter, this can be of type string or number. You can find this ID [here](insights.hotjar.com) under tracking.

@@ -63,0 +63,0 @@ ```js

@@ -7,3 +7,3 @@ import { App } from 'vue';

*/
id: number;
id: number | string;

@@ -10,0 +10,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc