@modernpoacher/deps 2.1.15 → 2.1.16
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/bin/common/index.mjs +1 -3
- package/package.json +1 -1
- package/src/common/git/index.mjs +4 -12
- package/src/index.mjs +1 -3
package/bin/common/index.mjs
CHANGED
package/package.json
CHANGED
package/src/common/git/index.mjs
CHANGED
|
@@ -60,9 +60,7 @@ log(`\`git\` (${VERSION} - ${PLATFORM}) is awake`)
|
|
|
60
60
|
const trim = (v) => v.split(String.fromCharCode(10)).map((v) => v.trimEnd()).join(String.fromCharCode(10)).trim()
|
|
61
61
|
|
|
62
62
|
function filter (v) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return Boolean(s)
|
|
63
|
+
return Boolean(v.trim())
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
export function getIsDirectory (directory) {
|
|
@@ -79,9 +77,7 @@ export function use (key) {
|
|
|
79
77
|
const log = debug(`@modernpoacher/deps:${key}`)
|
|
80
78
|
|
|
81
79
|
function write (v) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (s) log(s)
|
|
80
|
+
if (v.trim()) log(v.trimEnd())
|
|
85
81
|
}
|
|
86
82
|
|
|
87
83
|
return function use (value) {
|
|
@@ -105,9 +101,7 @@ export function out (key, directory) {
|
|
|
105
101
|
}
|
|
106
102
|
|
|
107
103
|
function write (v) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if (s) log(s)
|
|
104
|
+
if (v.trim()) log(v.trimEnd())
|
|
111
105
|
}
|
|
112
106
|
|
|
113
107
|
return function out (value) {
|
|
@@ -131,9 +125,7 @@ export function err (key, directory) {
|
|
|
131
125
|
}
|
|
132
126
|
|
|
133
127
|
function write (v) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (s) log(s)
|
|
128
|
+
if (v.trim()) log(v.trimEnd())
|
|
137
129
|
}
|
|
138
130
|
|
|
139
131
|
return function err (value) {
|
package/src/index.mjs
CHANGED