@fye/sftp-utils
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -9,2 +9,3 @@ const fs = require('fs'); | ||
const rmdir = util.promisify(fs.rmdir); | ||
const readFileAsync = util.promisify(fs.readFile); | ||
@@ -44,2 +45,10 @@ async function exists(path) { | ||
async function readFile(path) { | ||
let data; | ||
if (await exists(path)) { | ||
data = await readFileAsync(path); | ||
} | ||
return data; | ||
} | ||
module.exports = { | ||
@@ -49,2 +58,3 @@ exists, | ||
deleteFolder, | ||
readFile, | ||
}; |
{ | ||
"name": "@fye/sftp-utils", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "sftp utility library", | ||
@@ -35,3 +35,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@fye/sftp-client": "^1.0.1", | ||
"@fye/sftp-client": "^1.1.0", | ||
"apr-for-each": "^3.0.3", | ||
@@ -45,3 +45,4 @@ "debug": "^4.1.1" | ||
"access": "public" | ||
} | ||
}, | ||
"gitHead": "dc6ed265ef735155455989b4fd7eb7a68b3a1fa7" | ||
} |
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
6059
171
Updated@fye/sftp-client@^1.1.0