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.4.3 to 0.5.0

8

index.js

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

2

package.json
{
"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 @@

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