@tramvai/react-query 5.10.0 → 5.14.9

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,9 +4,8 @@ function isSerializableKey(options) {
4
4
  return !('actionNamePostfix' in options);
5
5
  }
6
6
  const createUniqueActionKeyForQuery = (queryParameters) => {
7
- var _a;
8
7
  const rawQueryKey = isSerializableKey(queryParameters)
9
- ? (_a = queryParameters.actionNamePostfix) !== null && _a !== void 0 ? _a : queryParameters.key
8
+ ? queryParameters.actionNamePostfix ?? queryParameters.key
10
9
  : queryParameters.actionNamePostfix;
11
10
  const queryKeyArray = normalizeKey(rawQueryKey);
12
11
  return queryKeyArray.join('_');
@@ -8,9 +8,8 @@ function isSerializableKey(options) {
8
8
  return !('actionNamePostfix' in options);
9
9
  }
10
10
  const createUniqueActionKeyForQuery = (queryParameters) => {
11
- var _a;
12
11
  const rawQueryKey = isSerializableKey(queryParameters)
13
- ? (_a = queryParameters.actionNamePostfix) !== null && _a !== void 0 ? _a : queryParameters.key
12
+ ? queryParameters.actionNamePostfix ?? queryParameters.key
14
13
  : queryParameters.actionNamePostfix;
15
14
  const queryKeyArray = normalizeKey.normalizeKey(rawQueryKey);
16
15
  return queryKeyArray.join('_');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/react-query",
3
- "version": "5.10.0",
3
+ "version": "5.14.9",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -19,10 +19,10 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@tinkoff/react-hooks": "0.4.2",
22
- "@tramvai/core": "5.10.0",
23
- "@tramvai/module-react-query": "5.10.0",
24
- "@tramvai/react": "5.10.0",
25
- "@tramvai/tokens-common": "5.10.0"
22
+ "@tramvai/core": "5.14.9",
23
+ "@tramvai/module-react-query": "5.14.9",
24
+ "@tramvai/react": "5.14.9",
25
+ "@tramvai/tokens-common": "5.14.9"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@tinkoff/dippy": "0.11.3",