@andersbakken/fisk 4.0.27 → 4.0.29

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.
@@ -5505,8 +5505,8 @@ function humanizeDuration(age) {
5505
5505
  else {
5506
5506
  units = ["y", "mo", "w", "d"];
5507
5507
  }
5508
- const options = { units, round: true };
5509
- return humanize(age, options);
5508
+ const opts = { units, round: true };
5509
+ return humanize(age, opts);
5510
5510
  }
5511
5511
  const screen = blessed__default["default"].screen({
5512
5512
  smartCSR: true
@@ -5856,8 +5856,12 @@ screen.key(["escape", "q"], () => {
5856
5856
  process.exit();
5857
5857
  }
5858
5858
  });
5859
- screen.key(["right", "l"], () => focusRight());
5860
- screen.key(["left", "h"], () => focusLeft());
5859
+ screen.key(["right", "l"], () => {
5860
+ focusRight();
5861
+ });
5862
+ screen.key(["left", "h"], () => {
5863
+ focusLeft();
5864
+ });
5861
5865
  builderBox.on("click", () => {
5862
5866
  activate(builderBox);
5863
5867
  });
@@ -5875,8 +5879,8 @@ function notify(msg) {
5875
5879
  notifications.push(msg);
5876
5880
  return;
5877
5881
  }
5878
- const notifyNow = (msg) => {
5879
- notificationBox.setContent(msg || "");
5882
+ const notifyNow = (message) => {
5883
+ notificationBox.setContent(message || "");
5880
5884
  screen.render();
5881
5885
  };
5882
5886
  notificationInterval = setInterval(() => {
@@ -5979,16 +5983,16 @@ function updateBuilderBox() {
5979
5983
  selected = match[1];
5980
5984
  }
5981
5985
  let current;
5982
- const items = data.map((item, idx) => {
5983
- if (item[0] === selected) {
5986
+ const items = data.map((itm, idx) => {
5987
+ if (itm[0] === selected) {
5984
5988
  current = idx;
5985
5989
  }
5986
- return (formatCell(item[0], maxWidth[0]) +
5987
- formatCell(item[1], maxWidth[1]) +
5988
- formatCell(item[2], maxWidth[2]) +
5989
- formatCell(item[3], maxWidth[3]) +
5990
- formatCell(item[4], maxWidth[4]) +
5991
- formatCell(item[5], maxWidth[5]));
5990
+ return (formatCell(itm[0], maxWidth[0]) +
5991
+ formatCell(itm[1], maxWidth[1]) +
5992
+ formatCell(itm[2], maxWidth[2]) +
5993
+ formatCell(itm[3], maxWidth[3]) +
5994
+ formatCell(itm[4], maxWidth[4]) +
5995
+ formatCell(itm[5], maxWidth[5]));
5992
5996
  });
5993
5997
  builderBox.setItems(items);
5994
5998
  if (current !== undefined) {
@@ -6036,11 +6040,11 @@ function updateClientBox() {
6036
6040
  selected = match[1];
6037
6041
  }
6038
6042
  let current;
6039
- const items = data.map((item, idx) => {
6040
- if (item[0] === selected) {
6043
+ const items = data.map((itm, idx) => {
6044
+ if (itm[0] === selected) {
6041
6045
  current = idx;
6042
6046
  }
6043
- return formatCell(item[0], maxWidth[0]) + formatCell(item[1], maxWidth[1]) + formatCell(item[2], maxWidth[2]);
6047
+ return formatCell(itm[0], maxWidth[0]) + formatCell(itm[1], maxWidth[1]) + formatCell(itm[2], maxWidth[2]);
6044
6048
  });
6045
6049
  clientBox.setItems(items);
6046
6050
  if (current !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andersbakken/fisk",
3
- "version": "4.0.27",
3
+ "version": "4.0.29",
4
4
  "description": "Fisk, a distributed compile system",
5
5
  "scripts": {
6
6
  "lint": "eslint . --ext .ts",
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@andersbakken/blessed": "^0.1.82",
33
- "@jhanssen/options": "^1.0.34",
33
+ "@jhanssen/options": "^3.0.0",
34
34
  "axios": "^0.21.1",
35
35
  "bufferutil": "^4.0.7",
36
36
  "bytes": "^3.0.0",
@@ -43,7 +43,7 @@
43
43
  "mktemp": "^0.4.0",
44
44
  "posix": "^4.2.0",
45
45
  "pretty-bytes": "^6.0.0",
46
- "typescript": "^4.3.5",
46
+ "typescript": "^5.2.2",
47
47
  "url-parse": "^1.5.10",
48
48
  "utf-8-validate": "^5.0.10",
49
49
  "ws": "^7.4.6"
@@ -62,13 +62,14 @@
62
62
  "@types/posix": "^4.2.0",
63
63
  "@types/url-parse": "^1.4.8",
64
64
  "@types/ws": "^8.5.3",
65
- "@typescript-eslint/eslint-plugin": "^4.33.0",
66
- "@typescript-eslint/parser": "^4.14.2",
65
+ "@typescript-eslint/eslint-plugin": "^6.9.0",
66
+ "@typescript-eslint/parser": "^6.9.0",
67
67
  "del-cli": "^3.0.1",
68
- "eslint": "^7.19.0",
69
- "eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
68
+ "eslint": "^8.52.0",
69
+ "eslint-plugin-import": "^2.29.0",
70
+ "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
70
71
  "npm-run-all": "^4.1.5",
71
- "prettier": "^2.2.1",
72
+ "prettier": "^2.8.2",
72
73
  "rollup": "^2.38.4",
73
74
  "rollup-plugin-hashbang": "^3.0.0",
74
75
  "rollup-plugin-typescript2": "^0.27.0",