🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

gimmit

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gimmit - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+26
-3
gimmit.js

@@ -1,3 +0,3 @@

const Git = require('simple-git')();
const { Select, Input } = require('enquirer');
const Git = require('simple-git/promise')();
const { Select, Input, Confirm } = require('enquirer');
const config = require('./config');

@@ -58,2 +58,7 @@ const fs = require('fs');

const promptPushToGit = new Confirm({
name: 'question',
message: 'Would you like to push to remote (current branch)?',
});
const getRandomEmoji = () => {

@@ -78,3 +83,21 @@ const randIndex = Math.floor(Math.random() * config.emojiPool.length);

Git.commit(`${emoji} ${message}`);
console.log('✅ Success! You can now git push!');
promptPushToGit.run()
.then(isPush => {
if (isPush) {
console.log('📡 Pushing to remote...');
Git.push('origin', 'HEAD')
.then(() => {
console.log('✅ Succesfully pushed to remote!');
})
.catch(() => {
console.log('👎 Push to remote failed.');
});
} else {
console.log('✅ Commit success!');
}
})
.catch(onCancel);
})

@@ -81,0 +104,0 @@ .catch(onCancel);

+1
-1
{
"name": "gimmit",
"version": "1.0.1",
"version": "1.0.2",
"description": "Git commit but cuter",

@@ -5,0 +5,0 @@ "main": "gimmit.js",