@chakra-ui/utils
Advanced tools
Comparing version 1.8.0 to 1.8.1
# Change Log | ||
## 1.8.1 | ||
### Patch Changes | ||
- [`4a1e4d93b`](https://github.com/chakra-ui/chakra-ui/commit/4a1e4d93b0a07df7266d40bb66039385b158d3d1) | ||
[#4305](https://github.com/chakra-ui/chakra-ui/pull/4305) Thanks | ||
[@MasterGordon](https://github.com/MasterGordon)! - Fixed a circular | ||
dependency which was causing warnings when bundling Chakra with `rollup`. | ||
## 1.8.0 | ||
@@ -4,0 +13,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
var _utils = require("@chakra-ui/utils"); | ||
var _assertion = require("./assertion"); | ||
@@ -15,3 +15,3 @@ function walkObject(target, predicate) { | ||
if ((0, _utils.isArray)(value)) { | ||
if ((0, _assertion.isArray)(value)) { | ||
return value.map(function (item, index) { | ||
@@ -22,3 +22,3 @@ return inner(item, [].concat(path, [String(index)])); | ||
if ((0, _utils.isObject)(value)) { | ||
if ((0, _assertion.isObject)(value)) { | ||
return Object.fromEntries(Object.entries(value).map(function (_ref) { | ||
@@ -25,0 +25,0 @@ var key = _ref[0], |
@@ -1,2 +0,2 @@ | ||
import { isArray, isObject } from "@chakra-ui/utils"; | ||
import { isArray, isObject } from "./assertion"; | ||
export function walkObject(target, predicate) { | ||
@@ -3,0 +3,0 @@ function inner(value, path) { |
{ | ||
"name": "@chakra-ui/utils", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Common utilties and types for Chakra UI", | ||
@@ -5,0 +5,0 @@ "author": "Segun Adebayo <sage@adebayosegun.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
364339