🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ubid

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ubid - npm Package Compare versions

Comparing version

to
0.1.1

build/ubid-0.1.1.js

37

index.js

@@ -137,18 +137,23 @@ 'use strict';

}
ctx.font = CANVAS_FONT_SIZE + 'px \'' + CANVAS_FONT_FACE + '\'';
ctx.textBaseline = 'middle';
ctx.textAlign = 'center';
ctx.fillStyle = "#f60";
ctx.fillRect( ( ( 3 * width ) / 8 ), 0, width / 4, height );
ctx.fillStyle = "#069";
ctx.fillText( CANVAS_TEXT, width / 2, height / 2 );
ctx.fillStyle = "rgba(102, 204, 0, 0.7)";
ctx.fillText( CANVAS_TEXT, ( width / 2 ) + 2, ( height / 2 ) + 2 );
var base64png = canvas.toDataURL( 'image/png' );
signatureData.canvas.signature = SHA256( base64png );
callback();
try {
ctx.font = CANVAS_FONT_SIZE + 'px \'' + CANVAS_FONT_FACE + '\'';
ctx.textBaseline = 'middle';
ctx.textAlign = 'center';
ctx.fillStyle = "#f60";
ctx.fillRect( ( ( 3 * width ) / 8 ), 0, width / 4, height );
ctx.fillStyle = "#069";
ctx.fillText( CANVAS_TEXT, width / 2, height / 2 );
ctx.fillStyle = "rgba(102, 204, 0, 0.7)";
ctx.fillText( CANVAS_TEXT, ( width / 2 ) + 2, ( height / 2 ) + 2 );
var base64png = canvas.toDataURL( 'image/png' );
signatureData.canvas.signature = SHA256( base64png );
callback();
} catch (ex) {
callback();
return;
}
}

@@ -155,0 +160,0 @@

{
"name": "ubid",
"version": "0.1.0",
"version": "0.1.1",
"description": "A browser identification library.",

@@ -5,0 +5,0 @@ "repository": {