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

Method getdata

env/env.js:172–186  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

170 t)
171 }
172 getdata(t) {
173 let e = this.getval(t)
174 if (/^@/.test(t)) {
175 const [, s, a] = /^@(.*?)\.(.*?)$/.exec(t),
176 r = s ? this.getval(s) : ''
177 if (r)
178 try {
179 const t = JSON.parse(r)
180 e = t ? this.lodash_get(t, a, '') : e
181 } catch (t) {
182 e = ''
183 }
184 }
185 return e
186 }
187 setdata(t, e) {
188 let s = !1
189 if (/^@/.test(e)) {

Callers 2

getjsonMethod · 0.45
runScriptMethod · 0.45

Calls 3

getvalMethod · 0.45
parseMethod · 0.45
lodash_getMethod · 0.45

Tested by

no test coverage detected