Socket
Socket
Sign inDemoInstall

files-repo

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

files-repo - npm Package Compare versions

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"
}
}
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