update-versions 7.0.4 → 7.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 +8 -6
  4. package/package.json +14 -14
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
@@ -45,6 +45,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
45
45
 
46
46
  MIT License.
47
47
 
48
- Copyright © 2010-2024 Roy Revelt and other contributors.
48
+ Copyright © 2010-2025 Roy Revelt and other contributors.
49
49
 
50
50
  <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
@@ -77,7 +77,7 @@ if (cli.flags) {
77
77
  // -----------------------------------------------------------------------------
78
78
 
79
79
  (async () => {
80
- // we'll use the object below to distill all unique package updates
80
+ // we'll use the object below to distil all unique package updates
81
81
  let updatedPackages = {};
82
82
  function printUpdated() {
83
83
  return Object.keys(updatedPackages)
@@ -109,7 +109,8 @@ if (cli.flags) {
109
109
  // try to read the local config if it's present
110
110
  try {
111
111
  newConfig = JSON.parse(readFileSync(confLocation, "utf8"));
112
- } catch (err) {
112
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
113
+ } catch (e) {
113
114
  console.log(
114
115
  `\n${messagePrefix}${`\u001b[${90}m${"No config found, moving on."}\u001b[${39}m`}\n`,
115
116
  );
@@ -175,7 +176,7 @@ if (cli.flags) {
175
176
  //
176
177
  //
177
178
  //
178
- // 1. LOOKUP OF ALL DEPS & DEVDEPS ALL AT ONCE
179
+ // 1. LOOKUP OF ALL DEPS & DEV-DEPS ALL AT ONCE
179
180
  //
180
181
  //
181
182
  //
@@ -222,7 +223,8 @@ if (cli.flags) {
222
223
  }
223
224
  }
224
225
  });
225
- } catch (err) {
226
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
227
+ } catch (e) {
226
228
  // no response from npm
227
229
  compiledDepNameVersionPairs[singleDepName] = null;
228
230
  }
@@ -371,12 +373,12 @@ if (cli.flags) {
371
373
  if (isPlainObject(parsedContents.dependencies)) {
372
374
  Object.keys(parsedContents.dependencies).forEach((depName) => {
373
375
  if (keys.includes(depName)) {
374
- // 1. delete devdep entry on JSON string
376
+ // 1. delete dev-dep entry on JSON string
375
377
  finalContents = del(
376
378
  finalContents,
377
379
  `devDependencies.${depName}`,
378
380
  );
379
- // 2. delete the devdep from parsedContents.devDependencies
381
+ // 2. delete the dev-dep from parsedContents.devDependencies
380
382
  // key array which will be used to traverse in the loop later
381
383
  keys = keys.filter((val) => val !== depName);
382
384
  // 3. set the flag to activate the file write operation later
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "update-versions",
3
- "version": "7.0.4",
3
+ "version": "7.0.10",
4
4
  "description": "Like npm-check-updates but supports Lerna monorepos and enforces strict semver values",
5
5
  "keywords": [
6
6
  "app",
@@ -26,7 +26,7 @@
26
26
  "homepage": "https://codsen.com/os/update-versions",
27
27
  "repository": {
28
28
  "type": "git",
29
- "url": "https://github.com/codsen/codsen.git",
29
+ "url": "git+https://github.com/codsen/codsen.git",
30
30
  "directory": "packages/update-versions"
31
31
  },
32
32
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "examples": "exit 0",
50
50
  "lect": "node '../../ops/lect/lect.js'",
51
51
  "letspublish": "npm publish || :",
52
- "lint": "eslint . --ext .js --ext .ts --fix",
52
+ "lint": "eslint . --fix",
53
53
  "perf": "exit 0",
54
54
  "prep": "echo 'ready'",
55
55
  "prettier": "prettier",
@@ -76,22 +76,22 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "ansi-diff-stream": "^1.2.1",
79
- "codsen-utils": "^1.6.4",
80
- "edit-package-json": "^0.8.21",
81
- "globby": "^14.0.1",
82
- "is-online": "^10.0.0",
83
- "log-update": "^6.0.0",
79
+ "codsen-utils": "^1.6.8",
80
+ "edit-package-json": "^0.8.27",
81
+ "globby": "^14.1.0",
82
+ "is-online": "^11.0.0",
83
+ "log-update": "^6.1.0",
84
84
  "meow": "^13.2.0",
85
85
  "object-path": "^0.11.8",
86
- "p-map": "^7.0.2",
86
+ "p-map": "^7.0.3",
87
87
  "p-progress": "^1.0.0",
88
88
  "p-reduce": "^3.0.0",
89
- "pacote": "^18.0.6",
90
- "update-notifier": "^7.0.0",
91
- "write-file-atomic": "^5.0.1"
89
+ "pacote": "^21.0.0",
90
+ "update-notifier": "^7.3.1",
91
+ "write-file-atomic": "^6.0.0"
92
92
  },
93
93
  "devDependencies": {
94
- "fs-extra": "^11.2.0",
95
- "rfdc": "^1.3.1"
94
+ "fs-extra": "^11.3.0",
95
+ "rfdc": "^1.4.1"
96
96
  }
97
97
  }