@whatwg-node/node-fetch 0.3.6-rc-20230423081842-5d0db1c → 0.3.6-rc-20230423083456-973aff4

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.
@@ -99,5 +99,8 @@ class PonyfillURLSearchParams {
99
99
  callback(value, key, this);
100
100
  }
101
101
  }
102
+ get size() {
103
+ return Object.keys(this.params).length;
104
+ }
102
105
  }
103
106
  exports.PonyfillURLSearchParams = PonyfillURLSearchParams;
@@ -95,4 +95,7 @@ export class PonyfillURLSearchParams {
95
95
  callback(value, key, this);
96
96
  }
97
97
  }
98
+ get size() {
99
+ return Object.keys(this.params).length;
100
+ }
98
101
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@whatwg-node/node-fetch",
3
- "version": "0.3.6-rc-20230423081842-5d0db1c",
3
+ "version": "0.3.6-rc-20230423083456-973aff4",
4
4
  "description": "Fetch API implementation for Node",
5
5
  "sideEffects": false,
6
6
  "dependencies": {
7
- "@whatwg-node/events": "0.0.3-rc-20230423081842-5d0db1c",
7
+ "@whatwg-node/events": "0.0.3-rc-20230423083456-973aff4",
8
8
  "busboy": "^1.6.0",
9
9
  "fast-querystring": "^1.1.1",
10
10
  "fast-url-parser": "^1.1.3",
@@ -14,4 +14,5 @@ export declare class PonyfillURLSearchParams implements URLSearchParams {
14
14
  values(): IterableIterator<string>;
15
15
  [Symbol.iterator](): IterableIterator<[string, string]>;
16
16
  forEach(callback: (value: string, key: string, parent: URLSearchParams) => void): void;
17
+ get size(): number;
17
18
  }
@@ -14,4 +14,5 @@ export declare class PonyfillURLSearchParams implements URLSearchParams {
14
14
  values(): IterableIterator<string>;
15
15
  [Symbol.iterator](): IterableIterator<[string, string]>;
16
16
  forEach(callback: (value: string, key: string, parent: URLSearchParams) => void): void;
17
+ get size(): number;
17
18
  }