gcs-resumable-upload
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -16,2 +16,6 @@ 'use strict' | ||
var wrapError = function (message, err) { | ||
return new Error([message, err.message].join('\n')) | ||
} | ||
function Upload (cfg) { | ||
@@ -208,3 +212,3 @@ if (!(this instanceof Upload)) return new Upload(cfg) | ||
this.authClient.authorizeRequest(reqOpts, function (err, authorizedReqOpts) { | ||
if (err) return callback(err) | ||
if (err) return callback(wrapError('Could not authenticate request', err)) | ||
@@ -226,3 +230,3 @@ request(authorizedReqOpts, function (err, resp, body) { | ||
this.authClient.authorizeRequest(reqOpts, function (err, authorizedReqOpts) { | ||
if (err) return self.destroy(err) | ||
if (err) return self.destroy(wrapError('Could not authenticate request', err)) | ||
@@ -229,0 +233,0 @@ var requestStream = request(authorizedReqOpts) |
{ | ||
"name": "gcs-resumable-upload", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Upload a file to Google Cloud Storage with built-in resumable behavior", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "standard && mocha" | ||
}, | ||
@@ -13,0 +13,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# gcs-resumable-upload | ||
# gcs-resumable-upload [![Build Status](https://travis-ci.org/stephenplusplus/gcs-resumable-upload.svg?branch=master)](https://travis-ci.org/stephenplusplus/gcs-resumable-upload) | ||
> Upload a file to Google Cloud Storage with built-in resumable behavior | ||
@@ -3,0 +3,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
13122
245