fix: remove descending (#815)

> see https://github.com/orgs/community/discussions/152515
-------
* ♻️ 删除 `descending` 参数
------
* ♻️ remove `descending` args in changesStream


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Simplified the process for handling request URLs when fetching data,
removing the explicit addition of certain query parameters. This does
not affect user-facing functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: fengmk2 <fengmk2@gmail.com>
This commit is contained in:
elrrrrrrr
2025-06-27 00:44:01 -07:00
committed by GitHub
parent b4cf36e289
commit 1001e1ffa2

View File

@@ -43,9 +43,7 @@ export class NpmChangesStream extends AbstractChangeStream {
): AsyncGenerator<ChangesStreamChange> {
// https://github.com/orgs/community/discussions/152515
const db = this.getChangesStreamUrl(registry, since);
const url = new URL(db);
url.searchParams.set('descending', 'true');
const { data, headers } = await this.httpclient.request(url, {
const { data, headers } = await this.httpclient.request(db, {
timeout: 60_000,
headers: {
'npm-replication-opt-in': 'true',