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

update some packages and remove node_modules from repo

This commit is contained in:
s2
2019-03-09 16:38:04 +01:00
parent 3dcadb39c2
commit d24a82e91e
94766 changed files with 290 additions and 858252 deletions

21
app/node_modules/asar/lib/crawlfs.js generated vendored
View File

@@ -1,21 +0,0 @@
'use strict'
const fs = process.versions.electron ? require('original-fs') : require('fs')
const glob = require('glob')
module.exports = function (dir, options, callback) {
const metadata = {}
return glob(dir, options, function (error, filenames) {
if (error) { return callback(error) }
for (const filename of filenames) {
const stat = fs.lstatSync(filename)
if (stat.isFile()) {
metadata[filename] = {type: 'file', stat: stat}
} else if (stat.isDirectory()) {
metadata[filename] = {type: 'directory', stat: stat}
} else if (stat.isSymbolicLink()) {
metadata[filename] = {type: 'link', stat: stat}
}
}
return callback(null, filenames, metadata)
})
}