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.22.6--canary.1198.9324a88b87a1fc38b528af47ca707d97593dddaa.0 to 0.22.6

16

CHANGELOG.md

@@ -0,1 +1,17 @@

# v0.22.6 (Fri Feb 24 2023)
:tada: This release contains work from a new contributor! :tada:
Thank you, Daniell ([@daniellwdb](https://github.com/daniellwdb)), for all your work!
#### 🐛 Bug Fix
- Export ColorActionName enum [#1205](https://github.com/jimp-dev/jimp/pull/1205) ([@daniellwdb](https://github.com/daniellwdb))
#### Authors: 1
- Daniell ([@daniellwdb](https://github.com/daniellwdb))
---
# v0.22.4 (Tue Feb 07 2023)

@@ -2,0 +18,0 @@

21

dist/index.js

@@ -6,3 +6,3 @@ "use strict";

});
exports.default = void 0;
exports.default = exports.ColorActionName = void 0;
var _tinycolor = _interopRequireDefault(require("tinycolor2"));

@@ -109,2 +109,20 @@ var _utils = require("@jimp/utils");

}
const ColorActionName = Object.freeze({
LIGHTEN: "lighten",
BRIGHTEN: "brighten",
DARKEN: "darken",
DESATURATE: "desaturate",
SATURATE: "saturate",
GREYSCALE: "greyscale",
SPIN: "spin",
HUE: "hue",
MIX: "mix",
TINT: "tint",
SHADE: "shade",
XOR: "xor",
RED: "red",
GREEN: "green",
BLUE: "blue"
});
exports.ColorActionName = ColorActionName;
var _default = () => ({

@@ -471,3 +489,2 @@ /**

exports.default = _default;
module.exports = exports.default;
//# sourceMappingURL=index.js.map

@@ -101,2 +101,19 @@ import tinyColor from "tinycolor2";

}
export const ColorActionName = Object.freeze({
LIGHTEN: "lighten",
BRIGHTEN: "brighten",
DARKEN: "darken",
DESATURATE: "desaturate",
SATURATE: "saturate",
GREYSCALE: "greyscale",
SPIN: "spin",
HUE: "hue",
MIX: "mix",
TINT: "tint",
SHADE: "shade",
XOR: "xor",
RED: "red",
GREEN: "green",
BLUE: "blue"
});
export default (() => ({

@@ -103,0 +120,0 @@ /**

28

index.d.ts
import { ImageCallback } from "@jimp/core";
type ColorActionName =
| "mix"
| "tint"
| "shade"
| "xor"
| "red"
| "green"
| "blue"
| "hue"
| "lighten"
| "darken";
export enum ColorActionName {
LIGHTEN = "lighten",
BRIGHTEN = "brighten",
DARKEN = "darken",
DESATURATE = "desaturate",
SATURATE = "saturate",
GREYSCALE = "greyscale",
SPIN = "spin",
HUE = "hue",
MIX = "mix",
TINT = "tint",
SHADE = "shade",
XOR = "xor",
RED = "red",
GREEN = "green",
BLUE = "blue",
}

@@ -15,0 +21,0 @@ type ColorAction = {

{
"name": "@jimp/plugin-color",
"version": "0.22.6--canary.1198.9324a88b87a1fc38b528af47ca707d97593dddaa.0",
"version": "0.22.6",
"description": "Bitmap manipulation to adjust the color in an image.",

@@ -24,9 +24,9 @@ "main": "dist/index.js",

"dependencies": {
"@jimp/utils": "0.22.6--canary.1198.9324a88b87a1fc38b528af47ca707d97593dddaa.0",
"@jimp/utils": "^0.22.6",
"tinycolor2": "^1.6.0"
},
"devDependencies": {
"@jimp/custom": "0.22.6--canary.1198.9324a88b87a1fc38b528af47ca707d97593dddaa.0",
"@jimp/test-utils": "0.22.6--canary.1198.9324a88b87a1fc38b528af47ca707d97593dddaa.0",
"@jimp/types": "0.22.6--canary.1198.9324a88b87a1fc38b528af47ca707d97593dddaa.0"
"@jimp/custom": "^0.22.6",
"@jimp/test-utils": "^0.22.6",
"@jimp/types": "^0.22.6"
},

@@ -39,3 +39,3 @@ "peerDependencies": {

},
"gitHead": "9324a88b87a1fc38b528af47ca707d97593dddaa"
"gitHead": "1ff8a39619dd1794c9bf5f2d27fbc195c5160248"
}

@@ -131,2 +131,20 @@ import tinyColor from "tinycolor2";

export const ColorActionName = Object.freeze({
LIGHTEN: "lighten",
BRIGHTEN: "brighten",
DARKEN: "darken",
DESATURATE: "desaturate",
SATURATE: "saturate",
GREYSCALE: "greyscale",
SPIN: "spin",
HUE: "hue",
MIX: "mix",
TINT: "tint",
SHADE: "shade",
XOR: "xor",
RED: "red",
GREEN: "green",
BLUE: "blue",
});
export default () => ({

@@ -133,0 +151,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