@rslib/core 0.0.3 → 0.0.5
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/compiled/picocolors/index.d.ts +22 -0
- package/compiled/picocolors/index.js +22 -2
- package/compiled/picocolors/license +1 -1
- package/compiled/picocolors/package.json +1 -1
- package/dist/index.js +582 -523
- package/dist-types/config.d.ts +5 -2
- package/dist-types/constant.d.ts +1 -0
- package/dist-types/types/config/index.d.ts +10 -4
- package/dist-types/utils/helper.d.ts +3 -0
- package/package.json +7 -7
|
@@ -2,6 +2,7 @@ type Formatter = (input: string | number | null | undefined) => string
|
|
|
2
2
|
|
|
3
3
|
interface Colors {
|
|
4
4
|
isColorSupported: boolean
|
|
5
|
+
|
|
5
6
|
reset: Formatter
|
|
6
7
|
bold: Formatter
|
|
7
8
|
dim: Formatter
|
|
@@ -10,6 +11,7 @@ interface Colors {
|
|
|
10
11
|
inverse: Formatter
|
|
11
12
|
hidden: Formatter
|
|
12
13
|
strikethrough: Formatter
|
|
14
|
+
|
|
13
15
|
black: Formatter
|
|
14
16
|
red: Formatter
|
|
15
17
|
green: Formatter
|
|
@@ -19,6 +21,7 @@ interface Colors {
|
|
|
19
21
|
cyan: Formatter
|
|
20
22
|
white: Formatter
|
|
21
23
|
gray: Formatter
|
|
24
|
+
|
|
22
25
|
bgBlack: Formatter
|
|
23
26
|
bgRed: Formatter
|
|
24
27
|
bgGreen: Formatter
|
|
@@ -27,6 +30,25 @@ interface Colors {
|
|
|
27
30
|
bgMagenta: Formatter
|
|
28
31
|
bgCyan: Formatter
|
|
29
32
|
bgWhite: Formatter
|
|
33
|
+
|
|
34
|
+
blackBright: Formatter
|
|
35
|
+
redBright: Formatter
|
|
36
|
+
greenBright: Formatter
|
|
37
|
+
yellowBright: Formatter
|
|
38
|
+
blueBright: Formatter
|
|
39
|
+
magentaBright: Formatter
|
|
40
|
+
cyanBright: Formatter
|
|
41
|
+
whiteBright: Formatter
|
|
42
|
+
|
|
43
|
+
bgBlackBright: Formatter
|
|
44
|
+
bgRedBright: Formatter
|
|
45
|
+
bgGreenBright: Formatter
|
|
46
|
+
bgYellowBright: Formatter
|
|
47
|
+
bgBlueBright: Formatter
|
|
48
|
+
bgMagentaBright: Formatter
|
|
49
|
+
bgCyanBright: Formatter
|
|
50
|
+
bgWhiteBright: Formatter
|
|
51
|
+
|
|
30
52
|
}
|
|
31
53
|
|
|
32
54
|
declare const picocolors: Colors & { createColors: (enabled?: boolean) => Colors }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 78:
|
|
5
5
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
6
6
|
|
|
7
7
|
let argv = process.argv || [],
|
|
@@ -47,6 +47,7 @@ let createColors = (enabled = isColorSupported) => {
|
|
|
47
47
|
inverse: init("\x1b[7m", "\x1b[27m"),
|
|
48
48
|
hidden: init("\x1b[8m", "\x1b[28m"),
|
|
49
49
|
strikethrough: init("\x1b[9m", "\x1b[29m"),
|
|
50
|
+
|
|
50
51
|
black: init("\x1b[30m", "\x1b[39m"),
|
|
51
52
|
red: init("\x1b[31m", "\x1b[39m"),
|
|
52
53
|
green: init("\x1b[32m", "\x1b[39m"),
|
|
@@ -56,6 +57,7 @@ let createColors = (enabled = isColorSupported) => {
|
|
|
56
57
|
cyan: init("\x1b[36m", "\x1b[39m"),
|
|
57
58
|
white: init("\x1b[37m", "\x1b[39m"),
|
|
58
59
|
gray: init("\x1b[90m", "\x1b[39m"),
|
|
60
|
+
|
|
59
61
|
bgBlack: init("\x1b[40m", "\x1b[49m"),
|
|
60
62
|
bgRed: init("\x1b[41m", "\x1b[49m"),
|
|
61
63
|
bgGreen: init("\x1b[42m", "\x1b[49m"),
|
|
@@ -64,6 +66,24 @@ let createColors = (enabled = isColorSupported) => {
|
|
|
64
66
|
bgMagenta: init("\x1b[45m", "\x1b[49m"),
|
|
65
67
|
bgCyan: init("\x1b[46m", "\x1b[49m"),
|
|
66
68
|
bgWhite: init("\x1b[47m", "\x1b[49m"),
|
|
69
|
+
|
|
70
|
+
blackBright: init("\x1b[90m", "\x1b[39m"),
|
|
71
|
+
redBright: init("\x1b[91m", "\x1b[39m"),
|
|
72
|
+
greenBright: init("\x1b[92m", "\x1b[39m"),
|
|
73
|
+
yellowBright: init("\x1b[93m", "\x1b[39m"),
|
|
74
|
+
blueBright: init("\x1b[94m", "\x1b[39m"),
|
|
75
|
+
magentaBright: init("\x1b[95m", "\x1b[39m"),
|
|
76
|
+
cyanBright: init("\x1b[96m", "\x1b[39m"),
|
|
77
|
+
whiteBright: init("\x1b[97m", "\x1b[39m"),
|
|
78
|
+
|
|
79
|
+
bgBlackBright: init("\x1b[100m","\x1b[49m"),
|
|
80
|
+
bgRedBright: init("\x1b[101m","\x1b[49m"),
|
|
81
|
+
bgGreenBright: init("\x1b[102m","\x1b[49m"),
|
|
82
|
+
bgYellowBright: init("\x1b[103m","\x1b[49m"),
|
|
83
|
+
bgBlueBright: init("\x1b[104m","\x1b[49m"),
|
|
84
|
+
bgMagentaBright: init("\x1b[105m","\x1b[49m"),
|
|
85
|
+
bgCyanBright: init("\x1b[106m","\x1b[49m"),
|
|
86
|
+
bgWhiteBright: init("\x1b[107m","\x1b[49m"),
|
|
67
87
|
}
|
|
68
88
|
}
|
|
69
89
|
|
|
@@ -123,7 +143,7 @@ module.exports = require("tty");
|
|
|
123
143
|
/******/ // startup
|
|
124
144
|
/******/ // Load entry module and return exports
|
|
125
145
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
126
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
146
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(78);
|
|
127
147
|
/******/ module.exports = __webpack_exports__;
|
|
128
148
|
/******/
|
|
129
149
|
/******/ })()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
ISC License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021
|
|
3
|
+
Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
|
|
4
4
|
|
|
5
5
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
6
|
purpose with or without fee is hereby granted, provided that the above
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"picocolors","author":"Alexey Raspopov","version":"1.0
|
|
1
|
+
{"name":"picocolors","author":"Alexey Raspopov","version":"1.1.0","license":"ISC","types":"index.d.ts","type":"commonjs"}
|