vue-hotjar-next
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -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 n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,(function(){return(()=>{"use strict";var e={39:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Hotjar=void 0;o.Hotjar=function(e,o,t){var n,i,r,s;t?(n=window,i=document,n.hj=n.hj||function(){(n.hj.q=n.hj.q||[]).push(arguments)},n._hjSettings={hjid:e,hjsv:o},r=i.getElementsByTagName("head")[0],(s=i.createElement("script")).async=1,s.src="https://static.hotjar.com/c/hotjar-"+n._hjSettings.hjid+".js?sv="+n._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)=>{function t(e){return new Promise((function(o,t){e?"number"!=typeof e?t("Hotjar option site id is of type "+typeof e+" and should a number"):o("valid"):t("Hotjar Tracking ID is not defined")}))}function n(e){return new Promise((function(o,t){"boolean"!=typeof e?t("Hotjar option isProduction is of type "+typeof e+" and should a boolean"):o("valid")}))}Object.defineProperty(o,"__esModule",{value:!0}),o.validateVueVersion=o.validateHotjarOptions=o.snippetVersion=o.isProduction=o.id=void 0,o.id=t,o.isProduction=n,o.snippetVersion=function(e){return new Promise((function(o,t){"number"!=typeof e?t("Hotjar option snippetVersion is of type "+typeof e+" and should a number"):o("valid")}))},o.validateHotjarOptions=function(e){return new Promise((function(o,i){Promise.all([t(e.id),n(e.isProduction)]).then((function(){o(!0)})).catch((function(e){console.error(e),i(!1)}))}))},o.validateVueVersion=function(e){return new Promise((function(o,t){"3"===e[0]?o(!0):(console.error("This plugin detected Vue version "+e+" but requires Vue 3.x.x"),t(!1))}))}}},o={};function t(n){var i=o[n];if(void 0!==i)return i.exports;var r=o[n]={exports:{}};return e[n](r,r.exports,t),r.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0});var o=t(39),i=t(861),r={install:function(e,t){var n=t.id,r=t.snippetVersion,s=void 0===r?6:r,a=t.isProduction,d=void 0===a||a;i.validateHotjarOptions({id:n,snippetVersion:s,isProduction:d})&&i.validateVueVersion(e.version)&&new o.Hotjar(n,s,d)}};e.default=r})(),n})()})); | ||
!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 n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(function(){return(()=>{"use strict";var e={39:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.Hotjar=void 0;o.Hotjar=function(e,o,t){var n,i,r,s;t?(n=window,i=document,n.hj=n.hj||function(){(n.hj.q=n.hj.q||[]).push(arguments)},n._hjSettings={hjid:e,hjsv:o},r=i.getElementsByTagName("head")[0],(s=i.createElement("script")).async=1,s.src="https://static.hotjar.com/c/hotjar-"+n._hjSettings.hjid+".js?sv="+n._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)=>{function t(e){return new Promise((function(o,t){e?"number"!=typeof e?t("Hotjar option site id is of type "+typeof e+" and should a number"):o("valid"):t("Hotjar Tracking ID is not defined")}))}function n(e){return new Promise((function(o,t){"boolean"!=typeof e?t("Hotjar option isProduction is of type "+typeof e+" and should a boolean"):o("valid")}))}Object.defineProperty(o,"__esModule",{value:!0}),o.validateVueVersion=o.validateHotjarOptions=o.snippetVersion=o.isProduction=o.id=void 0,o.id=t,o.isProduction=n,o.snippetVersion=function(e){return new Promise((function(o,t){"number"!=typeof e?t("Hotjar option snippetVersion is of type "+typeof e+" and should a number"):o("valid")}))},o.validateHotjarOptions=function(e){return new Promise((function(o,i){Promise.all([t(e.id),n(e.isProduction)]).then((function(){o(!0)})).catch((function(e){console.error(e),i(!1)}))}))},o.validateVueVersion=function(e){return new Promise((function(o,t){"3"===e[0]?o(!0):(console.error("This plugin detected Vue version "+e+" but requires Vue 3.x.x"),t(!1))}))}}},o={};function t(n){var i=o[n];if(void 0!==i)return i.exports;var r=o[n]={exports:{}};return e[n](r,r.exports,t),r.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0});var o=t(39),i=t(861),r={install:function(e,t){var n=t.id,r=t.snippetVersion,s=void 0===r?6:r,a=t.isProduction,d=void 0===a||a;i.validateHotjarOptions({id:n,snippetVersion:s,isProduction:d})&&i.validateVueVersion(e.version)&&new o.Hotjar(n,s,d)}};e.default=r})(),n})()})); |
{ | ||
"name": "vue-hotjar-next", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Vue 3 Hotjar plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
<p align="center"> | ||
<img width="350" src="https://i.imgur.com/wLrKYPj.png"> | ||
<img width="600" src="https://i.imgur.com/p1nLXFN.png"> | ||
<br> | ||
@@ -4,0 +4,0 @@ <br> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package