analytics-client
Advanced tools
Comparing version 1.1.0 to 1.2.0-amplitude-init-changes-4908f2561a043b663689b63e83ac7e74f51ef292
@@ -7,2 +7,7 @@ # Change Log | ||
# v1.2.0 | ||
## (2021-02-18) | ||
* Changed type of passedDeviceId on url-params [gelbal] | ||
# v1.1.0 | ||
@@ -9,0 +14,0 @@ ## (2021-02-17) |
{ | ||
"name": "analytics-client", | ||
"version": "1.1.0", | ||
"version": "1.2.0-amplitude-init-changes-4908f2561a043b663689b63e83ac7e74f51ef292", | ||
"description": "Convenient builders to compose analytics tools", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -13,5 +13,5 @@ import { Client } from './client'; | ||
allDeviceIds(): string[]; | ||
getPassedDeviceId(): string | null; | ||
getPassedDeviceId(): string | undefined; | ||
getDeviceIdsQueryString(): string; | ||
isOptOutRequested(): boolean; | ||
} |
@@ -17,3 +17,5 @@ "use strict"; | ||
var list = inputIdString ? inputIdString.split(deviceIdSeparator) : []; | ||
this.passedDeviceId = list.length > 0 ? list[0] : null; | ||
if (list.length > 0) { | ||
this.passedDeviceId = list[0]; | ||
} | ||
if (currentDeviceId) { | ||
@@ -20,0 +22,0 @@ list.push(currentDeviceId); |
{ | ||
"name": "analytics-client", | ||
"version": "1.1.0", | ||
"version": "1.2.0-amplitude-init-changes-4908f2561a043b663689b63e83ac7e74f51ef292", | ||
"description": "Convenient builders to compose analytics tools", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -18,3 +18,3 @@ import * as Cookies from 'js-cookie'; | ||
private deviceIds: Set<string> = new Set(); | ||
private passedDeviceId: string | null; | ||
private passedDeviceId: string | undefined; | ||
private optOutRequsted: boolean = false; | ||
@@ -32,3 +32,5 @@ | ||
const list = inputIdString ? inputIdString.split(deviceIdSeparator) : []; | ||
this.passedDeviceId = list.length > 0 ? list[0] : null; | ||
if (list.length > 0) { | ||
this.passedDeviceId = list[0]; | ||
} | ||
@@ -35,0 +37,0 @@ if (currentDeviceId) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
289168
2192
2