google-auth-library
Advanced tools
Comparing version
@@ -582,2 +582,3 @@ "use strict"; | ||
} | ||
exports.GoogleAuth = GoogleAuth; | ||
/** | ||
@@ -587,3 +588,2 @@ * Export DefaultTransporter as a static property of the class. | ||
GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; | ||
exports.GoogleAuth = GoogleAuth; | ||
//# sourceMappingURL=googleauth.js.map |
@@ -101,3 +101,3 @@ "use strict"; | ||
const header = this.keyId | ||
? Object.assign({}, DEFAULT_HEADER, { kid: this.keyId }) : DEFAULT_HEADER; | ||
? Object.assign(Object.assign({}, DEFAULT_HEADER), { kid: this.keyId }) : DEFAULT_HEADER; | ||
const payload = Object.assign(defaultClaims, additionalClaims); | ||
@@ -104,0 +104,0 @@ // Sign the jwt and add it to the cache |
@@ -612,2 +612,3 @@ "use strict"; | ||
} | ||
exports.OAuth2Client = OAuth2Client; | ||
OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; | ||
@@ -649,3 +650,2 @@ /** | ||
]; | ||
exports.OAuth2Client = OAuth2Client; | ||
//# sourceMappingURL=oauth2client.js.map |
@@ -111,2 +111,3 @@ "use strict"; | ||
} | ||
exports.DefaultTransporter = DefaultTransporter; | ||
/** | ||
@@ -116,3 +117,2 @@ * Default user agent. | ||
DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; | ||
exports.DefaultTransporter = DefaultTransporter; | ||
//# sourceMappingURL=transporters.js.map |
@@ -7,2 +7,10 @@ # Changelog | ||
### [5.2.1](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v5.2.0...v5.2.1) (2019-09-06) | ||
### Bug Fixes | ||
* **deps:** nock@next has types that work with our libraries ([#783](https://www.github.com/googleapis/google-auth-library-nodejs/issues/783)) ([a253709](https://www.github.com/googleapis/google-auth-library-nodejs/commit/a253709)) | ||
* **docs:** fix variable name in README.md ([#782](https://www.github.com/googleapis/google-auth-library-nodejs/issues/782)) ([d8c70b9](https://www.github.com/googleapis/google-auth-library-nodejs/commit/d8c70b9)) | ||
## [5.2.0](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v5.1.2...v5.2.0) (2019-08-09) | ||
@@ -9,0 +17,0 @@ |
{ | ||
"name": "google-auth-library", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"author": "Google Inc.", | ||
@@ -38,3 +38,2 @@ "description": "Google APIs Authentication Client Library for Node.js", | ||
"@types/ncp": "^2.0.1", | ||
"@types/nock": "^10.0.3", | ||
"@types/node": "^10.5.1", | ||
@@ -48,3 +47,3 @@ "@types/sinon": "^7.0.0", | ||
"eslint-config-prettier": "^6.0.0", | ||
"eslint-plugin-node": "^9.0.0", | ||
"eslint-plugin-node": "^10.0.0", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
@@ -57,3 +56,3 @@ "execa": "^2.0.0", | ||
"karma-chrome-launcher": "^3.0.0", | ||
"karma-coverage": "^1.1.2", | ||
"karma-coverage": "^2.0.0", | ||
"karma-firefox-launcher": "^1.1.0", | ||
@@ -69,3 +68,3 @@ "karma-mocha": "^1.3.0", | ||
"ncp": "^2.0.0", | ||
"nock": "^11.0.0-beta.30", | ||
"nock": "^11.3.2", | ||
"null-loader": "^3.0.0", | ||
@@ -79,3 +78,3 @@ "nyc": "^14.1.1", | ||
"ts-loader": "^6.0.0", | ||
"typescript": "~3.5.0", | ||
"typescript": "~3.6.0", | ||
"webpack": "^4.20.2", | ||
@@ -82,0 +81,0 @@ "webpack-cli": "^3.1.1" |
@@ -66,3 +66,3 @@ <img src="https://avatars0.githubusercontent.com/u/1342004?v=3&s=96" alt="Google Inc. logo" title="Google" align="right" height="96" width="96"/> | ||
const projectId = await auth.getProjectId(); | ||
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`; | ||
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; | ||
const res = await client.request({ url }); | ||
@@ -187,3 +187,3 @@ console.log(res.data); | ||
const url = `https://www.googleapis.com/dns/v1/projects/${projectId}`; | ||
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; | ||
const res = await client.request({ url }); | ||
@@ -261,3 +261,3 @@ // The `tokens` event would now be raised if this was the first request | ||
); | ||
const url = `https://www.googleapis.com/dns/v1/projects/${keys.project_id}`; | ||
const url = `https://dns.googleapis.com/dns/v1/projects/${keys.project_id}`; | ||
const res = await client.request({url}); | ||
@@ -307,3 +307,3 @@ console.log(res.data); | ||
client.scopes = ['https://www.googleapis.com/auth/cloud-platform']; | ||
const url = `https://www.googleapis.com/dns/v1/projects/${keys.project_id}`; | ||
const url = `https://dns.googleapis.com/dns/v1/projects/${keys.project_id}`; | ||
const res = await client.request({url}); | ||
@@ -333,3 +333,3 @@ console.log(res.data); | ||
const projectId = await auth.getProjectId(); | ||
const url = `https://www.googleapis.com/dns/v1/projects/${project_id}`; | ||
const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; | ||
const res = await client.request({url}); | ||
@@ -336,0 +336,0 @@ console.log(res.data); |
218855
0.25%47
-2.08%