Socket
Socket
Sign inDemoInstall

g3l

Package Overview
Dependencies
21
Maintainers
1
Versions
185
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.5.1 to 8.9.1

lib/Assets.js

55

index.js

@@ -19,4 +19,6 @@ #!/usr/bin/env node

var isGitUrl = require('is-git-url');
var notify = require('./lib/Notify');
updateNotifier({pkg}).notify();
program

@@ -127,3 +129,2 @@ .option('-m, --message <message>', 'Commit message')

];
function run(array) {

@@ -135,3 +136,3 @@ return new Promise(function(resolve, reject) {

if (piece.boolean) {
eval(piece.function + '(' + JSON.stringify(piece) + ').then((value) => {console.log(colors.grey(value));}).catch((err) => {console.log(colors.red(err));bugsnag.notify(new Error(err));})');
eval(piece.function + '(' + JSON.stringify(piece) + `).then((value) => {console.log(colors.grey(value));}).catch((err) => {console.log(colors.red(err));bugsnag.notify(new Error(err));})`);
} else {

@@ -165,4 +166,10 @@ piece.params.forEach(function(param) {

E(`git checkout -b ${program.new_branch}`)
.then((value) => {resolve(`New branch created: ${program.new_branch}`);})
.catch((err) => {bugsnag.notify(new Error(err));reject(err)});
.then((value) => {
notify({title: 'g3l', 'message': `New branch created ${program.new_branch.trim()}`, 'status':'resolve'})
resolve(`New branch created: ${program.new_branch}`);
})
.catch((err) => {
notify({title: 'g3l', 'message': `New branch doesn\'t created as: ${program.new_branch.trim()}`, 'status':'reject'})
reject(err)
});
});

@@ -179,4 +186,10 @@ }

C(obj)
.then(function(value) {resolve('Git committed successfully.');})
.catch(function(err) {bugsnag.notify(new Error(err));reject(err)});
.then(function(value) {
notify({title: 'g3l', 'message': 'Git committed successfully', 'status':'resolve'})
resolve('Git committed successfully.');
})
.catch(function(err) {
notify({title: 'g3l', 'message': `Git doesn\'t committed successfully.`, 'status':'reject'})
reject(err)
});
});

@@ -190,4 +203,10 @@ }

E(`${isNew} npm publish`)
.then((value) => {resolve(value);})
.catch((err) => {bugsnag.notify(new Error(err));reject(err);})
.then((value) => {
notify({title: 'g3l', 'message': 'Npm publish successfully', 'status':'resolve'})
resolve(value);
})
.catch((err) => {
notify({title: 'g3l', 'message': `Npm doesn\'t published successfully.`, 'status':'reject'})
reject(err);
})
});

@@ -198,4 +217,5 @@ }

return new Promise(function(resolve, reject) {
notify({title: 'g3l', 'message': 'Git status fetched successfully', 'status':'resolve'})
S();
resolve();
resolve('Git status fetched successfully');
});

@@ -208,2 +228,3 @@ }

spawn( "npm", [ "i", `-g`, 'g3l'], function( error, stdout ) {
notify({title: 'g3l', 'message': 'g3l update successfully', 'status':'resolve'})
resolve('g3l updated successfully.')

@@ -220,5 +241,9 @@ });

opn(value);
notify({title: 'g3l', 'message': 'g3l created github repository successfully', 'status':'resolve'})
resolve(emoji.emojify(`:sunglasses: Horarayy! You can init your repository easily with this command: g3l -i`));
process.exit();
}).catch((err) => {reject(err);});
}).catch((err) => {
notify({title: 'g3l', 'message': `Repository doesn\'t created successfully.`, 'status':'reject'})
reject(err);
});
});

@@ -255,6 +280,12 @@ }

E(`git clone ${answers.url} ${answers.name} && cd ${answers.name}`)
.then((value) => {resolve('Clone done!')})
.catch((err) => {reject(err)});
.then((value) => {
notify({title: 'g3l', 'message': 'Clone', 'subtitle': `Git clone successfully`, 'status':'resolve'})
resolve('Clone done!')
})
.catch((err) => {
notify({title: 'g3l', 'message': `Repository doesn\'t cloned successfully.`, 'status':'reject'})
reject(err)
});
});
});
}
{
"name": "g3l",
"version": "8.5.1",
"version": "8.9.1",
"description": "Git is easy, github cli is easy but g3l easiest git cli in the w0rld!",

@@ -32,2 +32,3 @@ "main": "index.js",

"1n1t": "^1.0.24",
"3x1st": "^1.0.3",
"3x3c": "^1.0.2",

@@ -37,2 +38,3 @@ "async": "^2.0.1",

"c0mm1t": "^1.0.41",
"cl0n3": "^1.0.0",
"cli-table": "^0.3.1",

@@ -47,4 +49,4 @@ "cmdify": "0.0.4",

"node-emoji": "^1.4.1",
"node-notifier": "^4.6.1",
"opn": "^4.0.2",
"path-exists": "^3.0.0",
"prompt": "^1.0.0",

@@ -51,0 +53,0 @@ "underscore": "^1.8.3",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc