gcs-resumable-upload
Advanced tools
Comparing version 0.4.3 to 0.5.0
@@ -48,2 +48,6 @@ 'use strict' | ||
this.predefinedAcl = cfg.predefinedAcl | ||
if (cfg.private) this.predefinedAcl = 'private' | ||
if (cfg.public) this.predefinedAcl = 'publicRead' | ||
this.configStore = new ConfigStore('gcs-resumable-upload') | ||
@@ -103,2 +107,6 @@ this.uriProvidedManually = !!cfg.uri | ||
if (this.predefinedAcl) { | ||
reqOpts.qs.predefinedAcl = this.predefinedAcl | ||
} | ||
if (this.origin) { | ||
@@ -105,0 +113,0 @@ reqOpts.headers.Origin = this.origin |
{ | ||
"name": "gcs-resumable-upload", | ||
"version": "0.4.3", | ||
"version": "0.5.0", | ||
"description": "Upload a file to Google Cloud Storage with built-in resumable behavior", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -111,2 +111,32 @@ # gcs-resumable-upload [![Build Status](https://travis-ci.org/stephenplusplus/gcs-resumable-upload.svg?branch=master)](https://travis-ci.org/stephenplusplus/gcs-resumable-upload) | ||
###### config.predefinedAcl | ||
- Type: `string` | ||
- *Optional* | ||
Apply a predefined set of access controls to the created file. | ||
Acceptable values are: | ||
- **`authenticatedRead`** - Object owner gets `OWNER` access, and `allAuthenticatedUsers` get `READER` access. | ||
- **`bucketOwnerFullControl`** - Object owner gets `OWNER` access, and project team owners get `OWNER` access. | ||
- **`bucketOwnerRead`** - Object owner gets `OWNER` access, and project team owners get `READER` access. | ||
- **`private`** - Object owner gets `OWNER` access. | ||
- **`projectPrivate`** - Object owner gets `OWNER` access, and project team members get access according to their roles. | ||
- **`publicRead`** - Object owner gets `OWNER` access, and `allUsers` get `READER` access. | ||
###### config.private | ||
- Type: `boolean` | ||
- *Optional* | ||
Make the uploaded file private. (Alias for `config.predefinedAcl = 'private'`) | ||
###### config.public | ||
- Type: `boolean` | ||
- *Optional* | ||
Make the uploaded file public. (Alias for `config.predefinedAcl = 'publicRead'`) | ||
###### config.uri | ||
@@ -113,0 +143,0 @@ |
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
15254
275
195