@cqa-lib/cqa-ui 1.1.549-delta.4 → 1.1.549-delta.5
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.
|
@@ -18218,6 +18218,12 @@ class ApiStepComponent extends BaseStepComponent {
|
|
|
18218
18218
|
}
|
|
18219
18219
|
}
|
|
18220
18220
|
formatJson(obj) {
|
|
18221
|
+
// If the caller already passed a pre-formatted string (e.g. a GraphQL query with
|
|
18222
|
+
// embedded newlines), render it as-is. Running JSON.stringify on it would wrap
|
|
18223
|
+
// the value in quotes and escape every `\n` into a literal `\n`, which is what
|
|
18224
|
+
// shows up as a single-line blob in the Request Body panel.
|
|
18225
|
+
if (typeof obj === 'string')
|
|
18226
|
+
return obj;
|
|
18221
18227
|
return JSON.stringify(obj, null, 2);
|
|
18222
18228
|
}
|
|
18223
18229
|
getPassedAssertions() {
|