Socket
Socket
Sign inDemoInstall

babel-plugin-storybook-addon-pseudo-states-emotion

Package Overview
Dependencies
55
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

CHANGELOG.md

10

index.js

@@ -13,3 +13,3 @@ const syntaxJsx = require("@babel/plugin-syntax-jsx").default;

if (/-/.exec(value)) {
return `&:${value},&.\\:${value},&.${prefix}${value.replace(/-/, "")}`;
return `&:${value},&.${prefix}${value},&.${prefix}${value.replace(/-/, "")}`;
}

@@ -24,3 +24,3 @@ return `&:${value},&.${prefix}${value}`;

*/
const replacePseudoState = (value, prefix) =>
const replacePseudoStates = (value, prefix) =>
value.replace(pattern, (match, $1) => createPseudoStates($1, prefix));

@@ -45,4 +45,3 @@

) {
const { value } = path.node;
path.node.value = replacePseudoState(value, prefix);
path.node.value = replacePseudoStates(path.node.value, prefix);
}

@@ -57,4 +56,3 @@ },

) {
const { value } = argument;
argument.value = replacePseudoState(value, prefix);
argument.value = replacePseudoStates(argument.value, prefix);
}

@@ -61,0 +59,0 @@ });

15

package.json
{
"name": "babel-plugin-storybook-addon-pseudo-states-emotion",
"version": "0.2.1",
"version": "0.2.2",
"keywords": [

@@ -10,8 +10,14 @@ "babel",

],
"scripts": {
"release": "yarn standard-version",
"release:rc": "yarn standard-version --prerelease rc",
"standard-version": "npx standard-version@9.3.1"
},
"bugs": {
"url": "https://github.com/dekk-app/design-system/issues"
"url": "https://github.com/dekk-app/babel-plugin-storybook-addon-pseudo-states-emotion/issues"
},
"homepage": "https://github.com/dekk-app/babel-plugin-storybook-addon-pseudo-states-emotion",
"repository": {
"type": "git",
"url": "git+https://github.com/dekk-app/design-system.git"
"url": "git+https://github.com/dekk-app/babel-plugin-storybook-addon-pseudo-states-emotion.git"
},

@@ -38,4 +44,3 @@ "license": "MIT",

"access": "public"
},
"gitHead": "c89b66c553a162b0e5914b5682c70db783d2679d"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc