@ruspetsarhac/client 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruspetsarhac/client",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "main": "src/client.js",
5
5
  "bin": {
6
6
  "client": "./client.js"
package/src/client.js CHANGED
@@ -146,14 +146,14 @@ function startClient(debug = false) {
146
146
  }, 300000);
147
147
  }
148
148
  }, debug);
149
- console.log('test1')
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 {