UNPKG
hrc-debug
Version:
latest (1.1.4)
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
print debug info at server from client
github.com/hiNISAL/hrc-debug
hiNISAL/hrc-debug
hrc-debug
/
src
/
appears
/
browser.ts
12 lines
(10 loc)
•
277 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
LogQueueItem
,
AppearData
}
from
"../interface.common"
;
export
const
appear
= (
data
:
AppearData
,
server
:
string
) => {
return
fetch
(server, {
method
:
'POST'
,
body
:
JSON
.
stringify
(data),
headers
: {
'Content-Type'
:
'application/json'
, }, }); };