@jimp/plugin-rotate
Advanced tools
Comparing version 0.9.1 to 0.9.2-canary.815.538.0
"use strict"; | ||
require("core-js/modules/es6.object.define-property"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -6,0 +4,0 @@ value: true |
@@ -1,2 +0,10 @@ | ||
import { throwError, isNodePattern } from '@jimp/utils'; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
var _utils = require("@jimp/utils"); | ||
/** | ||
@@ -7,3 +15,2 @@ * Rotates an image clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object. | ||
*/ | ||
function advancedRotate(deg, mode) { | ||
@@ -88,3 +95,3 @@ deg %= 360; | ||
export default (function () { | ||
var _default = function _default() { | ||
return { | ||
@@ -114,7 +121,7 @@ /** | ||
if (typeof deg !== 'number') { | ||
return throwError.call(this, 'deg must be a number', cb); | ||
return _utils.throwError.call(this, 'deg must be a number', cb); | ||
} | ||
if (typeof mode !== 'boolean' && typeof mode !== 'string') { | ||
return throwError.call(this, 'mode must be a boolean or a string', cb); | ||
return _utils.throwError.call(this, 'mode must be a boolean or a string', cb); | ||
} | ||
@@ -124,3 +131,3 @@ | ||
if (isNodePattern(cb)) { | ||
if ((0, _utils.isNodePattern)(cb)) { | ||
cb.call(this, null, this); | ||
@@ -132,3 +139,5 @@ } | ||
}; | ||
}); | ||
}; | ||
exports["default"] = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@jimp/plugin-rotate", | ||
"version": "0.9.1", | ||
"version": "0.9.2-canary.815.538.0", | ||
"description": "Rotate an image.", | ||
@@ -23,4 +23,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@jimp/utils": "^0.9.1", | ||
"core-js": "^2.5.7" | ||
"@babel/runtime": "^7.7.2", | ||
"@jimp/utils": "0.9.2-canary.815.538.0", | ||
"core-js": "^3.4.1" | ||
}, | ||
@@ -34,7 +35,7 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@jimp/custom": "^0.9.1", | ||
"@jimp/plugin-blit": "^0.9.1", | ||
"@jimp/plugin-crop": "^0.9.1", | ||
"@jimp/plugin-resize": "^0.9.1", | ||
"@jimp/test-utils": "^0.9.1" | ||
"@jimp/custom": "0.9.2-canary.815.538.0", | ||
"@jimp/plugin-blit": "0.9.2-canary.815.538.0", | ||
"@jimp/plugin-crop": "0.9.2-canary.815.538.0", | ||
"@jimp/plugin-resize": "0.9.2-canary.815.538.0", | ||
"@jimp/test-utils": "0.9.2-canary.815.538.0" | ||
}, | ||
@@ -44,3 +45,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "c6f11425c0e8585a73109d61d3372612bfa3799f" | ||
"gitHead": "7d4c8b69bc33d98b760ad1e0acbe678ed03647f1" | ||
} |
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
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
52536
963
7
+ Added@babel/runtime@^7.7.2
+ Added@jimp/utils@0.9.2-canary.815.538.0(transitive)
- Removed@jimp/utils@0.9.8(transitive)
- Removedcore-js@2.6.12(transitive)
Updatedcore-js@^3.4.1