resemblejs
Advanced tools
Comparing version 4.0.1 to 4.1.0
{ | ||
"name": "resemblejs", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Image analysis and comparison with HTML5", | ||
@@ -44,13 +44,13 @@ "main": "resemble.js", | ||
"optionalDependencies": { | ||
"canvas": "2.8.0" | ||
"canvas": "2.9.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.3.4", | ||
"eslint": "^8.5.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"chai": "^4.3.6", | ||
"eslint": "^8.9.0", | ||
"eslint-config-prettier": "^8.4.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"jest": "^27.4.5", | ||
"jest-cli": "^27.4.5", | ||
"lint-staged": "^12.1.4", | ||
"jest": "^27.5.1", | ||
"jest-cli": "^27.5.1", | ||
"lint-staged": "^12.3.4", | ||
"prettier": "^2.5.1" | ||
@@ -57,0 +57,0 @@ }, |
@@ -319,6 +319,7 @@ /* | ||
hiddenImage.onerror = function (err) { | ||
hiddenImage.onerror = function (event) { | ||
hiddenImage.onload = null; | ||
hiddenImage.onerror = null; // fixes pollution between calls | ||
images.push({ error: err ? err + "" : "Image load error." }); | ||
const error = event ? event + "" : "Unknown error"; | ||
images.push({ error: `Failed to load image '${fileDataForImage}'. ${error}` }); | ||
callback(); | ||
@@ -325,0 +326,0 @@ }; |
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
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
50591
915