diff --git a/lib/gp-iam.js b/lib/gp-iam.js index 85b58d0..49da8a1 100644 --- a/lib/gp-iam.js +++ b/lib/gp-iam.js @@ -94,7 +94,7 @@ GpIAM.prototype.tokenCache = {}; GpIAM.prototype.API_KEY = "API-KEY"; // GP SPECIFIC header GpIAM.prototype.VERBOSE = process.env.GP_VERBOSE || false; -GpIAM.prototype.GP_USE_APIKEY = process.env.GP_USE_APIKEY; // if false: use token manager +GpIAM.prototype.GP_USE_APIKEY = process.env.GP_USE_APIKEY || false; // if false: use token manager /** * Generate HTTP Authorization header. diff --git a/package-lock.json b/package-lock.json index aee9db0..cf683b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -384,7 +384,8 @@ "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true }, "aws4": { "version": "1.7.0", @@ -1527,16 +1528,6 @@ "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", "dev": true }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - } - }, "fs-then-native": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fs-then-native/-/fs-then-native-2.0.0.tgz", diff --git a/package.json b/package.json index c21c81a..c1ad103 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,6 @@ }, "dependencies": { "bent": "^1.4.0", - "form-data": "^2.3.3", "g11n-pipeline-flatten": "^2.0.0", "minimist": "^1.2.0", "swagger-client": "^3.8.25"