@pandacss/parser 0.0.0-dev-20230613163214 → 0.0.0-dev-20230614110821

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
@@ -39,11 +39,18 @@ var import_ts_pattern = require("ts-pattern");
39
39
 
40
40
  // src/import.ts
41
41
  var import_shared = require("@pandacss/shared");
42
+ var getModuleSpecifierValue = (node) => {
43
+ try {
44
+ return node.getModuleSpecifierValue();
45
+ } catch {
46
+ return;
47
+ }
48
+ };
42
49
  function getImportDeclarations(file, options) {
43
50
  const { match: match2 } = options;
44
51
  const result = [];
45
52
  file.getImportDeclarations().forEach((node) => {
46
- const source = node.getModuleSpecifierValue();
53
+ const source = getModuleSpecifierValue(node);
47
54
  if (!source)
48
55
  return;
49
56
  const specifiers = node.getNamedImports();
package/dist/index.mjs CHANGED
@@ -11,11 +11,18 @@ import { match } from "ts-pattern";
11
11
 
12
12
  // src/import.ts
13
13
  import { memo } from "@pandacss/shared";
14
+ var getModuleSpecifierValue = (node) => {
15
+ try {
16
+ return node.getModuleSpecifierValue();
17
+ } catch {
18
+ return;
19
+ }
20
+ };
14
21
  function getImportDeclarations(file, options) {
15
22
  const { match: match2 } = options;
16
23
  const result = [];
17
24
  file.getImportDeclarations().forEach((node) => {
18
- const source = node.getModuleSpecifierValue();
25
+ const source = getModuleSpecifierValue(node);
19
26
  if (!source)
20
27
  return;
21
28
  const specifiers = node.getNamedImports();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/parser",
3
- "version": "0.0.0-dev-20230613163214",
3
+ "version": "0.0.0-dev-20230614110821",
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.3.0",
17
- "@pandacss/extractor": "0.0.0-dev-20230613163214",
18
- "@pandacss/is-valid-prop": "0.0.0-dev-20230613163214",
19
- "@pandacss/logger": "0.0.0-dev-20230613163214",
20
- "@pandacss/shared": "0.0.0-dev-20230613163214",
21
- "@pandacss/types": "0.0.0-dev-20230613163214"
17
+ "@pandacss/extractor": "0.0.0-dev-20230614110821",
18
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230614110821",
19
+ "@pandacss/logger": "0.0.0-dev-20230614110821",
20
+ "@pandacss/shared": "0.0.0-dev-20230614110821",
21
+ "@pandacss/types": "0.0.0-dev-20230614110821"
22
22
  },
23
23
  "devDependencies": {
24
- "@pandacss/fixture": "0.0.0-dev-20230613163214",
25
- "@pandacss/generator": "0.0.0-dev-20230613163214"
24
+ "@pandacss/fixture": "0.0.0-dev-20230614110821",
25
+ "@pandacss/generator": "0.0.0-dev-20230614110821"
26
26
  },
27
27
  "files": [
28
28
  "dist"