googleapis-common
Advanced tools
Comparing version 0.5.0 to 0.6.0-webpack
@@ -28,2 +28,3 @@ "use strict"; | ||
const uuid = require("uuid"); | ||
const isbrowser_1 = require("./isbrowser"); | ||
const maxContentLength = Math.pow(2, 31); | ||
@@ -206,4 +207,6 @@ // tslint:disable-next-line no-var-requires | ||
options.maxContentLength = options.maxContentLength || maxContentLength; | ||
options.headers['Accept-Encoding'] = 'gzip'; | ||
options.headers['User-Agent'] = USER_AGENT; | ||
if (!isbrowser_1.isBrowser()) { | ||
options.headers['Accept-Encoding'] = 'gzip'; | ||
options.headers['User-Agent'] = USER_AGENT; | ||
} | ||
// By default Axios treats any 2xx as valid, and all non 2xx status | ||
@@ -210,0 +213,0 @@ // codes as errors. This is a problem for HTTP 304s when used along |
@@ -0,1 +1,2 @@ | ||
export { OAuth2Client } from 'google-auth-library'; | ||
export { APIEndpoint, APIRequestContext, APIRequestParams, BodyResponseCallback, GlobalOptions, GoogleConfigurable, MethodOptions, ServiceOptions } from './api'; | ||
@@ -2,0 +3,0 @@ export { getAPI } from './apiIndex'; |
@@ -15,2 +15,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var google_auth_library_1 = require("google-auth-library"); | ||
exports.OAuth2Client = google_auth_library_1.OAuth2Client; | ||
var apiIndex_1 = require("./apiIndex"); | ||
@@ -17,0 +19,0 @@ exports.getAPI = apiIndex_1.getAPI; |
{ | ||
"name": "googleapis-common", | ||
"version": "0.5.0", | ||
"version": "0.6.0-webpack", | ||
"description": "A common tooling library used by the googleapis npm module. You probably don't want to use this directly.", | ||
@@ -44,9 +44,13 @@ "repository": "googleapis/nodejs-googleapis-common", | ||
"nock": "^10.0.0", | ||
"null-loader": "^0.1.1", | ||
"nyc": "^13.1.0", | ||
"source-map-support": "^0.5.8", | ||
"typescript": "~3.2.0" | ||
"ts-loader": "^5.3.2", | ||
"typescript": "~3.2.0", | ||
"webpack": "^4.28.3", | ||
"webpack-cli": "^3.2.0" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.18.0", | ||
"google-auth-library": "^2.0.0", | ||
"google-auth-library": "3.0.0-pre2", | ||
"pify": "^4.0.0", | ||
@@ -53,0 +57,0 @@ "qs": "^6.5.2", |
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
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
57858
980
20
+ Addedbase64-js@1.5.1(transitive)
+ Addedbignumber.js@9.1.2(transitive)
+ Addedfast-text-encoding@1.0.6(transitive)
+ Addedgcp-metadata@0.9.3(transitive)
+ Addedgoogle-auth-library@3.0.0-pre2(transitive)
+ Addedjson-bigint@0.3.1(transitive)
- Removedgcp-metadata@0.7.0(transitive)
- Removedgoogle-auth-library@2.0.2(transitive)
- Removedretry-axios@0.3.2(transitive)