Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.1.0 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": {

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