eip-cloud-services 1.1.14 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/s3.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eip-cloud-services",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "Houses a collection of helpers for connecting with Cloud services.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/s3.js CHANGED
@@ -134,6 +134,10 @@ exports.get = async ( key, bucket = config?.s3?.Bucket, options = {} ) => {
134
134
  data = zlib.unzipSync ( data );
135
135
  }
136
136
 
137
+ if ( response.ContentType.includes('image') ) {
138
+ return data;
139
+ }
140
+
137
141
  if ( response.ContentType !== 'application/json' && !response.Metadata[ 'tmg-json' ] ) {
138
142
  if ( config?.s3?.logs === 'output' )
139
143
  log ( `S3 [GET]: Returned ${response.ContentType} from ${bucket}/${key}.` );