mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 05:10:05 +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) {
|
||||
|
Reference in New Issue
Block a user