@tramvai/module-common 2.106.2 → 2.106.4

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.
@@ -1,6 +1,8 @@
1
1
  import { provide } from '@tramvai/core';
2
+ import noop from '@tinkoff/utils/function/noop';
2
3
  import { CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN } from '@tramvai/tokens-child-app';
3
4
  import { ACTION_EXECUTION_TOKEN, ACTION_PAGE_RUNNER_TOKEN, COMBINE_REDUCERS } from '@tramvai/tokens-common';
5
+ import { COMMAND_LINE_EXECUTION_END_TOKEN } from '@tramvai/tokens-core-private';
4
6
  import { actionTramvaiReducer } from '../actions/actionTramvaiReducer.browser.js';
5
7
 
6
8
  const actionsProviders = [
@@ -14,6 +16,13 @@ const actionsProviders = [
14
16
  multi: true,
15
17
  useValue: actionTramvaiReducer,
16
18
  }),
19
+ // We don't need to launch COMMAND_LINE_EXECUTION_END_TOKEN on
20
+ // each ChildApp, because we want to token execute only once for root App.
21
+ provide({
22
+ provide: COMMAND_LINE_EXECUTION_END_TOKEN,
23
+ multi: true,
24
+ useValue: noop,
25
+ }),
17
26
  ];
18
27
 
19
28
  export { actionsProviders };
@@ -1,6 +1,8 @@
1
1
  import { provide } from '@tramvai/core';
2
+ import noop from '@tinkoff/utils/function/noop';
2
3
  import { CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN } from '@tramvai/tokens-child-app';
3
4
  import { ACTION_EXECUTION_TOKEN, ACTION_PAGE_RUNNER_TOKEN, COMBINE_REDUCERS } from '@tramvai/tokens-common';
5
+ import { COMMAND_LINE_EXECUTION_END_TOKEN } from '@tramvai/tokens-core-private';
4
6
  import { actionTramvaiReducer } from '../actions/actionTramvaiReducer.es.js';
5
7
 
6
8
  const actionsProviders = [
@@ -14,6 +16,13 @@ const actionsProviders = [
14
16
  multi: true,
15
17
  useValue: actionTramvaiReducer,
16
18
  }),
19
+ // We don't need to launch COMMAND_LINE_EXECUTION_END_TOKEN on
20
+ // each ChildApp, because we want to token execute only once for root App.
21
+ provide({
22
+ provide: COMMAND_LINE_EXECUTION_END_TOKEN,
23
+ multi: true,
24
+ useValue: noop,
25
+ }),
17
26
  ];
18
27
 
19
28
  export { actionsProviders };
@@ -3,10 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@tramvai/core');
6
+ var noop = require('@tinkoff/utils/function/noop');
6
7
  var tokensChildApp = require('@tramvai/tokens-child-app');
7
8
  var tokensCommon = require('@tramvai/tokens-common');
9
+ var tokensCorePrivate = require('@tramvai/tokens-core-private');
8
10
  var actionTramvaiReducer = require('../actions/actionTramvaiReducer.js');
9
11
 
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var noop__default = /*#__PURE__*/_interopDefaultLegacy(noop);
15
+
10
16
  const actionsProviders = [
11
17
  core.provide({
12
18
  provide: tokensChildApp.CHILD_APP_INTERNAL_ROOT_DI_BORROW_TOKEN,
@@ -18,6 +24,13 @@ const actionsProviders = [
18
24
  multi: true,
19
25
  useValue: actionTramvaiReducer.actionTramvaiReducer,
20
26
  }),
27
+ // We don't need to launch COMMAND_LINE_EXECUTION_END_TOKEN on
28
+ // each ChildApp, because we want to token execute only once for root App.
29
+ core.provide({
30
+ provide: tokensCorePrivate.COMMAND_LINE_EXECUTION_END_TOKEN,
31
+ multi: true,
32
+ useValue: noop__default["default"],
33
+ }),
21
34
  ];
22
35
 
23
36
  exports.actionsProviders = actionsProviders;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-common",
3
- "version": "2.106.2",
3
+ "version": "2.106.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -32,28 +32,28 @@
32
32
  "@tinkoff/lru-cache-nano": "^7.8.1",
33
33
  "@tinkoff/pubsub": "0.5.7",
34
34
  "@tinkoff/url": "0.8.6",
35
- "@tramvai/experiments": "2.106.2",
36
- "@tramvai/module-cookie": "2.106.2",
37
- "@tramvai/module-environment": "2.106.2",
38
- "@tramvai/module-log": "2.106.2",
39
- "@tramvai/tokens-child-app": "2.106.2",
40
- "@tramvai/tokens-core-private": "2.106.2",
41
- "@tramvai/tokens-common": "2.106.2",
42
- "@tramvai/tokens-render": "2.106.2",
43
- "@tramvai/tokens-server-private": "2.106.2",
44
- "@tramvai/types-actions-state-context": "2.106.2",
35
+ "@tramvai/experiments": "2.106.4",
36
+ "@tramvai/module-cookie": "2.106.4",
37
+ "@tramvai/module-environment": "2.106.4",
38
+ "@tramvai/module-log": "2.106.4",
39
+ "@tramvai/tokens-child-app": "2.106.4",
40
+ "@tramvai/tokens-core-private": "2.106.4",
41
+ "@tramvai/tokens-common": "2.106.4",
42
+ "@tramvai/tokens-render": "2.106.4",
43
+ "@tramvai/tokens-server-private": "2.106.4",
44
+ "@tramvai/types-actions-state-context": "2.106.4",
45
45
  "hoist-non-react-statics": "^3.3.1",
46
46
  "node-abort-controller": "^3.0.1"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@tinkoff/dippy": "0.8.15",
50
50
  "@tinkoff/utils": "^2.1.2",
51
- "@tramvai/cli": "2.106.2",
52
- "@tramvai/core": "2.106.2",
53
- "@tramvai/papi": "2.106.2",
54
- "@tramvai/react": "2.106.2",
55
- "@tramvai/state": "2.106.2",
56
- "@tramvai/tokens-server": "2.106.2",
51
+ "@tramvai/cli": "2.106.4",
52
+ "@tramvai/core": "2.106.4",
53
+ "@tramvai/papi": "2.106.4",
54
+ "@tramvai/react": "2.106.4",
55
+ "@tramvai/state": "2.106.4",
56
+ "@tramvai/tokens-server": "2.106.4",
57
57
  "react": ">=16.14.0",
58
58
  "tslib": "^2.4.0"
59
59
  },