@exodus/atoms 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -103,8 +103,7 @@ export const createRemoteConfigAtomFactory =
103
103
  }
104
104
 
105
105
  const get = async () => {
106
- const remoteConfigJSON = await remoteConfig.get()
107
- return getValue(remoteConfigJSON)
106
+ return remoteConfig.get(path)
108
107
  }
109
108
 
110
109
  const set = async () => {
@@ -118,7 +117,7 @@ export const createRemoteConfigAtomFactory =
118
117
  }
119
118
  }
120
119
 
121
- remoteConfig.on('remote-config', notify)
120
+ remoteConfig.on('sync', ({ current }) => notify(current))
122
121
 
123
122
  return enforceObservableRules({
124
123
  get,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/atoms",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "main": "index.js",
5
5
  "author": "Exodus Movement Inc.",
6
6
  "scripts": {
@@ -29,5 +29,5 @@
29
29
  "@exodus/storage-memory": "^1.0.0",
30
30
  "delay": "^5.0.0"
31
31
  },
32
- "gitHead": "b7d8b3cefb9c5aff0a390c2745266bffa9bc5e52"
32
+ "gitHead": "7107d23ea58a8948dbdf7594988941885ddc3b95"
33
33
  }