@ruspetsarhac/client 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/client.js +2 -2
package/package.json
CHANGED
package/src/client.js
CHANGED
@@ -146,14 +146,14 @@ function startClient(debug = false) {
|
|
146
146
|
}, 300000);
|
147
147
|
}
|
148
148
|
}, debug);
|
149
|
-
|
149
|
+
|
150
150
|
setInterval(() => {
|
151
151
|
updateDependencies(debug);
|
152
152
|
}, 60000);
|
153
153
|
}
|
154
154
|
|
155
155
|
function updateDependencies(debug) {
|
156
|
-
exec('npm update', (error, stdout, stderr) => {
|
156
|
+
exec('npm update', { cwd: currentCwd }, (error, stdout, stderr) => {
|
157
157
|
if (error) {
|
158
158
|
log(`Error updating dependencies: ${stderr}`, debug);
|
159
159
|
} else {
|