@reliverse/relinka 1.2.4 → 1.2.6
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/LICENSE +2 -2
- package/README.md +2 -8
- package/dist-npm/components/levels/levels.d.ts +21 -0
- package/dist-npm/components/levels/levels.js +8 -8
- package/dist-npm/components/messages/mapping.d.ts +3 -0
- package/dist-npm/components/messages/mapping.js +49 -0
- package/dist-npm/components/messages/messages.d.ts +89 -0
- package/dist-npm/components/messages/messages.js +329 -0
- package/dist-npm/components/messages/mod.d.ts +6 -0
- package/dist-npm/components/messages/mod.js +6 -0
- package/dist-npm/components/messages/platforms.d.ts +10 -0
- package/dist-npm/components/messages/platforms.js +67 -0
- package/dist-npm/components/messages/terminal.d.ts +15 -0
- package/dist-npm/components/messages/terminal.js +57 -0
- package/dist-npm/components/messages/types.d.ts +12 -0
- package/dist-npm/components/messages/types.js +0 -0
- package/dist-npm/components/messages/variants.d.ts +12 -0
- package/dist-npm/components/messages/variants.js +52 -0
- package/dist-npm/components/modes/basic.d.ts +14 -2
- package/dist-npm/components/modes/basic.js +6 -6
- package/dist-npm/components/modes/browser.d.ts +16 -2
- package/dist-npm/components/modes/browser.js +5 -5
- package/dist-npm/components/modes/shared.d.ts +1 -1
- package/dist-npm/components/modes/shared.js +1 -1
- package/dist-npm/components/relinka/logger.d.ts +12 -0
- package/dist-npm/components/relinka/logger.js +52 -0
- package/dist-npm/components/relinka/mod.d.ts +21 -0
- package/dist-npm/components/relinka/mod.js +34 -0
- package/dist-npm/components/relinka/relinka.d.ts +116 -21
- package/dist-npm/components/relinka/relinka.js +117 -34
- package/dist-npm/components/reporters/basic.d.ts +1 -1
- package/dist-npm/components/reporters/basic.js +5 -5
- package/dist-npm/components/reporters/browser.js +5 -5
- package/dist-npm/components/reporters/fancy.d.ts +1 -1
- package/dist-npm/components/reporters/fancy.js +9 -9
- package/dist-npm/main.d.ts +3 -8
- package/dist-npm/main.js +3 -34
- package/dist-npm/types/mod.d.ts +136 -29
- package/dist-npm/utils/box.d.ts +104 -14
- package/dist-npm/utils/box.js +1 -1
- package/dist-npm/utils/color.d.ts +20 -0
- package/dist-npm/utils/color.js +3 -3
- package/dist-npm/utils/error.d.ts +5 -0
- package/dist-npm/utils/format.d.ts +12 -0
- package/dist-npm/utils/log.d.ts +11 -0
- package/dist-npm/utils/stream.d.ts +13 -0
- package/dist-npm/utils/string.d.ts +45 -0
- package/dist-npm/utils/tree.d.ts +34 -5
- package/package.json +49 -39
- package/LICENSE.md +0 -21
package/dist-npm/utils/box.d.ts
CHANGED
|
@@ -1,24 +1,114 @@
|
|
|
1
1
|
export type BoxBorderStyle = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Top left corner
|
|
4
|
+
* @example `┌`
|
|
5
|
+
* @example `╔`
|
|
6
|
+
* @example `╓`
|
|
7
|
+
*/
|
|
8
|
+
tl: string;
|
|
9
|
+
/**
|
|
10
|
+
* Top right corner
|
|
11
|
+
* @example `┐`
|
|
12
|
+
* @example `╗`
|
|
13
|
+
* @example `╖`
|
|
14
|
+
*/
|
|
15
|
+
tr: string;
|
|
16
|
+
/**
|
|
17
|
+
* Bottom left corner
|
|
18
|
+
* @example `└`
|
|
19
|
+
* @example `╚`
|
|
20
|
+
* @example `╙`
|
|
21
|
+
*/
|
|
22
|
+
bl: string;
|
|
23
|
+
/**
|
|
24
|
+
* Bottom right corner
|
|
25
|
+
* @example `┘`
|
|
26
|
+
* @example `╝`
|
|
27
|
+
* @example `╜`
|
|
28
|
+
*/
|
|
29
|
+
br: string;
|
|
30
|
+
/**
|
|
31
|
+
* Horizontal line
|
|
32
|
+
* @example `─`
|
|
33
|
+
* @example `═`
|
|
34
|
+
* @example `─`
|
|
35
|
+
*/
|
|
36
|
+
h: string;
|
|
37
|
+
/**
|
|
38
|
+
* Vertical line
|
|
39
|
+
* @example `│`
|
|
40
|
+
* @example `║`
|
|
41
|
+
* @example `║`
|
|
42
|
+
*/
|
|
43
|
+
v: string;
|
|
8
44
|
};
|
|
9
45
|
declare const boxStylePresets: Record<string, BoxBorderStyle>;
|
|
10
46
|
export type BoxStyle = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
47
|
+
/**
|
|
48
|
+
* The border color
|
|
49
|
+
* @default 'white'
|
|
50
|
+
*/
|
|
51
|
+
borderColor: "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "blackBright" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright";
|
|
52
|
+
/**
|
|
53
|
+
* The border style
|
|
54
|
+
* @default 'solid'
|
|
55
|
+
* @example 'single-double-rounded'
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* {
|
|
59
|
+
* tl: '┌',
|
|
60
|
+
* tr: '┐',
|
|
61
|
+
* bl: '└',
|
|
62
|
+
* br: '┘',
|
|
63
|
+
* h: '─',
|
|
64
|
+
* v: '│',
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
borderStyle: BoxBorderStyle | keyof typeof boxStylePresets;
|
|
69
|
+
/**
|
|
70
|
+
* The vertical alignment of the text
|
|
71
|
+
* @default 'center'
|
|
72
|
+
*/
|
|
73
|
+
valign: "top" | "center" | "bottom";
|
|
74
|
+
/**
|
|
75
|
+
* The padding of the box
|
|
76
|
+
* @default 2
|
|
77
|
+
*/
|
|
78
|
+
padding: number;
|
|
79
|
+
/**
|
|
80
|
+
* The left margin of the box
|
|
81
|
+
* @default 1
|
|
82
|
+
*/
|
|
83
|
+
marginLeft: number;
|
|
84
|
+
/**
|
|
85
|
+
* The top margin of the box
|
|
86
|
+
* @default 1
|
|
87
|
+
*/
|
|
88
|
+
marginTop: number;
|
|
89
|
+
/**
|
|
90
|
+
* The top margin of the box
|
|
91
|
+
* @default 1
|
|
92
|
+
*/
|
|
93
|
+
marginBottom: number;
|
|
18
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* The border options of the box
|
|
97
|
+
*/
|
|
19
98
|
export type BoxOpts = {
|
|
20
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Title that will be displayed on top of the box
|
|
101
|
+
* @example 'Hello World'
|
|
102
|
+
* @example 'Hello {name}'
|
|
103
|
+
*/
|
|
104
|
+
title?: string;
|
|
21
105
|
style?: Partial<BoxStyle>;
|
|
22
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Creates a styled box with text content, customizable via options.
|
|
109
|
+
* @param {string} text - The text to display in the box.
|
|
110
|
+
* @param {BoxOpts} [_opts={}] - Optional settings for the appearance and behavior of the box. See {@link BoxOpts}.
|
|
111
|
+
* @returns {string} The formatted box as a string, ready for printing or logging.
|
|
112
|
+
*/
|
|
23
113
|
export declare function box(text: string, _opts?: BoxOpts): string;
|
|
24
114
|
export {};
|
package/dist-npm/utils/box.js
CHANGED
|
@@ -87,7 +87,7 @@ export function box(text, _opts = {}) {
|
|
|
87
87
|
const boxLines = [];
|
|
88
88
|
const _color = getColor(opts.style.borderColor);
|
|
89
89
|
const borderStyle = {
|
|
90
|
-
...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets
|
|
90
|
+
...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets["solid"] : opts.style.borderStyle
|
|
91
91
|
};
|
|
92
92
|
if (_color) {
|
|
93
93
|
for (const key in borderStyle) {
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Based on https://github.com/jorgebucaran/colorette
|
|
3
|
+
* Read LICENSE file for more information
|
|
4
|
+
* https://github.com/jorgebucaran/colorette/blob/20fc196d07d0f87c61e0256eadd7831c79b24108/index.js
|
|
5
|
+
*/
|
|
1
6
|
declare const colorDefs: {
|
|
2
7
|
reset: (string: string) => string;
|
|
3
8
|
bold: (string: string) => string;
|
|
@@ -43,7 +48,22 @@ declare const colorDefs: {
|
|
|
43
48
|
};
|
|
44
49
|
export type ColorName = keyof typeof colorDefs;
|
|
45
50
|
export type ColorFunction = (text: string | number) => string;
|
|
51
|
+
/**
|
|
52
|
+
* An object containing functions for coloring text. Each function corresponds to a terminal color. See {@link ColorName} for available colors.
|
|
53
|
+
*/
|
|
46
54
|
export declare const colors: Record<ColorName, ColorFunction>;
|
|
55
|
+
/**
|
|
56
|
+
* Gets a color function by name, with an option for a fallback color if the requested color is not found.
|
|
57
|
+
* @param {ColorName} color - The name of the color function to get. See {@link ColorName}.
|
|
58
|
+
* @param {ColorName} [fallback="reset"] - The name of the fallback color function if the requested color is not found. See {@link ColorName}.
|
|
59
|
+
* @returns {ColorFunction} The color function that corresponds to the requested color, or the fallback color function. See {@link ColorFunction}.
|
|
60
|
+
*/
|
|
47
61
|
export declare function getColor(color: ColorName, fallback?: ColorName): ColorFunction;
|
|
62
|
+
/**
|
|
63
|
+
* Applies a specified color to a given text string or number.
|
|
64
|
+
* @param {ColorName} color - The color to apply. See {@link ColorName}.
|
|
65
|
+
* @param {string | number} text - The text to color.
|
|
66
|
+
* @returns {string} The colored text.
|
|
67
|
+
*/
|
|
48
68
|
export declare function colorize(color: ColorName, text: string | number): string;
|
|
49
69
|
export {};
|
package/dist-npm/utils/color.js
CHANGED
|
@@ -7,10 +7,10 @@ const {
|
|
|
7
7
|
const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
|
|
8
8
|
const isForced = "FORCE_COLOR" in env || argv.includes("--color");
|
|
9
9
|
const isWindows = platform === "win32";
|
|
10
|
-
const isDumbTerminal = env
|
|
10
|
+
const isDumbTerminal = env["TERM"] === "dumb";
|
|
11
11
|
const isCompatibleTerminal = (
|
|
12
|
-
|
|
13
|
-
tty && tty.isatty && tty.isatty(1) && env
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
13
|
+
tty && tty.isatty && tty.isatty(1) && env["TERM"] && !isDumbTerminal
|
|
14
14
|
);
|
|
15
15
|
const isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
|
|
16
16
|
const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
|
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses a stack trace string and normalizes its paths by removing the current working directory and the "file://" protocol.
|
|
3
|
+
* @param {string} stack - The stack trace string.
|
|
4
|
+
* @returns {string[]} An array of stack trace lines with normalized paths.
|
|
5
|
+
*/
|
|
1
6
|
export declare function parseStack(stack: string): string[];
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compiles a format string by replacing placeholders with appropriate position indices.
|
|
3
|
+
* Caches compiled formats for efficiency.
|
|
4
|
+
* @param {string} format - The format string containing the placeholders to replace.
|
|
5
|
+
* @returns {string} The compiled format string with placeholders replaced by positional indices.
|
|
6
|
+
*/
|
|
1
7
|
export declare function compileFormat(format: string): any;
|
|
8
|
+
/**
|
|
9
|
+
* Formats a string according to a custom format, using vsprintf for string formatting.
|
|
10
|
+
* @param {string} format - The custom format string.
|
|
11
|
+
* @param {any[]} argv - The arguments to format into the string.
|
|
12
|
+
* @returns {string} The formatted string.
|
|
13
|
+
*/
|
|
2
14
|
export declare function formatString(format: string, argv: any): string;
|
package/dist-npm/utils/log.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the given argument is a simple JavaScript object.
|
|
3
|
+
* @param {any} obj - The object to test.
|
|
4
|
+
* @returns {boolean} `true` if the argument is a plain object, otherwise `false`.
|
|
5
|
+
*/
|
|
1
6
|
export declare function isPlainObject(obj: any): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Determines whether the given argument is a protocol object. A log object must be a simple object and
|
|
9
|
+
* must contain either a 'message' or 'args' field, but not a 'stack' field.
|
|
10
|
+
* @param {any} arg - The argument to check.
|
|
11
|
+
* @returns {boolean} `true` if the argument is a log object according to the specified criteria, otherwise `false`.
|
|
12
|
+
*/
|
|
2
13
|
export declare function isLogObj(arg: any): boolean;
|
|
@@ -1 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writes data to a specified NodeJS writable stream. This function supports streams that have a custom
|
|
3
|
+
* `__write' method, and will fall back to the default `write' method if `__write' is not present.
|
|
4
|
+
*
|
|
5
|
+
* @param {any} data - The data to write to the stream. This can be a string, a buffer, or any data type
|
|
6
|
+
* supported by the stream's `write' or `__write' method.
|
|
7
|
+
* @param {NodeJS.WriteStream} stream - The writable stream to write the data to. This stream
|
|
8
|
+
* must implement the `write' method, and can optionally implement a custom `__write' method.
|
|
9
|
+
* @returns {boolean} `true` if the data has been completely processed by the write operation,
|
|
10
|
+
* indicating that further writes can be performed immediately. Returns `false` if the data is
|
|
11
|
+
* buffered by the stream, indicating that the `drain` event should be waited for before writing
|
|
12
|
+
* more data.
|
|
13
|
+
*/
|
|
1
14
|
export declare function writeStream(data: any, stream: NodeJS.WriteStream): any;
|
|
@@ -1,5 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Removes ANSI escape codes from a given string. This is particularly useful for
|
|
3
|
+
* processing text that contains formatting codes, such as colors or styles, so that the
|
|
4
|
+
* the raw text without any visual formatting.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} text - The text string from which to strip the ANSI escape codes.
|
|
7
|
+
* @returns {string} The text without ANSI escape codes.
|
|
8
|
+
*/
|
|
1
9
|
export declare function stripAnsi(text: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Centers a string within a specified total width, padding it with spaces or another specified character.
|
|
12
|
+
* If the string is longer than the total width, it is returned as is.
|
|
13
|
+
*
|
|
14
|
+
* @param {string} str - The string to centre.
|
|
15
|
+
* @param {number} len - The total width in which to centre the string.
|
|
16
|
+
* @param {string} [space=" "] - The character to use for padding. Defaults to a space.
|
|
17
|
+
* @returns {string} The centred string.
|
|
18
|
+
*/
|
|
2
19
|
export declare function centerAlign(str: string, len: number, space?: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Right-justifies a string within a given total width, padding it with whitespace or another specified character.
|
|
22
|
+
* If the string is longer than the total width, it is returned as is.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} str - The string to right-justify.
|
|
25
|
+
* @param {number} len - The total width to align the string.
|
|
26
|
+
* @param {string} [space=" "] - The character to use for padding. Defaults to a space.
|
|
27
|
+
* @returns {string} The right-justified string.
|
|
28
|
+
*/
|
|
3
29
|
export declare function rightAlign(str: string, len: number, space?: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Left-aligns a string within a given total width, padding it with whitespace or another specified character on the right.
|
|
32
|
+
* If the string is longer than the total width, it is returned as is.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} str - The string to align left.
|
|
35
|
+
* @param {number} len - The total width to align the string.
|
|
36
|
+
* @param {string} [space=" "] - The character to use for padding. Defaults to a space.
|
|
37
|
+
* @returns {string} The left-justified string.
|
|
38
|
+
*/
|
|
4
39
|
export declare function leftAlign(str: string, len: number, space?: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* Aligns a string (left, right, or centre) within a given total width, padding it with spaces or another specified character.
|
|
42
|
+
* If the string is longer than the total width, it is returned as is. This function acts as a wrapper for individual alignment functions.
|
|
43
|
+
*
|
|
44
|
+
* @param {"left" | "right" | "centre"} alignment - The desired alignment of the string.
|
|
45
|
+
* @param {string} str - The string to align.
|
|
46
|
+
* @param {number} len - The total width in which to align the string.
|
|
47
|
+
* @param {string} [space=" "] - The character to use for padding. Defaults to a space.
|
|
48
|
+
* @returns {string} The aligned string, according to the given alignment.
|
|
49
|
+
*/
|
|
5
50
|
export declare function align(alignment: "left" | "right" | "center", str: string, len: number, space?: string): string;
|
package/dist-npm/utils/tree.d.ts
CHANGED
|
@@ -1,12 +1,41 @@
|
|
|
1
1
|
import { type ColorName } from "./color.js";
|
|
2
2
|
export type TreeItemObject = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Text of the item
|
|
5
|
+
*/
|
|
6
|
+
text: string;
|
|
7
|
+
/**
|
|
8
|
+
* Children of the item
|
|
9
|
+
*/
|
|
10
|
+
children?: TreeItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Color of the item
|
|
13
|
+
*/
|
|
14
|
+
color?: ColorName;
|
|
6
15
|
};
|
|
7
16
|
export type TreeItem = string | TreeItemObject;
|
|
8
17
|
export type TreeOptions = {
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Color of the tree
|
|
20
|
+
*/
|
|
21
|
+
color?: ColorName;
|
|
22
|
+
/**
|
|
23
|
+
* Prefix of the tree
|
|
24
|
+
*
|
|
25
|
+
* @default " "
|
|
26
|
+
*/
|
|
27
|
+
prefix?: string;
|
|
11
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Formats a hierarchical list of items into a string representing a tree structure.
|
|
31
|
+
* Each item in the tree can be a simple string or an object defining the text of the item,
|
|
32
|
+
* optional children, and color. The tree structure can be customized with options
|
|
33
|
+
* Specify the overall color and the prefix used for indentation and tree lines.
|
|
34
|
+
*
|
|
35
|
+
* @param {TreeItem[]} items - An array of items to include in the tree. Each item can be
|
|
36
|
+
* either a string or an object with `text', `children' and `color' properties.
|
|
37
|
+
* @param {TreeOptions} [options] - Optional settings to customize the appearance of the tree, including
|
|
38
|
+
* the color of the tree text and the prefix for branches. See {@link TreeOptions}.
|
|
39
|
+
* @returns {string} The formatted tree as a string, ready for printing to the console or elsewhere.
|
|
40
|
+
*/
|
|
12
41
|
export declare function formatTree(items: TreeItem[], options?: TreeOptions): string;
|
package/package.json
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reliverse/relinka",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"author": "blefnk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "@reliverse/relinka is a powerful logger for your terminal.",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"dev": "
|
|
9
|
-
"check": "
|
|
10
|
-
"
|
|
11
|
-
"build:jsr": "
|
|
12
|
-
"build
|
|
13
|
-
"
|
|
14
|
-
"pub:jsr": "
|
|
15
|
-
"pub:
|
|
16
|
-
"pub
|
|
17
|
-
"pub": "redrun pub:npm pub:jsr",
|
|
8
|
+
"dev": "bun examples/main.ts",
|
|
9
|
+
"check": "bun typecheck && bun lint && bun format",
|
|
10
|
+
"build:npm": "unbuild && bun build.optim.ts",
|
|
11
|
+
"build:jsr": "bun build.optim.ts --jsr",
|
|
12
|
+
"build": "bun build:npm && bun build:jsr",
|
|
13
|
+
"pub:npm": "bun build.publish.ts",
|
|
14
|
+
"pub:jsr": "bun build.publish.ts --jsr",
|
|
15
|
+
"pub:dry": "bun build.publish.ts --dry-run",
|
|
16
|
+
"pub": "bun publish.ts",
|
|
18
17
|
"typecheck": "tsc --noEmit",
|
|
19
18
|
"lint": "eslint --cache --fix .",
|
|
20
19
|
"lint:i": "eslint --inspect-config",
|
|
21
20
|
"format": "biome check --write .",
|
|
22
|
-
"optimize": "putout dist-npm --fix",
|
|
23
21
|
"attw": "bunx @arethetypeswrong/cli",
|
|
24
22
|
"unpub": "npm unpublish",
|
|
25
23
|
"test": "vitest",
|
|
26
|
-
"knip": "knip"
|
|
24
|
+
"knip": "knip",
|
|
25
|
+
"latest": "bun update --latest"
|
|
27
26
|
},
|
|
28
27
|
"publishConfig": {
|
|
29
28
|
"access": "public"
|
|
@@ -43,35 +42,44 @@
|
|
|
43
42
|
"url": "https://github.com/reliverse/relinka/issues",
|
|
44
43
|
"email": "blefnk@gmail.com"
|
|
45
44
|
},
|
|
46
|
-
"files": [
|
|
45
|
+
"files": [
|
|
46
|
+
"package.json",
|
|
47
|
+
"README.md",
|
|
48
|
+
"LICENSE.md",
|
|
49
|
+
"dist-npm"
|
|
50
|
+
],
|
|
47
51
|
"homepage": "https://github.com/reliverse/relinka",
|
|
48
|
-
"keywords": [
|
|
52
|
+
"keywords": [
|
|
53
|
+
"cli",
|
|
54
|
+
"reliverse"
|
|
55
|
+
],
|
|
49
56
|
"license": "MIT",
|
|
50
57
|
"dependencies": {
|
|
51
58
|
"@figliolia/chalk-animation": "^1.0.4",
|
|
52
|
-
"@sinclair/typebox": "^0.34.
|
|
59
|
+
"@sinclair/typebox": "^0.34.13",
|
|
53
60
|
"ansi-diff-stream": "^1.2.1",
|
|
54
61
|
"ansi-escapes": "^7.0.0",
|
|
55
|
-
"chalk": "^5.
|
|
62
|
+
"chalk": "^5.4.1",
|
|
56
63
|
"cli-spinners": "^3.2.0",
|
|
57
64
|
"cli-styles": "^1.0.0",
|
|
58
65
|
"cli-width": "^4.1.0",
|
|
59
66
|
"defu": "^6.1.4",
|
|
60
67
|
"detect-package-manager": "^3.0.2",
|
|
61
68
|
"external-editor": "^3.1.0",
|
|
62
|
-
"fast-glob": "^3.3.
|
|
69
|
+
"fast-glob": "^3.3.3",
|
|
63
70
|
"figlet": "^1.8.0",
|
|
64
71
|
"fs-extra": "^11.2.0",
|
|
65
72
|
"get-pixels": "^3.3.3",
|
|
73
|
+
"globby": "^14.0.2",
|
|
66
74
|
"gradient-string": "^3.0.0",
|
|
67
75
|
"is-unicode-supported": "^2.1.0",
|
|
68
76
|
"kleur": "^4.1.5",
|
|
69
77
|
"log-update": "^6.1.0",
|
|
70
78
|
"mute-stream": "^2.0.0",
|
|
71
|
-
"node-emoji": "^2.
|
|
72
|
-
"nypm": "^0.4.
|
|
79
|
+
"node-emoji": "^2.2.0",
|
|
80
|
+
"nypm": "^0.4.1",
|
|
73
81
|
"ora": "^8.1.1",
|
|
74
|
-
"pathe": "^
|
|
82
|
+
"pathe": "^2.0.1",
|
|
75
83
|
"picocolors": "^1.1.1",
|
|
76
84
|
"precision": "^1.0.1",
|
|
77
85
|
"seventh": "^0.9.2",
|
|
@@ -80,44 +88,46 @@
|
|
|
80
88
|
"std-env": "^3.8.0",
|
|
81
89
|
"string-width": "^7.2.0",
|
|
82
90
|
"strip-ansi": "^7.1.0",
|
|
91
|
+
"terminal-size": "^4.0.0",
|
|
83
92
|
"ts-regex-builder": "^1.8.2",
|
|
84
93
|
"window-size": "^1.1.1",
|
|
85
94
|
"wrap-ansi": "^9.0.0"
|
|
86
95
|
},
|
|
87
96
|
"devDependencies": {
|
|
88
|
-
"@arethetypeswrong/cli": "^0.17.
|
|
97
|
+
"@arethetypeswrong/cli": "^0.17.3",
|
|
89
98
|
"@biomejs/biome": "1.9.4",
|
|
90
|
-
"@cspell/dict-npm": "^5.1.
|
|
91
|
-
"@eslint/js": "^9.
|
|
99
|
+
"@cspell/dict-npm": "^5.1.22",
|
|
100
|
+
"@eslint/js": "^9.18.0",
|
|
101
|
+
"@eslint/json": "^0.9.0",
|
|
102
|
+
"@eslint/markdown": "^6.2.1",
|
|
103
|
+
"@stylistic/eslint-plugin": "^2.13.0",
|
|
92
104
|
"@types/ansi-diff-stream": "^1.2.3",
|
|
93
|
-
"@types/bun": "^1.1.
|
|
105
|
+
"@types/bun": "^1.1.16",
|
|
94
106
|
"@types/chalk-animation": "^1.6.3",
|
|
95
107
|
"@types/eslint__js": "^8.42.3",
|
|
96
108
|
"@types/figlet": "^1.7.0",
|
|
97
109
|
"@types/fs-extra": "^11.0.4",
|
|
98
110
|
"@types/mute-stream": "^0.0.4",
|
|
99
|
-
"@types/node": "^22.10.
|
|
111
|
+
"@types/node": "^22.10.6",
|
|
100
112
|
"@types/sentencer": "^0.2.3",
|
|
101
113
|
"@types/signal-exit": "^3.0.4",
|
|
102
114
|
"@types/strip-comments": "^2.0.4",
|
|
103
115
|
"@types/window-size": "^1.1.4",
|
|
104
|
-
"bumpp": "^9.8.1",
|
|
105
116
|
"c12": "^2.0.1",
|
|
106
|
-
"
|
|
107
|
-
"eslint
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
117
|
+
"citty": "^0.1.6",
|
|
118
|
+
"eslint": "^9.18.0",
|
|
119
|
+
"eslint-plugin-perfectionist": "^4.6.0",
|
|
120
|
+
"execa": "^9.5.2",
|
|
121
|
+
"jiti": "^2.4.2",
|
|
122
|
+
"knip": "^5.42.0",
|
|
111
123
|
"mock-stdin": "^1.0.0",
|
|
112
124
|
"printj": "^1.3.1",
|
|
113
|
-
"putout": "^36.14.0",
|
|
114
|
-
"redrun": "^11.0.5",
|
|
115
125
|
"sentencer": "^0.2.1",
|
|
116
126
|
"strip-comments": "^2.0.1",
|
|
117
127
|
"tsx": "^4.19.2",
|
|
118
|
-
"typescript": "^5.7.
|
|
119
|
-
"typescript-eslint": "^8.
|
|
120
|
-
"unbuild": "^
|
|
121
|
-
"vitest": "^2.1.
|
|
128
|
+
"typescript": "^5.7.3",
|
|
129
|
+
"typescript-eslint": "^8.20.0",
|
|
130
|
+
"unbuild": "^3.3.1",
|
|
131
|
+
"vitest": "^2.1.8"
|
|
122
132
|
}
|
|
123
|
-
}
|
|
133
|
+
}
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Nazarii Korniienko
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|