@commercetools-uikit/utils
Advanced tools
Comparing version 0.0.0-canary-13a4f7037f77a041964e36460e7beb59f08a246f to 0.0.0-canary-202092995452
@@ -5,7 +5,10 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var isPropValid = require('@emotion/is-prop-valid'); | ||
var warning = require('warning'); | ||
var isPropValid = _interopDefault(require('@emotion/is-prop-valid')); | ||
var warning = _interopDefault(require('warning')); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var isPropValid__default = /*#__PURE__*/_interopDefaultLegacy(isPropValid); | ||
var warning__default = /*#__PURE__*/_interopDefaultLegacy(warning); | ||
var regexpData = /^data-/; | ||
@@ -33,3 +36,3 @@ function filterDataAttributes(obj) { | ||
return Object.keys(obj).filter(function (prop) { | ||
return isPropValid(prop); | ||
return isPropValid__default['default'](prop); | ||
}).reduce(function (acc, prop) { | ||
@@ -57,3 +60,3 @@ acc[prop] = obj[prop]; | ||
var message = "\"".concat(componentName, "\" has been deprecated and will be removed in the next major version.").concat(additionalMessage); | ||
warning(false, message); | ||
warning__default['default'](false, message); | ||
}); | ||
@@ -63,3 +66,3 @@ | ||
var message = "\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated and will be removed in the next major version.").concat(additionalMessage); | ||
warning(false, message); | ||
warning__default['default'](false, message); | ||
}); | ||
@@ -190,3 +193,3 @@ | ||
var version = '0.0.0-canary-13a4f7037f77a041964e36460e7beb59f08a246f'; | ||
var version = '0.0.0-canary-202092995452'; | ||
@@ -193,0 +196,0 @@ exports.SafeHTMLElement = SafeHTMLElement; |
@@ -180,4 +180,4 @@ import isPropValid from '@emotion/is-prop-valid'; | ||
var version = '0.0.0-canary-13a4f7037f77a041964e36460e7beb59f08a246f'; | ||
var version = '0.0.0-canary-202092995452'; | ||
export { SafeHTMLElement, addStaticFields, createSequentialId, filterAriaAttributes, filterDataAttributes, filterProps as filterInvalidAttributes, getFieldId, getPassThroughProps, isNumberish, parseTime, version, warnDeprecatedComponent, warnDeprecatedProp }; |
{ | ||
"name": "@commercetools-uikit/utils", | ||
"version": "0.0.0-canary-13a4f7037f77a041964e36460e7beb59f08a246f", | ||
"description": "", | ||
"main": "dist/utils.cjs.js", | ||
"module": "dist/utils.esm.js", | ||
"description": "A collection of utilities shared across the other packages.", | ||
"version": "0.0.0-canary-202092995452", | ||
"bugs": "https://github.com/commercetools/ui-kit/issues", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/commercetools/ui-kit.git", | ||
"directory": "packages/utils" | ||
}, | ||
"homepage": "https://uikit.commercetools.com", | ||
"keywords": [ | ||
"javascript", | ||
"design system", | ||
"react", | ||
"uikit" | ||
], | ||
"license": "MIT", | ||
"private": false, | ||
@@ -11,2 +23,6 @@ "publishConfig": { | ||
}, | ||
"sideEffects": false, | ||
"main": "dist/utils.cjs.js", | ||
"module": "dist/utils.esm.js", | ||
"files": ["dist"], | ||
"scripts": { | ||
@@ -17,12 +33,6 @@ "prepare": "../../scripts/version.js replace", | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@emotion/is-prop-valid": "0.8.8", | ||
"warning": "4.0.3" | ||
}, | ||
"license": "MIT", | ||
"gitHead": "5f63d3ebfe81e02c4166958386725a1bd10f79b2" | ||
} | ||
} |
# Utils | ||
## Description | ||
A collection of utilities shared across the other packages. | ||
## Usage | ||
```js | ||
import { | ||
filterDataAttributes, | ||
// ... | ||
} from '@commercetools-uikit/utils'; | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
15193
6
329
1
15
0
39
2
199