MCPcopy Create free account
hub / github.com/Semporia/Scripts / initGotEnv

Method initGotEnv

jd_api_test.js:285–287  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

283 }
284
285 initGotEnv(t) {
286 this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar))
287 }
288
289 get(t, e = (() => {
290 })) {

Callers 2

getMethod · 0.45
postMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected