@gesslar/toolkit 3.14.0 → 3.14.2
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/package.json +10 -9
- package/src/node/lib/DirectoryObject.js +3 -1
- package/types/browser/index.d.ts +13 -0
- package/types/browser/index.d.ts.map +1 -0
- package/types/browser/lib/Collection.d.ts +248 -0
- package/types/browser/lib/Collection.d.ts.map +1 -0
- package/types/browser/lib/Data.d.ts +250 -0
- package/types/browser/lib/Data.d.ts.map +1 -0
- package/types/browser/lib/Disposer.d.ts +33 -0
- package/types/browser/lib/Disposer.d.ts.map +1 -0
- package/types/browser/lib/HTML.d.ts +40 -0
- package/types/browser/lib/HTML.d.ts.map +1 -0
- package/types/browser/lib/Notify.d.ts +60 -0
- package/types/browser/lib/Notify.d.ts.map +1 -0
- package/types/browser/lib/Promised.d.ts +119 -0
- package/types/browser/lib/Promised.d.ts.map +1 -0
- package/types/browser/lib/Sass.d.ts +63 -0
- package/types/browser/lib/Sass.d.ts.map +1 -0
- package/types/browser/lib/Tantrum.d.ts +52 -0
- package/types/browser/lib/Tantrum.d.ts.map +1 -0
- package/types/browser/lib/Time.d.ts +42 -0
- package/types/browser/lib/Time.d.ts.map +1 -0
- package/types/browser/lib/TypeSpec.d.ts +90 -0
- package/types/browser/lib/TypeSpec.d.ts.map +1 -0
- package/types/browser/lib/Util.d.ts +62 -0
- package/types/browser/lib/Util.d.ts.map +1 -0
- package/types/browser/lib/Valid.d.ts +33 -0
- package/types/browser/lib/Valid.d.ts.map +1 -0
- package/types/browser/lib/vendor/dompurify.esm.d.ts +29 -0
- package/types/browser/lib/vendor/dompurify.esm.d.ts.map +1 -0
- package/types/node/index.d.ts +21 -0
- package/types/node/index.d.ts.map +1 -0
- package/types/node/lib/Cache.d.ts +27 -0
- package/types/node/lib/Cache.d.ts.map +1 -0
- package/types/node/lib/DirectoryObject.d.ts +277 -0
- package/types/node/lib/DirectoryObject.d.ts.map +1 -0
- package/types/node/lib/FileObject.d.ts +209 -0
- package/types/node/lib/FileObject.d.ts.map +1 -0
- package/types/node/lib/FileSystem.d.ts +188 -0
- package/types/node/lib/FileSystem.d.ts.map +1 -0
- package/types/node/lib/Glog.d.ts +228 -0
- package/types/node/lib/Glog.d.ts.map +1 -0
- package/types/node/lib/Logger.d.ts +46 -0
- package/types/node/lib/Logger.d.ts.map +1 -0
- package/types/node/lib/Notify.d.ts +54 -0
- package/types/node/lib/Notify.d.ts.map +1 -0
- package/types/node/lib/Sass.d.ts +9 -0
- package/types/node/lib/Sass.d.ts.map +1 -0
- package/types/node/lib/Tantrum.d.ts +9 -0
- package/types/node/lib/Tantrum.d.ts.map +1 -0
- package/types/node/lib/TempDirectoryObject.d.ts +42 -0
- package/types/node/lib/TempDirectoryObject.d.ts.map +1 -0
- package/types/node/lib/Term.d.ts +127 -0
- package/types/node/lib/Term.d.ts.map +1 -0
- package/types/node/lib/Util.d.ts +100 -0
- package/types/node/lib/Util.d.ts.map +1 -0
- package/types/node/lib/VDirectoryObject.d.ts +132 -0
- package/types/node/lib/VDirectoryObject.d.ts.map +1 -0
- package/types/node/lib/VFileObject.d.ts +33 -0
- package/types/node/lib/VFileObject.d.ts.map +1 -0
- package/types/node/lib/Valid.d.ts +35 -0
- package/types/node/lib/Valid.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileSystem.d.ts","sourceRoot":"","sources":["../../../src/node/lib/FileSystem.js"],"names":[],"mappings":"AA0BA;;GAEG;AACH;IACE,kCAAwB;IACxB,uCAAkC;IAClC,mBAAsB;IAsBtB;;;;;;OAMG;IACH,4BAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;;OAMG;IACH,2BAHW,MAAM,GACJ,MAAM,CAQlB;IAED;;;;;;OAMG;IACH,2BAHW,MAAM,GACJ,MAAM,CAQlB;IAED;;;;;;;;;;OAUG;IACH,oCAJW,UAAU,GAAC,eAAe,MAC1B,UAAU,GAAC,eAAe,GACxB,MAAM,CAYlB;IAED;;;;;;;;;OASG;IACH,oCALW,MAAM,SACN,MAAM,QACN,MAAM,GACJ,MAAM,CA0BlB;IAED;;;;;;;;OAQG;IACH,6BAJW,MAAM,UACN,MAAM,GACJ,MAAM,CAmClB;IAED;;;;;;;;;;;;OAYG;IACH,+BATW,MAAM,aACN,MAAM,GACJ,OAAO,CAcnB;IAED;;;;;;;;;;;;;;OAcG;IACH,4BATW,MAAM,MACN,MAAM,QACN,MAAM,GACJ,MAAM,GAAC,IAAI,CAwBvB;IAED;;;;;;;;;;;;;;;OAeG;IACH,+BAXW,MAAM,MACN,MAAM,QACN,MAAM,GACJ,MAAM,GAAC,IAAI,CA+BvB;IAED;;;;;OAKG;IAEH;;;;;;;OAOG;IACH,2BAJW,MAAM;;;;cATH,MAAM;;;;aACN,MAAM;;;;aACN,MAAM;MAenB;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,gDAZW,UAAU,GAAC,eAAe,GACxB,MAAM,CAiClB;IAED;;;;;;;;;;;;;OAaG;IACH,uCARW,MAAM,0BACN,OAAO,GACL,MAAM,CAkBlB;IA/VD;;;;;;;;;OASG;IACH,kCAJW,UAAU,GAAC,eAAe,GACxB,MAAM,CAWlB;CA8UF;yBAjXa,OAAO,iBAAiB,EAAE,OAAO;8BACjC,OAAO,sBAAsB,EAAE,OAAO"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
export namespace loggerColours {
|
|
2
|
+
let debug: string[];
|
|
3
|
+
let info: string;
|
|
4
|
+
let warn: string;
|
|
5
|
+
let error: string;
|
|
6
|
+
let reset: string;
|
|
7
|
+
}
|
|
8
|
+
export namespace logSymbols {
|
|
9
|
+
let debug_1: string;
|
|
10
|
+
export { debug_1 as debug };
|
|
11
|
+
let info_1: string;
|
|
12
|
+
export { info_1 as info };
|
|
13
|
+
let warn_1: string;
|
|
14
|
+
export { warn_1 as warn };
|
|
15
|
+
let error_1: string;
|
|
16
|
+
export { error_1 as error };
|
|
17
|
+
export let success: string;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: typeof Glog;
|
|
20
|
+
export default _default;
|
|
21
|
+
declare class Glog {
|
|
22
|
+
static logLevel: number;
|
|
23
|
+
static logPrefix: string;
|
|
24
|
+
static colors: any;
|
|
25
|
+
static stackTrace: boolean;
|
|
26
|
+
static name: string;
|
|
27
|
+
static tagsAsStrings: boolean;
|
|
28
|
+
static setLogPrefix(prefix: any): typeof Glog;
|
|
29
|
+
static setLogLevel(level: any): typeof Glog;
|
|
30
|
+
static withName(name: any): typeof Glog;
|
|
31
|
+
static withColors(colors?: {
|
|
32
|
+
debug: string[];
|
|
33
|
+
info: string;
|
|
34
|
+
warn: string;
|
|
35
|
+
error: string;
|
|
36
|
+
reset: string;
|
|
37
|
+
}): typeof Glog;
|
|
38
|
+
static withStackTrace(enabled?: boolean): typeof Glog;
|
|
39
|
+
static withTagsAsStrings(enabled?: boolean): typeof Glog;
|
|
40
|
+
static create(options?: {}): Glog;
|
|
41
|
+
static execute(...args: any[]): void;
|
|
42
|
+
/**
|
|
43
|
+
* Static version of colorize for global usage
|
|
44
|
+
*
|
|
45
|
+
* @param {Array<string>} strings - Template strings
|
|
46
|
+
* @param {...unknown} values - Template values
|
|
47
|
+
*/
|
|
48
|
+
static colorize(strings: Array<string>, ...values: unknown[]): void;
|
|
49
|
+
/**
|
|
50
|
+
* Static success method
|
|
51
|
+
*
|
|
52
|
+
* @param {string} message - Success message to log
|
|
53
|
+
* @param {...unknown} args - Additional arguments to log
|
|
54
|
+
*/
|
|
55
|
+
static success(message: string, ...args: unknown[]): void;
|
|
56
|
+
/**
|
|
57
|
+
* Static group method - start a console group for indented output
|
|
58
|
+
*
|
|
59
|
+
* @param {...unknown} args - Optional group label
|
|
60
|
+
*/
|
|
61
|
+
static group(...args: unknown[]): void;
|
|
62
|
+
/**
|
|
63
|
+
* Static groupEnd method - end the current console group
|
|
64
|
+
*/
|
|
65
|
+
static groupEnd(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Static groupDebug - start a debug-tagged group
|
|
68
|
+
*
|
|
69
|
+
* @param {string} message - Group label
|
|
70
|
+
* @param {number} [level=1] - Debug level
|
|
71
|
+
*/
|
|
72
|
+
static groupDebug(message: string, level?: number): void;
|
|
73
|
+
/**
|
|
74
|
+
* Static groupInfo - start an info-tagged group
|
|
75
|
+
*
|
|
76
|
+
* @param {string} message - Group label
|
|
77
|
+
*/
|
|
78
|
+
static groupInfo(message: string): void;
|
|
79
|
+
/**
|
|
80
|
+
* Static groupSuccess - start a success-tagged group
|
|
81
|
+
*
|
|
82
|
+
* @param {string} message - Group label
|
|
83
|
+
*/
|
|
84
|
+
static groupSuccess(message: string): void;
|
|
85
|
+
/**
|
|
86
|
+
* Static table method
|
|
87
|
+
*
|
|
88
|
+
* @param {object | Array} data - Object or array to display
|
|
89
|
+
* @param {string | object} [labelOrOptions] - Optional label (string) or options (object)
|
|
90
|
+
* @param {object} [options] - Optional options when label is provided
|
|
91
|
+
* @param {Array<string>} [options.properties] - Column properties to display
|
|
92
|
+
* @param {boolean} [options.showHeader=false] - Whether to show the header row
|
|
93
|
+
* @param {boolean} [options.quotedStrings=false] - Whether to show quotes around strings
|
|
94
|
+
*/
|
|
95
|
+
static table(data: object | any[], labelOrOptions?: string | object, options?: {
|
|
96
|
+
properties?: Array<string>;
|
|
97
|
+
showHeader?: boolean;
|
|
98
|
+
quotedStrings?: boolean;
|
|
99
|
+
}): void;
|
|
100
|
+
/**
|
|
101
|
+
* Set a color alias for convenient usage
|
|
102
|
+
*
|
|
103
|
+
* @param {string} alias - Alias name
|
|
104
|
+
* @param {string} colorCode - Color code (e.g., "{F196}" or "{<B}")
|
|
105
|
+
* @returns {Glog} The Glog class for chaining.
|
|
106
|
+
*/
|
|
107
|
+
static setAlias(alias: string, colorCode: string): Glog;
|
|
108
|
+
/**
|
|
109
|
+
* Static raw logger that outputs without name/tag formatting
|
|
110
|
+
*
|
|
111
|
+
* @returns {object} Raw logger interface
|
|
112
|
+
*/
|
|
113
|
+
static get raw(): object;
|
|
114
|
+
constructor(options?: {});
|
|
115
|
+
setOptions(options: any): this;
|
|
116
|
+
withName(name: any): this;
|
|
117
|
+
withLogLevel(level: any): this;
|
|
118
|
+
withPrefix(prefix: any): this;
|
|
119
|
+
withColors(colors?: {
|
|
120
|
+
debug: string[];
|
|
121
|
+
info: string;
|
|
122
|
+
warn: string;
|
|
123
|
+
error: string;
|
|
124
|
+
reset: string;
|
|
125
|
+
}): this;
|
|
126
|
+
withStackTrace(enabled?: boolean): this;
|
|
127
|
+
withTagsAsStrings(enabled?: boolean): this;
|
|
128
|
+
noDisplayName(): this;
|
|
129
|
+
get name(): string;
|
|
130
|
+
get debugLevel(): number;
|
|
131
|
+
get options(): {
|
|
132
|
+
name: string;
|
|
133
|
+
debugLevel: number;
|
|
134
|
+
prefix: string;
|
|
135
|
+
colors: any;
|
|
136
|
+
stackTrace: boolean;
|
|
137
|
+
};
|
|
138
|
+
extractFileFunction(): string;
|
|
139
|
+
newDebug(tag: any): any;
|
|
140
|
+
/**
|
|
141
|
+
* Log a debug message with specified verbosity level.
|
|
142
|
+
* Level 0 means debug OFF - use levels 1-4 for actual debug output.
|
|
143
|
+
* Debug messages only show when logLevel > 0.
|
|
144
|
+
*
|
|
145
|
+
* @param {string} message - Debug message to log
|
|
146
|
+
* @param {number} level - Debug verbosity level (1-4, default: 1)
|
|
147
|
+
* @param {...unknown} arg - Additional arguments to log
|
|
148
|
+
* @throws {Error} If level < 1 (level 0 = debug OFF)
|
|
149
|
+
*/
|
|
150
|
+
debug(message: string, level?: number, ...arg: unknown[]): void;
|
|
151
|
+
info(message: any, ...arg: any[]): void;
|
|
152
|
+
warn(message: any, ...arg: any[]): void;
|
|
153
|
+
error(message: any, ...arg: any[]): void;
|
|
154
|
+
execute(...args: any[]): void;
|
|
155
|
+
/**
|
|
156
|
+
* Log a colorized message using template literals
|
|
157
|
+
*
|
|
158
|
+
* @param {Array<string>} strings - Template strings
|
|
159
|
+
* @param {...unknown} values - Template values
|
|
160
|
+
* @example logger.colorize`{success}Operation completed{/} in {bold}${time}ms{/}`
|
|
161
|
+
*/
|
|
162
|
+
colorize(strings: Array<string>, ...values: unknown[]): void;
|
|
163
|
+
/**
|
|
164
|
+
* Log a success message with green color
|
|
165
|
+
*
|
|
166
|
+
* @param {string} message - Success message
|
|
167
|
+
* @param {...unknown} args - Additional arguments
|
|
168
|
+
*/
|
|
169
|
+
success(message: string, ...args: unknown[]): void;
|
|
170
|
+
/**
|
|
171
|
+
* Start a console group for indented output
|
|
172
|
+
*
|
|
173
|
+
* @param {...unknown} args - Optional group label
|
|
174
|
+
*/
|
|
175
|
+
group(...args: unknown[]): void;
|
|
176
|
+
/**
|
|
177
|
+
* End the current console group
|
|
178
|
+
*/
|
|
179
|
+
groupEnd(): void;
|
|
180
|
+
/**
|
|
181
|
+
* Start a debug-tagged group
|
|
182
|
+
*
|
|
183
|
+
* @param {string} message - Group label
|
|
184
|
+
* @param {number} [level=1] - Debug level
|
|
185
|
+
*/
|
|
186
|
+
groupDebug(message: string, level?: number): void;
|
|
187
|
+
/**
|
|
188
|
+
* Start an info-tagged group
|
|
189
|
+
*
|
|
190
|
+
* @param {string} message - Group label
|
|
191
|
+
*/
|
|
192
|
+
groupInfo(message: string): void;
|
|
193
|
+
/**
|
|
194
|
+
* Start a success-tagged group
|
|
195
|
+
*
|
|
196
|
+
* @param {string} message - Group label
|
|
197
|
+
*/
|
|
198
|
+
groupSuccess(message: string): void;
|
|
199
|
+
/**
|
|
200
|
+
* Display tabular data as a table
|
|
201
|
+
*
|
|
202
|
+
* @param {object | Array} data - Object or array to display
|
|
203
|
+
* @param {string | object} [labelOrOptions] - Optional label (string) or options (object)
|
|
204
|
+
* @param {object} [options] - Optional options when label is provided
|
|
205
|
+
* @param {Array<string>} [options.properties] - Column properties to display
|
|
206
|
+
* @param {boolean} [options.showHeader=false] - Whether to show the header row
|
|
207
|
+
* @param {boolean} [options.quotedStrings=false] - Whether to show quotes around strings
|
|
208
|
+
*/
|
|
209
|
+
table(data: object | any[], labelOrOptions?: string | object, options?: {
|
|
210
|
+
properties?: Array<string>;
|
|
211
|
+
showHeader?: boolean;
|
|
212
|
+
quotedStrings?: boolean;
|
|
213
|
+
}): void;
|
|
214
|
+
/**
|
|
215
|
+
* Get access to the colours template function for instance usage
|
|
216
|
+
*
|
|
217
|
+
* @returns {import('@gesslar/colours')} The colours template function from \@gesslar/colours
|
|
218
|
+
*/
|
|
219
|
+
get colours(): any;
|
|
220
|
+
/**
|
|
221
|
+
* Get a raw logger that outputs without name/tag formatting
|
|
222
|
+
*
|
|
223
|
+
* @returns {object} Raw logger interface
|
|
224
|
+
*/
|
|
225
|
+
get raw(): object;
|
|
226
|
+
#private;
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL=Glog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Glog.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Glog.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAsDA;IAEE,wBAAmB;IACnB,yBAAqB;IACrB,mBAAoB;IACpB,2BAAyB;IACzB,oBAAgB;IAChB,8BAA4B;IAgD5B,8CAIC;IAED,4CAIC;IAED,wCAIC;IAED;;;;;;oBAIC;IAED,sDAIC;IAED,yDAIC;IAID,kCAEC;IA6KD,qCAoBC;IAuBD;;;;;OAKG;IACH,yBAHW,KAAK,CAAC,MAAM,CAAC,aACV,OAAO,EAAA,QAOpB;IAqBD;;;;;OAKG;IACH,wBAHW,MAAM,WACH,OAAO,EAAA,QAWpB;IAED;;;;OAIG;IACH,sBAFc,OAAO,EAAA,QAOpB;IAED;;OAEG;IACH,wBAEC;IAED;;;;;OAKG;IACH,2BAHW,MAAM,UACN,MAAM,QAahB;IAED;;;;OAIG;IACH,0BAFW,MAAM,QAYhB;IAED;;;;OAIG;IACH,6BAFW,MAAM,QAWhB;IAyFD;;;;;;;;;OASG;IACH,mBAPW,MAAM,QAAQ,mBACd,MAAM,GAAG,MAAM,YAEvB;QAAgC,UAAU,GAAlC,KAAK,CAAC,MAAM,CAAC;QACK,UAAU,GAA5B,OAAO;QACW,aAAa,GAA/B,OAAO;KACjB,QAkBA;IAED;;;;;;OAMG;IACH,uBAJW,MAAM,aACN,MAAM,GACJ,IAAI,CAMhB;IA8BD;;;;OAIG;IACH,kBAFa,MAAM,CAclB;IAxkBD,0BAgBC;IAID,+BAUC;IA8CD,0BAIC;IAED,+BAIC;IAED,8BAIC;IAED;;;;;;aAIC;IAED,wCAIC;IAED,2CAIC;IAED,sBAIC;IAID,mBAEC;IAED,yBAEC;IAED;;;;;;MAQC;IA8BD,8BAGC;IAED,wBAQC;IA8BD;;;;;;;;;OASG;IACH,eALW,MAAM,UACN,MAAM,UACH,OAAO,EAAA,QAapB;IAED,wCAGC;IAED,wCAGC;IAED,yCAGC;IA0BD,8BAEC;IAID;;;;;;OAMG;IACH,kBAJW,KAAK,CAAC,MAAM,CAAC,aACV,OAAO,EAAA,QAQpB;IAeD;;;;;OAKG;IACH,iBAHW,MAAM,WACH,OAAO,EAAA,QAapB;IA0FD;;;;OAIG;IACH,eAFc,OAAO,EAAA,QASpB;IAED;;OAEG;IACH,iBAEC;IAED;;;;;OAKG;IACH,oBAHW,MAAM,UACN,MAAM,QAIhB;IAED;;;;OAIG;IACH,mBAFW,MAAM,QAIhB;IAED;;;;OAIG;IACH,sBAFW,MAAM,QAahB;IAED;;;;;;;;;OASG;IACH,YAPW,MAAM,QAAQ,mBACd,MAAM,GAAG,MAAM,YAEvB;QAAgC,UAAU,GAAlC,KAAK,CAAC,MAAM,CAAC;QACK,UAAU,GAA5B,OAAO;QACW,aAAa,GAA/B,OAAO;KACjB,QAkBA;IA4CD;;;;OAIG;IACH,mBAEC;IAED;;;;OAIG;IACH,WAFa,MAAM,CAclB;;CAoBF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export namespace loggerColours {
|
|
2
|
+
let debug: string[];
|
|
3
|
+
let info: string;
|
|
4
|
+
let warn: string;
|
|
5
|
+
let error: string;
|
|
6
|
+
let reset: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Logger class
|
|
10
|
+
*
|
|
11
|
+
* Log levels:
|
|
12
|
+
* - debug: Debugging information
|
|
13
|
+
* - Debug levels
|
|
14
|
+
* - 0: No/critical debug information, not error level, but, should be
|
|
15
|
+
* logged
|
|
16
|
+
* - 1: Basic debug information, startup, shutdown, etc
|
|
17
|
+
* - 2: Intermediate debug information, discovery, starting to get more
|
|
18
|
+
* detailed
|
|
19
|
+
* - 3: Detailed debug information, parsing, processing, etc
|
|
20
|
+
* - 4: Very detailed debug information, nerd mode!
|
|
21
|
+
* - warn: Warning information
|
|
22
|
+
* - info: Informational information
|
|
23
|
+
* - error: Error information
|
|
24
|
+
*/
|
|
25
|
+
export default class Logger {
|
|
26
|
+
constructor(options: any);
|
|
27
|
+
vscodeError: any;
|
|
28
|
+
vscodeWarn: any;
|
|
29
|
+
vscodeInfo: any;
|
|
30
|
+
get name(): any;
|
|
31
|
+
get debugLevel(): number;
|
|
32
|
+
get options(): {
|
|
33
|
+
name: any;
|
|
34
|
+
debugLevel: number;
|
|
35
|
+
};
|
|
36
|
+
setOptions(options: any): void;
|
|
37
|
+
lastStackLine(error?: Error, stepsRemoved?: number): any;
|
|
38
|
+
extractFileFunction(level?: number): any;
|
|
39
|
+
newDebug(tag: any): any;
|
|
40
|
+
debug(message: any, level?: number, ...arg: any[]): void;
|
|
41
|
+
warn(message: any, ...arg: any[]): void;
|
|
42
|
+
info(message: any, ...arg: any[]): void;
|
|
43
|
+
error(message: any, ...arg: any[]): void;
|
|
44
|
+
#private;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Logger.js"],"names":[],"mappings":";;;;;;;AA4CA;;;;;;;;;;;;;;;;GAgBG;AAEH;IAIE,0BAYC;IALK,iBAAiD;IACjD,gBAAkD;IAClD,gBAAsD;IAK5D,gBAEC;IAED,yBAEC;IAED;;;MAKC;IAED,+BAGC;IAWD,yDAIC;IAED,yCAsCC;IAED,wBAKC;IAED,yDAGC;IAED,wCAGC;IAED,wCAGC;IAED,yCAGC;;CACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
/** @type {string} Display name for debugging. */
|
|
3
|
+
name: string;
|
|
4
|
+
/** @type {EventEmitter} Internal event emitter */
|
|
5
|
+
"__#private@#emitter": EventEmitter;
|
|
6
|
+
/**
|
|
7
|
+
* Emits an event without expecting a return value.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} type - Event name to dispatch.
|
|
10
|
+
* @param {unknown} [payload] - Data to send with the event.
|
|
11
|
+
* @returns {void}
|
|
12
|
+
*/
|
|
13
|
+
emit(type: string, payload?: unknown): void;
|
|
14
|
+
/**
|
|
15
|
+
* Emits an event and returns the payload for simple request/response flows.
|
|
16
|
+
* Listeners can mutate the payload object to provide responses.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} type - Event name to dispatch.
|
|
19
|
+
* @param {unknown} [payload] - Data to send with the event (will be returned).
|
|
20
|
+
* @returns {unknown} The payload after listeners have processed it.
|
|
21
|
+
*/
|
|
22
|
+
request(type: string, payload?: unknown): unknown;
|
|
23
|
+
/**
|
|
24
|
+
* Registers a listener for the given event type.
|
|
25
|
+
*
|
|
26
|
+
* @param {string} type - Event name to listen for.
|
|
27
|
+
* @param {(payload: unknown) => void} handler - Listener callback.
|
|
28
|
+
* @param {EventEmitter} [emitter] - The EventEmitter to attach to. Default is internal emitter.
|
|
29
|
+
* @param {NotifyEventOptions} [options] - Options for the listener.
|
|
30
|
+
* @returns {() => void} Dispose function to unregister the handler.
|
|
31
|
+
*/
|
|
32
|
+
on(type: string, handler: (payload: unknown) => void, emitter?: EventEmitter, options?: NotifyEventOptions): () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Removes a previously registered listener for the given event type.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} type - Event name to remove.
|
|
37
|
+
* @param {(payload: unknown) => void} handler - Listener callback to detach.
|
|
38
|
+
* @param {EventEmitter} [emitter] - The EventEmitter from which to remove. Default is internal emitter.
|
|
39
|
+
* @returns {void}
|
|
40
|
+
*/
|
|
41
|
+
off(type: string, handler: (payload: unknown) => void, emitter?: EventEmitter): void;
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
|
44
|
+
export type NotifyEventOptions = {
|
|
45
|
+
/**
|
|
46
|
+
* - Whether the listener should be invoked only once.
|
|
47
|
+
*/
|
|
48
|
+
once?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* - An AbortSignal to remove the listener.
|
|
51
|
+
*/
|
|
52
|
+
signal?: AbortSignal;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=Notify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notify.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Notify.js"],"names":[],"mappings":";IAqBE,iDAAiD;UAAtC,MAAM;IAGjB,kDAAkD;2BAAvC,YAAY;IAGvB;;;;;;OAMG;eAHQ,MAAM,YACN,OAAO,GACL,IAAI;IASjB;;;;;;;OAOG;kBAHQ,MAAM,YACN,OAAO,GACL,OAAO;IAWpB;;;;;;;;OAQG;aALQ,MAAM,WACN,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,YAC1B,YAAY,YACZ,kBAAkB,GAChB,MAAM,IAAI;IAgBvB;;;;;;;OAOG;cAJQ,MAAM,WACN,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,YAC1B,YAAY,GACV,IAAI;;;;;;;WA3EL,OAAO;;;;aACP,WAAW"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom error class for toolkit errors.
|
|
3
|
+
* Provides error chaining, trace management, and formatted error reporting.
|
|
4
|
+
*/
|
|
5
|
+
export default class Sass extends BrowserSass {
|
|
6
|
+
#private;
|
|
7
|
+
}
|
|
8
|
+
import { Sass as BrowserSass } from "../../browser/index.js";
|
|
9
|
+
//# sourceMappingURL=Sass.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sass.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Sass.js"],"names":[],"mappings":"AAgBA;;;GAGG;AACH;;CAgFC;oCAvFiC,wBAAwB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom aggregate error class that extends AggregateError.
|
|
3
|
+
* Automatically wraps plain errors in Sass instances for consistent reporting.
|
|
4
|
+
*/
|
|
5
|
+
export default class Tantrum extends BrowserTantrum {
|
|
6
|
+
constructor(message: any, errors?: any[]);
|
|
7
|
+
}
|
|
8
|
+
import { Tantrum as BrowserTantrum } from "../../browser/index.js";
|
|
9
|
+
//# sourceMappingURL=Tantrum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tantrum.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Tantrum.js"],"names":[],"mappings":"AAeA;;;GAGG;AACH;IACE,0CAEC;CA0BF;0CArCuC,wBAAwB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TempDirectoryObject extends VDirectoryObject with the cap set to
|
|
3
|
+
* the OS's temporary directory. Temporary directories are created
|
|
4
|
+
* synchronously during construction and exist immediately.
|
|
5
|
+
*
|
|
6
|
+
* All path operations are validated to ensure they remain within the temp
|
|
7
|
+
* directory hierarchy for security.
|
|
8
|
+
*
|
|
9
|
+
* @augments VDirectoryObject
|
|
10
|
+
*/
|
|
11
|
+
export default class TempDirectoryObject extends VDirectoryObject {
|
|
12
|
+
/**
|
|
13
|
+
* TempDirectoryObject does not support fromCwd() since it is specifically
|
|
14
|
+
* designed to work within the OS temporary directory tree.
|
|
15
|
+
*
|
|
16
|
+
* @throws {Sass} Always throws an error
|
|
17
|
+
*/
|
|
18
|
+
static fromCwd(): void;
|
|
19
|
+
get isTemporary(): boolean;
|
|
20
|
+
get cap(): any;
|
|
21
|
+
/**
|
|
22
|
+
* Recursively removes a temporary directory and all its contents.
|
|
23
|
+
*
|
|
24
|
+
* This method will delete all files and subdirectories within this directory,
|
|
25
|
+
* then delete the directory itself. It only works on directories explicitly
|
|
26
|
+
* marked as temporary for safety.
|
|
27
|
+
*
|
|
28
|
+
* @async
|
|
29
|
+
* @returns {Promise<void>}
|
|
30
|
+
* @throws {Sass} If the directory is not marked as temporary
|
|
31
|
+
* @throws {Sass} If the directory deletion fails
|
|
32
|
+
* @example
|
|
33
|
+
* const tempDir = new TempDirectoryObject("my-temp")
|
|
34
|
+
* await tempDir.assureExists()
|
|
35
|
+
* // ... use the directory ...
|
|
36
|
+
* await tempDir.remove() // Recursively deletes everything
|
|
37
|
+
*/
|
|
38
|
+
remove(): Promise<void>;
|
|
39
|
+
#private;
|
|
40
|
+
}
|
|
41
|
+
import VDirectoryObject from "./VDirectoryObject.js";
|
|
42
|
+
//# sourceMappingURL=TempDirectoryObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TempDirectoryObject.d.ts","sourceRoot":"","sources":["../../../src/node/lib/TempDirectoryObject.js"],"names":[],"mappings":"AAiBA;;;;;;;;;GASG;AACH;IAgIE;;;;;OAKG;IACH,uBAEC;IA1ED,2BAEC;IAwBD,eAEC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,UATa,OAAO,CAAC,IAAI,CAAC,CAWzB;;CA0BF;6BAzJ4B,uBAAuB"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export default class Term {
|
|
2
|
+
/**
|
|
3
|
+
* Log an informational message.
|
|
4
|
+
*
|
|
5
|
+
* @param {...unknown} [arg] - Values to log.
|
|
6
|
+
*/
|
|
7
|
+
static log(...arg?: unknown[]): void;
|
|
8
|
+
/**
|
|
9
|
+
* Log an informational message.
|
|
10
|
+
*
|
|
11
|
+
* @param {...unknown} [arg] - Values to log.
|
|
12
|
+
*/
|
|
13
|
+
static info(...arg?: unknown[]): void;
|
|
14
|
+
/**
|
|
15
|
+
* Log a warning message.
|
|
16
|
+
*
|
|
17
|
+
* @param {...unknown} [arg] - Warning text / object.
|
|
18
|
+
*/
|
|
19
|
+
static warn(...arg?: unknown[]): void;
|
|
20
|
+
/**
|
|
21
|
+
* Log an error message (plus optional details).
|
|
22
|
+
*
|
|
23
|
+
* @param {...unknown} [arg] - Values to log.
|
|
24
|
+
*/
|
|
25
|
+
static error(...arg?: unknown[]): void;
|
|
26
|
+
/**
|
|
27
|
+
* Log a debug message (no-op unless console.debug provided/visible by env).
|
|
28
|
+
*
|
|
29
|
+
* @param {...unknown} [arg] - Values to log.
|
|
30
|
+
*/
|
|
31
|
+
static debug(...arg?: unknown[]): void;
|
|
32
|
+
/**
|
|
33
|
+
* Start a console group for indented output.
|
|
34
|
+
*
|
|
35
|
+
* @param {...unknown} [arg] - Optional group label.
|
|
36
|
+
*/
|
|
37
|
+
static group(...arg?: unknown[]): void;
|
|
38
|
+
/**
|
|
39
|
+
* End the current console group.
|
|
40
|
+
*/
|
|
41
|
+
static groupEnd(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Display tabular data as a table.
|
|
44
|
+
*
|
|
45
|
+
* @param {object | Array} tabularData - Object or array to display.
|
|
46
|
+
* @param {object} [options] - Table options.
|
|
47
|
+
* @param {Array<string>} [options.properties] - Optional column properties to display.
|
|
48
|
+
* @param {boolean} [options.showHeader=false] - Whether to show the header row with column names.
|
|
49
|
+
* @param {boolean} [options.quotedStrings=false] - Whether to show quotes around strings.
|
|
50
|
+
*/
|
|
51
|
+
static table(tabularData: object | any[], options?: {
|
|
52
|
+
properties?: Array<string>;
|
|
53
|
+
showHeader?: boolean;
|
|
54
|
+
quotedStrings?: boolean;
|
|
55
|
+
}): void;
|
|
56
|
+
/**
|
|
57
|
+
* Emit a status line to the terminal.
|
|
58
|
+
*
|
|
59
|
+
* Accepts either a plain string or an array of message segments (see
|
|
60
|
+
* `terminalMessage()` for formatting options). If `silent` is true, output
|
|
61
|
+
* is suppressed.
|
|
62
|
+
*
|
|
63
|
+
* This is a convenient shortcut for logging status updates, with optional
|
|
64
|
+
* formatting and easy suppression.
|
|
65
|
+
*
|
|
66
|
+
* @param {string | Array<string | [string, string]>} args - Message or segments.
|
|
67
|
+
* @param {object} [options] - Behaviour flags.
|
|
68
|
+
* @param {boolean} options.silent - When true, suppress output.
|
|
69
|
+
* @returns {void}
|
|
70
|
+
*/
|
|
71
|
+
static status(args: string | Array<string | [string, string]>, { silent }?: {
|
|
72
|
+
silent: boolean;
|
|
73
|
+
}): void;
|
|
74
|
+
/**
|
|
75
|
+
* Constructs a formatted status line.
|
|
76
|
+
*
|
|
77
|
+
* Input forms:
|
|
78
|
+
* - string: printed as-is
|
|
79
|
+
* - array: each element is either:
|
|
80
|
+
* - a plain string (emitted unchanged), or
|
|
81
|
+
* - a tuple: [level, text] where `level` maps to an ansiColors alias
|
|
82
|
+
* (e.g. success, info, warn, error, modified).
|
|
83
|
+
* - a tuple: [level, text, [openBracket,closeBracket]] where `level` maps to an ansiColors alias
|
|
84
|
+
* (e.g. success, info, warn, error, modified). These are rendered as
|
|
85
|
+
* colourised bracketed segments: [TEXT].
|
|
86
|
+
*
|
|
87
|
+
* The function performs a shallow validation: tuple elements must both be
|
|
88
|
+
* strings; otherwise a TypeError is thrown. Nested arrays beyond depth 1 are
|
|
89
|
+
* not supported.
|
|
90
|
+
*
|
|
91
|
+
* Recursion: array input is normalised into a single string then re-dispatched
|
|
92
|
+
* through `status` to leverage the string branch (keeps logic DRY).
|
|
93
|
+
*
|
|
94
|
+
* @param {string | Array<string | [string, string] | [string, string, string]>} argList - Message spec.
|
|
95
|
+
* @returns {void}
|
|
96
|
+
*/
|
|
97
|
+
static terminalMessage(argList: string | Array<string | [string, string] | [string, string, string]>): void;
|
|
98
|
+
/**
|
|
99
|
+
* Construct a single coloured bracketed segment from a tuple specifying
|
|
100
|
+
* the style level and the text. The first element ("level") maps to an
|
|
101
|
+
* `ansiColors` alias (e.g. success, info, warn, error, modified) and is
|
|
102
|
+
* used both for the inner text colour and to locate its matching
|
|
103
|
+
* "-bracket" alias for the surrounding square brackets. The second
|
|
104
|
+
* element is the raw text to display.
|
|
105
|
+
*
|
|
106
|
+
* Input validation: every element of `parts` must be a string; otherwise
|
|
107
|
+
* an `Sass` error is thrown. (Additional elements beyond the first two are
|
|
108
|
+
* ignored – the method destructures only the first pair.)
|
|
109
|
+
*
|
|
110
|
+
* Example:
|
|
111
|
+
* terminalBracket(["success", "COMPILED"]) → "[COMPILED]" with coloured
|
|
112
|
+
* brackets + inner text (assuming colour support is available in the
|
|
113
|
+
* terminal).
|
|
114
|
+
*
|
|
115
|
+
* This method does not append trailing spaces; callers are responsible for
|
|
116
|
+
* joining multiple segments with appropriate separators.
|
|
117
|
+
*
|
|
118
|
+
* @param {Array<string>} parts - Tuple: [level, text]. Additional entries ignored.
|
|
119
|
+
* @returns {string} Colourised bracketed segment (e.g. "[TEXT]").
|
|
120
|
+
* @throws {Sass} If any element of `parts` is not a string.
|
|
121
|
+
*/
|
|
122
|
+
static terminalBracket([level, text, brackets]: Array<string>): string;
|
|
123
|
+
static resetTerminal(): Promise<void>;
|
|
124
|
+
static clearLines(num: any): Promise<void>;
|
|
125
|
+
static directWrite(output: any): Promise<any>;
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=Term.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Term.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Term.js"],"names":[],"mappings":"AAOA;IACE;;;;OAIG;IACH,oBAFc,OAAO,EAAA,QAIpB;IAED;;;;OAIG;IACH,qBAFc,OAAO,EAAA,QAIpB;IAED;;;;OAIG;IACH,qBAFc,OAAO,EAAA,QAIpB;IAED;;;;OAIG;IACH,sBAFc,OAAO,EAAA,QAIpB;IAED;;;;OAIG;IACH,sBAFc,OAAO,EAAA,QAIpB;IAED;;;;OAIG;IACH,sBAFc,OAAO,EAAA,QAIpB;IAED;;OAEG;IACH,wBAEC;IAED;;;;;;;;OAQG;IACH,0BANW,MAAM,QAAQ,YAEtB;QAAgC,UAAU,GAAlC,KAAK,CAAC,MAAM,CAAC;QACK,UAAU,GAA5B,OAAO;QACW,aAAa,GAA/B,OAAO;KACjB,QA2DA;IAED;;;;;;;;;;;;;;OAcG;IACH,oBALW,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,eAEjD;QAAyB,MAAM,EAAvB,OAAO;KACf,GAAU,IAAI,CAOhB;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,gCAHW,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,GAClE,IAAI,CA4BhB;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,gDAJW,KAAK,CAAC,MAAM,CAAC,GACX,MAAM,CASlB;IAED,sCAGC;IAED,2CAEC;IAED,8CAIC;CACF"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility class providing common helper functions for string manipulation,
|
|
3
|
+
* timing, hashing, and option parsing.
|
|
4
|
+
*/
|
|
5
|
+
export default class Util extends BrowserUtil {
|
|
6
|
+
/**
|
|
7
|
+
* Compute sha256 hash (hex) of the provided string.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} s - Input string.
|
|
10
|
+
* @returns {string} 64-char hexadecimal digest.
|
|
11
|
+
*/
|
|
12
|
+
static hashOf(s: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Extracts canonical option names from a Commander-style options object.
|
|
15
|
+
*
|
|
16
|
+
* Each key in the input object is a string containing one or more option
|
|
17
|
+
* forms, separated by commas (e.g. "-w, --watch"). This function splits each
|
|
18
|
+
* key, trims whitespace, and parses out the long option name (e.g. "watch")
|
|
19
|
+
* for each entry. If no long option ("--") is present, the short option (e.g.
|
|
20
|
+
* "v" from "-v") will be included in the result array. If both are present,
|
|
21
|
+
* the long option is preferred.
|
|
22
|
+
*
|
|
23
|
+
* Example:
|
|
24
|
+
* generateOptionNames({"-w, --watch": "desc", "-v": "desc"})
|
|
25
|
+
* → ["watch", "v"]
|
|
26
|
+
*
|
|
27
|
+
* Edge cases:
|
|
28
|
+
* - If a key contains only a short option ("-v"), that short name will be
|
|
29
|
+
* included in the result.
|
|
30
|
+
* - If multiple long options are present, only the first is used.
|
|
31
|
+
* - If the option string is malformed, may return undefined for that entry
|
|
32
|
+
* (filtered out).
|
|
33
|
+
*
|
|
34
|
+
* @param {object} object - Mapping of option strings to descriptions.
|
|
35
|
+
* @returns {Array<string>} Array of canonical option names (long preferred, short if no long present).
|
|
36
|
+
*/
|
|
37
|
+
static generateOptionNames(object: object): Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Private method that performs the actual async emission logic.
|
|
40
|
+
* Handles listener execution, error aggregation, and result processing.
|
|
41
|
+
*
|
|
42
|
+
* @param {object} emitter - The emitter object (already validated)
|
|
43
|
+
* @param {string} event - The event name to emit
|
|
44
|
+
* @param {...unknown} args - Arguments to pass to event listeners
|
|
45
|
+
* @returns {Promise<void>} Resolves when all listeners have completed
|
|
46
|
+
*/
|
|
47
|
+
static "__#private@#performAsyncEmit"(emitter: object, event: string, ...args: unknown[]): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Emits an event asynchronously and waits for all listeners to complete.
|
|
50
|
+
* Unlike the standard EventEmitter.emit() which is synchronous, this method
|
|
51
|
+
* properly handles async event listeners by waiting for all of them to
|
|
52
|
+
* resolve or reject using Promise.allSettled().
|
|
53
|
+
*
|
|
54
|
+
* Uses strict instanceof checking to ensure the emitter is a genuine EventEmitter.
|
|
55
|
+
*
|
|
56
|
+
* @param {EventEmitter} emitter - The EventEmitter instance to emit on
|
|
57
|
+
* @param {string} event - The event name to emit
|
|
58
|
+
* @param {...unknown} args - Arguments to pass to event listeners
|
|
59
|
+
* @returns {Promise<void>} Resolves when all listeners have completed
|
|
60
|
+
*/
|
|
61
|
+
static asyncEmit(emitter: EventEmitter, event: string, ...args: unknown[]): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Emits an event asynchronously and waits for all listeners to complete.
|
|
64
|
+
* Like asyncEmit, but uses duck typing for more flexible emitter validation.
|
|
65
|
+
* Accepts any object that has the required EventEmitter-like methods.
|
|
66
|
+
* If it walks like an EventEmitter and quacks like an EventEmitter...
|
|
67
|
+
*
|
|
68
|
+
* @param {object} emitter - Any object with EventEmitter-like interface
|
|
69
|
+
* @param {string} event - The event name to emit
|
|
70
|
+
* @param {...unknown} args - Arguments to pass to event listeners
|
|
71
|
+
* @returns {Promise<void>} Resolves when all listeners have completed, but no grapes.
|
|
72
|
+
*/
|
|
73
|
+
static asyncEmitQuack(emitter: object, event: string, ...args: unknown[]): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves an environment variable and parses it as JSON5.
|
|
76
|
+
*
|
|
77
|
+
* This method fetches the value of the specified environment variable and
|
|
78
|
+
* attempts to parse it using JSON5. If the variable doesn't exist or is
|
|
79
|
+
* empty, the default value is returned. If parsing fails, an error is
|
|
80
|
+
* thrown.
|
|
81
|
+
*
|
|
82
|
+
* Example:
|
|
83
|
+
* // export MY_CONFIG='{"debug": true, timeout: 5000}'
|
|
84
|
+
* Util.getEnv("MY_CONFIG", {debug: false})
|
|
85
|
+
* → {debug: true, timeout: 5000}
|
|
86
|
+
*
|
|
87
|
+
* Edge cases:
|
|
88
|
+
* - If the environment variable doesn't exist, returns the default value
|
|
89
|
+
* - If the value is an empty string, returns the default value
|
|
90
|
+
* - If JSON5 parsing fails, throws a Sass error with context
|
|
91
|
+
*
|
|
92
|
+
* @param {string} ev - Name of the environment variable to retrieve
|
|
93
|
+
* @param {unknown} [def=undefined] - Default value if variable doesn't exist or is empty
|
|
94
|
+
* @returns {unknown} Parsed JSON5 value or default
|
|
95
|
+
* @throws {Sass} If JSON5 parsing fails
|
|
96
|
+
*/
|
|
97
|
+
static getEnv(ev: string, def?: unknown): unknown;
|
|
98
|
+
}
|
|
99
|
+
import { Util as BrowserUtil } from "../../browser/index.js";
|
|
100
|
+
//# sourceMappingURL=Util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Util.d.ts","sourceRoot":"","sources":["../../../src/node/lib/Util.js"],"names":[],"mappings":"AAQA;;;GAGG;AACH;IACE;;;;;OAKG;IACH,iBAHW,MAAM,GACJ,MAAM,CAIlB;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,mCAHW,MAAM,GACJ,KAAK,CAAC,MAAM,CAAC,CAazB;IAED;;;;;;;;OAQG;IACH,+CALW,MAAM,SACN,MAAM,WACH,OAAO,EAAA,GACR,OAAO,CAAC,IAAI,CAAC,CAmBzB;IAED;;;;;;;;;;;;OAYG;IACH,0BALW,YAAY,SACZ,MAAM,WACH,OAAO,EAAA,GACR,OAAO,CAAC,IAAI,CAAC,CAqBzB;IAED;;;;;;;;;;OAUG;IACH,+BALW,MAAM,SACN,MAAM,WACH,OAAO,EAAA,GACR,OAAO,CAAC,IAAI,CAAC,CAyBzB;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,kBALW,MAAM,QACN,OAAO,GACL,OAAO,CAmBnB;CACF;oCApMiC,wBAAwB"}
|