@infurnia/backend-file-storage
Advanced tools
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", |
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
14787