Comparing version 0.1.0 to 0.2.0
@@ -22,4 +22,13 @@ /** | ||
/** | ||
* Generates a unique ID | ||
* @param {string} key | ||
* @returns {string} A generated id | ||
*/ | ||
function generateId(key) { | ||
return key + "-" + Math.floor(Math.random() * 100000, 5); | ||
} | ||
/* eslint-disable import/prefer-default-export */ | ||
export { combineEventHandlers }; | ||
export { combineEventHandlers, generateId }; |
@@ -26,4 +26,14 @@ 'use strict'; | ||
/** | ||
* Generates a unique ID | ||
* @param {string} key | ||
* @returns {string} A generated id | ||
*/ | ||
function generateId(key) { | ||
return key + "-" + Math.floor(Math.random() * 100000, 5); | ||
} | ||
/* eslint-disable import/prefer-default-export */ | ||
exports.combineEventHandlers = combineEventHandlers; | ||
exports.generateId = generateId; |
{ | ||
"name": "@hig/utils", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Non-component specific utility functions for HIG components", | ||
@@ -5,0 +5,0 @@ "author": "Autodesk Inc.", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
3301
5
59
1