Comparing version 2.0.1 to 2.0.2
@@ -54,2 +54,3 @@ "use strict"; | ||
var pify = require("pify"); | ||
var querystring = require("querystring"); | ||
var readFile = pify(fs.readFile); | ||
@@ -232,6 +233,10 @@ var GOOGLE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/token'; | ||
signedJWT = jws.sign(toSign); | ||
return [2 /*return*/, axios_1.default | ||
.post(GOOGLE_TOKEN_URL, { | ||
grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', | ||
assertion: signedJWT | ||
return [2 /*return*/, axios_1.default({ | ||
method: 'post', | ||
url: GOOGLE_TOKEN_URL, | ||
data: querystring.stringify({ | ||
grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', | ||
assertion: signedJWT | ||
}), | ||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' } | ||
}) | ||
@@ -238,0 +243,0 @@ .then(function (r) { |
{ | ||
"name": "gtoken", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Node.js Google Authentication Service Account Tokens", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
@@ -10,2 +10,3 @@ # node-gtoken | ||
[![Greenkeeper badge][greenkeeper-image]][greenkeeper-url] | ||
[![style badge][gts-image]][gts-url] | ||
@@ -176,7 +177,4 @@ Node.js Google Authentication Service Account Tokens | ||
[gdevconsole]: https://console.developers.google.com | ||
[npm-image]: https://img.shields.io/npm/v/gtoken.svg | ||
[npm-url]: https://npmjs.org/package/gtoken | ||
[travis-image]: https://travis-ci.org/google/node-gtoken.svg?branch=master | ||
[travis-url]: https://travis-ci.org/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 | ||
@@ -186,7 +184,12 @@ [david-url]: https://david-dm.org/google/node-gtoken | ||
[david-dev-url]: https://david-dm.org/google/node-gtoken?type=dev | ||
[gdevconsole]: https://console.developers.google.com | ||
[greenkeeper-image]: https://badges.greenkeeper.io/google/node-gtoken.svg | ||
[greenkeeper-url]: https://greenkeeper.io/ | ||
[gts-image]: https://img.shields.io/badge/code%20style-Google%20%E2%98%82%EF%B8%8F-blue.svg | ||
[gts-url]: https://www.npmjs.com/package/gts | ||
[npm-image]: https://img.shields.io/npm/v/gtoken.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 | ||
[codecov-image]: https://codecov.io/gh/google/node-gtoken/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/google/node-gtoken | ||
[greenkeeper-image]: https://badges.greenkeeper.io/google/node-gtoken.svg | ||
[greenkeeper-url]: https://greenkeeper.io/ | ||
[travis-image]: https://travis-ci.org/google/node-gtoken.svg?branch=master | ||
[travis-url]: https://travis-ci.org/google/node-gtoken |
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
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
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
193
1
26989
6
324
1