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

gitlab

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

README.md~

28

lib/Models/Projects.js

@@ -33,3 +33,2 @@ // Generated by CoffeeScript 1.6.3

Projects.prototype.all = function(params, fn) {
var _this = this;
if (params == null) {

@@ -46,10 +45,27 @@ params = {};

this.debug("Projects::all()");
if (params.page == null) {
params.page = 1;
}
if (params.per_page == null) {
params.per_page = 100;
}
return this.get("projects", params, function(data) {
if (fn) {
return fn(data);
}
});
return (function() {
var cb, data,
_this = this;
data = [];
cb = function(retData) {
if (retData.length === 100) {
_this.debug("Recurse Projects::all()");
data = data.concat(retData);
params.page++;
return _this.all(params, cb);
} else {
data = data.concat(retData);
if (fn) {
return fn(data);
}
}
};
return this.get("projects/all", params, cb);
}).bind(this)();
};

@@ -56,0 +72,0 @@

{
"name": "gitlab",
"version": "0.2.9",
"version": "0.2.10",
"description": "gitlab api nodejs library",

@@ -5,0 +5,0 @@ "main": "index.js",

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