@modernpoacher/deps 2.3.2 → 2.3.3
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
|
@@ -108,7 +108,13 @@ export function use (key) {
|
|
|
108
108
|
* @returns {void}
|
|
109
109
|
*/
|
|
110
110
|
function write (v) {
|
|
111
|
-
if (v.trim())
|
|
111
|
+
if (v.trim()) {
|
|
112
|
+
if (v.trimStart().startsWith(HOME)) {
|
|
113
|
+
log(formatDirectory(v))
|
|
114
|
+
} else {
|
|
115
|
+
log(v.trimEnd())
|
|
116
|
+
}
|
|
117
|
+
}
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
/**
|
package/src/common/git/index.mjs
CHANGED
|
@@ -23,7 +23,8 @@ import debug from '#deps/src/common/debug'
|
|
|
23
23
|
|
|
24
24
|
import {
|
|
25
25
|
BIN,
|
|
26
|
-
PLATFORM
|
|
26
|
+
PLATFORM,
|
|
27
|
+
HOME
|
|
27
28
|
} from '#deps/src/common/env'
|
|
28
29
|
|
|
29
30
|
import {
|
|
@@ -131,7 +132,13 @@ export function out (key, directory) {
|
|
|
131
132
|
* @returns {void}
|
|
132
133
|
*/
|
|
133
134
|
function write (v) {
|
|
134
|
-
if (v.trim())
|
|
135
|
+
if (v.trim()) {
|
|
136
|
+
if (v.trimStart().startsWith(HOME)) {
|
|
137
|
+
log(formatDirectory(v))
|
|
138
|
+
} else {
|
|
139
|
+
log(v.trimEnd())
|
|
140
|
+
}
|
|
141
|
+
}
|
|
135
142
|
}
|
|
136
143
|
|
|
137
144
|
return function out (value) {
|
|
@@ -168,7 +175,13 @@ export function err (key, directory) {
|
|
|
168
175
|
* @returns {void}
|
|
169
176
|
*/
|
|
170
177
|
function write (v) {
|
|
171
|
-
if (v.trim())
|
|
178
|
+
if (v.trim()) {
|
|
179
|
+
if (v.trimStart().startsWith(HOME)) {
|
|
180
|
+
log(formatDirectory(v))
|
|
181
|
+
} else {
|
|
182
|
+
log(v.trimEnd())
|
|
183
|
+
}
|
|
184
|
+
}
|
|
172
185
|
}
|
|
173
186
|
|
|
174
187
|
return function err (value) {
|