Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-auth-library

Package Overview
Dependencies
Maintainers
4
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-auth-library - npm Package Compare versions

Comparing version 0.9.10 to 0.10.0

.github/CONTRIBUTING.md

13

CHANGELOG.md

@@ -0,1 +1,14 @@

## 0.10.0 (12/29/2016)
### Breaking bug fixes
* Fix oauth2 token refresh (#109) ([@ianmetcalf][])
### Backwards compatible changes
* Remove unused dependencies and upgrade remaining dependencies. (#112) ([@jmdobry][])
* Add yarn.lock file. (#113) ([@jmdobry][])
* Improve dev scripts. (#114) ([@jmdobry][])
* Improve repo licensing. (#115) ([@jmdobry][])
## 0.9.10 (11/15/2016)

@@ -2,0 +15,0 @@

8

lib/auth/oauth2client.js

@@ -347,6 +347,8 @@ /**

var postRequestCb = function(err, body, resp) {
var statusCode = resp && resp.statusCode;
// Automatically retry 401 and 403 responses
// if err is set, then getting credentials failed, and retrying won't help
if (retry && !err && resp &&
(resp.statusCode === 401 || resp.statusCode === 403)) {
// if err is set and is unrelated to response
// then getting credentials failed, and retrying won't help
if (retry && (statusCode === 401 || statusCode === 403) &&
(!err || err.code === statusCode)) {
/* It only makes sense to retry once, because the retry is intended to

@@ -353,0 +355,0 @@ * handle expiration-related failures. If refreshing the token does not

{
"name": "google-auth-library",
"version": "0.9.10",
"version": "0.10.0",
"author": "Google Inc.",
"description": "Google APIs Authentication Client Library for Node.js",
"contributors": [
{
"name": "Jason Allor",
"email": "jasonall@google.com"
},
{
"name": "Jason Dobry",
"email": "jason.dobry@gmail.com"
},
{
"name": "Tim Emiola",
"email": "temiola@google.com"
}
],
"engines": {

@@ -36,28 +22,23 @@ "node": ">=0.10"

"dependencies": {
"async": "~1.4.2",
"gtoken": "^1.1.0",
"lodash.noop": "~3.0.0",
"jws": "~3.0.0",
"request": "~2.74.0",
"string-template": "~0.2.0"
"gtoken": "^1.2.1",
"lodash.noop": "^3.0.1",
"jws": "^3.1.4",
"request": "^2.74.0"
},
"devDependencies": {
"coveralls": "^2.11.1",
"istanbul": "~0.3.2",
"keypair": "~1.0.0",
"jshint": "^2.5.5",
"jsdoc": "~3.3.0-alpha9",
"mkdirp": "~0.5.0",
"mocha": "^1.8.1",
"nock": "~1.9.0",
"rimraf": "^2.2.8",
"url": "~0.10.1",
"minimist": "^1.1.0"
"coveralls": "^2.11.15",
"istanbul": "^0.4.5",
"keypair": "^1.0.0",
"jshint": "^2.9.4",
"jsdoc": "^3.4.3",
"mocha": "^3.2.0",
"nock": "^9.0.2"
},
"scripts": {
"lint": "jshint lib test",
"test": "mocha --reporter spec --timeout 4000",
"mocha": "mocha --reporter spec --timeout 4000",
"generate-docs": "jsdoc -c jsdoc-conf.json ./README.md",
"prepare": "npm test && npm run lint && npm version patch",
"coverage": "istanbul cover -x 'apis/**' _mocha -- --reporter spec --timeout 4000",
"test": "npm run lint && npm run coverage",
"coveralls": "istanbul cover -x 'apis/**' _mocha --report lcovonly -- --reporter spec --timeout 4000 && cat coverage/lcov.info | coveralls"

@@ -64,0 +45,0 @@ },

@@ -5,2 +5,3 @@ # Google APIs Node.js Client

[![Code Coverage][coverallsimg]][coveralls]
[![Dependencies][david-dm-img]][david-dm]

@@ -108,3 +109,3 @@ This is Google's officially supported [node.js][node] client library for using

This library is licensed under Apache 2.0. Full license text is
available in [COPYING][copying].
available in [LICENSE][copying].

@@ -119,4 +120,4 @@ [travisimg]: https://api.travis-ci.org/google/google-auth-library-nodejs.svg

[usingkeys]: https://developers.google.com/console/help/#UsingKeys
[contributing]: https://github.com/google/google-auth-library-nodejs/tree/master/CONTRIBUTING.md
[copying]: https://github.com/google/google-auth-library-nodejs/tree/master/COPYING
[contributing]: https://github.com/google/google-auth-library-nodejs/blob/master/.github/CONTRIBUTING.md
[copying]: https://github.com/google/google-auth-library-nodejs/tree/master/LICENSE
[authdocs]: https://developers.google.com/accounts/docs/OAuth2Login

@@ -136,1 +137,3 @@ [request]: https://github.com/mikeal/request

[Application Default Credentials]: https://developers.google.com/identity/protocols/application-default-credentials#callingnode
[david-dm-img]: https://david-dm.org/google/google-auth-library-nodejs/status.svg
[david-dm]: https://david-dm.org/google/google-auth-library-nodejs

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc