@commercetools-uikit/utils
Advanced tools
Comparing version 0.0.0-canary-202111595036 to 0.0.0-canary-202129162721
# @commercetools-uikit/utils | ||
## 0.0.0-canary-202111595036 | ||
## 0.0.0-canary-202129162721 | ||
### Patch Changes | ||
- [`93232c64`](https://github.com/commercetools/ui-kit/commit/93232c64be9f2c794557f42fc9cf14bc61f2d557) [#1786](https://github.com/commercetools/ui-kit/pull/1786) Thanks [@adnasa](https://github.com/adnasa)! - Migrate `AccessibleButton` to TypeScript | ||
## 10.47.3 | ||
### Patch Changes | ||
- [`88653838`](https://github.com/commercetools/ui-kit/commit/8865383861492f22a2bfd2def4a5133e3ccf0af1) [#1787](https://github.com/commercetools/ui-kit/pull/1787) Thanks [@adnasa](https://github.com/adnasa)! - rename `invariant` to `warning` | ||
@@ -8,0 +14,0 @@ |
@@ -6,5 +6,5 @@ 'use strict'; | ||
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray'); | ||
var _Object$fromEntries = require('@babel/runtime-corejs3/core-js-stable/object/from-entries'); | ||
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter'); | ||
var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries'); | ||
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter'); | ||
var _Object$fromEntries = require('@babel/runtime-corejs3/core-js-stable/object/from-entries'); | ||
var isPropValid = require('@emotion/is-prop-valid'); | ||
@@ -18,5 +18,5 @@ var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat'); | ||
var _Object$fromEntries__default = /*#__PURE__*/_interopDefault(_Object$fromEntries); | ||
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty); | ||
var _Object$entries__default = /*#__PURE__*/_interopDefault(_Object$entries); | ||
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty); | ||
var _Object$fromEntries__default = /*#__PURE__*/_interopDefault(_Object$fromEntries); | ||
var isPropValid__default = /*#__PURE__*/_interopDefault(isPropValid); | ||
@@ -197,2 +197,5 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty); | ||
// To avoid getting the following error, we type the entire function. | ||
// "Assertions require every name in the call target to be declared with an explicit type annotation." | ||
// See https://github.com/microsoft/TypeScript/pull/33622#issuecomment-575301357 | ||
var isProduction = process.env.NODE_ENV === 'production'; // @TODO: allow consumer to set the prefix e.g `[ Text.Body ]` | ||
@@ -205,4 +208,2 @@ | ||
var warning = function warning(condition, message) { | ||
var _context; | ||
if (isProduction) { | ||
@@ -219,7 +220,7 @@ return; | ||
throw new Error(_concatInstanceProperty__default['default'](_context = "".concat(prefix, ": ")).call(_context, message || '')); | ||
throw new Error("".concat(prefix, ": ").concat(message || '')); | ||
}; | ||
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file. | ||
var version = '0.0.0-canary-202111595036'; | ||
var version = '0.0.0-canary-202129162721'; | ||
@@ -226,0 +227,0 @@ exports.SafeHTMLElement = SafeHTMLElement; |
@@ -6,5 +6,5 @@ 'use strict'; | ||
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray'); | ||
var _Object$fromEntries = require('@babel/runtime-corejs3/core-js-stable/object/from-entries'); | ||
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter'); | ||
var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries'); | ||
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter'); | ||
var _Object$fromEntries = require('@babel/runtime-corejs3/core-js-stable/object/from-entries'); | ||
var isPropValid = require('@emotion/is-prop-valid'); | ||
@@ -18,5 +18,5 @@ var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat'); | ||
var _Object$fromEntries__default = /*#__PURE__*/_interopDefault(_Object$fromEntries); | ||
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty); | ||
var _Object$entries__default = /*#__PURE__*/_interopDefault(_Object$entries); | ||
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty); | ||
var _Object$fromEntries__default = /*#__PURE__*/_interopDefault(_Object$fromEntries); | ||
var isPropValid__default = /*#__PURE__*/_interopDefault(isPropValid); | ||
@@ -192,2 +192,3 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty); | ||
// To avoid getting the following error, we type the entire function. | ||
// Strip out error messages for production | ||
@@ -197,3 +198,2 @@ // > Not providing an inline default argument for message as the result is smaller | ||
var warning = function warning(condition, message) { | ||
{ | ||
@@ -205,3 +205,3 @@ return; | ||
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file. | ||
var version = '0.0.0-canary-202111595036'; | ||
var version = '0.0.0-canary-202129162721'; | ||
@@ -208,0 +208,0 @@ exports.SafeHTMLElement = SafeHTMLElement; |
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray'; | ||
import _Object$fromEntries from '@babel/runtime-corejs3/core-js-stable/object/from-entries'; | ||
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter'; | ||
import _Object$entries from '@babel/runtime-corejs3/core-js-stable/object/entries'; | ||
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter'; | ||
import _Object$fromEntries from '@babel/runtime-corejs3/core-js-stable/object/from-entries'; | ||
import isPropValid from '@emotion/is-prop-valid'; | ||
@@ -180,2 +180,5 @@ import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat'; | ||
// To avoid getting the following error, we type the entire function. | ||
// "Assertions require every name in the call target to be declared with an explicit type annotation." | ||
// See https://github.com/microsoft/TypeScript/pull/33622#issuecomment-575301357 | ||
var isProduction = process.env.NODE_ENV === 'production'; // @TODO: allow consumer to set the prefix e.g `[ Text.Body ]` | ||
@@ -188,4 +191,2 @@ | ||
var warning = function warning(condition, message) { | ||
var _context; | ||
if (isProduction) { | ||
@@ -202,8 +203,8 @@ return; | ||
throw new Error(_concatInstanceProperty(_context = "".concat(prefix, ": ")).call(_context, message || '')); | ||
throw new Error("".concat(prefix, ": ").concat(message || '')); | ||
}; | ||
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file. | ||
var version = '0.0.0-canary-202111595036'; | ||
var version = '0.0.0-canary-202129162721'; | ||
export { SafeHTMLElement, addStaticFields, createSequentialId, filterAriaAttributes, filterDataAttributes, filterInvalidAttributes, getFieldId, isNumberish, parseTime, version, warnDeprecatedComponent, warnDeprecatedProp, warning }; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "0.0.0-canary-202111595036"; | ||
declare const _default: "0.0.0-canary-202129162721"; | ||
export default _default; |
@@ -1,2 +0,3 @@ | ||
declare const warning: (condition: unknown, message?: string | undefined) => asserts condition; | ||
declare type TWarningFunction = (condition: unknown, message?: string) => asserts condition is boolean; | ||
declare const warning: TWarningFunction; | ||
export default warning; |
{ | ||
"name": "@commercetools-uikit/utils", | ||
"description": "A collection of utilities shared across the other packages.", | ||
"version": "0.0.0-canary-202111595036", | ||
"version": "0.0.0-canary-202129162721", | ||
"bugs": "https://github.com/commercetools/ui-kit/issues", | ||
@@ -33,4 +33,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/runtime": "7.12.13", | ||
"@babel/runtime-corejs3": "7.12.13", | ||
"@babel/runtime": "7.13.9", | ||
"@babel/runtime-corejs3": "7.13.9", | ||
"@emotion/is-prop-valid": "1.1.0", | ||
@@ -37,0 +37,0 @@ "@types/warning": "^3.0.0", |
35534
579
+ Added@babel/runtime@7.13.9(transitive)
+ Added@babel/runtime-corejs3@7.13.9(transitive)
- Removed@babel/runtime@7.12.13(transitive)
- Removed@babel/runtime-corejs3@7.12.13(transitive)
Updated@babel/runtime@7.13.9