node-pngquant-native
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -14,4 +14,6 @@ var fs = require("fs"), | ||
'0.8.0', | ||
'0.9.9' | ||
'0.9.9', | ||
'0.12.0' | ||
]; | ||
tryList = [ | ||
@@ -18,0 +20,0 @@ path.join(__dirname, "build", "Release", name) // build dir |
11
index.js
@@ -53,11 +53,10 @@ var _handle = require('./binding.js'); | ||
compress: function(buffer, opt, cb) { | ||
cb = cb || function() {}; | ||
if (Object.prototype.toString.call(opt) == '[object Function]') { | ||
cb = opt; | ||
} else { | ||
compress: function(buffer, opt) { | ||
if (Object.prototype.toString.call(opt) == '[object Object]') { | ||
this.option(opt); | ||
} | ||
var handle = new _handle.Pngquant(); | ||
out = handle.compress(buffer, this.params, cb); | ||
out = handle.compress(buffer, this.params, function nope(){}); | ||
return out; | ||
@@ -64,0 +63,0 @@ } |
{ | ||
"name": "node-pngquant-native", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "A pngquant addon of node", | ||
@@ -29,3 +29,6 @@ "main": "index.js", | ||
"url": "https://github.com/xiangshouding/node-pngquant-native/issues" | ||
}, | ||
"dependencies": { | ||
"nan": "^1.6.2" | ||
} | ||
} |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
4148527
16
1
95
11
+ Addednan@^1.6.2
+ Addednan@1.9.0(transitive)