@snelusha/noto 0.2.0 → 0.2.1
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/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -132,7 +132,7 @@ async function getStagedDiff() {
|
|
|
132
132
|
async function commit(message) {
|
|
133
133
|
try {
|
|
134
134
|
const result = await tinyexec.x("git", ["commit", "-m", message]);
|
|
135
|
-
return result.stdout.
|
|
135
|
+
return /file(s)? changed/i.test(result.stdout.toString());
|
|
136
136
|
} catch {
|
|
137
137
|
return false;
|
|
138
138
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -120,7 +120,7 @@ async function getStagedDiff() {
|
|
|
120
120
|
async function commit(message) {
|
|
121
121
|
try {
|
|
122
122
|
const result = await x("git", ["commit", "-m", message]);
|
|
123
|
-
return result.stdout.
|
|
123
|
+
return /file(s)? changed/i.test(result.stdout.toString());
|
|
124
124
|
} catch {
|
|
125
125
|
return false;
|
|
126
126
|
}
|