Skip to content

Commit

Permalink
fix: security vulnerability with ip pkg in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Jul 19, 2024
1 parent 5041cfb commit 85d34b3
Show file tree
Hide file tree
Showing 4 changed files with 342 additions and 1,038 deletions.
8 changes: 6 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { StorybookConfig } from '@storybook/react-webpack5';
import path from 'path';
import remarkGfm from 'remark-gfm';
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
import Webpack from 'webpack';

Expand All @@ -13,7 +14,11 @@ const config: StorybookConfig = {
name: '@storybook/addon-docs',
options: {
csfPluginOptions: null,
mdxPluginOptions: {},
mdxPluginOptions: {
mdxCompileOptions: {
remarkPlugins: [remarkGfm],
},
},
transcludeMarkdown: true,
},
},
Expand Down Expand Up @@ -51,7 +56,6 @@ const config: StorybookConfig = {
],
},
},
'@storybook/addon-mdx-gfm',
'@storybook/addon-webpack5-compiler-swc',
'@chromatic-com/storybook',
],
Expand Down
3 changes: 2 additions & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { customViewports } from './viewports';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
// Deprecated: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#implicit-actions-can-not-be-used-during-rendering-for-example-in-the-play-function
// actions: { argTypesRegex: '^on[A-Z].*' },
backgrounds: {
default: 'leather-light-mode',
values: [
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
"react-router-dom": "6.23.1",
"react-virtuoso": "4.7.1",
"redux-persist": "6.0.0",
"remark-gfm": "4.0.0",
"rxjs": "7.8.1",
"style-loader": "3.3.4",
"ts-debounce": "4.0.0",
Expand Down Expand Up @@ -264,18 +265,17 @@
"@sentry/webpack-plugin": "2.17.0",
"@stacks/connect-react": "22.2.0",
"@stacks/stacks-blockchain-api-types": "7.8.2",
"@storybook/addon-docs": "8.1.4",
"@storybook/addon-essentials": "8.1.4",
"@storybook/addon-interactions": "8.1.4",
"@storybook/addon-links": "8.0.1",
"@storybook/addon-mdx-gfm": "8.1.4",
"@storybook/addon-onboarding": "8.0.1",
"@storybook/addon-docs": "8.2.4",
"@storybook/addon-essentials": "8.2.4",
"@storybook/addon-interactions": "8.2.4",
"@storybook/addon-links": "8.2.4",
"@storybook/addon-onboarding": "8.2.4",
"@storybook/addon-webpack5-compiler-swc": "1.0.2",
"@storybook/blocks": "8.1.4",
"@storybook/react": "8.1.4",
"@storybook/react-webpack5": "8.1.4",
"@storybook/test": "8.1.4",
"@storybook/theming": "8.1.4",
"@storybook/blocks": "8.2.4",
"@storybook/react": "8.2.4",
"@storybook/react-webpack5": "8.2.4",
"@storybook/test": "8.2.4",
"@storybook/theming": "8.2.4",
"@types/argon2-browser": "1.18.4",
"@types/bn.js": "5.1.5",
"@types/chrome": "0.0.260",
Expand Down Expand Up @@ -336,7 +336,7 @@
"react-dev-utils": "12.0.1",
"schema-inspector": "2.0.2",
"speed-measure-webpack-plugin": "1.5.0",
"storybook": "8.1.4",
"storybook": "8.2.4",
"stream-browserify": "3.0.0",
"svg-url-loader": "8.0.0",
"ts-node": "10.9.2",
Expand Down
Loading

0 comments on commit 85d34b3

Please sign in to comment.