
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
jw-color-picker
Advanced tools
A react component for basic color selection.
Method | Parameters | Description |
---|---|---|
setColor | r : integer. Default: 0 g : integer. Default: 0 b : integer. Default: 0 a : integer. Default: 1 | set the color to be selected. |
updateDialogPosition | re-position the color dialog to be within the view as possible. |
Prop | Description |
---|---|
paletteClassName (optional) | the class name for the color palette. Default: `` |
paletteStyle (optional) | the inline style for the color palette. Default: {} |
dialogWidth (optional) | the width of the picker dialog. Default: 200 |
dialogHeight (optional) | the height of the picker dialog. Default: 190 |
color (optional) | the initial color to be selected. Default: random color |
onChange (optional) | the behavior on color change. Default: () => {} |
import React, { Component } from "react";
import ReactDOM from "react-dom";
import ColorPicker from "jw-color-picker";
class Example extends Component {
constructor(props) {
super(props);
this.state = {
color: { r: 125, g: 125, b: 125, a: 1 }
};
}
render() {
const { color } = this.state;
const { r, g, b, a } = color;
return (
<ColorPicker
id="color-picker"
color={color}
onChange={value => this.setState({ color: value })}
/>
);
}
}
render(<Demo />, document.getElementById("root"));
FAQs
A react component for basic color selection.
The npm package jw-color-picker receives a total of 0 weekly downloads. As such, jw-color-picker popularity was classified as not popular.
We found that jw-color-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.