🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-hotjar

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hotjar - npm Package Compare versions

Comparing version

to
6.0.0

41

index.js

@@ -1,30 +0,27 @@

var hotjar = require('./src/react-hotjar');
import hotjar from './src/react-hotjar';
function hj() {
var params = Array.prototype.slice.call(arguments);
const params = Array.prototype.slice.call(arguments);
if (!window.hj) {
throw new Error('Hotjar is not initialized');
}
window.hj.apply(undefined, params);
}
module.exports = {
hotjar: {
initialize: function initialize(id, sv) {
hotjar(id, sv);
},
initialized: function initialized() {
return typeof window !== 'undefined' && typeof window?.hj === 'function';
},
identify: function identify(userId, properties) {
hj('identify', userId, properties);
},
event: function event(event) {
hj('event', event);
},
stateChange: function stateChange(relativePath) {
hj('stateChange', relativePath);
}
}
};
export const hotjar = {
initialize: function initialize(id, sv) {
hotjar(id, sv);
},
initialized: function initialized() {
return typeof window !== 'undefined' && typeof window.hj === 'function';
},
identify: function identify(userId, properties) {
hj('identify', userId, properties);
},
event: function event(event) {
hj('event', event);
},
stateChange: function stateChange(relativePath) {
hj('stateChange', relativePath);
},
};
{
"name": "react-hotjar",
"version": "5.5.0",
"version": "6.0.0",
"description": "Small component to implement Hotjar into your react application",

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