repository-provider
Advanced tools
Comparing version 2.19.0 to 2.20.0
@@ -486,2 +486,12 @@ 'use strict'; | ||
/** | ||
* Extract options suitable for the constructor | ||
* form the given set of environment variables | ||
* @param {Object} env | ||
* @return {Object} undefined if no environment variables have benn found | ||
*/ | ||
static optionsFromEnvironment(env) { | ||
return undefined; | ||
} | ||
/** | ||
* Pepare configuration by mixing together defaultOptions with actual options | ||
@@ -488,0 +498,0 @@ * @param {Object} config raw config |
{ | ||
"name": "repository-provider", | ||
"version": "2.19.0", | ||
"version": "2.20.0", | ||
"main": "dist/repository-provider.js", | ||
@@ -37,3 +37,3 @@ "module": "src/repository-provider.js", | ||
"rollup-plugin-multi-entry": "^2.0.2", | ||
"semantic-release": "^15.1.4", | ||
"semantic-release": "^15.1.5", | ||
"documentation": "^6.1.0", | ||
@@ -43,3 +43,3 @@ "travis-deploy-once": "^4.4.1" | ||
"engines": { | ||
"node": ">=8.10" | ||
"node": ">=8.11" | ||
}, | ||
@@ -46,0 +46,0 @@ "repository": { |
@@ -61,2 +61,3 @@ [![npm](https://img.shields.io/npm/v/repository-provider.svg)](https://www.npmjs.com/package/repository-provider) | ||
- [defaultOptions](#defaultoptions) | ||
- [optionsFromEnvironment](#optionsfromenvironment) | ||
- [options](#options) | ||
@@ -221,2 +222,13 @@ - [Branch](#branch-1) | ||
### optionsFromEnvironment | ||
Extract options suitable for the constructor | ||
form the given set of environment variables | ||
**Parameters** | ||
- `env` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** | ||
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** undefined if no environment variables have benn found | ||
### options | ||
@@ -223,0 +235,0 @@ |
@@ -25,2 +25,12 @@ import { Branch } from './branch'; | ||
/** | ||
* Extract options suitable for the constructor | ||
* form the given set of environment variables | ||
* @param {Object} env | ||
* @return {Object} undefined if no environment variables have benn found | ||
*/ | ||
static optionsFromEnvironment(env) { | ||
return undefined; | ||
} | ||
/** | ||
* Pepare configuration by mixing together defaultOptions with actual options | ||
@@ -27,0 +37,0 @@ * @param {Object} config raw config |
53065
1161
641