looks-same
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -103,7 +103,7 @@ 'use strict'; | ||
exports.fromFile = (filePath, callback) => { | ||
const png = new PNG(); | ||
fs.createReadStream(filePath) | ||
.pipe(png) | ||
.on('parsed', () => callback(null, new PNGImage(png))) | ||
.on('error', callback); | ||
fs.readFile(filePath, (error, data) => { | ||
error | ||
? callback(error, null) | ||
: exports.fromBuffer(data, callback) | ||
}); | ||
}; | ||
@@ -110,0 +110,0 @@ |
{ | ||
"name": "looks-same", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Pure node.js library for comparing PNG-images, taking into account human color perception.", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"parse-color": "^1.0.0", | ||
"pngjs": "^2.2.0" | ||
"pngjs": "^3.0.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
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
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
26015
14
+ Addedpngjs@3.4.0(transitive)
- Removedpngjs@2.3.1(transitive)
Updatedpngjs@^3.0.1