@tramvai/module-common 2.44.2 → 2.45.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.
@@ -635,8 +635,7 @@ PubSubModule = __decorate([
635
635
  const providers$2 = [
636
636
  provide({
637
637
  provide: INITIAL_APP_STATE_TOKEN,
638
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
639
- useFactory: () => JSON.parse(document.getElementById('__TRAMVAI_STATE__').textContent),
638
+ useFactory: () => { var _a, _b; return JSON.parse((_b = (_a = document.getElementById('__TRAMVAI_STATE__')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : '{}'); },
640
639
  scope: Scope.REQUEST,
641
640
  }),
642
641
  provide({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-common",
3
- "version": "2.44.2",
3
+ "version": "2.45.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -33,27 +33,28 @@
33
33
  "@tinkoff/lru-cache-nano": "^7.8.1",
34
34
  "@tinkoff/pubsub": "0.5.5",
35
35
  "@tinkoff/url": "0.8.4",
36
- "@tramvai/experiments": "2.44.2",
37
- "@tramvai/module-cookie": "2.44.2",
38
- "@tramvai/module-environment": "2.44.2",
39
- "@tramvai/module-log": "2.44.2",
40
- "@tramvai/tokens-child-app": "2.44.2",
41
- "@tramvai/tokens-common": "2.44.2",
42
- "@tramvai/tokens-render": "2.44.2",
43
- "@tramvai/tokens-server-private": "2.44.2",
36
+ "@tramvai/experiments": "2.45.0",
37
+ "@tramvai/module-cookie": "2.45.0",
38
+ "@tramvai/module-environment": "2.45.0",
39
+ "@tramvai/module-log": "2.45.0",
40
+ "@tramvai/tokens-child-app": "2.45.0",
41
+ "@tramvai/tokens-common": "2.45.0",
42
+ "@tramvai/tokens-render": "2.45.0",
43
+ "@tramvai/tokens-server-private": "2.45.0",
44
+ "@tramvai/types-actions-state-context": "2.45.0",
44
45
  "hoist-non-react-statics": "^3.3.1",
45
46
  "node-abort-controller": "^3.0.1"
46
47
  },
47
48
  "peerDependencies": {
48
49
  "@tinkoff/dippy": "0.8.9",
49
50
  "@tinkoff/utils": "^2.1.2",
50
- "@tramvai/cli": "2.44.2",
51
- "@tramvai/core": "2.44.2",
52
- "@tramvai/papi": "2.44.2",
53
- "@tramvai/react": "2.44.2",
54
- "@tramvai/state": "2.44.2",
55
- "@tramvai/tokens-metrics": "2.44.2",
56
- "@tramvai/tokens-server": "2.44.2",
51
+ "@tramvai/cli": "2.45.0",
52
+ "@tramvai/core": "2.45.0",
53
+ "@tramvai/papi": "2.45.0",
54
+ "@tramvai/react": "2.45.0",
55
+ "@tramvai/state": "2.45.0",
56
+ "@tramvai/tokens-metrics": "2.45.0",
57
+ "@tramvai/tokens-server": "2.45.0",
57
58
  "react": ">=16.14.0",
58
59
  "tslib": "^2.4.0"
59
60
  },