@pandacss/token-dictionary 0.0.0-dev-20230416210337 → 0.0.0-dev-20230417092334

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
@@ -37,13 +37,14 @@ var import_shared2 = require("@pandacss/shared");
37
37
  // src/utils.ts
38
38
  var import_shared = require("@pandacss/shared");
39
39
  var REFERENCE_REGEX = /(\$[^\s,]+\w)|({([^}]*)})/g;
40
+ var curlyBracketRegex = /[{}]/g;
40
41
  function getReferences(value) {
41
42
  if (typeof value !== "string")
42
43
  return [];
43
44
  const matches = value.match(REFERENCE_REGEX);
44
45
  if (!matches)
45
46
  return [];
46
- return matches.map((match3) => match3.replace(/[{}]/g, "")).map((value2) => value2.trim());
47
+ return matches.map((match3) => match3.replace(curlyBracketRegex, "")).map((value2) => value2.trim());
47
48
  }
48
49
  function hasReference(value) {
49
50
  return REFERENCE_REGEX.test(value);
package/dist/index.mjs CHANGED
@@ -11,13 +11,14 @@ import { isBaseCondition, isObject as isObject2, walkObject } from "@pandacss/sh
11
11
  // src/utils.ts
12
12
  import { isObject } from "@pandacss/shared";
13
13
  var REFERENCE_REGEX = /(\$[^\s,]+\w)|({([^}]*)})/g;
14
+ var curlyBracketRegex = /[{}]/g;
14
15
  function getReferences(value) {
15
16
  if (typeof value !== "string")
16
17
  return [];
17
18
  const matches = value.match(REFERENCE_REGEX);
18
19
  if (!matches)
19
20
  return [];
20
- return matches.map((match3) => match3.replace(/[{}]/g, "")).map((value2) => value2.trim());
21
+ return matches.map((match3) => match3.replace(curlyBracketRegex, "")).map((value2) => value2.trim());
21
22
  }
22
23
  function hasReference(value) {
23
24
  return REFERENCE_REGEX.test(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/token-dictionary",
3
- "version": "0.0.0-dev-20230416210337",
3
+ "version": "0.0.0-dev-20230417092334",
4
4
  "description": "Common error messages for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15,11 +15,11 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "ts-pattern": "4.2.2",
18
- "@pandacss/types": "0.0.0-dev-20230416210337",
19
- "@pandacss/shared": "0.0.0-dev-20230416210337"
18
+ "@pandacss/types": "0.0.0-dev-20230417092334",
19
+ "@pandacss/shared": "0.0.0-dev-20230417092334"
20
20
  },
21
21
  "devDependencies": {
22
- "@pandacss/fixture": "0.0.0-dev-20230416210337"
22
+ "@pandacss/fixture": "0.0.0-dev-20230417092334"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format=esm,cjs --dts",