node-pngcrush
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,2 @@ | ||
var semver = require('semver'); | ||
var _handle = require('./scripts/util/binding.js')(); | ||
@@ -20,5 +21,5 @@ | ||
if (cb) this._callback = cb; | ||
if (process.versions.node >= '10.0.0') { | ||
if (semver.gte(process.versions.node, '10.0.0')) { | ||
out = (new _handle.Pngcrush(buffer, this._option)).compress(); | ||
} else if (process.versions.node >= '4.0.0') { | ||
} else if (semver.gte(process.versions.node, '4.0.0')) { | ||
out = new _handle(buffer, this._option).compress(); | ||
@@ -25,0 +26,0 @@ } else { |
{ | ||
"name": "node-pngcrush", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The node-pngcrush is an addon of node, as a readable/writable stream", | ||
@@ -27,3 +27,4 @@ "main": "index.js", | ||
"npmlog": "^4.0.0", | ||
"request": "^2.79.0" | ||
"request": "^2.88.0", | ||
"semver": "^5.6.0" | ||
}, | ||
@@ -30,0 +31,0 @@ "author": "xiangshouding <xiangshouding@baidu.com>", |
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
23556
686
6
+ Addedsemver@^5.6.0
+ Addedsemver@5.7.2(transitive)
Updatedrequest@^2.88.0