json-sort-cli 4.0.4 → 4.0.10

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 (4) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/cli.js +3 -3
  4. package/package.json +11 -11
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2024 Roy Revelt and other contributors
3
+ Copyright (c) 2010-2025 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -46,6 +46,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
46
46
 
47
47
  MIT License.
48
48
 
49
- Copyright © 2010-2024 Roy Revelt and other contributors.
49
+ Copyright © 2010-2025 Roy Revelt and other contributors.
50
50
 
51
51
  <p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
package/cli.js CHANGED
@@ -403,7 +403,7 @@ globby(input, { dot: true })
403
403
  );
404
404
  }),
405
405
  )
406
- // eslint-disable-next-line consistent-return
406
+
407
407
  .then((paths) => {
408
408
  if (cli.flags.dry && !cli.flags.silent) {
409
409
  log(
@@ -464,11 +464,11 @@ globby(input, { dot: true })
464
464
  if (!cli.flags.silent) {
465
465
  log(
466
466
  `\n${chalk.grey(prefix)}${chalk.green(
467
- `${counter.bad && counter.bad.length === 0 ? "All " : ""}${
467
+ `${counter?.bad.length === 0 ? "All " : ""}${
468
468
  counter.good.length
469
469
  } files sorted`,
470
470
  )}${
471
- counter.bad && counter.bad.length
471
+ counter?.bad.length
472
472
  ? `\n${chalk.grey(prefix)}${chalk.red(
473
473
  `${counter.bad.length} file${
474
474
  counter.bad.length === 1 ? "" : "s"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-sort-cli",
3
- "version": "4.0.4",
3
+ "version": "4.0.10",
4
4
  "description": "Command line app to deep sort JSON files, retains package.json special key order",
5
5
  "keywords": [
6
6
  "app",
@@ -17,7 +17,7 @@
17
17
  "homepage": "https://codsen.com/os/json-sort-cli",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "https://github.com/codsen/codsen.git",
20
+ "url": "git+https://github.com/codsen/codsen.git",
21
21
  "directory": "packages/json-sort-cli"
22
22
  },
23
23
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "examples": "exit 0",
42
42
  "lect": "node '../../ops/lect/lect.js'",
43
43
  "letspublish": "npm publish || :",
44
- "lint": "eslint . --ext .js --ext .ts --fix",
44
+ "lint": "eslint . --fix",
45
45
  "perf": "exit 0",
46
46
  "prep": "echo 'ready'",
47
47
  "prettier": "prettier",
@@ -67,19 +67,19 @@
67
67
  }
68
68
  },
69
69
  "dependencies": {
70
- "ast-monkey-traverse": "^4.0.16",
71
- "chalk": "^5.3.0",
72
- "codsen-utils": "^1.6.4",
73
- "fs-extra": "^11.2.0",
74
- "globby": "^14.0.1",
70
+ "ast-monkey-traverse": "^4.0.20",
71
+ "chalk": "^5.4.1",
72
+ "codsen-utils": "^1.6.8",
73
+ "fs-extra": "^11.3.0",
74
+ "globby": "^14.1.0",
75
75
  "is-d": "^1.0.0",
76
76
  "meow": "^13.2.0",
77
77
  "p-filter": "^4.1.0",
78
78
  "p-reduce": "^3.0.0",
79
- "sort-package-json": "^2.10.0",
80
- "update-notifier": "^7.0.0"
79
+ "sort-package-json": "^3.4.0",
80
+ "update-notifier": "^7.3.1"
81
81
  },
82
82
  "devDependencies": {
83
- "p-map": "^7.0.2"
83
+ "p-map": "^7.0.3"
84
84
  }
85
85
  }