@segment/analytics.js-core
Advanced tools
Comparing version 3.2.3 to 3.2.5
3.2.5 / 2017-11-09 | ||
================== | ||
* This release has no application changes - it's an attempt to fix release commits on CI. | ||
3.2.4 / 2017-11-09 | ||
================== | ||
* Revert "update page defaults search method" (#51). | ||
3.2.3 / 2017-11-09 | ||
@@ -3,0 +14,0 @@ ================== |
@@ -23,3 +23,3 @@ 'use strict'; | ||
referrer: document.referrer, | ||
search: searchPath(), | ||
search: location.search, | ||
title: document.title, | ||
@@ -59,17 +59,2 @@ url: canonicalUrl(location.search) | ||
/** | ||
* Return the search path for the page | ||
* This is preferable to window.location.search because SPAs | ||
* can have a # in the url which will include the query param in | ||
* the hash | ||
* | ||
* @return {string} | ||
*/ | ||
function searchPath() { | ||
var url = window.location.href; | ||
var u = url.indexOf('?'); | ||
return u === -1 ? '' : url.slice(u, -1); | ||
} | ||
/* | ||
@@ -76,0 +61,0 @@ * Exports. |
{ | ||
"name": "@segment/analytics.js-core", | ||
"author": "Segment <friends@segment.com>", | ||
"version": "3.2.3", | ||
"version": "3.2.5", | ||
"description": "The hassle-free way to integrate analytics into any web application.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
175070
3956