MCPcopy Create free account
hub / github.com/ClydeTime/Surge / l

Function l

Script/BiliBili/Modified.js:388–388  ·  view source on GitHub ↗
(t,e,n)

Source from the content-addressed store, hash-verified

386 * @return {Object} { Settings, Caches, Configs }
387 */
388function getENV(t,e,n){let i=$.getjson(t,n),s={};if("undefined"!=typeof $argument&&Boolean($argument)){let t=Object.fromEntries($argument.split("&").map((t=>t.split("="))));for(let e in t)l(s,e,t[e])}let g={...n?.Default?.Settings,...n?.[e]?.Settings,...i?.[e]?.Settings,...s},f={...n?.Default?.Configs,...n?.[e]?.Configs,...i?.[e]?.Configs},o=i?.[e]?.Caches||{};return"string"==typeof o&&(o=JSON.parse(o)),{Settings:g,Caches:o,Configs:f};function l(t,e,n){e.split(".").reduce(((t,i,s)=>t[i]=e.split(".").length===++s?n:t[i]||{}),t)}}

Callers 7

TFunction · 0.70
UFunction · 0.70
PFunction · 0.70
FFunction · 0.70
KFunction · 0.70
GFunction · 0.70
getENVFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected