@pandacss/parser
Advanced tools
Comparing version 0.0.0-dev-20221130182523 to 0.0.0-dev-20221130183053
@@ -65,3 +65,5 @@ "use strict"; | ||
function extractValue(value) { | ||
return (0, import_ts_pattern.match)(value).when(isPrimitiveLiteral, (value2) => { | ||
return (0, import_ts_pattern.match)(value).when(import_ts_morph.Node.isStringLiteral, (value2) => { | ||
return value2.getLiteralValue().replaceAll(/[\n\s]+/g, " "); | ||
}).when(isPrimitiveLiteral, (value2) => { | ||
return value2.getLiteralValue(); | ||
@@ -227,3 +229,3 @@ }).when(import_ts_morph.Node.isNullLiteral, () => { | ||
(0, import_ts_pattern2.match)(value).when(import_ts_morph3.Node.isStringLiteral, (value2) => { | ||
data[name] = value2.getLiteralValue(); | ||
data[name] = value2.getLiteralValue().replaceAll(/[\n\s]+/g, " "); | ||
}).when(import_ts_morph3.Node.isJsxExpression, (value2) => { | ||
@@ -230,0 +232,0 @@ const expr = value2.getExpression(); |
{ | ||
"name": "@pandacss/parser", | ||
"version": "0.0.0-dev-20221130182523", | ||
"version": "0.0.0-dev-20221130183053", | ||
"description": "The static parser for panda css", | ||
@@ -16,9 +16,9 @@ "main": "dist/index.js", | ||
"ts-morph": "17.0.1", | ||
"@pandacss/logger": "0.0.0-dev-20221130182523", | ||
"@pandacss/shared": "0.0.0-dev-20221130182523", | ||
"@pandacss/is-valid-prop": "0.0.0-dev-20221130182523", | ||
"@pandacss/types": "0.0.0-dev-20221130182523" | ||
"@pandacss/logger": "0.0.0-dev-20221130183053", | ||
"@pandacss/shared": "0.0.0-dev-20221130183053", | ||
"@pandacss/is-valid-prop": "0.0.0-dev-20221130183053", | ||
"@pandacss/types": "0.0.0-dev-20221130183053" | ||
}, | ||
"devDependencies": { | ||
"@pandacss/fixture": "0.0.0-dev-20221130182523" | ||
"@pandacss/fixture": "0.0.0-dev-20221130183053" | ||
}, | ||
@@ -25,0 +25,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
25227
693
+ Added@pandacss/is-valid-prop@0.0.0-dev-20221130183053(transitive)
+ Added@pandacss/logger@0.0.0-dev-20221130183053(transitive)
+ Added@pandacss/shared@0.0.0-dev-20221130183053(transitive)
+ Added@pandacss/types@0.0.0-dev-20221130183053(transitive)
- Removed@pandacss/is-valid-prop@0.0.0-dev-20221130182523(transitive)
- Removed@pandacss/logger@0.0.0-dev-20221130182523(transitive)
- Removed@pandacss/shared@0.0.0-dev-20221130182523(transitive)
- Removed@pandacss/types@0.0.0-dev-20221130182523(transitive)