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

Function makeLists

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

Source from the content-addressed store, hash-verified

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

Callers 1

BulkActionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected