| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9b8695f commit 498dfba
12 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2700,7 +2700,7 @@ it allows injection of numbers where a naively written application that does not | |||
| 2700 | 2700 | validate its input sufficiently might expect to always receive a string. | |
| 2701 | 2701 | Before Node.js 8.0.0, the 100 byte buffer might contain | |
| 2702 | 2702 | arbitrary pre-existing in-memory data, so may be used to expose in-memory | |
| 2703 | - secrets to a remote attacker. Since Node.js 8.0.0, exposure of memory cannot | ||
| 2703 | + secrets to a remote attacker. Since Node.js 8.0.0, exposure of memory cannot | ||
| 2704 | 2704 | occur because the data is zero-filled. However, other attacks are still | |
| 2705 | 2705 | possible, such as causing very large buffers to be allocated by the server, | |
| 2706 | 2706 | leading to performance degradation or crashing on memory exhaustion. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -347,7 +347,7 @@ changes: | |||
| 347 | 347 | * `detached` {boolean} Prepare child to run independently of its parent | |
| 348 | 348 | process. Specific behavior depends on the platform, see | |
| 349 | 349 | [`options.detached`][]). | |
| 350 | - * `env` {Object} Environment key-value pairs. **Default:** `process.env`. | ||
| 350 | + * `env` {Object} Environment key-value pairs. **Default:** `process.env`. | ||
| 351 | 351 | * `execPath` {string} Executable used to create the child process. | |
| 352 | 352 | * `execArgv` {string[]} List of string arguments passed to the executable. | |
| 353 | 353 | **Default:** `process.execArgv`. | |
@@ -735,7 +735,7 @@ changes: | |||
| 735 | 735 | * `stdio` {string|Array} Child's stdio configuration. `stderr` by default will | |
| 736 | 736 | be output to the parent process' stderr unless `stdio` is specified. | |
| 737 | 737 | **Default:** `'pipe'`. | |
| 738 | - * `env` {Object} Environment key-value pairs. **Default:** `process.env`. | ||
| 738 | + * `env` {Object} Environment key-value pairs. **Default:** `process.env`. | ||
| 739 | 739 | * `uid` {number} Sets the user identity of the process (see setuid(2)). | |
| 740 | 740 | * `gid` {number} Sets the group identity of the process (see setgid(2)). | |
| 741 | 741 | * `timeout` {number} In milliseconds the maximum amount of time the process | |
@@ -865,7 +865,7 @@ changes: | |||
| 865 | 865 | * `argv0` {string} Explicitly set the value of `argv[0]` sent to the child | |
| 866 | 866 | process. This will be set to `command` if not specified. | |
| 867 | 867 | * `stdio` {string|Array} Child's stdio configuration. | |
| 868 | - * `env` {Object} Environment key-value pairs. **Default:** `process.env`. | ||
| 868 | + * `env` {Object} Environment key-value pairs. **Default:** `process.env`. | ||
| 869 | 869 | * `uid` {number} Sets the user identity of the process (see setuid(2)). | |
| 870 | 870 | * `gid` {number} Sets the group identity of the process (see setgid(2)). | |
| 871 | 871 | * `timeout` {number} In milliseconds the maximum amount of time the process | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2060,7 +2060,7 @@ added: v0.1.92 | |||
| 2060 | 2060 | * `options` {Object} [`stream.Writable` options][] | |
| 2061 | 2061 | * Returns: {Sign} | |
| 2062 | 2062 | ||
| 2063 | - Creates and returns a `Sign` object that uses the given `algorithm`. Use | ||
| 2063 | + Creates and returns a `Sign` object that uses the given `algorithm`. Use | ||
| 2064 | 2064 | [`crypto.getHashes()`][] to obtain the names of the available digest algorithms. | |
| 2065 | 2065 | Optional `options` argument controls the `stream.Writable` behavior. | |
| 2066 | 2066 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3594,14 +3594,14 @@ changes: | |||
| 3594 | 3594 | * `err` {Error} | |
| 3595 | 3595 | ||
| 3596 | 3596 | Asynchronous symlink(2) which creates the link called `path` pointing to | |
| 3597 | - `target`. No arguments other than a possible exception are given to the | ||
| 3597 | + `target`. No arguments other than a possible exception are given to the | ||
| 3598 | 3598 | completion callback. | |
| 3599 | 3599 | ||
| 3600 | 3600 | The `type` argument is only available on Windows and ignored on other platforms. | |
| 3601 | 3601 | It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is | |
| 3602 | 3602 | not set, Node.js will autodetect `target` type and use `'file'` or `'dir'`. If | |
| 3603 | 3603 | the `target` does not exist, `'file'` will be used. Windows junction points | |
| 3604 | - require the destination path to be absolute. When using `'junction'`, the | ||
| 3604 | + require the destination path to be absolute. When using `'junction'`, the | ||
| 3605 | 3605 | `target` argument will automatically be normalized to absolute path. | |
| 3606 | 3606 | ||
| 3607 | 3607 | Relative targets are relative to the link’s parent directory. | |
@@ -4200,7 +4200,7 @@ before and/or after the newly written data. | |||
| 4200 | 4200 | For example, if `fs.writeFile()` is called twice in a row, first to write the | |
| 4201 | 4201 | string `'Hello'`, then to write the string `', World'`, the file would contain | |
| 4202 | 4202 | `'Hello, World'`, and might contain some of the file's original data (depending | |
| 4203 | - on the size of the original file, and the position of the file descriptor). If | ||
| 4203 | + on the size of the original file, and the position of the file descriptor). If | ||
| 4204 | 4204 | a file name had been used instead of a descriptor, the file would be guaranteed | |
| 4205 | 4205 | to contain only `', World'`. | |
| 4206 | 4206 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -165,15 +165,15 @@ require(X) from module at path Y | |||
| 165 | 165 | 6. THROW "not found" | |
| 166 | 166 | ||
| 167 | 167 | LOAD_AS_FILE(X) | |
| 168 | - 1. If X is a file, load X as its file extension format. STOP | ||
| 169 | - 2. If X.js is a file, load X.js as JavaScript text. STOP | ||
| 170 | - 3. If X.json is a file, parse X.json to a JavaScript Object. STOP | ||
| 171 | - 4. If X.node is a file, load X.node as binary addon. STOP | ||
| 168 | + 1. If X is a file, load X as its file extension format. STOP | ||
| 169 | + 2. If X.js is a file, load X.js as JavaScript text. STOP | ||
| 170 | + 3. If X.json is a file, parse X.json to a JavaScript Object. STOP | ||
| 171 | + 4. If X.node is a file, load X.node as binary addon. STOP | ||
| 172 | 172 | ||
| 173 | 173 | LOAD_INDEX(X) | |
| 174 | - 1. If X/index.js is a file, load X/index.js as JavaScript text. STOP | ||
| 174 | + 1. If X/index.js is a file, load X/index.js as JavaScript text. STOP | ||
| 175 | 175 | 2. If X/index.json is a file, parse X/index.json to a JavaScript object. STOP | |
| 176 | - 3. If X/index.node is a file, load X/index.node as binary addon. STOP | ||
| 176 | + 3. If X/index.node is a file, load X/index.node as binary addon. STOP | ||
| 177 | 177 | ||
| 178 | 178 | LOAD_AS_DIRECTORY(X) | |
| 179 | 179 | 1. If X/package.json is a file, | |
@@ -234,7 +234,7 @@ LOAD_PACKAGE_EXPORTS(DIR, X) | |||
| 234 | 234 | a. LOAD_AS_FILE(RESOLVED) | |
| 235 | 235 | b. LOAD_AS_DIRECTORY(RESOLVED) | |
| 236 | 236 | 12. Otherwise | |
| 237 | - a. If RESOLVED is a file, load it as its file extension format. STOP | ||
| 237 | + a. If RESOLVED is a file, load it as its file extension format. STOP | ||
| 238 | 238 | 13. Throw "not found" | |
| 239 | 239 | ``` | |
| 240 | 240 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -646,7 +646,7 @@ typedef void (*napi_async_execute_callback)(napi_env env, void* data); | |||
| 646 | 646 | ||
| 647 | 647 | Implementations of this function must avoid making N-API calls | |
| 648 | 648 | that execute JavaScript or interact with | |
| 649 | - JavaScript objects. N-API | ||
| 649 | + JavaScript objects. N-API | ||
| 650 | 650 | calls should be in the `napi_async_complete_callback` instead. | |
| 651 | 651 | Do not use the `napi_env` parameter as it will likely | |
| 652 | 652 | result in execution of JavaScript. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -721,7 +721,7 @@ added: v6.1.0 | |||
| 721 | 721 | If `true`, | |
| 722 | 722 | [`socket.connect(options[, connectListener])`][`socket.connect(options)`] was | |
| 723 | 723 | called and has not yet finished. It will stay `true` until the socket becomes | |
| 724 | - connected, then it is set to `false` and the `'connect'` event is emitted. Note | ||
| 724 | + connected, then it is set to `false` and the `'connect'` event is emitted. Note | ||
| 725 | 725 | that the | |
| 726 | 726 | [`socket.connect(options[, connectListener])`][`socket.connect(options)`] | |
| 727 | 727 | callback is a listener for the `'connect'` event. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -554,7 +554,7 @@ environment variable. | |||
| 554 | 554 | ||
| 555 | 555 | `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides | |
| 556 | 556 | `Set.prototype.has` to recognize several different possible flag | |
| 557 | - representations. `process.allowedNodeEnvironmentFlags.has()` will | ||
| 557 | + representations. `process.allowedNodeEnvironmentFlags.has()` will | ||
| 558 | 558 | return `true` in the following cases: | |
| 559 | 559 | ||
| 560 | 560 | * Flags may omit leading single (`-`) or double (`--`) dashes; e.g., | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -361,7 +361,7 @@ The current input data being processed by node. | |||
| 361 | 361 | ||
| 362 | 362 | This can be used when collecting input from a TTY stream to retrieve the | |
| 363 | 363 | current value that has been processed thus far, prior to the `line` event | |
| 364 | - being emitted. Once the `line` event has been emitted, this property will | ||
| 364 | + being emitted. Once the `line` event has been emitted, this property will | ||
| 365 | 365 | be an empty string. | |
| 366 | 366 | ||
| 367 | 367 | Be aware that modifying the value during the instance runtime may have | |
@@ -395,7 +395,7 @@ added: v0.1.98 | |||
| 395 | 395 | The cursor position relative to `rl.line`. | |
| 396 | 396 | ||
| 397 | 397 | This will track where the current cursor lands in the input string, when | |
| 398 | - reading input from a TTY stream. The position of cursor determines the | ||
| 398 | + reading input from a TTY stream. The position of cursor determines the | ||
| 399 | 399 | portion of the input string that will be modified as input is processed, | |
| 400 | 400 | as well as the column where the terminal caret will be rendered. | |
| 401 | 401 | ||
@@ -409,7 +409,7 @@ added: v12.16.0 | |||
| 409 | 409 | * `cols` {number} the screen column the cursor currently lands on | |
| 410 | 410 | ||
| 411 | 411 | Returns the real position of the cursor in relation to the input | |
| 412 | - prompt + string. Long input (wrapping) strings, as well as multiple | ||
| 412 | + prompt + string. Long input (wrapping) strings, as well as multiple | ||
| 413 | 413 | line prompts are included in the calculations. | |
| 414 | 414 | ||
| 415 | 415 | ## `readline.clearLine(stream, dir[, callback])` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1761,7 +1761,7 @@ changes: | |||
| 1761 | 1761 | specified in the [`stream.write()`][stream-write] call) before passing | |
| 1762 | 1762 | them to [`stream._write()`][stream-_write]. Other types of data are not | |
| 1763 | 1763 | converted (i.e. `Buffer`s are not decoded into `string`s). Setting to | |
| 1764 | - false will prevent `string`s from being converted. **Default:** `true`. | ||
| 1764 | + false will prevent `string`s from being converted. **Default:** `true`. | ||
| 1765 | 1765 | * `defaultEncoding` {string} The default encoding that is used when no | |
| 1766 | 1766 | encoding is specified as an argument to [`stream.write()`][stream-write]. | |
| 1767 | 1767 | **Default:** `'utf8'`. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments