mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 21:00:04 +02:00
update dependencies
This commit is contained in:
6
node_modules/asar/lib/asar.js
generated
vendored
6
node_modules/asar/lib/asar.js
generated
vendored
@@ -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) {
|
||||
|
5
node_modules/asar/lib/filesystem.js
generated
vendored
5
node_modules/asar/lib/filesystem.js
generated
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user