@jimp/plugin-gaussian
Advanced tools
Comparing version 0.8.6-canary.815.488.0 to 0.8.6-canary.815.502.0
@@ -1,2 +0,10 @@ | ||
import { isNodePattern, throwError } from '@jimp/utils'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
var _utils = require("@jimp/utils"); | ||
/** | ||
@@ -8,4 +16,3 @@ * Applies a true Gaussian blur to the image (warning: this is VERY slow) | ||
*/ | ||
export default (function () { | ||
var _default = function _default() { | ||
return { | ||
@@ -15,7 +22,7 @@ gaussian: function gaussian(r, cb) { | ||
if (typeof r !== 'number') { | ||
return throwError.call(this, 'r must be a number', cb); | ||
return _utils.throwError.call(this, 'r must be a number', cb); | ||
} | ||
if (r < 1) { | ||
return throwError.call(this, 'r must be greater than 0', cb); | ||
return _utils.throwError.call(this, 'r must be greater than 0', cb); | ||
} | ||
@@ -71,3 +78,3 @@ | ||
if (isNodePattern(cb)) { | ||
if ((0, _utils.isNodePattern)(cb)) { | ||
cb.call(this, null, this); | ||
@@ -79,3 +86,5 @@ } | ||
}; | ||
}); | ||
}; | ||
exports["default"] = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@jimp/plugin-gaussian", | ||
"version": "0.8.6-canary.815.488.0", | ||
"version": "0.8.6-canary.815.502.0", | ||
"description": "gaussian blur an image.", | ||
@@ -21,3 +21,3 @@ "main": "dist/index.js", | ||
"@babel/runtime": "^7.7.2", | ||
"@jimp/utils": "0.8.6-canary.815.488.0", | ||
"@jimp/utils": "0.8.6-canary.815.502.0", | ||
"core-js": "^3.4.1" | ||
@@ -31,3 +31,3 @@ }, | ||
}, | ||
"gitHead": "3260b0cc7bddc7360f70248e28fdd815b7d17c8c" | ||
"gitHead": "5a68a9702462d87d579c9a54c5170d4940a2991d" | ||
} |
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
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
21637
205
+ Added@jimp/utils@0.8.6-canary.815.502.0(transitive)
- Removed@jimp/utils@0.8.6-canary.815.488.0(transitive)