gcs-resumable-upload
Advanced tools
Comparing version 0.7.7 to 0.8.0
11
index.js
@@ -50,2 +50,3 @@ 'use strict' | ||
this.origin = cfg.origin | ||
this.userProject = cfg.userProject | ||
@@ -268,2 +269,7 @@ if (cfg.key) { | ||
if (this.userProject) { | ||
reqOpts.qs = reqOpts.qs || {} | ||
reqOpts.qs.userProject = this.userProject | ||
} | ||
this.authClient.authorizeRequest(reqOpts, function (err, authorizedReqOpts) { | ||
@@ -290,2 +296,7 @@ if (err) return callback(wrapError('Could not authenticate request', err)) | ||
if (this.userProject) { | ||
reqOpts.qs = reqOpts.qs || {} | ||
reqOpts.qs.userProject = this.userProject | ||
} | ||
this.authClient.authorizeRequest(reqOpts, function (err, authorizedReqOpts) { | ||
@@ -292,0 +303,0 @@ if (err) return self.destroy(wrapError('Could not authenticate request', err)) |
{ | ||
"name": "gcs-resumable-upload", | ||
"version": "0.7.7", | ||
"version": "0.8.0", | ||
"description": "Upload a file to Google Cloud Storage with built-in resumable behavior", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -166,2 +166,9 @@ # 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.userProject | ||
- Type: `string` | ||
- *Optional* | ||
If the bucket being accessed has `requesterPays` functionality enabled, this can be set to control which project is billed for the access of this file. | ||
-- | ||
@@ -168,0 +175,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
17609
312
220