MCPcopy
hub / github.com/liuzi6612/nav / handleAdapter

Function handleAdapter

scripts/utils.ts:205–217  ·  view source on GitHub ↗
(item: any)

Source from the content-addressed store, hash-verified

203 }
204
205 function handleAdapter(item: any): void {
206 delete item.collapsed
207 delete item.createdAt
208 if (!item.ownVisible) {
209 delete item.ownVisible
210 }
211 item.id = incrementClassId(item.id)
212 if (item.rId < 0) {
213 item.rId = incrementWebRId(item.rId)
214 }
215 item.icon = replaceJsdelivrCDN(item.icon, settings)
216 item.nav ||= []
217 }
218
219 getMaxWebId(nav)
220

Callers 1

setWebsFunction · 0.85

Calls 3

replaceJsdelivrCDNFunction · 0.90
incrementClassIdFunction · 0.85
incrementWebRIdFunction · 0.85

Tested by

no test coverage detected