Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@dailybeast/mobiledoc-react-renderer
Advanced tools
Mobiledoc server and client rendering for Mobiledoc-kit.
This renderer is used across www.thedailybeast.com to perform both client and server rendering of our React app. It supports rendering of markups, atoms, cards and custom sections of any mobiledoc (0.3.0 or greater).
This renderer is intended to be used from react components, for example:
import PropTypes from 'prop-types';
import { Component } from 'react';
import MobiledocReactRenderer from 'mobiledoc-react-renderer';
const mobiledoc = {
"atoms": [],
"cards": [],
"markups": [],
"sections": [
[
1,
"p",
[
[0, [], 0, "Hello world!"]
]
]
],
"version": "0.3.0"
};
export default class Mobiledoc extends Component {
static propTypes = {
mobiledoc: PropTypes.object.isRequired
};
constructor(props) {
super(props);
const options = { atoms: [], cards: [], markups: [] };
this.renderer = new MobiledocReactRenderer(options);
}
render() {
return this.renderer.render(this.props.mobiledoc);
}
}
To run the unit tests use: npm test
FAQs
Mobiledoc renderer that outputs valid react jsx
The npm package @dailybeast/mobiledoc-react-renderer receives a total of 1,733 weekly downloads. As such, @dailybeast/mobiledoc-react-renderer popularity was classified as popular.
We found that @dailybeast/mobiledoc-react-renderer 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
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.