MCPcopy Index your code
hub / github.com/MALSync/MALSync / generateSync

Function generateSync

src/utils/syncHandler.ts:18–36  ·  view source on GitHub ↗
(
  masterList: object,
  slaveLists: object[],
  mode,
  typeArray,
  list,
  missing,
)

Source from the content-addressed store, hash-verified

16import { status } from '../_provider/definitions';
17
18export function generateSync(
19 masterList: object,
20 slaveLists: object[],
21 mode,
22 typeArray,
23 list,
24 missing,
25) {
26 mapToArray(masterList, list, true);
27
28 for (const i in slaveLists) {
29 mapToArray(slaveLists[i], list, false);
30 }
31
32 for (const i in list) {
33 changeCheck(list[i], mode);
34 missingCheck(list[i], missing, typeArray, mode);
35 }
36}
37
38export function getType(url) {
39 if (utils.isDomainMatching(url, 'anilist.co')) return 'ANILIST';

Callers 1

syncListsFunction · 0.85

Calls 3

mapToArrayFunction · 0.85
changeCheckFunction · 0.85
missingCheckFunction · 0.85

Tested by

no test coverage detected