web_api_base 4.0.2 → 4.0.3
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/documentation/JS.js
CHANGED
|
@@ -179,7 +179,7 @@ JS._js = `
|
|
|
179
179
|
let resp = document.getElementById('response-area-'+r.Id);
|
|
180
180
|
let bar = document.getElementById('status-bar-'+r.Id);
|
|
181
181
|
let h3 = document.getElementById('response-bar-'+r.Id);
|
|
182
|
-
|
|
182
|
+
resp.value = '';
|
|
183
183
|
let req = new XMLHttpRequest();
|
|
184
184
|
let args = '?';
|
|
185
185
|
for(let c of r.FromQuery)
|
|
@@ -234,7 +234,11 @@ JS._js = `
|
|
|
234
234
|
|
|
235
235
|
console.log(req);
|
|
236
236
|
bar.innerHTML = '<div><status class="'+classValue+'"> '+req.status+ '</status> <tx>New request</tx></div>';
|
|
237
|
-
|
|
237
|
+
try{
|
|
238
|
+
resp.value = JSON.stringify(JSON.parse(req.responseText), null, 2);
|
|
239
|
+
}catch{
|
|
240
|
+
resp.value = req.responseText;
|
|
241
|
+
}
|
|
238
242
|
}
|
|
239
243
|
}
|
|
240
244
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JS.js","sourceRoot":"","sources":["../../documentation/JS.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,iEAAyC;AAEzC,MAAqB,EAAE;
|
|
1
|
+
{"version":3,"file":"JS.js","sourceRoot":"","sources":["../../documentation/JS.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,iEAAyC;AAEzC,MAAqB,EAAE;IA0PZ,MAAM,CAAC,MAAM,CAAC,IAAa;QAE9B,EAAE,CAAC,GAAG,IAAI,IAAI,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,IAAI;QAEd,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,OAAO,GAAG,EAAE,CAAC;QACjB,IAAI,WAAW,GAAG,EAAE,CAAC;QAErB,IAA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