@rslib/core 0.0.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.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Denis Malinochkin
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.
@@ -0,0 +1 @@
1
+ {"name":"fast-glob","author":{"name":"Denis Malinochkin","url":"https://mrmlnc.com"},"version":"3.3.2","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1,34 @@
1
+ type Formatter = (input: string | number | null | undefined) => string
2
+
3
+ interface Colors {
4
+ isColorSupported: boolean
5
+ reset: Formatter
6
+ bold: Formatter
7
+ dim: Formatter
8
+ italic: Formatter
9
+ underline: Formatter
10
+ inverse: Formatter
11
+ hidden: Formatter
12
+ strikethrough: Formatter
13
+ black: Formatter
14
+ red: Formatter
15
+ green: Formatter
16
+ yellow: Formatter
17
+ blue: Formatter
18
+ magenta: Formatter
19
+ cyan: Formatter
20
+ white: Formatter
21
+ gray: Formatter
22
+ bgBlack: Formatter
23
+ bgRed: Formatter
24
+ bgGreen: Formatter
25
+ bgYellow: Formatter
26
+ bgBlue: Formatter
27
+ bgMagenta: Formatter
28
+ bgCyan: Formatter
29
+ bgWhite: Formatter
30
+ }
31
+
32
+ declare const picocolors: Colors & { createColors: (enabled?: boolean) => Colors }
33
+
34
+ export { picocolors as default };
@@ -0,0 +1,130 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ var __webpack_modules__ = ({
3
+
4
+ /***/ 701:
5
+ /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
6
+
7
+ let argv = process.argv || [],
8
+ env = process.env
9
+ let isColorSupported =
10
+ !("NO_COLOR" in env || argv.includes("--no-color")) &&
11
+ ("FORCE_COLOR" in env ||
12
+ argv.includes("--color") ||
13
+ process.platform === "win32" ||
14
+ (require != null && (__nccwpck_require__(224).isatty)(1) && env.TERM !== "dumb") ||
15
+ "CI" in env)
16
+
17
+ let formatter =
18
+ (open, close, replace = open) =>
19
+ input => {
20
+ let string = "" + input
21
+ let index = string.indexOf(close, open.length)
22
+ return ~index
23
+ ? open + replaceClose(string, close, replace, index) + close
24
+ : open + string + close
25
+ }
26
+
27
+ let replaceClose = (string, close, replace, index) => {
28
+ let result = ""
29
+ let cursor = 0
30
+ do {
31
+ result += string.substring(cursor, index) + replace
32
+ cursor = index + close.length
33
+ index = string.indexOf(close, cursor)
34
+ } while (~index)
35
+ return result + string.substring(cursor)
36
+ }
37
+
38
+ let createColors = (enabled = isColorSupported) => {
39
+ let init = enabled ? formatter : () => String
40
+ return {
41
+ isColorSupported: enabled,
42
+ reset: init("\x1b[0m", "\x1b[0m"),
43
+ bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
44
+ dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
45
+ italic: init("\x1b[3m", "\x1b[23m"),
46
+ underline: init("\x1b[4m", "\x1b[24m"),
47
+ inverse: init("\x1b[7m", "\x1b[27m"),
48
+ hidden: init("\x1b[8m", "\x1b[28m"),
49
+ strikethrough: init("\x1b[9m", "\x1b[29m"),
50
+ black: init("\x1b[30m", "\x1b[39m"),
51
+ red: init("\x1b[31m", "\x1b[39m"),
52
+ green: init("\x1b[32m", "\x1b[39m"),
53
+ yellow: init("\x1b[33m", "\x1b[39m"),
54
+ blue: init("\x1b[34m", "\x1b[39m"),
55
+ magenta: init("\x1b[35m", "\x1b[39m"),
56
+ cyan: init("\x1b[36m", "\x1b[39m"),
57
+ white: init("\x1b[37m", "\x1b[39m"),
58
+ gray: init("\x1b[90m", "\x1b[39m"),
59
+ bgBlack: init("\x1b[40m", "\x1b[49m"),
60
+ bgRed: init("\x1b[41m", "\x1b[49m"),
61
+ bgGreen: init("\x1b[42m", "\x1b[49m"),
62
+ bgYellow: init("\x1b[43m", "\x1b[49m"),
63
+ bgBlue: init("\x1b[44m", "\x1b[49m"),
64
+ bgMagenta: init("\x1b[45m", "\x1b[49m"),
65
+ bgCyan: init("\x1b[46m", "\x1b[49m"),
66
+ bgWhite: init("\x1b[47m", "\x1b[49m"),
67
+ }
68
+ }
69
+
70
+ module.exports = createColors()
71
+ module.exports.createColors = createColors
72
+
73
+
74
+ /***/ }),
75
+
76
+ /***/ 224:
77
+ /***/ ((module) => {
78
+
79
+ "use strict";
80
+ module.exports = require("tty");
81
+
82
+ /***/ })
83
+
84
+ /******/ });
85
+ /************************************************************************/
86
+ /******/ // The module cache
87
+ /******/ var __webpack_module_cache__ = {};
88
+ /******/
89
+ /******/ // The require function
90
+ /******/ function __nccwpck_require__(moduleId) {
91
+ /******/ // Check if module is in cache
92
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
93
+ /******/ if (cachedModule !== undefined) {
94
+ /******/ return cachedModule.exports;
95
+ /******/ }
96
+ /******/ // Create a new module (and put it into the cache)
97
+ /******/ var module = __webpack_module_cache__[moduleId] = {
98
+ /******/ // no module.id needed
99
+ /******/ // no module.loaded needed
100
+ /******/ exports: {}
101
+ /******/ };
102
+ /******/
103
+ /******/ // Execute the module function
104
+ /******/ var threw = true;
105
+ /******/ try {
106
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
107
+ /******/ threw = false;
108
+ /******/ } finally {
109
+ /******/ if(threw) delete __webpack_module_cache__[moduleId];
110
+ /******/ }
111
+ /******/
112
+ /******/ // Return the exports of the module
113
+ /******/ return module.exports;
114
+ /******/ }
115
+ /******/
116
+ /************************************************************************/
117
+ /******/ /* webpack/runtime/compat */
118
+ /******/
119
+ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
120
+ /******/
121
+ /************************************************************************/
122
+ /******/
123
+ /******/ // startup
124
+ /******/ // Load entry module and return exports
125
+ /******/ // This entry module is referenced by other modules so it can't be inlined
126
+ /******/ var __webpack_exports__ = __nccwpck_require__(701);
127
+ /******/ module.exports = __webpack_exports__;
128
+ /******/
129
+ /******/ })()
130
+ ;
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"picocolors","author":"Alexey Raspopov","version":"1.0.1","license":"ISC","types":"index.d.ts","type":"commonjs"}