-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Reproduction
Steps to reproduce the behavior:
// demo.mjs
const { Request } = await import('node-fetch')
const req = new Request(
'https://example.com',
new Request('https://example.com')
)
// it warns
// (node:37205) [https://github.com/node-fetch/node-fetch/issues/1000 (request)] DeprecationWarning: .data is not a valid RequestInit property, use .body instead
Expected behavior
Warn nothing.
Screenshots
Your Environment
software | version |
---|---|
node-fetch | 3.2.4 |
node | v16.15.0 |
npm | 8.5.5 |
Operating System | macOS 12.3.1 (21E258) |
Additional context
PaperStrike