Comparing version 2.1.6 to 2.2.0
19
index.js
@@ -62,3 +62,20 @@ var USE_OLD_API = false, | ||
}, | ||
saveAsync: function (file, type, config, callback) { | ||
if (type && typeof(type) === 'object') { | ||
config = type; | ||
type = undefined; | ||
} | ||
if (!callback) { | ||
if (typeof type === 'function') { | ||
callback = type; | ||
type = undefined; | ||
} | ||
if (typeof config === 'function') { | ||
callback = config; | ||
config = undefined; | ||
} | ||
} | ||
fs.writeFile(file, this.encode(type || path.extname(file), config), callback); | ||
return this; | ||
}, | ||
resize: function(width, height, filter) { | ||
@@ -65,0 +82,0 @@ this._handle.resize(width, height, filter); |
{ | ||
"name": "images", | ||
"version": "2.1.6", | ||
"version": "2.2.0", | ||
"description": "Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Node.js", | ||
@@ -19,2 +19,6 @@ "main": "index.js", | ||
"0.12.99" | ||
], | ||
"4.0.0": [ | ||
"4.0.0", | ||
"4.99.99" | ||
] | ||
@@ -47,5 +51,4 @@ }, | ||
"devDependencies": { | ||
"nan": "1.6.2", | ||
"step": "0.0.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 26 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 7 instances 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
44488634
1
2130
6885
10
60
44