aggregation-repository-provider
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -7,21 +7,2 @@ 'use strict'; | ||
/** | ||
* <!-- skip-example --> | ||
* Combines several repository providers into one | ||
* @param {Provider[]} providers | ||
* @property {Provider[]} providers | ||
* @example | ||
* const provider = new AggregationProvider([ | ||
* new GithubProvider(), | ||
* new BitbucketProvider() | ||
* ]); | ||
* const repository1 = await provider.repository( | ||
* 'https://github.com/arlac77/aggregation-repository-provider' | ||
* ); | ||
* const repository2 = await provider.repository( | ||
* 'https://arlac77@bitbucket.org/arlac77/sync-test-repository.git' | ||
* ); | ||
* // repository1 -> github | ||
* // repository2 -> bitbucket | ||
*/ | ||
class AggregationProvider extends repositoryProvider.Provider { | ||
@@ -32,9 +13,2 @@ constructor(providers = []) { | ||
} | ||
/** | ||
* Retrieve named repository in one of the given providers. | ||
* They are consulted in the order of the propviders given to the constructor | ||
* @param {string} name | ||
* @return {Primise<Repository>} | ||
*/ | ||
async repository(name) { | ||
@@ -47,3 +21,2 @@ for (const p of this.providers) { | ||
} | ||
return undefined; | ||
@@ -50,0 +23,0 @@ } |
{ | ||
"name": "aggregation-repository-provider", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"publishConfig": { | ||
@@ -45,3 +45,3 @@ "access": "public" | ||
"rollup-plugin-multi-entry": "^2.0.2", | ||
"semantic-release": "^15.9.3", | ||
"semantic-release": "^15.9.5", | ||
"travis-deploy-once": "^5.0.2", | ||
@@ -51,3 +51,4 @@ "rollup-plugin-commonjs": "^9.1.4", | ||
"rollup-plugin-istanbul": "^2.0.1", | ||
"rollup-plugin-executable": "^1.2.0" | ||
"rollup-plugin-executable": "^1.2.0", | ||
"rollup-plugin-cleanup": "^3.0.0" | ||
}, | ||
@@ -54,0 +55,0 @@ "engines": { |
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
9697
16
60