From 83b265ac9acb81e6972440f6091f77f770beb74d Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Wed, 31 Jan 2018 18:51:51 -0500 Subject: [PATCH] Revert "Update dependencies (#34)" This reverts commit aa3b2cfc65b30575913e830ecbab44a66cb7bc1e. --- .gitignore | 1 - index.js | 2 +- package.json | 4 ++-- test.js | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 7e383ab..659fedb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ node_modules coverage *.log -package-lock.json \ No newline at end of file diff --git a/index.js b/index.js index ba9520e..c878e2b 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ var async = require('async'); var crypto = require('crypto'); var fs = require('fs'); -var GoogleAuth = require('google-auth-library').GoogleAuth; +var GoogleAuth = require('google-auth-library'); var gcpMetadata = require('gcp-metadata'); var path = require('path'); var request = require('request'); diff --git a/package.json b/package.json index b17dae2..2135e41 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,13 @@ "repository": "stephenplusplus/google-auto-auth", "license": "MIT", "devDependencies": { - "mocha": "^5.0.0", + "mocha": "^3.3.0", "mockery": "^2.0.0" }, "dependencies": { "async": "^2.3.0", "gcp-metadata": "^0.4.1", - "google-auth-library": "^1.2.0", + "google-auth-library": "^0.12.0", "request": "^2.79.0" }, "engines": { diff --git a/test.js b/test.js index 73b6680..55bb197 100644 --- a/test.js +++ b/test.js @@ -36,7 +36,7 @@ describe('googleAutoAuth', function () { var auth; before(function () { - mockery.registerMock('google-auth-library', { GoogleAuth: fakeGoogleAuthLibrary }); + mockery.registerMock('google-auth-library', fakeGoogleAuthLibrary); mockery.registerMock('crypto', fakeCrypto); mockery.registerMock('request', fakeRequest); mockery.registerMock('gcp-metadata', fakeGcpMetadata);