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

@highlight-ui/utils-commons

Package Overview
Dependencies
Maintainers
5
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.1.5 to 2.2.0

dist/cjs/src/invariant.d.ts

1

dist/cjs/index.d.ts
export * from './src/types';
export * from './src/uniqueId';
export * from './src/noop';
export * from './src/invariant';
export { default as forkHandlers } from './src/forkHandlers';
export { parseMetadata, suffixMetadata } from './src/parseMetadata';

@@ -48,2 +48,14 @@ 'use strict';

function invariant(condition, message) {
if (process.env.NODE_ENV !== 'development') {
return;
}
if (!condition) {
var error = new Error(message);
error.name = 'Invariant Violation';
throw error;
}
}
var forkHandlers = function (handlers) {

@@ -96,2 +108,3 @@ return function (e) {

exports.forkHandlers = forkHandlers;
exports.invariant = invariant;
exports.noop = noop;

@@ -98,0 +111,0 @@ exports.parseMetadata = parseMetadata;

export * from './src/types';
export * from './src/uniqueId';
export * from './src/noop';
export * from './src/invariant';
export { default as forkHandlers } from './src/forkHandlers';
export { parseMetadata, suffixMetadata } from './src/parseMetadata';

@@ -27,2 +27,14 @@ import kebabCase from 'lodash/fp/kebabCase';

function invariant(condition, message) {
if (process.env.NODE_ENV !== 'development') {
return;
}
if (!condition) {
var error = new Error(message);
error.name = 'Invariant Violation';
throw error;
}
}
var forkHandlers = function (handlers) {

@@ -74,3 +86,3 @@ return function (e) {

});
export { forkHandlers, noop, parseMetadata, suffixMetadata, uniqueId };
export { forkHandlers, invariant, noop, parseMetadata, suffixMetadata, uniqueId };
//# sourceMappingURL=index.js.map

4

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

@@ -39,3 +39,3 @@ "main": "dist/cjs/index.js",

},
"gitHead": "6170967a4ec9bbec9e9ef89a1aaafe46496e0fa3"
"gitHead": "f1e232240325d86dddecccf54728e8ba26044761"
}

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