chore: 清理macOS同步产生的重复文件

详细说明:
- 删除了352个带数字后缀的重复文件
- 更新.gitignore防止未来产生此类文件
- 这些文件是由iCloud或其他同步服务冲突产生的
- 不影响项目功能,仅清理冗余文件
This commit is contained in:
Yep_Q
2025-09-08 12:06:01 +08:00
parent 1564396449
commit d6f48d6d14
365 changed files with 2039 additions and 68301 deletions

View File

@@ -1,12 +0,0 @@
diff --git a/package.json b/package.json
index 2d52edb23f0c7defdfbf5f95ad1ee1fa75672b41..8d9dcbdc07cb5c73e629e22696235b19db98940d 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,7 @@
"main": "dist/index.cjs",
"type": "module",
"exports": {
+ "types": "./dist/highlight.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},

View File

@@ -1,13 +0,0 @@
diff --git a/index.d.ts b/index.d.ts
index fbad2c77669b1effe9d1ca30f518eb5e0058f2e0..6dc02519a6a8dfe1c7dc7d4d600478ba841b172a 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -641,7 +641,7 @@ export interface Request<
query: ReqQuery;
- route: any;
+ route?: Pick<IRoute, 'path' | 'stack'>;
signedCookies: any;

View File

@@ -1,10 +0,0 @@
diff --git a/index.d.ts b/index.d.ts
index f8f89c567f394a538018bfdf11c28dc15e9c9fdc..f3d1cd426711f1f714744474604bd7e321073983 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -1,4 +1,4 @@
/// <reference types="node"/>
-export function decode(str: string | Buffer): string;
+export function decode(str: string | Buffer): Buffer;
export function encode(str: string | Buffer): string;

View File

@@ -1,14 +0,0 @@
diff --git a/index.d.ts b/index.d.ts
index 6d08adc155873e948d2ffebf40622fe405159bc0..b90773f2777a68408d9d1536412f80bb3c5325a0 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -62,6 +62,9 @@ declare class WebSocket extends EventEmitter {
| typeof WebSocket.CLOSED;
readonly url: string;
+ /** Indicates if the connection has replied to the last PING */
+ isAlive: boolean;
+
/** The connection is not yet open. */
readonly CONNECTING: 0;
/** The connection is open and ready to communicate. */

View File

@@ -1,21 +0,0 @@
diff --git a/lib/job.js b/lib/job.js
index 1642d3fb35cbd64b553291660fc63bae2e7f2ef5..3301e3fbc7296f545b65331dad1f12c820267e0d 100644
--- a/lib/job.js
+++ b/lib/job.js
@@ -513,9 +513,14 @@ Job.prototype.finished = async function() {
}
};
- const onFailed = (jobId, failedReason) => {
+ const onFailed = async (jobId, failedReason) => {
if (String(jobId) === String(this.id)) {
- reject(new Error(failedReason));
+ const job = await Job.fromId(this.queue, this.id);
+ const error = new Error(failedReason);
+ if (job && job.stacktrace && job.stacktrace.length > 0) {
+ error.stack = job.stacktrace.join('\n');
+ }
+ reject(new Error(error));
removeListeners();
}
};

View File

@@ -1,26 +0,0 @@
diff --git a/es/hooks/use-lockscreen/index.mjs b/es/hooks/use-lockscreen/index.mjs
index 482516a6c59f8dcf0caba62b7482f63f126c2280..82a37f344bd650e9d514397b4531c0ff36487c70 100644
--- a/es/hooks/use-lockscreen/index.mjs
+++ b/es/hooks/use-lockscreen/index.mjs
@@ -21,6 +21,8 @@ const useLockscreen = (trigger, options = {}) => {
let bodyWidth = "0";
const cleanup = () => {
setTimeout(() => {
+ // Cherry-pick from https://github.com/element-plus/element-plus/pull/18445
+ if (typeof document === 'undefined') return;
removeClass(document == null ? void 0 : document.body, hiddenCls.value);
if (withoutHiddenClass && document) {
document.body.style.width = bodyWidth;
diff --git a/lib/hooks/use-lockscreen/index.js b/lib/hooks/use-lockscreen/index.js
index ce7bd581a57cd0d7e834c42a954b48d148578ef5..496e4dc07bae546bea037cedb23ea0ee7b3a7955 100644
--- a/lib/hooks/use-lockscreen/index.js
+++ b/lib/hooks/use-lockscreen/index.js
@@ -25,6 +25,8 @@ const useLockscreen = (trigger, options = {}) => {
let bodyWidth = "0";
const cleanup = () => {
setTimeout(() => {
+ // Cherry-pick from https://github.com/element-plus/element-plus/pull/18445
+ if (typeof document === 'undefined') return;
style.removeClass(document == null ? void 0 : document.body, hiddenCls.value);
if (withoutHiddenClass && document) {
document.body.style.width = bodyWidth;

View File

@@ -1,12 +0,0 @@
diff --git a/package.json b/package.json
index c69d9542b6f211d7dd3da0d11eb62002ed480457..a85c007d243ff0323c6ee271768147a848737241 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
"version": "2.40.0",
"description": "iCal (ics) file generator",
"exports": {
+ "types": "./index.d.ts",
"require": "./index.js",
"default": "./dist/index.js"
},

View File

@@ -1,12 +0,0 @@
diff --git a/package.json b/package.json
index 5c6ed32cd20c7cb2635bbd43d2b24e5e6771e229..dc1b417593915de2069f55d6afd9f6950fff6c84 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
],
"exports": {
".": {
+ "types": "./base64.d.ts",
"import": "./base64.mjs",
"require": "./base64.js"
},

View File

@@ -1,12 +0,0 @@
diff --git a/package.json b/package.json
index 6ee7fa8ca1fc6daf7322b5278becb4e38c55eef8..7ebf0a67338ae7635a13d73952e7b4fa9c6c0f6b 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
"module": "./dist/esm/index.js",
"exports": {
".": {
+ "types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},

View File

@@ -1,27 +0,0 @@
diff --git a/legacy/build/pdf.mjs b/legacy/build/pdf.mjs
index 1a373ea986beef21076d30438235d180a0487c20..9d584f4fcc13f0b86e57160570c530e5ac794638 100644
--- a/legacy/build/pdf.mjs
+++ b/legacy/build/pdf.mjs
@@ -12060,9 +12060,9 @@ class DOMWasmFactory extends BaseWasmFactory {
if (isNodeJS) {
let canvas;
try {
- const require = process.getBuiltinModule("module").createRequire(import.meta.url);
+ const _require = process.getBuiltinModule("module").createRequire(import.meta.url);
try {
- canvas = require("@napi-rs/canvas");
+ canvas = _require("@napi-rs/canvas");
} catch (ex) {
warn(`Cannot load "@napi-rs/canvas" package: "${ex}".`);
}
@@ -12106,8 +12106,8 @@ async function node_utils_fetchData(url) {
class NodeFilterFactory extends BaseFilterFactory {}
class NodeCanvasFactory extends BaseCanvasFactory {
_createCanvas(width, height) {
- const require = process.getBuiltinModule("module").createRequire(import.meta.url);
- const canvas = require("@napi-rs/canvas");
+ const _require = process.getBuiltinModule("module").createRequire(import.meta.url);
+ const canvas = _require("@napi-rs/canvas");
return canvas.createCanvas(width, height);
}
}

View File

@@ -1,25 +0,0 @@
diff --git a/dist/index.node.js b/dist/index.node.js
index 9a56dcef7f312d2061975dc496281b1673a229c4..8b86b4a7f07656d6711e54cb699d0dc79b08a8d3 100644
--- a/dist/index.node.js
+++ b/dist/index.node.js
@@ -16,7 +16,7 @@ async function getRandomValues(size) {
* @returns The random string
*/
async function random(size) {
- const mask = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";
+ const mask = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._";
let result = "";
const randomUints = await getRandomValues(size);
for (let i = 0; i < size; i++) {
diff --git a/package.json b/package.json
index a51ede0564b61a237e35e8c5e718251c666ccaa5..9a015872b2f8f45dc5306843599304ef9a3a83c1 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,7 @@
"description": "Generate or verify a Proof Key for Code Exchange (PKCE) challenge pair",
"browser": "dist/index.browser.js",
"type": "module",
+ "types": "./dist/index.node.d.ts",
"exports": {
".": {
"types": {

View File

@@ -1,21 +0,0 @@
diff --git a/package.json b/package.json
index 7dc91b25fae9cd1e81afa279629b6e2ffa80fa77..8cd22b5a1fa243e1048211a297c645806723df04 100644
--- a/package.json
+++ b/package.json
@@ -7,12 +7,12 @@
"exports": {
".": {
"types": "./types/index.d.ts",
- "import": "./dist/index.es.js",
- "require": "./dist/index.cjs.js"
+ "import": "./dist/v3/index.es.js",
+ "require": "./dist/v3/index.cjs.js"
}
},
- "main": "dist/index.cjs",
- "module": "dist/index.es.js",
+ "main": "dist/v3/index.cjs",
+ "module": "dist/v3/index.es.js",
"types": "./types/index.d.ts",
"files": [
"dist",

View File

@@ -1,13 +0,0 @@
diff --git a/index.js b/index.js
index a680d25dfa98a45a3efec0bfb493500e6e9faa91..ca90b6226c88b5bc27aa5323c4e0e5f30f5b9ef2 100644
--- a/index.js
+++ b/index.js
@@ -4,7 +4,7 @@ exports.run = run;
const runTsc_1 = require("@volar/typescript/lib/quickstart/runTsc");
const vue = require("@vue/language-core");
const windowsPathReg = /\\/g;
-function run(tscPath = require.resolve('typescript/lib/tsc')) {
+function run(tscPath = require.resolve('typescript/lib/_tsc')) {
let runExtensions = ['.vue'];
const extensionsChangedException = new Error('extensions changed');
const main = () => (0, runTsc_1.runTsc)(tscPath, runExtensions, (ts, options) => {

View File

@@ -1,44 +0,0 @@
diff --git a/dist/shared/z-vue-scan.3fa3a39a.mjs b/dist/shared/z-vue-scan.3fa3a39a.mjs
index 90c64048960e7e55d0d6798b5bc11fe9099c79b0..c6af398931a3f5efaf6e507a201e65515daf6c58 100644
--- a/dist/shared/z-vue-scan.3fa3a39a.mjs
+++ b/dist/shared/z-vue-scan.3fa3a39a.mjs
@@ -1020,7 +1020,7 @@ class HighlightCanvas {
render() {
const now = Date.now();
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
- this.ctx.font = "12px sans-serif";
+ this.ctx.font = "10px sans-serif";
this.ctx.textBaseline = "middle";
for (const [uuid, item] of this.highlights.entries()) {
if (!isInViewport(item.bounds))
@@ -1065,7 +1065,7 @@ class HighlightCanvas {
drawBorder(item) {
const { bounds, flashCount, opacity } = item;
this.ctx.strokeStyle = `rgba(${Math.min(255, flashCount * 6)}, ${Math.max(0, 255 - flashCount * 6)}, 0, ${opacity})`;
- this.ctx.lineWidth = 2;
+ this.ctx.lineWidth = 1;
this.ctx.strokeRect(
bounds.left,
bounds.top,
diff --git a/dist/shared/z-vue-scan.e44c49f3.cjs b/dist/shared/z-vue-scan.e44c49f3.cjs
index 25100c556b300d60f86b81f46e3ae4168a203c14..c8d3ca42cb41d21f2726716d2aa8d8f63e6a85e8 100644
--- a/dist/shared/z-vue-scan.e44c49f3.cjs
+++ b/dist/shared/z-vue-scan.e44c49f3.cjs
@@ -1022,7 +1022,7 @@ class HighlightCanvas {
render() {
const now = Date.now();
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
- this.ctx.font = "12px sans-serif";
+ this.ctx.font = "10px sans-serif";
this.ctx.textBaseline = "middle";
for (const [uuid, item] of this.highlights.entries()) {
if (!isInViewport(item.bounds))
@@ -1067,7 +1067,7 @@ class HighlightCanvas {
drawBorder(item) {
const { bounds, flashCount, opacity } = item;
this.ctx.strokeStyle = `rgba(${Math.min(255, flashCount * 6)}, ${Math.max(0, 255 - flashCount * 6)}, 0, ${opacity})`;
- this.ctx.lineWidth = 2;
+ this.ctx.lineWidth = 1;
this.ctx.strokeRect(
bounds.left,
bounds.top,