1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-03 21:00:04 +02:00

update dependencies

This commit is contained in:
s2
2018-10-09 09:51:34 +02:00
parent 4fcc873901
commit da4083f574
1112 changed files with 23205 additions and 21697 deletions

6
node_modules/asar/lib/asar.js generated vendored
View File

@@ -62,6 +62,7 @@ callback: The callback function. Accepts (err).
*/
module.exports.createPackageFromFiles = function (src, dest, filenames, metadata, options, callback) {
if (typeof metadata === 'undefined' || metadata === null) { metadata = {} }
if (typeof options === 'undefined' || options === null) { options = {} }
const filesystem = new Filesystem(src)
const files = []
const unpackDirs = []
@@ -115,6 +116,7 @@ module.exports.createPackageFromFiles = function (src, dest, filenames, metadata
if (stat.isFile()) { type = 'file' }
if (stat.isSymbolicLink()) { type = 'link' }
file = {stat, type}
metadata[filename] = file
}
let shouldUnpack
@@ -176,8 +178,8 @@ module.exports.statFile = function (archive, filename, followLinks) {
return filesystem.getFile(filename, followLinks)
}
module.exports.listPackage = function (archive) {
return disk.readFilesystemSync(archive).listFiles()
module.exports.listPackage = function (archive, options) {
return disk.readFilesystemSync(archive).listFiles(options)
}
module.exports.extractFile = function (archive, filename) {

View File

@@ -104,7 +104,7 @@ class Filesystem {
return link
}
listFiles () {
listFiles (options) {
const files = []
const fillFilesFromHeader = function (p, json) {
if (!json.files) {
@@ -114,7 +114,8 @@ class Filesystem {
const result = []
for (const f in json.files) {
const fullPath = path.join(p, f)
files.push(fullPath)
const packState = json.files[f].unpacked === true ? 'unpack' : 'pack '
files.push((options && options.isPack) ? `${packState} : ${fullPath}` : fullPath)
result.push(fillFilesFromHeader(fullPath, json.files[f]))
}
return result