New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-use-hotjar

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-hotjar - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### [1.0.8](https://github.com/olavoparno/react-use-hotjar/compare/v1.0.7...v1.0.8) (2020-08-13)
### [1.0.7](https://github.com/olavoparno/react-use-hotjar/compare/v1.0.6...v1.0.7) (2020-08-13)

@@ -7,0 +9,0 @@

1

dist/index.es.js
import{useCallback as t,useMemo as r}from"react";function n(){var n=function(){var n=t((function(t,r){try{var n=document.getElementById(r)||document.createElement("script");return n.id=r,n.innerText=t,n.crossOrigin="anonymous",document.head.appendChild(n),!0}catch(t){return!1}}),[]);return r((function(){return{appendHeadScript:n}}),[n])}().appendHeadScript,e=t((function(t,r,e){var i=n("(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:"+t+",hjsv:"+r+"};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');","hotjar-script");return e&&"function"==typeof e&&e("Hotjar ready: "+i),i}),[n]),i=t((function(t,r,e){try{var i=n('var userId="'+t+'" || null;window.hj("identify",userId,'+r+");","identify-script");return e&&"function"==typeof e&&e("Hotjar identified: "+i),i}catch(t){return console.error("Hotjar error:",t),!1}}),[n]);return r((function(){return{initHotjar:e,identifyHotjar:i}}),[e,i])}export{n as useHotjar};
//# sourceMappingURL=index.es.js.map
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react");exports.useHotjar=function(){var e=function(){var e=t.useCallback((function(t,e){try{var r=document.getElementById(e)||document.createElement("script");return r.id=e,r.innerText=t,r.crossOrigin="anonymous",document.head.appendChild(r),!0}catch(t){return!1}}),[]);return t.useMemo((function(){return{appendHeadScript:e}}),[e])}().appendHeadScript,r=t.useCallback((function(t,r,n){var a=e("(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:"+t+",hjsv:"+r+"};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');","hotjar-script");return n&&"function"==typeof n&&n("Hotjar ready: "+a),a}),[e]),n=t.useCallback((function(t,r,n){try{var a=e('var userId="'+t+'" || null;window.hj("identify",userId,'+r+");","identify-script");return n&&"function"==typeof n&&n("Hotjar identified: "+a),a}catch(t){return console.error("Hotjar error:",t),!1}}),[e]);return t.useMemo((function(){return{initHotjar:r,identifyHotjar:n}}),[r,n])};
//# sourceMappingURL=index.js.map
{
"name": "react-use-hotjar",
"version": "1.0.7",
"version": "1.0.8",
"description": "Add Hotjar capabilities as custom hooks",

@@ -5,0 +5,0 @@ "author": "Olavo Parno",

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