@lbu/stdlib
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -9,2 +9,3 @@ export { uuid } from "./src/datatypes.js"; | ||
unFlatten, | ||
camelToSnakeCase, | ||
} from "./src/lodash.js"; | ||
@@ -11,0 +12,0 @@ export { |
{ | ||
"name": "@lbu/stdlib", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "All kinds of utility functions", | ||
@@ -16,6 +16,6 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@lbu/insight": "^0.0.16", | ||
"@lbu/insight": "^0.0.17", | ||
"dotenv": "8.2.0", | ||
"lodash.merge": "4.6.2", | ||
"uuid": "7.0.3" | ||
"uuid": "8.0.0" | ||
}, | ||
@@ -36,3 +36,3 @@ "author": { | ||
}, | ||
"gitHead": "12be5e9f611d1c9dd2eb606a326dbf2f2c2f13cb" | ||
"gitHead": "7377e57349804d308fc981644334f6c07a33669c" | ||
} |
@@ -1,2 +0,2 @@ | ||
import uuidPkg from "uuid"; | ||
import { v4 } from "uuid"; | ||
@@ -8,2 +8,2 @@ /** | ||
*/ | ||
export const uuid = uuidPkg.v4; | ||
export const uuid = v4; |
@@ -86,1 +86,8 @@ import lodashMerge from "lodash.merge"; | ||
} | ||
export function camelToSnakeCase(input) { | ||
return input | ||
.replace(/(.)([A-Z][a-z]+)/, "$1_$2") | ||
.replace(/([a-z0-9])([A-Z])/, "$1_$2") | ||
.toLowerCase(); | ||
} |
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
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
18877
599
+ Added@lbu/insight@0.0.17(transitive)
+ Addeduuid@8.0.0(transitive)
- Removed@lbu/insight@0.0.16(transitive)
- Removeduuid@7.0.3(transitive)
Updated@lbu/insight@^0.0.17
Updateduuid@8.0.0