@file-storage/local
Advanced tools
Comparing version 1.2.1 to 1.2.3
@@ -7,2 +7,3 @@ /// <reference types="node" /> | ||
private root; | ||
private publicUrl; | ||
static readonly driverName = DriverName.LOCAL; | ||
@@ -9,0 +10,0 @@ constructor(config: LocalDiskConfig); |
@@ -22,4 +22,5 @@ "use strict"; | ||
super(config); | ||
const { root = '' } = config; | ||
const { root = '', publicUrl } = config; | ||
this.root = root; | ||
this.publicUrl = publicUrl; | ||
} | ||
@@ -48,3 +49,3 @@ rootPath(path) { | ||
url(path) { | ||
return `${process.env.APP_URL}/${path}`; | ||
return `${this.publicUrl}/${path}`; | ||
} | ||
@@ -51,0 +52,0 @@ exists(path) { |
{ | ||
"name": "@file-storage/local", | ||
"version": "1.2.1", | ||
"version": "1.2.3", | ||
"description": "Local driver for file-storage", | ||
@@ -30,7 +30,7 @@ "author": "Dang Nguyen <haidang009@gmail.com>", | ||
"devDependencies": { | ||
"@file-storage/common": "^1.2.1", | ||
"@file-storage/common": "^1.2.3", | ||
"rimraf": "~3.0.2", | ||
"typescript": "~4.3.5" | ||
}, | ||
"gitHead": "5c1da4d6f54f2489984d044d11de324402f32a0b" | ||
"gitHead": "9339db93fb233c8e7cd4d97e07b7eb7a8ca68945" | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
8801
180
1