@tramvai/state 3.33.2 → 3.37.1

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.
@@ -4,7 +4,8 @@ import { ConnectContext } from '../context.es.js';
4
4
  const useConsumerContext = () => {
5
5
  const context = useContext(ConnectContext);
6
6
  if (!context) {
7
- throw new Error('CONSUMER_CONTEXT not found, have you added "@tramvai/module-common"?');
7
+ throw new Error(`CONSUMER_CONTEXT not found, have you added "@tramvai/module-common"?
8
+ Also, you can check "@tramva/state" library duplicates in project lock file.`);
8
9
  }
9
10
  return context;
10
11
  };
@@ -8,7 +8,8 @@ var context = require('../context.js');
8
8
  const useConsumerContext = () => {
9
9
  const context$1 = React.useContext(context.ConnectContext);
10
10
  if (!context$1) {
11
- throw new Error('CONSUMER_CONTEXT not found, have you added "@tramvai/module-common"?');
11
+ throw new Error(`CONSUMER_CONTEXT not found, have you added "@tramvai/module-common"?
12
+ Also, you can check "@tramva/state" library duplicates in project lock file.`);
12
13
  }
13
14
  return context$1;
14
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/state",
3
- "version": "3.33.2",
3
+ "version": "3.37.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@tinkoff/react-hooks": "0.2.1",
21
21
  "@tinkoff/utils": "^2.1.2",
22
- "@tramvai/types-actions-state-context": "3.33.2",
22
+ "@tramvai/types-actions-state-context": "3.37.1",
23
23
  "@types/hoist-non-react-statics": "^3.3.1",
24
24
  "invariant": "^2.2.4",
25
25
  "react-is": ">=17",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@reatom/core": "^1.1.5",
37
- "@tramvai/core": "3.33.2",
37
+ "@tramvai/core": "3.37.1",
38
38
  "@types/invariant": "^2.2.31",
39
39
  "@types/react-is": "^17.0.0",
40
40
  "@types/use-sync-external-store": "^0.0.3",