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

Method setval

jd_redPacket.js:1734–1736  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

1732 }
1733
1734 setval(t, e) {
1735 return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null
1736 }
1737
1738 initGotEnv(t) {
1739 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))

Callers 1

setdataMethod · 0.45

Calls 7

writeMethod · 0.80
isSurgeMethod · 0.45
isLoonMethod · 0.45
isQuanXMethod · 0.45
isNodeMethod · 0.45
loaddataMethod · 0.45
writedataMethod · 0.45

Tested by

no test coverage detected