@jimp/utils
Advanced tools
Comparing version 0.8.6-canary.815.488.0 to 0.8.6-canary.815.502.0
@@ -1,8 +0,20 @@ | ||
import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.isNodePattern = isNodePattern; | ||
exports.throwError = throwError; | ||
exports.scan = scan; | ||
exports.scanIterator = scanIterator; | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); | ||
var _marked = | ||
/*#__PURE__*/ | ||
_regeneratorRuntime.mark(scanIterator); | ||
_regenerator["default"].mark(scanIterator); | ||
export function isNodePattern(cb) { | ||
function isNodePattern(cb) { | ||
if (typeof cb === 'undefined') { | ||
@@ -18,3 +30,4 @@ return false; | ||
} | ||
export function throwError(error, cb) { | ||
function throwError(error, cb) { | ||
if (typeof error === 'string') { | ||
@@ -30,3 +43,4 @@ error = new Error(error); | ||
} | ||
export function scan(image, x, y, w, h, f) { | ||
function scan(image, x, y, w, h, f) { | ||
// round input | ||
@@ -47,6 +61,7 @@ x = Math.round(x); | ||
} | ||
export function scanIterator(image, x, y, w, h) { | ||
function scanIterator(image, x, y, w, h) { | ||
var _y, _x, idx; | ||
return _regeneratorRuntime.wrap(function scanIterator$(_context) { | ||
return _regenerator["default"].wrap(function scanIterator$(_context) { | ||
while (1) { | ||
@@ -53,0 +68,0 @@ switch (_context.prev = _context.next) { |
{ | ||
"name": "@jimp/utils", | ||
"version": "0.8.6-canary.815.488.0", | ||
"version": "0.8.6-canary.815.502.0", | ||
"description": "Utils for jimp extensions.", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
}, | ||
"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
16633
234