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

@infurnia/backend-file-storage

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@infurnia/backend-file-storage - npm Package Compare versions

Comparing version 2.13.0 to 2.14.0

11

libs/gcp/gcs/index.js

@@ -16,3 +16,3 @@ const {Storage} = require('@google-cloud/storage');

if (content_disposition_attachment) {
await gcs_file.save(file_object, { resumable: false, metadata: { contentDisposition: 'attachment'}});
await gcs_file.save(file_object, { resumable: false, metadata: { cacheControl: 'public, max-age=864000', contentDisposition: 'attachment'}});
}

@@ -36,3 +36,3 @@ else {

if(content_disposition_attachment){
save_res = await gcs_bucket.upload(file_path, {destination: key, resumable: false, metadata: { contentDisposition: 'attachment'}});
save_res = await gcs_bucket.upload(file_path, {destination: key, resumable: false, metadata: { cacheControl: 'public, max-age=864000', contentDisposition: 'attachment'}});
}

@@ -54,3 +54,3 @@ else {

if (content_disposition_attachment) {
return this.gcsClient.bucket(bucket_name).file(key).createWriteStream({ metadata: { contentDisposition: 'attachment' }});
return this.gcsClient.bucket(bucket_name).file(key).createWriteStream({ metadata: { cacheControl: 'public, max-age=864000', contentDisposition: 'attachment' }});
}

@@ -126,4 +126,5 @@ else {

const gcs_file = this.gcsClient.bucket(bucket_name).file(key);
await gcs_file.download({ destination: destination_path});
return "OK";
const res = await gcs_file.download({ destination: destination_path});
console.log(res);
return res;
}

@@ -130,0 +131,0 @@ catch(err){

{
"name": "@infurnia/backend-file-storage",
"version": "2.13.0",
"version": "2.14.0",
"description": "Storage engine for google cloud storage",

@@ -5,0 +5,0 @@ "main": "index.js",

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