@talismn/balances-react 0.0.0-pr447-20230222115452 → 0.0.0-pr447-20230222123200
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @talismn/balances-react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-pr447-
|
|
3
|
+
## 0.0.0-pr447-20230222123200
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
- 298aebe: fix: ported useDbCache related perf fixes to @talismn/balances-react
|
|
9
9
|
- Updated dependencies [298aebe]
|
|
10
10
|
- Updated dependencies [298aebe]
|
|
11
|
-
- @talismn/token-rates@0.0.0-pr447-
|
|
12
|
-
- @talismn/balances@0.0.0-pr447-
|
|
11
|
+
- @talismn/token-rates@0.0.0-pr447-20230222123200
|
|
12
|
+
- @talismn/balances@0.0.0-pr447-20230222123200
|
|
13
13
|
|
|
14
14
|
## 0.3.3
|
|
15
15
|
|
|
@@ -22,7 +22,7 @@ const provideContext = useProviderContext => {
|
|
|
22
22
|
// automatic typing based on our hook's return type
|
|
23
23
|
|
|
24
24
|
const Context = /*#__PURE__*/react.createContext({
|
|
25
|
-
|
|
25
|
+
__provideContextInternalDefaultValue: true
|
|
26
26
|
});
|
|
27
27
|
const Provider = ({
|
|
28
28
|
children,
|
|
@@ -36,7 +36,7 @@ const provideContext = useProviderContext => {
|
|
|
36
36
|
};
|
|
37
37
|
const useProvidedContext = () => {
|
|
38
38
|
const context = react.useContext(Context);
|
|
39
|
-
if (typeof context === "object" && context && "
|
|
39
|
+
if (typeof context === "object" && context && "__provideContextInternalDefaultValue" in context) throw new Error("This hook requires a provider to be present above it in the tree");
|
|
40
40
|
return context;
|
|
41
41
|
};
|
|
42
42
|
const result = [Provider, useProvidedContext];
|
|
@@ -164,7 +164,7 @@ const [DbCacheProvider, useDbCache] = provideContext(useDbCacheProvider);
|
|
|
164
164
|
|
|
165
165
|
var packageJson = {
|
|
166
166
|
name: "@talismn/balances-react",
|
|
167
|
-
version: "0.0.0-pr447-
|
|
167
|
+
version: "0.0.0-pr447-20230222123200",
|
|
168
168
|
author: "Talisman",
|
|
169
169
|
homepage: "https://talisman.xyz",
|
|
170
170
|
license: "UNLICENSED",
|
|
@@ -22,7 +22,7 @@ const provideContext = useProviderContext => {
|
|
|
22
22
|
// automatic typing based on our hook's return type
|
|
23
23
|
|
|
24
24
|
const Context = /*#__PURE__*/react.createContext({
|
|
25
|
-
|
|
25
|
+
__provideContextInternalDefaultValue: true
|
|
26
26
|
});
|
|
27
27
|
const Provider = ({
|
|
28
28
|
children,
|
|
@@ -36,7 +36,7 @@ const provideContext = useProviderContext => {
|
|
|
36
36
|
};
|
|
37
37
|
const useProvidedContext = () => {
|
|
38
38
|
const context = react.useContext(Context);
|
|
39
|
-
if (typeof context === "object" && context && "
|
|
39
|
+
if (typeof context === "object" && context && "__provideContextInternalDefaultValue" in context) throw new Error("This hook requires a provider to be present above it in the tree");
|
|
40
40
|
return context;
|
|
41
41
|
};
|
|
42
42
|
const result = [Provider, useProvidedContext];
|
|
@@ -164,7 +164,7 @@ const [DbCacheProvider, useDbCache] = provideContext(useDbCacheProvider);
|
|
|
164
164
|
|
|
165
165
|
var packageJson = {
|
|
166
166
|
name: "@talismn/balances-react",
|
|
167
|
-
version: "0.0.0-pr447-
|
|
167
|
+
version: "0.0.0-pr447-20230222123200",
|
|
168
168
|
author: "Talisman",
|
|
169
169
|
homepage: "https://talisman.xyz",
|
|
170
170
|
license: "UNLICENSED",
|
|
@@ -14,7 +14,7 @@ const provideContext = useProviderContext => {
|
|
|
14
14
|
// automatic typing based on our hook's return type
|
|
15
15
|
|
|
16
16
|
const Context = /*#__PURE__*/createContext({
|
|
17
|
-
|
|
17
|
+
__provideContextInternalDefaultValue: true
|
|
18
18
|
});
|
|
19
19
|
const Provider = ({
|
|
20
20
|
children,
|
|
@@ -28,7 +28,7 @@ const provideContext = useProviderContext => {
|
|
|
28
28
|
};
|
|
29
29
|
const useProvidedContext = () => {
|
|
30
30
|
const context = useContext(Context);
|
|
31
|
-
if (typeof context === "object" && context && "
|
|
31
|
+
if (typeof context === "object" && context && "__provideContextInternalDefaultValue" in context) throw new Error("This hook requires a provider to be present above it in the tree");
|
|
32
32
|
return context;
|
|
33
33
|
};
|
|
34
34
|
const result = [Provider, useProvidedContext];
|
|
@@ -156,7 +156,7 @@ const [DbCacheProvider, useDbCache] = provideContext(useDbCacheProvider);
|
|
|
156
156
|
|
|
157
157
|
var packageJson = {
|
|
158
158
|
name: "@talismn/balances-react",
|
|
159
|
-
version: "0.0.0-pr447-
|
|
159
|
+
version: "0.0.0-pr447-20230222123200",
|
|
160
160
|
author: "Talisman",
|
|
161
161
|
homepage: "https://talisman.xyz",
|
|
162
162
|
license: "UNLICENSED",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talismn/balances-react",
|
|
3
|
-
"version": "0.0.0-pr447-
|
|
3
|
+
"version": "0.0.0-pr447-20230222123200",
|
|
4
4
|
"author": "Talisman",
|
|
5
5
|
"homepage": "https://talisman.xyz",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"clean": "rm -rf dist && rm -rf .turbo rm -rf node_modules"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@talismn/balances": "^0.0.0-pr447-
|
|
29
|
+
"@talismn/balances": "^0.0.0-pr447-20230222123200",
|
|
30
30
|
"@talismn/chain-connector": "^0.4.2",
|
|
31
31
|
"@talismn/chain-connector-evm": "^0.4.2",
|
|
32
32
|
"@talismn/chaindata-provider": "^0.4.2",
|
|
33
33
|
"@talismn/chaindata-provider-extension": "^0.4.2",
|
|
34
|
-
"@talismn/token-rates": "^0.0.0-pr447-
|
|
34
|
+
"@talismn/token-rates": "^0.0.0-pr447-20230222123200",
|
|
35
35
|
"anylogger": "^1.0.11",
|
|
36
36
|
"dexie": "^3.2.3",
|
|
37
37
|
"dexie-react-hooks": "^1.1.1",
|