@pandacss/parser 0.0.0-dev-20230201155624 → 0.0.0-dev-20230203163304
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -6
- package/dist/index.mjs +3 -6
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -292,10 +292,7 @@ function createParser(options) {
|
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
294
|
if (imports.value.length) {
|
|
295
|
-
import_logger.logger.debug({
|
|
296
|
-
type: "ast:import",
|
|
297
|
-
msg: `Found import { ${imports} } in ${fileName}`
|
|
298
|
-
});
|
|
295
|
+
import_logger.logger.debug("ast:import", `Found import { ${imports} } in ${fileName}`);
|
|
299
296
|
}
|
|
300
297
|
const isValidPattern = imports.createMatch(importMap.pattern);
|
|
301
298
|
const isValidRecipe = imports.createMatch(importMap.recipe);
|
|
@@ -306,7 +303,7 @@ function createParser(options) {
|
|
|
306
303
|
const name = imports.getName(_name);
|
|
307
304
|
const [css] = importRegex;
|
|
308
305
|
const result = { name, data };
|
|
309
|
-
import_logger.logger.debug(
|
|
306
|
+
import_logger.logger.debug(`ast:${name}`, { fileName, result });
|
|
310
307
|
(0, import_ts_pattern3.match)(name).when(css.match, (name2) => {
|
|
311
308
|
collector.set(name2, result);
|
|
312
309
|
}).when(isValidPattern, (name2) => {
|
|
@@ -334,7 +331,7 @@ function createParser(options) {
|
|
|
334
331
|
},
|
|
335
332
|
fn({ name, data }) {
|
|
336
333
|
let type;
|
|
337
|
-
import_logger.logger.debug(
|
|
334
|
+
import_logger.logger.debug(`ast:jsx:${name}`, { fileName, result: data });
|
|
338
335
|
if (jsx && name.startsWith(jsxFactoryAlias)) {
|
|
339
336
|
type = "jsx-factory";
|
|
340
337
|
} else if (jsxPatternNodes.test(name)) {
|
package/dist/index.mjs
CHANGED
|
@@ -267,10 +267,7 @@ function createParser(options) {
|
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
if (imports.value.length) {
|
|
270
|
-
logger.debug({
|
|
271
|
-
type: "ast:import",
|
|
272
|
-
msg: `Found import { ${imports} } in ${fileName}`
|
|
273
|
-
});
|
|
270
|
+
logger.debug("ast:import", `Found import { ${imports} } in ${fileName}`);
|
|
274
271
|
}
|
|
275
272
|
const isValidPattern = imports.createMatch(importMap.pattern);
|
|
276
273
|
const isValidRecipe = imports.createMatch(importMap.recipe);
|
|
@@ -281,7 +278,7 @@ function createParser(options) {
|
|
|
281
278
|
const name = imports.getName(_name);
|
|
282
279
|
const [css] = importRegex;
|
|
283
280
|
const result = { name, data };
|
|
284
|
-
logger.debug(
|
|
281
|
+
logger.debug(`ast:${name}`, { fileName, result });
|
|
285
282
|
match3(name).when(css.match, (name2) => {
|
|
286
283
|
collector.set(name2, result);
|
|
287
284
|
}).when(isValidPattern, (name2) => {
|
|
@@ -309,7 +306,7 @@ function createParser(options) {
|
|
|
309
306
|
},
|
|
310
307
|
fn({ name, data }) {
|
|
311
308
|
let type;
|
|
312
|
-
logger.debug(
|
|
309
|
+
logger.debug(`ast:jsx:${name}`, { fileName, result: data });
|
|
313
310
|
if (jsx && name.startsWith(jsxFactoryAlias)) {
|
|
314
311
|
type = "jsx-factory";
|
|
315
312
|
} else if (jsxPatternNodes.test(name)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/parser",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230203163304",
|
|
4
4
|
"description": "The static parser for panda css",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"ts-pattern": "4.1.3",
|
|
15
15
|
"ts-morph": "17.0.1",
|
|
16
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
17
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
18
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
19
|
-
"@pandacss/types": "0.0.0-dev-
|
|
16
|
+
"@pandacss/logger": "0.0.0-dev-20230203163304",
|
|
17
|
+
"@pandacss/shared": "0.0.0-dev-20230203163304",
|
|
18
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230203163304",
|
|
19
|
+
"@pandacss/types": "0.0.0-dev-20230203163304"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
22
|
+
"@pandacss/fixture": "0.0.0-dev-20230203163304"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|