MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / getCurVerCollections

Method getCurVerCollections

lib/modCheckLib.js:545–560  ·  view source on GitHub ↗
(ver)

Source from the content-addressed store, hash-verified

543 }
544
545 getCurVerCollections(ver) {
546 const folderData = []
547 for ( const [CKey, status] of Object.entries(this.#map_CollectionToStatus) ) {
548 if ( status && this.version(CKey) === ver ) {
549 if ( typeof this.mapCollectionToName(CKey) === 'undefined' ) { continue }
550 folderData.push([
551 CKey,
552 this.mapCollectionToName(CKey),
553 this.mapCollectionToFullName(CKey),
554 this.getSafeDate(CKey, 'add_date'),
555 this.getSafeDate(CKey, 'last')
556 ])
557 }
558 }
559 return folderData.sort((a, b) => Intl.Collator().compare(a[1], b[1]))
560 }
561
562 /**
563 * Add a collection

Callers 1

trayContextMenuMethod · 0.80

Calls 4

versionMethod · 0.95
mapCollectionToNameMethod · 0.95
getSafeDateMethod · 0.95

Tested by

no test coverage detected