getcontributors
Advanced tools
Comparing version 2.16.0 to 2.17.0-next.1593054349.bb0f0306c445543bba7e1a64f7a4595f2bc4e5c5
@@ -6,3 +6,4 @@ /* eslint camelcase:0 */ | ||
import { getHeaders } from 'githubauthreq' | ||
const ghapi = process.env.GITHUB_API || 'https://api.github.com' | ||
import { env } from 'process' | ||
const { GITHUB_API = 'https://api.github.com' } = env | ||
/** Export the Fellow class we have imported and are using, such that consumers of this package and ensure they are interacting with the same singletons */ | ||
@@ -26,3 +27,3 @@ export { Fellow } | ||
// Fetch | ||
const url = `${ghapi}/repos/${slug}/contributors?per_page=100` | ||
const url = `${GITHUB_API}/repos/${slug}/contributors?per_page=100` | ||
const resp = await fetch(url, { | ||
@@ -29,0 +30,0 @@ headers: getHeaders(), |
@@ -15,3 +15,4 @@ 'use strict' | ||
const githubauthreq_1 = require('githubauthreq') | ||
const ghapi = process.env.GITHUB_API || 'https://api.github.com' | ||
const process_1 = require('process') | ||
const { GITHUB_API = 'https://api.github.com' } = process_1.env | ||
/** Fetch the full profile information for a contributor */ | ||
@@ -34,3 +35,3 @@ async function getContributorProfile(url) { | ||
// Fetch | ||
const url = `${ghapi}/repos/${slug}/contributors?per_page=100` | ||
const url = `${GITHUB_API}/repos/${slug}/contributors?per_page=100` | ||
const resp = await cross_fetch_1.default(url, { | ||
@@ -37,0 +38,0 @@ headers: githubauthreq_1.getHeaders(), |
# History | ||
## v2.17.0 2020 June 25 | ||
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation) | ||
## v2.16.0 2020 June 21 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"title": "Get Contributors", | ||
"name": "getcontributors", | ||
"version": "2.16.0", | ||
"version": "2.17.0-next.1593054349.bb0f0306c445543bba7e1a64f7a4595f2bc4e5c5", | ||
"description": "Fetch all the contributors from a github repository, github organisation, or github search", | ||
@@ -122,21 +122,21 @@ "homepage": "https://github.com/bevry/getcontributors", | ||
"dependencies": { | ||
"cross-fetch": "^3.0.4", | ||
"fellow": "6.10.0", | ||
"getrepos": "5.6.0", | ||
"githubauthreq": "5.7.0", | ||
"cross-fetch": "^3.0.5", | ||
"fellow": "6.15.0", | ||
"getrepos": "5.10.0", | ||
"githubauthreq": "5.11.0", | ||
"simplytyped": "^3.3.0" | ||
}, | ||
"devDependencies": { | ||
"@bevry/update-contributors": "^1.9.0", | ||
"@typescript-eslint/eslint-plugin": "^3.3.0", | ||
"@typescript-eslint/parser": "^3.3.0", | ||
"assert-helpers": "^6.8.0", | ||
"eslint": "^7.3.0", | ||
"eslint-config-bevry": "^3.8.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
"@bevry/update-contributors": "^1.12.0", | ||
"@typescript-eslint/eslint-plugin": "^3.4.0", | ||
"@typescript-eslint/parser": "^3.4.0", | ||
"assert-helpers": "^6.13.0", | ||
"eslint": "^7.3.1", | ||
"eslint-config-bevry": "^3.13.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"kava": "^5.7.0", | ||
"make-deno-edition": "^0.9.1", | ||
"make-deno-edition": "^0.13.0", | ||
"prettier": "^2.0.5", | ||
"projectz": "^2.9.0", | ||
"projectz": "^2.10.1", | ||
"surge": "^0.21.3", | ||
@@ -146,3 +146,3 @@ "typedoc": "^0.17.7", | ||
"valid-directory": "^2.5.0", | ||
"valid-module": "^1.6.0" | ||
"valid-module": "^1.7.0" | ||
}, | ||
@@ -149,0 +149,0 @@ "scripts": { |
@@ -55,3 +55,3 @@ <!-- TITLE/ --> | ||
<script type="module"> | ||
import * as pkg from '//cdn.pika.dev/getcontributors/^2.16.0' | ||
import * as pkg from '//cdn.pika.dev/getcontributors/^2.17.0' | ||
</script> | ||
@@ -64,3 +64,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//unpkg.com/getcontributors@^2.16.0' | ||
import * as pkg from '//unpkg.com/getcontributors@^2.17.0' | ||
</script> | ||
@@ -73,3 +73,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/getcontributors@2.16.0' | ||
import * as pkg from '//dev.jspm.io/getcontributors@2.17.0' | ||
</script> | ||
@@ -76,0 +76,0 @@ ``` |
@@ -9,3 +9,4 @@ /* eslint camelcase:0 */ | ||
import { getHeaders } from 'githubauthreq' | ||
const ghapi = process.env.GITHUB_API || 'https://api.github.com' | ||
import { env } from 'process' | ||
const { GITHUB_API = 'https://api.github.com' } = env | ||
@@ -114,3 +115,3 @@ /** Collection of fellows */ | ||
// Fetch | ||
const url = `${ghapi}/repos/${slug}/contributors?per_page=100` | ||
const url = `${GITHUB_API}/repos/${slug}/contributors?per_page=100` | ||
const resp = await fetch(url, { | ||
@@ -117,0 +118,0 @@ headers: getHeaders(), |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
49085
650
0
1
+ Addedfellow@6.15.0(transitive)
+ Addedgetrepos@5.10.0(transitive)
+ Addedgithubauthreq@5.11.0(transitive)
+ Addednative-promise-pool@3.6.0(transitive)
- Removededitions@6.21.0(transitive)
- Removedfellow@6.10.0(transitive)
- Removedgetrepos@5.6.0(transitive)
- Removednative-promise-pool@3.28.0(transitive)
- Removedversion-range@4.14.0(transitive)
Updatedcross-fetch@^3.0.5
Updatedfellow@6.15.0
Updatedgetrepos@5.10.0
Updatedgithubauthreq@5.11.0