Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@politico/interactive-style
Advanced tools
![](https://www.politico.com/interactives/cdn/images/badge.svg)
Component library for base POLITICO interactive page stylings.
Installation:
$ yarn add @politico/interactive-style
Import only what you need:
import { Headline } from "@politico/interactive-style";
Use it in your component:
import React from "react";
const MyComponent = () => <Headline />;
export default MyComponent;
Clone Repo:
$ git clone https://github.com/The-Politico/politico-interactive-style
Install dependencies:
$ yarn
Start development server:
$ yarn start
Increase the version number in package.json
. Increase the last number (i.e. 2.2.x
) if you're pushing a bug fix. Increase the second number and reset the last one to 0 (i.e. 2.x.0
) if you're pushing a new feature.
Rebuild the docs server.
$ yarn build
Commit/Push to GitHub with the latest version number.
$ git add .
$ git commit -m 'v2.x.x: What you changed.'
$ git push origin master
Publish latest docs (you have to be pushed to GitHub for this to work properly).
$ yarn docs
Publish to NPM. It will show you the current version as what you just changed in package.json. Don't increment again when prompted here, just hit enter.
$ yarn publish
FAQs
The reusable foundation of interactive stories at POLITICO
We found that @politico/interactive-style demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.