Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dependencies: Array.from(resultNodeModules).reduce((acc, val) => {
if (applicationPackageJson.dependencies.hasOwnProperty(val)) {
acc[val] = applicationPackageJson.dependencies[val]
} else if (
resolveRuntimePackageJson.dependencies.hasOwnProperty(val) &&
nodeModules.has(val)
) {
acc[val] = resolveRuntimePackageJson.dependencies[val]
}
return acc
}, {})
}
dependencies: Array.from(resultNodeModules).reduce((acc, val) => {
if (applicationPackageJson.dependencies.hasOwnProperty(val)) {
acc[val] = applicationPackageJson.dependencies[val]
} else if (
resolveRuntimePackageJson.dependencies.hasOwnProperty(val) &&
nodeModules.has(val)
) {
acc[val] = resolveRuntimePackageJson.dependencies[val]
}
return acc
}, {})
}