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

@lendi-ui/utils

Package Overview
Dependencies
Maintainers
31
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lendi-ui/utils - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

5

CHANGELOG.md
# Changelog - @lendi-ui/utils
## [2.1.0] - 2019-04-30 - [HUB-54] (https://creditandfinance.atlassian.net/browse/HUB-54)
### Added
- Added method to fetch all 'data-' props for a component.
## [2.0.0] - 2019-04-30 - [HUB-54] (https://creditandfinance.atlassian.net/browse/HUB-54)

@@ -4,0 +9,0 @@

@@ -13,2 +13,15 @@ import { map } from '@lendi-ui/breakpoint';

};
/**
* return all the props of an object where the key begins with 'data-'
* @param props The props object of a given component
*/
export var getDataProps = function (props) {
var dataProps = {};
for (var key in props) {
if (key.startsWith('data-')) {
dataProps[key] = props[key];
}
}
return dataProps;
};
//# sourceMappingURL=index.js.map

@@ -9,1 +9,13 @@ import { BreakpointValue, BreakpointValueMap } from '@lendi-ui/breakpoint';

export declare const deriveSize: (multiplier: number) => string;
interface ComponentProps {
[key: string]: any;
}
interface DataObject {
[key: string]: string;
}
/**
* return all the props of an object where the key begins with 'data-'
* @param props The props object of a given component
*/
export declare const getDataProps: (props: ComponentProps) => DataObject;
export {};

2

package.json
{
"name": "@lendi-ui/utils",
"version": "2.0.0",
"version": "2.1.0",
"source": "src/index.ts",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

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