Skip to content

Commit f9d168a

Browse files
ecmarshSBoudrias
authored andcommitted
Remove object spread to support node >=8.0.0 <8.6.0 (#164)
1 parent 1712928 commit f9d168a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

index.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,10 @@ class UpdateNotifier {
126126
return this;
127127
}
128128

129-
options = {
129+
options = Object.assign({
130130
isGlobal: isInstalledGlobally(),
131-
isYarnGlobal: isYarnGlobal()(),
132-
...options
133-
};
131+
isYarnGlobal: isYarnGlobal()()
132+
}, options);
134133

135134
let installCommand;
136135

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,10 @@
5353
"mock-require": "^3.0.3",
5454
"strip-ansi": "^5.2.0",
5555
"xo": "^0.24.0"
56+
},
57+
"xo": {
58+
"rules": {
59+
"prefer-object-spread": 0
60+
}
5661
}
5762
}

0 commit comments

Comments
 (0)