@whatwg-node/node-fetch 0.7.20-alpha-20250515124736-4343870fcd826017d2a224bb7cd95417a1a89df3 → 0.7.20-alpha-20250515131353-f6d1c2674ddb4cbe3b5bd88275f392bf9c83731d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Headers.js +1 -5
- package/esm/Headers.js +1 -5
- package/package.json +1 -1
package/cjs/Headers.js
CHANGED
@@ -143,11 +143,7 @@ class PonyfillHeaders {
|
|
143
143
|
this._setCookies = [value];
|
144
144
|
return;
|
145
145
|
}
|
146
|
-
if (this._map) {
|
147
|
-
this._map.set(key, value);
|
148
|
-
return;
|
149
|
-
}
|
150
|
-
if (this.headersInit != null) {
|
146
|
+
if (!this._map && this.headersInit != null) {
|
151
147
|
if ((0, utils_js_1.isArray)(this.headersInit)) {
|
152
148
|
const found = this.headersInit.find(([headerKey]) => headerKey.toLowerCase() === key);
|
153
149
|
if (found) {
|
package/esm/Headers.js
CHANGED
@@ -139,11 +139,7 @@ export class PonyfillHeaders {
|
|
139
139
|
this._setCookies = [value];
|
140
140
|
return;
|
141
141
|
}
|
142
|
-
if (this._map) {
|
143
|
-
this._map.set(key, value);
|
144
|
-
return;
|
145
|
-
}
|
146
|
-
if (this.headersInit != null) {
|
142
|
+
if (!this._map && this.headersInit != null) {
|
147
143
|
if (isArray(this.headersInit)) {
|
148
144
|
const found = this.headersInit.find(([headerKey]) => headerKey.toLowerCase() === key);
|
149
145
|
if (found) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@whatwg-node/node-fetch",
|
3
|
-
"version": "0.7.20-alpha-
|
3
|
+
"version": "0.7.20-alpha-20250515131353-f6d1c2674ddb4cbe3b5bd88275f392bf9c83731d",
|
4
4
|
"description": "Fetch API implementation for Node",
|
5
5
|
"sideEffects": false,
|
6
6
|
"dependencies": {
|