Comparing version 2.3.1 to 2.3.2
@@ -61,7 +61,3 @@ "use strict"; | ||
if (callback) { | ||
this.getTokenAsync() | ||
.then(t => { | ||
callback(null, t); | ||
}) | ||
.catch(callback); | ||
this.getTokenAsync().then(t => callback(null, t), callback); | ||
return; | ||
@@ -140,3 +136,3 @@ } | ||
if (callback) { | ||
this.revokeTokenAsync().then(() => callback()).catch(callback); | ||
this.revokeTokenAsync().then(() => callback(), callback); | ||
return; | ||
@@ -204,3 +200,4 @@ } | ||
}, | ||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' } | ||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, | ||
responseType: 'json' | ||
}) | ||
@@ -207,0 +204,0 @@ .then(r => { |
@@ -7,2 +7,16 @@ # Changelog | ||
## v2.3.2 | ||
01-09-2019 13:40 PST | ||
### Documentation | ||
- docs: generate docs with compodoc ([#154](https://github.com/googleapis/node-gtoken/pull/154)) | ||
- docs: fix up the readme ([#153](https://github.com/googleapis/node-gtoken/pull/153)) | ||
### Internal / Testing Changes | ||
- build: Re-generated to pick up changes in the API or client library generator. ([#158](https://github.com/googleapis/node-gtoken/pull/158)) | ||
- build: check broken links in generated docs ([#152](https://github.com/googleapis/node-gtoken/pull/152)) | ||
- fix: add a system test and get it passing ([#150](https://github.com/googleapis/node-gtoken/pull/150)) | ||
- chore(build): inject yoshi automation key ([#149](https://github.com/googleapis/node-gtoken/pull/149)) | ||
## v2.3.1 | ||
@@ -68,1 +82,11 @@ | ||
### 2.0.0 | ||
New features: | ||
- API now supports callback and promise based workflows | ||
Breaking changes: | ||
- `GoogleToken` is now a class type, and must be instantiated. | ||
- `GoogleToken.expires_at` renamed to `GoogleToken.expiresAt` | ||
- `GoogleToken.raw_token` renamed to `GoogleToken.rawToken` | ||
- `GoogleToken.token_expires` renamed to `GoogleToken.tokenExpires` | ||
{ | ||
"name": "gtoken", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Node.js Google Authentication Service Account Tokens", | ||
@@ -14,3 +14,2 @@ "main": "./build/src/index.js", | ||
"clean": "gts clean", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json", | ||
"fix": "gts fix", | ||
@@ -21,5 +20,6 @@ "compile": "tsc -p .", | ||
"pretest": "npm run compile", | ||
"system-test": "echo no system tests 👻", | ||
"presystem-test": "npm run compile", | ||
"system-test": "mocha build/system-test", | ||
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../", | ||
"docs": "echo no docs 👻" | ||
"docs": "compodoc src/" | ||
}, | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"dependencies": { | ||
"gaxios": "^1.0.2", | ||
"gaxios": "^1.0.4", | ||
"google-p12-pem": "^1.0.0", | ||
@@ -48,2 +48,3 @@ "jws": "^3.1.5", | ||
"devDependencies": { | ||
"@compodoc/compodoc": "^1.1.7", | ||
"@types/jws": "^3.1.0", | ||
@@ -67,7 +68,4 @@ "@types/mime": "^2.0.0", | ||
"build/src", | ||
"!build/src/**/*.map", | ||
"LICENSE", | ||
"packge.json", | ||
"README.md" | ||
"!build/src/**/*.map" | ||
] | ||
} |
# node-gtoken | ||
[![NPM Version][npm-image]][npm-url] | ||
[![CircleCI][circle-image]][circle-url] | ||
[![Dependency Status][david-image]][david-url] | ||
@@ -11,3 +10,3 @@ [![devDependency Status][david-dev-image]][david-dev-url] | ||
Node.js Google Authentication Service Account Tokens | ||
> Node.js Google Authentication Service Account Tokens | ||
@@ -168,26 +167,12 @@ ## Installation | ||
## Changelog | ||
### 1.2.2 -> 2.0.0 | ||
New features: | ||
- API now supports callback and promise based workflows | ||
Breaking changes: | ||
- `GoogleToken` is now a class type, and must be instantiated. | ||
- `GoogleToken.expires_at` renamed to `GoogleToken.expiresAt` | ||
- `GoogleToken.raw_token` renamed to `GoogleToken.rawToken` | ||
- `GoogleToken.token_expires` renamed to `GoogleToken.tokenExpires` | ||
## License | ||
[MIT](LICENSE) | ||
[MIT](https://github.com/googleapis/node-gtoken/blob/master/LICENSE) | ||
[circle-image]: https://circleci.com/gh/google/node-gtoken.svg?style=svg | ||
[circle-url]: https://circleci.com/gh/google/node-gtoken | ||
[codecov-image]: https://codecov.io/gh/google/node-gtoken/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/google/node-gtoken | ||
[david-image]: https://david-dm.org/google/node-gtoken.svg | ||
[david-url]: https://david-dm.org/google/node-gtoken | ||
[david-dev-image]: https://david-dm.org/google/node-gtoken/dev-status.svg | ||
[david-dev-url]: https://david-dm.org/google/node-gtoken?type=dev | ||
[codecov-image]: https://codecov.io/gh/googleapis/node-gtoken/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/googleapis/node-gtoken | ||
[david-image]: https://david-dm.org/googleapis/node-gtoken.svg | ||
[david-url]: https://david-dm.org/googleapis/node-gtoken | ||
[david-dev-image]: https://david-dm.org/googleapis/node-gtoken/dev-status.svg | ||
[david-dev-url]: https://david-dm.org/googleapis/node-gtoken?type=dev | ||
[gdevconsole]: https://console.developers.google.com | ||
@@ -198,3 +183,3 @@ [gts-image]: https://img.shields.io/badge/code%20style-Google%20%E2%98%82%EF%B8%8F-blue.svg | ||
[npm-url]: https://npmjs.org/package/gtoken | ||
[snyk-image]: https://snyk.io/test/github/google/node-gtoken/badge.svg | ||
[snyk-url]: https://snyk.io/test/github/google/node-gtoken | ||
[snyk-image]: https://snyk.io/test/github/googleapis/node-gtoken/badge.svg | ||
[snyk-url]: https://snyk.io/test/github/googleapis/node-gtoken |
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
24539
0
16
307
183
Updatedgaxios@^1.0.4