@pandacss/shared 0.21.0 → 0.22.0

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
@@ -245,6 +245,8 @@ function walkObject(target, predicate, options = {}) {
245
245
  return inner(target);
246
246
  }
247
247
  function mapObject(obj, fn) {
248
+ if (Array.isArray(obj))
249
+ return obj.map((value) => fn(value));
248
250
  if (!isObject(obj))
249
251
  return fn(obj);
250
252
  return walkObject(obj, (value) => fn(value));
package/dist/index.mjs CHANGED
@@ -174,6 +174,8 @@ function walkObject(target, predicate, options = {}) {
174
174
  return inner(target);
175
175
  }
176
176
  function mapObject(obj, fn) {
177
+ if (Array.isArray(obj))
178
+ return obj.map((value) => fn(value));
177
179
  if (!isObject(obj))
178
180
  return fn(obj);
179
181
  return walkObject(obj, (value) => fn(value));
package/dist/shared.js CHANGED
@@ -131,6 +131,8 @@ function walkObject(target, predicate, options = {}) {
131
131
  return inner(target);
132
132
  }
133
133
  function mapObject(obj, fn) {
134
+ if (Array.isArray(obj))
135
+ return obj.map((value) => fn(value));
134
136
  if (!isObject(obj))
135
137
  return fn(obj);
136
138
  return walkObject(obj, (value) => fn(value));
package/dist/shared.mjs CHANGED
@@ -89,6 +89,8 @@ function walkObject(target, predicate, options = {}) {
89
89
  return inner(target);
90
90
  }
91
91
  function mapObject(obj, fn) {
92
+ if (Array.isArray(obj))
93
+ return obj.map((value) => fn(value));
92
94
  if (!isObject(obj))
93
95
  return fn(obj);
94
96
  return walkObject(obj, (value) => fn(value));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",