@types/node 16.11.37 → 16.11.40
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 v16.11/README.md +1 -1
- node v16.11/fs/promises.d.ts +1 -1
- node v16.11/fs.d.ts +8 -2
- node v16.11/package.json +3 -3
- node v16.11/tls.d.ts +1 -1
- node v16.11/url.d.ts +5 -1
node v16.11/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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue,
|
|
11
|
+
* Last updated: Tue, 14 Jun 2022 23:01:33 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.11/fs/promises.d.ts
CHANGED
|
@@ -487,7 +487,7 @@ declare module 'fs/promises' {
|
|
|
487
487
|
* @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created.
|
|
488
488
|
* @return Fulfills with a {FileHandle} object.
|
|
489
489
|
*/
|
|
490
|
-
function open(path: PathLike, flags
|
|
490
|
+
function open(path: PathLike, flags?: string | number, mode?: Mode): Promise<FileHandle>;
|
|
491
491
|
/**
|
|
492
492
|
* Renames `oldPath` to `newPath`.
|
|
493
493
|
* @since v10.0.0
|
node v16.11/fs.d.ts
CHANGED
|
@@ -1993,12 +1993,18 @@ declare module 'fs' {
|
|
|
1993
1993
|
* @param [flags='r'] See `support of file system `flags``.
|
|
1994
1994
|
* @param [mode=0o666]
|
|
1995
1995
|
*/
|
|
1996
|
-
export function open(path: PathLike, flags: OpenMode, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
1996
|
+
export function open(path: PathLike, flags: OpenMode | undefined, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
1997
|
+
/**
|
|
1998
|
+
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
1999
|
+
* @param [flags='r'] See `support of file system `flags``.
|
|
2000
|
+
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2001
|
+
*/
|
|
2002
|
+
export function open(path: PathLike, flags: OpenMode | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
1997
2003
|
/**
|
|
1998
2004
|
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
1999
2005
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2000
2006
|
*/
|
|
2001
|
-
export function open(path: PathLike,
|
|
2007
|
+
export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2002
2008
|
export namespace open {
|
|
2003
2009
|
/**
|
|
2004
2010
|
* Asynchronous open(2) - open and possibly create a file.
|
node v16.11/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.11.
|
|
3
|
+
"version": "16.11.40",
|
|
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": "
|
|
224
|
-
"typeScriptVersion": "
|
|
223
|
+
"typesPublisherContentHash": "18605d72c756d18be767b1dd623452e5c0d2df56a2fb6fad1594dcf20086f9b9",
|
|
224
|
+
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|
node v16.11/tls.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ declare module 'tls' {
|
|
|
157
157
|
* Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances.
|
|
158
158
|
* @since v0.11.4
|
|
159
159
|
*/
|
|
160
|
-
encrypted:
|
|
160
|
+
encrypted: true;
|
|
161
161
|
/**
|
|
162
162
|
* String containing the selected ALPN protocol.
|
|
163
163
|
* Before a handshake has completed, this value is always null.
|
node v16.11/url.d.ts
CHANGED
|
@@ -59,8 +59,12 @@ declare module 'url' {
|
|
|
59
59
|
* lenient, non-standard algorithm for parsing URL strings, security
|
|
60
60
|
* issues can be introduced. Specifically, issues with [host name spoofing](https://hackerone.com/reports/678487) and
|
|
61
61
|
* incorrect handling of usernames and passwords have been identified.
|
|
62
|
+
*
|
|
63
|
+
* Deprecation of this API has been shelved for now primarily due to the the
|
|
64
|
+
* inability of the [WHATWG API to parse relative URLs](https://github.com/nodejs/node/issues/12682#issuecomment-1154492373).
|
|
65
|
+
* [Discussions are ongoing](https://github.com/whatwg/url/issues/531) for the best way to resolve this.
|
|
66
|
+
*
|
|
62
67
|
* @since v0.1.25
|
|
63
|
-
* @deprecated Legacy: Use the WHATWG URL API instead.
|
|
64
68
|
* @param urlString The URL string to parse.
|
|
65
69
|
* @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
|
|
66
70
|
* on the returned URL object will be an unparsed, undecoded string.
|