MCPcopy Create free account
hub / github.com/chavyleung/scripts / sign

Function sign

citybox/citybox.js:23–39  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

21.finally(() => $.done())
22
23function sign(headers) {
24 return new Promise((resolve) => {
25 const url = {
26 url: hostApi + '/user/up_sign',
27 headers,
28 }
29 $.get(url, (err, resp, data) => {
30 try {
31 $.sign = JSON.parse(data)
32 } catch (e) {
33 $.logErr(e, resp)
34 } finally {
35 resolve()
36 }
37 })
38 })
39}
40
41function draw(headers) {
42 return new Promise((resolve) => {

Callers 1

citybox.jsFile · 0.70

Calls 2

getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected