@tramvai/module-client-hints 4.33.1 → 4.33.2

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.
@@ -3,6 +3,7 @@ import { parse, parseClientHintsUserAgentData } from '@tinkoff/user-agent';
3
3
  const getFromUserAgentData = () => {
4
4
  var _a;
5
5
  try {
6
+ // eslint-disable-next-line compat/compat
6
7
  const values = (_a = window.__TRAMVAI_USER_AGENT_DATA) !== null && _a !== void 0 ? _a : window.navigator.userAgentData;
7
8
  if (values === undefined) {
8
9
  return null;
@@ -1,4 +1,6 @@
1
- const requestIdleCallback = window.requestIdleCallback ||
1
+ const requestIdleCallback =
2
+ // eslint-disable-next-line compat/compat
3
+ window.requestIdleCallback ||
2
4
  function (callback) {
3
5
  return window.setTimeout(callback, 1);
4
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-client-hints",
3
- "version": "4.33.1",
3
+ "version": "4.33.2",
4
4
  "description": "",
5
5
  "main": "lib/server.js",
6
6
  "module": "lib/server.es.js",
@@ -19,22 +19,22 @@
19
19
  "watch": "tsc -w"
20
20
  },
21
21
  "dependencies": {
22
- "@tinkoff/user-agent": "0.6.108",
22
+ "@tinkoff/user-agent": "0.6.109",
23
23
  "@tinkoff/utils": "^2.1.2",
24
24
  "@tinkoff/env-validators": "0.3.1",
25
25
  "@tramvai/safe-strings": "0.7.2",
26
- "@tramvai/module-metrics": "4.33.1",
27
- "@tramvai/tokens-child-app": "4.33.1",
28
- "@tramvai/tokens-common": "4.33.1",
29
- "@tramvai/tokens-cookie": "4.33.1",
30
- "@tramvai/tokens-render": "4.33.1",
26
+ "@tramvai/module-metrics": "4.33.2",
27
+ "@tramvai/tokens-child-app": "4.33.2",
28
+ "@tramvai/tokens-common": "4.33.2",
29
+ "@tramvai/tokens-cookie": "4.33.2",
30
+ "@tramvai/tokens-render": "4.33.2",
31
31
  "user-agent-data-types": "^0.3.1"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@tinkoff/dippy": "0.10.8",
35
35
  "@tinkoff/logger": "0.10.276",
36
- "@tramvai/core": "4.33.1",
37
- "@tramvai/state": "4.33.1",
36
+ "@tramvai/core": "4.33.2",
37
+ "@tramvai/state": "4.33.2",
38
38
  "react": ">=16.14.0",
39
39
  "react-dom": ">=16.14.0",
40
40
  "tslib": "^2.4.0"