MCPcopy Create free account
hub / github.com/TanStack/devtools / makeLists

Function makeLists

examples/react/basic/src/package-json-panel.tsx:190–203  ·  view source on GitHub ↗
(names?: Array<string>)

Source from the content-addressed store, hash-verified

188 }
189
190 const makeLists = (names?: Array<string>) => {
191 const entries = Object.entries(outdatedDeps).filter(
192 ([n]) => !names || names.includes(n),
193 )
194 const wantedList = entries.map(([name, info]) => ({
195 name,
196 target: info.wanted,
197 }))
198 const latestList = entries.map(([name, info]) => ({
199 name,
200 target: info.latest,
201 }))
202 return { wantedList, latestList }
203 }
204
205 const BulkActions = ({ names }: { names?: Array<string> }) => {
206 const { wantedList, latestList } = makeLists(names)

Callers 1

BulkActionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected