Comparing version 2.0.0 to 2.0.2
18
index.js
@@ -61,3 +61,3 @@ "use strict"; | ||
created: new Date(), | ||
localPath: `/${loc}/${fileId}.${ext}` | ||
localPath: `/${loc}/${fileId}${ext}` | ||
} | ||
@@ -97,3 +97,3 @@ | ||
return manifest; | ||
return this.GetFileManifest( fileId ); | ||
} | ||
@@ -156,4 +156,3 @@ | ||
let manifestContent = await Utils.readFile( fullPathToFileManifest ); | ||
let manifest = JSON.parse( manifestContent ); | ||
let manifest = await this.GetFileManifest( fileId ); | ||
@@ -163,6 +162,7 @@ fullPathToFileInRepo += "."; | ||
if ( !(await Utils.fileExists(fullPathToFileInRepo)) ) throw `Unable to locate file with id ${fileId}`; | ||
await Utils.deleteFile( fullPathToFileInRepo ); | ||
await Utils.deleteFile( fullPathToFileManifest ); | ||
await Utils.deleteFile( fullPathToFileManifest ); | ||
if ( await Utils.fileExists( fullPathToFileInRepo ) ) { | ||
await Utils.deleteFile( fullPathToFileInRepo ); | ||
} | ||
} | ||
@@ -216,3 +216,3 @@ | ||
let jsonManifest = JSON.parse(await Utils.readFile(file)); | ||
jsonManifest = await this.GetFileManifest( jsonManifest.fileId ); | ||
let goon = await fnc( jsonManifest); | ||
@@ -219,0 +219,0 @@ |
{ | ||
"name": "files-repo", | ||
"version": "2.0.0", | ||
"version": "2.0.2", | ||
"description": "Files manager module for easy files managemente in a NodeJS project", | ||
@@ -22,4 +22,4 @@ "main": "index.js", | ||
"node-cron": "^2.0.3", | ||
"uuid": "^3.3.3" | ||
"uuid": "^3.4.0" | ||
} | ||
} |
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
591
30977
Updateduuid@^3.4.0