MCPcopy Index your code
hub / github.com/dataease/SQLBot / getDefinitionsByNames

Function getDefinitionsByNames

frontend/public/swagger-ui-bundle.js:32086–32112  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

32084 ),
32085 getDefinitionsByNames =
32086 (s, o) =>
32087 ({ specSelectors: s }) => {
32088 console.warn(
32089 'WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.'
32090 )
32091 let i = s.securityDefinitions(),
32092 a = (0, ze.List)()
32093 return (
32094 o.valueSeq().forEach((s) => {
32095 let o = (0, ze.Map)()
32096 ;(s.entrySeq().forEach(([s, a]) => {
32097 let u,
32098 _ = i.get(s)
32099 ;('oauth2' === _.get('type') &&
32100 a.size &&
32101 ((u = _.get('scopes')),
32102 u.keySeq().forEach((s) => {
32103 a.contains(s) || (u = u.delete(s))
32104 }),
32105 (_ = _.set('allowedScopes', u))),
32106 (o = o.set(s, _)))
32107 }),
32108 (a = a.push(o)))
32109 }),
32110 a
32111 )
32112 },
32113 definitionsForRequirements =
32114 (s, o = (0, ze.List)()) =>
32115 ({ authSelectors: s }) => {

Callers

nothing calls this directly

Calls 6

containsMethod · 0.80
getMethod · 0.65
forEachMethod · 0.45
deleteMethod · 0.45
setMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected