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

google-auth-library

Package Overview
Dependencies
Maintainers
7
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 2.0.1 to 2.0.2

2

build/src/auth/jwtaccess.js

@@ -37,3 +37,3 @@ "use strict";

constructor(email, key, keyId) {
this.cache = LRU({ max: 500, maxAge: 60 * 60 * 1000 });
this.cache = new LRU({ max: 500, maxAge: 60 * 60 * 1000 });
this.email = email;

@@ -40,0 +40,0 @@ this.key = key;

@@ -30,3 +30,2 @@ "use strict";

const oauth2client_1 = require("./oauth2client");
const isString = require('lodash.isstring');
class JWT extends oauth2client_1.OAuth2Client {

@@ -69,3 +68,5 @@ constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) {

getRequestMetadataAsync(url) {
const _super = name => super[name];
const _super = Object.create(null, {
getRequestMetadataAsync: { get: () => super.getRequestMetadataAsync }
});
return __awaiter(this, void 0, void 0, function* () {

@@ -88,3 +89,3 @@ if (!this.apiKey && !this.hasScopes() && url) {

else {
return _super("getRequestMetadataAsync").call(this, url);
return _super.getRequestMetadataAsync.call(this, url);
}

@@ -228,3 +229,3 @@ });

fromAPIKey(apiKey) {
if (!isString(apiKey)) {
if (typeof apiKey !== 'string') {
throw new Error('Must provide an API Key string.');

@@ -231,0 +232,0 @@ }

@@ -298,3 +298,4 @@ "use strict";

url: OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_ + '?' +
querystring.stringify({ token })
querystring.stringify({ token }),
method: 'POST'
};

@@ -301,0 +302,0 @@ if (callback) {

@@ -50,5 +50,7 @@ "use strict";

refreshTokenNoCache(refreshToken) {
const _super = name => super[name];
const _super = Object.create(null, {
refreshTokenNoCache: { get: () => super.refreshTokenNoCache }
});
return __awaiter(this, void 0, void 0, function* () {
return _super("refreshTokenNoCache").call(this, this._refreshToken);
return _super.refreshTokenNoCache.call(this, this._refreshToken);
});

@@ -55,0 +57,0 @@ }

@@ -19,2 +19,3 @@ /**

export { CredentialBody, CredentialRequest, Credentials, JWTInput } from './auth/credentials';
export { GCPEnv } from './auth/envDetect';
export { GoogleAuthOptions } from './auth/googleauth';

@@ -21,0 +22,0 @@ export { IAMAuth, RequestMetadata } from './auth/iam';

@@ -22,2 +22,4 @@ "use strict";

exports.Compute = computeclient_1.Compute;
var envDetect_1 = require("./auth/envDetect");
exports.GCPEnv = envDetect_1.GCPEnv;
var iam_1 = require("./auth/iam");

@@ -24,0 +26,0 @@ exports.IAMAuth = iam_1.IAMAuth;

@@ -7,2 +7,42 @@ # Changelog

## v2.0.2
12-16-2018 10:48 PST
### Fixes
- fix(types): export GCPEnv type ([#569](https://github.com/google/google-auth-library-nodejs/pull/569))
- fix: use post for token revocation ([#524](https://github.com/google/google-auth-library-nodejs/pull/524))
### Dependencies
- fix(deps): update dependency lru-cache to v5 ([#541](https://github.com/google/google-auth-library-nodejs/pull/541))
### Documentation
- docs: add ref docs again ([#553](https://github.com/google/google-auth-library-nodejs/pull/553))
- docs: clean up the readme ([#554](https://github.com/google/google-auth-library-nodejs/pull/554))
### Internal / Testing Changes
- chore(deps): update dependency @types/sinon to v7 ([#568](https://github.com/google/google-auth-library-nodejs/pull/568))
- refactor: use execa for install tests, run eslint on samples ([#559](https://github.com/google/google-auth-library-nodejs/pull/559))
- chore(build): inject yoshi automation key ([#566](https://github.com/google/google-auth-library-nodejs/pull/566))
- chore: update nyc and eslint configs ([#565](https://github.com/google/google-auth-library-nodejs/pull/565))
- chore: fix publish.sh permission +x ([#563](https://github.com/google/google-auth-library-nodejs/pull/563))
- fix(build): fix Kokoro release script ([#562](https://github.com/google/google-auth-library-nodejs/pull/562))
- build: add Kokoro configs for autorelease ([#561](https://github.com/google/google-auth-library-nodejs/pull/561))
- chore: always nyc report before calling codecov ([#557](https://github.com/google/google-auth-library-nodejs/pull/557))
- chore: nyc ignore build/test by default ([#556](https://github.com/google/google-auth-library-nodejs/pull/556))
- chore(build): update the prettier and renovate config ([#552](https://github.com/google/google-auth-library-nodejs/pull/552))
- chore: update license file ([#551](https://github.com/google/google-auth-library-nodejs/pull/551))
- fix(build): fix system key decryption ([#547](https://github.com/google/google-auth-library-nodejs/pull/547))
- chore(deps): update dependency typescript to ~3.2.0 ([#546](https://github.com/google/google-auth-library-nodejs/pull/546))
- chore(deps): unpin sinon ([#544](https://github.com/google/google-auth-library-nodejs/pull/544))
- refactor: drop non-required modules ([#542](https://github.com/google/google-auth-library-nodejs/pull/542))
- chore: add synth.metadata ([#537](https://github.com/google/google-auth-library-nodejs/pull/537))
- fix: Pin @types/sinon to last compatible version ([#538](https://github.com/google/google-auth-library-nodejs/pull/538))
- chore(deps): update dependency gts to ^0.9.0 ([#531](https://github.com/google/google-auth-library-nodejs/pull/531))
- chore: update eslintignore config ([#530](https://github.com/google/google-auth-library-nodejs/pull/530))
- chore: drop contributors from multiple places ([#528](https://github.com/google/google-auth-library-nodejs/pull/528))
- chore: use latest npm on Windows ([#527](https://github.com/google/google-auth-library-nodejs/pull/527))
- chore: update CircleCI config ([#523](https://github.com/google/google-auth-library-nodejs/pull/523))
- chore: include build in eslintignore ([#516](https://github.com/google/google-auth-library-nodejs/pull/516))
## v2.0.1

@@ -156,1 +196,3 @@

## Upgrading to 1.x
The `1.x` release includes a variety of bug fixes, new features, and breaking changes. Please take care, and see [the release notes](https://github.com/googleapis/google-auth-library-nodejs/releases/tag/v1.0.0) for a list of breaking changes, and the upgrade guide.
{
"name": "google-auth-library",
"version": "2.0.1",
"version": "2.0.2",
"author": "Google Inc.",

@@ -25,10 +25,9 @@ "description": "Google APIs Authentication Client Library for Node.js",

"jws": "^3.1.5",
"lodash.isstring": "^4.0.1",
"lru-cache": "^4.1.3",
"lru-cache": "^5.0.0",
"semver": "^5.5.0"
},
"devDependencies": {
"typedoc": "^0.13.0",
"@compodoc/compodoc": "^1.1.7",
"@types/execa": "^0.9.0",
"@types/jws": "^3.1.0",
"@types/lodash.isstring": "^4.0.3",
"@types/lru-cache": "^4.1.0",

@@ -40,10 +39,14 @@ "@types/mocha": "^5.2.1",

"@types/node": "^10.5.1",
"@types/pify": "^3.0.2",
"@types/semver": "^5.5.0",
"@types/sinon": "^5.0.1",
"@types/sinon": "^7.0.0",
"@types/tmp": "^0.0.33",
"assert-rejects": "^1.0.0",
"codecov": "^3.0.2",
"gh-pages": "^2.0.0",
"gts": "^0.8.0",
"eslint": "^5.10.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-prettier": "^3.0.0",
"execa": "^1.0.0",
"gh-pages": "^2.0.1",
"gts": "^0.9.0",
"intelli-espower-loader": "^1.0.1",

@@ -57,3 +60,2 @@ "js-green-licenses": "^0.5.0",

"nyc": "^13.0.0",
"pify": "^4.0.0",
"prettier": "^1.13.4",

@@ -63,32 +65,20 @@ "sinon": "^7.0.0",

"tmp": "^0.0.33",
"typescript": "~3.1.0"
"typedoc": "^0.13.0",
"typescript": "~3.2.0"
},
"files": [
"LICENSE",
"README.md",
"build/src",
"!build/src/**/*.map",
"package.json"
"!build/src/**/*.map"
],
"nyc": {
"exclude": [
"build/test"
]
},
"scripts": {
"test": "npm run test-only",
"test-only": "nyc mocha build/test",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json",
"test": "nyc mocha build/test",
"clean": "gts clean",
"prepare": "npm run compile",
"check": "gts check",
"lint": "npm run check",
"lint": "gts check && eslint '**/*.js' && jsgl --local .",
"compile": "tsc -p .",
"fix": "gts fix && npm run fix-samples",
"fix-samples": "prettier --write --single-quote samples/*.js",
"fix": "gts fix && eslint --fix '**/*.js'",
"pretest": "npm run compile",
"posttest": "npm run check && npm run license-check",
"license-check": "jsgl --local .",
"docs": "exit 0; typedoc --excludePrivate --excludeExternals --mode modules --out docs src && touch docs/.nojekyll",
"publish-docs": "gh-pages --dotfiles --dist docs --remote upstream",
"docs": "compodoc src/ && touch docs/.nojekyll",
"publish-docs": "gh-pages -d docs --remote upstream && git push upstream gh-pages",
"samples-test": "mocha samples/system-test",

@@ -95,0 +85,0 @@ "system-test": "mocha build/system-test",

@@ -6,3 +6,2 @@ <img src="https://avatars0.githubusercontent.com/u/1342004?v=3&s=96" alt="Google Inc. logo" title="Google" align="right" height="96" width="96"/>

[![npm version][npmimg]][npm]
[![CircleCI][circle-image]][circle-url]
[![codecov][codecov-image]][codecov-url]

@@ -21,5 +20,2 @@ [![Dependencies][david-dm-img]][david-dm]

## Upgrading to 1.x
The `1.x` release includes a variety of bug fixes, new features, and breaking changes. Please take care, and see [the release notes](https://github.com/googleapis/google-auth-library-nodejs/releases/tag/v1.0.0) for a list of breaking changes, and the upgrade guide.
## Ways to authenticate

@@ -357,4 +353,2 @@ This library provides a variety of ways to authenticate to your Google services.

[bugs]: https://github.com/googleapis/google-auth-library-nodejs/issues
[circle-image]: https://circleci.com/gh/googleapis/google-auth-library-nodejs.svg?style=svg
[circle-url]: https://circleci.com/gh/googleapis/google-auth-library-nodejs
[codecov-image]: https://codecov.io/gh/googleapis/google-auth-library-nodejs/branch/master/graph/badge.svg

@@ -361,0 +355,0 @@ [codecov-url]: https://codecov.io/gh/googleapis/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