mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Deploy Production Code for Commit d418023e70
🚀
This commit is contained in:
parent
d418023e70
commit
fc8c70cff5
5
lib/execute.d.ts
vendored
5
lib/execute.d.ts
vendored
@ -1,3 +1,4 @@
|
||||
/// <reference types="node" />
|
||||
/** Wrapper around the GitHub toolkit exec command which returns the output.
|
||||
* Also allows you to easily toggle the current working directory.
|
||||
*
|
||||
@ -5,5 +6,5 @@
|
||||
* @param {string} cwd - The current working directory.
|
||||
* @param {boolean} silent - Determines if the in/out should be silenced or not.
|
||||
*/
|
||||
export declare function execute(cmd: string, cwd: string, silent: boolean): Promise<any>;
|
||||
export declare function stdout(data: any): string | void;
|
||||
export declare function execute(cmd: string, cwd: string, silent: boolean): Promise<string>;
|
||||
export declare function stdout(data: Buffer | string): void;
|
||||
|
@ -8,10 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.stdout = exports.execute = void 0;
|
||||
const exec_1 = require("@actions/exec");
|
||||
let output;
|
||||
const buffer_1 = __importDefault(require("buffer"));
|
||||
let output = '';
|
||||
/** Wrapper around the GitHub toolkit exec command which returns the output.
|
||||
* Also allows you to easily toggle the current working directory.
|
||||
*
|
||||
@ -35,6 +39,8 @@ function execute(cmd, cwd, silent) {
|
||||
}
|
||||
exports.execute = execute;
|
||||
function stdout(data) {
|
||||
if (output.length < buffer_1.default.constants.MAX_STRING_LENGTH) {
|
||||
output += data.toString().trim();
|
||||
}
|
||||
}
|
||||
exports.stdout = stdout;
|
||||
|
11
lib/git.js
11
lib/git.js
@ -76,7 +76,7 @@ function deploy(action) {
|
||||
: ''} 🚀`;
|
||||
// Checks to see if the remote exists prior to deploying.
|
||||
const branchExists = action.isTest & constants_1.TestFlag.HAS_REMOTE_BRANCH ||
|
||||
(yield execute_1.execute(`git ls-remote --heads ${action.repositoryPath} ${action.branch}`, action.workspace, action.silent));
|
||||
(yield execute_1.execute(`git ls-remote --heads ${action.repositoryPath} refs/heads/${action.branch}`, action.workspace, action.silent));
|
||||
yield worktree_1.generateWorktree(action, temporaryDeploymentDirectory, branchExists);
|
||||
// Ensures that items that need to be excluded from the clean job get parsed.
|
||||
let excludes = '';
|
||||
@ -115,7 +115,9 @@ function deploy(action) {
|
||||
const hasFilesToCommit = action.isTest & constants_1.TestFlag.HAS_CHANGED_FILES ||
|
||||
(yield execute_1.execute(checkGitStatus, `${action.workspace}/${temporaryDeploymentDirectory}`, true // This output is always silenced due to the large output it creates.
|
||||
));
|
||||
if (!hasFilesToCommit) {
|
||||
if ((!action.singleCommit && !hasFilesToCommit) ||
|
||||
// Ignores the case where single commit is true with a target folder to prevent incorrect early exiting.
|
||||
(action.singleCommit && !action.targetFolder && !hasFilesToCommit)) {
|
||||
return constants_1.Status.SKIPPED;
|
||||
}
|
||||
// Commits to GitHub.
|
||||
@ -134,6 +136,11 @@ function deploy(action) {
|
||||
finally {
|
||||
// Cleans up temporary files/folders and restores the git state.
|
||||
core_1.info('Running post deployment cleanup jobs… 🗑️');
|
||||
if (!action.singleCommit) {
|
||||
core_1.info(`Resetting branch and removing artifacts…`);
|
||||
yield execute_1.execute(`git checkout -B ${temporaryDeploymentBranch}`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
|
||||
yield execute_1.execute(`git branch -D ${action.branch} --force`, action.workspace, action.silent);
|
||||
}
|
||||
yield execute_1.execute(`git worktree remove ${temporaryDeploymentDirectory} --force`, action.workspace, action.silent);
|
||||
yield io_1.rmRF(temporaryDeploymentDirectory);
|
||||
}
|
||||
|
2
lib/util.d.ts
vendored
2
lib/util.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
import { ActionInterface } from './constants';
|
||||
export declare const isNullOrUndefined: (value: any) => boolean;
|
||||
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
||||
export declare const generateTokenType: (action: ActionInterface) => string;
|
||||
export declare const generateRepositoryPath: (action: ActionInterface) => string;
|
||||
export declare const generateFolderPath: (action: ActionInterface) => string;
|
||||
|
2
lib/worktree.d.ts
vendored
2
lib/worktree.d.ts
vendored
@ -6,4 +6,4 @@ export declare class GitCheckout {
|
||||
constructor(branch: string);
|
||||
toString(): string;
|
||||
}
|
||||
export declare function generateWorktree(action: ActionInterface, worktreedir: string, branchExists: boolean): Promise<void>;
|
||||
export declare function generateWorktree(action: ActionInterface, worktreedir: string, branchExists: unknown): Promise<void>;
|
||||
|
57
node_modules/@actions/core/README.md
generated
vendored
57
node_modules/@actions/core/README.md
generated
vendored
@ -62,10 +62,10 @@ catch (err) {
|
||||
// setFailed logs the message and sets a failing exit code
|
||||
core.setFailed(`Action failed with error ${err}`);
|
||||
}
|
||||
```
|
||||
|
||||
Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned.
|
||||
|
||||
```
|
||||
|
||||
#### Logging
|
||||
|
||||
@ -113,6 +113,61 @@ const result = await core.group('Do something async', async () => {
|
||||
})
|
||||
```
|
||||
|
||||
#### Styling output
|
||||
|
||||
Colored output is supported in the Action logs via standard [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). 3/4 bit, 8 bit and 24 bit colors are all supported.
|
||||
|
||||
Foreground colors:
|
||||
```js
|
||||
// 3/4 bit
|
||||
core.info('\u001b[35mThis foreground will be magenta')
|
||||
|
||||
// 8 bit
|
||||
core.info('\u001b[38;5;6mThis foreground will be cyan')
|
||||
|
||||
// 24 bit
|
||||
core.info('\u001b[38;2;255;0;0mThis foreground will be bright red')
|
||||
```
|
||||
|
||||
Background colors:
|
||||
```js
|
||||
// 3/4 bit
|
||||
core.info('\u001b[43mThis background will be yellow');
|
||||
|
||||
// 8 bit
|
||||
core.info('\u001b[48;5;6mThis background will be cyan')
|
||||
|
||||
// 24 bit
|
||||
core.info('\u001b[48;2;255;0;0mThis background will be bright red')
|
||||
```
|
||||
|
||||
Special styles:
|
||||
|
||||
```js
|
||||
core.info('\u001b[1mBold text')
|
||||
core.info('\u001b[3mItalic text')
|
||||
core.info('\u001b[4mUnderlined text')
|
||||
```
|
||||
|
||||
ANSI escape codes can be combined with one another:
|
||||
|
||||
```js
|
||||
core.info('\u001b[31;46mRed foreground with a cyan background and \u001b[1mbold text at the end');
|
||||
```
|
||||
|
||||
> Note: Escape codes reset at the start of each line
|
||||
```js
|
||||
core.info('\u001b[35mThis foreground will be magenta')
|
||||
core.info('This foreground will reset to the default')
|
||||
```
|
||||
|
||||
Manually typing escape codes can be a little difficult, but you can use third party modules such as [ansi-styles](https://github.com/chalk/ansi-styles).
|
||||
|
||||
```js
|
||||
const style = require('ansi-styles');
|
||||
core.info(style.color.ansi16m.hex('#abcdef') + 'Hello world!')
|
||||
```
|
||||
|
||||
#### Action state
|
||||
|
||||
You can use this library to save state and get state for sharing information between a given wrapper action:
|
||||
|
1
node_modules/@actions/core/lib/core.js
generated
vendored
1
node_modules/@actions/core/lib/core.js
generated
vendored
@ -104,6 +104,7 @@ exports.getInput = getInput;
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function setOutput(name, value) {
|
||||
process.stdout.write(os.EOL);
|
||||
command_1.issueCommand('set-output', { name }, value);
|
||||
}
|
||||
exports.setOutput = setOutput;
|
||||
|
2
node_modules/@actions/core/lib/core.js.map
generated
vendored
2
node_modules/@actions/core/lib/core.js.map
generated
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,iDAA+D;AAC/D,mCAAsC;AAEtC,uCAAwB;AACxB,2CAA4B;AAU5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH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,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,oBAEC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,eAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAFD,gCAEC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,eAAK,CAAC,UAAU,CAAC,CAAA;AACnB,CAAC;AAFD,4BAEC;AAED;;;;;;;GAOG;AACH,SAAsB,KAAK,CAAI,IAAY,EAAE,EAAoB;;QAC/D,UAAU,CAAC,IAAI,CAAC,CAAA;QAEhB,IAAI,MAAS,CAAA;QAEb,IAAI;YACF,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;SACpB;gBAAS;YACR,QAAQ,EAAE,CAAA;SACX;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAZD,sBAYC;AAED,yEAAyE;AACzE,uBAAuB;AACvB,yEAAyE;AAEzE;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,EAAE,CAAA;AAC3C,CAAC;AAFD,4BAEC"}
|
2
node_modules/@actions/core/package.json
generated
vendored
2
node_modules/@actions/core/package.json
generated
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@actions/core",
|
||||
"version": "1.2.6",
|
||||
"version": "1.2.7",
|
||||
"description": "Actions core lib",
|
||||
"keywords": [
|
||||
"github",
|
||||
|
9
node_modules/@actions/io/LICENSE.md
generated
vendored
Normal file
9
node_modules/@actions/io/LICENSE.md
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2019 GitHub
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
11
node_modules/@actions/io/lib/io-util.js
generated
vendored
11
node_modules/@actions/io/lib/io-util.js
generated
vendored
@ -8,11 +8,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
var _a;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const assert_1 = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const fs = __importStar(require("fs"));
|
||||
const path = __importStar(require("path"));
|
||||
_a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
|
||||
exports.IS_WINDOWS = process.platform === 'win32';
|
||||
function exists(fsPath) {
|
||||
|
2
node_modules/@actions/io/lib/io-util.js.map
generated
vendored
2
node_modules/@actions/io/lib/io-util.js.map
generated
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"io-util.js","sourceRoot":"","sources":["../src/io-util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAyB;AACzB,yBAAwB;AACxB,6BAA4B;AAEf,gBAYE,qTAAA;AAEF,QAAA,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAEtD,SAAsB,MAAM,CAAC,MAAc;;QACzC,IAAI;YACF,MAAM,YAAI,CAAC,MAAM,CAAC,CAAA;SACnB;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ,EAAE;gBACzB,OAAO,KAAK,CAAA;aACb;YAED,MAAM,GAAG,CAAA;SACV;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CAAA;AAZD,wBAYC;AAED,SAAsB,WAAW,CAC/B,MAAc,EACd,UAAmB,KAAK;;QAExB,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,YAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,aAAK,CAAC,MAAM,CAAC,CAAA;QAChE,OAAO,KAAK,CAAC,WAAW,EAAE,CAAA;IAC5B,CAAC;CAAA;AAND,kCAMC;AAED;;;GAGG;AACH,SAAgB,QAAQ,CAAC,CAAS;IAChC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAA;IAC1B,IAAI,CAAC,CAAC,EAAE;QACN,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;KAC5D;IAED,IAAI,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CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;QACxD,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAC1D,CAAA;AACH,CAAC"}
|
6
node_modules/@actions/io/lib/io.d.ts
generated
vendored
6
node_modules/@actions/io/lib/io.d.ts
generated
vendored
@ -54,3 +54,9 @@ export declare function mkdirP(fsPath: string): Promise<void>;
|
||||
* @returns Promise<string> path to tool
|
||||
*/
|
||||
export declare function which(tool: string, check?: boolean): Promise<string>;
|
||||
/**
|
||||
* Returns a list of all occurrences of the given tool on the system path.
|
||||
*
|
||||
* @returns Promise<string[]> the paths of the tool
|
||||
*/
|
||||
export declare function findInPath(tool: string): Promise<string[]>;
|
||||
|
60
node_modules/@actions/io/lib/io.js
generated
vendored
60
node_modules/@actions/io/lib/io.js
generated
vendored
@ -8,11 +8,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||
result["default"] = mod;
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const childProcess = require("child_process");
|
||||
const path = require("path");
|
||||
const childProcess = __importStar(require("child_process"));
|
||||
const path = __importStar(require("path"));
|
||||
const util_1 = require("util");
|
||||
const ioUtil = require("./io-util");
|
||||
const ioUtil = __importStar(require("./io-util"));
|
||||
const exec = util_1.promisify(childProcess.exec);
|
||||
/**
|
||||
* Copies a file or folder.
|
||||
@ -180,12 +187,30 @@ function which(tool, check) {
|
||||
throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
const matches = yield findInPath(tool);
|
||||
if (matches && matches.length > 0) {
|
||||
return matches[0];
|
||||
}
|
||||
return '';
|
||||
});
|
||||
}
|
||||
exports.which = which;
|
||||
/**
|
||||
* Returns a list of all occurrences of the given tool on the system path.
|
||||
*
|
||||
* @returns Promise<string[]> the paths of the tool
|
||||
*/
|
||||
function findInPath(tool) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (!tool) {
|
||||
throw new Error("parameter 'tool' is required");
|
||||
}
|
||||
try {
|
||||
// build the list of extensions to try
|
||||
const extensions = [];
|
||||
if (ioUtil.IS_WINDOWS && process.env.PATHEXT) {
|
||||
for (const extension of process.env.PATHEXT.split(path.delimiter)) {
|
||||
if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) {
|
||||
for (const extension of process.env['PATHEXT'].split(path.delimiter)) {
|
||||
if (extension) {
|
||||
extensions.push(extension);
|
||||
}
|
||||
@ -195,13 +220,13 @@ function which(tool, check) {
|
||||
if (ioUtil.isRooted(tool)) {
|
||||
const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
|
||||
if (filePath) {
|
||||
return filePath;
|
||||
return [filePath];
|
||||
}
|
||||
return '';
|
||||
return [];
|
||||
}
|
||||
// if any path separators, return empty
|
||||
if (tool.includes('/') || (ioUtil.IS_WINDOWS && tool.includes('\\'))) {
|
||||
return '';
|
||||
if (tool.includes(path.sep)) {
|
||||
return [];
|
||||
}
|
||||
// build the list of directories
|
||||
//
|
||||
@ -217,21 +242,18 @@ function which(tool, check) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// return the first match
|
||||
// find all matches
|
||||
const matches = [];
|
||||
for (const directory of directories) {
|
||||
const filePath = yield ioUtil.tryGetExecutablePath(directory + path.sep + tool, extensions);
|
||||
const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions);
|
||||
if (filePath) {
|
||||
return filePath;
|
||||
matches.push(filePath);
|
||||
}
|
||||
}
|
||||
return '';
|
||||
}
|
||||
catch (err) {
|
||||
throw new Error(`which failed with message ${err.message}`);
|
||||
}
|
||||
return matches;
|
||||
});
|
||||
}
|
||||
exports.which = which;
|
||||
exports.findInPath = findInPath;
|
||||
function readCopyOptions(options) {
|
||||
const force = options.force == null ? true : options.force;
|
||||
const recursive = Boolean(options.recursive);
|
||||
|
2
node_modules/@actions/io/lib/io.js.map
generated
vendored
2
node_modules/@actions/io/lib/io.js.map
generated
vendored
File diff suppressed because one or more lines are too long
6
node_modules/@actions/io/package.json
generated
vendored
6
node_modules/@actions/io/package.json
generated
vendored
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "@actions/io",
|
||||
"version": "1.0.2",
|
||||
"version": "1.1.0",
|
||||
"description": "Actions io lib",
|
||||
"keywords": [
|
||||
"github",
|
||||
"actions",
|
||||
"io"
|
||||
],
|
||||
"homepage": "https://github.com/actions/toolkit/tree/master/packages/io",
|
||||
"homepage": "https://github.com/actions/toolkit/tree/main/packages/io",
|
||||
"license": "MIT",
|
||||
"main": "lib/io.js",
|
||||
"types": "lib/io.d.ts",
|
||||
@ -27,7 +27,7 @@
|
||||
"directory": "packages/io"
|
||||
},
|
||||
"scripts": {
|
||||
"audit-moderate": "npm install && npm audit --audit-level=moderate",
|
||||
"audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json",
|
||||
"test": "echo \"Error: run tests from root\" && exit 1",
|
||||
"tsc": "tsc"
|
||||
},
|
||||
|
6
node_modules/@types/node/README.md
generated
vendored
6
node_modules/@types/node/README.md
generated
vendored
@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://nodejs.org/).
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Sat, 27 Mar 2021 00:01:17 GMT
|
||||
* Last updated: Tue, 04 May 2021 23:03:11 GMT
|
||||
* Dependencies: none
|
||||
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
||||
* Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).
|
||||
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).
|
||||
|
5
node_modules/@types/node/assert.d.ts
generated
vendored
5
node_modules/@types/node/assert.d.ts
generated
vendored
@ -1,8 +1,3 @@
|
||||
declare module 'node:assert' {
|
||||
import assert = require('assert');
|
||||
export = assert;
|
||||
}
|
||||
|
||||
declare module 'assert' {
|
||||
/** An alias of `assert.ok()`. */
|
||||
function assert(value: any, message?: string | Error): asserts value;
|
||||
|
4
node_modules/@types/node/assert/strict.d.ts
generated
vendored
Executable file
4
node_modules/@types/node/assert/strict.d.ts
generated
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
declare module 'assert/strict' {
|
||||
import { strict } from 'assert';
|
||||
export = strict;
|
||||
}
|
7
node_modules/@types/node/async_hooks.d.ts
generated
vendored
7
node_modules/@types/node/async_hooks.d.ts
generated
vendored
@ -1,10 +1,3 @@
|
||||
/**
|
||||
* Async Hooks module: https://nodejs.org/api/async_hooks.html
|
||||
*/
|
||||
declare module 'node:async_hooks' {
|
||||
export * from 'async_hooks';
|
||||
}
|
||||
|
||||
/**
|
||||
* Async Hooks module: https://nodejs.org/api/async_hooks.html
|
||||
*/
|
||||
|
4
node_modules/@types/node/buffer.d.ts
generated
vendored
4
node_modules/@types/node/buffer.d.ts
generated
vendored
@ -1,7 +1,3 @@
|
||||
declare module 'node:buffer' {
|
||||
export * from 'buffer';
|
||||
}
|
||||
|
||||
declare module 'buffer' {
|
||||
export const INSPECT_MAX_BYTES: number;
|
||||
export const kMaxLength: number;
|
||||
|
12
node_modules/@types/node/child_process.d.ts
generated
vendored
12
node_modules/@types/node/child_process.d.ts
generated
vendored
@ -1,12 +1,8 @@
|
||||
declare module 'node:child_process' {
|
||||
export * from 'child_process';
|
||||
}
|
||||
|
||||
declare module 'child_process' {
|
||||
import { BaseEncodingOptions } from 'node:fs';
|
||||
import * as events from 'node:events';
|
||||
import * as net from 'node:net';
|
||||
import { Writable, Readable, Stream, Pipe } from 'node:stream';
|
||||
import { BaseEncodingOptions } from 'fs';
|
||||
import * as events from 'events';
|
||||
import * as net from 'net';
|
||||
import { Writable, Readable, Stream, Pipe } from 'stream';
|
||||
|
||||
type Serializable = string | object | number | boolean;
|
||||
type SendHandle = net.Socket | net.Server;
|
||||
|
10
node_modules/@types/node/cluster.d.ts
generated
vendored
10
node_modules/@types/node/cluster.d.ts
generated
vendored
@ -1,11 +1,7 @@
|
||||
declare module 'node:cluster' {
|
||||
export * from 'cluster';
|
||||
}
|
||||
|
||||
declare module 'cluster' {
|
||||
import * as child from 'node:child_process';
|
||||
import EventEmitter = require('node:events');
|
||||
import * as net from 'node:net';
|
||||
import * as child from 'child_process';
|
||||
import EventEmitter = require('events');
|
||||
import * as net from 'net';
|
||||
|
||||
// interfaces
|
||||
interface ClusterSettings {
|
||||
|
6
node_modules/@types/node/console.d.ts
generated
vendored
6
node_modules/@types/node/console.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:console' {
|
||||
export = console;
|
||||
}
|
||||
|
||||
declare module 'console' {
|
||||
import { InspectOptions } from 'node:util';
|
||||
import { InspectOptions } from 'util';
|
||||
|
||||
global {
|
||||
// This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build
|
||||
|
12
node_modules/@types/node/constants.d.ts
generated
vendored
12
node_modules/@types/node/constants.d.ts
generated
vendored
@ -1,14 +1,8 @@
|
||||
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
||||
declare module 'node:constants' {
|
||||
import exp = require('constants');
|
||||
export = exp;
|
||||
}
|
||||
|
||||
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
||||
declare module 'constants' {
|
||||
import { constants as osConstants, SignalConstants } from 'node:os';
|
||||
import { constants as cryptoConstants } from 'node:crypto';
|
||||
import { constants as fsConstants } from 'node:fs';
|
||||
import { constants as osConstants, SignalConstants } from 'os';
|
||||
import { constants as cryptoConstants } from 'crypto';
|
||||
import { constants as fsConstants } from 'fs';
|
||||
|
||||
const exp: typeof osConstants.errno &
|
||||
typeof osConstants.priority &
|
||||
|
116
node_modules/@types/node/crypto.d.ts
generated
vendored
116
node_modules/@types/node/crypto.d.ts
generated
vendored
@ -1,11 +1,36 @@
|
||||
declare module 'node:crypto' {
|
||||
export * from 'crypto';
|
||||
}
|
||||
|
||||
declare module 'crypto' {
|
||||
import * as stream from 'node:stream';
|
||||
import * as stream from 'stream';
|
||||
|
||||
interface Certificate {
|
||||
/**
|
||||
* @deprecated
|
||||
* @param spkac
|
||||
* @returns The challenge component of the `spkac` data structure,
|
||||
* which includes a public key and a challenge.
|
||||
*/
|
||||
exportChallenge(spkac: BinaryLike): Buffer;
|
||||
/**
|
||||
* @deprecated
|
||||
* @param spkac
|
||||
* @param encoding The encoding of the spkac string.
|
||||
* @returns The public key component of the `spkac` data structure,
|
||||
* which includes a public key and a challenge.
|
||||
*/
|
||||
exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer;
|
||||
/**
|
||||
* @deprecated
|
||||
* @param spkac
|
||||
* @returns `true` if the given `spkac` data structure is valid,
|
||||
* `false` otherwise.
|
||||
*/
|
||||
verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
|
||||
}
|
||||
const Certificate: Certificate & {
|
||||
/** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
|
||||
new(): Certificate;
|
||||
/** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
|
||||
(): Certificate;
|
||||
|
||||
/**
|
||||
* @param spkac
|
||||
* @returns The challenge component of the `spkac` data structure,
|
||||
@ -25,12 +50,6 @@ declare module 'crypto' {
|
||||
* `false` otherwise.
|
||||
*/
|
||||
verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
|
||||
}
|
||||
const Certificate: Certificate & {
|
||||
/** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
|
||||
new (): Certificate;
|
||||
/** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */
|
||||
(): Certificate;
|
||||
};
|
||||
|
||||
namespace constants {
|
||||
@ -1173,4 +1192,79 @@ declare module 'crypto' {
|
||||
* 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES).
|
||||
*/
|
||||
function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
|
||||
|
||||
type CipherMode = 'cbc' | 'ccm' | 'cfb' | 'ctr' | 'ecb' | 'gcm' | 'ocb' | 'ofb' | 'stream' | 'wrap' | 'xts';
|
||||
|
||||
interface CipherInfoOptions {
|
||||
/**
|
||||
* A test key length.
|
||||
*/
|
||||
keyLength?: number;
|
||||
/**
|
||||
* A test IV length.
|
||||
*/
|
||||
ivLength?: number;
|
||||
}
|
||||
|
||||
interface CipherInfo {
|
||||
/**
|
||||
* The name of the cipher.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The nid of the cipher.
|
||||
*/
|
||||
nid: number;
|
||||
/**
|
||||
* The block size of the cipher in bytes.
|
||||
* This property is omitted when mode is 'stream'.
|
||||
*/
|
||||
blockSize?: number;
|
||||
/**
|
||||
* The expected or default initialization vector length in bytes.
|
||||
* This property is omitted if the cipher does not use an initialization vector.
|
||||
*/
|
||||
ivLength?: number;
|
||||
/**
|
||||
* The expected or default key length in bytes.
|
||||
*/
|
||||
keyLength: number;
|
||||
/**
|
||||
* The cipher mode.
|
||||
*/
|
||||
mode: CipherMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about a given cipher.
|
||||
*
|
||||
* Some ciphers accept variable length keys and initialization vectors.
|
||||
* By default, the `crypto.getCipherInfo()` method will return the default
|
||||
* values for these ciphers. To test if a given key length or iv length
|
||||
* is acceptable for given cipher, use the `keyLenth` and `ivLenth` options.
|
||||
* If the given values are unacceptable, `undefined` will be returned.
|
||||
* @param nameOrNid The name or nid of the cipher to query.
|
||||
*/
|
||||
function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
|
||||
|
||||
/**
|
||||
* HKDF is a simple key derivation function defined in RFC 5869.
|
||||
* The given `key`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
|
||||
*
|
||||
* The supplied `callback` function is called with two arguments: `err` and `derivedKey`.
|
||||
* If an errors occurs while deriving the key, `err` will be set; otherwise `err` will be `null`.
|
||||
* The successfully generated `derivedKey` will be passed to the callback as an [`ArrayBuffer`][].
|
||||
* An error will be thrown if any of the input aguments specify invalid values or types.
|
||||
*/
|
||||
function hkdf(digest: string, key: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: ArrayBuffer) => any): void;
|
||||
|
||||
/**
|
||||
* Provides a synchronous HKDF key derivation function as defined in RFC 5869.
|
||||
* The given `key`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
|
||||
*
|
||||
* The successfully generated `derivedKey` will be returned as an [`ArrayBuffer`][].
|
||||
* An error will be thrown if any of the input aguments specify invalid values or types,
|
||||
* or if the derived key cannot be generated.
|
||||
*/
|
||||
function hkdfSync(digest: string, key: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number): ArrayBuffer;
|
||||
}
|
||||
|
10
node_modules/@types/node/dgram.d.ts
generated
vendored
10
node_modules/@types/node/dgram.d.ts
generated
vendored
@ -1,11 +1,7 @@
|
||||
declare module 'node:dgram' {
|
||||
export * from 'dgram';
|
||||
}
|
||||
|
||||
declare module 'dgram' {
|
||||
import { AddressInfo } from 'node:net';
|
||||
import * as dns from 'node:dns';
|
||||
import EventEmitter = require('node:events');
|
||||
import { AddressInfo } from 'net';
|
||||
import * as dns from 'dns';
|
||||
import EventEmitter = require('events');
|
||||
|
||||
interface RemoteInfo {
|
||||
address: string;
|
||||
|
304
node_modules/@types/node/dns.d.ts
generated
vendored
304
node_modules/@types/node/dns.d.ts
generated
vendored
@ -1,90 +1,97 @@
|
||||
declare module 'node:dns' {
|
||||
export * from 'dns';
|
||||
}
|
||||
|
||||
declare module 'dns' {
|
||||
import * as dnsPromises from "dns/promises";
|
||||
|
||||
// Supported getaddrinfo flags.
|
||||
const ADDRCONFIG: number;
|
||||
const V4MAPPED: number;
|
||||
export const ADDRCONFIG: number;
|
||||
export const V4MAPPED: number;
|
||||
/**
|
||||
* If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as
|
||||
* well as IPv4 mapped IPv6 addresses.
|
||||
*/
|
||||
const ALL: number;
|
||||
export const ALL: number;
|
||||
|
||||
interface LookupOptions {
|
||||
export interface LookupOptions {
|
||||
family?: number;
|
||||
hints?: number;
|
||||
all?: boolean;
|
||||
verbatim?: boolean;
|
||||
}
|
||||
|
||||
interface LookupOneOptions extends LookupOptions {
|
||||
export interface LookupOneOptions extends LookupOptions {
|
||||
all?: false;
|
||||
}
|
||||
|
||||
interface LookupAllOptions extends LookupOptions {
|
||||
export interface LookupAllOptions extends LookupOptions {
|
||||
all: true;
|
||||
}
|
||||
|
||||
interface LookupAddress {
|
||||
export interface LookupAddress {
|
||||
address: string;
|
||||
family: number;
|
||||
}
|
||||
|
||||
function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
||||
function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
||||
function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void;
|
||||
function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void;
|
||||
function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
||||
export function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
||||
export function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
||||
export function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void;
|
||||
export function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void;
|
||||
export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void;
|
||||
|
||||
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
||||
namespace lookup {
|
||||
export namespace lookup {
|
||||
function __promisify__(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
||||
function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise<LookupAddress>;
|
||||
function __promisify__(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
||||
}
|
||||
|
||||
function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void;
|
||||
export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void;
|
||||
|
||||
namespace lookupService {
|
||||
export namespace lookupService {
|
||||
function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
|
||||
}
|
||||
|
||||
interface ResolveOptions {
|
||||
export interface ResolveOptions {
|
||||
ttl: boolean;
|
||||
}
|
||||
|
||||
interface ResolveWithTtlOptions extends ResolveOptions {
|
||||
export interface ResolveWithTtlOptions extends ResolveOptions {
|
||||
ttl: true;
|
||||
}
|
||||
|
||||
interface RecordWithTtl {
|
||||
export interface RecordWithTtl {
|
||||
address: string;
|
||||
ttl: number;
|
||||
}
|
||||
|
||||
/** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */
|
||||
type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
|
||||
export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
|
||||
|
||||
interface AnyARecord extends RecordWithTtl {
|
||||
export interface AnyARecord extends RecordWithTtl {
|
||||
type: "A";
|
||||
}
|
||||
|
||||
interface AnyAaaaRecord extends RecordWithTtl {
|
||||
export interface AnyAaaaRecord extends RecordWithTtl {
|
||||
type: "AAAA";
|
||||
}
|
||||
|
||||
interface MxRecord {
|
||||
export interface CaaRecord {
|
||||
critial: number;
|
||||
issue?: string;
|
||||
issuewild?: string;
|
||||
iodef?: string;
|
||||
contactemail?: string;
|
||||
contactphone?: string;
|
||||
}
|
||||
|
||||
export interface MxRecord {
|
||||
priority: number;
|
||||
exchange: string;
|
||||
}
|
||||
|
||||
interface AnyMxRecord extends MxRecord {
|
||||
export interface AnyMxRecord extends MxRecord {
|
||||
type: "MX";
|
||||
}
|
||||
|
||||
interface NaptrRecord {
|
||||
export interface NaptrRecord {
|
||||
flags: string;
|
||||
service: string;
|
||||
regexp: string;
|
||||
@ -93,11 +100,11 @@ declare module 'dns' {
|
||||
preference: number;
|
||||
}
|
||||
|
||||
interface AnyNaptrRecord extends NaptrRecord {
|
||||
export interface AnyNaptrRecord extends NaptrRecord {
|
||||
type: "NAPTR";
|
||||
}
|
||||
|
||||
interface SoaRecord {
|
||||
export interface SoaRecord {
|
||||
nsname: string;
|
||||
hostmaster: string;
|
||||
serial: number;
|
||||
@ -107,42 +114,42 @@ declare module 'dns' {
|
||||
minttl: number;
|
||||
}
|
||||
|
||||
interface AnySoaRecord extends SoaRecord {
|
||||
export interface AnySoaRecord extends SoaRecord {
|
||||
type: "SOA";
|
||||
}
|
||||
|
||||
interface SrvRecord {
|
||||
export interface SrvRecord {
|
||||
priority: number;
|
||||
weight: number;
|
||||
port: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface AnySrvRecord extends SrvRecord {
|
||||
export interface AnySrvRecord extends SrvRecord {
|
||||
type: "SRV";
|
||||
}
|
||||
|
||||
interface AnyTxtRecord {
|
||||
export interface AnyTxtRecord {
|
||||
type: "TXT";
|
||||
entries: string[];
|
||||
}
|
||||
|
||||
interface AnyNsRecord {
|
||||
export interface AnyNsRecord {
|
||||
type: "NS";
|
||||
value: string;
|
||||
}
|
||||
|
||||
interface AnyPtrRecord {
|
||||
export interface AnyPtrRecord {
|
||||
type: "PTR";
|
||||
value: string;
|
||||
}
|
||||
|
||||
interface AnyCnameRecord {
|
||||
export interface AnyCnameRecord {
|
||||
type: "CNAME";
|
||||
value: string;
|
||||
}
|
||||
|
||||
type AnyRecord = AnyARecord |
|
||||
export type AnyRecord = AnyARecord |
|
||||
AnyAaaaRecord |
|
||||
AnyCnameRecord |
|
||||
AnyMxRecord |
|
||||
@ -153,26 +160,26 @@ declare module 'dns' {
|
||||
AnySrvRecord |
|
||||
AnyTxtRecord;
|
||||
|
||||
function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void;
|
||||
function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
||||
function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
||||
function resolve(
|
||||
export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "A", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "AAAA", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "ANY", callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "CNAME", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "MX", callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "NAPTR", callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "NS", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "PTR", callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "SOA", callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "SRV", callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
||||
export function resolve(hostname: string, rrtype: "TXT", callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
||||
export function resolve(
|
||||
hostname: string,
|
||||
rrtype: string,
|
||||
callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void,
|
||||
): void;
|
||||
|
||||
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
||||
namespace resolve {
|
||||
export namespace resolve {
|
||||
function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
|
||||
function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
||||
function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
||||
@ -183,109 +190,115 @@ declare module 'dns' {
|
||||
function __promisify__(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
||||
}
|
||||
|
||||
function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
||||
function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
||||
export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
||||
export function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
||||
|
||||
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
||||
namespace resolve4 {
|
||||
export namespace resolve4 {
|
||||
function __promisify__(hostname: string): Promise<string[]>;
|
||||
function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
||||
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
||||
}
|
||||
|
||||
function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
||||
function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
||||
export function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void;
|
||||
export function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void;
|
||||
|
||||
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
||||
namespace resolve6 {
|
||||
export namespace resolve6 {
|
||||
function __promisify__(hostname: string): Promise<string[]>;
|
||||
function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
||||
function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
||||
}
|
||||
|
||||
function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
namespace resolveCname {
|
||||
export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export namespace resolveCname {
|
||||
function __promisify__(hostname: string): Promise<string[]>;
|
||||
}
|
||||
|
||||
function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
||||
namespace resolveMx {
|
||||
export function resolveCaa(hostname: string, callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void): void;
|
||||
export namespace resolveCaa {
|
||||
function __promisify__(hostname: string): Promise<CaaRecord[]>;
|
||||
}
|
||||
|
||||
export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void;
|
||||
export namespace resolveMx {
|
||||
function __promisify__(hostname: string): Promise<MxRecord[]>;
|
||||
}
|
||||
|
||||
function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
||||
namespace resolveNaptr {
|
||||
export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void;
|
||||
export namespace resolveNaptr {
|
||||
function __promisify__(hostname: string): Promise<NaptrRecord[]>;
|
||||
}
|
||||
|
||||
function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
namespace resolveNs {
|
||||
export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export namespace resolveNs {
|
||||
function __promisify__(hostname: string): Promise<string[]>;
|
||||
}
|
||||
|
||||
function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
namespace resolvePtr {
|
||||
export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void;
|
||||
export namespace resolvePtr {
|
||||
function __promisify__(hostname: string): Promise<string[]>;
|
||||
}
|
||||
|
||||
function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void;
|
||||
namespace resolveSoa {
|
||||
export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void;
|
||||
export namespace resolveSoa {
|
||||
function __promisify__(hostname: string): Promise<SoaRecord>;
|
||||
}
|
||||
|
||||
function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
||||
namespace resolveSrv {
|
||||
export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void;
|
||||
export namespace resolveSrv {
|
||||
function __promisify__(hostname: string): Promise<SrvRecord[]>;
|
||||
}
|
||||
|
||||
function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
||||
namespace resolveTxt {
|
||||
export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void;
|
||||
export namespace resolveTxt {
|
||||
function __promisify__(hostname: string): Promise<string[][]>;
|
||||
}
|
||||
|
||||
function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
||||
namespace resolveAny {
|
||||
export function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void;
|
||||
export namespace resolveAny {
|
||||
function __promisify__(hostname: string): Promise<AnyRecord[]>;
|
||||
}
|
||||
|
||||
function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
||||
function setServers(servers: ReadonlyArray<string>): void;
|
||||
function getServers(): string[];
|
||||
export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void;
|
||||
export function setServers(servers: ReadonlyArray<string>): void;
|
||||
export function getServers(): string[];
|
||||
|
||||
// Error codes
|
||||
const NODATA: string;
|
||||
const FORMERR: string;
|
||||
const SERVFAIL: string;
|
||||
const NOTFOUND: string;
|
||||
const NOTIMP: string;
|
||||
const REFUSED: string;
|
||||
const BADQUERY: string;
|
||||
const BADNAME: string;
|
||||
const BADFAMILY: string;
|
||||
const BADRESP: string;
|
||||
const CONNREFUSED: string;
|
||||
const TIMEOUT: string;
|
||||
const EOF: string;
|
||||
const FILE: string;
|
||||
const NOMEM: string;
|
||||
const DESTRUCTION: string;
|
||||
const BADSTR: string;
|
||||
const BADFLAGS: string;
|
||||
const NONAME: string;
|
||||
const BADHINTS: string;
|
||||
const NOTINITIALIZED: string;
|
||||
const LOADIPHLPAPI: string;
|
||||
const ADDRGETNETWORKPARAMS: string;
|
||||
const CANCELLED: string;
|
||||
export const NODATA: string;
|
||||
export const FORMERR: string;
|
||||
export const SERVFAIL: string;
|
||||
export const NOTFOUND: string;
|
||||
export const NOTIMP: string;
|
||||
export const REFUSED: string;
|
||||
export const BADQUERY: string;
|
||||
export const BADNAME: string;
|
||||
export const BADFAMILY: string;
|
||||
export const BADRESP: string;
|
||||
export const CONNREFUSED: string;
|
||||
export const TIMEOUT: string;
|
||||
export const EOF: string;
|
||||
export const FILE: string;
|
||||
export const NOMEM: string;
|
||||
export const DESTRUCTION: string;
|
||||
export const BADSTR: string;
|
||||
export const BADFLAGS: string;
|
||||
export const NONAME: string;
|
||||
export const BADHINTS: string;
|
||||
export const NOTINITIALIZED: string;
|
||||
export const LOADIPHLPAPI: string;
|
||||
export const ADDRGETNETWORKPARAMS: string;
|
||||
export const CANCELLED: string;
|
||||
|
||||
interface ResolverOptions {
|
||||
export interface ResolverOptions {
|
||||
timeout?: number;
|
||||
}
|
||||
|
||||
class Resolver {
|
||||
export class Resolver {
|
||||
constructor(options?: ResolverOptions);
|
||||
|
||||
cancel(): void;
|
||||
getServers: typeof getServers;
|
||||
resolve: typeof resolve;
|
||||
@ -305,80 +318,5 @@ declare module 'dns' {
|
||||
setServers: typeof setServers;
|
||||
}
|
||||
|
||||
namespace promises {
|
||||
function getServers(): string[];
|
||||
|
||||
function lookup(hostname: string, family: number): Promise<LookupAddress>;
|
||||
function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
|
||||
function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
||||
function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
||||
function lookup(hostname: string): Promise<LookupAddress>;
|
||||
|
||||
function lookupService(address: string, port: number): Promise<{ hostname: string, service: string }>;
|
||||
|
||||
function resolve(hostname: string): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "NS"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
||||
function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
||||
function resolve(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
||||
|
||||
function resolve4(hostname: string): Promise<string[]>;
|
||||
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
||||
function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
||||
|
||||
function resolve6(hostname: string): Promise<string[]>;
|
||||
function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
||||
function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
||||
|
||||
function resolveAny(hostname: string): Promise<AnyRecord[]>;
|
||||
|
||||
function resolveCname(hostname: string): Promise<string[]>;
|
||||
|
||||
function resolveMx(hostname: string): Promise<MxRecord[]>;
|
||||
|
||||
function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
|
||||
|
||||
function resolveNs(hostname: string): Promise<string[]>;
|
||||
|
||||
function resolvePtr(hostname: string): Promise<string[]>;
|
||||
|
||||
function resolveSoa(hostname: string): Promise<SoaRecord>;
|
||||
|
||||
function resolveSrv(hostname: string): Promise<SrvRecord[]>;
|
||||
|
||||
function resolveTxt(hostname: string): Promise<string[][]>;
|
||||
|
||||
function reverse(ip: string): Promise<string[]>;
|
||||
|
||||
function setServers(servers: ReadonlyArray<string>): void;
|
||||
|
||||
class Resolver {
|
||||
constructor(options?: ResolverOptions);
|
||||
cancel(): void;
|
||||
getServers: typeof getServers;
|
||||
resolve: typeof resolve;
|
||||
resolve4: typeof resolve4;
|
||||
resolve6: typeof resolve6;
|
||||
resolveAny: typeof resolveAny;
|
||||
resolveCname: typeof resolveCname;
|
||||
resolveMx: typeof resolveMx;
|
||||
resolveNaptr: typeof resolveNaptr;
|
||||
resolveNs: typeof resolveNs;
|
||||
resolvePtr: typeof resolvePtr;
|
||||
resolveSoa: typeof resolveSoa;
|
||||
resolveSrv: typeof resolveSrv;
|
||||
resolveTxt: typeof resolveTxt;
|
||||
reverse: typeof reverse;
|
||||
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
||||
setServers: typeof setServers;
|
||||
}
|
||||
}
|
||||
export { dnsPromises as promises };
|
||||
}
|
||||
|
97
node_modules/@types/node/dns/promises.d.ts
generated
vendored
Executable file
97
node_modules/@types/node/dns/promises.d.ts
generated
vendored
Executable file
@ -0,0 +1,97 @@
|
||||
declare module "dns/promises" {
|
||||
import {
|
||||
LookupAddress,
|
||||
LookupOneOptions,
|
||||
LookupAllOptions,
|
||||
LookupOptions,
|
||||
AnyRecord,
|
||||
CaaRecord,
|
||||
MxRecord,
|
||||
NaptrRecord,
|
||||
SoaRecord,
|
||||
SrvRecord,
|
||||
ResolveWithTtlOptions,
|
||||
RecordWithTtl,
|
||||
ResolveOptions,
|
||||
ResolverOptions,
|
||||
} from "dns";
|
||||
|
||||
function getServers(): string[];
|
||||
|
||||
function lookup(hostname: string, family: number): Promise<LookupAddress>;
|
||||
function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
|
||||
function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
||||
function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
||||
function lookup(hostname: string): Promise<LookupAddress>;
|
||||
|
||||
function lookupService(address: string, port: number): Promise<{ hostname: string, service: string }>;
|
||||
|
||||
function resolve(hostname: string): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "NS"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>;
|
||||
function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
||||
function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
||||
function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
||||
function resolve(hostname: string, rrtype: string): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
||||
|
||||
function resolve4(hostname: string): Promise<string[]>;
|
||||
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
||||
function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
||||
|
||||
function resolve6(hostname: string): Promise<string[]>;
|
||||
function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
||||
function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
||||
|
||||
function resolveAny(hostname: string): Promise<AnyRecord[]>;
|
||||
|
||||
function resolveCaa(hostname: string): Promise<CaaRecord[]>;
|
||||
|
||||
function resolveCname(hostname: string): Promise<string[]>;
|
||||
|
||||
function resolveMx(hostname: string): Promise<MxRecord[]>;
|
||||
|
||||
function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
|
||||
|
||||
function resolveNs(hostname: string): Promise<string[]>;
|
||||
|
||||
function resolvePtr(hostname: string): Promise<string[]>;
|
||||
|
||||
function resolveSoa(hostname: string): Promise<SoaRecord>;
|
||||
|
||||
function resolveSrv(hostname: string): Promise<SrvRecord[]>;
|
||||
|
||||
function resolveTxt(hostname: string): Promise<string[][]>;
|
||||
|
||||
function reverse(ip: string): Promise<string[]>;
|
||||
|
||||
function setServers(servers: ReadonlyArray<string>): void;
|
||||
|
||||
class Resolver {
|
||||
constructor(options?: ResolverOptions);
|
||||
|
||||
cancel(): void;
|
||||
getServers: typeof getServers;
|
||||
resolve: typeof resolve;
|
||||
resolve4: typeof resolve4;
|
||||
resolve6: typeof resolve6;
|
||||
resolveAny: typeof resolveAny;
|
||||
resolveCname: typeof resolveCname;
|
||||
resolveMx: typeof resolveMx;
|
||||
resolveNaptr: typeof resolveNaptr;
|
||||
resolveNs: typeof resolveNs;
|
||||
resolvePtr: typeof resolvePtr;
|
||||
resolveSoa: typeof resolveSoa;
|
||||
resolveSrv: typeof resolveSrv;
|
||||
resolveTxt: typeof resolveTxt;
|
||||
reverse: typeof reverse;
|
||||
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
||||
setServers: typeof setServers;
|
||||
}
|
||||
}
|
6
node_modules/@types/node/domain.d.ts
generated
vendored
6
node_modules/@types/node/domain.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:domain' {
|
||||
export * from 'domain';
|
||||
}
|
||||
|
||||
declare module 'domain' {
|
||||
import EventEmitter = require('node:events');
|
||||
import EventEmitter = require('events');
|
||||
|
||||
global {
|
||||
namespace NodeJS {
|
||||
|
15
node_modules/@types/node/events.d.ts
generated
vendored
15
node_modules/@types/node/events.d.ts
generated
vendored
@ -1,8 +1,3 @@
|
||||
declare module 'node:events' {
|
||||
import EventEmitter = require('events');
|
||||
export = EventEmitter;
|
||||
}
|
||||
|
||||
declare module 'events' {
|
||||
interface EventEmitterOptions {
|
||||
/**
|
||||
@ -19,13 +14,17 @@ declare module 'events' {
|
||||
addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any;
|
||||
}
|
||||
|
||||
interface StaticEventEmitterOptions {
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
interface EventEmitter extends NodeJS.EventEmitter {}
|
||||
class EventEmitter {
|
||||
constructor(options?: EventEmitterOptions);
|
||||
|
||||
static once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>;
|
||||
static once(emitter: DOMEventTarget, event: string): Promise<any[]>;
|
||||
static on(emitter: NodeJS.EventEmitter, event: string): AsyncIterableIterator<any>;
|
||||
static once(emitter: NodeEventTarget, event: string | symbol, options?: StaticEventEmitterOptions): Promise<any[]>;
|
||||
static once(emitter: DOMEventTarget, event: string, options?: StaticEventEmitterOptions): Promise<any[]>;
|
||||
static on(emitter: NodeJS.EventEmitter, event: string, options?: StaticEventEmitterOptions): AsyncIterableIterator<any>;
|
||||
|
||||
/** @deprecated since v4.0.0 */
|
||||
static listenerCount(emitter: NodeJS.EventEmitter, event: string | symbol): number;
|
||||
|
15
node_modules/@types/node/fs.d.ts
generated
vendored
15
node_modules/@types/node/fs.d.ts
generated
vendored
@ -1,12 +1,8 @@
|
||||
declare module 'node:fs' {
|
||||
export * from 'fs';
|
||||
}
|
||||
|
||||
declare module 'fs' {
|
||||
import * as stream from 'node:stream';
|
||||
import EventEmitter = require('node:events');
|
||||
import { URL } from 'node:url';
|
||||
import * as promises from 'node:fs/promises';
|
||||
import * as stream from 'stream';
|
||||
import EventEmitter = require('events');
|
||||
import { URL } from 'url';
|
||||
import * as promises from 'fs/promises';
|
||||
|
||||
export { promises };
|
||||
/**
|
||||
@ -883,8 +879,7 @@ declare module 'fs' {
|
||||
maxRetries?: number;
|
||||
/**
|
||||
* @deprecated since v14.14.0 In future versions of Node.js,
|
||||
* `fs.rmdir(path, { recursive: true })` will throw on nonexistent
|
||||
* paths, or when given a file as a target.
|
||||
* `fs.rmdir(path, { recursive: true })` will throw if `path` does not exist or is a file.
|
||||
* Use `fs.rm(path, { recursive: true, force: true })` instead.
|
||||
*
|
||||
* If `true`, perform a recursive directory removal. In
|
||||
|
6
node_modules/@types/node/fs/promises.d.ts
generated
vendored
6
node_modules/@types/node/fs/promises.d.ts
generated
vendored
@ -1,8 +1,4 @@
|
||||
declare module 'fs/promises' {
|
||||
export * from 'node:fs/promises';
|
||||
}
|
||||
|
||||
declare module 'node:fs/promises' {
|
||||
import {
|
||||
Stats,
|
||||
BigIntStats,
|
||||
@ -20,7 +16,7 @@ declare module 'node:fs/promises' {
|
||||
BufferEncodingOption,
|
||||
OpenMode,
|
||||
Mode,
|
||||
} from 'node:fs';
|
||||
} from 'fs';
|
||||
|
||||
interface FileHandle {
|
||||
/**
|
||||
|
39
node_modules/@types/node/globals.d.ts
generated
vendored
39
node_modules/@types/node/globals.d.ts
generated
vendored
@ -71,7 +71,7 @@ declare var module: NodeModule;
|
||||
declare var exports: any;
|
||||
|
||||
// Buffer class
|
||||
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
|
||||
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
|
||||
|
||||
type WithImplicitCoercion<T> = T | { valueOf(): T };
|
||||
|
||||
@ -311,6 +311,39 @@ declare class Buffer extends Uint8Array {
|
||||
values(): IterableIterator<number>;
|
||||
}
|
||||
|
||||
//#region borrowed
|
||||
// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
|
||||
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
||||
interface AbortController {
|
||||
/**
|
||||
* Returns the AbortSignal object associated with this object.
|
||||
*/
|
||||
readonly signal: AbortSignal;
|
||||
/**
|
||||
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
||||
*/
|
||||
abort(): void;
|
||||
}
|
||||
|
||||
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
||||
interface AbortSignal {
|
||||
/**
|
||||
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
||||
*/
|
||||
readonly aborted: boolean;
|
||||
}
|
||||
|
||||
declare var AbortController: {
|
||||
prototype: AbortController;
|
||||
new(): AbortController;
|
||||
};
|
||||
|
||||
declare var AbortSignal: {
|
||||
prototype: AbortSignal;
|
||||
new(): AbortSignal;
|
||||
};
|
||||
//#endregion borrowed
|
||||
|
||||
/*----------------------------------------------*
|
||||
* *
|
||||
* GLOBAL INTERFACES *
|
||||
@ -340,7 +373,7 @@ declare namespace NodeJS {
|
||||
* Specifies the maximum number of characters to
|
||||
* include when formatting. Set to `null` or `Infinity` to show all elements.
|
||||
* Set to `0` or negative to show no characters.
|
||||
* @default Infinity
|
||||
* @default 10000
|
||||
*/
|
||||
maxStringLength?: number | null;
|
||||
breakLength?: number;
|
||||
@ -466,6 +499,8 @@ declare namespace NodeJS {
|
||||
interface ReadWriteStream extends ReadableStream, WritableStream { }
|
||||
|
||||
interface Global {
|
||||
AbortController: typeof AbortController;
|
||||
AbortSignal: typeof AbortSignal;
|
||||
Array: typeof Array;
|
||||
ArrayBuffer: typeof ArrayBuffer;
|
||||
Boolean: typeof Boolean;
|
||||
|
11
node_modules/@types/node/http.d.ts
generated
vendored
11
node_modules/@types/node/http.d.ts
generated
vendored
@ -1,11 +1,7 @@
|
||||
declare module 'node:http' {
|
||||
export * from 'http';
|
||||
}
|
||||
|
||||
declare module 'http' {
|
||||
import * as stream from 'node:stream';
|
||||
import { URL } from 'node:url';
|
||||
import { Socket, Server as NetServer } from 'node:net';
|
||||
import * as stream from 'stream';
|
||||
import { URL } from 'url';
|
||||
import { Socket, Server as NetServer } from 'net';
|
||||
|
||||
// incoming headers will never contain number
|
||||
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
||||
@ -36,6 +32,7 @@ declare module 'http' {
|
||||
'content-type'?: string;
|
||||
'cookie'?: string;
|
||||
'date'?: string;
|
||||
'etag'?: string;
|
||||
'expect'?: string;
|
||||
'expires'?: string;
|
||||
'forwarded'?: string;
|
||||
|
26
node_modules/@types/node/http2.d.ts
generated
vendored
26
node_modules/@types/node/http2.d.ts
generated
vendored
@ -1,22 +1,18 @@
|
||||
declare module 'node:http2' {
|
||||
export * from 'http2';
|
||||
}
|
||||
|
||||
declare module 'http2' {
|
||||
import EventEmitter = require('node:events');
|
||||
import * as fs from 'node:fs';
|
||||
import * as net from 'node:net';
|
||||
import * as stream from 'node:stream';
|
||||
import * as tls from 'node:tls';
|
||||
import * as url from 'node:url';
|
||||
import EventEmitter = require('events');
|
||||
import * as fs from 'fs';
|
||||
import * as net from 'net';
|
||||
import * as stream from 'stream';
|
||||
import * as tls from 'tls';
|
||||
import * as url from 'url';
|
||||
|
||||
import {
|
||||
IncomingHttpHeaders as Http1IncomingHttpHeaders,
|
||||
OutgoingHttpHeaders,
|
||||
IncomingMessage,
|
||||
ServerResponse,
|
||||
} from 'node:http';
|
||||
export { OutgoingHttpHeaders } from 'node:http';
|
||||
} from 'http';
|
||||
export { OutgoingHttpHeaders } from 'http';
|
||||
|
||||
export interface IncomingHttpStatusHeader {
|
||||
":status"?: number;
|
||||
@ -943,6 +939,12 @@ declare module 'http2' {
|
||||
const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* This symbol can be set as a property on the HTTP/2 headers object with
|
||||
* an array value in order to provide a list of headers considered sensitive.
|
||||
*/
|
||||
export const sensitiveHeaders: symbol;
|
||||
|
||||
export function getDefaultSettings(): Settings;
|
||||
export function getPackedSettings(settings: Settings): Buffer;
|
||||
export function getUnpackedSettings(buf: Uint8Array): Settings;
|
||||
|
10
node_modules/@types/node/https.d.ts
generated
vendored
10
node_modules/@types/node/https.d.ts
generated
vendored
@ -1,11 +1,7 @@
|
||||
declare module 'node:https' {
|
||||
export * from 'https';
|
||||
}
|
||||
|
||||
declare module 'https' {
|
||||
import * as tls from 'node:tls';
|
||||
import * as http from 'node:http';
|
||||
import { URL } from 'node:url';
|
||||
import * as tls from 'tls';
|
||||
import * as http from 'http';
|
||||
import { URL } from 'url';
|
||||
|
||||
type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
|
||||
|
||||
|
3
node_modules/@types/node/index.d.ts
generated
vendored
3
node_modules/@types/node/index.d.ts
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for non-npm package Node.js 14.14
|
||||
// Type definitions for non-npm package Node.js 15.0
|
||||
// Project: http://nodejs.org/
|
||||
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
||||
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
||||
@ -6,7 +6,6 @@
|
||||
// Alvis HT Tang <https://github.com/alvis>
|
||||
// Andrew Makarov <https://github.com/r3nya>
|
||||
// Benjamin Toueg <https://github.com/btoueg>
|
||||
// Bruno Scheufler <https://github.com/brunoscheufler>
|
||||
// Chigozirim C. <https://github.com/smac89>
|
||||
// David Junger <https://github.com/touffy>
|
||||
// Deividas Bakanas <https://github.com/DeividasBakanas>
|
||||
|
9
node_modules/@types/node/inspector.d.ts
generated
vendored
9
node_modules/@types/node/inspector.d.ts
generated
vendored
@ -7,18 +7,11 @@
|
||||
|
||||
// tslint:disable:max-line-length
|
||||
|
||||
/**
|
||||
* The inspector module provides an API for interacting with the V8 inspector.
|
||||
*/
|
||||
declare module 'node:inspector' {
|
||||
export * from 'inspector';
|
||||
}
|
||||
|
||||
/**
|
||||
* The inspector module provides an API for interacting with the V8 inspector.
|
||||
*/
|
||||
declare module 'inspector' {
|
||||
import EventEmitter = require('node:events');
|
||||
import EventEmitter = require('events');
|
||||
|
||||
interface InspectorNotification<T> {
|
||||
method: string;
|
||||
|
7
node_modules/@types/node/module.d.ts
generated
vendored
7
node_modules/@types/node/module.d.ts
generated
vendored
@ -1,10 +1,5 @@
|
||||
declare module 'node:module' {
|
||||
import Module = require('module');
|
||||
export = Module;
|
||||
}
|
||||
|
||||
declare module 'module' {
|
||||
import { URL } from 'node:url';
|
||||
import { URL } from 'url';
|
||||
namespace Module {
|
||||
/**
|
||||
* Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports.
|
||||
|
49
node_modules/@types/node/net.d.ts
generated
vendored
49
node_modules/@types/node/net.d.ts
generated
vendored
@ -1,11 +1,7 @@
|
||||
declare module 'node:net' {
|
||||
export * from 'net';
|
||||
}
|
||||
|
||||
declare module 'net' {
|
||||
import * as stream from 'node:stream';
|
||||
import EventEmitter = require('node:events');
|
||||
import * as dns from 'node:dns';
|
||||
import * as stream from 'stream';
|
||||
import EventEmitter = require('events');
|
||||
import * as dns from 'dns';
|
||||
|
||||
type LookupFunction = (
|
||||
hostname: string,
|
||||
@ -265,6 +261,45 @@ declare module 'net' {
|
||||
prependOnceListener(event: "listening", listener: () => void): this;
|
||||
}
|
||||
|
||||
type IPVersion = 'ipv4' | 'ipv6';
|
||||
|
||||
class BlockList {
|
||||
/**
|
||||
* Adds a rule to block the given IP address.
|
||||
*
|
||||
* @param address An IPv4 or IPv6 address.
|
||||
* @param type Either 'ipv4' or 'ipv6'. Default: 'ipv4'.
|
||||
*/
|
||||
addAddress(address: string, type?: IPVersion): void;
|
||||
|
||||
/**
|
||||
* Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).
|
||||
*
|
||||
* @param start The starting IPv4 or IPv6 address in the range.
|
||||
* @param end The ending IPv4 or IPv6 address in the range.
|
||||
* @param type Either 'ipv4' or 'ipv6'. Default: 'ipv4'.
|
||||
*/
|
||||
addRange(start: string, end: string, type?: IPVersion): void;
|
||||
|
||||
/**
|
||||
* Adds a rule to block a range of IP addresses specified as a subnet mask.
|
||||
*
|
||||
* @param net The network IPv4 or IPv6 address.
|
||||
* @param prefix The number of CIDR prefix bits.
|
||||
* For IPv4, this must be a value between 0 and 32. For IPv6, this must be between 0 and 128.
|
||||
* @param type Either 'ipv4' or 'ipv6'. Default: 'ipv4'.
|
||||
*/
|
||||
addSubnet(net: string, prefix: number, type?: IPVersion): void;
|
||||
|
||||
/**
|
||||
* Returns `true` if the given IP address matches any of the rules added to the `BlockList`.
|
||||
*
|
||||
* @param address The IP address to check
|
||||
* @param type Either 'ipv4' or 'ipv6'. Default: 'ipv4'.
|
||||
*/
|
||||
check(address: string, type?: IPVersion): boolean;
|
||||
}
|
||||
|
||||
interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
|
||||
timeout?: number;
|
||||
}
|
||||
|
4
node_modules/@types/node/os.d.ts
generated
vendored
4
node_modules/@types/node/os.d.ts
generated
vendored
@ -1,7 +1,3 @@
|
||||
declare module 'node:os' {
|
||||
export * from 'os';
|
||||
}
|
||||
|
||||
declare module 'os' {
|
||||
interface CpuInfo {
|
||||
model: string;
|
||||
|
9
node_modules/@types/node/package.json
generated
vendored
9
node_modules/@types/node/package.json
generated
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@types/node",
|
||||
"version": "14.14.37",
|
||||
"version": "15.0.2",
|
||||
"description": "TypeScript definitions for Node.js",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
@ -34,11 +34,6 @@
|
||||
"url": "https://github.com/btoueg",
|
||||
"githubUsername": "btoueg"
|
||||
},
|
||||
{
|
||||
"name": "Bruno Scheufler",
|
||||
"url": "https://github.com/brunoscheufler",
|
||||
"githubUsername": "brunoscheufler"
|
||||
},
|
||||
{
|
||||
"name": "Chigozirim C.",
|
||||
"url": "https://github.com/smac89",
|
||||
@ -231,6 +226,6 @@
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "f02c816ba8df5df4174feb1c57ce0d4ec89ba3eb1ee63a224ae7143e07aee695",
|
||||
"typesPublisherContentHash": "b9f4badc74a3b8d0d3d6d7d094196c4851f8a80a2c34e8ba50f75d7de65c3c63",
|
||||
"typeScriptVersion": "3.5"
|
||||
}
|
5
node_modules/@types/node/path.d.ts
generated
vendored
5
node_modules/@types/node/path.d.ts
generated
vendored
@ -1,8 +1,3 @@
|
||||
declare module 'node:path' {
|
||||
import path = require('path');
|
||||
export = path;
|
||||
}
|
||||
|
||||
declare module 'path' {
|
||||
namespace path {
|
||||
/**
|
||||
|
6
node_modules/@types/node/perf_hooks.d.ts
generated
vendored
6
node_modules/@types/node/perf_hooks.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:perf_hooks' {
|
||||
export * from 'perf_hooks';
|
||||
}
|
||||
|
||||
declare module 'perf_hooks' {
|
||||
import { AsyncResource } from 'node:async_hooks';
|
||||
import { AsyncResource } from 'async_hooks';
|
||||
|
||||
type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
|
||||
|
||||
|
49
node_modules/@types/node/process.d.ts
generated
vendored
49
node_modules/@types/node/process.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:process' {
|
||||
export = process;
|
||||
}
|
||||
|
||||
declare module 'process' {
|
||||
import * as tty from 'node:tty';
|
||||
import * as tty from 'tty';
|
||||
|
||||
global {
|
||||
var process: NodeJS.Process;
|
||||
@ -175,6 +171,32 @@ declare module 'process' {
|
||||
voluntaryContextSwitches: number;
|
||||
}
|
||||
|
||||
interface EmitWarningOptions {
|
||||
/**
|
||||
* When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
|
||||
*
|
||||
* @default 'Warning'
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* A unique identifier for the warning instance being emitted.
|
||||
*/
|
||||
code?: string;
|
||||
|
||||
/**
|
||||
* When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
|
||||
*
|
||||
* @default process.emitWarning
|
||||
*/
|
||||
ctor?: Function;
|
||||
|
||||
/**
|
||||
* Additional text to include with the error.
|
||||
*/
|
||||
detail?: string;
|
||||
}
|
||||
|
||||
interface Process extends EventEmitter {
|
||||
/**
|
||||
* Can also be a tty.WriteStream, not typed due to limitations.
|
||||
@ -200,7 +222,22 @@ declare module 'process' {
|
||||
chdir(directory: string): void;
|
||||
cwd(): string;
|
||||
debugPort: number;
|
||||
emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
|
||||
|
||||
/**
|
||||
* The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
|
||||
*
|
||||
* These can be listened for by adding a handler to the `'warning'` event.
|
||||
*
|
||||
* @param warning The warning to emit.
|
||||
* @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
|
||||
* @param code A unique identifier for the warning instance being emitted.
|
||||
* @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
|
||||
*/
|
||||
emitWarning(warning: string | Error, ctor?: Function): void;
|
||||
emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
|
||||
emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
|
||||
emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
|
||||
|
||||
env: ProcessEnv;
|
||||
exit(code?: number): never;
|
||||
exitCode?: number;
|
||||
|
11
node_modules/@types/node/punycode.d.ts
generated
vendored
11
node_modules/@types/node/punycode.d.ts
generated
vendored
@ -1,14 +1,3 @@
|
||||
/**
|
||||
* @deprecated since v7.0.0
|
||||
* The version of the punycode module bundled in Node.js is being deprecated.
|
||||
* In a future major version of Node.js this module will be removed.
|
||||
* Users currently depending on the punycode module should switch to using
|
||||
* the userland-provided Punycode.js module instead.
|
||||
*/
|
||||
declare module 'node:punycode' {
|
||||
export * from 'punycode';
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since v7.0.0
|
||||
* The version of the punycode module bundled in Node.js is being deprecated.
|
||||
|
4
node_modules/@types/node/querystring.d.ts
generated
vendored
4
node_modules/@types/node/querystring.d.ts
generated
vendored
@ -1,7 +1,3 @@
|
||||
declare module 'node:querystring' {
|
||||
export * from 'querystring';
|
||||
}
|
||||
|
||||
declare module 'querystring' {
|
||||
interface StringifyOptions {
|
||||
encodeURIComponent?: (str: string) => string;
|
||||
|
6
node_modules/@types/node/readline.d.ts
generated
vendored
6
node_modules/@types/node/readline.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:readline' {
|
||||
export * from 'readline';
|
||||
}
|
||||
|
||||
declare module 'readline' {
|
||||
import EventEmitter = require('node:events');
|
||||
import EventEmitter = require('events');
|
||||
|
||||
interface Key {
|
||||
sequence?: string;
|
||||
|
10
node_modules/@types/node/repl.d.ts
generated
vendored
10
node_modules/@types/node/repl.d.ts
generated
vendored
@ -1,11 +1,7 @@
|
||||
declare module 'node:repl' {
|
||||
export * from 'repl';
|
||||
}
|
||||
|
||||
declare module 'repl' {
|
||||
import { Interface, Completer, AsyncCompleter } from 'node:readline';
|
||||
import { Context } from 'node:vm';
|
||||
import { InspectOptions } from 'node:util';
|
||||
import { Interface, Completer, AsyncCompleter } from 'readline';
|
||||
import { Context } from 'vm';
|
||||
import { InspectOptions } from 'util';
|
||||
|
||||
interface ReplOptions {
|
||||
/**
|
||||
|
170
node_modules/@types/node/stream.d.ts
generated
vendored
170
node_modules/@types/node/stream.d.ts
generated
vendored
@ -1,10 +1,6 @@
|
||||
declare module 'node:stream' {
|
||||
import Stream = require('stream');
|
||||
export = Stream;
|
||||
}
|
||||
|
||||
declare module 'stream' {
|
||||
import EventEmitter = require('node:events');
|
||||
import EventEmitter = require('events');
|
||||
import * as streamPromises from "stream/promises";
|
||||
|
||||
class internal extends EventEmitter {
|
||||
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
|
||||
@ -20,6 +16,7 @@ declare module 'stream' {
|
||||
encoding?: BufferEncoding;
|
||||
objectMode?: boolean;
|
||||
read?(this: Readable, size: number): void;
|
||||
construct?(this: Readable, callback: (error?: Error | null) => void): void;
|
||||
destroy?(this: Readable, error: Error | null, callback: (error: Error | null) => void): void;
|
||||
autoDestroy?: boolean;
|
||||
}
|
||||
@ -39,6 +36,7 @@ declare module 'stream' {
|
||||
readonly readableObjectMode: boolean;
|
||||
destroyed: boolean;
|
||||
constructor(opts?: ReadableOptions);
|
||||
_construct?(callback: (error?: Error | null) => void): void;
|
||||
_read(size: number): void;
|
||||
read(size?: number): any;
|
||||
setEncoding(encoding: BufferEncoding): this;
|
||||
@ -135,6 +133,7 @@ declare module 'stream' {
|
||||
defaultEncoding?: BufferEncoding;
|
||||
objectMode?: boolean;
|
||||
emitClose?: boolean;
|
||||
construct?(this: Writable, callback: (error?: Error | null) => void): void;
|
||||
write?(this: Writable, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
||||
writev?(this: Writable, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
||||
destroy?(this: Writable, error: Error | null, callback: (error: Error | null) => void): void;
|
||||
@ -154,6 +153,7 @@ declare module 'stream' {
|
||||
constructor(opts?: WritableOptions);
|
||||
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
||||
_writev?(chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
||||
_construct?(callback: (error?: Error | null) => void): void;
|
||||
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
||||
_final(callback: (error?: Error | null) => void): void;
|
||||
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
||||
@ -240,6 +240,7 @@ declare module 'stream' {
|
||||
readableHighWaterMark?: number;
|
||||
writableHighWaterMark?: number;
|
||||
writableCorked?: number;
|
||||
construct?(this: Duplex, callback: (error?: Error | null) => void): void;
|
||||
read?(this: Duplex, size: number): void;
|
||||
write?(this: Duplex, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
||||
writev?(this: Duplex, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
||||
@ -274,6 +275,7 @@ declare module 'stream' {
|
||||
type TransformCallback = (error?: Error | null, data?: any) => void;
|
||||
|
||||
interface TransformOptions extends DuplexOptions {
|
||||
construct?(this: Transform, callback: (error?: Error | null) => void): void;
|
||||
read?(this: Transform, size: number): void;
|
||||
write?(this: Transform, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
||||
writev?(this: Transform, chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
|
||||
@ -302,23 +304,79 @@ declare module 'stream' {
|
||||
function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;
|
||||
}
|
||||
|
||||
function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
|
||||
function pipeline<T extends NodeJS.WritableStream>(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: T, callback?: (err: NodeJS.ErrnoException | null) => void): T;
|
||||
function pipeline<T extends NodeJS.WritableStream>(
|
||||
stream1: NodeJS.ReadableStream,
|
||||
stream2: NodeJS.ReadWriteStream,
|
||||
stream3: NodeJS.ReadWriteStream,
|
||||
stream4: T,
|
||||
callback?: (err: NodeJS.ErrnoException | null) => void,
|
||||
): T;
|
||||
function pipeline<T extends NodeJS.WritableStream>(
|
||||
stream1: NodeJS.ReadableStream,
|
||||
stream2: NodeJS.ReadWriteStream,
|
||||
stream3: NodeJS.ReadWriteStream,
|
||||
stream4: NodeJS.ReadWriteStream,
|
||||
stream5: T,
|
||||
callback?: (err: NodeJS.ErrnoException | null) => void,
|
||||
): T;
|
||||
type PipelineSourceFunction<T> = () => Iterable<T> | AsyncIterable<T>;
|
||||
type PipelineSource<T> = Iterable<T> | AsyncIterable<T> | NodeJS.ReadableStream | PipelineSourceFunction<T>;
|
||||
type PipelineTransform<S extends PipelineTransformSource<any>, U> =
|
||||
NodeJS.ReadWriteStream |
|
||||
((source: S extends (...args: any[]) => Iterable<infer ST> | AsyncIterable<infer ST> ?
|
||||
AsyncIterable<ST> : S) => AsyncIterable<U>);
|
||||
type PipelineTransformSource<T> = PipelineSource<T> | PipelineTransform<any, T>;
|
||||
|
||||
type PipelineDestinationIterableFunction<T> = (source: AsyncIterable<T>) => AsyncIterable<any>;
|
||||
type PipelineDestinationPromiseFunction<T, P> = (source: AsyncIterable<T>) => Promise<P>;
|
||||
|
||||
type PipelineDestination<S extends PipelineTransformSource<any>, P> =
|
||||
S extends PipelineTransformSource<infer ST> ?
|
||||
(NodeJS.WritableStream | PipelineDestinationIterableFunction<ST> | PipelineDestinationPromiseFunction<ST, P>) : never;
|
||||
type PipelineCallback<S extends PipelineDestination<any, any>> =
|
||||
S extends PipelineDestinationPromiseFunction<any, infer P> ? (err: NodeJS.ErrnoException | null, value: P) => void :
|
||||
(err: NodeJS.ErrnoException | null) => void;
|
||||
type PipelinePromise<S extends PipelineDestination<any, any>> =
|
||||
S extends PipelineDestinationPromiseFunction<any, infer P> ? Promise<P> : Promise<void>;
|
||||
interface PipelineOptions {
|
||||
signal: AbortSignal;
|
||||
}
|
||||
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
B extends PipelineDestination<A, any>>(
|
||||
source: A,
|
||||
destination: B,
|
||||
callback?: PipelineCallback<B>
|
||||
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
B extends PipelineDestination<T1, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
destination: B,
|
||||
callback?: PipelineCallback<B>
|
||||
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
B extends PipelineDestination<T2, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
destination: B,
|
||||
callback?: PipelineCallback<B>
|
||||
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
T3 extends PipelineTransform<T2, any>,
|
||||
B extends PipelineDestination<T3, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
transform3: T3,
|
||||
destination: B,
|
||||
callback?: PipelineCallback<B>
|
||||
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
T3 extends PipelineTransform<T2, any>,
|
||||
T4 extends PipelineTransform<T3, any>,
|
||||
B extends PipelineDestination<T4, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
transform3: T3,
|
||||
transform4: T4,
|
||||
destination: B,
|
||||
callback?: PipelineCallback<B>
|
||||
): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream;
|
||||
function pipeline(
|
||||
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
||||
callback?: (err: NodeJS.ErrnoException | null) => void,
|
||||
@ -329,21 +387,65 @@ declare module 'stream' {
|
||||
...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void)>,
|
||||
): NodeJS.WritableStream;
|
||||
namespace pipeline {
|
||||
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.WritableStream): Promise<void>;
|
||||
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.WritableStream): Promise<void>;
|
||||
function __promisify__(stream1: NodeJS.ReadableStream, stream2: NodeJS.ReadWriteStream, stream3: NodeJS.ReadWriteStream, stream4: NodeJS.WritableStream): Promise<void>;
|
||||
function __promisify__<A extends PipelineSource<any>,
|
||||
B extends PipelineDestination<A, any>>(
|
||||
source: A,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
function __promisify__<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
B extends PipelineDestination<T1, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
destination: B,
|
||||
options?: PipelineOptions,
|
||||
): PipelinePromise<B>;
|
||||
function __promisify__<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
B extends PipelineDestination<T2, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
function __promisify__<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
T3 extends PipelineTransform<T2, any>,
|
||||
B extends PipelineDestination<T3, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
transform3: T3,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
function __promisify__<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
T3 extends PipelineTransform<T2, any>,
|
||||
T4 extends PipelineTransform<T3, any>,
|
||||
B extends PipelineDestination<T4, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
transform3: T3,
|
||||
transform4: T4,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
|
||||
function __promisify__(
|
||||
stream1: NodeJS.ReadableStream,
|
||||
stream2: NodeJS.ReadWriteStream,
|
||||
stream3: NodeJS.ReadWriteStream,
|
||||
stream4: NodeJS.ReadWriteStream,
|
||||
stream5: NodeJS.WritableStream,
|
||||
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
||||
options?: PipelineOptions
|
||||
): Promise<void>;
|
||||
function __promisify__(streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>): Promise<void>;
|
||||
function __promisify__(
|
||||
stream1: NodeJS.ReadableStream,
|
||||
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
||||
...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream>,
|
||||
...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | PipelineOptions>,
|
||||
): Promise<void>;
|
||||
}
|
||||
|
||||
@ -353,6 +455,8 @@ declare module 'stream' {
|
||||
ref(): void;
|
||||
unref(): void;
|
||||
}
|
||||
|
||||
const promises: typeof streamPromises;
|
||||
}
|
||||
|
||||
export = internal;
|
||||
|
67
node_modules/@types/node/stream/promises.d.ts
generated
vendored
Executable file
67
node_modules/@types/node/stream/promises.d.ts
generated
vendored
Executable file
@ -0,0 +1,67 @@
|
||||
declare module "stream/promises" {
|
||||
import { FinishedOptions, PipelineSource, PipelineTransform,
|
||||
PipelineDestination, PipelinePromise, PipelineOptions } from "stream";
|
||||
|
||||
function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;
|
||||
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
B extends PipelineDestination<A, any>>(
|
||||
source: A,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
B extends PipelineDestination<T1, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
B extends PipelineDestination<T2, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
T3 extends PipelineTransform<T2, any>,
|
||||
B extends PipelineDestination<T3, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
transform3: T3,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
function pipeline<A extends PipelineSource<any>,
|
||||
T1 extends PipelineTransform<A, any>,
|
||||
T2 extends PipelineTransform<T1, any>,
|
||||
T3 extends PipelineTransform<T2, any>,
|
||||
T4 extends PipelineTransform<T3, any>,
|
||||
B extends PipelineDestination<T4, any>>(
|
||||
source: A,
|
||||
transform1: T1,
|
||||
transform2: T2,
|
||||
transform3: T3,
|
||||
transform4: T4,
|
||||
destination: B,
|
||||
options?: PipelineOptions
|
||||
): PipelinePromise<B>;
|
||||
|
||||
function pipeline(
|
||||
streams: ReadonlyArray<NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream>,
|
||||
options?: PipelineOptions
|
||||
): Promise<void>;
|
||||
function pipeline(
|
||||
stream1: NodeJS.ReadableStream,
|
||||
stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream,
|
||||
...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | PipelineOptions>,
|
||||
): Promise<void>;
|
||||
}
|
4
node_modules/@types/node/string_decoder.d.ts
generated
vendored
4
node_modules/@types/node/string_decoder.d.ts
generated
vendored
@ -1,7 +1,3 @@
|
||||
declare module 'node:string_decoder' {
|
||||
export * from 'string_decoder';
|
||||
}
|
||||
|
||||
declare module 'string_decoder' {
|
||||
class StringDecoder {
|
||||
constructor(encoding?: BufferEncoding);
|
||||
|
20
node_modules/@types/node/timers.d.ts
generated
vendored
20
node_modules/@types/node/timers.d.ts
generated
vendored
@ -1,12 +1,22 @@
|
||||
declare module 'node:timers' {
|
||||
export * from 'timers';
|
||||
declare module 'timers' {
|
||||
interface TimerOptions {
|
||||
/**
|
||||
* Set to `false` to indicate that the scheduled `Timeout`
|
||||
* should not require the Node.js event loop to remain active.
|
||||
* @default true
|
||||
*/
|
||||
ref?: boolean;
|
||||
|
||||
/**
|
||||
* An optional `AbortSignal` that can be used to cancel the scheduled `Timeout`.
|
||||
*/
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
declare module 'timers' {
|
||||
function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
|
||||
namespace setTimeout {
|
||||
function __promisify__(ms: number): Promise<void>;
|
||||
function __promisify__<T>(ms: number, value: T): Promise<T>;
|
||||
function __promisify__<T>(ms: number, value: T, options?: TimerOptions): Promise<T>;
|
||||
}
|
||||
function clearTimeout(timeoutId: NodeJS.Timeout): void;
|
||||
function setInterval(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout;
|
||||
@ -14,7 +24,7 @@ declare module 'timers' {
|
||||
function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
|
||||
namespace setImmediate {
|
||||
function __promisify__(): Promise<void>;
|
||||
function __promisify__<T>(value: T): Promise<T>;
|
||||
function __promisify__<T>(value: T, options?: TimerOptions): Promise<T>;
|
||||
}
|
||||
function clearImmediate(immediateId: NodeJS.Immediate): void;
|
||||
}
|
||||
|
13
node_modules/@types/node/timers/promises.d.ts
generated
vendored
Executable file
13
node_modules/@types/node/timers/promises.d.ts
generated
vendored
Executable file
@ -0,0 +1,13 @@
|
||||
declare module 'timers/promises' {
|
||||
import { TimerOptions } from 'timers';
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves after the specified delay in milliseconds.
|
||||
*/
|
||||
function setTimeout<T>(delay: number, value?: T, options?: TimerOptions): Promise<T>;
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves in the next tick.
|
||||
*/
|
||||
function setImmediate<T>(value: T, options?: TimerOptions): Promise<T>;
|
||||
}
|
6
node_modules/@types/node/tls.d.ts
generated
vendored
6
node_modules/@types/node/tls.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:tls' {
|
||||
export * from 'tls';
|
||||
}
|
||||
|
||||
declare module 'tls' {
|
||||
import * as net from 'node:net';
|
||||
import * as net from 'net';
|
||||
|
||||
const CLIENT_RENEG_LIMIT: number;
|
||||
const CLIENT_RENEG_WINDOW: number;
|
||||
|
4
node_modules/@types/node/trace_events.d.ts
generated
vendored
4
node_modules/@types/node/trace_events.d.ts
generated
vendored
@ -1,7 +1,3 @@
|
||||
declare module 'node:trace_events' {
|
||||
export * from 'trace_events';
|
||||
}
|
||||
|
||||
declare module 'trace_events' {
|
||||
/**
|
||||
* The `Tracing` object is used to enable or disable tracing for sets of
|
||||
|
5
node_modules/@types/node/ts3.6/assert.d.ts
generated
vendored
5
node_modules/@types/node/ts3.6/assert.d.ts
generated
vendored
@ -1,8 +1,3 @@
|
||||
declare module 'node:assert' {
|
||||
import assert = require('assert');
|
||||
export = assert;
|
||||
}
|
||||
|
||||
declare module 'assert' {
|
||||
/** An alias of `assert.ok()`. */
|
||||
function assert(value: any, message?: string | Error): void;
|
||||
|
5
node_modules/@types/node/ts3.6/base.d.ts
generated
vendored
5
node_modules/@types/node/ts3.6/base.d.ts
generated
vendored
@ -13,6 +13,7 @@
|
||||
/// <reference lib="esnext.bigint" />
|
||||
|
||||
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
||||
/// <reference path="../assert/strict.d.ts" />
|
||||
/// <reference path="../globals.d.ts" />
|
||||
/// <reference path="../async_hooks.d.ts" />
|
||||
/// <reference path="../buffer.d.ts" />
|
||||
@ -23,6 +24,8 @@
|
||||
/// <reference path="../crypto.d.ts" />
|
||||
/// <reference path="../dgram.d.ts" />
|
||||
/// <reference path="../dns.d.ts" />
|
||||
/// <reference path="../dns/promises.d.ts" />
|
||||
/// <reference path="../dns/promises.d.ts" />
|
||||
/// <reference path="../domain.d.ts" />
|
||||
/// <reference path="../events.d.ts" />
|
||||
/// <reference path="../fs.d.ts" />
|
||||
@ -42,8 +45,10 @@
|
||||
/// <reference path="../readline.d.ts" />
|
||||
/// <reference path="../repl.d.ts" />
|
||||
/// <reference path="../stream.d.ts" />
|
||||
/// <reference path="../stream/promises.d.ts" />
|
||||
/// <reference path="../string_decoder.d.ts" />
|
||||
/// <reference path="../timers.d.ts" />
|
||||
/// <reference path="../timers/promises.d.ts" />
|
||||
/// <reference path="../tls.d.ts" />
|
||||
/// <reference path="../trace_events.d.ts" />
|
||||
/// <reference path="../tty.d.ts" />
|
||||
|
6
node_modules/@types/node/tty.d.ts
generated
vendored
6
node_modules/@types/node/tty.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:tty' {
|
||||
export * from 'tty';
|
||||
}
|
||||
|
||||
declare module 'tty' {
|
||||
import * as net from 'node:net';
|
||||
import * as net from 'net';
|
||||
|
||||
function isatty(fd: number): boolean;
|
||||
class ReadStream extends net.Socket {
|
||||
|
6
node_modules/@types/node/url.d.ts
generated
vendored
6
node_modules/@types/node/url.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:url' {
|
||||
export * from 'url';
|
||||
}
|
||||
|
||||
declare module 'url' {
|
||||
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
|
||||
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
|
||||
|
||||
// Input to `url.format`
|
||||
interface UrlObject {
|
||||
|
4
node_modules/@types/node/util.d.ts
generated
vendored
4
node_modules/@types/node/util.d.ts
generated
vendored
@ -1,7 +1,3 @@
|
||||
declare module 'node:util' {
|
||||
export * from 'util';
|
||||
}
|
||||
|
||||
declare module 'util' {
|
||||
interface InspectOptions extends NodeJS.InspectOptions { }
|
||||
type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module';
|
||||
|
6
node_modules/@types/node/v8.d.ts
generated
vendored
6
node_modules/@types/node/v8.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:v8' {
|
||||
export * from 'v8';
|
||||
}
|
||||
|
||||
declare module 'v8' {
|
||||
import { Readable } from 'node:stream';
|
||||
import { Readable } from 'stream';
|
||||
|
||||
interface HeapSpaceInfo {
|
||||
space_name: string;
|
||||
|
4
node_modules/@types/node/vm.d.ts
generated
vendored
4
node_modules/@types/node/vm.d.ts
generated
vendored
@ -1,7 +1,3 @@
|
||||
declare module 'node:vm' {
|
||||
export * from 'vm';
|
||||
}
|
||||
|
||||
declare module 'vm' {
|
||||
interface Context extends NodeJS.Dict<any> { }
|
||||
interface BaseOptions {
|
||||
|
4
node_modules/@types/node/wasi.d.ts
generated
vendored
4
node_modules/@types/node/wasi.d.ts
generated
vendored
@ -1,7 +1,3 @@
|
||||
declare module 'node:wasi' {
|
||||
export * from 'wasi';
|
||||
}
|
||||
|
||||
declare module 'wasi' {
|
||||
interface WASIOptions {
|
||||
/**
|
||||
|
17
node_modules/@types/node/worker_threads.d.ts
generated
vendored
17
node_modules/@types/node/worker_threads.d.ts
generated
vendored
@ -1,13 +1,9 @@
|
||||
declare module 'node:worker_threads' {
|
||||
export * from 'worker_threads';
|
||||
}
|
||||
|
||||
declare module 'worker_threads' {
|
||||
import { Context } from 'node:vm';
|
||||
import EventEmitter = require('node:events');
|
||||
import { Readable, Writable } from 'node:stream';
|
||||
import { URL } from 'node:url';
|
||||
import { FileHandle } from 'node:fs/promises';
|
||||
import { Context } from 'vm';
|
||||
import EventEmitter = require('events');
|
||||
import { Readable, Writable } from 'stream';
|
||||
import { URL } from 'url';
|
||||
import { FileHandle } from 'fs/promises';
|
||||
|
||||
const isMainThread: boolean;
|
||||
const parentPort: null | MessagePort;
|
||||
@ -91,6 +87,9 @@ declare module 'worker_threads' {
|
||||
* Additional data to send in the first worker message.
|
||||
*/
|
||||
transferList?: TransferListItem[];
|
||||
/**
|
||||
* @default true
|
||||
*/
|
||||
trackUnmanagedFds?: boolean;
|
||||
}
|
||||
|
||||
|
6
node_modules/@types/node/zlib.d.ts
generated
vendored
6
node_modules/@types/node/zlib.d.ts
generated
vendored
@ -1,9 +1,5 @@
|
||||
declare module 'node:zlib' {
|
||||
export * from 'zlib';
|
||||
}
|
||||
|
||||
declare module 'zlib' {
|
||||
import * as stream from 'node:stream';
|
||||
import * as stream from 'stream';
|
||||
|
||||
interface ZlibOptions {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user