Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools-uikit/utils

Package Overview
Dependencies
Maintainers
3
Versions
687
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/utils - npm Package Compare versions

Comparing version 0.0.0-canary-13a4f7037f77a041964e36460e7beb59f08a246f to 0.0.0-canary-202092995452

CHANGELOG.md

17

dist/utils.cjs.js

@@ -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';
```
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