Skip to content

Commit

Permalink
use spread properties syntax
Browse files Browse the repository at this point in the history
https://github.com/tc39/proposal-object-rest-spread

[BREAKING] drop support for Node.js < 8
  • Loading branch information
shinnn committed Apr 21, 2018
1 parent 11d796b commit 0af9bef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ module.exports = function globObservable(...args) {
const found = new Set();
const realpathFound = new Set();

const glob = new Glob(pattern, Object.assign({
const glob = new Glob(pattern, {
silent: true,
strict: true
}, options, {realpath: false}));
strict: true,
...options,
realpath: false
});

const fsRealpath = options.realpathCache && Object.keys(options.realpathCache).length !== 0 ?
fsCacheableRealpath :
Expand Down

0 comments on commit 0af9bef

Please sign in to comment.