@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 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.includes("files changed");
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.includes("files changed");
123
+ return /file(s)? changed/i.test(result.stdout.toString());
124
124
  } catch {
125
125
  return false;
126
126
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@snelusha/noto",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "description": "generate clean commit messages in a snap! ✨",
6
6
  "license": "MIT",
7
7
  "author": {