avo 3.2.13 → 3.2.14

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/cli.js +6 -2
  2. package/package.json +4 -4
package/cli.js CHANGED
@@ -1104,7 +1104,7 @@ function status(source, json, argv) {
1104
1104
  .map((resultPath) => pify(fs.lstat)(resultPath)
1105
1105
  .then((stats) => {
1106
1106
  if (stats.isSymbolicLink()) {
1107
- return [];
1107
+ return null;
1108
1108
  }
1109
1109
  return pify(fs.readFile)(resultPath, 'utf8')
1110
1110
  .then((data) => [resultPath, data])
@@ -1112,13 +1112,17 @@ function status(source, json, argv) {
1112
1112
  if (argv.verbose) {
1113
1113
  report.warn(`Failed to parse file: ${resultPath}`);
1114
1114
  }
1115
+ return null;
1115
1116
  });
1116
1117
  })
1117
1118
  .catch(() => {
1118
1119
  if (argv.verbose) {
1119
1120
  report.warn(`Failed to read file stats: ${resultPath}`);
1120
1121
  }
1121
- }))).then((cachePairs) => Object.fromEntries(cachePairs)));
1122
+ return null;
1123
+ }))).then((cachePairs) =>
1124
+ // Filter out null values and create object from valid pairs
1125
+ Object.fromEntries(cachePairs.filter((pair) => pair != null))));
1122
1126
  fileCache
1123
1127
  .then((cache) => {
1124
1128
  sources = Promise.all(sources.map((source) => pify(fs.readFile)(source.path, 'utf8').then((data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "avo",
3
- "version": "3.2.13",
3
+ "version": "3.2.14",
4
4
  "type": "module",
5
5
  "description": "The command-line interface for Avo",
6
6
  "author": "Avo (https://www.avo.app)",
@@ -57,14 +57,14 @@
57
57
  "devDependencies": {
58
58
  "@types/ignore-walk": "^4.0.0",
59
59
  "@types/minimatch": "^5.1.2",
60
- "@types/node": "^20.1.0",
60
+ "@types/node": "^22.10.5",
61
61
  "@typescript-eslint/eslint-plugin": "^5.30.5",
62
62
  "@typescript-eslint/parser": "^5.30.5",
63
63
  "eslint": "^7.32.0 || ^8.2.0",
64
64
  "eslint-config-airbnb-base": "^15.0.0",
65
- "eslint-config-prettier": "^9.0.0",
65
+ "eslint-config-prettier": "^10.0.1",
66
66
  "eslint-plugin-import": "^2.25.2",
67
- "prettier": "3.3.3",
67
+ "prettier": "3.4.2",
68
68
  "typescript": "^5.0.2"
69
69
  }
70
70
  }