Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@jimp/utils

Package Overview
Dependencies
Maintainers
2
Versions
246
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/utils - npm Package Compare versions

Comparing version 0.8.6-canary.815.488.0 to 0.8.6-canary.815.502.0

29

es/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc