@pandacss/parser 0.0.0-dev-20230421145003 → 0.0.0-dev-20230421182604

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 CHANGED
@@ -156,11 +156,10 @@ function createParser(options) {
156
156
  }
157
157
  });
158
158
  const collector = createParserResult();
159
- if (!imports.value.length) {
160
- import_logger.logger.debug("ast:import", `No import found in ${filePath}`);
161
- return collector;
162
- }
163
- import_logger.logger.debug("ast:import", `Found import { ${imports} } in ${filePath}`);
159
+ import_logger.logger.debug(
160
+ "ast:import",
161
+ imports.value.length ? `Found import { ${imports} } in ${filePath}` : `No import found in ${filePath}`
162
+ );
164
163
  const [css] = importRegex;
165
164
  const isValidPattern = imports.createMatch(importMap.pattern);
166
165
  const isValidRecipe = imports.createMatch(importMap.recipe);
package/dist/index.mjs CHANGED
@@ -130,11 +130,10 @@ function createParser(options) {
130
130
  }
131
131
  });
132
132
  const collector = createParserResult();
133
- if (!imports.value.length) {
134
- logger.debug("ast:import", `No import found in ${filePath}`);
135
- return collector;
136
- }
137
- logger.debug("ast:import", `Found import { ${imports} } in ${filePath}`);
133
+ logger.debug(
134
+ "ast:import",
135
+ imports.value.length ? `Found import { ${imports} } in ${filePath}` : `No import found in ${filePath}`
136
+ );
138
137
  const [css] = importRegex;
139
138
  const isValidPattern = imports.createMatch(importMap.pattern);
140
139
  const isValidRecipe = imports.createMatch(importMap.recipe);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/parser",
3
- "version": "0.0.0-dev-20230421145003",
3
+ "version": "0.0.0-dev-20230421182604",
4
4
  "description": "The static parser for panda css",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,15 +14,15 @@
14
14
  "lil-fp": "1.4.5",
15
15
  "ts-morph": "18.0.0",
16
16
  "ts-pattern": "4.2.2",
17
- "@pandacss/extractor": "0.0.0-dev-20230421145003",
18
- "@pandacss/is-valid-prop": "0.0.0-dev-20230421145003",
19
- "@pandacss/logger": "0.0.0-dev-20230421145003",
20
- "@pandacss/shared": "0.0.0-dev-20230421145003",
21
- "@pandacss/types": "0.0.0-dev-20230421145003"
17
+ "@pandacss/extractor": "0.0.0-dev-20230421182604",
18
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230421182604",
19
+ "@pandacss/logger": "0.0.0-dev-20230421182604",
20
+ "@pandacss/shared": "0.0.0-dev-20230421182604",
21
+ "@pandacss/types": "0.0.0-dev-20230421182604"
22
22
  },
23
23
  "devDependencies": {
24
- "@pandacss/fixture": "0.0.0-dev-20230421145003",
25
- "@pandacss/generator": "0.0.0-dev-20230421145003"
24
+ "@pandacss/fixture": "0.0.0-dev-20230421182604",
25
+ "@pandacss/generator": "0.0.0-dev-20230421182604"
26
26
  },
27
27
  "files": [
28
28
  "dist"