ltm-utilities
Advanced tools
Comparing version 0.0.9 to 0.1.0
25
index.ts
@@ -202,3 +202,28 @@ class Utils { | ||
} | ||
randomColor() { | ||
const parts: string[] = [ | ||
"A", | ||
"B", | ||
"C", | ||
"D", | ||
"E", | ||
"F", | ||
"0", | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5", | ||
"6", | ||
"7", | ||
"8", | ||
"9", | ||
]; | ||
let color: string = "#"; | ||
for (let i: number = 0; i <= 6; i++) { | ||
color = parts[Math.floor(Math.random() * parts.length)]; | ||
} | ||
return color; | ||
} | ||
} | ||
export default Utils; |
{ | ||
"name": "ltm-utilities", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"description": "This is a utility package for practical uses", | ||
"main": "index.ts", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"test": "node index.js" | ||
"test": "node index.ts", | ||
"build": "tsc" | ||
}, | ||
@@ -24,3 +26,4 @@ "keywords": [ | ||
"dependencies": { | ||
"node-fetch": "^3.3.1" | ||
"node-fetch": "^3.3.1", | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -27,0 +30,0 @@ "repository": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25375
6
584
2
+ Addedtypescript@^5.0.4
+ Addedtypescript@5.6.3(transitive)