@microtica/code-repository
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -12,4 +12,4 @@ /// <reference types="request" /> | ||
private listPrivateRepositories(); | ||
listVersions(account: string, repoName: string): Promise<RepoVersion[]>; | ||
listVersions(repoName: string): Promise<RepoVersion[]>; | ||
downloadVersion(account: string, repoName: string, version: string): request.Request; | ||
} |
@@ -68,6 +68,6 @@ "use strict"; | ||
} | ||
listVersions(account = this.credentials.username, repoName) { | ||
listVersions(repoName) { | ||
return new Promise((resolve, reject) => { | ||
request({ | ||
url: `${this.baseUrl}/repositories/${account}/${repoName}/refs/tags?pagelen=100`, | ||
url: `${this.baseUrl}/repositories/${repoName}/refs/tags?pagelen=100`, | ||
json: true | ||
@@ -74,0 +74,0 @@ }, (err, response) => { |
@@ -35,5 +35,5 @@ /// <reference types="request" /> | ||
abstract listRepositories(account: string): Promise<Repository[]>; | ||
abstract listVersions(account: string, repoName: string): Promise<RepoVersion[]>; | ||
abstract listVersions(repoName: string): Promise<RepoVersion[]>; | ||
abstract downloadVersion(account: string, repoName: string, version: string): request.Request; | ||
abstract listTeams(): Promise<RepositoryTeam[]>; | ||
} |
{ | ||
"name": "@microtica/code-repository", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Integration module with git repository providers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
11126