@datatruck/cli 0.16.2 → 0.17.1

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.
@@ -12,7 +12,12 @@ const CommandAbstract_1 = require("./CommandAbstract");
12
12
  const pretty_bytes_1 = __importDefault(require("pretty-bytes"));
13
13
  class SnapshotsCommand extends CommandAbstract_1.CommandAbstract {
14
14
  onOptions() {
15
- const groupByValues = ["packageName", "repositoryName", "repositoryType"];
15
+ const groupByValues = [
16
+ "id",
17
+ "packageName",
18
+ "repositoryName",
19
+ "repositoryType",
20
+ ];
16
21
  return this.returnsOptions({
17
22
  groupBy: {
18
23
  option: "-g,--group-by <values>",
package/cli.js CHANGED
@@ -68,7 +68,7 @@ function makeCommandAction(command) {
68
68
  }
69
69
  }
70
70
  }
71
- process.exit(exitCode);
71
+ process.stdout.write("", () => process.exit(exitCode));
72
72
  };
73
73
  }
74
74
  const program = new commander_1.Command();
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@datatruck/cli",
3
- "version": "0.16.2",
3
+ "version": "0.17.1",
4
4
  "dependencies": {
5
5
  "ajv": "^8.11.2",
6
6
  "async": "^3.2.4",
7
7
  "chalk": "^4.1.2",
8
8
  "cli-table3": "^0.6.3",
9
9
  "commander": "^9.4.1",
10
- "dayjs": "^1.11.6",
10
+ "dayjs": "^1.11.7",
11
11
  "fast-folder-size": "^1.7.1",
12
12
  "fast-glob": "^3.2.12",
13
13
  "micromatch": "^4.0.5",
14
14
  "pretty-bytes": "^5.6.0",
15
15
  "sqlite": "^4.1.2",
16
- "sqlite3": "^5.1.2"
16
+ "sqlite3": "^5.1.4"
17
17
  },
18
18
  "optionalDependencies": {
19
19
  "ts-node": "^10.9.1",
20
- "yaml": "^2.1.3"
20
+ "yaml": "^2.2.0"
21
21
  },
22
22
  "engine": {
23
23
  "node": ">=16.0.0"
@@ -20,8 +20,12 @@ class DataFormat {
20
20
  }
21
21
  formatToPrettyJson() {
22
22
  return (0, util_1.formatWithOptions)({
23
- colors: true,
24
23
  depth: Infinity,
24
+ colors: true,
25
+ maxArrayLength: Infinity,
26
+ maxStringLength: Infinity,
27
+ breakLength: Infinity,
28
+ compact: false,
25
29
  }, this.options.items);
26
30
  }
27
31
  formatToYaml() {
@@ -17,7 +17,7 @@ function filterRepository(repository, action) {
17
17
  if (typeof enabled === "boolean")
18
18
  return enabled;
19
19
  const defaults = enabled["defaults"] ?? true;
20
- return action ? enabled[action] ?? defaults : defaults;
20
+ return action ? enabled[action] ?? defaults : true;
21
21
  }
22
22
  exports.filterRepository = filterRepository;
23
23
  function filterPackages(config, options) {