@ravti/analytics
Advanced tools
Comparing version 21.5.2 to 21.6.0-rc1
@@ -172,3 +172,11 @@ "use strict"; | ||
if (type === "identify") { | ||
return window.analytics.identify(event, properties); | ||
var rv = window.analytics.identify(event, properties); // Associate LogRocket callback for session URL in Segment | ||
// https://docs.logrocket.com/docs/supporting-users | ||
LogRocket.getSessionURL(function (sessionURL) { | ||
window.analytics.track("LogRocket", { | ||
sessionURL: sessionURL | ||
}); | ||
}); | ||
return rv; | ||
} | ||
@@ -185,3 +193,3 @@ | ||
value: function getUserId(user, userType) { | ||
var userId = Immutable.Map.isMap(user) ? user.get("id") : user.id; | ||
var userId = Immutable.Map.isMap(user) ? user.get("id") : (user || {}).id; | ||
@@ -281,3 +289,3 @@ switch (userType) { | ||
value: function getUserId(user, userType) { | ||
var userId = Immutable.Map.isMap(user) ? user.get("id") : user.id; | ||
var userId = Immutable.Map.isMap(user) ? user.get("id") : (user || {}).id; | ||
@@ -284,0 +292,0 @@ switch (userType) { |
{ | ||
"name": "@ravti/analytics", | ||
"version": "21.5.2", | ||
"version": "21.6.0-rc1", | ||
"description": "Ravti analytics", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
18239
493
0
2