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

@exodus/atoms

Package Overview
Dependencies
Maintainers
84
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/atoms - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

4

package.json
{
"name": "@exodus/atoms",
"version": "3.0.0",
"version": "3.1.0",
"main": "src/index.js",

@@ -36,3 +36,3 @@ "author": "Exodus Movement Inc.",

},
"gitHead": "09eebd39041cf2dda35741828ec8e574f374f4f2"
"gitHead": "6aca43c9d371da13ffca0de1d9a0bc9c3f14ee25"
}
# `@exodus/atoms`
Module to store and manage wallet accounts instances.
## Install

@@ -6,0 +4,0 @@

@@ -8,6 +8,17 @@ import { get as getValueAtPath } from 'lodash'

({ remoteConfig }) =>
({ path, defaultValue }) => {
({ path, selector, defaultValue }) => {
if (path && selector) {
throw new Error(
'Provide either a path or a selector to get data from remote config - not both.'
)
}
const getValue = (value) => (selector ? selector(value) : getValueAtPath(value, path))
const { notify, observe } = createSimpleObserver()
const get = () => remoteConfig.get(path)
const get = async () => {
const data = await remoteConfig.getAll()
return getValue(data)
}

@@ -18,3 +29,6 @@ const set = async () => {

remoteConfig.on('sync', ({ current }) => notify(getValueAtPath(current, path)))
remoteConfig.on('sync', async ({ current }) => {
const data = getValue(current)
return notify(data)
})

@@ -21,0 +35,0 @@ return enforceObservableRules({

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