Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dictionary: new Array(),
media: new Array(),
appName: manifestSourceData.appName,
language: manifestSourceData.language,
renderings: new Array(),
wipeExisting: manifestSourceData.wipe,
rootPlaceholders: manifestSourceData.rootPlaceholders,
},
};
const pipeline = { ...pipelines.generateManifest };
pipeline.args = {
...pipeline.args,
...pipelineArgs,
};
const result = await runPipeline(pipeline);
const { items, dictionary, ...output } = result.pipelineResult;
// exclude items and media here as opposed to preventing them from being generated in
// the manifest because some processors/pipelines may rely on generated manifest data
if (!excludeItems) {
output.items = items;
}
if (!excludeDictionary) {
output.dictionary = dictionary;
}
return output as ManifestInstance;
};