
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@swingby-protocol/pulsar
Advanced tools
Pulsar is a library of React components built with styled-components.
Install this library with:
yarn add @swingby-protocol/pulsar react-spring styled-components polished
yarn add --dev @types/styled-components
Use <PulsarThemeProvider />
with no props at the root of your app so that you get automatic
theme switching out of the box. Optionally, you may also use <PulsarGlobalStyles />
.
import React from 'react';
import {
PulsarThemeProvider,
Button,
PulsarGlobalStyles,
PulsarToastContainer,
} from '@swingby-protocol/pulsar';
export const MyApp = () => {
return (
<PulsarThemeProvider>
{/* Optional, to load the Inter font with `next/head`, `react-helmet`, etc. */}
<Head>
<link rel="stylesheet" href={PULSAR_GLOBAL_FONT_HREF} />
</Head>
<PulsarGlobalStyles /> {/* Optional */}
<h1>My cool app</h1>
<Button variant="primary" size="country">
Click here!
</Button>
<PulsarToastContainer /> {/* Put this somewhere near the root of your app if you are going to use toasts */}
</PulsarThemeProvider>
);
};
If you are using Next.js, you should probably use <PulsarThemeProvider />
in your _app.tsx
file.
Add a definitions file like the following anywhere in your project.
// DefaultTheme.d.ts
import 'styled-components';
import { PulsarThemeProvider } from '@swingby-protocol/pulsar';
declare module 'styled-components' {
export interface DefaultTheme extends PulsarThemeProvider {}
}
FAQs
Unknown package
We found that @swingby-protocol/pulsar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.