We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a0003 commit d24eeb2Copy full SHA for d24eeb2
lib/translators/npm.js
@@ -38,7 +38,7 @@ class NpmTranslator {
38
// https://github.com/npm/normalize-package-data#what-normalization-currently-entails
39
// Note: optionalDependencies are treated the same as devDependencies in the npm translator
40
if (pkg.optionalDependencies) {
41
- for (let depName in pkg.optionalDependencies) {
+ for (const depName in pkg.optionalDependencies) {
42
if (pkg.optionalDependencies.hasOwnProperty(depName)) {
43
// Remove entry from "hard" dependencies map
44
if (dependencies[depName]) {
0 commit comments