Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pandacss/token-dictionary

Package Overview
Dependencies
Maintainers
0
Versions
1133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pandacss/token-dictionary - npm Package Compare versions

Comparing version 0.45.0 to 0.45.1

22

dist/index.js

@@ -643,13 +643,14 @@ "use strict";

return token.value;
refs.forEach((ref) => {
if (!ref.includes("/")) {
const modifier = refs.some((ref) => ref.includes("/"));
if (!modifier) {
refs.forEach((ref) => {
const variable = dictionary.formatCssVar(ref.split("."), { prefix, hash }).ref;
token.value = token.value.replace(`{${ref}}`, variable);
return;
}
const expanded = expandReferences(token.value, (path) => {
const tokenFn = (tokenPath) => {
const token2 = dictionary.getByName(tokenPath);
return token2?.extensions.varRef;
};
});
} else {
const tokenFn = (name) => {
const token2 = dictionary.getByName(name);
return token2?.extensions.varRef;
};
token.value = expandReferences(token.value, (path) => {
const mix = dictionary.colorMix(path, tokenFn);

@@ -661,4 +662,3 @@ if (mix.invalid) {

});
token.value = token.value.replace(`{${ref}}`, expanded);
});
}
return token.value;

@@ -665,0 +665,0 @@ }

{
"name": "@pandacss/token-dictionary",
"version": "0.45.0",
"version": "0.45.1",
"description": "Common error messages for css panda",

@@ -36,5 +36,5 @@ "main": "dist/index.js",

"ts-pattern": "5.0.8",
"@pandacss/logger": "^0.45.0",
"@pandacss/shared": "0.45.0",
"@pandacss/types": "0.45.0"
"@pandacss/logger": "^0.45.1",
"@pandacss/shared": "0.45.1",
"@pandacss/types": "0.45.1"
},

@@ -41,0 +41,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc