+6
-2
| const Git = require('simple-git')(); | ||
| const { Select, Input } = require('enquirer'); | ||
| const config = require('./config'); | ||
| const random = require('random'); | ||
| const fs = require('fs'); | ||
@@ -39,2 +38,7 @@ | ||
| } | ||
| } else { | ||
| options = [ | ||
| ...options, | ||
| ...config.options, | ||
| ]; | ||
| } | ||
@@ -54,3 +58,3 @@ } catch (err) { | ||
| const getRandomEmoji = () => { | ||
| const randIndex = random.int(0, config.emojiPool.length); | ||
| const randIndex = Math.floor(Math.random() * config.emojiPool.length); | ||
| return emojiPool[randIndex]; | ||
@@ -57,0 +61,0 @@ }; |
+1
-2
| { | ||
| "name": "gimmit", | ||
| "version": "0.0.8", | ||
| "version": "0.0.9", | ||
| "description": "Git commit but cuter", | ||
@@ -29,5 +29,4 @@ "main": "gimmit.js", | ||
| "fs": "^0.0.1-security", | ||
| "random": "^2.1.1", | ||
| "simple-git": "^1.128.0" | ||
| } | ||
| } |
50472
0.06%3
-25%135
3.05%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed