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

add node modules to repo

This commit is contained in:
s2
2018-06-03 13:47:11 +02:00
parent e8c95255e8
commit d002126b72
4115 changed files with 440218 additions and 7519 deletions

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

@@ -0,0 +1,21 @@
'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)
})
}