Socket
Socket
Sign inDemoInstall

gcs-resumable-upload

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gcs-resumable-upload - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

8

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc