@plumeria/utils 11.1.1 → 11.1.2

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.
Files changed (2) hide show
  1. package/dist/parser.js +14 -0
  2. package/package.json +1 -1
package/dist/parser.js CHANGED
@@ -123,6 +123,20 @@ function objectExpressionToObject(node, staticTable, keyframesHashTable, viewTra
123
123
  }
124
124
  return;
125
125
  }
126
+ if (exports.t.isIdentifier(prop) && !exports.t.isObjectProperty(prop)) {
127
+ const key = prop.value;
128
+ if (resolveVariable) {
129
+ const resolved = resolveVariable(key);
130
+ if (resolved !== undefined) {
131
+ obj[key] = resolved;
132
+ return;
133
+ }
134
+ }
135
+ if (staticTable[key] !== undefined) {
136
+ obj[key] = staticTable[key];
137
+ }
138
+ return;
139
+ }
126
140
  if (!exports.t.isObjectProperty(prop))
127
141
  return;
128
142
  const key = getPropertyKey(prop.key, staticTable, keyframesHashTable, viewTransitionHashTable, createThemeHashTable, createThemeObjectTable, createStaticHashTable, createStaticObjectTable);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/utils",
3
- "version": "11.1.1",
3
+ "version": "11.1.2",
4
4
  "description": "Plumeria Utils",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",