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

@exodus/atoms

Package Overview
Dependencies
Maintainers
83
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 2.10.0 to 3.0.0

7

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

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

"dependencies": {
"events": "^1.1.1",
"events": "^3.3.0",
"lodash": "^4.17.21",

@@ -34,5 +34,6 @@ "make-concurrent": ">=4 <6",

"delay": "^5.0.0",
"eslint": "^8.33.0",
"jest": "^29.1.2"
},
"gitHead": "a98fe18a3362a8006fad096cbc31360fa9ad7263"
"gitHead": "09eebd39041cf2dda35741828ec8e574f374f4f2"
}

@@ -38,5 +38,5 @@ import makeConcurrent from 'make-concurrent'

const deduped = withChangeDetection(listener)
const publishSerially = (value) => enqueue(() => deduped.listener(postProcessValue(value)))
const publishSerially = (value) => enqueue(() => deduped.listener(value))
// note: call observe() first to give it a chance to throw if it's not supported
const unsubscribe = atom.observe(publishSerially)
const unsubscribe = atom.observe((value) => publishSerially(postProcessValue(value)))
// if the subscription already fired once, ignore first get

@@ -43,0 +43,0 @@ get().then((value) => !deduped.called && publishSerially(value))

@@ -13,3 +13,6 @@ import createCountdownLock from '../countdown-lock'

atoms[name].observe(async (value) => {
values[name] = value
values = {
...values,
[name]: value,
}
if (countdownLock.unlock()) await notify(values)

@@ -16,0 +19,0 @@ })

@@ -1,2 +0,2 @@

import EventEmitter from 'events/' // '/' forces it to use the module from node_modules
import EventEmitter from 'events/'

@@ -3,0 +3,0 @@ import fromEventEmitter from '../event-emitter'

@@ -11,3 +11,3 @@ import createSimpleObserver from '../simple-observer'

const set = async (value) => {
if (typeof value === 'undefined') {
if (value === undefined) {
await storage.delete(key)

@@ -14,0 +14,0 @@ } else {

@@ -7,4 +7,2 @@ export { default as createAtomMock } from './factories/memory'

export { default as createRemoteConfigAtomFactory } from './factories/remote-config'
export { default as createEnabledAssetsAtom } from './factories/enabled-assets'
export { default as createDisabledAssetsAtom } from './factories/disabled-assets'
export { default as fromEventEmitter } from './event-emitter'

@@ -11,0 +9,0 @@ export { default as compute } from './enhancers/compute'

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