google-cloud-bucket
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.3.7"></a> | ||
## [0.3.7](https://github.com/nicolasdao/google-cloud-bucket/compare/v0.3.6...v0.3.7) (2018-12-08) | ||
### Bug Fixes | ||
* publicUri is using component encoding on the entire bucket pathname rather each individual path component ([50eeabf](https://github.com/nicolasdao/google-cloud-bucket/commit/50eeabf)) | ||
<a name="0.3.6"></a> | ||
@@ -7,0 +17,0 @@ ## [0.3.6](https://github.com/nicolasdao/google-cloud-bucket/compare/v0.3.5...v0.3.6) (2018-12-08) |
@@ -72,3 +72,3 @@ /** | ||
if (data) | ||
data.publicUri = `https://storage.googleapis.com/${encodeURIComponent((filePath || '').replace(/^\/*/, ''))}` | ||
data.publicUri = `https://storage.googleapis.com/${(filePath || '').replace(/^\/*/, '').split('/').map(p => encodeURIComponent(p)).join('/')}` | ||
if (options.public) | ||
@@ -75,0 +75,0 @@ return addPublicAccess(filePath).then(({ uri }) => { |
{ | ||
"name": "google-cloud-bucket", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Nodejs package to add objects to a Google Cloud Bucket.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
53841