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

ghost-storage-adapter-s3

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghost-storage-adapter-s3 - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

4

index.js

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

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