Socket
Socket
Sign inDemoInstall

@jimp/plugin-color

Package Overview
Dependencies
Maintainers
2
Versions
243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/plugin-color - npm Package Compare versions

Comparing version 0.3.10 to 0.4.0

test/color.test.js

6

dist/index.js

@@ -543,5 +543,5 @@ "use strict";

var value = applyKernel(source, kernel, xx, yx);
this.bitmap.data[idx] = value[0];
this.bitmap.data[idx + 1] = value[1];
this.bitmap.data[idx + 2] = value[2];
this.bitmap.data[idx] = this.constructor.limit255(value[0]);
this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]);
this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]);
});

@@ -548,0 +548,0 @@

@@ -525,5 +525,5 @@ import tinyColor from 'tinycolor2';

var value = applyKernel(source, kernel, xx, yx);
this.bitmap.data[idx] = value[0];
this.bitmap.data[idx + 1] = value[1];
this.bitmap.data[idx + 2] = value[2];
this.bitmap.data[idx] = this.constructor.limit255(value[0]);
this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]);
this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]);
});

@@ -530,0 +530,0 @@

{
"name": "@jimp/plugin-color",
"version": "0.3.10",
"version": "0.4.0",
"description": "Bitmap manipulation to adjust the color in an image.",

@@ -8,2 +8,5 @@ "main": "dist/index.js",

"scripts": {
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
"test:watch": "npm run test -- --reporter min --watch",
"test:coverage": "nyc npm run test",
"build": "npm run build:node:production && npm run build:module",

@@ -20,6 +23,11 @@ "build:watch": "npm run build:node:debug -- -- --watch --verbose",

"dependencies": {
"@jimp/utils": "^0.3.9",
"@jimp/utils": "^0.4.0",
"core-js": "^2.5.7",
"tinycolor2": "^1.4.1"
},
"devDependencies": {
"@jimp/custom": "^0.4.0",
"@jimp/test-utils": "^0.4.0",
"@jimp/types": "^0.4.0"
},
"peerDependencies": {

@@ -31,3 +39,3 @@ "@jimp/custom": ">=0.3.5"

},
"gitHead": "5acf8bc88e2f086e9be6762b336fd18c2d147175"
"gitHead": "4daa956fce81c656ffa10d814a08412ef09b7e69"
}

@@ -609,5 +609,5 @@ import tinyColor from 'tinycolor2';

this.bitmap.data[idx] = value[0];
this.bitmap.data[idx + 1] = value[1];
this.bitmap.data[idx + 2] = value[2];
this.bitmap.data[idx] = this.constructor.limit255(value[0]);
this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]);
this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]);
});

@@ -614,0 +614,0 @@

Sorry, the diff of this file is not supported yet

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