extension-install 4.1.21 → 4.1.23
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/dist/lib/messaging.d.ts +1 -0
- package/dist/module.cjs +2 -1
- package/package.json +1 -1
package/dist/lib/messaging.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type Channel = 'info' | 'success' | 'warn' | 'error' | 'debug';
|
|
2
2
|
export declare function isDebug(): boolean;
|
|
3
3
|
export declare function prefix(type: Channel): string;
|
|
4
|
+
export declare function hasChannelPrefix(text: string): boolean;
|
|
4
5
|
export declare function isMachineOutput(): boolean;
|
|
5
6
|
export declare function humanLine(...parts: unknown[]): void;
|
|
6
7
|
export declare function humanWarn(...parts: unknown[]): void;
|
package/dist/module.cjs
CHANGED
|
@@ -163,7 +163,8 @@ const fmt = {
|
|
|
163
163
|
truncate (input, max = 800) {
|
|
164
164
|
const s = (()=>{
|
|
165
165
|
try {
|
|
166
|
-
|
|
166
|
+
if ('string' == typeof input) return input;
|
|
167
|
+
return JSON.stringify(input) ?? String(input);
|
|
167
168
|
} catch {
|
|
168
169
|
return String(input);
|
|
169
170
|
}
|