You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: ESM compatibility - avoid direct Response object mutation
Fixes#1429
In ESM environments with node-fetch v3, Response objects are read-only and cannot have new properties added.
This change creates a wrapper object instead of mutating the Response directly, maintaining full backward
compatibility while supporting modern ESM environments.
The wrapper object:
- Contains the custom data and error properties
- Delegates all Response properties and methods to the original response
- Works in both CommonJS and ESM environments
- Maintains the same API surface for consumers
0 commit comments