@tramvai/module-common 4.41.11 → 4.41.14

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,7 @@
1
1
  import { provide, Scope } from '@tramvai/core';
2
2
  import { SERVER_MODULE_PAPI_PRIVATE_ROUTE } from '@tramvai/tokens-server';
3
- import { CLEAR_CACHE_TOKEN, LOGGER_TOKEN } from '@tramvai/tokens-common';
3
+ import { CLEAR_CACHE_TOKEN, LOGGER_TOKEN, CACHE_METRICS_SERVER_TOKEN } from '@tramvai/tokens-common';
4
+ import { HOST_PROVIDED_CONTRACTS } from '@tramvai/tokens-child-app';
4
5
  import { papiClearCache } from './papi.es.js';
5
6
  import { CACHE_NAMES_LIST_TOKEN } from './tokens.es.js';
6
7
  import { cacheMetricsServerProviders } from './cacheMetrics.es.js';
@@ -21,6 +22,12 @@ const providers = [
21
22
  logger: LOGGER_TOKEN,
22
23
  },
23
24
  }),
25
+ provide({
26
+ provide: HOST_PROVIDED_CONTRACTS,
27
+ useValue: {
28
+ providedContracts: [CACHE_NAMES_LIST_TOKEN, CACHE_METRICS_SERVER_TOKEN],
29
+ },
30
+ }),
24
31
  ];
25
32
 
26
33
  export { providers };
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var core = require('@tramvai/core');
6
6
  var tokensServer = require('@tramvai/tokens-server');
7
7
  var tokensCommon = require('@tramvai/tokens-common');
8
+ var tokensChildApp = require('@tramvai/tokens-child-app');
8
9
  var papi = require('./papi.js');
9
10
  var tokens = require('./tokens.js');
10
11
  var cacheMetrics = require('./cacheMetrics.js');
@@ -25,6 +26,12 @@ const providers = [
25
26
  logger: tokensCommon.LOGGER_TOKEN,
26
27
  },
27
28
  }),
29
+ core.provide({
30
+ provide: tokensChildApp.HOST_PROVIDED_CONTRACTS,
31
+ useValue: {
32
+ providedContracts: [tokens.CACHE_NAMES_LIST_TOKEN, tokensCommon.CACHE_METRICS_SERVER_TOKEN],
33
+ },
34
+ }),
28
35
  ];
29
36
 
30
37
  exports.providers = providers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-common",
3
- "version": "4.41.11",
3
+ "version": "4.41.14",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -31,36 +31,36 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@akashbabu/lfu-cache": "1.0.2",
34
- "@tinkoff/errors": "0.5.1",
35
- "@tinkoff/hook-runner": "0.6.1",
34
+ "@tinkoff/errors": "0.5.3",
35
+ "@tinkoff/hook-runner": "0.6.3",
36
36
  "@tinkoff/lru-cache-nano": "^7.9.0",
37
- "@tinkoff/pubsub": "0.7.1",
38
- "@tinkoff/url": "0.10.1",
39
- "@tramvai/experiments": "4.41.11",
40
- "@tramvai/module-cookie": "4.41.11",
41
- "@tramvai/module-environment": "4.41.11",
42
- "@tramvai/module-log": "4.41.11",
43
- "@tramvai/safe-strings": "0.7.5",
44
- "@tramvai/tokens-child-app": "4.41.11",
45
- "@tramvai/tokens-common": "4.41.11",
46
- "@tramvai/tokens-core-private": "4.41.11",
47
- "@tramvai/tokens-metrics": "4.41.11",
48
- "@tramvai/tokens-render": "4.41.11",
49
- "@tramvai/tokens-router": "4.41.11",
50
- "@tramvai/tokens-server-private": "4.41.11",
51
- "@tramvai/types-actions-state-context": "4.41.11",
37
+ "@tinkoff/pubsub": "0.7.3",
38
+ "@tinkoff/url": "0.10.3",
39
+ "@tramvai/experiments": "4.41.14",
40
+ "@tramvai/module-cookie": "4.41.14",
41
+ "@tramvai/module-environment": "4.41.14",
42
+ "@tramvai/module-log": "4.41.14",
43
+ "@tramvai/safe-strings": "0.7.7",
44
+ "@tramvai/tokens-child-app": "4.41.14",
45
+ "@tramvai/tokens-common": "4.41.14",
46
+ "@tramvai/tokens-core-private": "4.41.14",
47
+ "@tramvai/tokens-metrics": "4.41.14",
48
+ "@tramvai/tokens-render": "4.41.14",
49
+ "@tramvai/tokens-router": "4.41.14",
50
+ "@tramvai/tokens-server-private": "4.41.14",
51
+ "@tramvai/types-actions-state-context": "4.41.14",
52
52
  "hoist-non-react-statics": "^3.3.1",
53
53
  "node-abort-controller": "^3.0.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@tinkoff/dippy": "0.10.9",
56
+ "@tinkoff/dippy": "0.10.11",
57
57
  "@tinkoff/utils": "^2.1.2",
58
- "@tramvai/cli": "4.41.11",
59
- "@tramvai/core": "4.41.11",
60
- "@tramvai/papi": "4.41.11",
61
- "@tramvai/react": "4.41.11",
62
- "@tramvai/state": "4.41.11",
63
- "@tramvai/tokens-server": "4.41.11",
58
+ "@tramvai/cli": "4.41.14",
59
+ "@tramvai/core": "4.41.14",
60
+ "@tramvai/papi": "4.41.14",
61
+ "@tramvai/react": "4.41.14",
62
+ "@tramvai/state": "4.41.14",
63
+ "@tramvai/tokens-server": "4.41.14",
64
64
  "react": ">=16.14.0",
65
65
  "tslib": "^2.4.0"
66
66
  },