@google-cloud/storage
Advanced tools
Comparing version 6.5.3 to 6.5.4
@@ -426,8 +426,4 @@ "use strict"; | ||
options = Object.assign({}, options, { apiEndpoint }); | ||
// Note: EMULATOR_HOST, if present and not overridden, has been applied to | ||
// `options` at this point. Also, this uses string concatenation because the | ||
// endpoint may contain a base path, and any trailing slash on that will | ||
// have been removed, so using the two-arg URL constructor for relative path | ||
// resolution won't work. | ||
const baseUrl = new URL(options.apiEndpoint + '/storage/v1').href; | ||
// Note: EMULATOR_HOST is an experimental configuration variable. Use apiEndpoint instead. | ||
const baseUrl = EMULATOR_HOST || `${options.apiEndpoint}/storage/v1`; | ||
const config = { | ||
@@ -434,0 +430,0 @@ apiEndpoint: options.apiEndpoint, |
{ | ||
"name": "@google-cloud/storage", | ||
"description": "Cloud Storage Client Library for Node.js", | ||
"version": "6.5.3", | ||
"version": "6.5.4", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
Sorry, the diff of this file is too big to display
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
806545
16305