@tramvai/tokens-core-private 2.56.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.
- package/lib/index.d.ts +16 -0
- package/lib/index.es.js +6 -0
- package/lib/index.js +11 -0
- package/package.json +29 -0
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Container } from '@tinkoff/dippy';
|
|
2
|
+
import type { CommandLineDescription, CommandLines } from '@tramvai/tokens-core';
|
|
3
|
+
export type CommandLineTimingInfo = Record<keyof CommandLineDescription, {
|
|
4
|
+
/**
|
|
5
|
+
* Start of the line execution. Measured in milliseconds with performance.now
|
|
6
|
+
*/
|
|
7
|
+
start: number;
|
|
8
|
+
/**
|
|
9
|
+
* End of the line execution. Measured in milliseconds with performance.now
|
|
10
|
+
* If the value is empty for some lines it is implies line is still executing
|
|
11
|
+
*/
|
|
12
|
+
end?: number;
|
|
13
|
+
}>;
|
|
14
|
+
export type CommandLineExecutionEndHandler = (di: Container, type: keyof CommandLines, status: keyof CommandLineDescription, timingInfo: CommandLineTimingInfo) => void;
|
|
15
|
+
export declare const COMMAND_LINE_TIMING_INFO_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<CommandLineTimingInfo>;
|
|
16
|
+
export declare const COMMAND_LINE_EXECUTION_END_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<CommandLineExecutionEndHandler>;
|
package/lib/index.es.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createToken } from '@tinkoff/dippy';
|
|
2
|
+
|
|
3
|
+
const COMMAND_LINE_TIMING_INFO_TOKEN = createToken('commandLineRunner timingInfo');
|
|
4
|
+
const COMMAND_LINE_EXECUTION_END_TOKEN = createToken('commandLineRunner executionEnd', { multi: true });
|
|
5
|
+
|
|
6
|
+
export { COMMAND_LINE_EXECUTION_END_TOKEN, COMMAND_LINE_TIMING_INFO_TOKEN };
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var dippy = require('@tinkoff/dippy');
|
|
6
|
+
|
|
7
|
+
const COMMAND_LINE_TIMING_INFO_TOKEN = dippy.createToken('commandLineRunner timingInfo');
|
|
8
|
+
const COMMAND_LINE_EXECUTION_END_TOKEN = dippy.createToken('commandLineRunner executionEnd', { multi: true });
|
|
9
|
+
|
|
10
|
+
exports.COMMAND_LINE_EXECUTION_END_TOKEN = COMMAND_LINE_EXECUTION_END_TOKEN;
|
|
11
|
+
exports.COMMAND_LINE_TIMING_INFO_TOKEN = COMMAND_LINE_TIMING_INFO_TOKEN;
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tramvai/tokens-core-private",
|
|
3
|
+
"version": "2.56.0",
|
|
4
|
+
"description": "Tramvai core private tokens",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "lib/index.es.js",
|
|
7
|
+
"typings": "lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git@github.com:Tinkoff/tramvai.git"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tramvai-build --for-publish",
|
|
18
|
+
"watch": "tsc -w",
|
|
19
|
+
"build-for-publish": "true"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@tramvai/tokens-core": "2.56.0"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@tinkoff/dippy": "0.8.10",
|
|
26
|
+
"tslib": "^2.4.0"
|
|
27
|
+
},
|
|
28
|
+
"license": "Apache-2.0"
|
|
29
|
+
}
|