omegga 0.1.81 → 0.1.85

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omegga",
3
- "version": "0.1.81",
3
+ "version": "0.1.85",
4
4
  "description": "Brickadia server installer, manager, wrapper, configurator, and automator",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "brs-js": "^2.0.0",
14
14
  "child_process": "^1.0.2",
15
15
  "chokidar": "^3.4.2",
16
- "colors": "^1.4.0",
16
+ "colors": "1.4.0",
17
17
  "commander": "^5.1.0",
18
18
  "configstore": "^5.0.1",
19
19
  "disrequire": "^1.1.1",
@@ -26,7 +26,7 @@
26
26
  "json-rpc-2.0": "^0.2.10",
27
27
  "lodash": "^4.17.20",
28
28
  "nedb-promises": "^5.0.1",
29
- "nedb-promises-session-store": "^1.0.0",
29
+ "nedb-promises-session-store": "1.0.0",
30
30
  "npm": "^7.20.6",
31
31
  "password-prompt": "^1.1.2",
32
32
  "pem": "^1.14.4",
@@ -21,5 +21,6 @@
21
21
  "spectator",
22
22
  "ghost",
23
23
  "ping",
24
- "gettransform"
24
+ "gettransform",
25
+ "back"
25
26
  ]
package/src/util/file.js CHANGED
@@ -2,6 +2,7 @@ const fs = require('fs');
2
2
  const path = require('path');
3
3
  const chokidar = require('chokidar');
4
4
  const rimraf = require('rimraf');
5
+ const _ = require('lodash');
5
6
 
6
7
  // objects to store cached data
7
8
  const cachedTimes = {};
@@ -53,7 +54,7 @@ function readWatchedJSON(file) {
53
54
  const watcher = chokidar.watch(file, { persistent: false });
54
55
  watchers[file] = watcher;
55
56
 
56
- const read = () => updateJSONCache(file);
57
+ const read = _.debounce(() => updateJSONCache(file), 500);
57
58
 
58
59
  // add listeners to the watcher
59
60
  watcher
@@ -65,7 +66,7 @@ function readWatchedJSON(file) {
65
66
  cachedTimes[file] = Date.now();
66
67
  });
67
68
 
68
- return read();
69
+ return updateJSONCache(file);
69
70
  }
70
71
 
71
72
  // recursively mkdir (mkdir -p )