Skip to content

Commit f13ebf4

Browse files
authored
fix: .argv and .parse() now invoke identical code path (#1126)
1 parent 458e894 commit f13ebf4

13 files changed

Lines changed: 1355 additions & 1357 deletions

lib/levenshtein.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ module.exports = function levenshtein (a, b) {
3737
matrix[i][j] = matrix[i - 1][j - 1]
3838
} else {
3939
matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // substitution
40-
Math.min(matrix[i][j - 1] + 1, // insertion
41-
matrix[i - 1][j] + 1)) // deletion
40+
Math.min(matrix[i][j - 1] + 1, // insertion
41+
matrix[i - 1][j] + 1)) // deletion
4242
}
4343
}
4444
}

lib/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function validation (yargs, usage, y18n) {
3737
)
3838
} else {
3939
usage.fail(
40-
__('Too many non-option arguments: got %s, maximum of %s', _s, demandedCommands._.max)
40+
__('Too many non-option arguments: got %s, maximum of %s', _s, demandedCommands._.max)
4141
)
4242
}
4343
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
"devDependencies": {
2929
"chai": "^4.1.2",
3030
"chalk": "^1.1.3",
31-
"coveralls": "^2.11.11",
31+
"coveralls": "^3.0.1",
3232
"cpr": "^2.0.0",
3333
"cross-spawn": "^6.0.4",
3434
"es6-promise": "^4.0.2",
3535
"hashish": "0.0.4",
36-
"mocha": "^3.0.1",
37-
"nyc": "^11.2.1",
36+
"mocha": "^5.1.1",
37+
"nyc": "^11.7.3",
3838
"rimraf": "^2.5.0",
39-
"standard": "^8.6.0",
39+
"standard": "^11.0.1",
4040
"standard-version": "^4.2.0",
4141
"which": "^1.2.9",
4242
"yargs-test-extends": "^1.0.1"

0 commit comments

Comments
 (0)