Comparing version 6.0.0 to 6.1.0-next.1585266856.4e543bc8a89928d20ab41de0649e5c05b5ab889e
@@ -16,2 +16,6 @@ /** Comparator for sorting fellows in an array */ | ||
this.emails = new Set() | ||
/** Set of repository slugs with the contributions from the user */ | ||
this.contributions = new Map() | ||
/** Set of repository slugs that the fellow administers to */ | ||
this.administeredRepositories = new Set() | ||
/** Set of repository slugs that the fellow contributes to */ | ||
@@ -282,2 +286,8 @@ this.contributedRepositories = new Set() | ||
// Repositories | ||
/** Get all fellows who administrate a particular repository */ | ||
static administersRepository(repoSlug) { | ||
return this.fellows.filter(function (fellow) { | ||
return fellow.administeredRepositories.has(repoSlug) | ||
}) | ||
} | ||
/** Get all fellows who contribute to a particular repository */ | ||
@@ -284,0 +294,0 @@ static contributesRepository(repoSlug) { |
@@ -19,2 +19,6 @@ 'use strict' | ||
this.emails = new Set() | ||
/** Set of repository slugs with the contributions from the user */ | ||
this.contributions = new Map() | ||
/** Set of repository slugs that the fellow administers to */ | ||
this.administeredRepositories = new Set() | ||
/** Set of repository slugs that the fellow contributes to */ | ||
@@ -285,2 +289,8 @@ this.contributedRepositories = new Set() | ||
// Repositories | ||
/** Get all fellows who administrate a particular repository */ | ||
static administersRepository(repoSlug) { | ||
return this.fellows.filter(function (fellow) { | ||
return fellow.administeredRepositories.has(repoSlug) | ||
}) | ||
} | ||
/** Get all fellows who contribute to a particular repository */ | ||
@@ -287,0 +297,0 @@ static contributesRepository(repoSlug) { |
# History | ||
## v6.1.0 2020 March 27 | ||
- Added `Fellow::contributions`, `Fellow::administeredRepositories`, `Fellow.administersRepository` | ||
## v6.0.0 2020 March 27 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "fellow", | ||
"version": "6.0.0", | ||
"version": "6.1.0-next.1585266856.4e543bc8a89928d20ab41de0649e5c05b5ab889e", | ||
"description": "Fellow is a package for creating people that can be unified by their shared values via a singleton list on the class", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/bevry/fellow", |
@@ -55,3 +55,3 @@ <!-- TITLE/ --> | ||
<script type="module"> | ||
import pkg from '//cdn.pika.dev/fellow/^6.0.0' | ||
import pkg from '//cdn.pika.dev/fellow/^6.1.0' | ||
</script> | ||
@@ -64,3 +64,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//unpkg.com/fellow@^6.0.0' | ||
import pkg from '//unpkg.com/fellow@^6.1.0' | ||
</script> | ||
@@ -73,3 +73,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//dev.jspm.io/fellow@6.0.0' | ||
import pkg from '//dev.jspm.io/fellow@6.1.0' | ||
</script> | ||
@@ -76,0 +76,0 @@ ``` |
@@ -23,2 +23,8 @@ /** Comparator for sorting fellows in an array */ | ||
/** Set of repository slugs with the contributions from the user */ | ||
readonly contributions = new Map<string, number>() | ||
/** Set of repository slugs that the fellow administers to */ | ||
readonly administeredRepositories = new Set<string>() | ||
/** Set of repository slugs that the fellow contributes to */ | ||
@@ -74,2 +80,3 @@ readonly contributedRepositories = new Set<string>() | ||
} | ||
/** Compare to another fellow for sorting. */ | ||
@@ -324,2 +331,8 @@ compare(other: Fellow): -1 | 0 | 1 { | ||
/** Get all fellows who administrate a particular repository */ | ||
static administersRepository(repoSlug: string): Array<Fellow> { | ||
return this.fellows.filter(function (fellow) { | ||
return fellow.administeredRepositories.has(repoSlug) | ||
}) | ||
} | ||
/** Get all fellows who contribute to a particular repository */ | ||
@@ -326,0 +339,0 @@ static contributesRepository(repoSlug: string): Array<Fellow> { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
53110
1051
1