google-auth-library
Advanced tools
Comparing version 0.9.10 to 0.10.0
@@ -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 @@ |
@@ -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
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
132278
4
7
24
2007
136
+ Addedajv@6.12.6(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjwa@1.4.1(transitive)
+ Addedjws@3.2.2(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.10.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
- Removedasync@~1.4.2
- Removedstring-template@~0.2.0
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedassert-plus@0.2.0(transitive)
- Removedasync@1.4.22.6.4(transitive)
- Removedaws-sign2@0.6.0(transitive)
- Removedbase64url@0.0.61.0.6(transitive)
- Removedbl@1.1.2(transitive)
- Removedboom@2.10.1(transitive)
- Removedcamelcase@1.2.1(transitive)
- Removedcamelcase-keys@1.0.0(transitive)
- Removedcaseless@0.11.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcommander@2.20.3(transitive)
- Removedconcat-stream@1.4.11(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedform-data@1.0.1(transitive)
- Removedgenerate-function@2.3.1(transitive)
- Removedgenerate-object-property@1.2.0(transitive)
- Removedget-stdin@4.0.1(transitive)
- Removedhar-validator@2.0.6(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhawk@3.1.3(transitive)
- Removedhoek@2.16.3(transitive)
- Removedhttp-signature@1.1.1(transitive)
- Removedindent-string@1.2.2(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-my-ip-valid@1.0.1(transitive)
- Removedis-my-json-valid@2.20.6(transitive)
- Removedis-property@1.0.2(transitive)
- Removedisarray@0.0.11.0.0(transitive)
- Removedjsonpointer@5.0.1(transitive)
- Removedjwa@1.0.2(transitive)
- Removedjws@3.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmap-obj@1.0.1(transitive)
- Removedmeow@2.0.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removednode-uuid@1.4.8(transitive)
- Removedoauth-sign@0.8.2(transitive)
- Removedobject-assign@1.0.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedprocess-nextick-args@1.0.7(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.2.4(transitive)
- Removedreadable-stream@1.1.142.0.6(transitive)
- Removedrepeating@1.1.3(transitive)
- Removedrequest@2.74.0(transitive)
- Removedsntp@1.0.9(transitive)
- Removedstring-template@0.2.1(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstringstream@0.0.6(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtough-cookie@2.3.4(transitive)
- Removedtunnel-agent@0.4.3(transitive)
- Removedtypedarray@0.0.7(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
Updatedgtoken@^1.2.1
Updatedjws@^3.1.4
Updatedlodash.noop@^3.0.1
Updatedrequest@^2.74.0