Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-cloud-bucket

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

google-cloud-bucket - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

<a name="0.3.0"></a>
# [0.3.0](https://github.com/nicolasdao/google-cloud-bucket/compare/v0.2.1...v0.3.0) (2018-12-05)
<a name="0.2.1"></a>

@@ -7,0 +12,0 @@ ## [0.2.1](https://github.com/nicolasdao/google-cloud-bucket/compare/v0.2.0...v0.2.1) (2018-12-05)

17

index.js

@@ -109,2 +109,3 @@ /**

return {
name: bucketName,
'get': () => getBucket(bucketName),

@@ -115,7 +116,13 @@ update: (config={}) => updateConfig(bucketName, config),

isPublic: () => isBucketPublic(bucketName),
object: {
'get': (filePath, options={}) => retryGetObject(posix.join(bucketName, filePath), options),
insert: (object, filePath, options={}) => retryPutObject(object, posix.join(bucketName, filePath), options),
addPublicAccess: (filePath) => addPublicAccess(posix.join(bucketName, filePath)),
removePublicAccess: (filePath) => removePublicAccess(posix.join(bucketName, filePath))
object: (filePath) => {
if (!filePath)
throw new Error('Missing required \'filePath\' argument')
return {
file: filePath,
'get': (options={}) => retryGetObject(posix.join(bucketName, filePath), options),
insert: (object, options={}) => retryPutObject(object, posix.join(bucketName, filePath), options),
addPublicAccess: () => addPublicAccess(posix.join(bucketName, filePath)),
removePublicAccess: () => removePublicAccess(posix.join(bucketName, filePath))
}
}

@@ -122,0 +129,0 @@ }

{
"name": "google-cloud-bucket",
"version": "0.2.1",
"version": "0.3.0",
"description": "Nodejs package to add objects to a Google Cloud Bucket.",

@@ -5,0 +5,0 @@ "main": "index.js",

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