update-versions 6.0.6 → 6.0.8

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2022 Roy Revelt and other contributors
3
+ Copyright (c) 2010-2023 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-2022 Roy Revelt and other contributors.
48
+ Copyright © 2010-2023 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
@@ -12,7 +12,7 @@ import diff1 from "ansi-diff-stream";
12
12
  import objectPath from "object-path";
13
13
  import write from "write-file-atomic";
14
14
  import { createRequire } from "module";
15
- import isObj from "lodash.isplainobject";
15
+ import { isPlainObject } from "codsen-utils";
16
16
  import { promises, readFileSync } from "fs";
17
17
  import { set, del } from "edit-package-json";
18
18
  import updateNotifier from "update-notifier";
@@ -159,11 +159,11 @@ if (cli.flags) {
159
159
  let parsedContents = pathsPromise.contentsObj[oneOfPaths];
160
160
 
161
161
  let totalDeps = (
162
- isObj(parsedContents.dependencies)
162
+ isPlainObject(parsedContents.dependencies)
163
163
  ? Object.keys(parsedContents.dependencies)
164
164
  : []
165
165
  ).concat(
166
- isObj(parsedContents.devDependencies)
166
+ isPlainObject(parsedContents.devDependencies)
167
167
  ? Object.keys(parsedContents.devDependencies)
168
168
  : []
169
169
  );
@@ -259,7 +259,7 @@ if (cli.flags) {
259
259
  //
260
260
  //
261
261
 
262
- if (isObj(parsedContents.dependencies)) {
262
+ if (isPlainObject(parsedContents.dependencies)) {
263
263
  let keys = Object.keys(parsedContents.dependencies);
264
264
  for (let y = 0, len2 = keys.length; y < len2; y++) {
265
265
  // delete this dependency from lect.various.devDependencies if present
@@ -364,11 +364,11 @@ if (cli.flags) {
364
364
  //
365
365
  //
366
366
 
367
- if (isObj(parsedContents.devDependencies)) {
367
+ if (isPlainObject(parsedContents.devDependencies)) {
368
368
  let keys = Object.keys(parsedContents.devDependencies);
369
369
  // 1. first, remove deps which if they are in normal dependencies in
370
370
  // package.json, that's our value parsedContents.dependencies
371
- if (isObj(parsedContents.dependencies)) {
371
+ if (isPlainObject(parsedContents.dependencies)) {
372
372
  Object.keys(parsedContents.dependencies).forEach((depName) => {
373
373
  if (keys.includes(depName)) {
374
374
  // 1. delete devdep entry on JSON string
@@ -446,7 +446,7 @@ if (cli.flags) {
446
446
  }
447
447
 
448
448
  if (
449
- isObj(parsedContents) &&
449
+ isPlainObject(parsedContents) &&
450
450
  Object.prototype.hasOwnProperty.call(parsedContents, "gitHead")
451
451
  ) {
452
452
  finalContents = del(finalContents, "gitHead");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "update-versions",
3
- "version": "6.0.6",
3
+ "version": "6.0.8",
4
4
  "description": "Like npm-check-updates but supports Lerna monorepos and enforces strict semver values",
5
5
  "keywords": [
6
6
  "app",
@@ -54,7 +54,7 @@
54
54
  "prep": "echo 'ready'",
55
55
  "prettier": "prettier",
56
56
  "prettier:format": "npm run prettier -- --write '**/*.{js,md}' --no-error-on-unmatched-pattern --loglevel 'silent'",
57
- "pretest": "echo 0",
57
+ "pretest": "exit 0",
58
58
  "test": "c8 npm run unit && npm run lint",
59
59
  "unit": "uvu test"
60
60
  },
@@ -77,7 +77,7 @@
77
77
  "dependencies": {
78
78
  "ansi-diff-stream": "^1.2.1",
79
79
  "codsen-utils": "^1.2.0",
80
- "edit-package-json": "^0.8.6",
80
+ "edit-package-json": "^0.8.8",
81
81
  "globby": "^13.1.3",
82
82
  "is-online": "^10.0.0",
83
83
  "log-update": "^5.0.1",