Socket
Socket
Sign inDemoInstall

@highlight-ui/utils-commons

Package Overview
Dependencies
Maintainers
9
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highlight-ui/utils-commons - npm Package Compare versions

Comparing version 2.3.5 to 2.3.6

20

dist/cjs/index.js

@@ -6,9 +6,5 @@ 'use strict';

});
var kebabCase = require('lodash/fp/kebabCase');
var mapValues = require('lodash/fp/mapValues');
var curry = require('lodash/fp/curry');
function _interopDefaultLegacy(e) {

@@ -19,11 +15,6 @@ return e && typeof e === 'object' && 'default' in e ? e : {

}
var kebabCase__default = /*#__PURE__*/_interopDefaultLegacy(kebabCase);
var mapValues__default = /*#__PURE__*/_interopDefaultLegacy(mapValues);
var curry__default = /*#__PURE__*/_interopDefaultLegacy(curry);
var idCounter = {};
function uniqueId(prefix) {

@@ -33,19 +24,13 @@ if (prefix === void 0) {

}
if (!idCounter[prefix]) {
idCounter[prefix] = 0;
}
idCounter[prefix] += 1;
var id = idCounter[prefix];
if (prefix === '$highlightUi$') {
return "" + id;
}
return "" + prefix + id;
}
var noop = function () {};
function invariant(condition, message) {

@@ -55,3 +40,2 @@ if (process.env.NODE_ENV !== 'development') {

}
if (!condition) {

@@ -63,3 +47,2 @@ var error = new Error(message);

}
var forkHandlers = function (handlers) {

@@ -72,3 +55,2 @@ return function (e) {

};
function parseMetadata(metadata) {

@@ -105,4 +87,2 @@ return metadata ? Object.keys(metadata).reduce(function (acc, key) {

*/
var suffixMetadata = curry__default["default"](function (metadata, suffix) {

@@ -109,0 +89,0 @@ return mapValues__default["default"](function (val) {

@@ -5,3 +5,2 @@ import kebabCase from 'lodash/fp/kebabCase';

var idCounter = {};
function uniqueId(prefix) {

@@ -11,19 +10,13 @@ if (prefix === void 0) {

}
if (!idCounter[prefix]) {
idCounter[prefix] = 0;
}
idCounter[prefix] += 1;
var id = idCounter[prefix];
if (prefix === '$highlightUi$') {
return "" + id;
}
return "" + prefix + id;
}
var noop = function () {};
function invariant(condition, message) {

@@ -33,3 +26,2 @@ if (process.env.NODE_ENV !== 'development') {

}
if (!condition) {

@@ -41,3 +33,2 @@ var error = new Error(message);

}
var forkHandlers = function (handlers) {

@@ -50,3 +41,2 @@ return function (e) {

};
function parseMetadata(metadata) {

@@ -83,4 +73,2 @@ return metadata ? Object.keys(metadata).reduce(function (acc, key) {

*/
var suffixMetadata = curry(function (metadata, suffix) {

@@ -87,0 +75,0 @@ return mapValues(function (val) {

26

package.json
{
"name": "@highlight-ui/utils-commons",
"version": "2.3.5",
"version": "2.3.6",
"author": "Personio GmbH & Co. KG",

@@ -24,19 +24,19 @@ "main": "dist/cjs/index.js",

"devDependencies": {
"@highlight-ui/configs-base-jest": "^3.1.1",
"@highlight-ui/configs-base-tsconfig": "^3.2.0",
"@highlight-ui/configs-scripts": "^3.2.2",
"@highlight-ui/utils-dev": "^1.1.5",
"jest": "^27.2.3",
"lodash": "^4.17.21",
"react": "^17.0.2",
"rimraf": "^3.0.2"
"@highlight-ui/configs-base-jest": "^3.1.2",
"@highlight-ui/configs-base-tsconfig": "^3.2.1",
"@highlight-ui/configs-scripts": "^3.2.3",
"@highlight-ui/utils-dev": "^1.1.6",
"jest": "~27.2.3",
"lodash": "~4.17.21",
"react": "17.0.2",
"rimraf": "~3.0.2"
},
"peerDependencies": {
"lodash": "^4.17.21",
"react": "^17.0.2"
"lodash": "~4.17.21",
"react": "17.0.2"
},
"dependencies": {
"@highlight-ui/tokens": "^2.3.0"
"@highlight-ui/tokens": "^2.3.1"
},
"gitHead": "9af145ddc03c7a3909b46ed3f005fa3792be65c2"
"gitHead": "3758f5f987510edb100f5a22ebe829b7cee4573f"
}

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