diff --git a/lib/core.js b/lib/core.js index 92a4f936f..888b8e986 100644 --- a/lib/core.js +++ b/lib/core.js @@ -1666,6 +1666,13 @@ fetch_data.error = true; + // Remove same start fetch record by `source` and `url` only. + options._fetches = options._fetches.filter(function(item) { + return !(Object.keys(item).length === 2 + && item.source === data.source + && item.url === data.url); + }); + options._fetches.push(fetch_data); } }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4ae8130aa..695c95ebc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,7 +21,7 @@ overrides: brace-expansion@<1.1.18: ^1.1.18 brace-expansion@>=2.0.0 <2.1.4: ^2.1.4 brace-expansion@>=3.0.0 <5.0.9: ^5.0.9 - undici@>=7.0.0 <7.29.0: ^7.29.0 + undici@>=7.0.0 <7.29.1: ^7.29.1 patchedDependencies: readabilitySAX@1.6.1: 13d40f78c0537e2538fd3a338f5ead833d968e2a80882e92f1eb3580b599c757 @@ -1297,8 +1297,8 @@ packages: underscore@1.13.8: resolution: {integrity: sha512-DXtD3ZtEQzc7M8m4cXotyHR+FAS18C64asBYY5vqZexfYryNNnDc02W4hKg3rdQuqOYas1jkseX0+nZXjTXnvQ==} - undici@7.29.0: - resolution: {integrity: sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==} + undici@7.30.0: + resolution: {integrity: sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==} engines: {node: '>=20.18.1'} unpipe@1.0.0: @@ -1545,7 +1545,7 @@ snapshots: parse5: 7.3.0 parse5-htmlparser2-tree-adapter: 7.1.0 parse5-parser-stream: 7.1.2 - undici: 7.29.0 + undici: 7.30.0 whatwg-mimetype: 4.0.0 chokidar@4.0.3: @@ -2607,7 +2607,7 @@ snapshots: underscore@1.13.8: {} - undici@7.29.0: {} + undici@7.30.0: {} unpipe@1.0.0: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 727ae584e..e606d3710 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -15,6 +15,6 @@ overrides: brace-expansion@<1.1.18: ^1.1.18 brace-expansion@>=2.0.0 <2.1.4: ^2.1.4 brace-expansion@>=3.0.0 <5.0.9: ^5.0.9 - undici@>=7.0.0 <7.29.0: ^7.29.0 + undici@>=7.0.0 <7.29.1: ^7.29.1 patchedDependencies: readabilitySAX@1.6.1: patches/readabilitySAX@1.6.1.patch