mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 12:50:04 +02:00
update dependencies
This commit is contained in:
7
app/node_modules/isbinaryfile/index.js
generated
vendored
7
app/node_modules/isbinaryfile/index.js
generated
vendored
@@ -1,5 +1,6 @@
|
||||
var fs = require('fs');
|
||||
var path = require("path");
|
||||
var path = require('path');
|
||||
var alloc = require('buffer-alloc');
|
||||
var MAX_BYTES = 512;
|
||||
|
||||
module.exports = function(bytes, size, cb) {
|
||||
@@ -13,7 +14,7 @@ module.exports = function(bytes, size, cb) {
|
||||
|
||||
fs.open(file, 'r', function(r_err, descriptor){
|
||||
if (r_err) return cb(r_err);
|
||||
bytes = new Buffer(MAX_BYTES);
|
||||
bytes = alloc(MAX_BYTES);
|
||||
// Read the file with no encoding for raw buffer access.
|
||||
fs.read(descriptor, bytes, 0, bytes.length, 0, function(err, size, bytes){
|
||||
fs.close(descriptor, function(c_err){
|
||||
@@ -116,7 +117,7 @@ module.exports.sync = function(bytes, size) {
|
||||
var descriptor = fs.openSync(file, 'r');
|
||||
try {
|
||||
// Read the file with no encoding for raw buffer access.
|
||||
bytes = new Buffer(MAX_BYTES);
|
||||
bytes = alloc(MAX_BYTES);
|
||||
size = fs.readSync(descriptor, bytes, 0, bytes.length, 0);
|
||||
} finally {
|
||||
fs.closeSync(descriptor);
|
||||
|
35
app/node_modules/isbinaryfile/package.json
generated
vendored
35
app/node_modules/isbinaryfile/package.json
generated
vendored
@@ -1,36 +1,35 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"isbinaryfile@3.0.2",
|
||||
"/home/s2/Documents/Code/gitlit/app"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "isbinaryfile@3.0.2",
|
||||
"_id": "isbinaryfile@3.0.2",
|
||||
"_from": "isbinaryfile@^3.0.2",
|
||||
"_id": "isbinaryfile@3.0.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-Sj6XTsDLqQBNP8bN5yCeppNopiE=",
|
||||
"_integrity": "sha512-8cJBL5tTd2OS0dM4jz07wQd5g0dCCqIhUxPIGtZfa5L6hWlvV5MHTITy/DBAsF+Oe2LS1X3krBUhNwaGUWpWxw==",
|
||||
"_location": "/isbinaryfile",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "isbinaryfile@3.0.2",
|
||||
"raw": "isbinaryfile@^3.0.2",
|
||||
"name": "isbinaryfile",
|
||||
"escapedName": "isbinaryfile",
|
||||
"rawSpec": "3.0.2",
|
||||
"rawSpec": "^3.0.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "3.0.2"
|
||||
"fetchSpec": "^3.0.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/electron-osx-sign"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-3.0.2.tgz",
|
||||
"_spec": "3.0.2",
|
||||
"_where": "/home/s2/Documents/Code/gitlit/app",
|
||||
"_resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-3.0.3.tgz",
|
||||
"_shasum": "5d6def3edebf6e8ca8cae9c30183a804b5f8be80",
|
||||
"_spec": "isbinaryfile@^3.0.2",
|
||||
"_where": "E:\\projects\\p\\gitlit\\app\\node_modules\\electron-osx-sign",
|
||||
"bugs": {
|
||||
"url": "https://github.com/gjtorikian/isBinaryFile/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"buffer-alloc": "^1.2.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Detects if a file is binary in Node.js. Similar to Perl's -B.",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
@@ -62,5 +61,5 @@
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "3.0.2"
|
||||
"version": "3.0.3"
|
||||
}
|
||||
|
Reference in New Issue
Block a user