googleapis-common
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -23,2 +23,3 @@ "use strict"; | ||
const isbrowser_1 = require("./isbrowser"); | ||
const url_1 = require("url"); | ||
// tslint:disable-next-line no-var-requires | ||
@@ -140,2 +141,8 @@ const pkg = require('../../package.json'); | ||
} | ||
// Rewrite url if rootUrl is globally set | ||
if (parameters.context._options.rootUrl !== undefined && | ||
options.url !== undefined) { | ||
const path = options.url.slice(parameters.context._options.rootUrl.length); | ||
options.url = url_1.resolve(parameters.context._options.rootUrl, path); | ||
} | ||
// When forming the querystring, override the serializer so that array | ||
@@ -142,0 +149,0 @@ // values are serialized like this: |
@@ -7,2 +7,9 @@ # Changelog | ||
### [3.2.1](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v3.2.0...v3.2.1) (2020-01-09) | ||
### Bug Fixes | ||
* support rootUrl as global option ([ca51783](https://www.github.com/googleapis/nodejs-googleapis-common/commit/ca5178382046e1f1d365cd37d60bb508febf3db8)) | ||
## [3.2.0](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v3.1.1...v3.2.0) (2019-12-05) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "googleapis-common", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "A common tooling library used by the googleapis npm module. You probably don't want to use this directly.", | ||
@@ -15,3 +15,3 @@ "repository": "googleapis/nodejs-googleapis-common", | ||
"compile": "tsc -p .", | ||
"test": "nyc mocha build/test", | ||
"test": "c8 mocha build/test", | ||
"system-test": "mocha build/system-test", | ||
@@ -61,3 +61,3 @@ "presystem-test": "npm run compile", | ||
"linkinator": "^1.5.0", | ||
"mocha": "^6.1.4", | ||
"mocha": "^7.0.0", | ||
"mv": "^2.1.1", | ||
@@ -67,3 +67,3 @@ "ncp": "^2.0.0", | ||
"null-loader": "^3.0.0", | ||
"nyc": "^14.1.1", | ||
"c8": "^7.0.0", | ||
"puppeteer": "^2.0.0", | ||
@@ -70,0 +70,0 @@ "source-map-support": "^0.5.12", |
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
67597
1027