Initial
This commit is contained in:
12
resources/app/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
generated
vendored
Normal file
12
resources/app/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export function toDebugString(input) {
|
||||
if (typeof input !== "object" || input == null) {
|
||||
return input;
|
||||
}
|
||||
if ("ref" in input) {
|
||||
return `$${toDebugString(input.ref)}`;
|
||||
}
|
||||
if ("fn" in input) {
|
||||
return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
|
||||
}
|
||||
return JSON.stringify(input, null, 2);
|
||||
}
|
||||
Reference in New Issue
Block a user