@databeat/tracker
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -43,2 +43,3 @@ declare enum EventType { | ||
userAgentSalt?: boolean; | ||
extraSalt?: string; | ||
} | ||
@@ -45,0 +46,0 @@ declare enum Ident { |
@@ -262,3 +262,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class; var _class2; var _class3;// src/rpc/proto/databeat.gen.ts | ||
defaultEnabled: true, | ||
privacy: { userIdHash: true, userAgentSalt: true }, | ||
privacy: { userIdHash: true, userAgentSalt: false, extraSalt: "_dbeat" }, | ||
userIdentTracking: false, | ||
@@ -561,2 +561,5 @@ strictMode: false, | ||
} | ||
if (options.privacy.extraSalt && options.privacy.extraSalt.length > 0) { | ||
seed = seed + ":" + options.privacy.extraSalt; | ||
} | ||
return { userId: _utils.bytesToHex.call(void 0, _sha256.sha256.call(void 0, seed)).substring(0, 50), ident: 1 /* PRIVATE */ }; | ||
@@ -563,0 +566,0 @@ } else { |
{ | ||
"name": "@databeat/tracker", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "databeat tracker client for Web browsers and node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/databeat-tracker.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
143768
1272