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.
@storybook/addon-queryparams
Advanced tools
This storybook addon can be helpful if your components need special query parameters to work the way you want them.
First, install the addon.
$ yarn add @storybook/addon-queryparams --dev
import the withQuery
decorator so the url will be changed before rendering stories.
import React from 'react';
import { storiesOf, addDecorator } from '@storybook/react';
import { withQuery } from '@storybook/addon-queryparams';
storiesOf('button', module)
.addDecorator(withQuery)
.addParameters({
query: {
mock: true,
}
})
.add('Prints the document.search', () => (
<div>
This is the current document.search: {document.search}, it includes `mock`!
</div>
));
FAQs
addon to mock queryparams in storybook
The npm package @storybook/addon-queryparams receives a total of 21,663 weekly downloads. As such, @storybook/addon-queryparams popularity was classified as popular.
We found that @storybook/addon-queryparams demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 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.