@andersbakken/fisk 4.0.6 → 4.0.9

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.
@@ -55104,7 +55104,9 @@ function getFromCache(job, cb) {
55104
55104
  const environments = {};
55105
55105
  const client = new Client(option, common.Version);
55106
55106
  client.on("objectCache", (enabled) => {
55107
- const objectCacheSize = bytesExports.parse(Number(option("object-cache-size")));
55107
+ const size = option("object-cache-size");
55108
+ const objectCacheSize = typeof size === "number" ? size : bytesExports.parse(String(size));
55109
+ console.log("got object cache", enabled, objectCacheSize, option("object-cache-size"));
55108
55110
  if (enabled && objectCacheSize) {
55109
55111
  const objectCacheDir = stringOrUndefined(option("object-cache-dir")) || path__default["default"].join(common.cacheDir(), "objectcache");
55110
55112
  objectCache = new ObjectCache(objectCacheDir, objectCacheSize, option.int("object-cache-purge-size") || objectCacheSize);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andersbakken/fisk",
3
- "version": "4.0.6",
3
+ "version": "4.0.9",
4
4
  "description": "Fisk, a distributed compile system",
5
5
  "scripts": {
6
6
  "lint": "eslint . --ext .ts",
@@ -53477,9 +53477,9 @@ var options = function(options, argv) {
53477
53477
  };
53478
53478
 
53479
53479
  const option = options({
53480
- prefix: "fisk/builder",
53480
+ prefix: "fisk/scheduler",
53481
53481
  noApplicationPath: true,
53482
- additionalFiles: ["fisk/builder.conf.override"]
53482
+ additionalFiles: ["fisk/scheduler.conf.override"]
53483
53483
  });
53484
53484
  const common = common$1(option);
53485
53485
  const server = new Server(option, common.Version);