Skip to content

Commit 6dc42a1

Browse files
author
Benjamin
committed
chore: update dependencies
BREAKING CHANGE: drops Node 4 support
1 parent 77ae1d4 commit 6dc42a1

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: node_js
22
os:
33
- linux
44
node_js:
5-
- "4"
65
- "6"
6+
- "8"
77
- "node"
88
after_script: npm run coverage

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,22 @@
2626
"author": "Ben Coe <ben@npmjs.com>",
2727
"license": "ISC",
2828
"devDependencies": {
29-
"chai": "^3.5.0",
30-
"coveralls": "^2.11.12",
31-
"mocha": "^3.0.1",
32-
"nyc": "^11.4.1",
33-
"standard": "^10.0.2",
34-
"standard-version": "^4.3.0"
29+
"chai": "^4.2.0",
30+
"coveralls": "^3.0.2",
31+
"mocha": "^5.2.0",
32+
"nyc": "^13.0.1",
33+
"standard": "^12.0.1",
34+
"standard-version": "^4.4.0"
3535
},
3636
"dependencies": {
37-
"camelcase": "^4.1.0",
38-
"decamelize": "^2.0.0"
37+
"camelcase": "^5.0.0",
38+
"decamelize": "^1.2.0"
3939
},
4040
"files": [
4141
"lib",
4242
"index.js"
43-
]
43+
],
44+
"engine": {
45+
"node": ">=6"
46+
}
4447
}

test/yargs-parser.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe('yargs-parser', function () {
146146
'--other', '-99', '-220'
147147
], {
148148
array: 'bounds',
149-
narg: {'other': 2}
149+
narg: { 'other': 2 }
150150
})
151151

152152
argv._.should.deep.equal([-33, -177, 33])
@@ -1419,12 +1419,12 @@ describe('yargs-parser', function () {
14191419

14201420
describe('array', function () {
14211421
it('should group values into an array if the same option is specified multiple times (duplicate-arguments-array=true)', function () {
1422-
var parse = parser(['-v', 'a', '-v', 'b', '-v', 'c'], {configuration: {'duplicate-arguments-array': true}})
1422+
var parse = parser(['-v', 'a', '-v', 'b', '-v', 'c'], { configuration: { 'duplicate-arguments-array': true } })
14231423
parse.should.have.property('v').and.deep.equal(['a', 'b', 'c'])
14241424
parse.should.have.property('_').with.length(0)
14251425
})
14261426
it('should keep only the last value if the same option is specified multiple times (duplicate-arguments-false)', function () {
1427-
var parse = parser(['-v', 'a', '-v', 'b', '-v', 'c'], {configuration: {'duplicate-arguments-array': false}})
1427+
var parse = parser(['-v', 'a', '-v', 'b', '-v', 'c'], { configuration: { 'duplicate-arguments-array': false } })
14281428
parse.should.have.property('v').and.equal('c')
14291429
parse.should.have.property('_').with.length(0)
14301430
})
@@ -1503,8 +1503,8 @@ describe('yargs-parser', function () {
15031503
var result = parser(['-a=hello', 'world', '-b',
15041504
'33', '22', '--foo', 'red', 'green',
15051505
'--bar=cat', 'dog'], {
1506-
array: ['a', 'b', 'foo', 'bar']
1507-
})
1506+
array: ['a', 'b', 'foo', 'bar']
1507+
})
15081508

15091509
Array.isArray(result.a).should.equal(true)
15101510
result.a.should.include('hello')
@@ -2166,7 +2166,7 @@ describe('yargs-parser', function () {
21662166
}
21672167
})
21682168

2169-
parsed['x'].should.deep.equal({foo: ['a', 'b']})
2169+
parsed['x'].should.deep.equal({ foo: ['a', 'b'] })
21702170
})
21712171
})
21722172

@@ -2400,13 +2400,13 @@ describe('yargs-parser', function () {
24002400
number: ['d'],
24012401
count: ['e'],
24022402
normalize: ['f'],
2403-
narg: {g: 2},
2403+
narg: { g: 2 },
24042404
coerce: {
24052405
h: function (arg) {
24062406
return arg
24072407
}
24082408
},
2409-
configuration: {'set-placeholder-key': true}
2409+
configuration: { 'set-placeholder-key': true }
24102410
})
24112411
parsed.should.have.property('a')
24122412
expect(parsed.a).to.be.equal(undefined)
@@ -2427,8 +2427,8 @@ describe('yargs-parser', function () {
24272427
it('should not set placeholder for key with a default value', function () {
24282428
var parsed = parser([], {
24292429
string: ['a'],
2430-
default: {a: 'hello'},
2431-
configuration: {'set-placeholder-key': true}
2430+
default: { a: 'hello' },
2431+
configuration: { 'set-placeholder-key': true }
24322432
})
24332433
parsed.a.should.equal('hello')
24342434
})
@@ -2639,7 +2639,7 @@ describe('yargs-parser', function () {
26392639
var argv = parser([ '--foo', 'bar' ], {
26402640
array: ['a'],
26412641
normalize: ['a'],
2642-
configObjects: [{'a': ['bin/../a.txt', 'bin/../b.txt']}]
2642+
configObjects: [{ 'a': ['bin/../a.txt', 'bin/../b.txt'] }]
26432643
})
26442644
argv.a.should.deep.equal(['a.txt', 'b.txt'])
26452645
})

0 commit comments

Comments
 (0)