@exodus/basic-utils
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -6,2 +6,8 @@ # Change Log | ||
## [3.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/basic-utils@3.1.0...@exodus/basic-utils@3.2.0) (2024-10-22) | ||
### Features | ||
- **basic-utils:** expose SynchronizedTime from synchornized-time package ([#10113](https://github.com/ExodusMovement/exodus-hydra/issues/10113)) ([e41796c](https://github.com/ExodusMovement/exodus-hydra/commit/e41796c38849608c8494eacefd45fde2e37c4bbe)) | ||
## [3.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/basic-utils@3.0.1...@exodus/basic-utils@3.1.0) (2024-10-01) | ||
@@ -8,0 +14,0 @@ |
{ | ||
"name": "@exodus/basic-utils", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Basic lightweight lib with common utility classes and methods.", | ||
@@ -16,2 +16,3 @@ "type": "module", | ||
"dependencies": { | ||
"@exodus/synchronized-time": "^1.0.0", | ||
"minimalistic-assert": "^1.0.1" | ||
@@ -31,3 +32,3 @@ }, | ||
}, | ||
"gitHead": "9e98352b97ae97b611940fb0421eddce3433fbaa" | ||
"gitHead": "44659618f2db7d6a38554885bbda84dfb99715b1" | ||
} |
@@ -8,7 +8,7 @@ function cleanInput(value, decimals = null) { | ||
value.includes(',') && value.includes('.') | ||
? value.replace(/[^\d.]/g, '') | ||
: value.replace(/[^\d,.]/g, '') | ||
? value.replace(/[^\d.]/gu, '') | ||
: value.replace(/[^\d,.]/gu, '') | ||
// Support `,` for some locales | ||
value = value.replace(/,+/g, '.') | ||
value = value.replace(/,+/gu, '.') | ||
@@ -15,0 +15,0 @@ // Drop extra zeros on the left at start |
@@ -1,2 +0,2 @@ | ||
export { default as SynchronizedTime } from './synchronized-time.js' | ||
export { SynchronizedTime } from '@exodus/synchronized-time' | ||
export { default as cleanInput } from './clean-input.js' | ||
@@ -3,0 +3,0 @@ export { default as flattenToPaths } from './flatten-to-paths.js' |
@@ -164,3 +164,3 @@ // adapted from https://github.com/lodash/lodash/blob/master/test/omit.js | ||
// Regex explained: https://regexr.com/58j0k | ||
const pathArray = Array.isArray(path) ? path : path.match(/([^.[\]])+/g) | ||
const pathArray = Array.isArray(path) ? path : path.match(/([^.[\]])+/gu) | ||
@@ -167,0 +167,0 @@ pathArray.reduce((acc, key, i) => { |
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
25428
2
16
425
+ Added@exodus/synchronized-time@1.0.1(transitive)