| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e924dc7 commit f0d8743
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -784,7 +784,7 @@ function readvSync(fd, buffers, position) { | |||
| 784 | 784 | /** | |
| 785 | 785 | * Writes `buffer` to the specified `fd` (file descriptor). | |
| 786 | 786 | * @param {number} fd | |
| 787 | - * @param {Buffer | TypedArray | DataView | string | Object} buffer | ||
| 787 | + * @param {Buffer | TypedArray | DataView | string | object} buffer | ||
| 788 | 788 | * @param {number} [offset] | |
| 789 | 789 | * @param {number} [length] | |
| 790 | 790 | * @param {number} [position] | |
@@ -849,7 +849,7 @@ ObjectDefineProperty(write, internalUtil.customPromisifyArgs, | |||
| 849 | 849 | * Synchronously writes `buffer` to the | |
| 850 | 850 | * specified `fd` (file descriptor). | |
| 851 | 851 | * @param {number} fd | |
| 852 | - * @param {Buffer | TypedArray | DataView | string | Object} buffer | ||
| 852 | + * @param {Buffer | TypedArray | DataView | string | object} buffer | ||
| 853 | 853 | * @param {number} [offset] | |
| 854 | 854 | * @param {number} [length] | |
| 855 | 855 | * @param {number} [position] | |
@@ -2087,7 +2087,7 @@ function writeAll(fd, isUserFd, buffer, offset, length, signal, callback) { | |||
| 2087 | 2087 | /** | |
| 2088 | 2088 | * Asynchronously writes data to the file. | |
| 2089 | 2089 | * @param {string | Buffer | URL | number} path | |
| 2090 | - * @param {string | Buffer | TypedArray | DataView | Object} data | ||
| 2090 | + * @param {string | Buffer | TypedArray | DataView | object} data | ||
| 2091 | 2091 | * @param {{ | |
| 2092 | 2092 | * encoding?: string | null; | |
| 2093 | 2093 | * mode?: number; | |
@@ -2131,7 +2131,7 @@ function writeFile(path, data, options, callback) { | |||
| 2131 | 2131 | /** | |
| 2132 | 2132 | * Synchronously writes data to the file. | |
| 2133 | 2133 | * @param {string | Buffer | URL | number} path | |
| 2134 | - * @param {string | Buffer | TypedArray | DataView | Object} data | ||
| 2134 | + * @param {string | Buffer | TypedArray | DataView | object} data | ||
| 2135 | 2135 | * @param {{ | |
| 2136 | 2136 | * encoding?: string | null; | |
| 2137 | 2137 | * mode?: number; | |
@@ -2805,7 +2805,7 @@ function copyFileSync(src, dest, mode) { | |||
| 2805 | 2805 | * symlink. The contents of directories will be copied recursively. | |
| 2806 | 2806 | * @param {string | URL} src | |
| 2807 | 2807 | * @param {string | URL} dest | |
| 2808 | - * @param {Object} [options] | ||
| 2808 | + * @param {object} [options] | ||
| 2809 | 2809 | * @param {() => any} callback | |
| 2810 | 2810 | * @returns {void} | |
| 2811 | 2811 | */ | |
@@ -2827,7 +2827,7 @@ function cp(src, dest, options, callback) { | |||
| 2827 | 2827 | * symlink. The contents of directories will be copied recursively. | |
| 2828 | 2828 | * @param {string | URL} src | |
| 2829 | 2829 | * @param {string | URL} dest | |
| 2830 | - * @param {Object} [options] | ||
| 2830 | + * @param {object} [options] | ||
| 2831 | 2831 | * @returns {void} | |
| 2832 | 2832 | */ | |
| 2833 | 2833 | function cpSync(src, dest, options) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,13 +60,13 @@ function createServer(opts, requestListener) { | |||
| 60 | 60 | } | |
| 61 | 61 | ||
| 62 | 62 | /** | |
| 63 | - * @typedef {Object} HTTPRequestOptions | ||
| 63 | + * @typedef {object} HTTPRequestOptions | ||
| 64 | 64 | * @property {httpAgent.Agent | boolean} [agent] | |
| 65 | 65 | * @property {string} [auth] | |
| 66 | 66 | * @property {Function} [createConnection] | |
| 67 | 67 | * @property {number} [defaultPort] | |
| 68 | 68 | * @property {number} [family] | |
| 69 | - * @property {Object} [headers] | ||
| 69 | + * @property {object} [headers] | ||
| 70 | 70 | * @property {number} [hints] | |
| 71 | 71 | * @property {string} [host] | |
| 72 | 72 | * @property {string} [hostname] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -474,7 +474,7 @@ const captureLargerStackTrace = hideStackFrames( | |||
| 474 | 474 | * The goal is to migrate them to ERR_* errors later when compatibility is | |
| 475 | 475 | * not a concern. | |
| 476 | 476 | * | |
| 477 | - * @param {Object} ctx | ||
| 477 | + * @param {object} ctx | ||
| 478 | 478 | * @returns {Error} | |
| 479 | 479 | */ | |
| 480 | 480 | const uvException = hideStackFrames(function uvException(ctx) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,15 +54,15 @@ class ESMLoader { | |||
| 54 | 54 | /** | |
| 55 | 55 | * Prior to ESM loading. These are called once before any modules are started. | |
| 56 | 56 | * @private | |
| 57 | - * @property {function[]} globalPreloaders First-in-first-out list of | ||
| 57 | + * @property {Function[]} globalPreloaders First-in-first-out list of | ||
| 58 | 58 | * preload hooks. | |
| 59 | 59 | */ | |
| 60 | 60 | #globalPreloaders = []; | |
| 61 | 61 | ||
| 62 | 62 | /** | |
| 63 | 63 | * Phase 2 of 2 in ESM loading. | |
| 64 | 64 | * @private | |
| 65 | - * @property {function[]} loaders First-in-first-out list of loader hooks. | ||
| 65 | + * @property {Function[]} loaders First-in-first-out list of loader hooks. | ||
| 66 | 66 | */ | |
| 67 | 67 | #loaders = [ | |
| 68 | 68 | defaultLoad, | |
@@ -71,7 +71,7 @@ class ESMLoader { | |||
| 71 | 71 | /** | |
| 72 | 72 | * Phase 1 of 2 in ESM loading. | |
| 73 | 73 | * @private | |
| 74 | - * @property {function[]} resolvers First-in-first-out list of resolver hooks | ||
| 74 | + * @property {Function[]} resolvers First-in-first-out list of resolver hooks | ||
| 75 | 75 | */ | |
| 76 | 76 | #resolvers = [ | |
| 77 | 77 | defaultResolve, | |
@@ -341,8 +341,8 @@ class ESMLoader { | |||
| 341 | 341 | * The internals of this WILL change when chaining is implemented, | |
| 342 | 342 | * depending on the resolution/consensus from #36954 | |
| 343 | 343 | * @param {string} url The URL/path of the module to be loaded | |
| 344 | - * @param {Object} context Metadata about the module | ||
| 345 | - * @returns {Object} | ||
| 344 | + * @param {object} context Metadata about the module | ||
| 345 | + * @returns {object} | ||
| 346 | 346 | */ | |
| 347 | 347 | async load(url, context = {}) { | |
| 348 | 348 | const defaultLoader = this.#loaders[0]; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -148,7 +148,7 @@ class SourceMap { | |||
| 148 | 148 | } | |
| 149 | 149 | ||
| 150 | 150 | /** | |
| 151 | - * @return {Object} raw source map v3 payload. | ||
| 151 | + * @return {object} raw source map v3 payload. | ||
| 152 | 152 | */ | |
| 153 | 153 | get payload() { | |
| 154 | 154 | return cloneSourceMapV3(this.#payload); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -280,7 +280,7 @@ function getUserOptions(ctx, isCrossContext) { | |||
| 280 | 280 | * in the best way possible given the different types. | |
| 281 | 281 | * | |
| 282 | 282 | * @param {any} value The value to print out. | |
| 283 | - * @param {Object} opts Optional options object that alters the output. | ||
| 283 | + * @param {object} opts Optional options object that alters the output. | ||
| 284 | 284 | */ | |
| 285 | 285 | /* Legacy: value, showHidden, depth, colors */ | |
| 286 | 286 | function inspect(value, opts) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -269,7 +269,7 @@ class DefaultSerializer extends Serializer { | |||
| 269 | 269 | /** | |
| 270 | 270 | * Used to write some kind of host object, i.e. an | |
| 271 | 271 | * object that is created by native C++ bindings. | |
| 272 | - * @param {Object} abView | ||
| 272 | + * @param {object} abView | ||
| 273 | 273 | * @returns {void} | |
| 274 | 274 | */ | |
| 275 | 275 | _writeHostObject(abView) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,12 +8,12 @@ const assert = require('assert'); | |||
| 8 | 8 | * | |
| 9 | 9 | * @name checkInvocations | |
| 10 | 10 | * @function | |
| 11 | - * @param {Object} activity including timestamps for each life time event, | ||
| 11 | + * @param {object} activity including timestamps for each life time event, | ||
| 12 | 12 | * i.e. init, before ... | |
| 13 | - * @param {Object} hooks the expected life time event invocations with a count | ||
| 13 | + * @param {object} hooks the expected life time event invocations with a count | ||
| 14 | 14 | * indicating how often they should have been invoked, | |
| 15 | 15 | * i.e. `{ init: 1, before: 2, after: 2 }` | |
| 16 | - * @param {String} stage the name of the stage in the test at which we are | ||
| 16 | + * @param {string} stage the name of the stage in the test at which we are | ||
| 17 | 17 | * checking the invocations | |
| 18 | 18 | */ | |
| 19 | 19 | exports.checkInvocations = function checkInvocations(activity, hooks, stage) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,8 +17,8 @@ module.exports = function(context) { | |||
| 17 | 17 | ||
| 18 | 18 | /** | |
| 19 | 19 | * Function to check if the path is a module and return its name. | |
| 20 | - * @param {String} str The path to check | ||
| 21 | - * @returns {String} module name | ||
| 20 | + * @param {string} str The path to check | ||
| 21 | + * @returns {string} module name | ||
| 22 | 22 | */ | |
| 23 | 23 | function getModuleName(str) { | |
| 24 | 24 | if (str === '../common/index.mjs') { | |
@@ -32,7 +32,7 @@ module.exports = function(context) { | |||
| 32 | 32 | * Function to check if a node has an argument that is a module and | |
| 33 | 33 | * return its name. | |
| 34 | 34 | * @param {ASTNode} node The node to check | |
| 35 | - * @returns {undefined|String} module name or undefined | ||
| 35 | + * @returns {undefined | string} module name or undefined | ||
| 36 | 36 | */ | |
| 37 | 37 | function getModuleNameFromCall(node) { | |
| 38 | 38 | // Node has arguments and first argument is string | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,8 +27,8 @@ module.exports = function(context) { | |||
| 27 | 27 | ||
| 28 | 28 | /** | |
| 29 | 29 | * Function to check if the path is a required module and return its name. | |
| 30 | - * @param {String} str The path to check | ||
| 31 | - * @returns {undefined|String} required module name or undefined | ||
| 30 | + * @param {string} str The path to check | ||
| 31 | + * @returns {undefined | string} required module name or undefined | ||
| 32 | 32 | */ | |
| 33 | 33 | function getRequiredModuleName(str) { | |
| 34 | 34 | const match = requiredModules.find(([, test]) => { | |
@@ -41,7 +41,7 @@ module.exports = function(context) { | |||
| 41 | 41 | * Function to check if a node has an argument that is a required module and | |
| 42 | 42 | * return its name. | |
| 43 | 43 | * @param {ASTNode} node The node to check | |
| 44 | - * @returns {undefined|String} required module name or undefined | ||
| 44 | + * @returns {undefined | string} required module name or undefined | ||
| 45 | 45 | */ | |
| 46 | 46 | function getRequiredModuleNameFromCall(node) { | |
| 47 | 47 | // Node has arguments and first argument is string | |
| Back | FazBrowse Home | New Git URL |
0 commit comments