Skip to content

Commit

Permalink
Remove object spread to support node >=8.0.0 <8.6.0 (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmarsh authored and SBoudrias committed Jul 2, 2019
1 parent 1712928 commit f9d168a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@ class UpdateNotifier {
return this;
}

options = {
options = Object.assign({
isGlobal: isInstalledGlobally(),
isYarnGlobal: isYarnGlobal()(),
...options
};
isYarnGlobal: isYarnGlobal()()
}, options);

let installCommand;

Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,10 @@
"mock-require": "^3.0.3",
"strip-ansi": "^5.2.0",
"xo": "^0.24.0"
},
"xo": {
"rules": {
"prefer-object-spread": 0
}
}
}

0 comments on commit f9d168a

Please sign in to comment.