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

gitlab-cli

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab-cli - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

22

bin/cli.js

@@ -175,7 +175,14 @@ #!/usr/bin/env node

if (typeof data.length === 'number') {
if (deps.options.json) console.log('[');
data.forEach(function(item, i) {
if (inFilters(item) && hasLabels(item)) {
if (deps.options.json === false && stringify[deps.resource.type]) {
data = data.filter(function(item) {
return (inFilters(item) && hasLabels(item));
});
if (deps.options.json) {
console.log(JSON.stringify(data, null, 2));
}
else {
data.forEach(function(item, i) {
if (stringify[deps.resource.type]) {
console.log(stringify[deps.resource.type](item));

@@ -186,6 +193,5 @@ }

}
if (!deps.options.json) console.log("-------------------------------------");
}
});
if (deps.options.json) console.log(']');
console.log("-------------------------------------");
});
}
}

@@ -192,0 +198,0 @@ else if (inFilters(data) && hasLabels(data)) {

@@ -102,2 +102,7 @@ var projects = [];

{
// do not log on json output
if (options.json) {
return;
}
if (resource.project) {

@@ -104,0 +109,0 @@ console.log(getActionVerb(action) + ' ' + resource.type + ' in project "' + resource.project + '" ...');

{
"name": "gitlab-cli",
"version": "0.0.16",
"version": "0.0.17",
"description": "Gitlab API on the command line",

@@ -5,0 +5,0 @@ "main": "./bin/cli.js",

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