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

Method setval

function/sendNotify.js:2411–2413  ·  view source on GitHub ↗
(t, s)

Source from the content-addressed store, hash-verified

2409 return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? ((this.data = this.loaddata()), this.data[t]) : (this.data && this.data[t]) || null;
2410 }
2411 setval(t, s) {
2412 return this.isSurge() || this.isLoon() ? $persistentStore.write(t, s) : this.isQuanX() ? $prefs.setValueForKey(t, s) : this.isNode() ? ((this.data = this.loaddata()), (this.data[s] = t), this.writedata(), !0) : (this.data && this.data[s]) || null;
2413 }
2414 initGotEnv(t) {
2415 (this.got = this.got ? this.got : require('got')),
2416 (this.cktough = this.cktough ? this.cktough : require('tough-cookie')),

Callers 1

setdataMethod · 0.45

Calls 6

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

Tested by

no test coverage detected