babel-plugin-storybook-addon-pseudo-states-emotion
Advanced tools
Comparing version 0.2.1 to 0.2.2
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 @@ }); |
{ | ||
"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" | ||
} | ||
} |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
3968
56