ghost-storage-adapter-s3
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -80,3 +80,3 @@ 'use strict'; | ||
exists(fileName) { | ||
exists(fileName, targetDir) { | ||
var _this2 = this; | ||
@@ -87,3 +87,3 @@ | ||
Bucket: _this2.bucket, | ||
Key: stripLeadingSlash(fileName) | ||
Key: stripLeadingSlash((0, _path.join)(targetDir, fileName)) | ||
}).promise().then(function () { | ||
@@ -90,0 +90,0 @@ return resolve(true); |
@@ -75,3 +75,3 @@ { | ||
}, | ||
"version": "2.3.0" | ||
"version": "2.3.1" | ||
} |
@@ -23,3 +23,3 @@ # Ghost storage adapter S3 | ||
"accessKeyId": "YOUR_ACCESS_KEY_ID", | ||
"assetHost": "YOUR_OPTIONAL_CDN_URL", | ||
"assetHost": "YOUR_OPTIONAL_CDN_URL (See note below)", | ||
"bucket": "YOUR_BUCKET_NAME", | ||
@@ -33,2 +33,3 @@ "pathPrefix": "YOUR_OPTIONAL_BUCKET_SUBDIRECTORY", | ||
``` | ||
Note: Be sure to include "//" or the appropriate protocol within your assetHost string/variable to ensure that your site's domain is not prepended to the CDN URL. | ||
@@ -35,0 +36,0 @@ ### Via environment variables |
@@ -55,3 +55,3 @@ import AWS from 'aws-sdk' | ||
exists (fileName) { | ||
exists (fileName, targetDir) { | ||
return new Promise((resolve, reject) => { | ||
@@ -61,3 +61,3 @@ return this.s3() | ||
Bucket: this.bucket, | ||
Key: stripLeadingSlash(fileName) | ||
Key: stripLeadingSlash(join(targetDir, fileName)) | ||
}) | ||
@@ -64,0 +64,0 @@ .promise() |
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
143877
49