Skip to content

refactor: replace the deprecated request library with fetch - #294

Open
Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/189-drop-request
Open

Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/189-drop-request

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown

Summary

Removes the deprecated request dependency and uses the fetch built into Node 18 everywhere it was used.

Changes

  • Replace request in the OAuth token exchange and mailing list lookup in custom/asf.js
  • Replace request in the publish and allocate CVE Services calls
  • Drop the unused require in customRoutes/sendemails.js
  • Remove request from package.json
  • Add fetch-path assertions for the mailing list lookup in unittest/asfacl.js

Testing

  • npm run unittest: passes

Closes #189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

migrate from request to node-fetch

1 participant