@stonecrop/graphql-client 0.2.32 → 0.2.34
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/graphql-client.js
CHANGED
|
@@ -1060,7 +1060,7 @@ function Sn(e) {
|
|
|
1060
1060
|
function xn(e, t) {
|
|
1061
1061
|
if (!!!e)
|
|
1062
1062
|
throw new Error(
|
|
1063
|
-
|
|
1063
|
+
"Unexpected invariant triggered."
|
|
1064
1064
|
);
|
|
1065
1065
|
}
|
|
1066
1066
|
const Cn = /\r\n|[\n\r]/g;
|
|
@@ -1433,8 +1433,10 @@ function Bn(e) {
|
|
|
1433
1433
|
return t;
|
|
1434
1434
|
}
|
|
1435
1435
|
function Un(e, t) {
|
|
1436
|
-
const n = e.replace(/"""/g, '\\"""'), i = n.split(/\r\n|[\n\r]/g), r = i.length === 1, s = i.length > 1 && i.slice(1).every((E) => E.length === 0 || Ge(E.charCodeAt(0))), o = n.endsWith('\\"""'), a = e.endsWith('"') && !o, u = e.endsWith("\\"), c = a || u, l =
|
|
1437
|
-
|
|
1436
|
+
const n = e.replace(/"""/g, '\\"""'), i = n.split(/\r\n|[\n\r]/g), r = i.length === 1, s = i.length > 1 && i.slice(1).every((E) => E.length === 0 || Ge(E.charCodeAt(0))), o = n.endsWith('\\"""'), a = e.endsWith('"') && !o, u = e.endsWith("\\"), c = a || u, l = (
|
|
1437
|
+
// add leading and trailing new lines only if it improves readability
|
|
1438
|
+
!r || e.length > 70 || c || s || o
|
|
1439
|
+
);
|
|
1438
1440
|
let f = "";
|
|
1439
1441
|
const h = r && Ge(e.charCodeAt(0));
|
|
1440
1442
|
return (l && !h || s) && (f += `
|