@jimp/plugin-blit
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"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -10,10 +10,6 @@ Object.defineProperty(exports, "__esModule", { | ||
require("core-js/modules/es7.symbol.async-iterator"); | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
require("core-js/modules/es6.symbol"); | ||
var _utils = require("@jimp/utils"); | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
var _default = function _default() { | ||
@@ -48,3 +44,3 @@ return { | ||
srch = src.bitmap.height; | ||
} else if (_typeof(srcx) === _typeof(srcy) && _typeof(srcy) === _typeof(srcw) && _typeof(srcw) === _typeof(srch)) { | ||
} else if ((0, _typeof2["default"])(srcx) === (0, _typeof2["default"])(srcy) && (0, _typeof2["default"])(srcy) === (0, _typeof2["default"])(srcw) && (0, _typeof2["default"])(srcw) === (0, _typeof2["default"])(srch)) { | ||
srcx = srcx || 0; | ||
@@ -51,0 +47,0 @@ srcy = srcy || 0; |
@@ -1,5 +0,15 @@ | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
"use strict"; | ||
import { throwError, isNodePattern } from '@jimp/utils'; | ||
export default (function () { | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
var _utils = require("@jimp/utils"); | ||
var _default = function _default() { | ||
return { | ||
@@ -20,7 +30,7 @@ /** | ||
if (!(src instanceof this.constructor)) { | ||
return throwError.call(this, 'The source must be a Jimp image', cb); | ||
return _utils.throwError.call(this, 'The source must be a Jimp image', cb); | ||
} | ||
if (typeof x !== 'number' || typeof y !== 'number') { | ||
return throwError.call(this, 'x and y must be numbers', cb); | ||
return _utils.throwError.call(this, 'x and y must be numbers', cb); | ||
} | ||
@@ -34,3 +44,3 @@ | ||
srch = src.bitmap.height; | ||
} else if (_typeof(srcx) === _typeof(srcy) && _typeof(srcy) === _typeof(srcw) && _typeof(srcw) === _typeof(srch)) { | ||
} else if ((0, _typeof2["default"])(srcx) === (0, _typeof2["default"])(srcy) && (0, _typeof2["default"])(srcy) === (0, _typeof2["default"])(srcw) && (0, _typeof2["default"])(srcw) === (0, _typeof2["default"])(srch)) { | ||
srcx = srcx || 0; | ||
@@ -41,3 +51,3 @@ srcy = srcy || 0; | ||
} else { | ||
return throwError.call(this, 'srcx, srcy, srcw, srch must be numbers', cb); | ||
return _utils.throwError.call(this, 'srcx, srcy, srcw, srch must be numbers', cb); | ||
} // round input | ||
@@ -81,3 +91,3 @@ | ||
if (isNodePattern(cb)) { | ||
if ((0, _utils.isNodePattern)(cb)) { | ||
cb.call(this, null, this); | ||
@@ -89,3 +99,5 @@ } | ||
}; | ||
}); | ||
}; | ||
exports["default"] = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@jimp/plugin-blit", | ||
"version": "0.9.1", | ||
"version": "0.9.2-canary.815.538.0", | ||
"description": "Blit an image.", | ||
@@ -23,9 +23,10 @@ "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" | ||
}, | ||
"devDependencies": { | ||
"@jimp/custom": "^0.9.1", | ||
"@jimp/jpeg": "^0.9.1", | ||
"@jimp/test-utils": "^0.9.1" | ||
"@jimp/custom": "0.9.2-canary.815.538.0", | ||
"@jimp/jpeg": "0.9.2-canary.815.538.0", | ||
"@jimp/test-utils": "0.9.2-canary.815.538.0" | ||
}, | ||
@@ -38,3 +39,3 @@ "peerDependencies": { | ||
}, | ||
"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
486
730797
4
+ 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