repository-provider
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -248,2 +248,7 @@ 'use strict'; | ||
get type() | ||
{ | ||
return this.provider.type; | ||
} | ||
/** | ||
@@ -404,2 +409,5 @@ * Value delivered from the provider | ||
* Lookup a branch | ||
* First lookup repository then the branch | ||
* If no branch was specified then the default branch will be delivered. | ||
* @see {@link Repository#defaultBranch} | ||
* @param {string} name | ||
@@ -426,2 +434,11 @@ * @return {Promise<Branch>} | ||
} | ||
/** | ||
* Deliver the repository type | ||
* @return {string} 'git' | ||
*/ | ||
get type() | ||
{ | ||
return 'git'; | ||
} | ||
} | ||
@@ -428,0 +445,0 @@ |
{ | ||
"name": "repository-provider", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"main": "dist/repository-provider.js", | ||
@@ -5,0 +5,0 @@ "module": "src/repository-provider.js", |
@@ -52,2 +52,3 @@ [](https://www.npmjs.com/package/repository-provider) | ||
- [rateLimitReached](#ratelimitreached) | ||
- [type](#type) | ||
- [defaultOptions](#defaultoptions) | ||
@@ -145,3 +146,7 @@ - [options](#options) | ||
- **See: [Repository#defaultBranch](#repositorydefaultbranch)** | ||
Lookup a branch | ||
First lookup repository then the branch | ||
If no branch was specified then the default branch will be delivered. | ||
@@ -161,2 +166,8 @@ **Parameters** | ||
### type | ||
Deliver the repository type | ||
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 'git' | ||
### defaultOptions | ||
@@ -163,0 +174,0 @@ |
@@ -92,2 +92,5 @@ import { Branch } from './branch'; | ||
* Lookup a branch | ||
* First lookup repository then the branch | ||
* If no branch was specified then the default branch will be delivered. | ||
* @see {@link Repository#defaultBranch} | ||
* @param {string} name | ||
@@ -114,2 +117,11 @@ * @return {Promise<Branch>} | ||
} | ||
/** | ||
* Deliver the repository type | ||
* @return {string} 'git' | ||
*/ | ||
get type() | ||
{ | ||
return 'git'; | ||
} | ||
} |
@@ -138,2 +138,7 @@ import { notImplementedError } from './util'; | ||
get type() | ||
{ | ||
return this.provider.type; | ||
} | ||
/** | ||
@@ -140,0 +145,0 @@ * Value delivered from the provider |
37885
791
465