@segment/analytics.js-integration-segmentio
Advanced tools
Comparing version 4.4.3 to 4.4.4
@@ -8,6 +8,9 @@ function utm(query) { | ||
return query.split('&').reduce(function(acc, str) { | ||
var k = str.split('=')[0] | ||
var v = str.split('=')[1] | ||
var split = query.split('&') | ||
var acc = {} | ||
for (var i = 0; i < split.length; i++) { | ||
var k = split[i].split('=')[0] | ||
var v = split[i].split('=')[1] | ||
if (k.indexOf('utm_') !== -1) { | ||
@@ -20,6 +23,7 @@ var utmParam = k.substr(4) | ||
} | ||
return acc | ||
}) | ||
} | ||
return acc | ||
} | ||
module.exports = utm |
{ | ||
"name": "@segment/analytics.js-integration-segmentio", | ||
"description": "The Segmentio analytics.js integration.", | ||
"version": "4.4.3", | ||
"version": "4.4.4", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "analytics.js", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
750425
10
2092
0