react-hotjar
Advanced tools
Comparing version 6.1.0 to 6.1.3
34
index.js
@@ -1,2 +0,2 @@ | ||
import hotjarLib from './src/react-hotjar'; | ||
const hotjarLib = require('./src/react-hotjar'); | ||
@@ -10,18 +10,20 @@ const hj = (...params) => { | ||
export const hotjar = { | ||
initialize(id, sv) { | ||
hotjarLib(id, sv); | ||
module.exports = { | ||
hotjar: { | ||
initialize: function initialize(id, sv) { | ||
hotjarLib(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); | ||
} | ||
}, | ||
initialized() { | ||
return typeof window !== 'undefined' && typeof window.hj === 'function'; | ||
}, | ||
identify(userId, properties) { | ||
hj('identify', userId, properties); | ||
}, | ||
event(event) { | ||
hj('event', event); | ||
}, | ||
stateChange(relativePath) { | ||
hj('stateChange', relativePath); | ||
}, | ||
}; |
{ | ||
"name": "react-hotjar", | ||
"version": "6.1.0", | ||
"version": "6.1.3", | ||
"description": "Small component to implement Hotjar into your react application", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "-" | ||
"release": "standard-version", | ||
"commit": "git-cz" | ||
}, | ||
@@ -22,6 +23,14 @@ "repository": { | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
} | ||
}, | ||
"homepage": "https://github.com/abdalla/react-hotjar#readme", | ||
"devDependencies": { | ||
"eslint": "8.25.0" | ||
"commitizen": "^4.3.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "8.25.0", | ||
"standard-version": "^9.5.0" | ||
} | ||
} |
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
7471
10
114
4