@cplace/cli
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -0,7 +1,7 @@ | ||
"use strict"; | ||
/** | ||
* Data model for repo commands | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=models.js.map |
@@ -0,7 +1,7 @@ | ||
"use strict"; | ||
/** | ||
* Data types for Git interaction | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=models.js.map |
@@ -48,3 +48,3 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
this.git.log(['-n', size], (err, data) => { | ||
this.git.log(['-n', size + ''], (err, data) => { | ||
err ? reject(err) : resolve(data); | ||
@@ -90,9 +90,10 @@ }); | ||
return new Promise((resolve, reject) => { | ||
Global_1.Global.isVerbose() && console.log(`checkout ${this.repoName}, in branch `, branch); | ||
Global_1.Global.isVerbose() && console.log(`checkout ${this.repoName}, in branch ${branch}`); | ||
this.git.checkout(branch, (err) => { | ||
if (err) { | ||
Global_1.Global.isVerbose() && console.error(`failed to checkout ${this.repoName}/${branch}`, err); | ||
reject(err); | ||
} | ||
else { | ||
Global_1.Global.isVerbose() && console.log(`repo ${this.repoName} is now in branch`, branch); | ||
Global_1.Global.isVerbose() && console.log(`repo ${this.repoName} is now in branch ${branch}`); | ||
resolve(); | ||
@@ -108,2 +109,3 @@ } | ||
if (err) { | ||
Global_1.Global.isVerbose() && console.error(`failed to checkout commit ${commit} in ${this.repoName}`, err); | ||
reject(err); | ||
@@ -126,2 +128,3 @@ } | ||
.then(({ tracking }) => { | ||
Global_1.Global.isVerbose() && console.log(`doing a pull --ff-only in ${this.repoName} which is tracking ${tracking}`); | ||
const i = tracking.indexOf('/'); | ||
@@ -128,0 +131,0 @@ if (i < 0) { |
@@ -0,5 +1,5 @@ | ||
"use strict"; | ||
/** | ||
* Utility functions | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -6,0 +6,0 @@ function enforceNewline(text) { |
{ | ||
"name": "@cplace/cli", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -57,3 +57,3 @@ /** | ||
return new Promise<IGitLogSummary>((resolve, reject) => { | ||
this.git.log(['-n', size], (err, data: IGitLogSummary) => { | ||
this.git.log(['-n', size + ''], (err, data: IGitLogSummary) => { | ||
err ? reject(err) : resolve(data); | ||
@@ -101,8 +101,9 @@ }); | ||
return new Promise<void>((resolve, reject) => { | ||
Global.isVerbose() && console.log(`checkout ${this.repoName}, in branch `, branch); | ||
Global.isVerbose() && console.log(`checkout ${this.repoName}, in branch ${branch}`); | ||
this.git.checkout(branch, (err) => { | ||
if (err) { | ||
Global.isVerbose() && console.error(`failed to checkout ${this.repoName}/${branch}`, err); | ||
reject(err); | ||
} else { | ||
Global.isVerbose() && console.log(`repo ${this.repoName} is now in branch`, branch); | ||
Global.isVerbose() && console.log(`repo ${this.repoName} is now in branch ${branch}`); | ||
resolve(); | ||
@@ -119,2 +120,3 @@ } | ||
if (err) { | ||
Global.isVerbose() && console.error(`failed to checkout commit ${commit} in ${this.repoName}`, err); | ||
reject(err); | ||
@@ -136,2 +138,3 @@ } else { | ||
.then(({tracking}) => { | ||
Global.isVerbose() && console.log(`doing a pull --ff-only in ${this.repoName} which is tracking ${tracking}`); | ||
const i = tracking.indexOf('/'); | ||
@@ -138,0 +141,0 @@ if (i < 0) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
204597
2630
1