@modernpoacher/deps 2.3.4 → 2.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -110,8 +110,8 @@ export function use (key) {
110
110
  function write (v) {
111
111
  const s = v.trim()
112
112
  if (s) {
113
- const d = resolve(normalize(s))
114
- if (d.startsWith(HOME)) {
113
+ if (s.startsWith(HOME)) {
114
+ const d = resolve(normalize(s))
115
115
  log(d.replace(new RegExp('^' + HOME), '~'))
116
116
  } else {
117
117
  log(v.trimEnd())
@@ -134,8 +134,8 @@ export function out (key, directory) {
134
134
  function write (v) {
135
135
  const s = v.trim()
136
136
  if (s) {
137
- const d = resolve(normalize(s))
138
- if (d.startsWith(HOME)) {
137
+ if (s.startsWith(HOME)) {
138
+ const d = resolve(normalize(s))
139
139
  log(d.replace(new RegExp('^' + HOME), '~'))
140
140
  } else {
141
141
  log(v.trimEnd())
@@ -183,8 +183,8 @@ export function err (key, directory) {
183
183
  function write (v) {
184
184
  const s = v.trim()
185
185
  if (s) {
186
- const d = resolve(normalize(s))
187
- if (d.startsWith(HOME)) {
186
+ if (s.startsWith(HOME)) {
187
+ const d = resolve(normalize(s))
188
188
  log(d.replace(new RegExp('^' + HOME), '~'))
189
189
  } else {
190
190
  log(v.trimEnd())