(t, e)
| 971 | } |
| 972 | |
| 973 | setdata(t, e) { |
| 974 | let s = !1; |
| 975 | if (/^@/.test(e)) { |
| 976 | const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; |
| 977 | try { |
| 978 | const e = JSON.parse(h); |
| 979 | this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) |
| 980 | } catch (e) { |
| 981 | const o = {}; |
| 982 | this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) |
| 983 | } |
| 984 | } else s = this.setval(t, e); |
| 985 | return s |
| 986 | } |
| 987 | |
| 988 | getval(t) { |
| 989 | 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 |
no test coverage detected