@tramvai/core 1.45.0 → 1.46.8

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.
package/lib/index.d.ts CHANGED
@@ -10,4 +10,4 @@ export { isExtendedModule } from './modules/isExtendedModule';
10
10
  export { ModuleType, ExtendedModule } from './modules/module.h';
11
11
  export { Command } from './command/command.h';
12
12
  export * from './tokens';
13
- export { Scope, Provider } from '@tinkoff/dippy';
13
+ export { Scope, Provider, createToken } from '@tinkoff/dippy';
package/lib/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createToken, createContainer, Scope } from '@tinkoff/dippy';
2
- export { DI_TOKEN, IS_DI_CHILD_CONTAINER_TOKEN, Scope } from '@tinkoff/dippy';
2
+ export { DI_TOKEN, IS_DI_CHILD_CONTAINER_TOKEN, Scope, createToken } from '@tinkoff/dippy';
3
3
  import concat from '@tinkoff/utils/array/concat';
4
4
  import mergeWith from '@tinkoff/utils/object/mergeWith';
5
5
  import omit from '@tinkoff/utils/object/omit';
package/lib/index.js CHANGED
@@ -264,6 +264,10 @@ Object.defineProperty(exports, 'Scope', {
264
264
  enumerable: true,
265
265
  get: function () { return dippy.Scope; }
266
266
  });
267
+ Object.defineProperty(exports, 'createToken', {
268
+ enumerable: true,
269
+ get: function () { return dippy.createToken; }
270
+ });
267
271
  Object.defineProperty(exports, 'ACTION_PARAMETERS', {
268
272
  enumerable: true,
269
273
  get: function () { return typesActionsStateContext.ACTION_PARAMETERS; }
package/lib/tokens.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { TokenType, Container, Provider } from '@tinkoff/dippy';
1
+ import type { Container, Provider } from '@tinkoff/dippy';
2
2
  import type { Command } from './command/command.h';
3
3
  import type { Action } from './types/action';
4
4
  export { DI_TOKEN, IS_DI_CHILD_CONTAINER_TOKEN } from '@tinkoff/dippy';
@@ -13,12 +13,7 @@ export interface CommandLine {
13
13
  lines: CommandLines;
14
14
  run(type: keyof CommandLines, status: keyof CommandLineDescription, providers?: Provider[], customDi?: Container): Promise<Container>;
15
15
  }
16
- export declare type CommandLineDescription = {
17
- init: Array<TokenType<any> | string>;
18
- close?: Array<TokenType<any> | string>;
19
- customer: Array<TokenType<any> | string>;
20
- spa?: Array<TokenType<any> | string>;
21
- };
16
+ export declare type CommandLineDescription = Record<string, Command[]>;
22
17
  export declare type CommandLines = {
23
18
  server: CommandLineDescription;
24
19
  client: CommandLineDescription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/core",
3
- "version": "1.45.0",
3
+ "version": "1.46.8",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@tinkoff/utils": "^2.1.2",
23
- "@tramvai/types-actions-state-context": "1.45.0",
24
- "@tinkoff/dippy": "0.7.35",
23
+ "@tramvai/types-actions-state-context": "1.46.8",
24
+ "@tinkoff/dippy": "0.7.36",
25
25
  "tslib": "^2.0.3"
26
26
  },
27
27
  "peerDependencies": {