Comparing version 1.1.0 to 1.1.1
@@ -9,2 +9,3 @@ 'use strict'; | ||
var Feedr = require('feedr'); | ||
var typeChecker = require('typechecker'); | ||
@@ -71,3 +72,3 @@ var extendr = require('extendr'); | ||
/** | ||
Forward the arguments onto the configured logger if it exists. | ||
Construct our Getter Class | ||
@param {Object} [opts] | ||
@@ -98,3 +99,3 @@ @param {Function} [opts.log] - defaults to `null`, can be a function that receives the arguments: `logLevel`, `...args` | ||
// Feedr | ||
this.feedr = require('feedr').create(this.config); | ||
this.feedr = Feedr.create(this.config); | ||
@@ -271,3 +272,8 @@ // Chain | ||
url: 'https://api.github.com/repos/' + repoFullName + '?client_id=' + this.config.githubClientId + '&client_secret=' + this.config.githubClientSecret, | ||
parse: 'json' | ||
parse: 'json', | ||
requestOptions: { | ||
headers: { | ||
Accept: 'application/vnd.github.v3+json' | ||
} | ||
} | ||
}; | ||
@@ -395,3 +401,3 @@ | ||
headers: { | ||
Accept: 'application/vnd.github.beta+json' | ||
Accept: 'application/vnd.github.v3+json' | ||
} | ||
@@ -398,0 +404,0 @@ } |
# History | ||
## v1.1.1 2017 February 28 | ||
- Internal: explicit use of GitHub API version | ||
## v1.1.0 2017 February 27 | ||
@@ -4,0 +7,0 @@ - Converted from CoffeeScript to JavaScript |
{ | ||
"name": "getrepos", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Fetch the specified repositories, or those that match a particular github user or search query", | ||
@@ -125,3 +125,3 @@ "homepage": "https://github.com/bevry/getrepos", | ||
"devDependencies": { | ||
"assert-helpers": "^4.4.0", | ||
"assert-helpers": "^4.5.0", | ||
"babel-cli": "^6.23.0", | ||
@@ -128,0 +128,0 @@ "babel-preset-es2015": "^6.22.0", |
@@ -59,2 +59,4 @@ <!-- TITLE/ --> | ||
[API Documentation.](http://master.getrepos.bevry.surge.sh/docs/) | ||
``` javascript | ||
@@ -65,3 +67,3 @@ // Create our getrepos instance | ||
githubClientSecret: null, // optional, will try process.env.GITHUB_CLIENT_SECRET | ||
log: console.log // optional, arguments: level, message... | ||
log: console.log // optional, arguments: level, message... | ||
}); | ||
@@ -83,5 +85,3 @@ | ||
Repos are returned as an array of [repository objects](https://api.github.com/repos/bevry/getrepos). | ||
<!-- HISTORY/ --> | ||
@@ -88,0 +88,0 @@ |
'use strict' | ||
// Import | ||
const Feedr = require('feedr') | ||
const typeChecker = require('typechecker') | ||
@@ -55,3 +56,3 @@ const extendr = require('extendr') | ||
/** | ||
Forward the arguments onto the configured logger if it exists. | ||
Construct our Getter Class | ||
@param {Object} [opts] | ||
@@ -75,3 +76,3 @@ @param {Function} [opts.log] - defaults to `null`, can be a function that receives the arguments: `logLevel`, `...args` | ||
// Feedr | ||
this.feedr = require('feedr').create(this.config) | ||
this.feedr = Feedr.create(this.config) | ||
@@ -231,3 +232,8 @@ // Chain | ||
url: `https://api.github.com/repos/${repoFullName}?client_id=${this.config.githubClientId}&client_secret=${this.config.githubClientSecret}`, | ||
parse: 'json' | ||
parse: 'json', | ||
requestOptions: { | ||
headers: { | ||
Accept: 'application/vnd.github.v3+json' | ||
} | ||
} | ||
} | ||
@@ -343,3 +349,3 @@ | ||
headers: { | ||
Accept: 'application/vnd.github.beta+json' | ||
Accept: 'application/vnd.github.v3+json' | ||
} | ||
@@ -346,0 +352,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38336
728
0