git-first-commit
Advanced tools
Comparing version 0.1.0 to 1.0.0
30
index.js
'use strict'; | ||
var exec = require("child_process").exec; | ||
var exec = require("shelljs").exec; | ||
@@ -9,17 +9,19 @@ module.exports = gitCommit; | ||
var command = 'git add -A && git commit -m "' + message + '"'; | ||
var intialPush = 'git push origin -u master' | ||
exec(command, function(err) { | ||
if (err) { | ||
cb(err); | ||
let { stdout, stderr, code } = exec(command, { silent: true }); | ||
//console.log(stdout, stderr, code ) | ||
if(stderr) { | ||
cb(err); | ||
return; | ||
} else { | ||
var intialPush = 'git push origin -u master'; | ||
let { stdout, stderr, code } = exec(command, { silent: true }); | ||
console.log(stdout, stderr, code ) | ||
if (stderr) { | ||
cb(err) | ||
return; | ||
} else { | ||
cb(null, true); | ||
} | ||
exec(intialPush, function(err, status) { | ||
if (err) { | ||
cb(err) | ||
return; | ||
} | ||
cb(null, true); | ||
}); | ||
}); | ||
} | ||
} |
{ | ||
"name": "git-first-commit", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "github intial commit", | ||
@@ -29,3 +29,4 @@ "bugs": { | ||
"dependencies": { | ||
"minimist": "^1.2.0" | ||
"minimist": "^1.2.0", | ||
"shelljs": "^0.7.8" | ||
}, | ||
@@ -32,0 +33,0 @@ "devDependencies": { |
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
git-last-commit |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3888
31
1
0
2
1
+ Addedshelljs@^0.7.8
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinterpret@1.4.0(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedrechoir@0.6.2(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedshelljs@0.7.8(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)