Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
R.chain(thresholds => F.both(getPackageJsonPath(), F.of(thresholds))),
R.chain(R.apply(writeFileF))
R.chain(([coveragePath, configPath]) =>
F.both(
requireF(coveragePath).map(getNewThresholdsFromSummary),
requireF(configPath).map(getCurrentThresholdsFromConfig)
)
),