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
1
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.6.1 to 2.6.2

14

index.js

@@ -68,3 +68,3 @@ const utils = require('./utils');

try{
destinationPath = clean_file_path(destinationPath);
destinationPath = clean_file_path(destinationPath, false);
await this.gcs_client.write_file_from_path_to_bucket(this.bucket_name, destinationPath, sourcePath);

@@ -90,3 +90,3 @@ if (deleteSourceFileAfterUpload===true) {

try{
destinationPath = clean_file_path(destinationPath);
destinationPath = clean_file_path(destinationPath, false);
await this.gcs_client.write_file_obj_to_bucket(this.bucket_name, destinationPath, object);

@@ -105,3 +105,3 @@ return OK_RESPONSE_TEXT;

try{
filePath = clean_file_path(filePath);
filePath = clean_file_path(filePath, false);
return await this.gcs_client.get_write_stream_for_bucket(this.bucket_name, filePath);

@@ -141,4 +141,4 @@ }

//clean the file paths
sourceFilePath = clean_file_path(sourceFilePath);
destFilePath = clean_file_path(destFilePath);
sourceFilePath = clean_file_path(sourceFilePath, false);
destFilePath = clean_file_path(destFilePath, false);
//copy the file

@@ -158,3 +158,3 @@ await this.gcs_client.copy(this.bucket_name, sourceFilePath, this.bucket_name, destFilePath);

try{
filePath = clean_file_path(filePath);
filePath = clean_file_path(filePath, false);
return (await this.gcs_client.read_file(this.bucket_name, filePath)).toString('utf-8');

@@ -172,3 +172,3 @@ }

try{
filePath = clean_file_path(filePath);
filePath = clean_file_path(filePath, false);
return await this.gcs_client.get_signed_url(this.bucket_name, filePath, 'read');

@@ -175,0 +175,0 @@ }

{
"name": "@infurnia/backend-file-storage",
"version": "2.6.1",
"version": "2.6.2",
"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