MCPcopy Create free account
hub / github.com/alignoth/alignoth / xn

Function xn

resources/vega-embed.min.js:3276–3282  ·  view source on GitHub ↗
(t, n)

Source from the content-addressed store, hash-verified

3274 })(t, i, f, o);
3275 }
3276 async function xn(t, n) {
3277 const r = e.isString(t.config)
3278 ? JSON.parse(await n.load(t.config))
3279 : (t.config ?? {}),
3280 i = e.isString(t.patch) ? JSON.parse(await n.load(t.patch)) : t.patch;
3281 return { ...t, ...(i ? { patch: i } : {}), ...(r ? { config: r } : {}) };
3282 }
3283 async function Ln(e, t = {}) {
3284 const n = document.createElement("div");
3285 n.classList.add("vega-embed-wrapper");

Callers 1

InFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected