Skip to content

Commit a0ed7cc

Browse files
coreyfarrellsindresorhus
authored andcommittedApr 9, 2019
Update dependencies, require Node.js 8 (#15)
1 parent 1f96b98 commit a0ed7cc

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed
 

‎.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ language: node_js
22
node_js:
33
- '10'
44
- '8'
5-
- '6'
65
after_script:
76
- 'cat ./coverage/lcov.info | ./node_modules/.bin/coveralls'

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": "avajs/find-cache-dir",
77
"engines": {
8-
"node": ">=6"
8+
"node": ">=8"
99
},
1010
"scripts": {
1111
"test": "xo && nyc ava"
@@ -23,8 +23,8 @@
2323
],
2424
"dependencies": {
2525
"commondir": "^1.0.1",
26-
"make-dir": "^2.0.0",
27-
"pkg-dir": "^3.0.0"
26+
"make-dir": "^3.0.0",
27+
"pkg-dir": "^4.1.0"
2828
},
2929
"devDependencies": {
3030
"ava": "^1.3.1",

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ findCacheDir({name: 'unicorns'});
6060

6161
### findCacheDir([options])
6262

63-
Finds the cache directory using the supplied options. The algorithm tries to find a `package.json` file, searching every parent directory of the `cwd` specified (or implied from other options). It returns a `string` containing the absolute path to the cache directory, or `null` if `package.json` was never found.
63+
Finds the cache directory using the supplied options. The algorithm tries to find a `package.json` file, searching every parent directory of the `cwd` specified (or implied from other options). It returns a `string` containing the absolute path to the cache directory, or `undefined` if `package.json` was never found.
6464

6565
#### options
6666

‎test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test('thunk', t => {
3535
t.is(thunk('bar'), path.join(directory, 'bar'));
3636
});
3737

38-
test('returns null if it can\'t find package.json', t => {
38+
test('returns undefined if it can\'t find package.json', t => {
3939
process.chdir(path.join(__dirname, '..'));
40-
t.is(findCacheDir({name: 'foo'}), null);
40+
t.is(findCacheDir({name: 'foo'}), undefined);
4141
});

0 commit comments

Comments
 (0)
Please sign in to comment.