Socket
Socket
Sign inDemoInstall

@chakra-ui/utils

Package Overview
Dependencies
Maintainers
3
Versions
273
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/utils - npm Package Compare versions

Comparing version 1.0.0-next.1 to 1.0.0-next.2

29

CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 1.0.0-next.2 (2020-06-22)
### Bug Fixes
* [#891](https://github.com/chakra-ui/chakra-ui/issues/891) ([e107acc](https://github.com/chakra-ui/chakra-ui/commit/e107acc8487898a965b0d695c1da71f46fc56d5e))
* fix utils test ([64163cd](https://github.com/chakra-ui/chakra-ui/commit/64163cd80e00f562f1dc5aef23fd25faeb19de31))
* some menu bugs ([5f9efe1](https://github.com/chakra-ui/chakra-ui/commit/5f9efe1566f067467573a418d2ec319c9e8a607f))
* storybook rendering issues ([b2281b8](https://github.com/chakra-ui/chakra-ui/commit/b2281b8685509b669c14076e4a38fe91d0a112f1))
### Features
* add more util tests ([f9edcf9](https://github.com/chakra-ui/chakra-ui/commit/f9edcf96fae3d55753bfd3ee86de5edebc6bac88))
* add tests for dom utls ([8898ef2](https://github.com/chakra-ui/chakra-ui/commit/8898ef29e0dd6cc6eb43b2393b8bd283c09264fc))
* handle null values in mapResponsive ([f371eb2](https://github.com/chakra-ui/chakra-ui/commit/f371eb26bc3dbb8aa538f92508dda4ea8ddffbd4))
* implement assertion test and initialize all utils test files ([5a077ff](https://github.com/chakra-ui/chakra-ui/commit/5a077ff02f3b748ed565aac79aaad72fe0d21f11))
* **stack:** add support for responsive direction and divider ([074f317](https://github.com/chakra-ui/chakra-ui/commit/074f3176218ecc57b944f6d2f04622d3e741ae00))
* implement style props parser ([e1a6382](https://github.com/chakra-ui/chakra-ui/commit/e1a63824e85c19590ddf67069cbe40827ac0faa6))
# Change Log
All notable changes to this project will be documented in this file. See

@@ -4,0 +33,0 @@ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

6

dist/cjs/dom.js

@@ -12,5 +12,5 @@ "use strict";

_window = window;
} catch (e) {}
/* no-op */
} catch (e) {
/* no-op */
}
/**

@@ -17,0 +17,0 @@ * Helper to get the window object. The helper will make sure to use a cached variable

@@ -33,3 +33,3 @@ "use strict";

name = _options.name;
var Context = React.createContext(undefined);
var Context = /*#__PURE__*/React.createContext(undefined);
Context.displayName = name;

@@ -36,0 +36,0 @@

@@ -15,3 +15,9 @@ "use strict";

if ((0, _assertion.isArray)(prop)) {
return prop.map(mapper);
return prop.map(function (item) {
if (item === null) {
return null;
}
return mapper(item);
});
}

@@ -18,0 +24,0 @@

@@ -7,5 +7,5 @@ var _window = undefined; // Note: Accessing "window" in IE11 is somewhat expensive, and calling "typeof window"

_window = window;
} catch (e) {}
/* no-op */
} catch (e) {
/* no-op */
}
/**

@@ -12,0 +12,0 @@ * Helper to get the window object. The helper will make sure to use a cached variable

@@ -19,3 +19,3 @@ import * as React from "react";

} = options;
var Context = React.createContext(undefined);
var Context = /*#__PURE__*/React.createContext(undefined);
Context.displayName = name;

@@ -22,0 +22,0 @@

@@ -6,3 +6,9 @@ import { isArray, isObject } from "./assertion";

if (isArray(prop)) {
return prop.map(mapper);
return prop.map(item => {
if (item === null) {
return null;
}
return mapper(item);
});
}

@@ -9,0 +15,0 @@

{
"name": "@chakra-ui/utils",
"version": "1.0.0-next.1",
"version": "1.0.0-next.2",
"description": "Common utilties and types for Chakra UI",

@@ -46,3 +46,3 @@ "author": "Segun Adebayo <sage@adebayosegun.com>",

},
"gitHead": "cabbf345518d70d446bf95410872f1a0c947ccd5"
"gitHead": "c5b51e43e9dff400f8bba7da7ffd135f5d33628b"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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