Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-browser-fingerprint

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-browser-fingerprint - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

13

package.json
{
"name": "get-browser-fingerprint",
"version": "3.0.0",
"version": "3.1.0",
"author": "Damiano Barbati <damiano.barbati@gmail.com> (https://github.com/damianobarbati)",

@@ -8,2 +8,7 @@ "repository": "https://github.com/damianobarbati/get-browser-fingerprint",

"main": "src/index.js",
"files": [
"README.md",
"package.json",
"src/index.js"
],
"type": "module",

@@ -15,7 +20,7 @@ "scripts": {

"devDependencies": {
"eslint-config-xs": "^1.6.2",
"eslint-config-xs": "^2.6.1",
"http-server": "^14.1.1",
"puppeteer": "^19.8.0",
"vitest": "^0.29.7"
"puppeteer": "^21.4.1",
"vitest": "^0.34.6"
}
}
const getBrowserFingerprint = ({ hardwareOnly = false, enableWebgl = false, debug = false } = {}) => {
const { cookieEnabled, deviceMemory, doNotTrack, hardwareConcurrency, language, languages, maxTouchPoints, platform, userAgent, vendor } = window.navigator;
const {
cookieEnabled,
deviceMemory,
doNotTrack,
hardwareConcurrency,
language,
languages,
maxTouchPoints,
platform,
userAgent,
vendor,
} = window.navigator;

@@ -100,3 +111,4 @@ const { width, height, colorDepth, pixelDepth } = window.screen;

'attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}';
const g = 'precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}';
const g =
'precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}';
const h = ctx.createBuffer();

@@ -155,6 +167,6 @@

const result = {
VERSION: ctx.getParameter(ctx.VERSION),
SHADING_LANGUAGE_VERSION: ctx.getParameter(ctx.SHADING_LANGUAGE_VERSION),
VENDOR: ctx.getParameter(ctx.VENDOR),
SUPORTED_EXTENSIONS: ctx.getSupportedExtensions(),
VERSION: String(ctx.getParameter(ctx.VERSION)),
SHADING_LANGUAGE_VERSION: String(ctx.getParameter(ctx.SHADING_LANGUAGE_VERSION)),
VENDOR: String(ctx.getParameter(ctx.VENDOR)),
SUPORTED_EXTENSIONS: String(ctx.getSupportedExtensions()),
};

@@ -177,3 +189,7 @@

for (let i = 0; i < bytes; i++) {
k1 = (key.charCodeAt(i) & 0xff) | ((key.charCodeAt(++i) & 0xff) << 8) | ((key.charCodeAt(++i) & 0xff) << 16) | ((key.charCodeAt(++i) & 0xff) << 24);
k1 =
(key.charCodeAt(i) & 0xff) |
((key.charCodeAt(++i) & 0xff) << 8) |
((key.charCodeAt(++i) & 0xff) << 16) |
((key.charCodeAt(++i) & 0xff) << 24);
++i;

@@ -226,4 +242,6 @@

window.getBrowserFingerprint = getBrowserFingerprint;
if (typeof window !== 'undefined') {
window.getBrowserFingerprint = getBrowserFingerprint;
}
export default getBrowserFingerprint;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc