MCPcopy Create free account
hub / github.com/dataease/SQLBot / set_cookie_serialize

Function set_cookie_serialize

frontend/public/swagger-ui-bundle.js:55784–55794  ·  view source on GitHub ↗
(s, o, i = {})

Source from the content-addressed store, hash-verified

55782 encoders: { name: utils_identity, value: cookie_value_strict_base64url },
55783 validators: { name: cookie_name_strict, value: cookie_value_strict },
55784 },
55785 set_cookie_serialize = (s, o, i = {}) => {
55786 const a = {
55787 ...Vx,
55788 ...i,
55789 encoders: { ...Vx.encoders, ...i.encoders },
55790 validators: { ...Vx.validators, ...i.validators },
55791 },
55792 u = a.encoders.name(s),
55793 _ = a.encoders.value(o)
55794 return (a.validators.name(u), a.validators.value(_), `${u}=${_}`)
55795 },
55796 cookie_serialize = (s, o = {}) =>
55797 (Array.isArray(s) ? s : 'object' == typeof s && null !== s ? Object.entries(s) : [])

Callers 1

cookie_serializeFunction · 0.85

Calls 2

nameMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected