aggregation-repository-provider
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -10,9 +10,9 @@ 'use strict'; | ||
super(undefined); | ||
Object.defineProperty(this, 'providers', { value: providers }); | ||
Object.defineProperty(this, "providers", { value: providers }); | ||
} | ||
async repository(name) { | ||
async repository(name, options) { | ||
for (const p of this.providers) { | ||
const r = await p.repository(name); | ||
if (r !== undefined) { | ||
return r; | ||
const repository = await p.repository(name, options); | ||
if (repository !== undefined) { | ||
return repository; | ||
} | ||
@@ -22,7 +22,7 @@ } | ||
} | ||
async repositoryGroup(name) { | ||
async repositoryGroup(name, options) { | ||
for (const p of this.providers) { | ||
const r = await p.repositoryGroup(name); | ||
if (r !== undefined) { | ||
return r; | ||
const rg = await p.repositoryGroup(name, options); | ||
if (rg !== undefined) { | ||
return rg; | ||
} | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "aggregation-repository-provider", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -78,2 +78,3 @@ [![npm](https://img.shields.io/npm/v/aggregation-repository-provider.svg)](https://www.npmjs.com/package/aggregation-repository-provider) | ||
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
- `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** | ||
@@ -90,2 +91,3 @@ Returns **Primise<Repository>** | ||
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
- `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** | ||
@@ -92,0 +94,0 @@ Returns **Primise<RepositoryGroup>** |
@@ -1,2 +0,2 @@ | ||
import { Provider } from 'repository-provider'; | ||
import { Provider } from "repository-provider"; | ||
@@ -25,3 +25,3 @@ /** | ||
super(undefined); | ||
Object.defineProperty(this, 'providers', { value: providers }); | ||
Object.defineProperty(this, "providers", { value: providers }); | ||
} | ||
@@ -33,9 +33,10 @@ | ||
* @param {string} name | ||
* @param {Object} options | ||
* @return {Primise<Repository>} | ||
*/ | ||
async repository(name) { | ||
async repository(name, options) { | ||
for (const p of this.providers) { | ||
const r = await p.repository(name); | ||
if (r !== undefined) { | ||
return r; | ||
const repository = await p.repository(name, options); | ||
if (repository !== undefined) { | ||
return repository; | ||
} | ||
@@ -51,9 +52,10 @@ } | ||
* @param {string} name | ||
* @param {Object} options | ||
* @return {Primise<RepositoryGroup>} | ||
*/ | ||
async repositoryGroup(name) { | ||
async repositoryGroup(name, options) { | ||
for (const p of this.providers) { | ||
const r = await p.repositoryGroup(name); | ||
if (r !== undefined) { | ||
return r; | ||
const rg = await p.repositoryGroup(name, options); | ||
if (rg !== undefined) { | ||
return rg; | ||
} | ||
@@ -60,0 +62,0 @@ } |
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
11162
86
105