rapido-server-generator
Advanced tools
Comparing version 1.0.5 to 1.0.6
33
index.js
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
const Path = require('path'); | ||
// const colors = require('colors'); | ||
const colors = require('colors'); | ||
@@ -110,7 +110,5 @@ const cli = { | ||
.then(function(result){ | ||
console.log(result); | ||
next(true); | ||
}) | ||
.catch(function(error){ | ||
console.log(error); | ||
next(false); | ||
@@ -124,4 +122,8 @@ }) | ||
Exec(`git checkout -b ${branchName}`) | ||
.then(function(result){next(true)}) | ||
.catch(function(error){next(false)}) | ||
.then(function(result){ | ||
next(true); | ||
}) | ||
.catch(function(error){ | ||
next(false); | ||
}) | ||
}) | ||
@@ -134,6 +136,7 @@ } | ||
.then(function(result){ | ||
console.log(result); | ||
next(true) | ||
next(true); | ||
}) | ||
.catch(function(error){next(false)}) | ||
.catch(function(error){ | ||
next(false); | ||
}) | ||
}) | ||
@@ -146,6 +149,7 @@ } | ||
.then(function(result){ | ||
console.log(result) | ||
next(true) | ||
next(true); | ||
}) | ||
.catch(function(error){next(false)}) | ||
.catch(function(error){ | ||
next(false); | ||
}) | ||
}) | ||
@@ -163,3 +167,3 @@ } | ||
await Git_Client.RemoveBranchLocally(branch); | ||
next(false) | ||
next(false); | ||
}) | ||
@@ -225,2 +229,7 @@ }) | ||
if(!await Git_Client.CloneRepositoryToDir( 'https://github.com/MortallicaXxX/Rapido-Server-Test.git' , (fullAppPath ? `${process.env.PWD}/${fullAppPath}` : `${process.env.PWD}/${appName}`) ))throw {code : 2 , message : 'Error while cloning repertory.'}; | ||
if(!await Git_Client.CloneBranchToDir('Rapido@BodyParser' , 'https://github.com/MortallicaXxX/Rapido-Middleware.git' , `${(fullAppPath ? `${process.env.PWD}/${fullAppPath}` : `${process.env.PWD}/${appName}`)}/middlewares/Rapido@BodyParser/.`))throw {code : 2 , message : 'Error while adding middleware.'}; | ||
if(!await Git_Client.CloneBranchToDir('Rapido@DotEnv' , 'https://github.com/MortallicaXxX/Rapido-Middleware.git' , `${(fullAppPath ? `${process.env.PWD}/${fullAppPath}` : `${process.env.PWD}/${appName}`)}/middlewares/Rapido@DotEnv/.`))throw {code : 2 , message : 'Error while adding middleware.'}; | ||
if(!await Git_Client.CloneBranchToDir('Rapido@Layout' , 'https://github.com/MortallicaXxX/Rapido-Middleware.git' , `${(fullAppPath ? `${process.env.PWD}/${fullAppPath}` : `${process.env.PWD}/${appName}`)}/middlewares/Rapido@Layout/.`))throw {code : 2 , message : 'Error while adding middleware.'}; | ||
if(!await Git_Client.CloneBranchToDir('Rapido@Routes' , 'https://github.com/MortallicaXxX/Rapido-Middleware.git' , `${(fullAppPath ? `${process.env.PWD}/${fullAppPath}` : `${process.env.PWD}/${appName}`)}/middlewares/Rapido@Routes/.`))throw {code : 2 , message : 'Error while adding middleware.'}; | ||
if(!await Git_Client.CloneBranchToDir('Rapido@Sessions' , 'https://github.com/MortallicaXxX/Rapido-Middleware.git' , `${(fullAppPath ? `${process.env.PWD}/${fullAppPath}` : `${process.env.PWD}/${appName}`)}/middlewares/Rapido@Sessions/.`))throw {code : 2 , message : 'Error while adding middleware.'}; | ||
await Git_Client.Clean((fullAppPath ? `${process.env.PWD}/${fullAppPath}` : `${process.env.PWD}/${appName}`)); | ||
@@ -227,0 +236,0 @@ |
{ | ||
"name": "rapido-server-generator", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Client NPX Rapido", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"bin": { | ||
"rapido": "index.js" | ||
"rapido": "./index.js" | ||
}, | ||
@@ -22,3 +22,6 @@ "author": "", | ||
}, | ||
"homepage": "https://github.com/MortallicaXxX/Rapido-CLI#readme" | ||
"homepage": "https://github.com/MortallicaXxX/Rapido-CLI#readme", | ||
"dependencies": { | ||
"colors": "^1.4.0" | ||
} | ||
} |
Potential vulnerability
Supply chain riskInitial human review suggests the presence of a vulnerability in this package. It is pending further analysis and confirmation.
Found 1 instance in 1 package
47330
279
1
1
32
+ Addedcolors@^1.4.0
+ Addedcolors@1.4.0(transitive)