Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
([_definition, node]) => {
const transformedNode =
moduleMap != null ? CodeMarker.transform(node, moduleMap) : node;
documentMap[
node.kind === 'Request' ? node.params.name : node.name
] = transformedNode;
},
);