Comparing version 0.1.0 to 0.1.1
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": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
1212254
19
8995
6
16
1