Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cplace/cli

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cplace/cli - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

2

dist/src/commands/repos/models.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc