
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@coralproject/rte
Advanced tools
Coral RTE is a lightweight and extensible Rich Text Editor based on React and Squire.
npm install @coralproject/rte --save-dev
import { CoralRTE, Bold, Italic, Blockquote } from "@coralproject/rte";
import createDOMPurify from "dompurify";
// See https://github.com/cure53/DOMPurify
const DOMPurify = createDOMPurify(window);
const sanitizeToDOMFragment = (html) => {
if (!html) {
return document.createDocumentFragment();
}
return DOMPurify.sanitize(html, { RETURN_DOM_FRAGMENT: true });
};
<CoralRTE
inputID="rte-field"
className="coral-rte"
contentClassName="coral-rte-content"
placeholderClassName="coral-rte-placeholder"
toolbarClassName="coral-rte-toolbar"
onChange={(html) => setValue(html)}
value={value}
disabled={disabled}
placeholder={"Enter some content"}
features={[<Bold />, <Italic />, <Blockquote />]}
toolbarPosition="bottom"
sanitizeToDOMFragment={sanitizeToDOMFragment}
/>;
npm run dev
npm run build
When you're ready to release a new vesrion of @coralproject/rte
,
you can do the following:
npm version --no-git-tag-version (major|minor|patch)
to update the
version number in package files.main
.main
, create a release with the version number: v0.4.0
(Note that the v
prefix is required)CircleCI will run your tests and release the new version for you.
FAQs
Coral Rich Text Editor
We found that @coralproject/rte demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.