google-cloud-bucket
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -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", |
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
47603
955