googleapis-common
Advanced tools
Comparing version 4.4.3 to 5.0.0
@@ -24,3 +24,2 @@ "use strict"; | ||
const h2 = require("./http2"); | ||
const resolve = require("url"); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
@@ -130,4 +129,5 @@ const pkg = require('../../package.json'); | ||
options.url !== undefined) { | ||
const path = options.url.slice(parameters.context._options.rootUrl.length); | ||
options.url = resolve.resolve(parameters.context._options.rootUrl, path); | ||
const originalUrl = new URL(options.url); | ||
const path = originalUrl.href.substr(originalUrl.origin.length); | ||
options.url = new URL(path, parameters.context._options.rootUrl).href; | ||
} | ||
@@ -134,0 +134,0 @@ // When forming the querystring, override the serializer so that array |
@@ -7,2 +7,13 @@ # Changelog | ||
## [5.0.0](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v4.4.3...v5.0.0) (2021-01-08) | ||
### ⚠ BREAKING CHANGES | ||
* use WHATWG URL API to rewrite rootUrl correctly (#352) | ||
### Bug Fixes | ||
* use WHATWG URL API to rewrite rootUrl correctly ([#352](https://www.github.com/googleapis/nodejs-googleapis-common/issues/352)) ([4c59147](https://www.github.com/googleapis/nodejs-googleapis-common/commit/4c59147fc62cc3a2098d4ce5e21555e15e946147)) | ||
### [4.4.3](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v4.4.2...v4.4.3) (2020-10-29) | ||
@@ -9,0 +20,0 @@ |
{ | ||
"name": "googleapis-common", | ||
"version": "4.4.3", | ||
"version": "5.0.0", | ||
"description": "A common tooling library used by the googleapis npm module. You probably don't want to use this directly.", | ||
@@ -62,3 +62,3 @@ "repository": "googleapis/nodejs-googleapis-common", | ||
"codecov": "^3.5.0", | ||
"execa": "^4.0.0", | ||
"execa": "^5.0.0", | ||
"gts": "^2.0.0", | ||
@@ -70,3 +70,3 @@ "http2spy": "^2.0.0", | ||
"karma-coverage": "^2.0.0", | ||
"karma-firefox-launcher": "^1.1.0", | ||
"karma-firefox-launcher": "^2.0.0", | ||
"karma-mocha": "^2.0.0", | ||
@@ -73,0 +73,0 @@ "karma-remap-coverage": "^0.1.5", |
@@ -59,3 +59,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
Client libraries targetting some end-of-life versions of Node.js are available, and | ||
Client libraries targeting some end-of-life versions of Node.js are available, and | ||
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). | ||
@@ -62,0 +62,0 @@ The dist-tags follow the naming convention `legacy-(version)`. |
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
85918