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

@exodus/basic-utils

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/basic-utils - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

6

CHANGELOG.md

@@ -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 @@

5

package.json
{
"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"
}

6

src/clean-input.js

@@ -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) => {

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