@segment/analytics.js-core
Advanced tools
Comparing version 4.1.10 to 4.1.11
@@ -38,2 +38,3 @@ 'use strict'; | ||
var prevent = require('@segment/prevent-default'); | ||
var url = require('component-url'); | ||
var store = require('./store'); | ||
@@ -725,9 +726,4 @@ var user = require('./user'); | ||
// Parse querystring to an object | ||
var a = document.createElement('a'); | ||
a.href = query; | ||
var parsedQuery = a.search.slice(1); | ||
console.log(parsedQuery); | ||
var q = parsedQuery | ||
.split('&') | ||
.reduce(function (acc, str) { | ||
var parsed = url.parse(query); | ||
var q = parsed.query.split('&').reduce(function (acc, str) { | ||
var _a = str.split('='), k = _a[0], v = _a[1]; | ||
@@ -734,0 +730,0 @@ acc[k] = decodeURI(v).replace('+', ' '); |
@@ -6,3 +6,3 @@ declare var bindAll: any; | ||
*/ | ||
declare var has: (v: string | number | symbol) => boolean; | ||
declare var has: (v: PropertyKey) => boolean; | ||
/** | ||
@@ -9,0 +9,0 @@ * Initialize `Memory` store |
{ | ||
"name": "@segment/analytics.js-core", | ||
"author": "Segment <friends@segment.com>", | ||
"version": "4.1.10", | ||
"version": "4.1.11", | ||
"description": "The hassle-free way to integrate analytics into any web application.", | ||
@@ -110,3 +110,3 @@ "types": "lib/index.d.ts", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^4.0.2", | ||
"typescript": "^4.2.4", | ||
"wait-on": "^5.0.1", | ||
@@ -113,0 +113,0 @@ "watchify": "^3.11.1" |
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
189307
4652