@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.
|
@@ -18257,6 +18257,12 @@ class ApiStepComponent extends BaseStepComponent {
|
|
|
18257
18257
|
}
|
|
18258
18258
|
}
|
|
18259
18259
|
formatJson(obj) {
|
|
18260
|
+
// If the caller already passed a pre-formatted string (e.g. a GraphQL query with
|
|
18261
|
+
// embedded newlines), render it as-is. Running JSON.stringify on it would wrap
|
|
18262
|
+
// the value in quotes and escape every `\n` into a literal `\n`, which is what
|
|
18263
|
+
// shows up as a single-line blob in the Request Body panel.
|
|
18264
|
+
if (typeof obj === 'string')
|
|
18265
|
+
return obj;
|
|
18260
18266
|
return JSON.stringify(obj, null, 2);
|
|
18261
18267
|
}
|
|
18262
18268
|
getPassedAssertions() {
|