
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
storybook-axios
Advanced tools
Storybook addon to inspect axios network requests.
Created using React, axios and antd
npm install storybook-axios
Add addon "storybook-axios" in .storybook/main.js
module.exports = {
stories: [
'../srcv2/**/*.stories.mdx',
'../srcv2/**/*.stories.@(js|jsx|ts|tsx)',
],
addons: [
'@storybook/addon-essentials',
'@storybook/addon-notes/register',
'@storybook/addon-a11y',
'@whitespace/storybook-addon-html',
'storybook-axios/register'
],
add a decorator in .storybook/preview.js
and pass in the axios
instance which is used in your app.
import withAxiosDecorator from 'storybook-axios';
import { getAxios } from '../utils/get-axios';
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
export const decorators = [withAxiosDecorator(getAxios())];
Note best way is to have an axios helper library, which creates a single instance and reuses it everywhere in the app. The decorator adds interceptors to that axios instance in order to listen for network requests.
[x] Make it work with FormData
FAQs
Axios inspection for storybook
We found that storybook-axios 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.