MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / cleanup

Function cleanup

packages/webpack5/src/helpers/log.ts:5–12  ·  view source on GitHub ↗
(data: any[])

Source from the content-addressed store, hash-verified

3
4// de-indents strings so multi-line string literals can be used
5function cleanup(data: any[]) {
6 return data.map((d) => {
7 if (typeof d === 'string') {
8 return dedent(d);
9 }
10 return d;
11 });
12}
13
14export function error(...data: any): Error {
15 console.warn(`[@nativescript/webpack] Error: \n`, ...cleanup(data));

Callers 3

errorFunction · 0.85
warnFunction · 0.85
infoFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected