MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / initGotEnv

Method initGotEnv

env/env.js:233–240  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

231 }
232 }
233 initGotEnv(t) {
234 ;(this.got = this.got ? this.got : require('got')),
235 (this.cktough = this.cktough ? this.cktough : require('tough-cookie')),
236 (this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar()),
237 t &&
238 ((t.headers = t.headers ? t.headers : {}),
239 void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar))
240 }
241 get(t, e = () => {}) {
242 switch (
243 (t.headers &&

Callers 2

getMethod · 0.45
postMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected