@thumbmarkjs/thumbmarkjs 0.12.6 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/audio/audio.d.ts +0 -0
- package/dist/components/audio/audio.js +0 -0
- package/dist/components/audio/audio.js.map +0 -0
- package/dist/components/canvas/canvas.d.ts +0 -0
- package/dist/components/canvas/canvas.js +0 -0
- package/dist/components/canvas/canvas.js.map +0 -0
- package/dist/components/fonts/fonts.d.ts +0 -0
- package/dist/components/fonts/fonts.js +0 -0
- package/dist/components/fonts/fonts.js.map +0 -0
- package/dist/components/hardware/hardware.d.ts +0 -0
- package/dist/components/hardware/hardware.js +4 -1
- package/dist/components/hardware/hardware.js.map +1 -1
- package/dist/components/index.d.ts +0 -0
- package/dist/components/index.js +0 -0
- package/dist/components/index.js.map +0 -0
- package/dist/components/locales/locales.d.ts +0 -0
- package/dist/components/locales/locales.js +0 -0
- package/dist/components/locales/locales.js.map +0 -0
- package/dist/components/math/math.d.ts +0 -0
- package/dist/components/math/math.js +0 -0
- package/dist/components/math/math.js.map +0 -0
- package/dist/components/permissions/permissions.d.ts +0 -0
- package/dist/components/permissions/permissions.js +0 -0
- package/dist/components/permissions/permissions.js.map +0 -0
- package/dist/components/plugins/plugins.d.ts +0 -0
- package/dist/components/plugins/plugins.js +0 -0
- package/dist/components/plugins/plugins.js.map +0 -0
- package/dist/components/screen/screen.d.ts +0 -0
- package/dist/components/screen/screen.js +0 -0
- package/dist/components/screen/screen.js.map +0 -0
- package/dist/components/system/browser.d.ts +0 -0
- package/dist/components/system/browser.js +0 -0
- package/dist/components/system/browser.js.map +0 -0
- package/dist/components/system/system.d.ts +0 -0
- package/dist/components/system/system.js +22 -1
- package/dist/components/system/system.js.map +1 -1
- package/dist/components/webgl/webgl.d.ts +0 -0
- package/dist/components/webgl/webgl.js +0 -0
- package/dist/components/webgl/webgl.js.map +0 -0
- package/dist/factory.d.ts +0 -0
- package/dist/factory.js +0 -0
- package/dist/factory.js.map +0 -0
- package/dist/fingerprint/functions.d.ts +0 -0
- package/dist/fingerprint/functions.js +0 -0
- package/dist/fingerprint/functions.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/utils/commonPixels.d.ts +0 -0
- package/dist/utils/commonPixels.js +0 -0
- package/dist/utils/commonPixels.js.map +0 -0
- package/dist/utils/ephemeralIFrame.d.ts +0 -0
- package/dist/utils/ephemeralIFrame.js +0 -0
- package/dist/utils/ephemeralIFrame.js.map +0 -0
- package/dist/utils/getMostFrequent.d.ts +0 -0
- package/dist/utils/getMostFrequent.js +0 -0
- package/dist/utils/getMostFrequent.js.map +0 -0
- package/dist/utils/hash.d.ts +0 -0
- package/dist/utils/hash.js +0 -0
- package/dist/utils/hash.js.map +0 -0
- package/dist/utils/imageDataToDataURL.d.ts +0 -0
- package/dist/utils/imageDataToDataURL.js +0 -0
- package/dist/utils/imageDataToDataURL.js.map +0 -0
- package/dist/utils/raceAll.d.ts +0 -0
- package/dist/utils/raceAll.js +0 -0
- package/dist/utils/raceAll.js.map +0 -0
- package/package.json +2 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,15 +4,18 @@ var factory_1 = require("../../factory");
|
|
|
4
4
|
function getHardwareInfo() {
|
|
5
5
|
return new Promise(function (resolve, reject) {
|
|
6
6
|
var deviceMemory = (navigator.deviceMemory !== undefined) ? navigator.deviceMemory : 0;
|
|
7
|
+
var memoryInfo = (window.performance && window.performance.memory) ? window.performance.memory : 0;
|
|
7
8
|
resolve({
|
|
8
9
|
'videocard': getVideoCard(),
|
|
9
10
|
'architecture': getArchitecture(),
|
|
10
|
-
'deviceMemory': deviceMemory.toString() || 'undefined'
|
|
11
|
+
'deviceMemory': deviceMemory.toString() || 'undefined',
|
|
12
|
+
'jsHeapSizeLimit': memoryInfo.jsHeapSizeLimit || 'undefined',
|
|
11
13
|
});
|
|
12
14
|
});
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* @see Credits: https://stackoverflow.com/a/49267844
|
|
18
|
+
* @returns VideoCard | "undefined"
|
|
16
19
|
*/
|
|
17
20
|
function getVideoCard() {
|
|
18
21
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware.js","sourceRoot":"","sources":["../../../src/components/hardware/hardware.ts"],"names":[],"mappings":";;AAAA,yCAAoE;AAEpE,SAAS,eAAe;IACtB,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,YAAY,GAAG,CAAC,SAAS,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;QACxF,OAAO,CACL;YACE,WAAW,EAAE,YAAY,EAAE;YAC3B,cAAc,EAAE,eAAe,EAAE;YACjC,cAAc,EAAE,YAAY,CAAC,QAAQ,EAAE,IAAI,WAAW;
|
|
1
|
+
{"version":3,"file":"hardware.js","sourceRoot":"","sources":["../../../src/components/hardware/hardware.ts"],"names":[],"mappings":";;AAAA,yCAAoE;AAEpE,SAAS,eAAe;IACtB,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QACjC,IAAM,YAAY,GAAG,CAAC,SAAS,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA;QACxF,IAAM,UAAU,GAAG,CAAC,MAAM,CAAC,WAAW,IAAK,MAAM,CAAC,WAAmB,CAAC,MAAM,CAAE,CAAC,CAAC,CAAE,MAAM,CAAC,WAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;QACvH,OAAO,CACL;YACE,WAAW,EAAE,YAAY,EAAE;YAC3B,cAAc,EAAE,eAAe,EAAE;YACjC,cAAc,EAAE,YAAY,CAAC,QAAQ,EAAE,IAAI,WAAW;YACtD,iBAAiB,EAAE,UAAU,CAAC,eAAe,IAAI,WAAW;SAC7D,CACF,CAAA;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAOD;;;GAGG;AACH,SAAS,YAAY;;IACnB,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;IAC/C,IAAM,EAAE,GAAG,MAAA,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,mCAAI,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAChF,IAAI,EAAE,IAAI,cAAc,IAAI,EAAE,EAAE,CAAC;QAC/B,OAAO;YACL,MAAM,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;YACrD,QAAQ,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;SAC1D,CAAA;IACH,CAAC;IACD,OAAO,WAAW,CAAA;AACpB,CAAC;AAED,SAAS,eAAe;IACtB,IAAM,CAAC,GAAG,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B,IAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;IAChB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnB,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;AACf,CAAC;AAED,IAAA,0BAAgB,EAAC,UAAU,EAAE,eAAe,CAAC,CAAC"}
|
|
File without changes
|
package/dist/components/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,9 +11,30 @@ function getSystemDetails() {
|
|
|
11
11
|
'productSub': navigator.productSub,
|
|
12
12
|
'product': navigator.product,
|
|
13
13
|
'useragent': navigator.userAgent,
|
|
14
|
-
'browser': { 'name': browser.name, 'version': browser.version }
|
|
14
|
+
'browser': { 'name': browser.name, 'version': browser.version },
|
|
15
|
+
'applePayInfo': getApplePayInfo()
|
|
15
16
|
});
|
|
16
17
|
});
|
|
17
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* @returns applePayCanMakePayments: boolean, applePayMaxSupportedVersion: number
|
|
21
|
+
*/
|
|
22
|
+
function getApplePayInfo() {
|
|
23
|
+
var applePayCanMakePayments = false;
|
|
24
|
+
var applePayMaxSupportedVersion = 0;
|
|
25
|
+
if (typeof window.ApplePaySession === 'function') {
|
|
26
|
+
var versionCheck = window.ApplePaySession.supportsVersion;
|
|
27
|
+
var version = 0;
|
|
28
|
+
while (versionCheck(version + 1)) {
|
|
29
|
+
version++;
|
|
30
|
+
}
|
|
31
|
+
applePayCanMakePayments = version > 0;
|
|
32
|
+
applePayMaxSupportedVersion = version;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
applePayCanMakePayments: applePayCanMakePayments,
|
|
36
|
+
applePayMaxSupportedVersion: applePayMaxSupportedVersion
|
|
37
|
+
};
|
|
38
|
+
}
|
|
18
39
|
(0, factory_1.includeComponent)('system', getSystemDetails);
|
|
19
40
|
//# sourceMappingURL=system.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../src/components/system/system.ts"],"names":[],"mappings":";;AAAA,yCAAqE;AACrE,qCAAsC;AAEtC,SAAS,gBAAgB;IACrB,OAA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C,eAAe,CAAC,eAAe,CAAC;QACrE,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,OAAO,YAAY,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC;YAC/B,OAAO,EAAE,CAAC;QACd,CAAC;QACD,uBAAuB,GAAG,OAAO,GAAG,CAAC,CAAC;QACtC,2BAA2B,GAAG,OAAO,CAAC;IAC1C,CAAC;IAED,OAAO;QACH,uBAAuB,yBAAA;QACvB,2BAA2B,6BAAA;KAC9B,CAAC;AACN,CAAC;AAED,IAAA,0BAAgB,EAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/factory.d.ts
CHANGED
|
File without changes
|
package/dist/factory.js
CHANGED
|
File without changes
|
package/dist/factory.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/index.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/utils/hash.d.ts
CHANGED
|
File without changes
|
package/dist/utils/hash.js
CHANGED
|
File without changes
|
package/dist/utils/hash.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/utils/raceAll.d.ts
CHANGED
|
File without changes
|
package/dist/utils/raceAll.js
CHANGED
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thumbmarkjs/thumbmarkjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "npx webpack && npx tsc"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
|
-
"fingerprint", "fingerprinting", "browser-fingerprint", "browser-fingerprinting"
|
|
16
|
+
"fingerprint", "fingerprinting", "browser-fingerprint", "browser-fingerprinting", "audio-fingerprinting", "canvas-fingerprinting", "visitor-identifier", "fraud-detection"
|
|
17
17
|
],
|
|
18
18
|
"author": "Ilkka Peltola",
|
|
19
19
|
"license": "MIT",
|