@pandacss/shared 0.0.0-dev-20230212075352 → 0.0.0-dev-20230212083454
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 +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -419,6 +419,8 @@ function getNegativePath(path) {
|
|
|
419
419
|
return path.slice(0, -1).concat(`-${path.at(-1)}`);
|
|
420
420
|
}
|
|
421
421
|
function getDotPath(obj, path, fallback) {
|
|
422
|
+
if (typeof path !== "string")
|
|
423
|
+
return fallback;
|
|
422
424
|
const idx = path.indexOf(".");
|
|
423
425
|
if (idx === -1) {
|
|
424
426
|
return obj?.[path] ?? fallback;
|
package/dist/index.mjs
CHANGED
|
@@ -357,6 +357,8 @@ function getNegativePath(path) {
|
|
|
357
357
|
return path.slice(0, -1).concat(`-${path.at(-1)}`);
|
|
358
358
|
}
|
|
359
359
|
function getDotPath(obj, path, fallback) {
|
|
360
|
+
if (typeof path !== "string")
|
|
361
|
+
return fallback;
|
|
360
362
|
const idx = path.indexOf(".");
|
|
361
363
|
if (idx === -1) {
|
|
362
364
|
return obj?.[path] ?? fallback;
|