1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-03 12:50: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

10
node_modules/asar/bin/asar.js generated vendored
View File

@@ -38,11 +38,17 @@ program.command('pack <dir> <output>')
program.command('list <archive>')
.alias('l')
.description('list files of asar archive')
.action(function (archive) {
var files = asar.listPackage(archive)
.option('-i, --is-pack', 'each file in the asar is pack or unpack')
.action(function (archive, options) {
options = {
isPack: options.isPack
}
var files = asar.listPackage(archive, options)
for (var i in files) {
console.log(files[i])
}
// This is in order to disappear help
process.exit(0)
})
program.command('extract-file <archive> <filename>')

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

32
node_modules/asar/package.json generated vendored
View File

@@ -1,39 +1,34 @@
{
"_args": [
[
"asar@0.14.3",
"/home/s2/Documents/Code/gitlit"
]
],
"_development": true,
"_from": "asar@0.14.3",
"_id": "asar@0.14.3",
"_from": "asar@^0.14.0",
"_id": "asar@0.14.5",
"_inBundle": false,
"_integrity": "sha512-+hNnVVDmYbv05We/a9knj/98w171+A94A9DNHj+3kXUr3ENTQoSEcfbJRvBBRHyOh4vukBYWujmHvvaMmQoQbg==",
"_integrity": "sha512-2Di/TnY1sridHFKMFgxBh0Wk0gVxSZN4qQhRhjJn3UywZAvP5MHI0RNVSkpzmJ+n6t0BC8w/+1257wtSgQ3Kdg==",
"_location": "/asar",
"_phantomChildren": {},
"_requested": {
"type": "version",
"type": "range",
"registry": true,
"raw": "asar@0.14.3",
"raw": "asar@^0.14.0",
"name": "asar",
"escapedName": "asar",
"rawSpec": "0.14.3",
"rawSpec": "^0.14.0",
"saveSpec": null,
"fetchSpec": "0.14.3"
"fetchSpec": "^0.14.0"
},
"_requiredBy": [
"/electron-packager"
],
"_resolved": "https://registry.npmjs.org/asar/-/asar-0.14.3.tgz",
"_spec": "0.14.3",
"_where": "/home/s2/Documents/Code/gitlit",
"_resolved": "https://registry.npmjs.org/asar/-/asar-0.14.5.tgz",
"_shasum": "a2fd9e01ec7e0df75940125f2d1df338abfc8aec",
"_spec": "asar@^0.14.0",
"_where": "E:\\projects\\p\\gitlit\\node_modules\\electron-packager",
"bin": {
"asar": "./bin/asar.js"
},
"bugs": {
"url": "https://github.com/electron/asar/issues"
},
"bundleDependencies": false,
"dependencies": {
"chromium-pickle-js": "^0.2.0",
"commander": "^2.9.0",
@@ -44,6 +39,7 @@
"mksnapshot": "^0.3.0",
"tmp": "0.0.28"
},
"deprecated": false,
"description": "Creating Electron app packages",
"devDependencies": {
"electron": "^1.6.2",
@@ -74,5 +70,5 @@
"mocha": true
}
},
"version": "0.14.3"
"version": "0.14.5"
}