skipper-gclouds
Advanced tools
Comparing version 1.0.1 to 1.0.2
11
index.js
@@ -91,5 +91,10 @@ /** | ||
__newFile.extra = file.metadata; | ||
__newFile.extra.Location = "https://storage.googleapis.com/" + globalOpts.bucket + "/" + __newFile.fd; | ||
if(globalOpts.public) {file.makePublic();} | ||
done(); | ||
if(globalOpts.public) { | ||
file.makePublic().then(() => { | ||
__newFile.extra.Location = "https://storage.googleapis.com/" + globalOpts.bucket + "/" + __newFile.fd; | ||
done(); | ||
}); | ||
} else { | ||
done(); | ||
} | ||
}); | ||
@@ -96,0 +101,0 @@ __newFile.pipe(stream); |
{ | ||
"name": "skipper-gclouds", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A skipper adapter to allow uploading files to Google Cloud Storage", | ||
@@ -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
270
11812
7