@pandacss/token-dictionary 0.0.0-dev-20240128131310 → 0.0.0-dev-20240128205559

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
@@ -135,7 +135,7 @@ var isToken = (value) => {
135
135
  };
136
136
  function assertTokenFormat(token) {
137
137
  if (!isToken(token)) {
138
- throw new Error(`Invalid token format: ${JSON.stringify(token)}`);
138
+ throw new import_shared.PandaError("INVALID_TOKEN", `Invalid token format: ${JSON.stringify(token)}`);
139
139
  }
140
140
  }
141
141
 
package/dist/index.mjs CHANGED
@@ -44,7 +44,7 @@ import { isBaseCondition, toHash, walkObject } from "@pandacss/shared";
44
44
 
45
45
  // src/utils.ts
46
46
  import { logger } from "@pandacss/logger";
47
- import { esc, isObject } from "@pandacss/shared";
47
+ import { PandaError, esc, isObject } from "@pandacss/shared";
48
48
  var REFERENCE_REGEX = /(\$[^\s,]+\w)|({([^}]*)})/g;
49
49
  var curlyBracketRegex = /[{}]/g;
50
50
  function getReferences(value) {
@@ -108,7 +108,7 @@ var isToken = (value) => {
108
108
  };
109
109
  function assertTokenFormat(token) {
110
110
  if (!isToken(token)) {
111
- throw new Error(`Invalid token format: ${JSON.stringify(token)}`);
111
+ throw new PandaError("INVALID_TOKEN", `Invalid token format: ${JSON.stringify(token)}`);
112
112
  }
113
113
  }
114
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/token-dictionary",
3
- "version": "0.0.0-dev-20240128131310",
3
+ "version": "0.0.0-dev-20240128205559",
4
4
  "description": "Common error messages for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "ts-pattern": "5.0.5",
36
- "@pandacss/logger": "^0.0.0-dev-20240128131310",
37
- "@pandacss/types": "0.0.0-dev-20240128131310",
38
- "@pandacss/shared": "0.0.0-dev-20240128131310"
36
+ "@pandacss/logger": "^0.0.0-dev-20240128205559",
37
+ "@pandacss/shared": "0.0.0-dev-20240128205559",
38
+ "@pandacss/types": "0.0.0-dev-20240128205559"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "tsup src/index.ts --format=esm,cjs --dts",