Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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 37,905 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.