@thumbmarkjs/thumbmarkjs
Advanced tools
Comparing version 0.12.6 to 0.13.0
@@ -7,6 +7,8 @@ "use strict"; | ||
var deviceMemory = (navigator.deviceMemory !== undefined) ? navigator.deviceMemory : 0; | ||
var memoryInfo = (window.performance && window.performance.memory) ? window.performance.memory : 0; | ||
resolve({ | ||
'videocard': getVideoCard(), | ||
'architecture': getArchitecture(), | ||
'deviceMemory': deviceMemory.toString() || 'undefined' | ||
'deviceMemory': deviceMemory.toString() || 'undefined', | ||
'jsHeapSizeLimit': memoryInfo.jsHeapSizeLimit || 'undefined', | ||
}); | ||
@@ -17,2 +19,3 @@ }); | ||
* @see Credits: https://stackoverflow.com/a/49267844 | ||
* @returns VideoCard | "undefined" | ||
*/ | ||
@@ -19,0 +22,0 @@ function getVideoCard() { |
@@ -14,7 +14,28 @@ "use strict"; | ||
'useragent': navigator.userAgent, | ||
'browser': { 'name': browser.name, 'version': browser.version } | ||
'browser': { 'name': browser.name, 'version': browser.version }, | ||
'applePayInfo': getApplePayInfo() | ||
}); | ||
}); | ||
} | ||
/** | ||
* @returns applePayCanMakePayments: boolean, applePayMaxSupportedVersion: number | ||
*/ | ||
function getApplePayInfo() { | ||
var applePayCanMakePayments = false; | ||
var applePayMaxSupportedVersion = 0; | ||
if (typeof window.ApplePaySession === 'function') { | ||
var versionCheck = window.ApplePaySession.supportsVersion; | ||
var version = 0; | ||
while (versionCheck(version + 1)) { | ||
version++; | ||
} | ||
applePayCanMakePayments = version > 0; | ||
applePayMaxSupportedVersion = version; | ||
} | ||
return { | ||
applePayCanMakePayments: applePayCanMakePayments, | ||
applePayMaxSupportedVersion: applePayMaxSupportedVersion | ||
}; | ||
} | ||
(0, factory_1.includeComponent)('system', getSystemDetails); | ||
//# sourceMappingURL=system.js.map |
{ | ||
"name": "@thumbmarkjs/thumbmarkjs", | ||
"version": "0.12.6", | ||
"version": "0.13.0", | ||
"description": "", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"keywords": [ | ||
"fingerprint", "fingerprinting", "browser-fingerprint", "browser-fingerprinting" | ||
"fingerprint", "fingerprinting", "browser-fingerprint", "browser-fingerprinting", "audio-fingerprinting", "canvas-fingerprinting", "visitor-identifier", "fraud-detection" | ||
], | ||
@@ -19,0 +19,0 @@ "author": "Ilkka Peltola", |
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
102170
1456