@types/node 14.18.9 → 14.18.10

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.
node v14.18/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 19 Jan 2022 07:31:23 GMT
11
+ * Last updated: Tue, 01 Feb 2022 08:31:31 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.18.9",
3
+ "version": "14.18.10",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "68390c0584f2fc1d1864ae913ab761058bae9ea9aec1dd34a2978d2675a6c31e",
223
+ "typesPublisherContentHash": "1484ce2e0999bb038b0993c28cc9673aa9832f0fd1fc87f496fe0b8297bda0c1",
224
224
  "typeScriptVersion": "3.8"
225
225
  }
node v14.18/url.d.ts CHANGED
@@ -102,7 +102,7 @@ declare module 'url' {
102
102
  append(name: string, value: string): void;
103
103
  delete(name: string): void;
104
104
  entries(): IterableIterator<[string, string]>;
105
- forEach(callback: (value: string, name: string, searchParams: this) => void): void;
105
+ forEach(callback: (value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: any): void;
106
106
  get(name: string): string | null;
107
107
  getAll(name: string): string[];
108
108
  has(name: string): boolean;
@@ -113,6 +113,32 @@ declare module 'url' {
113
113
  values(): IterableIterator<string>;
114
114
  [Symbol.iterator](): IterableIterator<[string, string]>;
115
115
  }
116
+
117
+ import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
118
+ global {
119
+ interface URLSearchParams extends _URLSearchParams {}
120
+ interface URL extends _URL {}
121
+ interface Global {
122
+ URL: typeof _URL;
123
+ URLSearchParams: typeof _URLSearchParams;
124
+ }
125
+ /**
126
+ * `URL` class is a global reference for `require('url').URL`
127
+ * https://nodejs.org/api/url.html#the-whatwg-url-api
128
+ * @since v10.0.0
129
+ */
130
+ var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
131
+ /**
132
+ * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
133
+ * https://nodejs.org/api/url.html#class-urlsearchparams
134
+ * @since v10.0.0
135
+ */
136
+ var URLSearchParams: {
137
+ prototype: URLSearchParams;
138
+ new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
139
+ toString(): string;
140
+ };
141
+ }
116
142
  }
117
143
  declare module 'node:url' {
118
144
  export * from 'url';