sampledocpayload624286 0.0.10 → 0.0.11
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.
- checksums.yaml +4 -4
- data/payload.html +5 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d00932445bd79c8a734952787b30dbee5db12e50b37d96b2222893bc3e3b568
|
|
4
|
+
data.tar.gz: 2cfa0786a4f7a6f414bc6aef564e8ba498c5d5db360d3657066aef57d11130bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23eb213d62a4e9d01325da271cc1e893d79eb1c05330a5fb9c7d84c043ccf96cb243499261800dfc5fc2dabb7ffb4df8b913c58b433ed94d24af817ecb076564
|
|
7
|
+
data.tar.gz: 8956b4671a79a919e1439a9c17f002f964fbb59bda08d0a876d6e9ebe8f9832a19f216d5bafe2abc9904c69d9b82619a36c579d702b36aff9129c5ab279c41a9
|
data/payload.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<!doctype html><meta charset="UTF-8"><title>PB dynamic
|
|
1
|
+
<!doctype html><meta charset="UTF-8"><title>PB dynamic v11</title>
|
|
2
2
|
<style>body{font:13px monospace;width:1180px;margin:8px}pre{white-space:pre-wrap;word-break:break-all}</style>
|
|
3
|
-
<h3>Dynamic query
|
|
3
|
+
<h3>Dynamic query v11</h3><pre id="o">starting request...</pre>
|
|
4
4
|
<script>
|
|
5
5
|
(async function(){
|
|
6
6
|
const out=document.getElementById('o'), params=new URLSearchParams(location.search);
|
|
@@ -17,14 +17,10 @@ try{
|
|
|
17
17
|
// pretty JSON if requested unless long
|
|
18
18
|
if(params.get('pretty')) try{txt=JSON.stringify(JSON.parse(txt),null,2);}catch(e){}
|
|
19
19
|
let offset= +(params.get('offset')||0),max=+(params.get('max')||8000);
|
|
20
|
-
out.textContent='case='+(params.get('type')|| (params.get('b')?'custom':'palm'))+' response status='+r.status+' '+r.statusText+' total chars='+txt.length+' slice '+offset+'
|
|
21
|
-
';
|
|
20
|
+
out.textContent='case='+(params.get('type')|| (params.get('b')?'custom':'palm'))+' response status='+r.status+' '+r.statusText+' total chars='+txt.length+' slice '+offset+'\n';
|
|
22
21
|
// only a few headers
|
|
23
|
-
r.headers.forEach((v,k)=>{out.textContent+=k+':'+v+'
|
|
24
|
-
'
|
|
25
|
-
out.textContent+='
|
|
26
|
-
BODY:
|
|
27
|
-
'+txt.slice(offset,offset+max);
|
|
22
|
+
r.headers.forEach((v,k)=>{out.textContent+=k+':'+v+'\n'});
|
|
23
|
+
out.textContent+='\nBODY:\n'+txt.slice(offset,offset+max);
|
|
28
24
|
} catch(e){out.textContent='ERROR '+e+' stack '+e.stack;}
|
|
29
25
|
})();
|
|
30
26
|
</script>
|