gitlab-restapi
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "gitlab-restapi", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Integration with GitLab REST API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -94,4 +94,6 @@ # Integration with GitLab REST API | ||
console.log('jobs:', jobs.list) | ||
const _job = jobs.find({status: 'success'}); | ||
console.log('found:', _job) | ||
const job = await gitLab.Jobs.job(_job.id); | ||
@@ -136,3 +138,3 @@ console.log('Get a single job of a project by id:', job) | ||
gitLab.add('groups').addMethods({ | ||
groups: new Method({method: 'get', class: GitLab.Responses, | ||
groups: new GitLab.Method({method: 'get', class: GitLab.Responses, | ||
url: () => `groups`}) | ||
@@ -151,3 +153,3 @@ }) | ||
gitLab.add('Releases').addMethods({ | ||
releases: new Method({method: 'get', class: GitLab.Responses, | ||
releases: new GitLab.Method({method: 'get', class: GitLab.Responses, | ||
url: () => `projects/${gitLab.projectId}/releases`}) | ||
@@ -154,0 +156,0 @@ }) |
@@ -24,2 +24,3 @@ /* | ||
const Responses = require("./Responses"); | ||
const Method = require("./Method"); | ||
String.prototype.capitalize = function () { | ||
@@ -41,2 +42,3 @@ return this.charAt(0).toUpperCase() + this.slice(1); | ||
static Response = Response; | ||
static Method = Method; | ||
static JobVariablesAttributes = JobVariablesAttributes; | ||
@@ -43,0 +45,0 @@ static Serializer = Serializer; |
@@ -24,3 +24,3 @@ /* | ||
gitLab.add('Releases').addMethods({ | ||
releases: new Method({method: 'get', class: GitLab.Responses, url: () => `projects/${gitLab.projectId}/releases`}) | ||
releases: new GitLab.Method({method: 'get', class: GitLab.Responses, url: () => `projects/${gitLab.projectId}/releases`}) | ||
}) | ||
@@ -27,0 +27,0 @@ console.log(gitLab.Releases.methods) |
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
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
67264
1278
161