unfix: add some bugs

呃这个可能有点炸了
This commit is contained in:
2025-10-16 17:39:50 +08:00
Unverified
parent 392a6a604c
commit 730a701deb
2049 changed files with 188059 additions and 122 deletions

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['apis/*.json', 'lib/services/*.js'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,8 @@
'use strict';
// https://github.com/chjj/blessed/issues/298
module.exports = {
pkg: {
scripts: ['lib/widgets/*.js'],
},
};

View File

@@ -0,0 +1,9 @@
'use strict';
module.exports = {
pkg: {
scripts: [
'lib/types/*.js', // for 1.4-1.13
],
},
};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
assets: ['bin/*.txt'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['lib/*.js'],
},
};

View File

@@ -0,0 +1,9 @@
'use strict';
module.exports = {
pkg: {
patches: {
'lib/bunyan.js': ["mv = require('mv' + '');", "mv = require('mv');"],
},
},
};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['lib/types/*.js'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['lib/coffee-script/*.js'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['lib/*.js'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,10 @@
'use strict';
module.exports = {
pkg: {
scripts: ['lib/middleware/*.js'],
assets: [
'lib/public/**/*', // for connect@2.3
],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,11 @@
'use strict';
module.exports = {
pkg: {
patches: {
// author is mistaken to point package.json.main to
// src/index.js (that is es6) instead of dist/index.js (es5)
'src/index.js': [{ do: 'erase' }, ''],
},
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
assets: ['src/view/**/*', 'src/js/view/**/*'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,22 @@
'use strict';
module.exports = {
pkg: {
patches: {
'build/scripts.js': [
"path.join(__dirname, '..', 'scripts')",
"path.join(path.dirname(process.execPath), 'drivelist')",
],
'lib/scripts.js': [
"path.join(__dirname, '..', 'scripts')",
"path.join(path.dirname(process.execPath), 'drivelist')", // for 4.0.0
],
},
deployFiles: [
['build/Release/drivelist.node', 'drivelist.node'],
['scripts/darwin.sh', 'drivelist/darwin.sh'],
['scripts/linux.sh', 'drivelist/linux.sh'],
['scripts/win32.bat', 'drivelist/win32.bat'],
],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,17 @@
'use strict';
module.exports = {
pkg: {
patches: {
'index.js': [
'path.join(__dirname, fs',
"path.join(path.dirname(process.execPath), 'electron', fs",
],
},
deployFiles: [
['dist', 'electron/dist', 'directory'],
['../sliced/index.js', 'node_modules/sliced/index.js'],
['../deep-defaults/lib/index.js', 'node_modules/deep-defaults/index.js'],
],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
assets: ['public/**/*'],
},
};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
assets: ['lib/static/*'],
},
};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['lib/rules/*.js', 'lib/formatters/*.js'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,21 @@
'use strict';
module.exports = {
pkg: {
assets: [
// TODO look at exceljs and implement as
// many __dirname use cases as possible
'lib/**/*.xml',
],
patches: {
'lib/stream/xlsx/workbook-writer.js': [
"require.resolve('../../xlsx/xml/theme1.xml')",
"require('path').join(__dirname, '../../xlsx/xml/theme1.xml')",
],
'lib/xlsx/xlsx.js': [
"require.resolve('./xml/theme1.xml')",
"require('path').join(__dirname, './xml/theme1.xml')",
],
},
},
};

View File

@@ -0,0 +1,13 @@
'use strict';
module.exports = {
pkg: {
patches: {
'index.js': [
"path.join(__dirname, 'vendor', 'exiftool.exe')",
"path.join(path.dirname(process.execPath), 'exiftool.exe')",
],
},
deployFiles: [['vendor/exiftool.exe', 'exiftool.exe']],
},
};

View File

@@ -0,0 +1,13 @@
'use strict';
module.exports = {
pkg: {
patches: {
'index.js': [
"path.join(__dirname, 'vendor', 'exiftool')",
"path.join(path.dirname(process.execPath), 'exiftool')",
],
},
deployFiles: [['vendor/exiftool', 'exiftool']],
},
};

View File

@@ -0,0 +1,12 @@
'use strict';
module.exports = {
pkg: {
patches: {
'lib/express-load.js': [
'entity = path.resolve(',
'entity = process.pkg.path.resolve(',
],
},
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,14 @@
'use strict';
module.exports = {
pkg: {
patches: {
'lib/view.js': [
'path = join(this.root, path)',
'path = process.pkg.path.resolve(this.root, path)', // for 3.x
'loc = resolve(root, name)',
'loc = process.pkg.path.resolve(root, name)', // for 4.x
],
},
},
};

View File

@@ -0,0 +1,11 @@
'use strict';
module.exports = {
// в declare.js грязный хак.
// если в тексте(!) функции есть подстрока "super"
// (см SUPER_REGEXP), то её надо оборачивать особым
// способом (см functionWrapper). поэтому все пакеты,
// которые зависят от declare.js - надо проработать.
// хотя бы те файлы, функции в которых попадают в
// functionWrapper
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
assets: ['data/*'],
},
};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
assets: ['lib/routes.json'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,13 @@
'use strict';
module.exports = {
pkg: {
patches: {
'index.js': [
"require.resolve('./compiler.jar')",
"require('path').join(require('path').dirname(process.execPath), 'compiler/compiler.jar')",
],
},
deployFiles: [['compiler.jar', 'compiler/compiler.jar']],
},
};

View File

@@ -0,0 +1,13 @@
'use strict';
module.exports = {
pkg: {
patches: {
'lib/node/closure-compiler.js': [
"require.resolve('../../compiler.jar')",
"require('path').join(require('path').dirname(process.execPath), 'compiler/compiler.jar')",
],
},
deployFiles: [['compiler.jar', 'compiler/compiler.jar']],
},
};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['apis/**/*.js'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,19 @@
'use strict';
module.exports = {
pkg: {
patches: {
'graceful-fs.js': [
{ do: 'prepend' },
'if ((function() {\n' +
" var version = require('./package.json').version;\n" +
" var major = parseInt(version.split('.')[0]);\n" +
' if (major < 4) {\n' +
" module.exports = require('fs');\n" +
' return true;\n' +
' }\n' +
'})()) return;\n',
],
},
},
};

View File

@@ -0,0 +1,11 @@
'use strict';
module.exports = {
pkg: {
files: [
// suppress because hundreds of
// C++ files go inside executable
],
assets: ['etc/*.pem', 'deps/grpc/etc/*.pem'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,16 @@
'use strict';
module.exports = {
pkg: {
patches: {
'j.js': [
"require('xl'+'sx')",
"require('xlsx')",
"require('xl'+'sjs')",
"require('xlsjs')",
"require('ha'+'rb')",
"require('harb')",
],
},
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['lib/**/*.js'],
},
};

View File

@@ -0,0 +1,7 @@
'use strict';
module.exports = {
pkg: {
scripts: ['later.js'],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,10 @@
'use strict';
module.exports = {
pkg: {
patches: {
'binding.js': ['__dirname', "require('path').dirname(process.execPath)"],
},
deployFiles: [['prebuilds', 'prebuilds', 'directory']],
},
};

View File

@@ -0,0 +1,3 @@
'use strict';
module.exports = {};

View File

@@ -0,0 +1,12 @@
'use strict';
module.exports = {
pkg: {
patches: {
'index.js': [
'resolve.sync(this.moduleName, {basedir: configBase || cwd, paths: paths})',
'resolve.sync(this.moduleName, {basedir: configBase || require.main.filename, paths: paths})',
],
},
},
};

Some files were not shown because too many files have changed in this diff Show More