aggregation-repository-provider
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -21,4 +21,13 @@ 'use strict'; | ||
} | ||
async project(name) { | ||
for (const p of this.providers) { | ||
const r = await p.project(name); | ||
if (r !== undefined) { | ||
return r; | ||
} | ||
} | ||
return undefined; | ||
} | ||
} | ||
exports.AggregationProvider = AggregationProvider; |
{ | ||
"name": "aggregation-repository-provider", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"publishConfig": { | ||
@@ -33,21 +33,21 @@ "access": "public" | ||
"dependencies": { | ||
"repository-provider": "^2.23.1" | ||
"repository-provider": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"ava": "0.25.0", | ||
"bitbucket-repository-provider": "^1.5.1", | ||
"documentation": "^8.1.0", | ||
"github-repository-provider": "^2.1.3", | ||
"local-repository-provider": "^1.2.17", | ||
"local-repository-provider": "^1.2.18", | ||
"markdown-doctest": "^0.9.1", | ||
"nyc": "^13.0.1", | ||
"rollup": "^0.63.5", | ||
"rollup": "^0.64.1", | ||
"rollup-plugin-cleanup": "^3.0.0", | ||
"rollup-plugin-commonjs": "^9.1.5", | ||
"rollup-plugin-executable": "^1.3.0", | ||
"rollup-plugin-istanbul": "^2.0.1", | ||
"rollup-plugin-multi-entry": "^2.0.2", | ||
"semantic-release": "^15.9.5", | ||
"travis-deploy-once": "^5.0.2", | ||
"rollup-plugin-commonjs": "^9.1.4", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-istanbul": "^2.0.1", | ||
"rollup-plugin-executable": "^1.2.0", | ||
"rollup-plugin-cleanup": "^3.0.0" | ||
"semantic-release": "^15.9.8", | ||
"travis-deploy-once": "^5.0.2" | ||
}, | ||
@@ -54,0 +54,0 @@ "engines": { |
@@ -34,2 +34,4 @@ [![npm](https://img.shields.io/npm/v/aggregation-repository-provider.svg)](https://www.npmjs.com/package/aggregation-repository-provider) | ||
- [Parameters](#parameters-1) | ||
- [project](#project) | ||
- [Parameters](#parameters-2) | ||
@@ -80,2 +82,13 @@ ## AggregationProvider | ||
### project | ||
Retrieve named project in one of the given providers. | ||
They are consulted in the order of the propviders given to the constructor | ||
#### Parameters | ||
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
Returns **Primise<Project>** | ||
# install | ||
@@ -82,0 +95,0 @@ |
@@ -44,2 +44,19 @@ import { Provider } from 'repository-provider'; | ||
} | ||
/** | ||
* Retrieve named project in one of the given providers. | ||
* They are consulted in the order of the propviders given to the constructor | ||
* @param {string} name | ||
* @return {Primise<Project>} | ||
*/ | ||
async project(name) { | ||
for (const p of this.providers) { | ||
const r = await p.project(name); | ||
if (r !== undefined) { | ||
return r; | ||
} | ||
} | ||
return undefined; | ||
} | ||
} |
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
10653
84
103
+ Addedrepository-provider@3.9.1(transitive)
- Removedrepository-provider@2.24.1(transitive)
Updatedrepository-provider@^3.0.0