@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
|
@@ -110,8 +110,8 @@ export function use (key) {
|
|
|
110
110
|
function write (v) {
|
|
111
111
|
const s = v.trim()
|
|
112
112
|
if (s) {
|
|
113
|
-
|
|
114
|
-
|
|
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())
|
package/src/common/git/index.mjs
CHANGED
|
@@ -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
|
-
|
|
138
|
-
|
|
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
|
-
|
|
187
|
-
|
|
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())
|