MCPcopy Create free account
hub / github.com/6dylan6/jdm / request

Method request

function/magic.js:653–663  ·  view source on GitHub ↗
(url, headers, body)

Source from the content-addressed store, hash-verified

651 }
652
653 async request(url, headers, body) {
654 return new Promise((resolve, reject) => {
655 let __config = headers?.headers ? headers : {headers: headers};
656 (body ? $.post(url, body, __config) : $.get(url, __config))
657 .then(data => {
658 this.__lt(data);
659 resolve(data)
660 })
661 .catch(e => reject(e));
662 })
663 }
664
665 __lt(data) {
666 if (this.appId.length !== 2) {

Callers 15

unfollowMethod · 0.95
signMethod · 0.95
_algoMethod · 0.95
isvObfuscatorMethod · 0.95
apiMethod · 0.95
sendMessageMethod · 0.95
getSignInfoFunction · 0.80
signFunction · 0.80
get_venderIdFunction · 0.80
getIPFunction · 0.80
memberBringRankingFunction · 0.80
memberBringActPageFunction · 0.80

Calls 3

__ltMethod · 0.95
postMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected