repository-provider
Advanced tools
Comparing version 3.6.2 to 3.6.3
@@ -209,2 +209,5 @@ 'use strict'; | ||
} | ||
get pullRequestClass() { | ||
return this.provider.pullRequestClass; | ||
} | ||
get branchClass() { | ||
@@ -220,3 +223,3 @@ return this.provider.branchClass; | ||
class Content { | ||
constructor(path, content = undefined, type = 'blob', mode = '100644') { | ||
constructor(path, content = undefined, type = "blob", mode = "100644") { | ||
Object.defineProperties(this, { | ||
@@ -223,0 +226,0 @@ path: { value: path }, |
{ | ||
"name": "repository-provider", | ||
"version": "3.6.2", | ||
"version": "3.6.3", | ||
"publishConfig": { | ||
@@ -45,3 +45,3 @@ "access": "public" | ||
"rollup-plugin-multi-entry": "^2.0.2", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"semantic-release": "^15.9.12", | ||
@@ -48,0 +48,0 @@ "travis-deploy-once": "^5.0.7" |
@@ -386,4 +386,4 @@ [](https://www.npmjs.com/package/repository-provider) | ||
- `content` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Buffer](https://nodejs.org/api/buffer.html) \| [Stream](https://nodejs.org/api/stream.html))** (optional, default `undefined`) | ||
- `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** type of the content (optional, default `'blob'`) | ||
- `mode` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** file permissions (optional, default `'100644'`) | ||
- `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** type of the content (optional, default `"blob"`) | ||
- `mode` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** file permissions (optional, default `"100644"`) | ||
@@ -390,0 +390,0 @@ ### Properties |
@@ -14,3 +14,3 @@ /** | ||
export class Content { | ||
constructor(path, content = undefined, type = 'blob', mode = '100644') { | ||
constructor(path, content = undefined, type = "blob", mode = "100644") { | ||
Object.defineProperties(this, { | ||
@@ -17,0 +17,0 @@ path: { value: path }, |
@@ -276,2 +276,10 @@ import { notImplementedError } from "./util"; | ||
*/ | ||
get pullRequestClass() { | ||
return this.provider.pullRequestClass; | ||
} | ||
/** | ||
* By default we use the providers implementation. | ||
* @return {Class} as defined in the provider | ||
*/ | ||
get branchClass() { | ||
@@ -278,0 +286,0 @@ return this.provider.branchClass; |
52563
1283