@ombori/ga-settings
Advanced tools
Comparing version 2.170.1 to 2.185.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.185.0](https://github.com/ombori/gridapp/compare/v2.184.0...v2.185.0) (2022-03-18) | ||
### Features | ||
* add device name in useAppinfo ([8e21ed9](https://github.com/ombori/gridapp/commit/8e21ed98d3b7afe8ad3524f3253cb5dbe3f35446)) | ||
## [2.170.1](https://github.com/ombori/gridapp/compare/v2.170.0...v2.170.1) (2022-02-09) | ||
@@ -8,0 +19,0 @@ |
@@ -113,6 +113,4 @@ "use strict"; | ||
var hashParams = getHashParams(); | ||
console.log('hashParams:', JSON.stringify(hashParams)); | ||
console.log('userAgentDeviceInfo:', JSON.stringify(userAgentDeviceInfo)); | ||
if (Object.keys(hashParams).length || Object.keys(userAgentDeviceInfo).length) { | ||
return __assign(__assign(__assign({}, userAgentDeviceInfo), hashParams), { id: hashParams.browserId, accessId: hashParams.browserId, accessToken: hashParams.accessKey }); | ||
return __assign(__assign(__assign({}, userAgentDeviceInfo), hashParams), { id: hashParams.browserId, name: hashParams.deviceName, accessId: hashParams.browserId, accessToken: hashParams.accessKey }); | ||
} | ||
@@ -119,0 +117,0 @@ if (is_dev_1.default) |
{ | ||
"name": "@ombori/ga-settings", | ||
"version": "2.170.1", | ||
"version": "2.185.0", | ||
"main": "dist/index.js", | ||
@@ -19,3 +19,3 @@ "license": "UNLICENSED", | ||
}, | ||
"gitHead": "ce61e44f79c64fa50e4bf5b503cce5fdf48e840c" | ||
"gitHead": "89f8f36211f5f1ad7a81d95a198f4f1cb9df56da" | ||
} |
@@ -180,4 +180,3 @@ import { useEffect, useState, useRef } from 'react'; | ||
const hashParams = getHashParams(); | ||
console.log('hashParams:', JSON.stringify(hashParams)); | ||
console.log('userAgentDeviceInfo:', JSON.stringify(userAgentDeviceInfo)); | ||
if (Object.keys(hashParams).length || Object.keys(userAgentDeviceInfo).length) { | ||
@@ -188,2 +187,3 @@ return { | ||
id: hashParams.browserId, | ||
name: hashParams.deviceName, | ||
accessId: hashParams.browserId, | ||
@@ -190,0 +190,0 @@ accessToken: hashParams.accessKey, |
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
37603
617