Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10c84d509b |
@@ -22,11 +22,10 @@ This action will create a GitHub release and optionally upload an artifact to it
|
||||
This will preserve the existing prerelease state during updates.
|
||||
- **owner**: Optionally specify the owner of the repo where the release should be generated. Defaults to current repo's owner.
|
||||
- **prerelease**: Optionally marks this release as prerelease. Set to true to enable.
|
||||
- **removeArtifacts**: Indicates if existing release artifacts should be removed. Defaults to `false`.
|
||||
- **replacesArtifacts**: Indicates if existing release artifacts should be replaced. Defaults to `true`.
|
||||
- **repo**: Optionally specify the repo where the release should be generated. Defaults to current repo.
|
||||
- **tag**: An optional tag for the release. If this is omitted the git ref will be used (if it is a tag).
|
||||
- **token**: The GitHub token. Typically, this will be `${{ secrets.GITHUB_TOKEN }}`. If you are using a personal access token it should have access to the `repo` scope.
|
||||
- **token**: (**Required**) The GitHub token. Typically this will be `${{ secrets.GITHUB_TOKEN }}`.
|
||||
|
||||
## Action Outputs
|
||||
- **id**: The identifier of the created release.
|
||||
|
||||
@@ -29,7 +29,6 @@ const createPrerelease = true
|
||||
const updatePrerelease = false
|
||||
const releaseId = 101
|
||||
const replacesArtifacts = true
|
||||
const removeArtifacts = false
|
||||
const tag = 'tag'
|
||||
const token = 'token'
|
||||
const updateBody = 'updateBody'
|
||||
@@ -299,7 +298,6 @@ describe("Action", () => {
|
||||
owner: "owner",
|
||||
createdPrerelease: createPrerelease,
|
||||
replacesArtifacts: replacesArtifacts,
|
||||
removeArtifacts: removeArtifacts,
|
||||
repo: "repo",
|
||||
tag: tag,
|
||||
token: token,
|
||||
|
||||
@@ -89,25 +89,6 @@ describe('ArtifactUploader', () => {
|
||||
expect(deleteMock).toBeCalledWith(2)
|
||||
})
|
||||
|
||||
it('removes all artifacts', async () => {
|
||||
mockDeleteSuccess()
|
||||
mockListWithAssets()
|
||||
mockUploadArtifact()
|
||||
const uploader = createUploader(false, true)
|
||||
|
||||
await uploader.uploadArtifacts(artifacts, releaseId, url)
|
||||
|
||||
expect(uploadMock).toBeCalledTimes(2)
|
||||
expect(uploadMock)
|
||||
.toBeCalledWith(url, contentLength, 'raw', fileContents, 'art1', releaseId)
|
||||
expect(uploadMock)
|
||||
.toBeCalledWith(url, contentLength, 'raw', fileContents, 'art2', releaseId)
|
||||
|
||||
expect(deleteMock).toBeCalledTimes(2)
|
||||
expect(deleteMock).toBeCalledWith(1)
|
||||
expect(deleteMock).toBeCalledWith(2)
|
||||
})
|
||||
|
||||
it('replaces no artifacts when previous asset list empty', async () => {
|
||||
mockDeleteSuccess()
|
||||
mockListWithoutAssets()
|
||||
@@ -148,7 +129,7 @@ describe('ArtifactUploader', () => {
|
||||
it('throws upload error when replacesExistingArtifacts is true', async () => {
|
||||
mockListWithoutAssets()
|
||||
mockUploadError()
|
||||
const uploader = createUploader(true, false, true)
|
||||
const uploader = createUploader(true, true)
|
||||
|
||||
expect.hasAssertions()
|
||||
try {
|
||||
@@ -189,7 +170,7 @@ describe('ArtifactUploader', () => {
|
||||
expect(deleteMock).toBeCalledTimes(0)
|
||||
})
|
||||
|
||||
function createUploader(replaces: boolean, removes: boolean = false, throws: boolean = false): GithubArtifactUploader {
|
||||
function createUploader(replaces: boolean, throws: boolean = false): GithubArtifactUploader {
|
||||
const MockReleases = jest.fn<Releases, any>(() => {
|
||||
return {
|
||||
create: jest.fn(),
|
||||
@@ -201,7 +182,7 @@ describe('ArtifactUploader', () => {
|
||||
uploadArtifact: uploadMock
|
||||
}
|
||||
})
|
||||
return new GithubArtifactUploader(new MockReleases(), replaces, removes, throws)
|
||||
return new GithubArtifactUploader(new MockReleases(), replaces, throws)
|
||||
}
|
||||
|
||||
function mockDeleteError(): any {
|
||||
|
||||
@@ -236,17 +236,6 @@ describe('Inputs', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('removeArtifacts', () => {
|
||||
it('returns false', () => {
|
||||
expect(inputs.removeArtifacts).toBe(false)
|
||||
})
|
||||
|
||||
it('returns true', () => {
|
||||
mockGetInput.mockReturnValue('true')
|
||||
expect(inputs.removeArtifacts).toBe(true)
|
||||
})
|
||||
})
|
||||
|
||||
describe('repo', () => {
|
||||
it('returns repo from context', function () {
|
||||
process.env.GITHUB_REPOSITORY = "owner/repo"
|
||||
|
||||
@@ -23,7 +23,6 @@ describe.skip('Integration Test', () => {
|
||||
const uploader = new GithubArtifactUploader(
|
||||
releases,
|
||||
inputs.replacesArtifacts,
|
||||
inputs.removeArtifacts,
|
||||
inputs.artifactErrorsFailBuild,
|
||||
)
|
||||
action = new Action(inputs, outputs, releases, uploader)
|
||||
@@ -47,7 +46,6 @@ describe.skip('Integration Test', () => {
|
||||
owner: "ncipollo",
|
||||
createdPrerelease: false,
|
||||
replacesArtifacts: true,
|
||||
removeArtifacts: false,
|
||||
repo: "actions-playground",
|
||||
tag: "release-action-test",
|
||||
token: getToken(),
|
||||
|
||||
@@ -75,10 +75,6 @@ inputs:
|
||||
description: "Optionally marks this release as prerelease. Set to true to enable."
|
||||
required: false
|
||||
default: ''
|
||||
removeArtifacts:
|
||||
description: 'Indicates if existing release artifacts should be removed, Defaults to false.'
|
||||
required: false
|
||||
default: 'false'
|
||||
replacesArtifacts:
|
||||
description: "Indicates if existing release artifacts should be replaced. Defaults to true."
|
||||
required: false
|
||||
@@ -93,7 +89,7 @@ inputs:
|
||||
default: ''
|
||||
token:
|
||||
description: 'The Github token.'
|
||||
required: false
|
||||
required: true
|
||||
default: ${{ github.token }}
|
||||
outputs:
|
||||
id:
|
||||
|
||||
@@ -31,10 +31,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.GithubArtifactUploader = void 0;
|
||||
const core = __importStar(require("@actions/core"));
|
||||
class GithubArtifactUploader {
|
||||
constructor(releases, replacesExistingArtifacts = true, removeArtifacts = false, throwsUploadErrors = false) {
|
||||
constructor(releases, replacesExistingArtifacts = true, throwsUploadErrors = false) {
|
||||
this.releases = releases;
|
||||
this.replacesExistingArtifacts = replacesExistingArtifacts;
|
||||
this.removeArtifacts = removeArtifacts;
|
||||
this.throwsUploadErrors = throwsUploadErrors;
|
||||
}
|
||||
uploadArtifacts(artifacts, releaseId, uploadUrl) {
|
||||
@@ -42,9 +41,6 @@ class GithubArtifactUploader {
|
||||
if (this.replacesExistingArtifacts) {
|
||||
yield this.deleteUpdatedArtifacts(artifacts, releaseId);
|
||||
}
|
||||
if (this.removeArtifacts) {
|
||||
yield this.deleteUploadedArtifacts(releaseId);
|
||||
}
|
||||
for (const artifact of artifacts) {
|
||||
yield this.uploadArtifact(artifact, releaseId, uploadUrl);
|
||||
}
|
||||
@@ -88,15 +84,5 @@ class GithubArtifactUploader {
|
||||
}
|
||||
});
|
||||
}
|
||||
deleteUploadedArtifacts(releaseId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const releaseAssets = yield this.releases.listArtifactsForRelease(releaseId);
|
||||
for (const artifact of releaseAssets) {
|
||||
const asset = artifact;
|
||||
core.debug(`Deleting existing artifact ${artifact.name}...`);
|
||||
yield this.releases.deleteArtifact(asset.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.GithubArtifactUploader = GithubArtifactUploader;
|
||||
|
||||
@@ -117,10 +117,6 @@ class CoreInputs {
|
||||
return undefined;
|
||||
return this.createdPrerelease;
|
||||
}
|
||||
get removeArtifacts() {
|
||||
const removes = core.getInput('removeArtifacts');
|
||||
return removes == 'true';
|
||||
}
|
||||
get replacesArtifacts() {
|
||||
const replaces = core.getInput('replacesArtifacts');
|
||||
return replaces == 'true';
|
||||
|
||||
@@ -57,7 +57,7 @@ function createAction() {
|
||||
const inputs = new Inputs_1.CoreInputs(globber, context);
|
||||
const outputs = new Outputs_1.CoreOutputs();
|
||||
const releases = new Releases_1.GithubReleases(inputs, git);
|
||||
const uploader = new ArtifactUploader_1.GithubArtifactUploader(releases, inputs.replacesArtifacts, inputs.removeArtifacts, inputs.artifactErrorsFailBuild);
|
||||
const uploader = new ArtifactUploader_1.GithubArtifactUploader(releases, inputs.replacesArtifacts, inputs.artifactErrorsFailBuild);
|
||||
return new Action_1.Action(inputs, outputs, releases, uploader);
|
||||
}
|
||||
run();
|
||||
|
||||
75
node_modules/.yarn-integrity
generated
vendored
75
node_modules/.yarn-integrity
generated
vendored
@@ -8,20 +8,20 @@
|
||||
],
|
||||
"linkedModules": [],
|
||||
"topLevelPatterns": [
|
||||
"@actions/core@^1.5.0",
|
||||
"@actions/core@^1.4.0",
|
||||
"@actions/github@^5.0.0",
|
||||
"@types/glob@^7.1.4",
|
||||
"@types/jest@^27.0.1",
|
||||
"@types/node@^16.7.11",
|
||||
"@types/jest@^26.0.24",
|
||||
"@types/node@^16.4.12",
|
||||
"glob@^7.1.7",
|
||||
"jest-circus@^27.1.0",
|
||||
"jest-circus@^27.0.6",
|
||||
"jest@^26.6.3",
|
||||
"ts-jest@^26.5.6",
|
||||
"typescript@^4.3.5",
|
||||
"untildify@^4.0.0"
|
||||
],
|
||||
"lockfileEntries": {
|
||||
"@actions/core@^1.5.0": "https://registry.yarnpkg.com/@actions/core/-/core-1.5.0.tgz#885b864700001a1b9a6fba247833a036e75ad9d3",
|
||||
"@actions/core@^1.4.0": "https://registry.yarnpkg.com/@actions/core/-/core-1.4.0.tgz#cf2e6ee317e314b03886adfeb20e448d50d6e524",
|
||||
"@actions/github@^5.0.0": "https://registry.yarnpkg.com/@actions/github/-/github-5.0.0.tgz#1754127976c50bd88b2e905f10d204d76d1472f8",
|
||||
"@actions/http-client@^1.0.11": "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.11.tgz#c58b12e9aa8b159ee39e7dd6cbd0e91d905633c0",
|
||||
"@babel/code-frame@^7.0.0": "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.13.tgz#dcfc826beef65e75c50e21d3837d7d95798dd658",
|
||||
@@ -102,24 +102,24 @@
|
||||
"@istanbuljs/load-nyc-config@^1.0.0": "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced",
|
||||
"@istanbuljs/schema@^0.1.2": "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd",
|
||||
"@jest/console@^26.6.2": "https://registry.yarnpkg.com/@jest/console/-/console-26.6.2.tgz#4e04bc464014358b03ab4937805ee36a0aeb98f2",
|
||||
"@jest/console@^27.1.0": "https://registry.yarnpkg.com/@jest/console/-/console-27.1.0.tgz#de13b603cb1d389b50c0dc6296e86e112381e43c",
|
||||
"@jest/console@^27.0.6": "https://registry.yarnpkg.com/@jest/console/-/console-27.0.6.tgz#3eb72ea80897495c3d73dd97aab7f26770e2260f",
|
||||
"@jest/core@^26.6.3": "https://registry.yarnpkg.com/@jest/core/-/core-26.6.3.tgz#7639fcb3833d748a4656ada54bde193051e45fad",
|
||||
"@jest/environment@^26.6.2": "https://registry.yarnpkg.com/@jest/environment/-/environment-26.6.2.tgz#ba364cc72e221e79cc8f0a99555bf5d7577cf92c",
|
||||
"@jest/environment@^27.1.0": "https://registry.yarnpkg.com/@jest/environment/-/environment-27.1.0.tgz#c7224a67004759ec203d8fa44e8bc0db93f66c44",
|
||||
"@jest/environment@^27.0.6": "https://registry.yarnpkg.com/@jest/environment/-/environment-27.0.6.tgz#ee293fe996db01d7d663b8108fa0e1ff436219d2",
|
||||
"@jest/fake-timers@^26.6.2": "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.6.2.tgz#459c329bcf70cee4af4d7e3f3e67848123535aad",
|
||||
"@jest/fake-timers@^27.1.0": "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.1.0.tgz#c0b343d8a16af17eab2cb6862e319947c0ea2abe",
|
||||
"@jest/fake-timers@^27.0.6": "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.0.6.tgz#cbad52f3fe6abe30e7acb8cd5fa3466b9588e3df",
|
||||
"@jest/globals@^26.6.2": "https://registry.yarnpkg.com/@jest/globals/-/globals-26.6.2.tgz#5b613b78a1aa2655ae908eba638cc96a20df720a",
|
||||
"@jest/globals@^27.1.0": "https://registry.yarnpkg.com/@jest/globals/-/globals-27.1.0.tgz#e093a49c718dd678a782c197757775534c88d3f2",
|
||||
"@jest/globals@^27.0.6": "https://registry.yarnpkg.com/@jest/globals/-/globals-27.0.6.tgz#48e3903f99a4650673d8657334d13c9caf0e8f82",
|
||||
"@jest/reporters@^26.6.2": "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.6.2.tgz#1f518b99637a5f18307bd3ecf9275f6882a667f6",
|
||||
"@jest/source-map@^26.6.2": "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.6.2.tgz#29af5e1e2e324cafccc936f218309f54ab69d535",
|
||||
"@jest/source-map@^27.0.6": "https://registry.yarnpkg.com/@jest/source-map/-/source-map-27.0.6.tgz#be9e9b93565d49b0548b86e232092491fb60551f",
|
||||
"@jest/test-result@^26.6.2": "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.6.2.tgz#55da58b62df134576cc95476efa5f7949e3f5f18",
|
||||
"@jest/test-result@^27.1.0": "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.1.0.tgz#9345ae5f97f6a5287af9ebd54716cd84331d42e8",
|
||||
"@jest/test-result@^27.0.6": "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.0.6.tgz#3fa42015a14e4fdede6acd042ce98c7f36627051",
|
||||
"@jest/test-sequencer@^26.6.3": "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz#98e8a45100863886d074205e8ffdc5a7eb582b17",
|
||||
"@jest/transform@^26.6.2": "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b",
|
||||
"@jest/transform@^27.1.0": "https://registry.yarnpkg.com/@jest/transform/-/transform-27.1.0.tgz#962e385517e3d1f62827fa39c305edcc3ca8544b",
|
||||
"@jest/transform@^27.0.6": "https://registry.yarnpkg.com/@jest/transform/-/transform-27.0.6.tgz#189ad7107413208f7600f4719f81dd2f7278cc95",
|
||||
"@jest/types@^26.6.2": "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e",
|
||||
"@jest/types@^27.1.0": "https://registry.yarnpkg.com/@jest/types/-/types-27.1.0.tgz#674a40325eab23c857ebc0689e7e191a3c5b10cc",
|
||||
"@jest/types@^27.0.6": "https://registry.yarnpkg.com/@jest/types/-/types-27.0.6.tgz#9a992bc517e0c49f035938b8549719c2de40706b",
|
||||
"@octokit/auth-token@^2.4.4": "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.4.5.tgz#568ccfb8cb46f36441fac094ce34f7a875b197f3",
|
||||
"@octokit/core@^3.4.0": "https://registry.yarnpkg.com/@octokit/core/-/core-3.5.1.tgz#8601ceeb1ec0e1b1b8217b960a413ed8e947809b",
|
||||
"@octokit/endpoint@^6.0.1": "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.11.tgz#082adc2aebca6dcefa1fb383f5efb3ed081949d1",
|
||||
@@ -155,11 +155,11 @@
|
||||
"@types/istanbul-lib-coverage@^2.0.1": "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762",
|
||||
"@types/istanbul-lib-report@*": "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686",
|
||||
"@types/istanbul-reports@^3.0.0": "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz#508b13aa344fa4976234e75dddcc34925737d821",
|
||||
"@types/jest@^27.0.1": "https://registry.yarnpkg.com/@types/jest/-/jest-27.0.1.tgz#fafcc997da0135865311bb1215ba16dba6bdf4ca",
|
||||
"@types/jest@^26.0.24": "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a",
|
||||
"@types/minimatch@*": "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d",
|
||||
"@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-16.7.11.tgz#5877b3ab359af251fd413517be2d4265b7fea9a9",
|
||||
"@types/node@>= 8": "https://registry.yarnpkg.com/@types/node/-/node-16.7.11.tgz#5877b3ab359af251fd413517be2d4265b7fea9a9",
|
||||
"@types/node@^16.7.11": "https://registry.yarnpkg.com/@types/node/-/node-16.7.11.tgz#5877b3ab359af251fd413517be2d4265b7fea9a9",
|
||||
"@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-16.4.12.tgz#961e3091f263e6345d2d84afab4e047a60b4b11b",
|
||||
"@types/node@>= 8": "https://registry.yarnpkg.com/@types/node/-/node-16.4.12.tgz#961e3091f263e6345d2d84afab4e047a60b4b11b",
|
||||
"@types/node@^16.4.12": "https://registry.yarnpkg.com/@types/node/-/node-16.4.12.tgz#961e3091f263e6345d2d84afab4e047a60b4b11b",
|
||||
"@types/normalize-package-data@^2.4.0": "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e",
|
||||
"@types/prettier@^2.0.0": "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.2.0.tgz#a4e8205a4955690eef712a6d0394a1d2e121e721",
|
||||
"@types/prettier@^2.1.5": "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.3.0.tgz#2e8332cc7363f887d32ec5496b207d26ba8052bb",
|
||||
@@ -249,7 +249,6 @@
|
||||
"core-util-is@1.0.2": "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7",
|
||||
"cross-spawn@^6.0.0": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4",
|
||||
"cross-spawn@^7.0.0": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6",
|
||||
"cross-spawn@^7.0.3": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6",
|
||||
"cssom@^0.4.4": "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10",
|
||||
"cssom@~0.3.6": "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a",
|
||||
"cssstyle@^2.2.0": "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852",
|
||||
@@ -292,11 +291,10 @@
|
||||
"exec-sh@^0.3.2": "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.4.tgz#3a018ceb526cc6f6df2bb504b2bfe8e3a4934ec5",
|
||||
"execa@^1.0.0": "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8",
|
||||
"execa@^4.0.0": "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a",
|
||||
"execa@^5.0.0": "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd",
|
||||
"exit@^0.1.2": "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c",
|
||||
"expand-brackets@^2.1.4": "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622",
|
||||
"expect@^26.6.2": "https://registry.yarnpkg.com/expect/-/expect-26.6.2.tgz#c6b996bf26bf3fe18b67b2d0f51fc981ba934417",
|
||||
"expect@^27.1.0": "https://registry.yarnpkg.com/expect/-/expect-27.1.0.tgz#380de0abb3a8f2299c4c6c66bbe930483b5dba9b",
|
||||
"expect@^27.0.6": "https://registry.yarnpkg.com/expect/-/expect-27.0.6.tgz#a4d74fbe27222c718fff68ef49d78e26a8fd4c05",
|
||||
"extend-shallow@^2.0.1": "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f",
|
||||
"extend-shallow@^3.0.0": "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8",
|
||||
"extend-shallow@^3.0.2": "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8",
|
||||
@@ -328,7 +326,6 @@
|
||||
"get-package-type@^0.1.0": "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a",
|
||||
"get-stream@^4.0.0": "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5",
|
||||
"get-stream@^5.0.0": "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3",
|
||||
"get-stream@^6.0.0": "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7",
|
||||
"get-value@^2.0.3": "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28",
|
||||
"get-value@^2.0.6": "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28",
|
||||
"getpass@^0.1.1": "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa",
|
||||
@@ -354,7 +351,6 @@
|
||||
"html-escaper@^2.0.0": "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453",
|
||||
"http-signature@~1.2.0": "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1",
|
||||
"human-signals@^1.1.1": "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3",
|
||||
"human-signals@^2.1.0": "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0",
|
||||
"iconv-lite@0.4.24": "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b",
|
||||
"import-local@^3.0.2": "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6",
|
||||
"imurmurhash@^0.1.4": "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea",
|
||||
@@ -405,50 +401,50 @@
|
||||
"istanbul-lib-source-maps@^4.0.0": "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz#75743ce6d96bb86dc7ee4352cf6366a23f0b1ad9",
|
||||
"istanbul-reports@^3.0.2": "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.2.tgz#d593210e5000683750cb09fc0644e4b6e27fd53b",
|
||||
"jest-changed-files@^26.6.2": "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.6.2.tgz#f6198479e1cc66f22f9ae1e22acaa0b429c042d0",
|
||||
"jest-circus@^27.1.0": "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.1.0.tgz#24c280c90a625ea57da20ee231d25b1621979a57",
|
||||
"jest-circus@^27.0.6": "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.0.6.tgz#dd4df17c4697db6a2c232aaad4e9cec666926668",
|
||||
"jest-cli@^26.6.3": "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a",
|
||||
"jest-config@^26.6.3": "https://registry.yarnpkg.com/jest-config/-/jest-config-26.6.3.tgz#64f41444eef9eb03dc51d5c53b75c8c71f645349",
|
||||
"jest-diff@^26.0.0": "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394",
|
||||
"jest-diff@^26.6.2": "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394",
|
||||
"jest-diff@^27.0.0": "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.1.0.tgz#c7033f25add95e2218f3c7f4c3d7b634ab6b3cd2",
|
||||
"jest-diff@^27.1.0": "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.1.0.tgz#c7033f25add95e2218f3c7f4c3d7b634ab6b3cd2",
|
||||
"jest-diff@^27.0.6": "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.0.6.tgz#4a7a19ee6f04ad70e0e3388f35829394a44c7b5e",
|
||||
"jest-docblock@^26.0.0": "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-26.0.0.tgz#3e2fa20899fc928cb13bd0ff68bd3711a36889b5",
|
||||
"jest-each@^26.6.2": "https://registry.yarnpkg.com/jest-each/-/jest-each-26.6.2.tgz#02526438a77a67401c8a6382dfe5999952c167cb",
|
||||
"jest-each@^27.1.0": "https://registry.yarnpkg.com/jest-each/-/jest-each-27.1.0.tgz#36ac75f7aeecb3b8da2a8e617ccb30a446df408c",
|
||||
"jest-each@^27.0.6": "https://registry.yarnpkg.com/jest-each/-/jest-each-27.0.6.tgz#cee117071b04060158dc8d9a66dc50ad40ef453b",
|
||||
"jest-environment-jsdom@^26.6.2": "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e",
|
||||
"jest-environment-node@^26.6.2": "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c",
|
||||
"jest-get-type@^26.3.0": "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0",
|
||||
"jest-get-type@^27.0.6": "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.0.6.tgz#0eb5c7f755854279ce9b68a9f1a4122f69047cfe",
|
||||
"jest-haste-map@^26.6.2": "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa",
|
||||
"jest-haste-map@^27.1.0": "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.1.0.tgz#a39f456823bd6a74e3c86ad25f6fa870428326bf",
|
||||
"jest-haste-map@^27.0.6": "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.0.6.tgz#4683a4e68f6ecaa74231679dca237279562c8dc7",
|
||||
"jest-jasmine2@^26.6.3": "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz#adc3cf915deacb5212c93b9f3547cd12958f2edd",
|
||||
"jest-leak-detector@^26.6.2": "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz#7717cf118b92238f2eba65054c8a0c9c653a91af",
|
||||
"jest-matcher-utils@^26.6.2": "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz#8e6fd6e863c8b2d31ac6472eeb237bc595e53e7a",
|
||||
"jest-matcher-utils@^27.1.0": "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.1.0.tgz#68afda0885db1f0b9472ce98dc4c535080785301",
|
||||
"jest-matcher-utils@^27.0.6": "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.0.6.tgz#2a8da1e86c620b39459f4352eaa255f0d43e39a9",
|
||||
"jest-message-util@^26.6.2": "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.6.2.tgz#58173744ad6fc0506b5d21150b9be56ef001ca07",
|
||||
"jest-message-util@^27.1.0": "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.1.0.tgz#e77692c84945d1d10ef00afdfd3d2c20bd8fb468",
|
||||
"jest-message-util@^27.0.6": "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.0.6.tgz#158bcdf4785706492d164a39abca6a14da5ab8b5",
|
||||
"jest-mock@^26.6.2": "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.6.2.tgz#d6cb712b041ed47fe0d9b6fc3474bc6543feb302",
|
||||
"jest-mock@^27.1.0": "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.1.0.tgz#7ca6e4d09375c071661642d1c14c4711f3ab4b4f",
|
||||
"jest-mock@^27.0.6": "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.0.6.tgz#0efdd40851398307ba16778728f6d34d583e3467",
|
||||
"jest-pnp-resolver@^1.2.2": "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c",
|
||||
"jest-regex-util@^26.0.0": "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28",
|
||||
"jest-regex-util@^27.0.6": "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.0.6.tgz#02e112082935ae949ce5d13b2675db3d8c87d9c5",
|
||||
"jest-resolve-dependencies@^26.6.3": "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz#6680859ee5d22ee5dcd961fe4871f59f4c784fb6",
|
||||
"jest-resolve@^26.6.2": "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.6.2.tgz#a3ab1517217f469b504f1b56603c5bb541fbb507",
|
||||
"jest-resolve@^27.1.0": "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.1.0.tgz#bb22303c9e240cccdda28562e3c6fbcc6a23ac86",
|
||||
"jest-resolve@^27.0.6": "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.0.6.tgz#e90f436dd4f8fbf53f58a91c42344864f8e55bff",
|
||||
"jest-runner@^26.6.3": "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.6.3.tgz#2d1fed3d46e10f233fd1dbd3bfaa3fe8924be159",
|
||||
"jest-runtime@^26.6.3": "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.6.3.tgz#4f64efbcfac398331b74b4b3c82d27d401b8fa2b",
|
||||
"jest-runtime@^27.1.0": "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.1.0.tgz#1a98d984ffebc16a0b4f9eaad8ab47c00a750cf5",
|
||||
"jest-runtime@^27.0.6": "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.0.6.tgz#45877cfcd386afdd4f317def551fc369794c27c9",
|
||||
"jest-serializer@^26.6.2": "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.6.2.tgz#d139aafd46957d3a448f3a6cdabe2919ba0742d1",
|
||||
"jest-serializer@^27.0.6": "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.0.6.tgz#93a6c74e0132b81a2d54623251c46c498bb5bec1",
|
||||
"jest-snapshot@^26.6.2": "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84",
|
||||
"jest-snapshot@^27.1.0": "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.1.0.tgz#2a063ab90064017a7e9302528be7eaea6da12d17",
|
||||
"jest-snapshot@^27.0.6": "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.0.6.tgz#f4e6b208bd2e92e888344d78f0f650bcff05a4bf",
|
||||
"jest-util@^26.1.0": "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1",
|
||||
"jest-util@^26.6.2": "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1",
|
||||
"jest-util@^27.1.0": "https://registry.yarnpkg.com/jest-util/-/jest-util-27.1.0.tgz#06a53777a8cb7e4940ca8e20bf9c67dd65d9bd68",
|
||||
"jest-util@^27.0.6": "https://registry.yarnpkg.com/jest-util/-/jest-util-27.0.6.tgz#e8e04eec159de2f4d5f57f795df9cdc091e50297",
|
||||
"jest-validate@^26.6.2": "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.6.2.tgz#23d380971587150467342911c3d7b4ac57ab20ec",
|
||||
"jest-validate@^27.1.0": "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.1.0.tgz#d9e82024c5e3f5cef52a600cfc456793a84c0998",
|
||||
"jest-validate@^27.0.6": "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.0.6.tgz#930a527c7a951927df269f43b2dc23262457e2a6",
|
||||
"jest-watcher@^26.6.2": "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.6.2.tgz#a5b683b8f9d68dbcb1d7dae32172d2cca0592975",
|
||||
"jest-worker@^26.6.2": "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed",
|
||||
"jest-worker@^27.1.0": "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.1.0.tgz#65f4a88e37148ed984ba8ca8492d6b376938c0aa",
|
||||
"jest-worker@^27.0.6": "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.0.6.tgz#a5fdb1e14ad34eb228cfe162d9f729cdbfa28aed",
|
||||
"jest@^26.6.3": "https://registry.yarnpkg.com/jest/-/jest-26.6.3.tgz#40e8fdbe48f00dfa1f0ce8121ca74b88ac9148ef",
|
||||
"js-tokens@^4.0.0": "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499",
|
||||
"js-yaml@^3.13.1": "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537",
|
||||
@@ -512,7 +508,6 @@
|
||||
"normalize-path@^3.0.0": "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65",
|
||||
"npm-run-path@^2.0.0": "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f",
|
||||
"npm-run-path@^4.0.0": "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea",
|
||||
"npm-run-path@^4.0.1": "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea",
|
||||
"nwsapi@^2.2.0": "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7",
|
||||
"oauth-sign@~0.9.0": "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455",
|
||||
"object-copy@^0.1.0": "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c",
|
||||
@@ -522,7 +517,6 @@
|
||||
"once@^1.3.1": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1",
|
||||
"once@^1.4.0": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1",
|
||||
"onetime@^5.1.0": "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e",
|
||||
"onetime@^5.1.2": "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e",
|
||||
"optionator@^0.8.1": "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495",
|
||||
"p-each-series@^2.1.0": "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a",
|
||||
"p-finally@^1.0.0": "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae",
|
||||
@@ -538,7 +532,7 @@
|
||||
"path-key@^2.0.1": "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40",
|
||||
"path-key@^3.0.0": "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375",
|
||||
"path-key@^3.1.0": "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375",
|
||||
"path-parse@^1.0.6": "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735",
|
||||
"path-parse@^1.0.6": "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c",
|
||||
"performance-now@^2.1.0": "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b",
|
||||
"picomatch@^2.0.4": "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad",
|
||||
"picomatch@^2.0.5": "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad",
|
||||
@@ -547,9 +541,9 @@
|
||||
"pkg-dir@^4.2.0": "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3",
|
||||
"posix-character-classes@^0.1.0": "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab",
|
||||
"prelude-ls@~1.1.2": "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54",
|
||||
"pretty-format@^26.0.0": "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93",
|
||||
"pretty-format@^26.6.2": "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93",
|
||||
"pretty-format@^27.0.0": "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.1.0.tgz#022f3fdb19121e0a2612f3cff8d724431461b9ca",
|
||||
"pretty-format@^27.1.0": "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.1.0.tgz#022f3fdb19121e0a2612f3cff8d724431461b9ca",
|
||||
"pretty-format@^27.0.6": "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.0.6.tgz#ab770c47b2c6f893a21aefc57b75da63ef49a11f",
|
||||
"prompts@^2.0.1": "https://registry.yarnpkg.com/prompts/-/prompts-2.4.0.tgz#4aa5de0723a231d1ee9121c40fdf663df73f61d7",
|
||||
"psl@^1.1.28": "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24",
|
||||
"pump@^3.0.0": "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64",
|
||||
@@ -605,7 +599,6 @@
|
||||
"shellwords@^0.1.1": "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b",
|
||||
"signal-exit@^3.0.0": "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c",
|
||||
"signal-exit@^3.0.2": "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c",
|
||||
"signal-exit@^3.0.3": "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c",
|
||||
"sisteransi@^1.0.5": "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed",
|
||||
"slash@^3.0.0": "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634",
|
||||
"snapdragon-node@^2.0.1": "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b",
|
||||
|
||||
50
node_modules/@actions/core/README.md
generated
vendored
50
node_modules/@actions/core/README.md
generated
vendored
@@ -92,8 +92,6 @@ try {
|
||||
|
||||
// Do stuff
|
||||
core.info('Output to the actions build log')
|
||||
|
||||
core.notice('This is a message that will also emit an annotation')
|
||||
}
|
||||
catch (err) {
|
||||
core.error(`Error ${err}, action may still succeed though`);
|
||||
@@ -117,54 +115,6 @@ const result = await core.group('Do something async', async () => {
|
||||
})
|
||||
```
|
||||
|
||||
#### Annotations
|
||||
|
||||
This library has 3 methods that will produce [annotations](https://docs.github.com/en/rest/reference/checks#create-a-check-run).
|
||||
```js
|
||||
core.error('This is a bad error. This will also fail the build.')
|
||||
|
||||
core.warning('Something went wrong, but it\'s not bad enough to fail the build.')
|
||||
|
||||
core.notice('Something happened that you might want to know about.')
|
||||
```
|
||||
|
||||
These will surface to the UI in the Actions page and on Pull Requests. They look something like this:
|
||||
|
||||

|
||||
|
||||
These annotations can also be attached to particular lines and columns of your source files to show exactly where a problem is occuring.
|
||||
|
||||
These options are:
|
||||
```typescript
|
||||
export interface AnnotationProperties {
|
||||
/**
|
||||
* A title for the annotation.
|
||||
*/
|
||||
title?: string
|
||||
|
||||
/**
|
||||
* The start line for the annotation.
|
||||
*/
|
||||
startLine?: number
|
||||
|
||||
/**
|
||||
* The end line for the annotation. Defaults to `startLine` when `startLine` is provided.
|
||||
*/
|
||||
endLine?: number
|
||||
|
||||
/**
|
||||
* The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
|
||||
*/
|
||||
startColumn?: number
|
||||
|
||||
/**
|
||||
* The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
|
||||
* Defaults to `startColumn` when `startColumn` is provided.
|
||||
*/
|
||||
endColumn?: number
|
||||
}
|
||||
```
|
||||
|
||||
#### 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.
|
||||
|
||||
3
node_modules/@actions/core/lib/command.d.ts
generated
vendored
3
node_modules/@actions/core/lib/command.d.ts
generated
vendored
@@ -1,4 +1,4 @@
|
||||
export interface CommandProperties {
|
||||
interface CommandProperties {
|
||||
[key: string]: any;
|
||||
}
|
||||
/**
|
||||
@@ -13,3 +13,4 @@ export interface CommandProperties {
|
||||
*/
|
||||
export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
|
||||
export declare function issue(name: string, message?: string): void;
|
||||
export {};
|
||||
|
||||
41
node_modules/@actions/core/lib/core.d.ts
generated
vendored
41
node_modules/@actions/core/lib/core.d.ts
generated
vendored
@@ -20,33 +20,6 @@ export declare enum ExitCode {
|
||||
*/
|
||||
Failure = 1
|
||||
}
|
||||
/**
|
||||
* Optional properties that can be sent with annotatation commands (notice, error, and warning)
|
||||
* See: https://docs.github.com/en/rest/reference/checks#create-a-check-run for more information about annotations.
|
||||
*/
|
||||
export interface AnnotationProperties {
|
||||
/**
|
||||
* A title for the annotation.
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* The start line for the annotation.
|
||||
*/
|
||||
startLine?: number;
|
||||
/**
|
||||
* The end line for the annotation. Defaults to `startLine` when `startLine` is provided.
|
||||
*/
|
||||
endLine?: number;
|
||||
/**
|
||||
* The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
|
||||
*/
|
||||
startColumn?: number;
|
||||
/**
|
||||
* The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
|
||||
* Defaults to `startColumn` when `startColumn` is provided.
|
||||
*/
|
||||
endColumn?: number;
|
||||
}
|
||||
/**
|
||||
* Sets env variable for this action and future actions in the job
|
||||
* @param name the name of the variable to set
|
||||
@@ -124,21 +97,13 @@ export declare function debug(message: string): void;
|
||||
/**
|
||||
* Adds an error issue
|
||||
* @param message error issue message. Errors will be converted to string via toString()
|
||||
* @param properties optional properties to add to the annotation.
|
||||
*/
|
||||
export declare function error(message: string | Error, properties?: AnnotationProperties): void;
|
||||
export declare function error(message: string | Error): void;
|
||||
/**
|
||||
* Adds a warning issue
|
||||
* Adds an warning issue
|
||||
* @param message warning issue message. Errors will be converted to string via toString()
|
||||
* @param properties optional properties to add to the annotation.
|
||||
*/
|
||||
export declare function warning(message: string | Error, properties?: AnnotationProperties): void;
|
||||
/**
|
||||
* Adds a notice issue
|
||||
* @param message notice issue message. Errors will be converted to string via toString()
|
||||
* @param properties optional properties to add to the annotation.
|
||||
*/
|
||||
export declare function notice(message: string | Error, properties?: AnnotationProperties): void;
|
||||
export declare function warning(message: string | Error): void;
|
||||
/**
|
||||
* Writes info to log with console.log.
|
||||
* @param message info message
|
||||
|
||||
23
node_modules/@actions/core/lib/core.js
generated
vendored
23
node_modules/@actions/core/lib/core.js
generated
vendored
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
|
||||
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
|
||||
const command_1 = require("./command");
|
||||
const file_command_1 = require("./file-command");
|
||||
const utils_1 = require("./utils");
|
||||
@@ -206,30 +206,19 @@ exports.debug = debug;
|
||||
/**
|
||||
* Adds an error issue
|
||||
* @param message error issue message. Errors will be converted to string via toString()
|
||||
* @param properties optional properties to add to the annotation.
|
||||
*/
|
||||
function error(message, properties = {}) {
|
||||
command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
|
||||
function error(message) {
|
||||
command_1.issue('error', message instanceof Error ? message.toString() : message);
|
||||
}
|
||||
exports.error = error;
|
||||
/**
|
||||
* Adds a warning issue
|
||||
* Adds an warning issue
|
||||
* @param message warning issue message. Errors will be converted to string via toString()
|
||||
* @param properties optional properties to add to the annotation.
|
||||
*/
|
||||
function warning(message, properties = {}) {
|
||||
command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
|
||||
function warning(message) {
|
||||
command_1.issue('warning', message instanceof Error ? message.toString() : message);
|
||||
}
|
||||
exports.warning = warning;
|
||||
/**
|
||||
* Adds a notice issue
|
||||
* @param message notice issue message. Errors will be converted to string via toString()
|
||||
* @param properties optional properties to add to the annotation.
|
||||
*/
|
||||
function notice(message, properties = {}) {
|
||||
command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
|
||||
}
|
||||
exports.notice = notice;
|
||||
/**
|
||||
* Writes info to log with console.log.
|
||||
* @param message info message
|
||||
|
||||
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,mCAA2D;AAE3D,uCAAwB;AACxB,2CAA4B;AAa5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAkCD,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAQ;IACnD,MAAM,YAAY,GAAG,sBAAc,CAAC,GAAG,CAAC,CAAA;IACxC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,CAAA;IAEhC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAA;IAChD,IAAI,QAAQ,EAAE;QACZ,MAAM,SAAS,GAAG,qCAAqC,CAAA;QACvD,MAAM,YAAY,GAAG,GAAG,IAAI,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,YAAY,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;QACzF,2BAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAA;KACtC;SAAM;QACL,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,YAAY,CAAC,CAAA;KAC9C;AACH,CAAC;AAZD,wCAYC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;AACtC,CAAC;AAFD,8BAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,SAAiB;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;IACjD,IAAI,QAAQ,EAAE;QACZ,2BAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACpC;SAAM;QACL,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;KACxC;IACD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;AAC7E,CAAC;AARD,0BAQC;AAED;;;;;;;;GAQG;AACH,SAAgB,QAAQ,CAAC,IAAY,EAAE,OAAsB;IAC3D,MAAM,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;IACrE,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAA;KAC5D;IAED,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,KAAK,KAAK,EAAE;QAC/C,OAAO,GAAG,CAAA;KACX;IAED,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;AACnB,CAAC;AAZD,4BAYC;AAED;;;;;;;GAOG;AACH,SAAgB,iBAAiB,CAC/B,IAAY,EACZ,OAAsB;IAEtB,MAAM,MAAM,GAAa,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;SAC7C,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;IAExB,OAAO,MAAM,CAAA;AACf,CAAC;AATD,8CASC;AAED;;;;;;;;;GASG;AACH,SAAgB,eAAe,CAAC,IAAY,EAAE,OAAsB;IAClE,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1C,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACnC,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA;IACxC,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAA;IAC1C,MAAM,IAAI,SAAS,CACjB,6DAA6D,IAAI,IAAI;QACnE,4EAA4E,CAC/E,CAAA;AACH,CAAC;AAVD,0CAUC;AAED;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IAC5B,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAHD,8BAGC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAgB;IAC7C,eAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;AACvC,CAAC;AAFD,wCAEC;AAED,yEAAyE;AACzE,UAAU;AACV,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAuB;IAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAA;IAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;AAChB,CAAC;AAJD,8BAIC;AAED,yEAAyE;AACzE,mBAAmB;AACnB,yEAAyE;AAEzE;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAA;AAC5C,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAe;IACnC,sBAAY,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACpC,CAAC;AAFD,sBAEC;AAED;;;;GAIG;AACH,SAAgB,KAAK,CACnB,OAAuB,EACvB,aAAmC,EAAE;IAErC,sBAAY,CACV,OAAO,EACP,2BAAmB,CAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,sBASC;AAED;;;;GAIG;AACH,SAAgB,OAAO,CACrB,OAAuB,EACvB,aAAmC,EAAE;IAErC,sBAAY,CACV,SAAS,EACT,2BAAmB,CAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,0BASC;AAED;;;;GAIG;AACH,SAAgB,MAAM,CACpB,OAAuB,EACvB,aAAmC,EAAE;IAErC,sBAAY,CACV,QAAQ,EACR,2BAAmB,CAAC,UAAU,CAAC,EAC/B,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CACxD,CAAA;AACH,CAAC;AATD,wBASC;AAED;;;GAGG;AACH,SAAgB,IAAI,CAAC,OAAe;IAClC,OAAO,CAAC,MAAM,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"}
|
||||
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,iDAA+D;AAC/D,mCAAsC;AAEtC,uCAAwB;AACxB,2CAA4B;AAa5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAED,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAQ;IACnD,MAAM,YAAY,GAAG,sBAAc,CAAC,GAAG,CAAC,CAAA;IACxC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,CAAA;IAEhC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAA;IAChD,IAAI,QAAQ,EAAE;QACZ,MAAM,SAAS,GAAG,qCAAqC,CAAA;QACvD,MAAM,YAAY,GAAG,GAAG,IAAI,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,YAAY,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;QACzF,2BAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAA;KACtC;SAAM;QACL,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,YAAY,CAAC,CAAA;KAC9C;AACH,CAAC;AAZD,wCAYC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;AACtC,CAAC;AAFD,8BAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,SAAiB;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;IACjD,IAAI,QAAQ,EAAE;QACZ,2BAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACpC;SAAM;QACL,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;KACxC;IACD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;AAC7E,CAAC;AARD,0BAQC;AAED;;;;;;;;GAQG;AACH,SAAgB,QAAQ,CAAC,IAAY,EAAE,OAAsB;IAC3D,MAAM,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;IACrE,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAA;KAC5D;IAED,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,KAAK,KAAK,EAAE;QAC/C,OAAO,GAAG,CAAA;KACX;IAED,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;AACnB,CAAC;AAZD,4BAYC;AAED;;;;;;;GAOG;AACH,SAAgB,iBAAiB,CAC/B,IAAY,EACZ,OAAsB;IAEtB,MAAM,MAAM,GAAa,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;SAC7C,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;IAExB,OAAO,MAAM,CAAA;AACf,CAAC;AATD,8CASC;AAED;;;;;;;;;GASG;AACH,SAAgB,eAAe,CAAC,IAAY,EAAE,OAAsB;IAClE,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1C,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;IAC9C,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACnC,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA;IACxC,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAA;IAC1C,MAAM,IAAI,SAAS,CACjB,6DAA6D,IAAI,IAAI;QACnE,4EAA4E,CAC/E,CAAA;AACH,CAAC;AAVD,0CAUC;AAED;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IAC5B,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAHD,8BAGC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAgB;IAC7C,eAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;AACvC,CAAC;AAFD,wCAEC;AAED,yEAAyE;AACzE,UAAU;AACV,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAuB;IAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAA;IAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;AAChB,CAAC;AAJD,8BAIC;AAED,yEAAyE;AACzE,mBAAmB;AACnB,yEAAyE;AAEzE;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAA;AAC5C,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAe;IACnC,sBAAY,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACpC,CAAC;AAFD,sBAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAuB;IAC3C,eAAK,CAAC,OAAO,EAAE,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AACzE,CAAC;AAFD,sBAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,OAAuB;IAC7C,eAAK,CAAC,SAAS,EAAE,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AAC3E,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,IAAI,CAAC,OAAe;IAClC,OAAO,CAAC,MAAM,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"}
|
||||
9
node_modules/@actions/core/lib/utils.d.ts
generated
vendored
9
node_modules/@actions/core/lib/utils.d.ts
generated
vendored
@@ -1,14 +1,5 @@
|
||||
import { AnnotationProperties } from './core';
|
||||
import { CommandProperties } from './command';
|
||||
/**
|
||||
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
||||
* @param input input to sanitize into a string
|
||||
*/
|
||||
export declare function toCommandValue(input: any): string;
|
||||
/**
|
||||
*
|
||||
* @param annotationProperties
|
||||
* @returns The command properties to send with the actual annotation command
|
||||
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
|
||||
*/
|
||||
export declare function toCommandProperties(annotationProperties: AnnotationProperties): CommandProperties;
|
||||
|
||||
21
node_modules/@actions/core/lib/utils.js
generated
vendored
21
node_modules/@actions/core/lib/utils.js
generated
vendored
@@ -2,7 +2,7 @@
|
||||
// We use any as a valid input type
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.toCommandProperties = exports.toCommandValue = void 0;
|
||||
exports.toCommandValue = void 0;
|
||||
/**
|
||||
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
||||
* @param input input to sanitize into a string
|
||||
@@ -17,23 +17,4 @@ function toCommandValue(input) {
|
||||
return JSON.stringify(input);
|
||||
}
|
||||
exports.toCommandValue = toCommandValue;
|
||||
/**
|
||||
*
|
||||
* @param annotationProperties
|
||||
* @returns The command properties to send with the actual annotation command
|
||||
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
|
||||
*/
|
||||
function toCommandProperties(annotationProperties) {
|
||||
if (!Object.keys(annotationProperties).length) {
|
||||
return {};
|
||||
}
|
||||
return {
|
||||
title: annotationProperties.title,
|
||||
line: annotationProperties.startLine,
|
||||
endLine: annotationProperties.endLine,
|
||||
col: annotationProperties.startColumn,
|
||||
endColumn: annotationProperties.endColumn
|
||||
};
|
||||
}
|
||||
exports.toCommandProperties = toCommandProperties;
|
||||
//# sourceMappingURL=utils.js.map
|
||||
2
node_modules/@actions/core/lib/utils.js.map
generated
vendored
2
node_modules/@actions/core/lib/utils.js.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;;AAKvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,oBAA0C;IAE1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE;QAC7C,OAAO,EAAE,CAAA;KACV;IAED,OAAO;QACL,KAAK,EAAE,oBAAoB,CAAC,KAAK;QACjC,IAAI,EAAE,oBAAoB,CAAC,SAAS;QACpC,OAAO,EAAE,oBAAoB,CAAC,OAAO;QACrC,GAAG,EAAE,oBAAoB,CAAC,WAAW;QACrC,SAAS,EAAE,oBAAoB,CAAC,SAAS;KAC1C,CAAA;AACH,CAAC;AAdD,kDAcC"}
|
||||
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;;AAEvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC"}
|
||||
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.5.0",
|
||||
"version": "1.4.0",
|
||||
"description": "Actions core lib",
|
||||
"keywords": [
|
||||
"github",
|
||||
|
||||
4
node_modules/@types/node/README.md
generated
vendored
4
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: Mon, 06 Sep 2021 22:01:20 GMT
|
||||
* Last updated: Wed, 04 Aug 2021 16:31:27 GMT
|
||||
* Dependencies: none
|
||||
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
||||
|
||||
# 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), [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), [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), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), and [Linus Unnebäck](https://github.com/LinusU).
|
||||
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), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), and [Linus Unnebäck](https://github.com/LinusU).
|
||||
|
||||
532
node_modules/@types/node/assert.d.ts
generated
vendored
532
node_modules/@types/node/assert.d.ts
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* The `assert` module provides a set of assertion functions for verifying
|
||||
* invariants.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/assert.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/assert.js)
|
||||
*/
|
||||
declare module 'assert' {
|
||||
/**
|
||||
@@ -58,6 +58,19 @@ declare module 'assert' {
|
||||
* // before tracker.verify().
|
||||
* const callsfunc = tracker.calls(func);
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert');
|
||||
*
|
||||
* // Creates call tracker.
|
||||
* const tracker = new assert.CallTracker();
|
||||
*
|
||||
* function func() {}
|
||||
*
|
||||
* // Returns a function that wraps func() that must be called exact times
|
||||
* // before tracker.verify().
|
||||
* const callsfunc = tracker.calls(func);
|
||||
* ```
|
||||
* @since v14.2.0, v12.19.0
|
||||
* @param [fn='A no-op function']
|
||||
* @param [exact=1]
|
||||
@@ -96,6 +109,34 @@ declare module 'assert' {
|
||||
* // }
|
||||
* // ]
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert');
|
||||
*
|
||||
* // Creates call tracker.
|
||||
* const tracker = new assert.CallTracker();
|
||||
*
|
||||
* function func() {}
|
||||
*
|
||||
* function foo() {}
|
||||
*
|
||||
* // Returns a function that wraps func() that must be called exact times
|
||||
* // before tracker.verify().
|
||||
* const callsfunc = tracker.calls(func, 2);
|
||||
*
|
||||
* // Returns an array containing information on callsfunc()
|
||||
* tracker.report();
|
||||
* // [
|
||||
* // {
|
||||
* // message: 'Expected the func function to be executed 2 time(s) but was
|
||||
* // executed 0 time(s).',
|
||||
* // actual: 0,
|
||||
* // expected: 2,
|
||||
* // operator: 'func',
|
||||
* // stack: stack trace
|
||||
* // }
|
||||
* // ]
|
||||
* ```
|
||||
* @since v14.2.0, v12.19.0
|
||||
* @return of objects containing information about the wrapper functions returned by `calls`.
|
||||
*/
|
||||
@@ -121,6 +162,24 @@ declare module 'assert' {
|
||||
* // Will throw an error since callsfunc() was only called once.
|
||||
* tracker.verify();
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert');
|
||||
*
|
||||
* // Creates call tracker.
|
||||
* const tracker = new assert.CallTracker();
|
||||
*
|
||||
* function func() {}
|
||||
*
|
||||
* // Returns a function that wraps func() that must be called exact times
|
||||
* // before tracker.verify().
|
||||
* const callsfunc = tracker.calls(func, 2);
|
||||
*
|
||||
* callsfunc();
|
||||
*
|
||||
* // Will throw an error since callsfunc() was only called once.
|
||||
* tracker.verify();
|
||||
* ```
|
||||
* @since v14.2.0, v12.19.0
|
||||
*/
|
||||
verify(): void;
|
||||
@@ -155,6 +214,19 @@ declare module 'assert' {
|
||||
* // TypeError: need array
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.fail();
|
||||
* // AssertionError [ERR_ASSERTION]: Failed
|
||||
*
|
||||
* assert.fail('boom');
|
||||
* // AssertionError [ERR_ASSERTION]: boom
|
||||
*
|
||||
* assert.fail(new TypeError('need array'));
|
||||
* // TypeError: need array
|
||||
* ```
|
||||
*
|
||||
* Using `assert.fail()` with more than two arguments is possible but deprecated.
|
||||
* See below for further details.
|
||||
* @since v0.1.21
|
||||
@@ -216,6 +288,41 @@ declare module 'assert' {
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.ok(true);
|
||||
* // OK
|
||||
* assert.ok(1);
|
||||
* // OK
|
||||
*
|
||||
* assert.ok();
|
||||
* // AssertionError: No value argument passed to `assert.ok()`
|
||||
*
|
||||
* assert.ok(false, 'it\'s false');
|
||||
* // AssertionError: it's false
|
||||
*
|
||||
* // In the repl:
|
||||
* assert.ok(typeof 123 === 'string');
|
||||
* // AssertionError: false == true
|
||||
*
|
||||
* // In a file (e.g. test.js):
|
||||
* assert.ok(typeof 123 === 'string');
|
||||
* // AssertionError: The expression evaluated to a falsy value:
|
||||
* //
|
||||
* // assert.ok(typeof 123 === 'string')
|
||||
*
|
||||
* assert.ok(false);
|
||||
* // AssertionError: The expression evaluated to a falsy value:
|
||||
* //
|
||||
* // assert.ok(false)
|
||||
*
|
||||
* assert.ok(0);
|
||||
* // AssertionError: The expression evaluated to a falsy value:
|
||||
* //
|
||||
* // assert.ok(0)
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* import assert from 'assert/strict';
|
||||
*
|
||||
* // Using `assert()` works the same:
|
||||
@@ -224,6 +331,16 @@ declare module 'assert' {
|
||||
* //
|
||||
* // assert(0)
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert');
|
||||
*
|
||||
* // Using `assert()` works the same:
|
||||
* assert(0);
|
||||
* // AssertionError: The expression evaluated to a falsy value:
|
||||
* //
|
||||
* // assert(0)
|
||||
* ```
|
||||
* @since v0.1.21
|
||||
*/
|
||||
function ok(value: unknown, message?: string | Error): asserts value;
|
||||
@@ -256,6 +373,22 @@ declare module 'assert' {
|
||||
* // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert');
|
||||
*
|
||||
* assert.equal(1, 1);
|
||||
* // OK, 1 == 1
|
||||
* assert.equal(1, '1');
|
||||
* // OK, 1 == '1'
|
||||
* assert.equal(NaN, NaN);
|
||||
* // OK
|
||||
*
|
||||
* assert.equal(1, 2);
|
||||
* // AssertionError: 1 == 2
|
||||
* assert.equal({ a: { b: 1 } }, { a: { b: 1 } });
|
||||
* // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
|
||||
* ```
|
||||
*
|
||||
* If the values are not equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default
|
||||
* error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
|
||||
* @since v0.1.21
|
||||
@@ -287,6 +420,19 @@ declare module 'assert' {
|
||||
* // AssertionError: 1 != '1'
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert');
|
||||
*
|
||||
* assert.notEqual(1, 2);
|
||||
* // OK
|
||||
*
|
||||
* assert.notEqual(1, 1);
|
||||
* // AssertionError: 1 != 1
|
||||
*
|
||||
* assert.notEqual(1, '1');
|
||||
* // AssertionError: 1 != '1'
|
||||
* ```
|
||||
*
|
||||
* If the values are equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default error
|
||||
* message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
|
||||
* @since v0.1.21
|
||||
@@ -354,6 +500,39 @@ declare module 'assert' {
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert');
|
||||
*
|
||||
* const obj1 = {
|
||||
* a: {
|
||||
* b: 1
|
||||
* }
|
||||
* };
|
||||
* const obj2 = {
|
||||
* a: {
|
||||
* b: 2
|
||||
* }
|
||||
* };
|
||||
* const obj3 = {
|
||||
* a: {
|
||||
* b: 1
|
||||
* }
|
||||
* };
|
||||
* const obj4 = Object.create(obj1);
|
||||
*
|
||||
* assert.notDeepEqual(obj1, obj1);
|
||||
* // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
|
||||
*
|
||||
* assert.notDeepEqual(obj1, obj2);
|
||||
* // OK
|
||||
*
|
||||
* assert.notDeepEqual(obj1, obj3);
|
||||
* // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } }
|
||||
*
|
||||
* assert.notDeepEqual(obj1, obj4);
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* If the values are deeply equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a default
|
||||
* error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
|
||||
* instead of the `AssertionError`.
|
||||
@@ -392,6 +571,34 @@ declare module 'assert' {
|
||||
* // TypeError: Inputs are not identical
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.strictEqual(1, 2);
|
||||
* // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
|
||||
* //
|
||||
* // 1 !== 2
|
||||
*
|
||||
* assert.strictEqual(1, 1);
|
||||
* // OK
|
||||
*
|
||||
* assert.strictEqual('Hello foobar', 'Hello World!');
|
||||
* // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
|
||||
* // + actual - expected
|
||||
* //
|
||||
* // + 'Hello foobar'
|
||||
* // - 'Hello World!'
|
||||
* // ^
|
||||
*
|
||||
* const apples = 1;
|
||||
* const oranges = 2;
|
||||
* assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`);
|
||||
* // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2
|
||||
*
|
||||
* assert.strictEqual(1, '1', new TypeError('Inputs are not identical'));
|
||||
* // TypeError: Inputs are not identical
|
||||
* ```
|
||||
*
|
||||
* If the values are not strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
|
||||
* default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
|
||||
* instead of the `AssertionError`.
|
||||
@@ -417,6 +624,21 @@ declare module 'assert' {
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.notStrictEqual(1, 2);
|
||||
* // OK
|
||||
*
|
||||
* assert.notStrictEqual(1, 1);
|
||||
* // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to:
|
||||
* //
|
||||
* // 1
|
||||
*
|
||||
* assert.notStrictEqual(1, '1');
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* If the values are strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
|
||||
* default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
|
||||
* instead of the `AssertionError`.
|
||||
@@ -440,6 +662,13 @@ declare module 'assert' {
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.notDeepStrictEqual({ a: 1 }, { a: '1' });
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* If the values are deeply and strictly equal, an `AssertionError` is thrown
|
||||
* with a `message` property set equal to the value of the `message` parameter. If
|
||||
* the `message` parameter is undefined, a default error message is assigned. If
|
||||
@@ -533,6 +762,75 @@ declare module 'assert' {
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* const err = new TypeError('Wrong value');
|
||||
* err.code = 404;
|
||||
* err.foo = 'bar';
|
||||
* err.info = {
|
||||
* nested: true,
|
||||
* baz: 'text'
|
||||
* };
|
||||
* err.reg = /abc/i;
|
||||
*
|
||||
* assert.throws(
|
||||
* () => {
|
||||
* throw err;
|
||||
* },
|
||||
* {
|
||||
* name: 'TypeError',
|
||||
* message: 'Wrong value',
|
||||
* info: {
|
||||
* nested: true,
|
||||
* baz: 'text'
|
||||
* }
|
||||
* // Only properties on the validation object will be tested for.
|
||||
* // Using nested objects requires all properties to be present. Otherwise
|
||||
* // the validation is going to fail.
|
||||
* }
|
||||
* );
|
||||
*
|
||||
* // Using regular expressions to validate error properties:
|
||||
* throws(
|
||||
* () => {
|
||||
* throw err;
|
||||
* },
|
||||
* {
|
||||
* // The `name` and `message` properties are strings and using regular
|
||||
* // expressions on those will match against the string. If they fail, an
|
||||
* // error is thrown.
|
||||
* name: /^TypeError$/,
|
||||
* message: /Wrong/,
|
||||
* foo: 'bar',
|
||||
* info: {
|
||||
* nested: true,
|
||||
* // It is not possible to use regular expressions for nested properties!
|
||||
* baz: 'text'
|
||||
* },
|
||||
* // The `reg` property contains a regular expression and only if the
|
||||
* // validation object contains an identical regular expression, it is going
|
||||
* // to pass.
|
||||
* reg: /abc/i
|
||||
* }
|
||||
* );
|
||||
*
|
||||
* // Fails due to the different `message` and `name` properties:
|
||||
* throws(
|
||||
* () => {
|
||||
* const otherErr = new Error('Not found');
|
||||
* // Copy all enumerable properties from `err` to `otherErr`.
|
||||
* for (const [key, value] of Object.entries(err)) {
|
||||
* otherErr[key] = value;
|
||||
* }
|
||||
* throw otherErr;
|
||||
* },
|
||||
* // The error's `message` and `name` properties will also be checked when using
|
||||
* // an error as validation object.
|
||||
* err
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* Validate instanceof using constructor:
|
||||
*
|
||||
* ```js
|
||||
@@ -546,6 +844,17 @@ declare module 'assert' {
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.throws(
|
||||
* () => {
|
||||
* throw new Error('Wrong value');
|
||||
* },
|
||||
* Error
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions):
|
||||
*
|
||||
* Using a regular expression runs `.toString` on the error object, and will
|
||||
@@ -562,6 +871,17 @@ declare module 'assert' {
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.throws(
|
||||
* () => {
|
||||
* throw new Error('Wrong value');
|
||||
* },
|
||||
* /^Error: Wrong value$/
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* Custom error validation:
|
||||
*
|
||||
* The function must return `true` to indicate all internal validations passed.
|
||||
@@ -588,6 +908,27 @@ declare module 'assert' {
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.throws(
|
||||
* () => {
|
||||
* throw new Error('Wrong value');
|
||||
* },
|
||||
* (err) => {
|
||||
* assert(err instanceof Error);
|
||||
* assert(/value/.test(err));
|
||||
* // Avoid returning anything from validation functions besides `true`.
|
||||
* // Otherwise, it's not clear what part of the validation failed. Instead,
|
||||
* // throw an error about the specific validation that failed (as done in this
|
||||
* // example) and add as much helpful debugging information to that error as
|
||||
* // possible.
|
||||
* return true;
|
||||
* },
|
||||
* 'unexpected error'
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* `error` cannot be a string. If a string is provided as the second
|
||||
* argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Using the same
|
||||
* message as the thrown error message is going to result in an`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
|
||||
@@ -629,6 +970,42 @@ declare module 'assert' {
|
||||
* // AssertionError [ERR_ASSERTION]
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* function throwingFirst() {
|
||||
* throw new Error('First');
|
||||
* }
|
||||
*
|
||||
* function throwingSecond() {
|
||||
* throw new Error('Second');
|
||||
* }
|
||||
*
|
||||
* function notThrowing() {}
|
||||
*
|
||||
* // The second argument is a string and the input function threw an Error.
|
||||
* // The first case will not throw as it does not match for the error message
|
||||
* // thrown by the input function!
|
||||
* assert.throws(throwingFirst, 'Second');
|
||||
* // In the next example the message has no benefit over the message from the
|
||||
* // error and since it is not clear if the user intended to actually match
|
||||
* // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error.
|
||||
* assert.throws(throwingSecond, 'Second');
|
||||
* // TypeError [ERR_AMBIGUOUS_ARGUMENT]
|
||||
*
|
||||
* // The string is only used (as message) in case the function does not throw:
|
||||
* assert.throws(notThrowing, 'Second');
|
||||
* // AssertionError [ERR_ASSERTION]: Missing expected exception: Second
|
||||
*
|
||||
* // If it was intended to match for the error message do this instead:
|
||||
* // It does not throw because the error messages match.
|
||||
* assert.throws(throwingSecond, /Second$/);
|
||||
*
|
||||
* // If the error message does not match, an AssertionError is thrown.
|
||||
* assert.throws(throwingFirst, /Second$/);
|
||||
* // AssertionError [ERR_ASSERTION]
|
||||
* ```
|
||||
*
|
||||
* Due to the confusing error-prone notation, avoid a string as the second
|
||||
* argument.
|
||||
* @since v0.1.21
|
||||
@@ -667,6 +1044,17 @@ declare module 'assert' {
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.doesNotThrow(
|
||||
* () => {
|
||||
* throw new TypeError('Wrong value');
|
||||
* },
|
||||
* SyntaxError
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* However, the following will result in an `AssertionError` with the message
|
||||
* 'Got unwanted exception...':
|
||||
*
|
||||
@@ -681,6 +1069,17 @@ declare module 'assert' {
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.doesNotThrow(
|
||||
* () => {
|
||||
* throw new TypeError('Wrong value');
|
||||
* },
|
||||
* TypeError
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* If an `AssertionError` is thrown and a value is provided for the `message`parameter, the value of `message` will be appended to the `AssertionError` message:
|
||||
*
|
||||
* ```js
|
||||
@@ -695,6 +1094,19 @@ declare module 'assert' {
|
||||
* );
|
||||
* // Throws: AssertionError: Got unwanted exception: Whoops
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.doesNotThrow(
|
||||
* () => {
|
||||
* throw new TypeError('Wrong value');
|
||||
* },
|
||||
* /Wrong value/,
|
||||
* 'Whoops'
|
||||
* );
|
||||
* // Throws: AssertionError: Got unwanted exception: Whoops
|
||||
* ```
|
||||
* @since v0.1.21
|
||||
*/
|
||||
function doesNotThrow(block: () => unknown, message?: string | Error): void;
|
||||
@@ -729,6 +1141,32 @@ declare module 'assert' {
|
||||
* // at ifErrorFrame
|
||||
* // at errorFrame
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.ifError(null);
|
||||
* // OK
|
||||
* assert.ifError(0);
|
||||
* // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0
|
||||
* assert.ifError('error');
|
||||
* // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error'
|
||||
* assert.ifError(new Error());
|
||||
* // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error
|
||||
*
|
||||
* // Create some random error frames.
|
||||
* let err;
|
||||
* (function errorFrame() {
|
||||
* err = new Error('test error');
|
||||
* })();
|
||||
*
|
||||
* (function ifErrorFrame() {
|
||||
* assert.ifError(err);
|
||||
* })();
|
||||
* // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
|
||||
* // at ifErrorFrame
|
||||
* // at errorFrame
|
||||
* ```
|
||||
* @since v0.1.97
|
||||
*/
|
||||
function ifError(value: unknown): asserts value is null | undefined;
|
||||
@@ -765,6 +1203,22 @@ declare module 'assert' {
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* (async () => {
|
||||
* await assert.rejects(
|
||||
* async () => {
|
||||
* throw new TypeError('Wrong value');
|
||||
* },
|
||||
* {
|
||||
* name: 'TypeError',
|
||||
* message: 'Wrong value'
|
||||
* }
|
||||
* );
|
||||
* })();
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* import assert from 'assert/strict';
|
||||
*
|
||||
* await assert.rejects(
|
||||
@@ -780,6 +1234,23 @@ declare module 'assert' {
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* (async () => {
|
||||
* await assert.rejects(
|
||||
* async () => {
|
||||
* throw new TypeError('Wrong value');
|
||||
* },
|
||||
* (err) => {
|
||||
* assert.strictEqual(err.name, 'TypeError');
|
||||
* assert.strictEqual(err.message, 'Wrong value');
|
||||
* return true;
|
||||
* }
|
||||
* );
|
||||
* })();
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* import assert from 'assert/strict';
|
||||
*
|
||||
* assert.rejects(
|
||||
@@ -790,6 +1261,17 @@ declare module 'assert' {
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.rejects(
|
||||
* Promise.reject(new Error('Wrong value')),
|
||||
* Error
|
||||
* ).then(() => {
|
||||
* // ...
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* `error` cannot be a string. If a string is provided as the second
|
||||
* argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Please read the
|
||||
* example in {@link throws} carefully if using a string as the second
|
||||
@@ -831,6 +1313,19 @@ declare module 'assert' {
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* (async () => {
|
||||
* await assert.doesNotReject(
|
||||
* async () => {
|
||||
* throw new TypeError('Wrong value');
|
||||
* },
|
||||
* SyntaxError
|
||||
* );
|
||||
* })();
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* import assert from 'assert/strict';
|
||||
*
|
||||
* assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
|
||||
@@ -838,6 +1333,15 @@ declare module 'assert' {
|
||||
* // ...
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
|
||||
* .then(() => {
|
||||
* // ...
|
||||
* });
|
||||
* ```
|
||||
* @since v10.0.0
|
||||
*/
|
||||
function doesNotReject(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
|
||||
@@ -858,6 +1362,19 @@ declare module 'assert' {
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.match('I will fail', /pass/);
|
||||
* // AssertionError [ERR_ASSERTION]: The input did not match the regular ...
|
||||
*
|
||||
* assert.match(123, /pass/);
|
||||
* // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
|
||||
*
|
||||
* assert.match('I will pass', /pass/);
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* If the values do not match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
|
||||
* to the value of the `message` parameter. If the `message` parameter is
|
||||
* undefined, a default error message is assigned. If the `message` parameter is an
|
||||
@@ -881,6 +1398,19 @@ declare module 'assert' {
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const assert = require('assert/strict');
|
||||
*
|
||||
* assert.doesNotMatch('I will fail', /fail/);
|
||||
* // AssertionError [ERR_ASSERTION]: The input was expected to not match the ...
|
||||
*
|
||||
* assert.doesNotMatch(123, /pass/);
|
||||
* // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string.
|
||||
*
|
||||
* assert.doesNotMatch('I will pass', /different/);
|
||||
* // OK
|
||||
* ```
|
||||
*
|
||||
* If the values do match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
|
||||
* to the value of the `message` parameter. If the `message` parameter is
|
||||
* undefined, a default error message is assigned. If the `message` parameter is an
|
||||
|
||||
32
node_modules/@types/node/async_hooks.d.ts
generated
vendored
32
node_modules/@types/node/async_hooks.d.ts
generated
vendored
@@ -3,19 +3,19 @@
|
||||
* can be accessed using:
|
||||
*
|
||||
* ```js
|
||||
* import async_hooks from 'async_hooks';
|
||||
* const async_hooks = require('async_hooks');
|
||||
* ```
|
||||
* @experimental
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/async_hooks.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/async_hooks.js)
|
||||
*/
|
||||
declare module 'async_hooks' {
|
||||
/**
|
||||
* ```js
|
||||
* import { executionAsyncId } from 'async_hooks';
|
||||
* const async_hooks = require('async_hooks');
|
||||
*
|
||||
* console.log(executionAsyncId()); // 1 - bootstrap
|
||||
* console.log(async_hooks.executionAsyncId()); // 1 - bootstrap
|
||||
* fs.open(path, 'r', (err, fd) => {
|
||||
* console.log(executionAsyncId()); // 6 - open()
|
||||
* console.log(async_hooks.executionAsyncId()); // 6 - open()
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
@@ -51,11 +51,11 @@ declare module 'async_hooks' {
|
||||
* but having an object representing the top-level can be helpful.
|
||||
*
|
||||
* ```js
|
||||
* import { open } from 'fs';
|
||||
* import { executionAsyncId, executionAsyncResource } from 'async_hooks';
|
||||
* const { open } = require('fs');
|
||||
* const { executionAsyncId, executionAsyncResource } = require('async_hooks');
|
||||
*
|
||||
* console.log(executionAsyncId(), executionAsyncResource()); // 1 {}
|
||||
* open(new URL(import.meta.url), 'r', (err, fd) => {
|
||||
* open(__filename, 'r', (err, fd) => {
|
||||
* console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap
|
||||
* });
|
||||
* ```
|
||||
@@ -64,12 +64,12 @@ declare module 'async_hooks' {
|
||||
* use of a tracking `Map` to store the metadata:
|
||||
*
|
||||
* ```js
|
||||
* import { createServer } from 'http';
|
||||
* import {
|
||||
* const { createServer } = require('http');
|
||||
* const {
|
||||
* executionAsyncId,
|
||||
* executionAsyncResource,
|
||||
* createHook
|
||||
* } from 'async_hooks';
|
||||
* } = require('async_hooks');
|
||||
* const sym = Symbol('state'); // Private symbol to avoid pollution
|
||||
*
|
||||
* createHook({
|
||||
@@ -167,9 +167,9 @@ declare module 'async_hooks' {
|
||||
* specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section.
|
||||
*
|
||||
* ```js
|
||||
* import { createHook } from 'async_hooks';
|
||||
* const async_hooks = require('async_hooks');
|
||||
*
|
||||
* const asyncHook = createHook({
|
||||
* const asyncHook = async_hooks.createHook({
|
||||
* init(asyncId, type, triggerAsyncId, resource) { },
|
||||
* destroy(asyncId) { }
|
||||
* });
|
||||
@@ -223,7 +223,7 @@ declare module 'async_hooks' {
|
||||
* The following is an overview of the `AsyncResource` API.
|
||||
*
|
||||
* ```js
|
||||
* import { AsyncResource, executionAsyncId } from 'async_hooks';
|
||||
* const { AsyncResource, executionAsyncId } = require('async_hooks');
|
||||
*
|
||||
* // AsyncResource() is meant to be extended. Instantiating a
|
||||
* // new AsyncResource() also triggers init. If triggerAsyncId is omitted then
|
||||
@@ -331,8 +331,8 @@ declare module 'async_hooks' {
|
||||
* logged within each request.
|
||||
*
|
||||
* ```js
|
||||
* import http from 'http';
|
||||
* import { AsyncLocalStorage } from 'async_hooks';
|
||||
* const http = require('http');
|
||||
* const { AsyncLocalStorage } = require('async_hooks');
|
||||
*
|
||||
* const asyncLocalStorage = new AsyncLocalStorage();
|
||||
*
|
||||
|
||||
19
node_modules/@types/node/base.d.ts
generated
vendored
Executable file
19
node_modules/@types/node/base.d.ts
generated
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
// NOTE: These definitions support NodeJS and TypeScript 3.7.
|
||||
|
||||
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
||||
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
||||
// - ~/index.d.ts - Definitions specific to TypeScript 2.1
|
||||
// - ~/ts3.7/base.d.ts - Definitions specific to TypeScript 3.7
|
||||
// - ~/ts3.7/index.d.ts - Definitions specific to TypeScript 3.7 with assert pulled in
|
||||
|
||||
// Reference required types from the default lib:
|
||||
/// <reference lib="es2018" />
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/// <reference lib="esnext.intl" />
|
||||
/// <reference lib="esnext.bigint" />
|
||||
|
||||
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
||||
/// <reference path="ts3.6/base.d.ts" />
|
||||
|
||||
// TypeScript 3.7-specific augmentations:
|
||||
/// <reference path="assert.d.ts" />
|
||||
439
node_modules/@types/node/buffer.d.ts
generated
vendored
439
node_modules/@types/node/buffer.d.ts
generated
vendored
@@ -6,12 +6,10 @@
|
||||
* extends it with methods that cover additional use cases. Node.js APIs accept
|
||||
* plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)s wherever `Buffer`s are supported as well.
|
||||
*
|
||||
* While the `Buffer` class is available within the global scope, it is still
|
||||
* recommended to explicitly reference it via an import or require statement.
|
||||
* The `Buffer` class is within the global scope, making it unlikely that one
|
||||
* would need to ever use `require('buffer').Buffer`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Creates a zero-filled Buffer of length 10.
|
||||
* const buf1 = Buffer.alloc(10);
|
||||
*
|
||||
@@ -41,7 +39,7 @@
|
||||
* // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
|
||||
* const buf7 = Buffer.from('tést', 'latin1');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/buffer.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/buffer.js)
|
||||
*/
|
||||
declare module 'buffer' {
|
||||
import { BinaryLike } from 'node:crypto';
|
||||
@@ -66,9 +64,9 @@ declare module 'buffer' {
|
||||
* sequence cannot be adequately represented in the target encoding. For instance:
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer, transcode } from 'buffer';
|
||||
* const buffer = require('buffer');
|
||||
*
|
||||
* const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii');
|
||||
* const newBuf = buffer.transcode(Buffer.from('€'), 'utf8', 'ascii');
|
||||
* console.log(newBuf.toString('ascii'));
|
||||
* // Prints: '?'
|
||||
* ```
|
||||
@@ -86,14 +84,6 @@ declare module 'buffer' {
|
||||
new (size: number): Buffer;
|
||||
prototype: Buffer;
|
||||
};
|
||||
/**
|
||||
* Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
|
||||
* a prior call to `URL.createObjectURL()`.
|
||||
* @since v16.7.0
|
||||
* @experimental
|
||||
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
||||
*/
|
||||
export function resolveObjectURL(id: string): Blob | undefined;
|
||||
export { Buffer };
|
||||
/**
|
||||
* @experimental
|
||||
@@ -152,16 +142,11 @@ declare module 'buffer' {
|
||||
*/
|
||||
slice(start?: number, end?: number, type?: string): Blob;
|
||||
/**
|
||||
* Returns a promise that fulfills with the contents of the `Blob` decoded as a
|
||||
* UTF-8 string.
|
||||
* Returns a promise that resolves the contents of the `Blob` decoded as a UTF-8
|
||||
* string.
|
||||
* @since v15.7.0
|
||||
*/
|
||||
text(): Promise<string>;
|
||||
/**
|
||||
* Returns a new `ReadableStream` that allows the content of the `Blob` to be read.
|
||||
* @since v16.7.0
|
||||
*/
|
||||
stream(): unknown; // pending web streams types
|
||||
}
|
||||
export import atob = globalThis.atob;
|
||||
export import btoa = globalThis.btoa;
|
||||
@@ -225,21 +210,12 @@ declare module 'buffer' {
|
||||
*/
|
||||
new (buffer: Buffer): Buffer;
|
||||
/**
|
||||
* Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
|
||||
* Array entries outside that range will be truncated to fit into it.
|
||||
* When passed a reference to the .buffer property of a TypedArray instance,
|
||||
* the newly created Buffer will share the same allocated memory as the TypedArray.
|
||||
* The optional {byteOffset} and {length} arguments specify a memory range
|
||||
* within the {arrayBuffer} that will be shared by the Buffer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'.
|
||||
* const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
|
||||
* ```
|
||||
*
|
||||
* A `TypeError` will be thrown if `array` is not an `Array` or another type
|
||||
* appropriate for `Buffer.from()` variants.
|
||||
*
|
||||
* `Buffer.from(array)` and `Buffer.from(string)` may also use the internal`Buffer` pool like `Buffer.allocUnsafe()` does.
|
||||
* @since v5.10.0
|
||||
* @param arrayBuffer The .buffer property of any TypedArray or a new ArrayBuffer()
|
||||
*/
|
||||
from(arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>, byteOffset?: number, length?: number): Buffer;
|
||||
/**
|
||||
@@ -267,264 +243,67 @@ declare module 'buffer' {
|
||||
*/
|
||||
of(...items: number[]): Buffer;
|
||||
/**
|
||||
* Returns `true` if `obj` is a `Buffer`, `false` otherwise.
|
||||
* Returns true if {obj} is a Buffer
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* Buffer.isBuffer(Buffer.alloc(10)); // true
|
||||
* Buffer.isBuffer(Buffer.from('foo')); // true
|
||||
* Buffer.isBuffer('a string'); // false
|
||||
* Buffer.isBuffer([]); // false
|
||||
* Buffer.isBuffer(new Uint8Array(1024)); // false
|
||||
* ```
|
||||
* @since v0.1.101
|
||||
* @param obj object to test.
|
||||
*/
|
||||
isBuffer(obj: any): obj is Buffer;
|
||||
/**
|
||||
* Returns `true` if `encoding` is the name of a supported character encoding,
|
||||
* or `false` otherwise.
|
||||
* Returns true if {encoding} is a valid encoding argument.
|
||||
* Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* console.log(Buffer.isEncoding('utf8'));
|
||||
* // Prints: true
|
||||
*
|
||||
* console.log(Buffer.isEncoding('hex'));
|
||||
* // Prints: true
|
||||
*
|
||||
* console.log(Buffer.isEncoding('utf/8'));
|
||||
* // Prints: false
|
||||
*
|
||||
* console.log(Buffer.isEncoding(''));
|
||||
* // Prints: false
|
||||
* ```
|
||||
* @since v0.9.1
|
||||
* @param encoding A character encoding name to check.
|
||||
* @param encoding string to test.
|
||||
*/
|
||||
isEncoding(encoding: string): encoding is BufferEncoding;
|
||||
/**
|
||||
* Returns the byte length of a string when encoded using `encoding`.
|
||||
* This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account
|
||||
* for the encoding that is used to convert the string into bytes.
|
||||
* Gives the actual byte length of a string. encoding defaults to 'utf8'.
|
||||
* This is not the same as String.prototype.length since that returns the number of characters in a string.
|
||||
*
|
||||
* For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input.
|
||||
* For strings that contain non-base64/hex-encoded data (e.g. whitespace), the
|
||||
* return value might be greater than the length of a `Buffer` created from the
|
||||
* string.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const str = '\u00bd + \u00bc = \u00be';
|
||||
*
|
||||
* console.log(`${str}: ${str.length} characters, ` +
|
||||
* `${Buffer.byteLength(str, 'utf8')} bytes`);
|
||||
* // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes
|
||||
* ```
|
||||
*
|
||||
* When `string` is a
|
||||
* `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/-
|
||||
* Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop-
|
||||
* er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned.
|
||||
* @since v0.1.90
|
||||
* @param string A value to calculate the length of.
|
||||
* @param [encoding='utf8'] If `string` is a string, this is its encoding.
|
||||
* @return The number of bytes contained within `string`.
|
||||
* @param string string to test.
|
||||
* @param encoding encoding used to evaluate (defaults to 'utf8')
|
||||
*/
|
||||
byteLength(string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding): number;
|
||||
/**
|
||||
* Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.
|
||||
* Returns a buffer which is the result of concatenating all the buffers in the list together.
|
||||
*
|
||||
* If the list has no items, or if the `totalLength` is 0, then a new zero-length`Buffer` is returned.
|
||||
* If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer.
|
||||
* If the list has exactly one item, then the first item of the list is returned.
|
||||
* If the list has more than one item, then a new Buffer is created.
|
||||
*
|
||||
* If `totalLength` is not provided, it is calculated from the `Buffer` instances
|
||||
* in `list` by adding their lengths.
|
||||
*
|
||||
* If `totalLength` is provided, it is coerced to an unsigned integer. If the
|
||||
* combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is
|
||||
* truncated to `totalLength`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Create a single `Buffer` from a list of three `Buffer` instances.
|
||||
*
|
||||
* const buf1 = Buffer.alloc(10);
|
||||
* const buf2 = Buffer.alloc(14);
|
||||
* const buf3 = Buffer.alloc(18);
|
||||
* const totalLength = buf1.length + buf2.length + buf3.length;
|
||||
*
|
||||
* console.log(totalLength);
|
||||
* // Prints: 42
|
||||
*
|
||||
* const bufA = Buffer.concat([buf1, buf2, buf3], totalLength);
|
||||
*
|
||||
* console.log(bufA);
|
||||
* // Prints: <Buffer 00 00 00 00 ...>
|
||||
* console.log(bufA.length);
|
||||
* // Prints: 42
|
||||
* ```
|
||||
*
|
||||
* `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
|
||||
* @since v0.7.11
|
||||
* @param list List of `Buffer` or {@link Uint8Array} instances to concatenate.
|
||||
* @param totalLength Total length of the `Buffer` instances in `list` when concatenated.
|
||||
* @param list An array of Buffer objects to concatenate
|
||||
* @param totalLength Total length of the buffers when concatenated.
|
||||
* If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
|
||||
*/
|
||||
concat(list: ReadonlyArray<Uint8Array>, totalLength?: number): Buffer;
|
||||
/**
|
||||
* Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf1 = Buffer.from('1234');
|
||||
* const buf2 = Buffer.from('0123');
|
||||
* const arr = [buf1, buf2];
|
||||
*
|
||||
* console.log(arr.sort(Buffer.compare));
|
||||
* // Prints: [ <Buffer 30 31 32 33>, <Buffer 31 32 33 34> ]
|
||||
* // (This result is equal to: [buf2, buf1].)
|
||||
* ```
|
||||
* @since v0.11.13
|
||||
* @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details.
|
||||
* The same as buf1.compare(buf2).
|
||||
*/
|
||||
compare(buf1: Uint8Array, buf2: Uint8Array): number;
|
||||
/**
|
||||
* Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
|
||||
* Allocates a new buffer of {size} octets.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.alloc(5);
|
||||
*
|
||||
* console.log(buf);
|
||||
* // Prints: <Buffer 00 00 00 00 00>
|
||||
* ```
|
||||
*
|
||||
* If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
|
||||
*
|
||||
* If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.alloc(5, 'a');
|
||||
*
|
||||
* console.log(buf);
|
||||
* // Prints: <Buffer 61 61 61 61 61>
|
||||
* ```
|
||||
*
|
||||
* If both `fill` and `encoding` are specified, the allocated `Buffer` will be
|
||||
* initialized by calling `buf.fill(fill, encoding)`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
|
||||
*
|
||||
* console.log(buf);
|
||||
* // Prints: <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64>
|
||||
* ```
|
||||
*
|
||||
* Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance
|
||||
* contents will never contain sensitive data from previous allocations, including
|
||||
* data that might not have been allocated for `Buffer`s.
|
||||
*
|
||||
* A `TypeError` will be thrown if `size` is not a number.
|
||||
* @since v5.10.0
|
||||
* @param size The desired length of the new `Buffer`.
|
||||
* @param [fill=0] A value to pre-fill the new `Buffer` with.
|
||||
* @param [encoding='utf8'] If `fill` is a string, this is its encoding.
|
||||
* @param size count of octets to allocate.
|
||||
* @param fill if specified, buffer will be initialized by calling buf.fill(fill).
|
||||
* If parameter is omitted, buffer will be filled with zeros.
|
||||
* @param encoding encoding used for call to buf.fill while initalizing
|
||||
*/
|
||||
alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer;
|
||||
/**
|
||||
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
|
||||
* Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
|
||||
* of the newly created Buffer are unknown and may contain sensitive data.
|
||||
*
|
||||
* The underlying memory for `Buffer` instances created in this way is _not_
|
||||
* _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(10);
|
||||
*
|
||||
* console.log(buf);
|
||||
* // Prints (contents may vary): <Buffer a0 8b 28 3f 01 00 00 00 50 32>
|
||||
*
|
||||
* buf.fill(0);
|
||||
*
|
||||
* console.log(buf);
|
||||
* // Prints: <Buffer 00 00 00 00 00 00 00 00 00 00>
|
||||
* ```
|
||||
*
|
||||
* A `TypeError` will be thrown if `size` is not a number.
|
||||
*
|
||||
* The `Buffer` module pre-allocates an internal `Buffer` instance of
|
||||
* size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`,`Buffer.from(array)`, `Buffer.concat()`, and the
|
||||
* deprecated`new Buffer(size)` constructor only when `size` is less than or equal
|
||||
* to `Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two).
|
||||
*
|
||||
* Use of this pre-allocated internal memory pool is a key difference between
|
||||
* calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
|
||||
* Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less
|
||||
* than or equal to half `Buffer.poolSize`. The
|
||||
* difference is subtle but can be important when an application requires the
|
||||
* additional performance that `Buffer.allocUnsafe()` provides.
|
||||
* @since v5.10.0
|
||||
* @param size The desired length of the new `Buffer`.
|
||||
* @param size count of octets to allocate
|
||||
*/
|
||||
allocUnsafe(size: number): Buffer;
|
||||
/**
|
||||
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. A zero-length `Buffer` is created
|
||||
* if `size` is 0.
|
||||
* Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents
|
||||
* of the newly created Buffer are unknown and may contain sensitive data.
|
||||
*
|
||||
* The underlying memory for `Buffer` instances created in this way is _not_
|
||||
* _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `buf.fill(0)` to initialize
|
||||
* such `Buffer` instances with zeroes.
|
||||
*
|
||||
* When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
|
||||
* allocations under 4 KB are sliced from a single pre-allocated `Buffer`. This
|
||||
* allows applications to avoid the garbage collection overhead of creating many
|
||||
* individually allocated `Buffer` instances. This approach improves both
|
||||
* performance and memory usage by eliminating the need to track and clean up as
|
||||
* many individual `ArrayBuffer` objects.
|
||||
*
|
||||
* However, in the case where a developer may need to retain a small chunk of
|
||||
* memory from a pool for an indeterminate amount of time, it may be appropriate
|
||||
* to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and
|
||||
* then copying out the relevant bits.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Need to keep around a few small chunks of memory.
|
||||
* const store = [];
|
||||
*
|
||||
* socket.on('readable', () => {
|
||||
* let data;
|
||||
* while (null !== (data = readable.read())) {
|
||||
* // Allocate for retained data.
|
||||
* const sb = Buffer.allocUnsafeSlow(10);
|
||||
*
|
||||
* // Copy the data into the new allocation.
|
||||
* data.copy(sb, 0, 0, 10);
|
||||
*
|
||||
* store.push(sb);
|
||||
* }
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* A `TypeError` will be thrown if `size` is not a number.
|
||||
* @since v5.12.0
|
||||
* @param size The desired length of the new `Buffer`.
|
||||
* @param size count of octets to allocate
|
||||
*/
|
||||
allocUnsafeSlow(size: number): Buffer;
|
||||
/**
|
||||
* This is the size (in bytes) of pre-allocated internal `Buffer` instances used
|
||||
* for pooling. This value may be modified.
|
||||
* @since v0.11.3
|
||||
* This is the number of bytes used to determine the size of pre-allocated, internal Buffer instances used for pooling. This value may be modified.
|
||||
*/
|
||||
poolSize: number;
|
||||
}
|
||||
@@ -535,8 +314,6 @@ declare module 'buffer' {
|
||||
* written. However, partially encoded characters will not be written.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.alloc(256);
|
||||
*
|
||||
* const len = buf.write('\u00bd + \u00bc = \u00be', 0);
|
||||
@@ -571,8 +348,6 @@ declare module 'buffer' {
|
||||
* as {@link constants.MAX_STRING_LENGTH}.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf1 = Buffer.allocUnsafe(26);
|
||||
*
|
||||
* for (let i = 0; i < 26; i++) {
|
||||
@@ -608,8 +383,6 @@ declare module 'buffer' {
|
||||
* In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]);
|
||||
* const json = JSON.stringify(buf);
|
||||
*
|
||||
@@ -635,8 +408,6 @@ declare module 'buffer' {
|
||||
* Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf1 = Buffer.from('ABC');
|
||||
* const buf2 = Buffer.from('414243', 'hex');
|
||||
* const buf3 = Buffer.from('ABCD');
|
||||
@@ -659,8 +430,6 @@ declare module 'buffer' {
|
||||
* * `-1` is returned if `target` should come _after_`buf` when sorted.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf1 = Buffer.from('ABC');
|
||||
* const buf2 = Buffer.from('BCD');
|
||||
* const buf3 = Buffer.from('ABCD');
|
||||
@@ -683,8 +452,6 @@ declare module 'buffer' {
|
||||
* The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
||||
* const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]);
|
||||
*
|
||||
@@ -713,8 +480,6 @@ declare module 'buffer' {
|
||||
* different function arguments.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Create two `Buffer` instances.
|
||||
* const buf1 = Buffer.allocUnsafe(26);
|
||||
* const buf2 = Buffer.allocUnsafe(26).fill('!');
|
||||
@@ -734,8 +499,6 @@ declare module 'buffer' {
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Create a `Buffer` and copy data from one region to an overlapping region
|
||||
* // within the same `Buffer`.
|
||||
*
|
||||
@@ -769,8 +532,6 @@ declare module 'buffer' {
|
||||
* which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from('buffer');
|
||||
*
|
||||
* const copiedBuf = Uint8Array.prototype.slice.call(buf);
|
||||
@@ -798,8 +559,6 @@ declare module 'buffer' {
|
||||
* Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte
|
||||
* // from the original `Buffer`.
|
||||
*
|
||||
@@ -825,8 +584,6 @@ declare module 'buffer' {
|
||||
* end of `buf` rather than the beginning.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from('buffer');
|
||||
*
|
||||
* console.log(buf.subarray(-6, -1).toString());
|
||||
@@ -852,8 +609,6 @@ declare module 'buffer' {
|
||||
* `value` is interpreted and written as a two's complement signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(8);
|
||||
*
|
||||
* buf.writeBigInt64BE(0x0102030405060708n, 0);
|
||||
@@ -873,8 +628,6 @@ declare module 'buffer' {
|
||||
* `value` is interpreted and written as a two's complement signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(8);
|
||||
*
|
||||
* buf.writeBigInt64LE(0x0102030405060708n, 0);
|
||||
@@ -894,8 +647,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `writeBigUint64BE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(8);
|
||||
*
|
||||
* buf.writeBigUInt64BE(0xdecafafecacefaden, 0);
|
||||
@@ -913,8 +664,6 @@ declare module 'buffer' {
|
||||
* Writes `value` to `buf` at the specified `offset` as little-endian
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(8);
|
||||
*
|
||||
* buf.writeBigUInt64LE(0xdecafafecacefaden, 0);
|
||||
@@ -937,8 +686,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `writeUintLE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(6);
|
||||
*
|
||||
* buf.writeUIntLE(0x1234567890ab, 0, 6);
|
||||
@@ -960,8 +707,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `writeUintBE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(6);
|
||||
*
|
||||
* buf.writeUIntBE(0x1234567890ab, 0, 6);
|
||||
@@ -981,8 +726,6 @@ declare module 'buffer' {
|
||||
* when `value` is anything other than a signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(6);
|
||||
*
|
||||
* buf.writeIntLE(0x1234567890ab, 0, 6);
|
||||
@@ -1002,8 +745,6 @@ declare module 'buffer' {
|
||||
* signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(6);
|
||||
*
|
||||
* buf.writeIntBE(0x1234567890ab, 0, 6);
|
||||
@@ -1024,8 +765,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readBigUint64BE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
|
||||
*
|
||||
* console.log(buf.readBigUInt64BE(0));
|
||||
@@ -1041,8 +780,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readBigUint64LE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
|
||||
*
|
||||
* console.log(buf.readBigUInt64LE(0));
|
||||
@@ -1077,8 +814,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readUintLE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
|
||||
*
|
||||
* console.log(buf.readUIntLE(0, 6).toString(16));
|
||||
@@ -1096,8 +831,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readUintBE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
|
||||
*
|
||||
* console.log(buf.readUIntBE(0, 6).toString(16));
|
||||
@@ -1115,8 +848,6 @@ declare module 'buffer' {
|
||||
* supporting up to 48 bits of accuracy.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
|
||||
*
|
||||
* console.log(buf.readIntLE(0, 6).toString(16));
|
||||
@@ -1132,8 +863,6 @@ declare module 'buffer' {
|
||||
* supporting up to 48 bits of accuracy.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]);
|
||||
*
|
||||
* console.log(buf.readIntBE(0, 6).toString(16));
|
||||
@@ -1154,8 +883,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readUint8` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([1, -2]);
|
||||
*
|
||||
* console.log(buf.readUInt8(0));
|
||||
@@ -1175,8 +902,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readUint16LE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x12, 0x34, 0x56]);
|
||||
*
|
||||
* console.log(buf.readUInt16LE(0).toString(16));
|
||||
@@ -1196,8 +921,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readUint16BE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x12, 0x34, 0x56]);
|
||||
*
|
||||
* console.log(buf.readUInt16BE(0).toString(16));
|
||||
@@ -1215,8 +938,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readUint32LE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
|
||||
*
|
||||
* console.log(buf.readUInt32LE(0).toString(16));
|
||||
@@ -1234,8 +955,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `readUint32BE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]);
|
||||
*
|
||||
* console.log(buf.readUInt32BE(0).toString(16));
|
||||
@@ -1251,8 +970,6 @@ declare module 'buffer' {
|
||||
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([-1, 5]);
|
||||
*
|
||||
* console.log(buf.readInt8(0));
|
||||
@@ -1272,8 +989,6 @@ declare module 'buffer' {
|
||||
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0, 5]);
|
||||
*
|
||||
* console.log(buf.readInt16LE(0));
|
||||
@@ -1291,8 +1006,6 @@ declare module 'buffer' {
|
||||
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0, 5]);
|
||||
*
|
||||
* console.log(buf.readInt16BE(0));
|
||||
@@ -1308,8 +1021,6 @@ declare module 'buffer' {
|
||||
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0, 0, 0, 5]);
|
||||
*
|
||||
* console.log(buf.readInt32LE(0));
|
||||
@@ -1327,8 +1038,6 @@ declare module 'buffer' {
|
||||
* Integers read from a `Buffer` are interpreted as two's complement signed values.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([0, 0, 0, 5]);
|
||||
*
|
||||
* console.log(buf.readInt32BE(0));
|
||||
@@ -1342,8 +1051,6 @@ declare module 'buffer' {
|
||||
* Reads a 32-bit, little-endian float from `buf` at the specified `offset`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([1, 2, 3, 4]);
|
||||
*
|
||||
* console.log(buf.readFloatLE(0));
|
||||
@@ -1359,8 +1066,6 @@ declare module 'buffer' {
|
||||
* Reads a 32-bit, big-endian float from `buf` at the specified `offset`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([1, 2, 3, 4]);
|
||||
*
|
||||
* console.log(buf.readFloatBE(0));
|
||||
@@ -1374,8 +1079,6 @@ declare module 'buffer' {
|
||||
* Reads a 64-bit, little-endian double from `buf` at the specified `offset`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
|
||||
*
|
||||
* console.log(buf.readDoubleLE(0));
|
||||
@@ -1391,8 +1094,6 @@ declare module 'buffer' {
|
||||
* Reads a 64-bit, big-endian double from `buf` at the specified `offset`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);
|
||||
*
|
||||
* console.log(buf.readDoubleBE(0));
|
||||
@@ -1408,8 +1109,6 @@ declare module 'buffer' {
|
||||
* byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
|
||||
*
|
||||
* console.log(buf1);
|
||||
@@ -1430,8 +1129,6 @@ declare module 'buffer' {
|
||||
* between UTF-16 little-endian and UTF-16 big-endian:
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from('This is little-endian UTF-16', 'utf16le');
|
||||
* buf.swap16(); // Convert to big-endian UTF-16 text.
|
||||
* ```
|
||||
@@ -1444,8 +1141,6 @@ declare module 'buffer' {
|
||||
* byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
|
||||
*
|
||||
* console.log(buf1);
|
||||
@@ -1470,8 +1165,6 @@ declare module 'buffer' {
|
||||
* Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]);
|
||||
*
|
||||
* console.log(buf1);
|
||||
@@ -1499,8 +1192,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `writeUint8` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeUInt8(0x3, 0);
|
||||
@@ -1524,8 +1215,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `writeUint16LE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeUInt16LE(0xdead, 0);
|
||||
@@ -1547,8 +1236,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `writeUint16BE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeUInt16BE(0xdead, 0);
|
||||
@@ -1570,8 +1257,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `writeUint32LE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeUInt32LE(0xfeedface, 0);
|
||||
@@ -1592,8 +1277,6 @@ declare module 'buffer' {
|
||||
* This function is also available under the `writeUint32BE` alias.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeUInt32BE(0xfeedface, 0);
|
||||
@@ -1615,8 +1298,6 @@ declare module 'buffer' {
|
||||
* `value` is interpreted and written as a two's complement signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(2);
|
||||
*
|
||||
* buf.writeInt8(2, 0);
|
||||
@@ -1638,8 +1319,6 @@ declare module 'buffer' {
|
||||
* The `value` is interpreted and written as a two's complement signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(2);
|
||||
*
|
||||
* buf.writeInt16LE(0x0304, 0);
|
||||
@@ -1660,8 +1339,6 @@ declare module 'buffer' {
|
||||
* The `value` is interpreted and written as a two's complement signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(2);
|
||||
*
|
||||
* buf.writeInt16BE(0x0102, 0);
|
||||
@@ -1682,8 +1359,6 @@ declare module 'buffer' {
|
||||
* The `value` is interpreted and written as a two's complement signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeInt32LE(0x05060708, 0);
|
||||
@@ -1704,8 +1379,6 @@ declare module 'buffer' {
|
||||
* The `value` is interpreted and written as a two's complement signed integer.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeInt32BE(0x01020304, 0);
|
||||
@@ -1724,8 +1397,6 @@ declare module 'buffer' {
|
||||
* undefined when `value` is anything other than a JavaScript number.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeFloatLE(0xcafebabe, 0);
|
||||
@@ -1744,8 +1415,6 @@ declare module 'buffer' {
|
||||
* undefined when `value` is anything other than a JavaScript number.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(4);
|
||||
*
|
||||
* buf.writeFloatBE(0xcafebabe, 0);
|
||||
@@ -1764,8 +1433,6 @@ declare module 'buffer' {
|
||||
* other than a JavaScript number.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(8);
|
||||
*
|
||||
* buf.writeDoubleLE(123.456, 0);
|
||||
@@ -1784,8 +1451,6 @@ declare module 'buffer' {
|
||||
* other than a JavaScript number.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(8);
|
||||
*
|
||||
* buf.writeDoubleBE(123.456, 0);
|
||||
@@ -1804,8 +1469,6 @@ declare module 'buffer' {
|
||||
* the entire `buf` will be filled:
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Fill a `Buffer` with the ASCII character 'h'.
|
||||
*
|
||||
* const b = Buffer.allocUnsafe(50).fill('h');
|
||||
@@ -1822,8 +1485,6 @@ declare module 'buffer' {
|
||||
* then only the bytes of that character that fit into `buf` are written:
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Fill a `Buffer` with character that takes up two bytes in UTF-8.
|
||||
*
|
||||
* console.log(Buffer.allocUnsafe(5).fill('\u0222'));
|
||||
@@ -1834,8 +1495,6 @@ declare module 'buffer' {
|
||||
* fill data remains, an exception is thrown:
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.allocUnsafe(5);
|
||||
*
|
||||
* console.log(buf.fill('a'));
|
||||
@@ -1863,8 +1522,6 @@ declare module 'buffer' {
|
||||
* value between `0` and `255`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from('this is a buffer');
|
||||
*
|
||||
* console.log(buf.indexOf('this'));
|
||||
@@ -1896,8 +1553,6 @@ declare module 'buffer' {
|
||||
* behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const b = Buffer.from('abcdef');
|
||||
*
|
||||
* // Passing a value that's a number, but not a valid byte.
|
||||
@@ -1927,8 +1582,6 @@ declare module 'buffer' {
|
||||
* rather than the first occurrence.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from('this buffer is a buffer');
|
||||
*
|
||||
* console.log(buf.lastIndexOf('this'));
|
||||
@@ -1962,8 +1615,6 @@ declare module 'buffer' {
|
||||
* This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const b = Buffer.from('abcdef');
|
||||
*
|
||||
* // Passing a value that's a number, but not a valid byte.
|
||||
@@ -1995,8 +1646,6 @@ declare module 'buffer' {
|
||||
* of `buf`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* // Log the entire contents of a `Buffer`.
|
||||
*
|
||||
* const buf = Buffer.from('buffer');
|
||||
@@ -2019,8 +1668,6 @@ declare module 'buffer' {
|
||||
* Equivalent to `buf.indexOf() !== -1`.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from('this is a buffer');
|
||||
*
|
||||
* console.log(buf.includes('this'));
|
||||
@@ -2049,8 +1696,6 @@ declare module 'buffer' {
|
||||
* Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices).
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from('buffer');
|
||||
*
|
||||
* for (const key of buf.keys()) {
|
||||
@@ -2072,8 +1717,6 @@ declare module 'buffer' {
|
||||
* called automatically when a `Buffer` is used in a `for..of` statement.
|
||||
*
|
||||
* ```js
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const buf = Buffer.from('buffer');
|
||||
*
|
||||
* for (const value of buf.values()) {
|
||||
|
||||
6
node_modules/@types/node/child_process.d.ts
generated
vendored
6
node_modules/@types/node/child_process.d.ts
generated
vendored
@@ -60,7 +60,7 @@
|
||||
* For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
|
||||
* the synchronous methods can have significant impact on performance due to
|
||||
* stalling the event loop while spawned processes complete.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/child_process.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/child_process.js)
|
||||
*/
|
||||
declare module 'child_process' {
|
||||
import { ObjectEncodingOptions } from 'node:fs';
|
||||
@@ -70,7 +70,7 @@ declare module 'child_process' {
|
||||
import { URL } from 'node:url';
|
||||
type Serializable = string | object | number | boolean | bigint;
|
||||
type SendHandle = net.Socket | net.Server;
|
||||
class ChildProcess extends EventEmitter {
|
||||
interface ChildProcess extends EventEmitter {
|
||||
/**
|
||||
* A `Writable Stream` that represents the child process's `stdin`.
|
||||
*
|
||||
@@ -1248,7 +1248,7 @@ declare module 'child_process' {
|
||||
}
|
||||
interface SpawnSyncReturns<T> {
|
||||
pid: number;
|
||||
output: Array<T | null>;
|
||||
output: string[];
|
||||
stdout: T;
|
||||
stderr: T;
|
||||
status: number | null;
|
||||
|
||||
22
node_modules/@types/node/cluster.d.ts
generated
vendored
22
node_modules/@types/node/cluster.d.ts
generated
vendored
@@ -7,12 +7,9 @@
|
||||
* server ports.
|
||||
*
|
||||
* ```js
|
||||
* import cluster from 'cluster';
|
||||
* import http from 'http';
|
||||
* import { cpus } from 'os';
|
||||
* import process from 'process';
|
||||
*
|
||||
* const numCPUs = cpus().length;
|
||||
* const cluster = require('cluster');
|
||||
* const http = require('http');
|
||||
* const numCPUs = require('os').cpus().length;
|
||||
*
|
||||
* if (cluster.isPrimary) {
|
||||
* console.log(`Primary ${process.pid} is running`);
|
||||
@@ -49,7 +46,7 @@
|
||||
* ```
|
||||
*
|
||||
* On Windows, it is not yet possible to set up a named pipe server in a worker.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/cluster.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/cluster.js)
|
||||
*/
|
||||
declare module 'cluster' {
|
||||
import * as child from 'node:child_process';
|
||||
@@ -218,12 +215,9 @@ declare module 'cluster' {
|
||||
* because of exiting or being signaled). Otherwise, it returns `false`.
|
||||
*
|
||||
* ```js
|
||||
* import cluster from 'cluster';
|
||||
* import http from 'http';
|
||||
* import { cpus } from 'os';
|
||||
* import process from 'process';
|
||||
*
|
||||
* const numCPUs = cpus().length;
|
||||
* const cluster = require('cluster');
|
||||
* const http = require('http');
|
||||
* const numCPUs = require('os').cpus().length;
|
||||
*
|
||||
* if (cluster.isPrimary) {
|
||||
* console.log(`Primary ${process.pid} is running`);
|
||||
@@ -328,7 +322,7 @@ declare module 'cluster' {
|
||||
export interface Cluster extends EventEmitter {
|
||||
disconnect(callback?: () => void): void;
|
||||
fork(env?: any): Worker;
|
||||
/** @deprecated since v16.0.0 - use isPrimary. */
|
||||
/** @deprecated since v16.0.0 - use setupPrimary. */
|
||||
readonly isMaster: boolean;
|
||||
readonly isPrimary: boolean;
|
||||
readonly isWorker: boolean;
|
||||
|
||||
2
node_modules/@types/node/console.d.ts
generated
vendored
2
node_modules/@types/node/console.d.ts
generated
vendored
@@ -53,7 +53,7 @@
|
||||
* myConsole.warn(`Danger ${name}! Danger!`);
|
||||
* // Prints: Danger Will Robinson! Danger!, to err
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/console.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/console.js)
|
||||
*/
|
||||
declare module 'console' {
|
||||
import console = require('node:console');
|
||||
|
||||
1021
node_modules/@types/node/crypto.d.ts
generated
vendored
1021
node_modules/@types/node/crypto.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
25
node_modules/@types/node/dgram.d.ts
generated
vendored
25
node_modules/@types/node/dgram.d.ts
generated
vendored
@@ -2,8 +2,7 @@
|
||||
* The `dgram` module provides an implementation of UDP datagram sockets.
|
||||
*
|
||||
* ```js
|
||||
* import dgram from 'dgram';
|
||||
*
|
||||
* const dgram = require('dgram');
|
||||
* const server = dgram.createSocket('udp4');
|
||||
*
|
||||
* server.on('error', (err) => {
|
||||
@@ -23,7 +22,7 @@
|
||||
* server.bind(41234);
|
||||
* // Prints: server listening 0.0.0.0:41234
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/dgram.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/dgram.js)
|
||||
*/
|
||||
declare module 'dgram' {
|
||||
import { AddressInfo } from 'node:net';
|
||||
@@ -98,9 +97,8 @@ declare module 'dgram' {
|
||||
* When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur:
|
||||
*
|
||||
* ```js
|
||||
* import cluster from 'cluster';
|
||||
* import dgram from 'dgram';
|
||||
*
|
||||
* const cluster = require('cluster');
|
||||
* const dgram = require('dgram');
|
||||
* if (cluster.isPrimary) {
|
||||
* cluster.fork(); // Works ok.
|
||||
* cluster.fork(); // Fails with EADDRINUSE.
|
||||
@@ -142,8 +140,7 @@ declare module 'dgram' {
|
||||
* Example of a UDP server listening on port 41234:
|
||||
*
|
||||
* ```js
|
||||
* import dgram from 'dgram';
|
||||
*
|
||||
* const dgram = require('dgram');
|
||||
* const server = dgram.createSocket('udp4');
|
||||
*
|
||||
* server.on('error', (err) => {
|
||||
@@ -284,9 +281,7 @@ declare module 'dgram' {
|
||||
* Example of sending a UDP packet to a port on `localhost`;
|
||||
*
|
||||
* ```js
|
||||
* import dgram from 'dgram';
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const dgram = require('dgram');
|
||||
* const message = Buffer.from('Some bytes');
|
||||
* const client = dgram.createSocket('udp4');
|
||||
* client.send(message, 41234, 'localhost', (err) => {
|
||||
@@ -297,9 +292,7 @@ declare module 'dgram' {
|
||||
* Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`;
|
||||
*
|
||||
* ```js
|
||||
* import dgram from 'dgram';
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const dgram = require('dgram');
|
||||
* const buf1 = Buffer.from('Some ');
|
||||
* const buf2 = Buffer.from('bytes');
|
||||
* const client = dgram.createSocket('udp4');
|
||||
@@ -316,9 +309,7 @@ declare module 'dgram' {
|
||||
* Example of sending a UDP packet using a socket connected to a port on`localhost`:
|
||||
*
|
||||
* ```js
|
||||
* import dgram from 'dgram';
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const dgram = require('dgram');
|
||||
* const message = Buffer.from('Some bytes');
|
||||
* const client = dgram.createSocket('udp4');
|
||||
* client.connect(41234, 'localhost', (err) => {
|
||||
|
||||
31
node_modules/@types/node/diagnostics_channel.d.ts
generated
vendored
31
node_modules/@types/node/diagnostics_channel.d.ts
generated
vendored
@@ -5,7 +5,7 @@
|
||||
* It can be accessed using:
|
||||
*
|
||||
* ```js
|
||||
* import diagnostics_channel from 'diagnostics_channel';
|
||||
* const diagnostics_channel = require('diagnostics_channel');
|
||||
* ```
|
||||
*
|
||||
* It is intended that a module writer wanting to report diagnostics messages
|
||||
@@ -20,7 +20,7 @@
|
||||
* should generally include the module name to avoid collisions with data from
|
||||
* other modules.
|
||||
* @experimental
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/diagnostics_channel.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/diagnostics_channel.js)
|
||||
*/
|
||||
declare module 'diagnostics_channel' {
|
||||
/**
|
||||
@@ -31,7 +31,7 @@ declare module 'diagnostics_channel' {
|
||||
* performance-sensitive code.
|
||||
*
|
||||
* ```js
|
||||
* import diagnostics_channel from 'diagnostics_channel';
|
||||
* const diagnostics_channel = require('diagnostics_channel');
|
||||
*
|
||||
* if (diagnostics_channel.hasSubscribers('my-channel')) {
|
||||
* // There are subscribers, prepare and publish message
|
||||
@@ -47,7 +47,7 @@ declare module 'diagnostics_channel' {
|
||||
* publish time as much as possible.
|
||||
*
|
||||
* ```js
|
||||
* import diagnostics_channel from 'diagnostics_channel';
|
||||
* const diagnostics_channel = require('diagnostics_channel');
|
||||
*
|
||||
* const channel = diagnostics_channel.channel('my-channel');
|
||||
* ```
|
||||
@@ -66,24 +66,7 @@ declare module 'diagnostics_channel' {
|
||||
*/
|
||||
class Channel {
|
||||
readonly name: string;
|
||||
/**
|
||||
* Check if there are active subscribers to this channel. This is helpful if
|
||||
* the message you want to send might be expensive to prepare.
|
||||
*
|
||||
* This API is optional but helpful when trying to publish messages from very
|
||||
* performance-sensitive code.
|
||||
*
|
||||
* ```js
|
||||
* import diagnostics_channel from 'diagnostics_channel';
|
||||
*
|
||||
* const channel = diagnostics_channel.channel('my-channel');
|
||||
*
|
||||
* if (channel.hasSubscribers) {
|
||||
* // There are subscribers, prepare and publish message
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
readonly hasSubscribers: boolean;
|
||||
readonly hashSubscribers: boolean;
|
||||
private constructor(name: string);
|
||||
/**
|
||||
* Register a message handler to subscribe to this channel. This message handler
|
||||
@@ -91,7 +74,7 @@ declare module 'diagnostics_channel' {
|
||||
* errors thrown in the message handler will trigger an `'uncaughtException'`.
|
||||
*
|
||||
* ```js
|
||||
* import diagnostics_channel from 'diagnostics_channel';
|
||||
* const diagnostics_channel = require('diagnostics_channel');
|
||||
*
|
||||
* const channel = diagnostics_channel.channel('my-channel');
|
||||
*
|
||||
@@ -106,7 +89,7 @@ declare module 'diagnostics_channel' {
|
||||
* Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`.
|
||||
*
|
||||
* ```js
|
||||
* import diagnostics_channel from 'diagnostics_channel';
|
||||
* const diagnostics_channel = require('diagnostics_channel');
|
||||
*
|
||||
* const channel = diagnostics_channel.channel('my-channel');
|
||||
*
|
||||
|
||||
6
node_modules/@types/node/dns.d.ts
generated
vendored
6
node_modules/@types/node/dns.d.ts
generated
vendored
@@ -42,7 +42,7 @@
|
||||
* ```
|
||||
*
|
||||
* See the `Implementation considerations section` for more information.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/dns.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/dns.js)
|
||||
*/
|
||||
declare module 'dns' {
|
||||
import * as dnsPromises from 'node:dns/promises';
|
||||
@@ -553,10 +553,6 @@ declare module 'dns' {
|
||||
export const CANCELLED: string;
|
||||
export interface ResolverOptions {
|
||||
timeout?: number | undefined;
|
||||
/**
|
||||
* @default 4
|
||||
*/
|
||||
tries?: number;
|
||||
}
|
||||
/**
|
||||
* An independent resolver for DNS requests.
|
||||
|
||||
4
node_modules/@types/node/domain.d.ts
generated
vendored
4
node_modules/@types/node/domain.d.ts
generated
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* **This module is pending deprecation.** Once a replacement API has been
|
||||
* **This module is pending deprecation**. Once a replacement API has been
|
||||
* finalized, this module will be fully deprecated. Most developers should**not** have cause to use this module. Users who absolutely must have
|
||||
* the functionality that domains provide may rely on it for the time being
|
||||
* but should expect to have to migrate to a different solution
|
||||
@@ -11,7 +11,7 @@
|
||||
* will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to
|
||||
* exit immediately with an error code.
|
||||
* @deprecated Since v1.4.2 - Deprecated
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/domain.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/domain.js)
|
||||
*/
|
||||
declare module 'domain' {
|
||||
import EventEmitter = require('node:events');
|
||||
|
||||
187
node_modules/@types/node/events.d.ts
generated
vendored
187
node_modules/@types/node/events.d.ts
generated
vendored
@@ -32,7 +32,7 @@
|
||||
* });
|
||||
* myEmitter.emit('event');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/events.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/events.js)
|
||||
*/
|
||||
declare module 'events' {
|
||||
interface EventEmitterOptions {
|
||||
@@ -72,194 +72,15 @@ declare module 'events' {
|
||||
*/
|
||||
class EventEmitter {
|
||||
constructor(options?: EventEmitterOptions);
|
||||
/**
|
||||
* Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given
|
||||
* event or that is rejected if the `EventEmitter` emits `'error'` while waiting.
|
||||
* The `Promise` will resolve with an array of all the arguments emitted to the
|
||||
* given event.
|
||||
*
|
||||
* This method is intentionally generic and works with the web platform[EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event
|
||||
* semantics and does not listen to the `'error'` event.
|
||||
*
|
||||
* ```js
|
||||
* const { once, EventEmitter } = require('events');
|
||||
*
|
||||
* async function run() {
|
||||
* const ee = new EventEmitter();
|
||||
*
|
||||
* process.nextTick(() => {
|
||||
* ee.emit('myevent', 42);
|
||||
* });
|
||||
*
|
||||
* const [value] = await once(ee, 'myevent');
|
||||
* console.log(value);
|
||||
*
|
||||
* const err = new Error('kaboom');
|
||||
* process.nextTick(() => {
|
||||
* ee.emit('error', err);
|
||||
* });
|
||||
*
|
||||
* try {
|
||||
* await once(ee, 'myevent');
|
||||
* } catch (err) {
|
||||
* console.log('error happened', err);
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* run();
|
||||
* ```
|
||||
*
|
||||
* The special handling of the `'error'` event is only used when `events.once()`is used to wait for another event. If `events.once()` is used to wait for the
|
||||
* '`error'` event itself, then it is treated as any other kind of event without
|
||||
* special handling:
|
||||
*
|
||||
* ```js
|
||||
* const { EventEmitter, once } = require('events');
|
||||
*
|
||||
* const ee = new EventEmitter();
|
||||
*
|
||||
* once(ee, 'error')
|
||||
* .then(([err]) => console.log('ok', err.message))
|
||||
* .catch((err) => console.log('error', err.message));
|
||||
*
|
||||
* ee.emit('error', new Error('boom'));
|
||||
*
|
||||
* // Prints: ok boom
|
||||
* ```
|
||||
*
|
||||
* An `AbortSignal` can be used to cancel waiting for the event:
|
||||
*
|
||||
* ```js
|
||||
* const { EventEmitter, once } = require('events');
|
||||
*
|
||||
* const ee = new EventEmitter();
|
||||
* const ac = new AbortController();
|
||||
*
|
||||
* async function foo(emitter, event, signal) {
|
||||
* try {
|
||||
* await once(emitter, event, { signal });
|
||||
* console.log('event emitted!');
|
||||
* } catch (error) {
|
||||
* if (error.name === 'AbortError') {
|
||||
* console.error('Waiting for the event was canceled!');
|
||||
* } else {
|
||||
* console.error('There was an error', error.message);
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* foo(ee, 'foo', ac.signal);
|
||||
* ac.abort(); // Abort waiting for the event
|
||||
* ee.emit('foo'); // Prints: Waiting for the event was canceled!
|
||||
* ```
|
||||
* @since v11.13.0, v10.16.0
|
||||
*/
|
||||
static once(emitter: NodeEventTarget, eventName: string | symbol, options?: StaticEventEmitterOptions): Promise<any[]>;
|
||||
static once(emitter: DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;
|
||||
/**
|
||||
* ```js
|
||||
* const { on, EventEmitter } = require('events');
|
||||
*
|
||||
* (async () => {
|
||||
* const ee = new EventEmitter();
|
||||
*
|
||||
* // Emit later on
|
||||
* process.nextTick(() => {
|
||||
* ee.emit('foo', 'bar');
|
||||
* ee.emit('foo', 42);
|
||||
* });
|
||||
*
|
||||
* for await (const event of on(ee, 'foo')) {
|
||||
* // The execution of this inner block is synchronous and it
|
||||
* // processes one event at a time (even with await). Do not use
|
||||
* // if concurrent execution is required.
|
||||
* console.log(event); // prints ['bar'] [42]
|
||||
* }
|
||||
* // Unreachable here
|
||||
* })();
|
||||
* ```
|
||||
*
|
||||
* Returns an `AsyncIterator` that iterates `eventName` events. It will throw
|
||||
* if the `EventEmitter` emits `'error'`. It removes all listeners when
|
||||
* exiting the loop. The `value` returned by each iteration is an array
|
||||
* composed of the emitted event arguments.
|
||||
*
|
||||
* An `AbortSignal` can be used to cancel waiting on events:
|
||||
*
|
||||
* ```js
|
||||
* const { on, EventEmitter } = require('events');
|
||||
* const ac = new AbortController();
|
||||
*
|
||||
* (async () => {
|
||||
* const ee = new EventEmitter();
|
||||
*
|
||||
* // Emit later on
|
||||
* process.nextTick(() => {
|
||||
* ee.emit('foo', 'bar');
|
||||
* ee.emit('foo', 42);
|
||||
* });
|
||||
*
|
||||
* for await (const event of on(ee, 'foo', { signal: ac.signal })) {
|
||||
* // The execution of this inner block is synchronous and it
|
||||
* // processes one event at a time (even with await). Do not use
|
||||
* // if concurrent execution is required.
|
||||
* console.log(event); // prints ['bar'] [42]
|
||||
* }
|
||||
* // Unreachable here
|
||||
* })();
|
||||
*
|
||||
* process.nextTick(() => ac.abort());
|
||||
* ```
|
||||
* @since v13.6.0, v12.16.0
|
||||
* @param eventName The name of the event being listened for
|
||||
* @return that iterates `eventName` events emitted by the `emitter`
|
||||
*/
|
||||
static on(emitter: NodeJS.EventEmitter, eventName: string, options?: StaticEventEmitterOptions): AsyncIterableIterator<any>;
|
||||
/**
|
||||
* A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`.
|
||||
*
|
||||
* ```js
|
||||
* const { EventEmitter, listenerCount } = require('events');
|
||||
* const myEmitter = new EventEmitter();
|
||||
* myEmitter.on('event', () => {});
|
||||
* myEmitter.on('event', () => {});
|
||||
* console.log(listenerCount(myEmitter, 'event'));
|
||||
* // Prints: 2
|
||||
* ```
|
||||
* @since v0.9.12
|
||||
* @deprecated Since v3.2.0 - Use `listenerCount` instead.
|
||||
* @param emitter The emitter to query
|
||||
* @param eventName The event name
|
||||
*/
|
||||
/** @deprecated since v4.0.0 */
|
||||
static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number;
|
||||
/**
|
||||
* Returns a copy of the array of listeners for the event named `eventName`.
|
||||
*
|
||||
* For `EventEmitter`s this behaves exactly the same as calling `.listeners` on
|
||||
* the emitter.
|
||||
*
|
||||
* For `EventTarget`s this is the only way to get the event listeners for the
|
||||
* event target. This is useful for debugging and diagnostic purposes.
|
||||
*
|
||||
* ```js
|
||||
* const { getEventListeners, EventEmitter } = require('events');
|
||||
*
|
||||
* {
|
||||
* const ee = new EventEmitter();
|
||||
* const listener = () => console.log('Events are fun');
|
||||
* ee.on('foo', listener);
|
||||
* getEventListeners(ee, 'foo'); // [listener]
|
||||
* }
|
||||
* {
|
||||
* const et = new EventTarget();
|
||||
* const listener = () => console.log('Events are fun');
|
||||
* et.addEventListener('foo', listener);
|
||||
* getEventListeners(et, 'foo'); // [listener]
|
||||
* }
|
||||
* ```
|
||||
* @since v15.2.0
|
||||
* Returns a list listener for a specific emitter event name.
|
||||
*/
|
||||
static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
||||
static getEventListener(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
||||
/**
|
||||
* This symbol shall be used to install a listener for only monitoring `'error'`
|
||||
* events. Listeners installed using this symbol are called before the regular
|
||||
|
||||
196
node_modules/@types/node/fs.d.ts
generated
vendored
196
node_modules/@types/node/fs.d.ts
generated
vendored
@@ -5,18 +5,30 @@
|
||||
* To use the promise-based APIs:
|
||||
*
|
||||
* ```js
|
||||
* // Using ESM Module syntax:
|
||||
* import * as fs from 'fs/promises';
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* // Using CommonJS syntax:
|
||||
* const fs = require('fs/promises');
|
||||
* ```
|
||||
*
|
||||
* To use the callback and sync APIs:
|
||||
*
|
||||
* ```js
|
||||
* // Using ESM Module syntax:
|
||||
* import * as fs from 'fs';
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* // Using CommonJS syntax:
|
||||
* const fs = require('fs');
|
||||
* ```
|
||||
*
|
||||
* All file system operations have synchronous, callback, and promise-based
|
||||
* forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/fs.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/fs.js)
|
||||
*/
|
||||
declare module 'fs' {
|
||||
import * as stream from 'node:stream';
|
||||
@@ -71,7 +83,7 @@ declare module 'fs' {
|
||||
}
|
||||
export interface Stats extends StatsBase<number> {}
|
||||
/**
|
||||
* A `fs.Stats` object provides information about a file.
|
||||
* A `<fs.Stats>` object provides information about a file.
|
||||
*
|
||||
* Objects returned from {@link stat}, {@link lstat} and {@link fstat} and
|
||||
* their synchronous counterparts are of this type.
|
||||
@@ -133,53 +145,53 @@ declare module 'fs' {
|
||||
export class Stats {}
|
||||
/**
|
||||
* A representation of a directory entry, which can be a file or a subdirectory
|
||||
* within the directory, as returned by reading from an `fs.Dir`. The
|
||||
* within the directory, as returned by reading from an `<fs.Dir>`. The
|
||||
* directory entry is a combination of the file name and file type pairs.
|
||||
*
|
||||
* Additionally, when {@link readdir} or {@link readdirSync} is called with
|
||||
* the `withFileTypes` option set to `true`, the resulting array is filled with `fs.Dirent` objects, rather than strings or `Buffer` s.
|
||||
* the `withFileTypes` option set to `true`, the resulting array is filled with `<fs.Dirent>` objects, rather than strings or `<Buffer>` s.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
export class Dirent {
|
||||
/**
|
||||
* Returns `true` if the `fs.Dirent` object describes a regular file.
|
||||
* Returns `true` if the `<fs.Dirent>` object describes a regular file.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
isFile(): boolean;
|
||||
/**
|
||||
* Returns `true` if the `fs.Dirent` object describes a file system
|
||||
* Returns `true` if the `<fs.Dirent>` object describes a file system
|
||||
* directory.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
isDirectory(): boolean;
|
||||
/**
|
||||
* Returns `true` if the `fs.Dirent` object describes a block device.
|
||||
* Returns `true` if the `<fs.Dirent>` object describes a block device.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
isBlockDevice(): boolean;
|
||||
/**
|
||||
* Returns `true` if the `fs.Dirent` object describes a character device.
|
||||
* Returns `true` if the `<fs.Dirent>` object describes a character device.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
isCharacterDevice(): boolean;
|
||||
/**
|
||||
* Returns `true` if the `fs.Dirent` object describes a symbolic link.
|
||||
* Returns `true` if the `<fs.Dirent>` object describes a symbolic link.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
isSymbolicLink(): boolean;
|
||||
/**
|
||||
* Returns `true` if the `fs.Dirent` object describes a first-in-first-out
|
||||
* Returns `true` if the `<fs.Dirent>` object describes a first-in-first-out
|
||||
* (FIFO) pipe.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
isFIFO(): boolean;
|
||||
/**
|
||||
* Returns `true` if the `fs.Dirent` object describes a socket.
|
||||
* Returns `true` if the `<fs.Dirent>` object describes a socket.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
isSocket(): boolean;
|
||||
/**
|
||||
* The file name that this `fs.Dirent` object refers to. The type of this
|
||||
* The file name that this `<fs.Dirent>` object refers to. The type of this
|
||||
* value is determined by the `options.encoding` passed to {@link readdir} or {@link readdirSync}.
|
||||
* @since v10.10.0
|
||||
*/
|
||||
@@ -188,7 +200,7 @@ declare module 'fs' {
|
||||
/**
|
||||
* A class representing a directory stream.
|
||||
*
|
||||
* Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`.
|
||||
* Created by {@link opendir}, {@link opendirSync}, or {@link romises.opendir}.
|
||||
*
|
||||
* ```js
|
||||
* import { opendir } from 'fs/promises';
|
||||
@@ -202,13 +214,13 @@ declare module 'fs' {
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* When using the async iterator, the `fs.Dir` object will be automatically
|
||||
* When using the async iterator, the `<fs.Dir>` object will be automatically
|
||||
* closed after the iterator exits.
|
||||
* @since v12.12.0
|
||||
*/
|
||||
export class Dir implements AsyncIterable<Dirent> {
|
||||
/**
|
||||
* The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`.
|
||||
* The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or {@link romises.opendir}.
|
||||
* @since v12.12.0
|
||||
*/
|
||||
readonly path: string;
|
||||
@@ -233,9 +245,9 @@ declare module 'fs' {
|
||||
*/
|
||||
closeSync(): void;
|
||||
/**
|
||||
* Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
|
||||
* Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `<fs.Dirent>`.
|
||||
*
|
||||
* A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read.
|
||||
* A promise is returned that will be resolved with an `<fs.Dirent>`, or `null`if there are no more directory entries to read.
|
||||
*
|
||||
* Directory entries returned by this function are in no particular order as
|
||||
* provided by the operating system's underlying directory mechanisms.
|
||||
@@ -247,7 +259,7 @@ declare module 'fs' {
|
||||
read(): Promise<Dirent | null>;
|
||||
read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void;
|
||||
/**
|
||||
* Synchronously read the next directory entry as an `fs.Dirent`. See the
|
||||
* Synchronously read the next directory entry as an `<fs.Dirent>`. See the
|
||||
* POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more detail.
|
||||
*
|
||||
* If there are no more directory entries to read, `null` will be returned.
|
||||
@@ -262,7 +274,7 @@ declare module 'fs' {
|
||||
}
|
||||
export interface FSWatcher extends EventEmitter {
|
||||
/**
|
||||
* Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable.
|
||||
* Stop watching for changes on the given `<fs.FSWatcher>`. Once stopped, the `<fs.FSWatcher>` object is no longer usable.
|
||||
* @since v0.5.8
|
||||
*/
|
||||
close(): void;
|
||||
@@ -293,7 +305,7 @@ declare module 'fs' {
|
||||
prependOnceListener(event: 'close', listener: () => void): this;
|
||||
}
|
||||
/**
|
||||
* Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
|
||||
* Instances of `<fs.ReadStream>` are created and returned using the {@link createReadStream} function.
|
||||
* @since v0.1.93
|
||||
*/
|
||||
export class ReadStream extends stream.Readable {
|
||||
@@ -305,8 +317,8 @@ declare module 'fs' {
|
||||
bytesRead: number;
|
||||
/**
|
||||
* The path to the file the stream is reading from as specified in the first
|
||||
* argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a
|
||||
* `Buffer`.
|
||||
* argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `<Buffer>`, then`readStream.path` will be a
|
||||
* `<Buffer>`.
|
||||
* @since v0.1.93
|
||||
*/
|
||||
path: string | Buffer;
|
||||
@@ -374,9 +386,9 @@ declare module 'fs' {
|
||||
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
||||
}
|
||||
/**
|
||||
* * Extends `stream.Writable`
|
||||
* * Extends `<stream.Writable>`
|
||||
*
|
||||
* Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function.
|
||||
* Instances of `<fs.WriteStream>` are created and returned using the {@link createWriteStream} function.
|
||||
* @since v0.1.93
|
||||
*/
|
||||
export class WriteStream extends stream.Writable {
|
||||
@@ -394,8 +406,8 @@ declare module 'fs' {
|
||||
bytesWritten: number;
|
||||
/**
|
||||
* The path to the file the stream is writing to as specified in the first
|
||||
* argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a
|
||||
* `Buffer`.
|
||||
* argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `<Buffer>`, then`writeStream.path` will be a
|
||||
* `<Buffer>`.
|
||||
* @since v0.1.93
|
||||
*/
|
||||
path: string | Buffer;
|
||||
@@ -499,15 +511,6 @@ declare module 'fs' {
|
||||
* given to the completion callback. A file descriptor can also be passed as the
|
||||
* first argument. In this case, `fs.ftruncate()` is called.
|
||||
*
|
||||
* ```js
|
||||
* import { truncate } from 'fs';
|
||||
* // Assuming that 'path/file.txt' is a regular file.
|
||||
* truncate('path/file.txt', (err) => {
|
||||
* if (err) throw err;
|
||||
* console.log('path/file.txt was truncated');
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* Passing a file descriptor is deprecated and may result in an error being thrown
|
||||
* in the future.
|
||||
*
|
||||
@@ -786,7 +789,7 @@ declare module 'fs' {
|
||||
*/
|
||||
export function lchmodSync(path: PathLike, mode: Mode): void;
|
||||
/**
|
||||
* Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `fs.Stats` object.
|
||||
* Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `<fs.Stats>` object.
|
||||
*
|
||||
* In case of an error, the `err.code` will be one of `Common System Errors`.
|
||||
*
|
||||
@@ -947,7 +950,7 @@ declare module 'fs' {
|
||||
*/
|
||||
export const statSync: StatSyncFn;
|
||||
/**
|
||||
* Invokes the callback with the `fs.Stats` for the file descriptor.
|
||||
* Invokes the callback with the `<fs.Stats>` for the file descriptor.
|
||||
*
|
||||
* See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail.
|
||||
* @since v0.1.95
|
||||
@@ -995,8 +998,8 @@ declare module 'fs' {
|
||||
*/
|
||||
export const fstatSync: StatSyncFn<number>;
|
||||
/**
|
||||
* Retrieves the `fs.Stats` for the symbolic link referred to by the path.
|
||||
* The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic
|
||||
* Retrieves the `<fs.Stats>` for the symbolic link referred to by the path.
|
||||
* The callback gets two arguments `(err, stats)` where `stats` is a `<fs.Stats>` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic
|
||||
* link, then the link itself is stat-ed, not the file that it refers to.
|
||||
*
|
||||
* See the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) documentation for more details.
|
||||
@@ -1130,7 +1133,7 @@ declare module 'fs' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the link path passed to the callback. If the `encoding` is set to `'buffer'`,
|
||||
* the link path returned will be passed as a `Buffer` object.
|
||||
* the link path returned will be passed as a `<Buffer>` object.
|
||||
* @since v0.1.31
|
||||
*/
|
||||
export function readlink(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void;
|
||||
@@ -1179,7 +1182,7 @@ declare module 'fs' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the link path returned. If the `encoding` is set to `'buffer'`,
|
||||
* the link path returned will be passed as a `Buffer` object.
|
||||
* the link path returned will be passed as a `<Buffer>` object.
|
||||
* @since v0.1.31
|
||||
*/
|
||||
export function readlinkSync(path: PathLike, options?: EncodingOption): string;
|
||||
@@ -1215,7 +1218,7 @@ declare module 'fs' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the path passed to the callback. If the `encoding` is set to `'buffer'`,
|
||||
* the path returned will be passed as a `Buffer` object.
|
||||
* the path returned will be passed as a `<Buffer>` object.
|
||||
*
|
||||
* If `path` resolves to a socket or a pipe, the function will return a system
|
||||
* dependent name for that object.
|
||||
@@ -1268,7 +1271,7 @@ declare module 'fs' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the path passed to the callback. If the `encoding` is set to `'buffer'`,
|
||||
* the path returned will be passed as a `Buffer` object.
|
||||
* the path returned will be passed as a `<Buffer>` object.
|
||||
*
|
||||
* On Linux, when Node.js is linked against musl libc, the procfs file system must
|
||||
* be mounted on `/proc` in order for this function to work. Glibc does not have
|
||||
@@ -1728,9 +1731,9 @@ declare module 'fs' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the filenames passed to the callback. If the `encoding` is set to `'buffer'`,
|
||||
* the filenames returned will be passed as `Buffer` objects.
|
||||
* the filenames returned will be passed as `<Buffer>` objects.
|
||||
*
|
||||
* If `options.withFileTypes` is set to `true`, the `files` array will contain `fs.Dirent` objects.
|
||||
* If `options.withFileTypes` is set to `true`, the `files` array will contain `<fs.Dirent>` objects.
|
||||
* @since v0.1.8
|
||||
*/
|
||||
export function readdir(
|
||||
@@ -1857,9 +1860,9 @@ declare module 'fs' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the filenames returned. If the `encoding` is set to `'buffer'`,
|
||||
* the filenames returned will be passed as `Buffer` objects.
|
||||
* the filenames returned will be passed as `<Buffer>` objects.
|
||||
*
|
||||
* If `options.withFileTypes` is set to `true`, the result will contain `fs.Dirent` objects.
|
||||
* If `options.withFileTypes` is set to `true`, the result will contain `<fs.Dirent>` objects.
|
||||
* @since v0.1.21
|
||||
*/
|
||||
export function readdirSync(
|
||||
@@ -2174,8 +2177,6 @@ declare module 'fs' {
|
||||
}>;
|
||||
}
|
||||
/**
|
||||
* If `buffer` is a plain object, it must have an own (not inherited) `toString`function property.
|
||||
*
|
||||
* For detailed information, see the documentation of the asynchronous version of
|
||||
* this API: {@link write}.
|
||||
* @since v0.1.21
|
||||
@@ -2509,12 +2510,10 @@ declare module 'fs' {
|
||||
* a file descriptor.
|
||||
*
|
||||
* The `encoding` option is ignored if `data` is a buffer.
|
||||
*
|
||||
* If `data` is a plain object, it must have an own (not inherited) `toString`function property.
|
||||
* If `data` is a normal object, it must have an own `toString` function property.
|
||||
*
|
||||
* ```js
|
||||
* import { writeFile } from 'fs';
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const data = new Uint8Array(Buffer.from('Hello Node.js'));
|
||||
* writeFile('message.txt', data, (err) => {
|
||||
@@ -2539,13 +2538,12 @@ declare module 'fs' {
|
||||
* performs multiple `write` calls internally to write the buffer passed to it.
|
||||
* For performance sensitive code consider using {@link createWriteStream}.
|
||||
*
|
||||
* It is possible to use an `AbortSignal` to cancel an `fs.writeFile()`.
|
||||
* It is possible to use an `<AbortSignal>` to cancel an `fs.writeFile()`.
|
||||
* Cancelation is "best effort", and some amount of data is likely still
|
||||
* to be written.
|
||||
*
|
||||
* ```js
|
||||
* import { writeFile } from 'fs';
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* const controller = new AbortController();
|
||||
* const { signal } = controller;
|
||||
@@ -2588,8 +2586,6 @@ declare module 'fs' {
|
||||
/**
|
||||
* Returns `undefined`.
|
||||
*
|
||||
* If `data` is a plain object, it must have an own (not inherited) `toString`function property.
|
||||
*
|
||||
* For detailed information, see the documentation of the asynchronous version of
|
||||
* this API: {@link writeFile}.
|
||||
* @since v0.1.29
|
||||
@@ -2598,7 +2594,7 @@ declare module 'fs' {
|
||||
export function writeFileSync(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): void;
|
||||
/**
|
||||
* Asynchronously append data to a file, creating the file if it does not yet
|
||||
* exist. `data` can be a string or a `Buffer`.
|
||||
* exist. `data` can be a string or a `<Buffer>`.
|
||||
*
|
||||
* ```js
|
||||
* import { appendFile } from 'fs';
|
||||
@@ -2672,7 +2668,7 @@ declare module 'fs' {
|
||||
}
|
||||
/**
|
||||
* Synchronously append data to a file, creating the file if it does not yet
|
||||
* exist. `data` can be a string or a `Buffer`.
|
||||
* exist. `data` can be a string or a `<Buffer>`.
|
||||
*
|
||||
* ```js
|
||||
* import { appendFileSync } from 'fs';
|
||||
@@ -2795,8 +2791,7 @@ declare module 'fs' {
|
||||
persistent?: boolean | undefined;
|
||||
recursive?: boolean | undefined;
|
||||
}
|
||||
export type WatchEventType = 'rename' | 'change';
|
||||
export type WatchListener<T> = (event: WatchEventType, filename: T) => void;
|
||||
export type WatchListener<T> = (event: 'rename' | 'change', filename: T) => void;
|
||||
/**
|
||||
* Watch for changes on `filename`, where `filename` is either a file or a
|
||||
* directory.
|
||||
@@ -2810,10 +2805,10 @@ declare module 'fs' {
|
||||
* On most platforms, `'rename'` is emitted whenever a filename appears or
|
||||
* disappears in the directory.
|
||||
*
|
||||
* The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of`eventType`.
|
||||
* The listener callback is attached to the `'change'` event fired by `<fs.FSWatcher>`, but it is not the same thing as the `'change'` value of`eventType`.
|
||||
*
|
||||
* If a `signal` is passed, aborting the corresponding AbortController will close
|
||||
* the returned `fs.FSWatcher`.
|
||||
* the returned `<fs.FSWatcher>`.
|
||||
* @since v0.5.10
|
||||
* @param listener
|
||||
*/
|
||||
@@ -3150,7 +3145,7 @@ declare module 'fs' {
|
||||
* });
|
||||
*
|
||||
* // Check if the file exists in the current directory, and if it is writable.
|
||||
* access(file, constants.F_OK | constants.W_OK, (err) => {
|
||||
* access(file, constants.F_OK | fs.constants.W_OK, (err) => {
|
||||
* if (err) {
|
||||
* console.error(
|
||||
* `${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`);
|
||||
@@ -3347,11 +3342,11 @@ declare module 'fs' {
|
||||
* start counting at 0, allowed values are in the
|
||||
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `fd` is specified and `start` is
|
||||
* omitted or `undefined`, `fs.createReadStream()` reads sequentially from the
|
||||
* current file position. The `encoding` can be any one of those accepted by `Buffer`.
|
||||
* current file position. The `encoding` can be any one of those accepted by `<Buffer>`.
|
||||
*
|
||||
* If `fd` is specified, `ReadStream` will ignore the `path` argument and will use
|
||||
* the specified file descriptor. This means that no `'open'` event will be
|
||||
* emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `net.Socket`.
|
||||
* emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `<net.Socket>`.
|
||||
*
|
||||
* If `fd` points to a character device that only supports blocking reads
|
||||
* (such as keyboard or sound card), read operations do not finish until data is
|
||||
@@ -3408,7 +3403,7 @@ declare module 'fs' {
|
||||
* position past the beginning of the file, allowed values are in the
|
||||
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than replacing
|
||||
* it may require the `flags` option to be set to `r+` rather than the default `w`.
|
||||
* The `encoding` can be any one of those accepted by `Buffer`.
|
||||
* The `encoding` can be any one of those accepted by `<Buffer>`.
|
||||
*
|
||||
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
||||
* then the file descriptor won't be closed, even if there's an error.
|
||||
@@ -3422,9 +3417,9 @@ declare module 'fs' {
|
||||
* performance as some optimizations (`_writev()`)
|
||||
* will be disabled. When providing the `fs` option, overrides for `open`,`close`, and at least one of `write` and `writev` are required.
|
||||
*
|
||||
* Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be
|
||||
* Like `<fs.ReadStream>`, if `fd` is specified, `<fs.WriteStream>` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be
|
||||
* emitted. `fd` should be blocking; non-blocking `fd`s
|
||||
* should be passed to `net.Socket`.
|
||||
* should be passed to `<net.Socket>`.
|
||||
*
|
||||
* If `options` is a string, then it specifies the encoding.
|
||||
* @since v0.1.31
|
||||
@@ -3619,7 +3614,7 @@ declare module 'fs' {
|
||||
/**
|
||||
* Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html).
|
||||
*
|
||||
* Creates an `fs.Dir`, which contains all further functions for reading from
|
||||
* Creates an `<fs.Dir>`, which contains all further functions for reading from
|
||||
* and cleaning up the directory.
|
||||
*
|
||||
* The `encoding` option sets the encoding for the `path` while opening the
|
||||
@@ -3631,7 +3626,7 @@ declare module 'fs' {
|
||||
* Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for
|
||||
* more details.
|
||||
*
|
||||
* Creates an `fs.Dir`, which contains all further functions for reading from
|
||||
* Creates an `<fs.Dir>`, which contains all further functions for reading from
|
||||
* and cleaning up the directory.
|
||||
*
|
||||
* The `encoding` option sets the encoding for the `path` while opening the
|
||||
@@ -3656,67 +3651,6 @@ declare module 'fs' {
|
||||
bigint?: boolean | undefined;
|
||||
throwIfNoEntry?: boolean | undefined;
|
||||
}
|
||||
export interface CopyOptions {
|
||||
/**
|
||||
* Dereference symlinks
|
||||
* @default false
|
||||
*/
|
||||
dereference?: boolean;
|
||||
/**
|
||||
* When `force` is `false`, and the destination
|
||||
* exists, throw an error.
|
||||
* @default false
|
||||
*/
|
||||
errorOnExist?: boolean;
|
||||
/**
|
||||
* Function to filter copied files/directories. Return
|
||||
* `true` to copy the item, `false` to ignore it.
|
||||
*/
|
||||
filter?(source: string, destination: string): boolean;
|
||||
/**
|
||||
* Overwrite existing file or directory. _The copy
|
||||
* operation will ignore errors if you set this to false and the destination
|
||||
* exists. Use the `errorOnExist` option to change this behavior.
|
||||
* @default true
|
||||
*/
|
||||
force?: boolean;
|
||||
/**
|
||||
* When `true` timestamps from `src` will
|
||||
* be preserved.
|
||||
* @default false
|
||||
*/
|
||||
preserveTimestamps?: boolean;
|
||||
/**
|
||||
* Copy directories recursively.
|
||||
* @default false
|
||||
*/
|
||||
recursive?: boolean;
|
||||
}
|
||||
/**
|
||||
* Asynchronously copies the entire directory structure from `src` to `dest`,
|
||||
* including subdirectories and files.
|
||||
*
|
||||
* When copying a directory to another directory, globs are not supported and
|
||||
* behavior is similar to `cp dir1/ dir2/`.
|
||||
* @since v16.7.0
|
||||
* @experimental
|
||||
* @param src source path to copy.
|
||||
* @param dest destination path to copy to.
|
||||
*/
|
||||
export function cp(source: string, destination: string, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
||||
export function cp(source: string, destination: string, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
||||
/**
|
||||
* Synchronously copies the entire directory structure from `src` to `dest`,
|
||||
* including subdirectories and files.
|
||||
*
|
||||
* When copying a directory to another directory, globs are not supported and
|
||||
* behavior is similar to `cp dir1/ dir2/`.
|
||||
* @since v16.7.0
|
||||
* @experimental
|
||||
* @param src source path to copy.
|
||||
* @param dest destination path to copy to.
|
||||
*/
|
||||
export function cpSync(source: string, destination: string, opts?: CopyOptions): void;
|
||||
}
|
||||
declare module 'node:fs' {
|
||||
export * from 'fs';
|
||||
|
||||
65
node_modules/@types/node/fs/promises.d.ts
generated
vendored
65
node_modules/@types/node/fs/promises.d.ts
generated
vendored
@@ -29,13 +29,7 @@ declare module 'fs/promises' {
|
||||
OpenMode,
|
||||
Mode,
|
||||
WatchOptions,
|
||||
WatchEventType,
|
||||
CopyOptions,
|
||||
} from 'node:fs';
|
||||
interface FileChangeInfo<T extends string | Buffer> {
|
||||
eventType: WatchEventType;
|
||||
filename: T;
|
||||
}
|
||||
interface FlagAndOpenMode {
|
||||
mode?: Mode | undefined;
|
||||
flag?: OpenMode | undefined;
|
||||
@@ -127,7 +121,7 @@ declare module 'fs/promises' {
|
||||
*
|
||||
* If `options` is a string, then it specifies the `encoding`.
|
||||
*
|
||||
* The `FileHandle` has to support reading.
|
||||
* The `<FileHandle>` has to support reading.
|
||||
*
|
||||
* If one or more `filehandle.read()` calls are made on a file handle and then a`filehandle.readFile()` call is made, the data will be read from the current
|
||||
* position till the end of the file. It doesn't always read from the beginning
|
||||
@@ -215,7 +209,7 @@ declare module 'fs/promises' {
|
||||
*/
|
||||
truncate(len?: number): Promise<void>;
|
||||
/**
|
||||
* Change the file system timestamps of the object referenced by the `FileHandle` then resolves the promise with no arguments upon success.
|
||||
* Change the file system timestamps of the object referenced by the `<FileHandle>` then resolves the promise with no arguments upon success.
|
||||
* @since v10.0.0
|
||||
*/
|
||||
utimes(atime: string | number | Date, mtime: string | number | Date): Promise<void>;
|
||||
@@ -225,7 +219,7 @@ declare module 'fs/promises' {
|
||||
*
|
||||
* If `options` is a string, then it specifies the `encoding`.
|
||||
*
|
||||
* The `FileHandle` has to support writing.
|
||||
* The `<FileHandle>` has to support writing.
|
||||
*
|
||||
* It is unsafe to use `filehandle.writeFile()` multiple times on the same file
|
||||
* without waiting for the promise to be resolved (or rejected).
|
||||
@@ -239,8 +233,6 @@ declare module 'fs/promises' {
|
||||
/**
|
||||
* Write `buffer` to the file.
|
||||
*
|
||||
* If `buffer` is a plain object, it must have an own (not inherited) `toString`function property.
|
||||
*
|
||||
* The promise is resolved with an object containing two properties:
|
||||
*
|
||||
* It is unsafe to use `filehandle.write()` multiple times on the same file
|
||||
@@ -385,7 +377,7 @@ declare module 'fs/promises' {
|
||||
*/
|
||||
function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise<void>;
|
||||
/**
|
||||
* Opens a `FileHandle`.
|
||||
* Opens a `<FileHandle>`.
|
||||
*
|
||||
* Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail.
|
||||
*
|
||||
@@ -472,9 +464,9 @@ declare module 'fs/promises' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the filenames. If the `encoding` is set to `'buffer'`, the filenames returned
|
||||
* will be passed as `Buffer` objects.
|
||||
* will be passed as `<Buffer>` objects.
|
||||
*
|
||||
* If `options.withFileTypes` is set to `true`, the resolved array will contain `fs.Dirent` objects.
|
||||
* If `options.withFileTypes` is set to `true`, the resolved array will contain `<fs.Dirent>` objects.
|
||||
*
|
||||
* ```js
|
||||
* import { readdir } from 'fs/promises';
|
||||
@@ -545,7 +537,7 @@ declare module 'fs/promises' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the link path returned. If the `encoding` is set to `'buffer'`, the link path
|
||||
* returned will be passed as a `Buffer` object.
|
||||
* returned will be passed as a `<Buffer>` object.
|
||||
* @since v10.0.0
|
||||
* @return Fulfills with the `linkString` upon success.
|
||||
*/
|
||||
@@ -678,7 +670,7 @@ declare module 'fs/promises' {
|
||||
* The optional `options` argument can be a string specifying an encoding, or an
|
||||
* object with an `encoding` property specifying the character encoding to use for
|
||||
* the path. If the `encoding` is set to `'buffer'`, the path returned will be
|
||||
* passed as a `Buffer` object.
|
||||
* passed as a `<Buffer>` object.
|
||||
*
|
||||
* On Linux, when Node.js is linked against musl libc, the procfs file system must
|
||||
* be mounted on `/proc` in order for this function to work. Glibc does not have
|
||||
@@ -740,13 +732,14 @@ declare module 'fs/promises' {
|
||||
*/
|
||||
function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>;
|
||||
/**
|
||||
* Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a `Buffer`, or, an object with an own (not inherited)`toString` function property.
|
||||
* Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a `<Buffer>`, or an object with an own `toString` function
|
||||
* property.
|
||||
*
|
||||
* The `encoding` option is ignored if `data` is a buffer.
|
||||
*
|
||||
* If `options` is a string, then it specifies the encoding.
|
||||
*
|
||||
* Any specified `FileHandle` has to support writing.
|
||||
* Any specified `<FileHandle>` has to support writing.
|
||||
*
|
||||
* It is unsafe to use `fsPromises.writeFile()` multiple times on the same file
|
||||
* without waiting for the promise to be settled.
|
||||
@@ -755,13 +748,12 @@ declare module 'fs/promises' {
|
||||
* method that performs multiple `write` calls internally to write the buffer
|
||||
* passed to it. For performance sensitive code consider using `fs.createWriteStream()`.
|
||||
*
|
||||
* It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`.
|
||||
* It is possible to use an `<AbortSignal>` to cancel an `fsPromises.writeFile()`.
|
||||
* Cancelation is "best effort", and some amount of data is likely still
|
||||
* to be written.
|
||||
*
|
||||
* ```js
|
||||
* import { writeFile } from 'fs/promises';
|
||||
* import { Buffer } from 'buffer';
|
||||
*
|
||||
* try {
|
||||
* const controller = new AbortController();
|
||||
@@ -798,11 +790,11 @@ declare module 'fs/promises' {
|
||||
): Promise<void>;
|
||||
/**
|
||||
* Asynchronously append data to a file, creating the file if it does not yet
|
||||
* exist. `data` can be a string or a `Buffer`.
|
||||
* exist. `data` can be a string or a `<Buffer>`.
|
||||
*
|
||||
* If `options` is a string, then it specifies the `encoding`.
|
||||
*
|
||||
* The `path` may be specified as a `FileHandle` that has been opened
|
||||
* The `path` may be specified as a `<FileHandle>` that has been opened
|
||||
* for appending (using `fsPromises.open()`).
|
||||
* @since v10.0.0
|
||||
* @param path filename or {FileHandle}
|
||||
@@ -813,7 +805,7 @@ declare module 'fs/promises' {
|
||||
* Asynchronously reads the entire contents of a file.
|
||||
*
|
||||
* If no encoding is specified (using `options.encoding`), the data is returned
|
||||
* as a `Buffer` object. Otherwise, the data will be a string.
|
||||
* as a `<Buffer>` object. Otherwise, the data will be a string.
|
||||
*
|
||||
* If `options` is a string, then it specifies the encoding.
|
||||
*
|
||||
@@ -822,7 +814,7 @@ declare module 'fs/promises' {
|
||||
* with an error. On FreeBSD, a representation of the directory's contents will be
|
||||
* returned.
|
||||
*
|
||||
* It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a
|
||||
* It is possible to abort an ongoing `readFile` using an `<AbortSignal>`. If a
|
||||
* request is aborted the promise returned is rejected with an `AbortError`:
|
||||
*
|
||||
* ```js
|
||||
@@ -846,7 +838,7 @@ declare module 'fs/promises' {
|
||||
* Aborting an ongoing request does not abort individual operating
|
||||
* system requests but rather the internal buffering `fs.readFile` performs.
|
||||
*
|
||||
* Any specified `FileHandle` has to support reading.
|
||||
* Any specified `<FileHandle>` has to support reading.
|
||||
* @since v10.0.0
|
||||
* @param path filename or `FileHandle`
|
||||
* @return Fulfills with the contents of the file.
|
||||
@@ -896,7 +888,7 @@ declare module 'fs/promises' {
|
||||
/**
|
||||
* Asynchronously open a directory for iterative scanning. See the POSIX[`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail.
|
||||
*
|
||||
* Creates an `fs.Dir`, which contains all further functions for reading from
|
||||
* Creates an `<fs.Dir>`, which contains all further functions for reading from
|
||||
* and cleaning up the directory.
|
||||
*
|
||||
* The `encoding` option sets the encoding for the `path` while opening the
|
||||
@@ -916,7 +908,7 @@ declare module 'fs/promises' {
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* When using the async iterator, the `fs.Dir` object will be automatically
|
||||
* When using the async iterator, the `<fs.Dir>` object will be automatically
|
||||
* closed after the iterator exits.
|
||||
* @since v12.12.0
|
||||
* @return Fulfills with an {fs.Dir}.
|
||||
@@ -959,7 +951,7 @@ declare module 'fs/promises' {
|
||||
encoding: 'buffer';
|
||||
})
|
||||
| 'buffer'
|
||||
): AsyncIterable<FileChangeInfo<Buffer>>;
|
||||
): AsyncIterable<Buffer>;
|
||||
/**
|
||||
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
||||
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
||||
@@ -968,7 +960,7 @@ declare module 'fs/promises' {
|
||||
* If `persistent` is not supplied, the default of `true` is used.
|
||||
* If `recursive` is not supplied, the default of `false` is used.
|
||||
*/
|
||||
function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable<FileChangeInfo<string>>;
|
||||
function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable<string>;
|
||||
/**
|
||||
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
||||
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
||||
@@ -977,20 +969,7 @@ declare module 'fs/promises' {
|
||||
* If `persistent` is not supplied, the default of `true` is used.
|
||||
* If `recursive` is not supplied, the default of `false` is used.
|
||||
*/
|
||||
function watch(filename: PathLike, options: WatchOptions | string): AsyncIterable<FileChangeInfo<string>> | AsyncIterable<FileChangeInfo<Buffer>>;
|
||||
/**
|
||||
* Asynchronously copies the entire directory structure from `src` to `dest`,
|
||||
* including subdirectories and files.
|
||||
*
|
||||
* When copying a directory to another directory, globs are not supported and
|
||||
* behavior is similar to `cp dir1/ dir2/`.
|
||||
* @since v16.7.0
|
||||
* @experimental
|
||||
* @param src source path to copy.
|
||||
* @param dest destination path to copy to.
|
||||
* @return Fulfills with `undefined` upon success.
|
||||
*/
|
||||
function cp(source: string, destination: string, opts?: CopyOptions): Promise<void>;
|
||||
function watch(filename: PathLike, options: WatchOptions | string): AsyncIterable<string> | AsyncIterable<Buffer>;
|
||||
}
|
||||
declare module 'node:fs/promises' {
|
||||
export * from 'fs/promises';
|
||||
|
||||
38
node_modules/@types/node/globals.d.ts
generated
vendored
38
node_modules/@types/node/globals.d.ts
generated
vendored
@@ -13,6 +13,19 @@ interface ErrorConstructor {
|
||||
stackTraceLimit: number;
|
||||
}
|
||||
|
||||
// Node.js ESNEXT support
|
||||
interface String {
|
||||
/** Removes whitespace from the left end of a string. */
|
||||
trimLeft(): string;
|
||||
/** Removes whitespace from the right end of a string. */
|
||||
trimRight(): string;
|
||||
|
||||
/** Returns a copy with leading whitespace removed. */
|
||||
trimStart(): string;
|
||||
/** Returns a copy with trailing whitespace removed. */
|
||||
trimEnd(): string;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------*
|
||||
* *
|
||||
* GLOBAL *
|
||||
@@ -76,30 +89,6 @@ declare var AbortSignal: {
|
||||
};
|
||||
//#endregion borrowed
|
||||
|
||||
//#region ArrayLike.at()
|
||||
interface RelativeIndexable<T> {
|
||||
/**
|
||||
* Takes an integer value and returns the item at that index,
|
||||
* allowing for positive and negative integers.
|
||||
* Negative integers count back from the last item in the array.
|
||||
*/
|
||||
at(index: number): T | undefined;
|
||||
}
|
||||
interface String extends RelativeIndexable<string> {}
|
||||
interface Array<T> extends RelativeIndexable<T> {}
|
||||
interface Int8Array extends RelativeIndexable<number> {}
|
||||
interface Uint8Array extends RelativeIndexable<number> {}
|
||||
interface Uint8ClampedArray extends RelativeIndexable<number> {}
|
||||
interface Int16Array extends RelativeIndexable<number> {}
|
||||
interface Uint16Array extends RelativeIndexable<number> {}
|
||||
interface Int32Array extends RelativeIndexable<number> {}
|
||||
interface Uint32Array extends RelativeIndexable<number> {}
|
||||
interface Float32Array extends RelativeIndexable<number> {}
|
||||
interface Float64Array extends RelativeIndexable<number> {}
|
||||
interface BigInt64Array extends RelativeIndexable<bigint> {}
|
||||
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
||||
//#endregion ArrayLike.at() end
|
||||
|
||||
/*----------------------------------------------*
|
||||
* *
|
||||
* GLOBAL INTERFACES *
|
||||
@@ -185,6 +174,7 @@ declare namespace NodeJS {
|
||||
code?: string | undefined;
|
||||
path?: string | undefined;
|
||||
syscall?: string | undefined;
|
||||
stack?: string | undefined;
|
||||
}
|
||||
|
||||
interface ReadableStream extends EventEmitter {
|
||||
|
||||
80
node_modules/@types/node/http.d.ts
generated
vendored
80
node_modules/@types/node/http.d.ts
generated
vendored
@@ -37,7 +37,7 @@
|
||||
* 'Host', 'mysite.com',
|
||||
* 'accepT', '*' ]
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/http.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/http.js)
|
||||
*/
|
||||
declare module 'http' {
|
||||
import * as stream from 'node:stream';
|
||||
@@ -162,80 +162,26 @@ declare module 'http' {
|
||||
class Server extends NetServer {
|
||||
constructor(requestListener?: RequestListener);
|
||||
constructor(options: ServerOptions, requestListener?: RequestListener);
|
||||
/**
|
||||
* Sets the timeout value for sockets, and emits a `'timeout'` event on
|
||||
* the Server object, passing the socket as an argument, if a timeout
|
||||
* occurs.
|
||||
*
|
||||
* If there is a `'timeout'` event listener on the Server object, then it
|
||||
* will be called with the timed-out socket as an argument.
|
||||
*
|
||||
* By default, the Server does not timeout sockets. However, if a callback
|
||||
* is assigned to the Server's `'timeout'` event, timeouts must be handled
|
||||
* explicitly.
|
||||
* @since v0.9.12
|
||||
* @param [msecs=0 (no timeout)]
|
||||
*/
|
||||
setTimeout(msecs?: number, callback?: () => void): this;
|
||||
setTimeout(callback: () => void): this;
|
||||
/**
|
||||
* Limits maximum incoming headers count. If set to 0, no limit will be applied.
|
||||
* @since v0.7.0
|
||||
* @default 2000
|
||||
* {@link https://nodejs.org/api/http.html#http_server_maxheaderscount}
|
||||
*/
|
||||
maxHeadersCount: number | null;
|
||||
/**
|
||||
* The number of milliseconds of inactivity before a socket is presumed
|
||||
* to have timed out.
|
||||
*
|
||||
* A value of `0` will disable the timeout behavior on incoming connections.
|
||||
*
|
||||
* The socket timeout logic is set up on connection, so changing this
|
||||
* value only affects new connections to the server, not any existing connections.
|
||||
* @since v0.9.12
|
||||
*/
|
||||
timeout: number;
|
||||
/**
|
||||
* Limit the amount of time the parser will wait to receive the complete HTTP
|
||||
* headers.
|
||||
*
|
||||
* In case of inactivity, the rules defined in `server.timeout` apply. However,
|
||||
* that inactivity based timeout would still allow the connection to be kept open
|
||||
* if the headers are being sent very slowly (by default, up to a byte per 2
|
||||
* minutes). In order to prevent this, whenever header data arrives an additional
|
||||
* check is made that more than `server.headersTimeout` milliseconds has not
|
||||
* passed since the connection was established. If the check fails, a `'timeout'`event is emitted on the server object, and (by default) the socket is destroyed.
|
||||
* See `server.timeout` for more information on how timeout behavior can be
|
||||
* customized.
|
||||
* @since v11.3.0, v10.14.0
|
||||
* Limit the amount of time the parser will wait to receive the complete HTTP headers.
|
||||
* @default 60000
|
||||
* {@link https://nodejs.org/api/http.html#http_server_headerstimeout}
|
||||
*/
|
||||
headersTimeout: number;
|
||||
/**
|
||||
* The number of milliseconds of inactivity a server needs to wait for additional
|
||||
* incoming data, after it has finished writing the last response, before a socket
|
||||
* will be destroyed. If the server receives new data before the keep-alive
|
||||
* timeout has fired, it will reset the regular inactivity timeout, i.e.,`server.timeout`.
|
||||
*
|
||||
* A value of `0` will disable the keep-alive timeout behavior on incoming
|
||||
* connections.
|
||||
* A value of `0` makes the http server behave similarly to Node.js versions prior
|
||||
* to 8.0.0, which did not have a keep-alive timeout.
|
||||
*
|
||||
* The socket timeout logic is set up on connection, so changing this value only
|
||||
* affects new connections to the server, not any existing connections.
|
||||
* @since v8.0.0
|
||||
*/
|
||||
keepAliveTimeout: number;
|
||||
/**
|
||||
* Sets the timeout value in milliseconds for receiving the entire request from
|
||||
* the client.
|
||||
*
|
||||
* If the timeout expires, the server responds with status 408 without
|
||||
* forwarding the request to the request listener and then closes the connection.
|
||||
*
|
||||
* It must be set to a non-zero value (e.g. 120 seconds) to protect against
|
||||
* potential Denial-of-Service attacks in case the server is deployed without a
|
||||
* reverse proxy in front.
|
||||
* @since v14.11.0
|
||||
* Sets the timeout value in milliseconds for receiving the entire request from the client.
|
||||
* @default 0
|
||||
* {@link https://nodejs.org/api/http.html#http_server_requesttimeout}
|
||||
*/
|
||||
requestTimeout: number;
|
||||
addListener(event: string, listener: (...args: any[]) => void): this;
|
||||
@@ -740,7 +686,7 @@ declare module 'http' {
|
||||
* access response
|
||||
* status, headers and data.
|
||||
*
|
||||
* Different from its `socket` value which is a subclass of `stream.Duplex`, the`IncomingMessage` itself extends `stream.Readable` and is created separately to
|
||||
* Different from its `socket` value which is a subclass of `<stream.Duplex>`, the`IncomingMessage` itself extends `<stream.Readable>` and is created separately to
|
||||
* parse and emit the incoming HTTP headers and payload, as the underlying socket
|
||||
* may be reused multiple times in case of keep-alive.
|
||||
* @since v0.1.17
|
||||
@@ -800,9 +746,9 @@ declare module 'http' {
|
||||
* With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the
|
||||
* client's authentication details.
|
||||
*
|
||||
* This property is guaranteed to be an instance of the `net.Socket` class,
|
||||
* a subclass of `stream.Duplex`, unless the user specified a socket
|
||||
* type other than `net.Socket`.
|
||||
* This property is guaranteed to be an instance of the `<net.Socket>` class,
|
||||
* a subclass of `<stream.Duplex>`, unless the user specified a socket
|
||||
* type other than `<net.Socket>`.
|
||||
* @since v0.3.0
|
||||
*/
|
||||
socket: Socket;
|
||||
|
||||
4
node_modules/@types/node/http2.d.ts
generated
vendored
4
node_modules/@types/node/http2.d.ts
generated
vendored
@@ -6,7 +6,7 @@
|
||||
* const http2 = require('http2');
|
||||
* ```
|
||||
* @since v8.4.0
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/http2.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/http2.js)
|
||||
*/
|
||||
declare module 'http2' {
|
||||
import EventEmitter = require('node:events');
|
||||
@@ -1714,7 +1714,7 @@ declare module 'http2' {
|
||||
writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this;
|
||||
writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this;
|
||||
/**
|
||||
* Call `http2stream.pushStream()` with the given headers, and wrap the
|
||||
* Call {@link tream.pushStream} with the given headers, and wrap the
|
||||
* given `Http2Stream` on a newly created `Http2ServerResponse` as the callback
|
||||
* parameter if successful. When `Http2ServerRequest` is closed, the callback is
|
||||
* called with an error `ERR_HTTP2_INVALID_STREAM`.
|
||||
|
||||
2
node_modules/@types/node/https.d.ts
generated
vendored
2
node_modules/@types/node/https.d.ts
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
|
||||
* separate module.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/https.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/https.js)
|
||||
*/
|
||||
declare module 'https' {
|
||||
import { Duplex } from 'node:stream';
|
||||
|
||||
71
node_modules/@types/node/index.d.ts
generated
vendored
71
node_modules/@types/node/index.d.ts
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for non-npm package Node.js 16.7
|
||||
// Type definitions for non-npm package Node.js 16.4
|
||||
// Project: http://nodejs.org/
|
||||
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
||||
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
||||
@@ -11,6 +11,7 @@
|
||||
// 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>
|
||||
@@ -68,64 +69,16 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// NOTE: These definitions support NodeJS and TypeScript 3.7+.
|
||||
// NOTE: These definitions support NodeJS and TypeScript 3.7.
|
||||
// Typically type modifications should be made in base.d.ts instead of here
|
||||
|
||||
// Reference required types from the default lib:
|
||||
/// <reference lib="es2020" />
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/// <reference lib="esnext.intl" />
|
||||
/// <reference lib="esnext.bigint" />
|
||||
/// <reference path="base.d.ts" />
|
||||
|
||||
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
||||
/// <reference path="assert.d.ts" />
|
||||
/// <reference path="assert/strict.d.ts" />
|
||||
/// <reference path="globals.d.ts" />
|
||||
/// <reference path="async_hooks.d.ts" />
|
||||
/// <reference path="buffer.d.ts" />
|
||||
/// <reference path="child_process.d.ts" />
|
||||
/// <reference path="cluster.d.ts" />
|
||||
/// <reference path="console.d.ts" />
|
||||
/// <reference path="constants.d.ts" />
|
||||
/// <reference path="crypto.d.ts" />
|
||||
/// <reference path="dgram.d.ts" />
|
||||
/// <reference path="diagnostics_channel.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" />
|
||||
/// <reference path="fs/promises.d.ts" />
|
||||
/// <reference path="http.d.ts" />
|
||||
/// <reference path="http2.d.ts" />
|
||||
/// <reference path="https.d.ts" />
|
||||
/// <reference path="inspector.d.ts" />
|
||||
/// <reference path="module.d.ts" />
|
||||
/// <reference path="net.d.ts" />
|
||||
/// <reference path="os.d.ts" />
|
||||
/// <reference path="path.d.ts" />
|
||||
/// <reference path="perf_hooks.d.ts" />
|
||||
/// <reference path="process.d.ts" />
|
||||
/// <reference path="punycode.d.ts" />
|
||||
/// <reference path="querystring.d.ts" />
|
||||
/// <reference path="readline.d.ts" />
|
||||
/// <reference path="repl.d.ts" />
|
||||
/// <reference path="stream.d.ts" />
|
||||
/// <reference path="stream/promises.d.ts" />
|
||||
/// <reference path="stream/consumers.d.ts" />
|
||||
/// <reference path="stream/web.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" />
|
||||
/// <reference path="url.d.ts" />
|
||||
/// <reference path="util.d.ts" />
|
||||
/// <reference path="v8.d.ts" />
|
||||
/// <reference path="vm.d.ts" />
|
||||
/// <reference path="wasi.d.ts" />
|
||||
/// <reference path="worker_threads.d.ts" />
|
||||
/// <reference path="zlib.d.ts" />
|
||||
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
||||
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
||||
// - ~/index.d.ts - Definitions specific to TypeScript 3.7
|
||||
// - ~/ts3.6/index.d.ts - Definitions specific to TypeScript 3.6
|
||||
|
||||
/// <reference path="globals.global.d.ts" />
|
||||
// NOTE: Augmentations for TypeScript 3.6 and later should use individual files for overrides
|
||||
// within the respective ~/ts3.6 (or later) folder. However, this is disallowed for versions
|
||||
// prior to TypeScript 3.6, so the older definitions will be found here.
|
||||
|
||||
9
node_modules/@types/node/inspector.d.ts
generated
vendored
9
node_modules/@types/node/inspector.d.ts
generated
vendored
@@ -15,7 +15,8 @@
|
||||
* ```js
|
||||
* const inspector = require('inspector');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/inspector.js)
|
||||
* @experimental
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/inspector.js)
|
||||
*/
|
||||
declare module 'inspector' {
|
||||
import EventEmitter = require('node:events');
|
||||
@@ -2696,9 +2697,9 @@ declare module 'inspector' {
|
||||
* and flow control has been passed to the debugger client.
|
||||
*
|
||||
* See the `security warning` regarding the `host`parameter usage.
|
||||
* @param [port='what was specified on the CLI'] Port to listen on for inspector connections. Optional.
|
||||
* @param [host='what was specified on the CLI'] Host to listen on for inspector connections. Optional.
|
||||
* @param [wait=false] Block until a client has connected. Optional.
|
||||
* @param port Port to listen on for inspector connections. Optional.
|
||||
* @param host Host to listen on for inspector connections. Optional.
|
||||
* @param wait Block until a client has connected. Optional.
|
||||
*/
|
||||
function open(port?: number, host?: string, wait?: boolean): void;
|
||||
/**
|
||||
|
||||
4
node_modules/@types/node/net.d.ts
generated
vendored
4
node_modules/@types/node/net.d.ts
generated
vendored
@@ -10,7 +10,7 @@
|
||||
* ```js
|
||||
* const net = require('net');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/net.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/net.js)
|
||||
*/
|
||||
declare module 'net' {
|
||||
import * as stream from 'node:stream';
|
||||
@@ -99,7 +99,7 @@ declare module 'net' {
|
||||
* * `socket.connect(options[, connectListener])`
|
||||
* * `socket.connect(path[, connectListener])` for `IPC` connections.
|
||||
* * `socket.connect(port[, host][, connectListener])` for TCP connections.
|
||||
* * Returns: `net.Socket` The socket itself.
|
||||
* * Returns: `<net.Socket>` The socket itself.
|
||||
*
|
||||
* This function is asynchronous. When the connection is established, the `'connect'` event will be emitted. If there is a problem connecting,
|
||||
* instead of a `'connect'` event, an `'error'` event will be emitted with
|
||||
|
||||
2
node_modules/@types/node/os.d.ts
generated
vendored
2
node_modules/@types/node/os.d.ts
generated
vendored
@@ -5,7 +5,7 @@
|
||||
* ```js
|
||||
* const os = require('os');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/os.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/os.js)
|
||||
*/
|
||||
declare module 'os' {
|
||||
interface CpuInfo {
|
||||
|
||||
18
node_modules/@types/node/package.json
generated
vendored
18
node_modules/@types/node/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@types/node",
|
||||
"version": "16.7.11",
|
||||
"version": "16.4.12",
|
||||
"description": "TypeScript definitions for Node.js",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
||||
"license": "MIT",
|
||||
@@ -60,6 +60,11 @@
|
||||
"url": "https://github.com/Hannes-Magnusson-CK",
|
||||
"githubUsername": "Hannes-Magnusson-CK"
|
||||
},
|
||||
{
|
||||
"name": "Hoàng Văn Khải",
|
||||
"url": "https://github.com/KSXGitHub",
|
||||
"githubUsername": "KSXGitHub"
|
||||
},
|
||||
{
|
||||
"name": "Huw",
|
||||
"url": "https://github.com/hoo29",
|
||||
@@ -218,6 +223,13 @@
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"typesVersions": {
|
||||
"<=3.6": {
|
||||
"*": [
|
||||
"ts3.6/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
@@ -225,6 +237,6 @@
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "f185bf25fe51fbc365324efc258555fb42c9744aab414077408e6948418e661f",
|
||||
"typeScriptVersion": "3.7"
|
||||
"typesPublisherContentHash": "72e2feda5b833f7d889625c0813da4a3ea14aeda595ba536a13d7f0418fb40ce",
|
||||
"typeScriptVersion": "3.6"
|
||||
}
|
||||
2
node_modules/@types/node/path.d.ts
generated
vendored
2
node_modules/@types/node/path.d.ts
generated
vendored
@@ -13,7 +13,7 @@ declare module 'path/win32' {
|
||||
* ```js
|
||||
* const path = require('path');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/path.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/path.js)
|
||||
*/
|
||||
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
@@ -26,7 +26,7 @@
|
||||
* performance.measure('A to B', 'A', 'B');
|
||||
* });
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/perf_hooks.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/perf_hooks.js)
|
||||
*/
|
||||
declare module 'perf_hooks' {
|
||||
import { AsyncResource } from 'node:async_hooks';
|
||||
@@ -375,7 +375,7 @@ declare module 'perf_hooks' {
|
||||
*/
|
||||
disconnect(): void;
|
||||
/**
|
||||
* Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`:
|
||||
* Subscribes the `<PerformanceObserver>` instance to notifications of new `<PerformanceEntry>` instances identified either by `options.entryTypes`or `options.type`:
|
||||
*
|
||||
* ```js
|
||||
* const {
|
||||
@@ -545,7 +545,7 @@ declare module 'perf_hooks' {
|
||||
figures?: number | undefined;
|
||||
}
|
||||
/**
|
||||
* Returns a `RecordableHistogram`.
|
||||
* Returns a `<RecordableHistogram>`.
|
||||
* @since v15.9.0
|
||||
*/
|
||||
function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
|
||||
|
||||
145
node_modules/@types/node/process.d.ts
generated
vendored
145
node_modules/@types/node/process.d.ts
generated
vendored
@@ -87,13 +87,12 @@ declare module 'process' {
|
||||
| 'SIGBREAK'
|
||||
| 'SIGLOST'
|
||||
| 'SIGINFO';
|
||||
type UncaughtExceptionOrigin = 'uncaughtException' | 'unhandledRejection';
|
||||
type MultipleResolveType = 'resolve' | 'reject';
|
||||
type BeforeExitListener = (code: number) => void;
|
||||
type DisconnectListener = () => void;
|
||||
type ExitListener = (code: number) => void;
|
||||
type RejectionHandledListener = (promise: Promise<unknown>) => void;
|
||||
type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
|
||||
type UncaughtExceptionListener = (error: Error) => void;
|
||||
type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise<unknown>) => void;
|
||||
type WarningListener = (warning: Error) => void;
|
||||
type MessageListener = (message: unknown, sendHandle: unknown) => void;
|
||||
@@ -245,9 +244,7 @@ declare module 'process' {
|
||||
* For example, to copy `process.stdin` to `process.stdout`:
|
||||
*
|
||||
* ```js
|
||||
* import { stdin, stdout } from 'process';
|
||||
*
|
||||
* stdin.pipe(stdout);
|
||||
* process.stdin.pipe(process.stdout);
|
||||
* ```
|
||||
*
|
||||
* `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
|
||||
@@ -292,10 +289,8 @@ declare module 'process' {
|
||||
* For example, assuming the following script for `process-args.js`:
|
||||
*
|
||||
* ```js
|
||||
* import { argv } from 'process';
|
||||
*
|
||||
* // print process.argv
|
||||
* argv.forEach((val, index) => {
|
||||
* process.argv.forEach((val, index) => {
|
||||
* console.log(`${index}: ${val}`);
|
||||
* });
|
||||
* ```
|
||||
@@ -384,12 +379,10 @@ declare module 'process' {
|
||||
* the specified `directory` does not exist).
|
||||
*
|
||||
* ```js
|
||||
* import { chdir, cwd } from 'process';
|
||||
*
|
||||
* console.log(`Starting directory: ${cwd()}`);
|
||||
* console.log(`Starting directory: ${process.cwd()}`);
|
||||
* try {
|
||||
* chdir('/tmp');
|
||||
* console.log(`New directory: ${cwd()}`);
|
||||
* process.chdir('/tmp');
|
||||
* console.log(`New directory: ${process.cwd()}`);
|
||||
* } catch (err) {
|
||||
* console.error(`chdir: ${err}`);
|
||||
* }
|
||||
@@ -404,9 +397,7 @@ declare module 'process' {
|
||||
* process.
|
||||
*
|
||||
* ```js
|
||||
* import { cwd } from 'process';
|
||||
*
|
||||
* console.log(`Current directory: ${cwd()}`);
|
||||
* console.log(`Current directory: ${process.cwd()}`);
|
||||
* ```
|
||||
* @since v0.1.8
|
||||
*/
|
||||
@@ -415,8 +406,6 @@ declare module 'process' {
|
||||
* The port used by the Node.js debugger when enabled.
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* process.debugPort = 5858;
|
||||
* ```
|
||||
* @since v0.7.2
|
||||
@@ -427,10 +416,8 @@ declare module 'process' {
|
||||
* specific process warnings. These can be listened for by adding a handler to the `'warning'` event.
|
||||
*
|
||||
* ```js
|
||||
* import { emitWarning } from 'process';
|
||||
*
|
||||
* // Emit a warning with a code and additional detail.
|
||||
* emitWarning('Something happened!', {
|
||||
* process.emitWarning('Something happened!', {
|
||||
* code: 'MY_WARNING',
|
||||
* detail: 'This is some additional information'
|
||||
* });
|
||||
@@ -442,8 +429,6 @@ declare module 'process' {
|
||||
* In this example, an `Error` object is generated internally by`process.emitWarning()` and passed through to the `'warning'` handler.
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* process.on('warning', (warning) => {
|
||||
* console.warn(warning.name); // 'Warning'
|
||||
* console.warn(warning.message); // 'Something happened!'
|
||||
@@ -494,10 +479,8 @@ declare module 'process' {
|
||||
* While the following will:
|
||||
*
|
||||
* ```js
|
||||
* import { env } from 'process';
|
||||
*
|
||||
* env.foo = 'bar';
|
||||
* console.log(env.foo);
|
||||
* process.env.foo = 'bar';
|
||||
* console.log(process.env.foo);
|
||||
* ```
|
||||
*
|
||||
* Assigning a property on `process.env` will implicitly convert the value
|
||||
@@ -505,34 +488,28 @@ declare module 'process' {
|
||||
* throw an error when the value is not a string, number, or boolean.
|
||||
*
|
||||
* ```js
|
||||
* import { env } from 'process';
|
||||
*
|
||||
* env.test = null;
|
||||
* console.log(env.test);
|
||||
* process.env.test = null;
|
||||
* console.log(process.env.test);
|
||||
* // => 'null'
|
||||
* env.test = undefined;
|
||||
* console.log(env.test);
|
||||
* process.env.test = undefined;
|
||||
* console.log(process.env.test);
|
||||
* // => 'undefined'
|
||||
* ```
|
||||
*
|
||||
* Use `delete` to delete a property from `process.env`.
|
||||
*
|
||||
* ```js
|
||||
* import { env } from 'process';
|
||||
*
|
||||
* env.TEST = 1;
|
||||
* delete env.TEST;
|
||||
* console.log(env.TEST);
|
||||
* process.env.TEST = 1;
|
||||
* delete process.env.TEST;
|
||||
* console.log(process.env.TEST);
|
||||
* // => undefined
|
||||
* ```
|
||||
*
|
||||
* On Windows operating systems, environment variables are case-insensitive.
|
||||
*
|
||||
* ```js
|
||||
* import { env } from 'process';
|
||||
*
|
||||
* env.TEST = 1;
|
||||
* console.log(env.test);
|
||||
* process.env.TEST = 1;
|
||||
* console.log(process.env.test);
|
||||
* // => 1
|
||||
* ```
|
||||
*
|
||||
@@ -555,9 +532,7 @@ declare module 'process' {
|
||||
* To exit with a 'failure' code:
|
||||
*
|
||||
* ```js
|
||||
* import { exit } from 'process';
|
||||
*
|
||||
* exit(1);
|
||||
* process.exit(1);
|
||||
* ```
|
||||
*
|
||||
* The shell that executed Node.js should see the exit code as `1`.
|
||||
@@ -574,12 +549,10 @@ declare module 'process' {
|
||||
* truncated and lost:
|
||||
*
|
||||
* ```js
|
||||
* import { exit } from 'process';
|
||||
*
|
||||
* // This is an example of what *not* to do:
|
||||
* if (someConditionNotMet()) {
|
||||
* printUsageToStdout();
|
||||
* exit(1);
|
||||
* process.exit(1);
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
@@ -591,8 +564,6 @@ declare module 'process' {
|
||||
* scheduling any additional work for the event loop:
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* // How to properly set the exit code while letting
|
||||
* // the process exit gracefully.
|
||||
* if (someConditionNotMet()) {
|
||||
@@ -626,8 +597,6 @@ declare module 'process' {
|
||||
* process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.getgid) {
|
||||
* console.log(`Current gid: ${process.getgid()}`);
|
||||
* }
|
||||
@@ -645,8 +614,6 @@ declare module 'process' {
|
||||
* associated numeric ID.
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.getgid && process.setgid) {
|
||||
* console.log(`Current gid: ${process.getgid()}`);
|
||||
* try {
|
||||
@@ -670,8 +637,6 @@ declare module 'process' {
|
||||
* (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.getuid) {
|
||||
* console.log(`Current uid: ${process.getuid()}`);
|
||||
* }
|
||||
@@ -689,8 +654,6 @@ declare module 'process' {
|
||||
* numeric ID.
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.getuid && process.setuid) {
|
||||
* console.log(`Current uid: ${process.getuid()}`);
|
||||
* try {
|
||||
@@ -713,8 +676,6 @@ declare module 'process' {
|
||||
* the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.geteuid) {
|
||||
* console.log(`Current uid: ${process.geteuid()}`);
|
||||
* }
|
||||
@@ -732,8 +693,6 @@ declare module 'process' {
|
||||
* associated numeric ID.
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.geteuid && process.seteuid) {
|
||||
* console.log(`Current uid: ${process.geteuid()}`);
|
||||
* try {
|
||||
@@ -757,8 +716,6 @@ declare module 'process' {
|
||||
* of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.getegid) {
|
||||
* console.log(`Current gid: ${process.getegid()}`);
|
||||
* }
|
||||
@@ -776,8 +733,6 @@ declare module 'process' {
|
||||
* the associated a numeric ID.
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.getegid && process.setegid) {
|
||||
* console.log(`Current gid: ${process.getegid()}`);
|
||||
* try {
|
||||
@@ -802,8 +757,6 @@ declare module 'process' {
|
||||
* Node.js ensures it always is.
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.getgroups) {
|
||||
* console.log(process.getgroups()); // [ 16, 21, 297 ]
|
||||
* }
|
||||
@@ -822,8 +775,6 @@ declare module 'process' {
|
||||
* The `groups` array can contain numeric group IDs, group names, or both.
|
||||
*
|
||||
* ```js
|
||||
* import process from 'process';
|
||||
*
|
||||
* if (process.getgroups && process.setgroups) {
|
||||
* try {
|
||||
* process.setgroups([501]);
|
||||
@@ -868,9 +819,7 @@ declare module 'process' {
|
||||
* The `process.version` property contains the Node.js version string.
|
||||
*
|
||||
* ```js
|
||||
* import { version } from 'process';
|
||||
*
|
||||
* console.log(`Version: ${version}`);
|
||||
* console.log(`Version: ${process.version}`);
|
||||
* // Version: v14.8.0
|
||||
* ```
|
||||
*
|
||||
@@ -885,9 +834,7 @@ declare module 'process' {
|
||||
* to load modules that were compiled against a different module ABI version.
|
||||
*
|
||||
* ```js
|
||||
* import { versions } from 'process';
|
||||
*
|
||||
* console.log(versions);
|
||||
* console.log(process.versions);
|
||||
* ```
|
||||
*
|
||||
* Will generate an object similar to:
|
||||
@@ -972,8 +919,6 @@ declare module 'process' {
|
||||
* other than kill the target process.
|
||||
*
|
||||
* ```js
|
||||
* import process, { kill } from 'process';
|
||||
*
|
||||
* process.on('SIGHUP', () => {
|
||||
* console.log('Got SIGHUP signal.');
|
||||
* });
|
||||
@@ -983,7 +928,7 @@ declare module 'process' {
|
||||
* process.exit(0);
|
||||
* }, 100);
|
||||
*
|
||||
* kill(process.pid, 'SIGHUP');
|
||||
* process.kill(process.pid, 'SIGHUP');
|
||||
* ```
|
||||
*
|
||||
* When `SIGUSR1` is received by a Node.js process, Node.js will start the
|
||||
@@ -997,9 +942,7 @@ declare module 'process' {
|
||||
* The `process.pid` property returns the PID of the process.
|
||||
*
|
||||
* ```js
|
||||
* import { pid } from 'process';
|
||||
*
|
||||
* console.log(`This process is pid ${pid}`);
|
||||
* console.log(`This process is pid ${process.pid}`);
|
||||
* ```
|
||||
* @since v0.1.15
|
||||
*/
|
||||
@@ -1009,9 +952,7 @@ declare module 'process' {
|
||||
* current process.
|
||||
*
|
||||
* ```js
|
||||
* import { ppid } from 'process';
|
||||
*
|
||||
* console.log(`The parent process is pid ${ppid}`);
|
||||
* console.log(`The parent process is pid ${process.ppid}`);
|
||||
* ```
|
||||
* @since v9.2.0, v8.10.0, v6.13.0
|
||||
*/
|
||||
@@ -1039,9 +980,7 @@ declare module 'process' {
|
||||
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
|
||||
*
|
||||
* ```js
|
||||
* import { arch } from 'process';
|
||||
*
|
||||
* console.log(`This processor architecture is ${arch}`);
|
||||
* console.log(`This processor architecture is ${process.arch}`);
|
||||
* ```
|
||||
* @since v0.5.0
|
||||
*/
|
||||
@@ -1061,9 +1000,7 @@ declare module 'process' {
|
||||
* * `'win32'`
|
||||
*
|
||||
* ```js
|
||||
* import { platform } from 'process';
|
||||
*
|
||||
* console.log(`This platform is ${platform}`);
|
||||
* console.log(`This platform is ${process.platform}`);
|
||||
* ```
|
||||
*
|
||||
* The value `'android'` may also be returned if the Node.js is built on the
|
||||
@@ -1095,16 +1032,14 @@ declare module 'process' {
|
||||
* argument to the function, to get a diff reading.
|
||||
*
|
||||
* ```js
|
||||
* import { cpuUsage } from 'process';
|
||||
*
|
||||
* const startUsage = cpuUsage();
|
||||
* const startUsage = process.cpuUsage();
|
||||
* // { user: 38579, system: 6986 }
|
||||
*
|
||||
* // spin the CPU for 500 milliseconds
|
||||
* const now = Date.now();
|
||||
* while (Date.now() - now < 500);
|
||||
*
|
||||
* console.log(cpuUsage(startUsage));
|
||||
* console.log(process.cpuUsage(startUsage));
|
||||
* // { user: 514883, system: 11226 }
|
||||
* ```
|
||||
* @since v6.1.0
|
||||
@@ -1119,10 +1054,8 @@ declare module 'process' {
|
||||
* See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background.
|
||||
*
|
||||
* ```js
|
||||
* import { nextTick } from 'process';
|
||||
*
|
||||
* console.log('start');
|
||||
* nextTick(() => {
|
||||
* process.nextTick(() => {
|
||||
* console.log('nextTick callback');
|
||||
* });
|
||||
* console.log('scheduled');
|
||||
@@ -1137,12 +1070,10 @@ declare module 'process' {
|
||||
* I/O has occurred:
|
||||
*
|
||||
* ```js
|
||||
* import { nextTick } from 'process';
|
||||
*
|
||||
* function MyThing(options) {
|
||||
* this.setupOptions(options);
|
||||
*
|
||||
* nextTick(() => {
|
||||
* process.nextTick(() => {
|
||||
* this.startDoingStuff();
|
||||
* });
|
||||
* }
|
||||
@@ -1185,11 +1116,9 @@ declare module 'process' {
|
||||
* The following approach is much better:
|
||||
*
|
||||
* ```js
|
||||
* import { nextTick } from 'process';
|
||||
*
|
||||
* function definitelyAsync(arg, cb) {
|
||||
* if (arg) {
|
||||
* nextTick(cb);
|
||||
* process.nextTick(cb);
|
||||
* return;
|
||||
* }
|
||||
*
|
||||
@@ -1317,9 +1246,7 @@ declare module 'process' {
|
||||
* dashes:
|
||||
*
|
||||
* ```js
|
||||
* import { allowedNodeEnvironmentFlags } from 'process';
|
||||
*
|
||||
* allowedNodeEnvironmentFlags.forEach((flag) => {
|
||||
* process.allowedNodeEnvironmentFlags.forEach((flag) => {
|
||||
* // -r
|
||||
* // --inspect-brk
|
||||
* // --abort_on_uncaught_exception
|
||||
@@ -1343,9 +1270,7 @@ declare module 'process' {
|
||||
report?: ProcessReport | undefined;
|
||||
/**
|
||||
* ```js
|
||||
* import { resourceUsage } from 'process';
|
||||
*
|
||||
* console.log(resourceUsage());
|
||||
* console.log(process.resourceUsage());
|
||||
* /*
|
||||
* Will output:
|
||||
* {
|
||||
|
||||
5
node_modules/@types/node/punycode.d.ts
generated
vendored
5
node_modules/@types/node/punycode.d.ts
generated
vendored
@@ -1,5 +1,6 @@
|
||||
/**
|
||||
* **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
|
||||
* **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](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL
|
||||
* encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`.
|
||||
@@ -24,7 +25,7 @@
|
||||
* made available to developers as a convenience. Fixes or other modifications to
|
||||
* the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
|
||||
* @deprecated Since v7.0.0 - Deprecated
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/punycode.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/punycode.js)
|
||||
*/
|
||||
declare module 'punycode' {
|
||||
/**
|
||||
|
||||
4
node_modules/@types/node/querystring.d.ts
generated
vendored
4
node_modules/@types/node/querystring.d.ts
generated
vendored
@@ -7,9 +7,9 @@
|
||||
* ```
|
||||
*
|
||||
* The `querystring` API is considered Legacy. While it is still maintained,
|
||||
* new code should use the `URLSearchParams` API instead.
|
||||
* new code should use the `<URLSearchParams>` API instead.
|
||||
* @deprecated Legacy
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/querystring.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/querystring.js)
|
||||
*/
|
||||
declare module 'querystring' {
|
||||
interface StringifyOptions {
|
||||
|
||||
2
node_modules/@types/node/readline.d.ts
generated
vendored
2
node_modules/@types/node/readline.d.ts
generated
vendored
@@ -26,7 +26,7 @@
|
||||
*
|
||||
* Once this code is invoked, the Node.js application will not terminate until the`readline.Interface` is closed because the interface waits for data to be
|
||||
* received on the `input` stream.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/readline.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/readline.js)
|
||||
*/
|
||||
declare module 'readline' {
|
||||
import { Abortable, EventEmitter } from 'node:events';
|
||||
|
||||
2
node_modules/@types/node/repl.d.ts
generated
vendored
2
node_modules/@types/node/repl.d.ts
generated
vendored
@@ -6,7 +6,7 @@
|
||||
* ```js
|
||||
* const repl = require('repl');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/repl.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/repl.js)
|
||||
*/
|
||||
declare module 'repl' {
|
||||
import { Interface, Completer, AsyncCompleter } from 'node:readline';
|
||||
|
||||
7
node_modules/@types/node/stream.d.ts
generated
vendored
7
node_modules/@types/node/stream.d.ts
generated
vendored
@@ -14,12 +14,11 @@
|
||||
*
|
||||
* The `stream` module is useful for creating new types of stream instances. It is
|
||||
* usually not necessary to use the `stream` module to consume streams.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/stream.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/stream.js)
|
||||
*/
|
||||
declare module 'stream' {
|
||||
import { EventEmitter, Abortable } from 'node:events';
|
||||
import * as streamPromises from 'node:stream/promises';
|
||||
import * as streamConsumers from 'node:stream/consumers';
|
||||
class internal extends EventEmitter {
|
||||
pipe<T extends NodeJS.WritableStream>(
|
||||
destination: T,
|
||||
@@ -790,7 +789,6 @@ declare module 'stream' {
|
||||
readonly writableLength: number;
|
||||
readonly writableObjectMode: boolean;
|
||||
readonly writableCorked: number;
|
||||
allowHalfOpen: boolean;
|
||||
constructor(opts?: DuplexOptions);
|
||||
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
||||
_writev?(
|
||||
@@ -1009,7 +1007,7 @@ declare module 'stream' {
|
||||
* ```
|
||||
*
|
||||
* The `pipeline` API provides a promise version, which can also
|
||||
* receive an options argument as the last parameter with a`signal` `AbortSignal` property. When the signal is aborted,`destroy` will be called on the underlying pipeline, with
|
||||
* receive an options argument as the last parameter with a`signal` `<AbortSignal>` property. When the signal is aborted,`destroy` will be called on the underlying pipeline, with
|
||||
* an`AbortError`.
|
||||
*
|
||||
* ```js
|
||||
@@ -1171,7 +1169,6 @@ declare module 'stream' {
|
||||
unref(): void;
|
||||
}
|
||||
const promises: typeof streamPromises;
|
||||
const consumers: typeof streamConsumers;
|
||||
}
|
||||
export = internal;
|
||||
}
|
||||
|
||||
24
node_modules/@types/node/stream/consumers.d.ts
generated
vendored
24
node_modules/@types/node/stream/consumers.d.ts
generated
vendored
@@ -1,24 +0,0 @@
|
||||
// Duplicates of interface in lib.dom.ts.
|
||||
// Duplicated here rather than referencing lib.dom.ts because doing so causes lib.dom.ts to be loaded for "test-all"
|
||||
// Which in turn causes tests to pass that shouldn't pass.
|
||||
//
|
||||
// This interface is not, and should not be, exported.
|
||||
interface Blob {
|
||||
readonly size: number;
|
||||
readonly type: string;
|
||||
arrayBuffer(): Promise<ArrayBuffer>;
|
||||
slice(start?: number, end?: number, contentType?: string): Blob;
|
||||
stream(): NodeJS.ReadableStream;
|
||||
text(): Promise<string>;
|
||||
}
|
||||
declare module 'stream/consumers' {
|
||||
import { Readable } from 'node:stream';
|
||||
function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Buffer>;
|
||||
function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<string>;
|
||||
function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<ArrayBuffer>;
|
||||
function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Blob>;
|
||||
function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<unknown>;
|
||||
}
|
||||
declare module 'node:stream/consumers' {
|
||||
export * from 'stream/consumers';
|
||||
}
|
||||
6
node_modules/@types/node/stream/web.d.ts
generated
vendored
6
node_modules/@types/node/stream/web.d.ts
generated
vendored
@@ -1,6 +0,0 @@
|
||||
declare module 'stream/web' {
|
||||
// stub module, pending copy&paste from .d.ts or manual impl
|
||||
}
|
||||
declare module 'node:stream/web' {
|
||||
export * from 'stream/web';
|
||||
}
|
||||
2
node_modules/@types/node/string_decoder.d.ts
generated
vendored
2
node_modules/@types/node/string_decoder.d.ts
generated
vendored
@@ -36,7 +36,7 @@
|
||||
* decoder.write(Buffer.from([0x82]));
|
||||
* console.log(decoder.end(Buffer.from([0xAC])));
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/string_decoder.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/string_decoder.js)
|
||||
*/
|
||||
declare module 'string_decoder' {
|
||||
class StringDecoder {
|
||||
|
||||
2
node_modules/@types/node/timers.d.ts
generated
vendored
2
node_modules/@types/node/timers.d.ts
generated
vendored
@@ -6,7 +6,7 @@
|
||||
* The timer functions within Node.js implement a similar API as the timers API
|
||||
* provided by Web Browsers but use a different internal implementation that is
|
||||
* built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/timers.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/timers.js)
|
||||
*/
|
||||
declare module 'timers' {
|
||||
import { Abortable } from 'node:events';
|
||||
|
||||
45
node_modules/@types/node/timers/promises.d.ts
generated
vendored
45
node_modules/@types/node/timers/promises.d.ts
generated
vendored
@@ -9,6 +9,14 @@
|
||||
* setInterval,
|
||||
* } from 'timers/promises';
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const {
|
||||
* setTimeout,
|
||||
* setImmediate,
|
||||
* setInterval,
|
||||
* } = require('timers/promises');
|
||||
* ```
|
||||
* @since v15.0.0
|
||||
*/
|
||||
declare module 'timers/promises' {
|
||||
@@ -23,6 +31,16 @@ declare module 'timers/promises' {
|
||||
*
|
||||
* console.log(res); // Prints 'result'
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const {
|
||||
* setTimeout,
|
||||
* } = require('timers/promises');
|
||||
*
|
||||
* setTimeout(100, 'result').then((res) => {
|
||||
* console.log(res); // Prints 'result'
|
||||
* });
|
||||
* ```
|
||||
* @since v15.0.0
|
||||
* @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
|
||||
* @param value A value with which the promise is fulfilled.
|
||||
@@ -38,6 +56,16 @@ declare module 'timers/promises' {
|
||||
*
|
||||
* console.log(res); // Prints 'result'
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const {
|
||||
* setImmediate,
|
||||
* } = require('timers/promises');
|
||||
*
|
||||
* setImmediate('result').then((res) => {
|
||||
* console.log(res); // Prints 'result'
|
||||
* });
|
||||
* ```
|
||||
* @since v15.0.0
|
||||
* @param value A value with which the promise is fulfilled.
|
||||
*/
|
||||
@@ -59,6 +87,23 @@ declare module 'timers/promises' {
|
||||
* }
|
||||
* console.log(Date.now());
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const {
|
||||
* setInterval,
|
||||
* } = require('timers/promises');
|
||||
* const interval = 100;
|
||||
*
|
||||
* (async function() {
|
||||
* for await (const startTime of setInterval(interval, Date.now())) {
|
||||
* const now = Date.now();
|
||||
* console.log(now);
|
||||
* if ((now - startTime) > 1000)
|
||||
* break;
|
||||
* }
|
||||
* console.log(Date.now());
|
||||
* })();
|
||||
* ```
|
||||
* @since v15.9.0
|
||||
*/
|
||||
function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): AsyncIterable<T>;
|
||||
|
||||
13
node_modules/@types/node/tls.d.ts
generated
vendored
13
node_modules/@types/node/tls.d.ts
generated
vendored
@@ -6,7 +6,7 @@
|
||||
* ```js
|
||||
* const tls = require('tls');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/tls.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/tls.js)
|
||||
*/
|
||||
declare module 'tls' {
|
||||
import { X509Certificate } from 'node:crypto';
|
||||
@@ -160,10 +160,9 @@ declare module 'tls' {
|
||||
encrypted: boolean;
|
||||
/**
|
||||
* String containing the selected ALPN protocol.
|
||||
* Before a handshake has completed, this value is always null.
|
||||
* When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false.
|
||||
* When ALPN has no selected protocol, tlsSocket.alpnProtocol equals false.
|
||||
*/
|
||||
alpnProtocol: string | false | null;
|
||||
alpnProtocol?: string | undefined;
|
||||
/**
|
||||
* Returns an object representing the local certificate. The returned object has
|
||||
* some properties corresponding to the fields of the certificate.
|
||||
@@ -349,14 +348,14 @@ declare module 'tls' {
|
||||
*/
|
||||
enableTrace(): void;
|
||||
/**
|
||||
* Returns the peer certificate as an `X509Certificate` object.
|
||||
* Returns the peer certificate as an `<X509Certificate>` object.
|
||||
*
|
||||
* If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned.
|
||||
* @since v15.9.0
|
||||
*/
|
||||
getPeerX509Certificate(): X509Certificate | undefined;
|
||||
/**
|
||||
* Returns the local certificate as an `X509Certificate` object.
|
||||
* Returns the local certificate as an `<X509Certificate>` object.
|
||||
*
|
||||
* If there is no local certificate, or the socket has been destroyed,`undefined` will be returned.
|
||||
* @since v15.9.0
|
||||
@@ -453,7 +452,7 @@ declare module 'tls' {
|
||||
* SecureContext.) If SNICallback wasn't provided the default callback
|
||||
* with high-level API will be used (see below).
|
||||
*/
|
||||
SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined;
|
||||
SNICallback?: ((servername: string, cb: (err: Error | null, ctx: SecureContext) => void) => void) | undefined;
|
||||
/**
|
||||
* If true the server will reject any connection which is not
|
||||
* authorized with the list of supplied CAs. This option only has an
|
||||
|
||||
2
node_modules/@types/node/trace_events.d.ts
generated
vendored
2
node_modules/@types/node/trace_events.d.ts
generated
vendored
@@ -73,7 +73,7 @@
|
||||
*
|
||||
* The features from this module are not available in `Worker` threads.
|
||||
* @experimental
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/trace_events.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/trace_events.js)
|
||||
*/
|
||||
declare module 'trace_events' {
|
||||
/**
|
||||
|
||||
103
node_modules/@types/node/ts3.6/assert.d.ts
generated
vendored
Executable file
103
node_modules/@types/node/ts3.6/assert.d.ts
generated
vendored
Executable file
@@ -0,0 +1,103 @@
|
||||
declare module 'assert' {
|
||||
/** An alias of `assert.ok()`. */
|
||||
function assert(value: unknown, message?: string | Error): void;
|
||||
namespace assert {
|
||||
class AssertionError extends Error {
|
||||
actual: unknown;
|
||||
expected: unknown;
|
||||
operator: string;
|
||||
generatedMessage: boolean;
|
||||
code: 'ERR_ASSERTION';
|
||||
|
||||
constructor(options?: {
|
||||
/** If provided, the error message is set to this value. */
|
||||
message?: string;
|
||||
/** The `actual` property on the error instance. */
|
||||
actual?: unknown;
|
||||
/** The `expected` property on the error instance. */
|
||||
expected?: unknown;
|
||||
/** The `operator` property on the error instance. */
|
||||
operator?: string;
|
||||
/** If provided, the generated stack trace omits frames before this function. */
|
||||
// tslint:disable-next-line:ban-types
|
||||
stackStartFn?: Function;
|
||||
});
|
||||
}
|
||||
|
||||
class CallTracker {
|
||||
calls(exact?: number): () => void;
|
||||
calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
|
||||
report(): CallTrackerReportInformation[];
|
||||
verify(): void;
|
||||
}
|
||||
interface CallTrackerReportInformation {
|
||||
message: string;
|
||||
/** The actual number of times the function was called. */
|
||||
actual: number;
|
||||
/** The number of times the function was expected to be called. */
|
||||
expected: number;
|
||||
/** The name of the function that is wrapped. */
|
||||
operator: string;
|
||||
/** A stack trace of the function. */
|
||||
stack: object;
|
||||
}
|
||||
|
||||
type AssertPredicate = RegExp | (new () => object) | ((thrown: unknown) => boolean) | object | Error;
|
||||
|
||||
function fail(message?: string | Error): never;
|
||||
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
|
||||
function fail(
|
||||
actual: unknown,
|
||||
expected: unknown,
|
||||
message?: string | Error,
|
||||
operator?: string,
|
||||
// tslint:disable-next-line:ban-types
|
||||
stackStartFn?: Function,
|
||||
): never;
|
||||
function ok(value: unknown, message?: string | Error): void;
|
||||
/** @deprecated since v9.9.0 - use strictEqual() instead. */
|
||||
function equal(actual: unknown, expected: unknown, message?: string | Error): void;
|
||||
/** @deprecated since v9.9.0 - use notStrictEqual() instead. */
|
||||
function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
||||
/** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
|
||||
function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
||||
/** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
|
||||
function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
||||
function strictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
||||
function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
||||
function deepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
||||
function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
||||
|
||||
function throws(block: () => unknown, message?: string | Error): void;
|
||||
function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
|
||||
function doesNotThrow(block: () => unknown, message?: string | Error): void;
|
||||
function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void;
|
||||
|
||||
function ifError(value: unknown): void;
|
||||
|
||||
function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
|
||||
function rejects(
|
||||
block: (() => Promise<unknown>) | Promise<unknown>,
|
||||
error: AssertPredicate,
|
||||
message?: string | Error,
|
||||
): Promise<void>;
|
||||
function doesNotReject(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
|
||||
function doesNotReject(
|
||||
block: (() => Promise<unknown>) | Promise<unknown>,
|
||||
error: AssertPredicate,
|
||||
message?: string | Error,
|
||||
): Promise<void>;
|
||||
|
||||
function match(value: string, regExp: RegExp, message?: string | Error): void;
|
||||
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
|
||||
|
||||
const strict: typeof assert;
|
||||
}
|
||||
|
||||
export = assert;
|
||||
}
|
||||
|
||||
declare module 'node:assert' {
|
||||
import assert = require('assert');
|
||||
export = assert;
|
||||
}
|
||||
67
node_modules/@types/node/ts3.6/base.d.ts
generated
vendored
Executable file
67
node_modules/@types/node/ts3.6/base.d.ts
generated
vendored
Executable file
@@ -0,0 +1,67 @@
|
||||
// NOTE: These definitions support NodeJS and TypeScript 3.6 and earlier.
|
||||
|
||||
// NOTE: TypeScript version-specific augmentations can be found in the following paths:
|
||||
// - ~/base.d.ts - Shared definitions common to all TypeScript versions
|
||||
// - ~/index.d.ts - Definitions specific to TypeScript 3.7 and above
|
||||
// - ~/ts3.6/base.d.ts - Definitions specific to TypeScript 3.6 and earlier
|
||||
// - ~/ts3.6/index.d.ts - Definitions specific to TypeScript 3.6 and earlier with assert pulled in
|
||||
|
||||
// Reference required types from the default lib:
|
||||
/// <reference lib="es2018" />
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/// <reference lib="esnext.intl" />
|
||||
/// <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" />
|
||||
/// <reference path="../child_process.d.ts" />
|
||||
/// <reference path="../cluster.d.ts" />
|
||||
/// <reference path="../console.d.ts" />
|
||||
/// <reference path="../constants.d.ts" />
|
||||
/// <reference path="../crypto.d.ts" />
|
||||
/// <reference path="../dgram.d.ts" />
|
||||
/// <reference path="../diagnostics_channel.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" />
|
||||
/// <reference path="../fs/promises.d.ts" />
|
||||
/// <reference path="../http.d.ts" />
|
||||
/// <reference path="../http2.d.ts" />
|
||||
/// <reference path="../https.d.ts" />
|
||||
/// <reference path="../inspector.d.ts" />
|
||||
/// <reference path="../module.d.ts" />
|
||||
/// <reference path="../net.d.ts" />
|
||||
/// <reference path="../os.d.ts" />
|
||||
/// <reference path="../path.d.ts" />
|
||||
/// <reference path="../perf_hooks.d.ts" />
|
||||
/// <reference path="../process.d.ts" />
|
||||
/// <reference path="../punycode.d.ts" />
|
||||
/// <reference path="../querystring.d.ts" />
|
||||
/// <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" />
|
||||
/// <reference path="../url.d.ts" />
|
||||
/// <reference path="../util.d.ts" />
|
||||
/// <reference path="../v8.d.ts" />
|
||||
/// <reference path="../vm.d.ts" />
|
||||
/// <reference path="../worker_threads.d.ts" />
|
||||
/// <reference path="../zlib.d.ts" />
|
||||
|
||||
// TypeScript 3.6-specific augmentations:
|
||||
/// <reference path="../globals.global.d.ts" />
|
||||
|
||||
// TypeScript 3.6-specific augmentations:
|
||||
/// <reference path="../wasi.d.ts" />
|
||||
7
node_modules/@types/node/ts3.6/index.d.ts
generated
vendored
Executable file
7
node_modules/@types/node/ts3.6/index.d.ts
generated
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
// NOTE: These definitions support NodeJS and TypeScript 3.6.
|
||||
// This is required to enable typing assert in ts3.7 without causing errors
|
||||
// Typically type modifications should be made in base.d.ts instead of here
|
||||
|
||||
/// <reference path="base.d.ts" />
|
||||
|
||||
/// <reference path="assert.d.ts" />
|
||||
8
node_modules/@types/node/tty.d.ts
generated
vendored
8
node_modules/@types/node/tty.d.ts
generated
vendored
@@ -22,7 +22,7 @@
|
||||
*
|
||||
* In most cases, there should be little to no reason for an application to
|
||||
* manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/tty.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/tty.js)
|
||||
*/
|
||||
declare module 'tty' {
|
||||
import * as net from 'node:net';
|
||||
@@ -176,9 +176,9 @@ declare module 'tty' {
|
||||
hasColors(env?: object): boolean;
|
||||
hasColors(count: number, env?: object): boolean;
|
||||
/**
|
||||
* `writeStream.getWindowSize()` returns the size of the TTY
|
||||
* corresponding to this `WriteStream`. The array is of the type`[numColumns, numRows]` where `numColumns` and `numRows` represent the number
|
||||
* of columns and rows in the corresponding TTY.
|
||||
* `writeStream.getWindowSize()` returns the size of the `TTY` corresponding to this `WriteStream`. The array is of the type`[numColumns, numRows]` where `numColumns` and `numRows` represent
|
||||
* the number
|
||||
* of columns and rows in the corresponding `TTY`.
|
||||
* @since v0.7.7
|
||||
*/
|
||||
getWindowSize(): [number, number];
|
||||
|
||||
115
node_modules/@types/node/url.d.ts
generated
vendored
115
node_modules/@types/node/url.d.ts
generated
vendored
@@ -5,10 +5,13 @@
|
||||
* ```js
|
||||
* import url from 'url';
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/url.js)
|
||||
*
|
||||
* ```js
|
||||
* const url = require('url');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/url.js)
|
||||
*/
|
||||
declare module 'url' {
|
||||
import { Blob } from 'node:buffer';
|
||||
import { ClientRequestArgs } from 'node:http';
|
||||
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring';
|
||||
// Input to `url.format`
|
||||
@@ -188,6 +191,17 @@ declare module 'url' {
|
||||
* console.log(url.domainToASCII('xn--iñvalid.com'));
|
||||
* // Prints an empty string
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const url = require('url');
|
||||
*
|
||||
* console.log(url.domainToASCII('español.com'));
|
||||
* // Prints xn--espaol-zwa.com
|
||||
* console.log(url.domainToASCII('中文.com'));
|
||||
* // Prints xn--fiq228c.com
|
||||
* console.log(url.domainToASCII('xn--iñvalid.com'));
|
||||
* // Prints an empty string
|
||||
* ```
|
||||
* @since v7.4.0, v6.13.0
|
||||
*/
|
||||
function domainToASCII(domain: string): string;
|
||||
@@ -209,6 +223,17 @@ declare module 'url' {
|
||||
* console.log(url.domainToUnicode('xn--iñvalid.com'));
|
||||
* // Prints an empty string
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const url = require('url');
|
||||
*
|
||||
* console.log(url.domainToUnicode('xn--espaol-zwa.com'));
|
||||
* // Prints español.com
|
||||
* console.log(url.domainToUnicode('xn--fiq228c.com'));
|
||||
* // Prints 中文.com
|
||||
* console.log(url.domainToUnicode('xn--iñvalid.com'));
|
||||
* // Prints an empty string
|
||||
* ```
|
||||
* @since v7.4.0, v6.13.0
|
||||
*/
|
||||
function domainToUnicode(domain: string): string;
|
||||
@@ -233,6 +258,21 @@ declare module 'url' {
|
||||
* new URL('file:///hello world').pathname; // Incorrect: /hello%20world
|
||||
* fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const { fileURLToPath } = require('url');
|
||||
* new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/
|
||||
* fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows)
|
||||
*
|
||||
* new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt
|
||||
* fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows)
|
||||
*
|
||||
* new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt
|
||||
* fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX)
|
||||
*
|
||||
* new URL('file:///hello world').pathname; // Incorrect: /hello%20world
|
||||
* fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX)
|
||||
* ```
|
||||
* @since v10.12.0
|
||||
* @param url The file URL string or URL object to convert to a path.
|
||||
* @return The fully-resolved platform-specific Node.js file path.
|
||||
@@ -251,6 +291,20 @@ declare module 'url' {
|
||||
* new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c
|
||||
* pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const { pathToFileURL } = require('url');
|
||||
* new URL(__filename); // Incorrect: throws (POSIX)
|
||||
* new URL(__filename); // Incorrect: C:\... (Windows)
|
||||
* pathToFileURL(__filename); // Correct: file:///... (POSIX)
|
||||
* pathToFileURL(__filename); // Correct: file:///C:/... (Windows)
|
||||
*
|
||||
* new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1
|
||||
* pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX)
|
||||
*
|
||||
* new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c
|
||||
* pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX)
|
||||
* ```
|
||||
* @since v10.12.0
|
||||
* @param path The path to convert to a File URL.
|
||||
* @return The file URL object.
|
||||
@@ -264,7 +318,26 @@ declare module 'url' {
|
||||
* import { urlToHttpOptions } from 'url';
|
||||
* const myURL = new URL('https://a:b@測試?abc#foo');
|
||||
*
|
||||
* console.log(urlToHttpOptions(myURL));
|
||||
* console.log(urlToHttpOptions(myUrl));
|
||||
*
|
||||
* {
|
||||
* protocol: 'https:',
|
||||
* hostname: 'xn--g6w251d',
|
||||
* hash: '#foo',
|
||||
* search: '?abc',
|
||||
* pathname: '/',
|
||||
* path: '/?abc',
|
||||
* href: 'https://a:b@xn--g6w251d/?abc#foo',
|
||||
* auth: 'a:b'
|
||||
* }
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* const { urlToHttpOptions } = require('url');
|
||||
* const myURL = new URL('https://a:b@測試?abc#foo');
|
||||
*
|
||||
* console.log(urlToHttpOptions(myUrl));
|
||||
*
|
||||
* {
|
||||
* protocol: 'https:',
|
||||
@@ -302,40 +375,6 @@ declare module 'url' {
|
||||
* @since v7.0.0, v6.13.0
|
||||
*/
|
||||
class URL {
|
||||
/**
|
||||
* Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later.
|
||||
*
|
||||
* ```js
|
||||
* const {
|
||||
* Blob,
|
||||
* resolveObjectURL,
|
||||
* } = require('buffer');
|
||||
*
|
||||
* const blob = new Blob(['hello']);
|
||||
* const id = URL.createObjectURL(blob);
|
||||
*
|
||||
* // later...
|
||||
*
|
||||
* const otherBlob = resolveObjectURL(id);
|
||||
* console.log(otherBlob.size);
|
||||
* ```
|
||||
*
|
||||
* The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it.
|
||||
*
|
||||
* `Blob` objects are registered within the current thread. If using Worker
|
||||
* Threads, `Blob` objects registered within one Worker will not be available
|
||||
* to other workers or the main thread.
|
||||
* @since v16.7.0
|
||||
* @experimental
|
||||
*/
|
||||
static createObjectURL(blob: Blob): string;
|
||||
/**
|
||||
* Removes the stored `Blob` identified by the given ID.
|
||||
* @since v16.7.0
|
||||
* @experimental
|
||||
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
||||
*/
|
||||
static revokeObjectURL(objectUrl: string): void;
|
||||
constructor(input: string, base?: string | URL);
|
||||
/**
|
||||
* Gets and sets the fragment portion of the URL.
|
||||
@@ -697,7 +736,7 @@ declare module 'url' {
|
||||
* Returns an ES6 `Iterator` over each of the name-value pairs in the query.
|
||||
* Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`.
|
||||
*
|
||||
* Alias for `urlSearchParams[@@iterator]()`.
|
||||
* Alias for {@link earchParams[@@iterator]}.
|
||||
*/
|
||||
entries(): IterableIterator<[string, string]>;
|
||||
/**
|
||||
|
||||
6
node_modules/@types/node/util.d.ts
generated
vendored
6
node_modules/@types/node/util.d.ts
generated
vendored
@@ -6,7 +6,7 @@
|
||||
* ```js
|
||||
* const util = require('util');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/util.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/util.js)
|
||||
*/
|
||||
declare module 'util' {
|
||||
import * as types from 'node:util/types';
|
||||
@@ -1538,12 +1538,12 @@ declare module 'util/types' {
|
||||
*/
|
||||
function isWeakSet(object: unknown): object is WeakSet<object>;
|
||||
/**
|
||||
* Returns `true` if `value` is a `KeyObject`, `false` otherwise.
|
||||
* Returns `true` if `value` is a `<KeyObject>`, `false` otherwise.
|
||||
* @since v16.2.0
|
||||
*/
|
||||
function isKeyObject(object: unknown): object is KeyObject;
|
||||
/**
|
||||
* Returns `true` if `value` is a `CryptoKey`, `false` otherwise.
|
||||
* Returns `true` if `value` is a `<CryptoKey>`, `false` otherwise.
|
||||
* @since v16.2.0
|
||||
*/
|
||||
function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
|
||||
|
||||
2
node_modules/@types/node/v8.d.ts
generated
vendored
2
node_modules/@types/node/v8.d.ts
generated
vendored
@@ -4,7 +4,7 @@
|
||||
* ```js
|
||||
* const v8 = require('v8');
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/v8.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/v8.js)
|
||||
*/
|
||||
declare module 'v8' {
|
||||
import { Readable } from 'node:stream';
|
||||
|
||||
4
node_modules/@types/node/vm.d.ts
generated
vendored
4
node_modules/@types/node/vm.d.ts
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* The `vm` module enables compiling and running code within V8 Virtual
|
||||
* Machine contexts. **The `vm` module is not a security mechanism. Do**
|
||||
* **not use it to run untrusted code.**
|
||||
* **not use it to run untrusted code**.
|
||||
*
|
||||
* JavaScript code can be compiled and run immediately or
|
||||
* compiled, saved, and run later.
|
||||
@@ -32,7 +32,7 @@
|
||||
*
|
||||
* console.log(x); // 1; y is not defined.
|
||||
* ```
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/vm.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/vm.js)
|
||||
*/
|
||||
declare module 'vm' {
|
||||
interface Context extends NodeJS.Dict<any> {}
|
||||
|
||||
28
node_modules/@types/node/wasi.d.ts
generated
vendored
28
node_modules/@types/node/wasi.d.ts
generated
vendored
@@ -5,11 +5,10 @@
|
||||
* ```js
|
||||
* import fs from 'fs';
|
||||
* import { WASI } from 'wasi';
|
||||
* import { argv, env } from 'process';
|
||||
*
|
||||
* const wasi = new WASI({
|
||||
* args: argv,
|
||||
* env,
|
||||
* args: process.argv,
|
||||
* env: process.env,
|
||||
* preopens: {
|
||||
* '/sandbox': '/some/real/path/that/wasm/can/access'
|
||||
* }
|
||||
@@ -22,6 +21,27 @@
|
||||
* wasi.start(instance);
|
||||
* ```
|
||||
*
|
||||
* ```js
|
||||
* 'use strict';
|
||||
* const fs = require('fs');
|
||||
* const { WASI } = require('wasi');
|
||||
* const wasi = new WASI({
|
||||
* args: process.argv,
|
||||
* env: process.env,
|
||||
* preopens: {
|
||||
* '/sandbox': '/some/real/path/that/wasm/can/access'
|
||||
* }
|
||||
* });
|
||||
* const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
|
||||
*
|
||||
* (async () => {
|
||||
* const wasm = await WebAssembly.compile(fs.readFileSync('./demo.wasm'));
|
||||
* const instance = await WebAssembly.instantiate(wasm, importObject);
|
||||
*
|
||||
* wasi.start(instance);
|
||||
* })();
|
||||
* ```
|
||||
*
|
||||
* To run the above example, create a new WebAssembly text format file named`demo.wat`:
|
||||
*
|
||||
* ```text
|
||||
@@ -63,7 +83,7 @@
|
||||
* The `--experimental-wasi-unstable-preview1` CLI argument is needed for this
|
||||
* example to run.
|
||||
* @experimental
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/wasi.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/wasi.js)
|
||||
*/
|
||||
declare module 'wasi' {
|
||||
interface WASIOptions {
|
||||
|
||||
2
node_modules/@types/node/worker_threads.d.ts
generated
vendored
2
node_modules/@types/node/worker_threads.d.ts
generated
vendored
@@ -49,7 +49,7 @@
|
||||
*
|
||||
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
||||
* specifically `argv` and `execArgv` options.
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/worker_threads.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/worker_threads.js)
|
||||
*/
|
||||
declare module 'worker_threads' {
|
||||
import { Blob } from 'node:buffer';
|
||||
|
||||
2
node_modules/@types/node/zlib.d.ts
generated
vendored
2
node_modules/@types/node/zlib.d.ts
generated
vendored
@@ -88,7 +88,7 @@
|
||||
* });
|
||||
* ```
|
||||
* @since v0.5.8
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/zlib.js)
|
||||
* @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/zlib.js)
|
||||
*/
|
||||
declare module 'zlib' {
|
||||
import * as stream from 'node:stream';
|
||||
|
||||
@@ -23,17 +23,17 @@
|
||||
"author": "GitHub",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.5.0",
|
||||
"@actions/core": "^1.4.0",
|
||||
"@actions/github": "^5.0.0",
|
||||
"@types/glob": "^7.1.4",
|
||||
"glob": "^7.1.7",
|
||||
"untildify": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^27.0.1",
|
||||
"@types/node": "^16.7.11",
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/node": "^16.4.12",
|
||||
"jest": "^26.6.3",
|
||||
"jest-circus": "^27.1.0",
|
||||
"jest-circus": "^27.0.6",
|
||||
"ts-jest": "^26.5.6",
|
||||
"typescript": "^4.3.5"
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ export class GithubArtifactUploader implements ArtifactUploader {
|
||||
constructor(
|
||||
private releases: Releases,
|
||||
private replacesExistingArtifacts: boolean = true,
|
||||
private removeArtifacts: boolean = false,
|
||||
private throwsUploadErrors: boolean = false,
|
||||
) {
|
||||
}
|
||||
@@ -21,9 +20,6 @@ export class GithubArtifactUploader implements ArtifactUploader {
|
||||
if (this.replacesExistingArtifacts) {
|
||||
await this.deleteUpdatedArtifacts(artifacts, releaseId)
|
||||
}
|
||||
if (this.removeArtifacts) {
|
||||
await this.deleteUploadedArtifacts(releaseId)
|
||||
}
|
||||
for (const artifact of artifacts) {
|
||||
await this.uploadArtifact(artifact, releaseId, uploadUrl)
|
||||
}
|
||||
@@ -69,13 +65,4 @@ export class GithubArtifactUploader implements ArtifactUploader {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async deleteUploadedArtifacts(releaseId: number): Promise<void> {
|
||||
const releaseAssets = await this.releases.listArtifactsForRelease(releaseId)
|
||||
for (const artifact of releaseAssets) {
|
||||
const asset = artifact
|
||||
core.debug(`Deleting existing artifact ${artifact.name}...`)
|
||||
await this.releases.deleteArtifact(asset.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ export interface Inputs {
|
||||
readonly draft: boolean
|
||||
readonly owner: string
|
||||
readonly createdPrerelease: boolean
|
||||
readonly removeArtifacts: boolean
|
||||
readonly replacesArtifacts: boolean
|
||||
readonly repo: string
|
||||
readonly tag: string
|
||||
@@ -139,10 +138,6 @@ export class CoreInputs implements Inputs {
|
||||
if (CoreInputs.omitPrereleaseDuringUpdate) return undefined
|
||||
return this.createdPrerelease
|
||||
}
|
||||
get removeArtifacts(): boolean {
|
||||
const removes = core.getInput('removeArtifacts')
|
||||
return removes == 'true'
|
||||
}
|
||||
get replacesArtifacts(): boolean {
|
||||
const replaces = core.getInput('replacesArtifacts')
|
||||
return replaces == 'true'
|
||||
|
||||
@@ -27,7 +27,7 @@ function createAction(): Action {
|
||||
const inputs = new CoreInputs(globber, context)
|
||||
const outputs = new CoreOutputs()
|
||||
const releases = new GithubReleases(inputs, git)
|
||||
const uploader = new GithubArtifactUploader(releases, inputs.replacesArtifacts, inputs.removeArtifacts, inputs.artifactErrorsFailBuild)
|
||||
const uploader = new GithubArtifactUploader(releases, inputs.replacesArtifacts, inputs.artifactErrorsFailBuild)
|
||||
return new Action(inputs, outputs, releases, uploader)
|
||||
}
|
||||
|
||||
|
||||
399
yarn.lock
399
yarn.lock
@@ -2,10 +2,10 @@
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@actions/core@^1.5.0":
|
||||
version "1.5.0"
|
||||
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.5.0.tgz#885b864700001a1b9a6fba247833a036e75ad9d3"
|
||||
integrity sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ==
|
||||
"@actions/core@^1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.4.0.tgz#cf2e6ee317e314b03886adfeb20e448d50d6e524"
|
||||
integrity sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg==
|
||||
|
||||
"@actions/github@^5.0.0":
|
||||
version "5.0.0"
|
||||
@@ -539,16 +539,16 @@
|
||||
jest-util "^26.6.2"
|
||||
slash "^3.0.0"
|
||||
|
||||
"@jest/console@^27.1.0":
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@jest/console/-/console-27.1.0.tgz#de13b603cb1d389b50c0dc6296e86e112381e43c"
|
||||
integrity sha512-+Vl+xmLwAXLNlqT61gmHEixeRbS4L8MUzAjtpBCOPWH+izNI/dR16IeXjkXJdRtIVWVSf9DO1gdp67B1XorZhQ==
|
||||
"@jest/console@^27.0.6":
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@jest/console/-/console-27.0.6.tgz#3eb72ea80897495c3d73dd97aab7f26770e2260f"
|
||||
integrity sha512-fMlIBocSHPZ3JxgWiDNW/KPj6s+YRd0hicb33IrmelCcjXo/pXPwvuiKFmZz+XuqI/1u7nbUK10zSsWL/1aegg==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/node" "*"
|
||||
chalk "^4.0.0"
|
||||
jest-message-util "^27.1.0"
|
||||
jest-util "^27.1.0"
|
||||
jest-message-util "^27.0.6"
|
||||
jest-util "^27.0.6"
|
||||
slash "^3.0.0"
|
||||
|
||||
"@jest/core@^26.6.3":
|
||||
@@ -595,15 +595,15 @@
|
||||
"@types/node" "*"
|
||||
jest-mock "^26.6.2"
|
||||
|
||||
"@jest/environment@^27.1.0":
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-27.1.0.tgz#c7224a67004759ec203d8fa44e8bc0db93f66c44"
|
||||
integrity sha512-wRp50aAMY2w1U2jP1G32d6FUVBNYqmk8WaGkiIEisU48qyDV0WPtw3IBLnl7orBeggveommAkuijY+RzVnNDOQ==
|
||||
"@jest/environment@^27.0.6":
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-27.0.6.tgz#ee293fe996db01d7d663b8108fa0e1ff436219d2"
|
||||
integrity sha512-4XywtdhwZwCpPJ/qfAkqExRsERW+UaoSRStSHCCiQTUpoYdLukj+YJbQSFrZjhlUDRZeNiU9SFH0u7iNimdiIg==
|
||||
dependencies:
|
||||
"@jest/fake-timers" "^27.1.0"
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/fake-timers" "^27.0.6"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/node" "*"
|
||||
jest-mock "^27.1.0"
|
||||
jest-mock "^27.0.6"
|
||||
|
||||
"@jest/fake-timers@^26.6.2":
|
||||
version "26.6.2"
|
||||
@@ -617,17 +617,17 @@
|
||||
jest-mock "^26.6.2"
|
||||
jest-util "^26.6.2"
|
||||
|
||||
"@jest/fake-timers@^27.1.0":
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.1.0.tgz#c0b343d8a16af17eab2cb6862e319947c0ea2abe"
|
||||
integrity sha512-22Zyn8il8DzpS+30jJNVbTlm7vAtnfy1aYvNeOEHloMlGy1PCYLHa4PWlSws0hvNsMM5bON6GISjkLoQUV3oMA==
|
||||
"@jest/fake-timers@^27.0.6":
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.0.6.tgz#cbad52f3fe6abe30e7acb8cd5fa3466b9588e3df"
|
||||
integrity sha512-sqd+xTWtZ94l3yWDKnRTdvTeZ+A/V7SSKrxsrOKSqdyddb9CeNRF8fbhAU0D7ZJBpTTW2nbp6MftmKJDZfW2LQ==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@sinonjs/fake-timers" "^7.0.2"
|
||||
"@types/node" "*"
|
||||
jest-message-util "^27.1.0"
|
||||
jest-mock "^27.1.0"
|
||||
jest-util "^27.1.0"
|
||||
jest-message-util "^27.0.6"
|
||||
jest-mock "^27.0.6"
|
||||
jest-util "^27.0.6"
|
||||
|
||||
"@jest/globals@^26.6.2":
|
||||
version "26.6.2"
|
||||
@@ -638,14 +638,14 @@
|
||||
"@jest/types" "^26.6.2"
|
||||
expect "^26.6.2"
|
||||
|
||||
"@jest/globals@^27.1.0":
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-27.1.0.tgz#e093a49c718dd678a782c197757775534c88d3f2"
|
||||
integrity sha512-73vLV4aNHAlAgjk0/QcSIzzCZSqVIPbmFROJJv9D3QUR7BI4f517gVdJpSrCHxuRH3VZFhe0yGG/tmttlMll9g==
|
||||
"@jest/globals@^27.0.6":
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-27.0.6.tgz#48e3903f99a4650673d8657334d13c9caf0e8f82"
|
||||
integrity sha512-DdTGCP606rh9bjkdQ7VvChV18iS7q0IMJVP1piwTWyWskol4iqcVwthZmoJEf7obE1nc34OpIyoVGPeqLC+ryw==
|
||||
dependencies:
|
||||
"@jest/environment" "^27.1.0"
|
||||
"@jest/types" "^27.1.0"
|
||||
expect "^27.1.0"
|
||||
"@jest/environment" "^27.0.6"
|
||||
"@jest/types" "^27.0.6"
|
||||
expect "^27.0.6"
|
||||
|
||||
"@jest/reporters@^26.6.2":
|
||||
version "26.6.2"
|
||||
@@ -707,13 +707,13 @@
|
||||
"@types/istanbul-lib-coverage" "^2.0.0"
|
||||
collect-v8-coverage "^1.0.0"
|
||||
|
||||
"@jest/test-result@^27.1.0":
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.1.0.tgz#9345ae5f97f6a5287af9ebd54716cd84331d42e8"
|
||||
integrity sha512-Aoz00gpDL528ODLghat3QSy6UBTD5EmmpjrhZZMK/v1Q2/rRRqTGnFxHuEkrD4z/Py96ZdOHxIWkkCKRpmnE1A==
|
||||
"@jest/test-result@^27.0.6":
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.0.6.tgz#3fa42015a14e4fdede6acd042ce98c7f36627051"
|
||||
integrity sha512-ja/pBOMTufjX4JLEauLxE3LQBPaI2YjGFtXexRAjt1I/MbfNlMx0sytSX3tn5hSLzQsR3Qy2rd0hc1BWojtj9w==
|
||||
dependencies:
|
||||
"@jest/console" "^27.1.0"
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/console" "^27.0.6"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/istanbul-lib-coverage" "^2.0.0"
|
||||
collect-v8-coverage "^1.0.0"
|
||||
|
||||
@@ -749,21 +749,21 @@
|
||||
source-map "^0.6.1"
|
||||
write-file-atomic "^3.0.0"
|
||||
|
||||
"@jest/transform@^27.1.0":
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-27.1.0.tgz#962e385517e3d1f62827fa39c305edcc3ca8544b"
|
||||
integrity sha512-ZRGCA2ZEVJ00ubrhkTG87kyLbN6n55g1Ilq0X9nJb5bX3MhMp3O6M7KG+LvYu+nZRqG5cXsQnJEdZbdpTAV8pQ==
|
||||
"@jest/transform@^27.0.6":
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-27.0.6.tgz#189ad7107413208f7600f4719f81dd2f7278cc95"
|
||||
integrity sha512-rj5Dw+mtIcntAUnMlW/Vju5mr73u8yg+irnHwzgtgoeI6cCPOvUwQ0D1uQtc/APmWgvRweEb1g05pkUpxH3iCA==
|
||||
dependencies:
|
||||
"@babel/core" "^7.1.0"
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
babel-plugin-istanbul "^6.0.0"
|
||||
chalk "^4.0.0"
|
||||
convert-source-map "^1.4.0"
|
||||
fast-json-stable-stringify "^2.0.0"
|
||||
graceful-fs "^4.2.4"
|
||||
jest-haste-map "^27.1.0"
|
||||
jest-haste-map "^27.0.6"
|
||||
jest-regex-util "^27.0.6"
|
||||
jest-util "^27.1.0"
|
||||
jest-util "^27.0.6"
|
||||
micromatch "^4.0.4"
|
||||
pirates "^4.0.1"
|
||||
slash "^3.0.0"
|
||||
@@ -781,10 +781,10 @@
|
||||
"@types/yargs" "^15.0.0"
|
||||
chalk "^4.0.0"
|
||||
|
||||
"@jest/types@^27.1.0":
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.1.0.tgz#674a40325eab23c857ebc0689e7e191a3c5b10cc"
|
||||
integrity sha512-pRP5cLIzN7I7Vp6mHKRSaZD7YpBTK7hawx5si8trMKqk4+WOdK8NEKOTO2G8PKWD1HbKMVckVB6/XHh/olhf2g==
|
||||
"@jest/types@^27.0.6":
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.0.6.tgz#9a992bc517e0c49f035938b8549719c2de40706b"
|
||||
integrity sha512-aSquT1qa9Pik26JK5/3rvnYb4bGtm1VFNesHKmNTwmPIgOrixvhL2ghIvFRNEpzy3gU+rUgjIF/KodbkFAl++g==
|
||||
dependencies:
|
||||
"@types/istanbul-lib-coverage" "^2.0.0"
|
||||
"@types/istanbul-reports" "^3.0.0"
|
||||
@@ -1002,23 +1002,23 @@
|
||||
dependencies:
|
||||
"@types/istanbul-lib-report" "*"
|
||||
|
||||
"@types/jest@^27.0.1":
|
||||
version "27.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.0.1.tgz#fafcc997da0135865311bb1215ba16dba6bdf4ca"
|
||||
integrity sha512-HTLpVXHrY69556ozYkcq47TtQJXpcWAWfkoqz+ZGz2JnmZhzlRjprCIyFnetSy8gpDWwTTGBcRVv1J1I1vBrHw==
|
||||
"@types/jest@^26.0.24":
|
||||
version "26.0.24"
|
||||
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.24.tgz#943d11976b16739185913a1936e0de0c4a7d595a"
|
||||
integrity sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==
|
||||
dependencies:
|
||||
jest-diff "^27.0.0"
|
||||
pretty-format "^27.0.0"
|
||||
jest-diff "^26.0.0"
|
||||
pretty-format "^26.0.0"
|
||||
|
||||
"@types/minimatch@*":
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
|
||||
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==
|
||||
|
||||
"@types/node@*", "@types/node@>= 8", "@types/node@^16.7.11":
|
||||
version "16.7.11"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.7.11.tgz#5877b3ab359af251fd413517be2d4265b7fea9a9"
|
||||
integrity sha512-OtOGO+DYmNNqJQG9HG4e5a6iqoRcNfdCf4ha3div7XF5w/uOa3YVpb5aRGClwSDKLmfOysv2hFIvoklffnQi4w==
|
||||
"@types/node@*", "@types/node@>= 8", "@types/node@^16.4.12":
|
||||
version "16.4.12"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.4.12.tgz#961e3091f263e6345d2d84afab4e047a60b4b11b"
|
||||
integrity sha512-zxrTNFl9Z8boMJXs6ieqZP0wAhvkdzmHSxTlJabM16cf5G9xBc1uPRH5Bbv2omEDDiM8MzTfqTJXBf0Ba4xFWA==
|
||||
|
||||
"@types/normalize-package-data@^2.4.0":
|
||||
version "2.4.0"
|
||||
@@ -1569,7 +1569,7 @@ cross-spawn@^6.0.0:
|
||||
shebang-command "^1.2.0"
|
||||
which "^1.2.9"
|
||||
|
||||
cross-spawn@^7.0.0, cross-spawn@^7.0.3:
|
||||
cross-spawn@^7.0.0:
|
||||
version "7.0.3"
|
||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
|
||||
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
|
||||
@@ -1821,21 +1821,6 @@ execa@^4.0.0:
|
||||
signal-exit "^3.0.2"
|
||||
strip-final-newline "^2.0.0"
|
||||
|
||||
execa@^5.0.0:
|
||||
version "5.1.1"
|
||||
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
|
||||
integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==
|
||||
dependencies:
|
||||
cross-spawn "^7.0.3"
|
||||
get-stream "^6.0.0"
|
||||
human-signals "^2.1.0"
|
||||
is-stream "^2.0.0"
|
||||
merge-stream "^2.0.0"
|
||||
npm-run-path "^4.0.1"
|
||||
onetime "^5.1.2"
|
||||
signal-exit "^3.0.3"
|
||||
strip-final-newline "^2.0.0"
|
||||
|
||||
exit@^0.1.2:
|
||||
version "0.1.2"
|
||||
resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"
|
||||
@@ -1866,16 +1851,16 @@ expect@^26.6.2:
|
||||
jest-message-util "^26.6.2"
|
||||
jest-regex-util "^26.0.0"
|
||||
|
||||
expect@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/expect/-/expect-27.1.0.tgz#380de0abb3a8f2299c4c6c66bbe930483b5dba9b"
|
||||
integrity sha512-9kJngV5hOJgkFil4F/uXm3hVBubUK2nERVfvqNNwxxuW8ZOUwSTTSysgfzckYtv/LBzj/LJXbiAF7okHCXgdug==
|
||||
expect@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/expect/-/expect-27.0.6.tgz#a4d74fbe27222c718fff68ef49d78e26a8fd4c05"
|
||||
integrity sha512-psNLt8j2kwg42jGBDSfAlU49CEZxejN1f1PlANWDZqIhBOVU/c2Pm888FcjWJzFewhIsNWfZJeLjUjtKGiPuSw==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
ansi-styles "^5.0.0"
|
||||
jest-get-type "^27.0.6"
|
||||
jest-matcher-utils "^27.1.0"
|
||||
jest-message-util "^27.1.0"
|
||||
jest-matcher-utils "^27.0.6"
|
||||
jest-message-util "^27.0.6"
|
||||
jest-regex-util "^27.0.6"
|
||||
|
||||
extend-shallow@^2.0.1:
|
||||
@@ -2039,11 +2024,6 @@ get-stream@^5.0.0:
|
||||
dependencies:
|
||||
pump "^3.0.0"
|
||||
|
||||
get-stream@^6.0.0:
|
||||
version "6.0.1"
|
||||
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
|
||||
integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
|
||||
|
||||
get-value@^2.0.3, get-value@^2.0.6:
|
||||
version "2.0.6"
|
||||
resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
|
||||
@@ -2175,11 +2155,6 @@ human-signals@^1.1.1:
|
||||
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
|
||||
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
|
||||
|
||||
human-signals@^2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
|
||||
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
|
||||
|
||||
iconv-lite@0.4.24:
|
||||
version "0.4.24"
|
||||
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
|
||||
@@ -2462,27 +2437,27 @@ jest-changed-files@^26.6.2:
|
||||
execa "^4.0.0"
|
||||
throat "^5.0.0"
|
||||
|
||||
jest-circus@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.1.0.tgz#24c280c90a625ea57da20ee231d25b1621979a57"
|
||||
integrity sha512-6FWtHs3nZyZlMBhRf1wvAC5CirnflbGJAY1xssSAnERLiiXQRH+wY2ptBVtXjX4gz4AA2EwRV57b038LmifRbA==
|
||||
jest-circus@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.0.6.tgz#dd4df17c4697db6a2c232aaad4e9cec666926668"
|
||||
integrity sha512-OJlsz6BBeX9qR+7O9lXefWoc2m9ZqcZ5Ohlzz0pTEAG4xMiZUJoacY8f4YDHxgk0oKYxj277AfOk9w6hZYvi1Q==
|
||||
dependencies:
|
||||
"@jest/environment" "^27.1.0"
|
||||
"@jest/test-result" "^27.1.0"
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/environment" "^27.0.6"
|
||||
"@jest/test-result" "^27.0.6"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/node" "*"
|
||||
chalk "^4.0.0"
|
||||
co "^4.6.0"
|
||||
dedent "^0.7.0"
|
||||
expect "^27.1.0"
|
||||
expect "^27.0.6"
|
||||
is-generator-fn "^2.0.0"
|
||||
jest-each "^27.1.0"
|
||||
jest-matcher-utils "^27.1.0"
|
||||
jest-message-util "^27.1.0"
|
||||
jest-runtime "^27.1.0"
|
||||
jest-snapshot "^27.1.0"
|
||||
jest-util "^27.1.0"
|
||||
pretty-format "^27.1.0"
|
||||
jest-each "^27.0.6"
|
||||
jest-matcher-utils "^27.0.6"
|
||||
jest-message-util "^27.0.6"
|
||||
jest-runtime "^27.0.6"
|
||||
jest-snapshot "^27.0.6"
|
||||
jest-util "^27.0.6"
|
||||
pretty-format "^27.0.6"
|
||||
slash "^3.0.0"
|
||||
stack-utils "^2.0.3"
|
||||
throat "^6.0.1"
|
||||
@@ -2530,7 +2505,7 @@ jest-config@^26.6.3:
|
||||
micromatch "^4.0.2"
|
||||
pretty-format "^26.6.2"
|
||||
|
||||
jest-diff@^26.6.2:
|
||||
jest-diff@^26.0.0, jest-diff@^26.6.2:
|
||||
version "26.6.2"
|
||||
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394"
|
||||
integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==
|
||||
@@ -2540,15 +2515,15 @@ jest-diff@^26.6.2:
|
||||
jest-get-type "^26.3.0"
|
||||
pretty-format "^26.6.2"
|
||||
|
||||
jest-diff@^27.0.0, jest-diff@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.1.0.tgz#c7033f25add95e2218f3c7f4c3d7b634ab6b3cd2"
|
||||
integrity sha512-rjfopEYl58g/SZTsQFmspBODvMSytL16I+cirnScWTLkQVXYVZfxm78DFfdIIXc05RCYuGjxJqrdyG4PIFzcJg==
|
||||
jest-diff@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.0.6.tgz#4a7a19ee6f04ad70e0e3388f35829394a44c7b5e"
|
||||
integrity sha512-Z1mqgkTCSYaFgwTlP/NUiRzdqgxmmhzHY1Tq17zL94morOHfHu3K4bgSgl+CR4GLhpV8VxkuOYuIWnQ9LnFqmg==
|
||||
dependencies:
|
||||
chalk "^4.0.0"
|
||||
diff-sequences "^27.0.6"
|
||||
jest-get-type "^27.0.6"
|
||||
pretty-format "^27.1.0"
|
||||
pretty-format "^27.0.6"
|
||||
|
||||
jest-docblock@^26.0.0:
|
||||
version "26.0.0"
|
||||
@@ -2568,16 +2543,16 @@ jest-each@^26.6.2:
|
||||
jest-util "^26.6.2"
|
||||
pretty-format "^26.6.2"
|
||||
|
||||
jest-each@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-27.1.0.tgz#36ac75f7aeecb3b8da2a8e617ccb30a446df408c"
|
||||
integrity sha512-K/cNvQlmDqQMRHF8CaQ0XPzCfjP5HMJc2bIJglrIqI9fjwpNqITle63IWE+wq4p+3v+iBgh7Wq0IdGpLx5xjDg==
|
||||
jest-each@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-27.0.6.tgz#cee117071b04060158dc8d9a66dc50ad40ef453b"
|
||||
integrity sha512-m6yKcV3bkSWrUIjxkE9OC0mhBZZdhovIW5ergBYirqnkLXkyEn3oUUF/QZgyecA1cF1QFyTE8bRRl8Tfg1pfLA==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
chalk "^4.0.0"
|
||||
jest-get-type "^27.0.6"
|
||||
jest-util "^27.1.0"
|
||||
pretty-format "^27.1.0"
|
||||
jest-util "^27.0.6"
|
||||
pretty-format "^27.0.6"
|
||||
|
||||
jest-environment-jsdom@^26.6.2:
|
||||
version "26.6.2"
|
||||
@@ -2635,12 +2610,12 @@ jest-haste-map@^26.6.2:
|
||||
optionalDependencies:
|
||||
fsevents "^2.1.2"
|
||||
|
||||
jest-haste-map@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.1.0.tgz#a39f456823bd6a74e3c86ad25f6fa870428326bf"
|
||||
integrity sha512-7mz6LopSe+eA6cTFMf10OfLLqRoIPvmMyz5/OnSXnHO7hB0aDP1iIeLWCXzAcYU5eIJVpHr12Bk9yyq2fTW9vg==
|
||||
jest-haste-map@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.0.6.tgz#4683a4e68f6ecaa74231679dca237279562c8dc7"
|
||||
integrity sha512-4ldjPXX9h8doB2JlRzg9oAZ2p6/GpQUNAeiYXqcpmrKbP0Qev0wdZlxSMOmz8mPOEnt4h6qIzXFLDi8RScX/1w==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/graceful-fs" "^4.1.2"
|
||||
"@types/node" "*"
|
||||
anymatch "^3.0.3"
|
||||
@@ -2648,8 +2623,8 @@ jest-haste-map@^27.1.0:
|
||||
graceful-fs "^4.2.4"
|
||||
jest-regex-util "^27.0.6"
|
||||
jest-serializer "^27.0.6"
|
||||
jest-util "^27.1.0"
|
||||
jest-worker "^27.1.0"
|
||||
jest-util "^27.0.6"
|
||||
jest-worker "^27.0.6"
|
||||
micromatch "^4.0.4"
|
||||
walker "^1.0.7"
|
||||
optionalDependencies:
|
||||
@@ -2697,15 +2672,15 @@ jest-matcher-utils@^26.6.2:
|
||||
jest-get-type "^26.3.0"
|
||||
pretty-format "^26.6.2"
|
||||
|
||||
jest-matcher-utils@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.1.0.tgz#68afda0885db1f0b9472ce98dc4c535080785301"
|
||||
integrity sha512-VmAudus2P6Yt/JVBRdTPFhUzlIN8DYJd+et5Rd9QDsO/Z82Z4iwGjo43U8Z+PTiz8CBvKvlb6Fh3oKy39hykkQ==
|
||||
jest-matcher-utils@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.0.6.tgz#2a8da1e86c620b39459f4352eaa255f0d43e39a9"
|
||||
integrity sha512-OFgF2VCQx9vdPSYTHWJ9MzFCehs20TsyFi6bIHbk5V1u52zJOnvF0Y/65z3GLZHKRuTgVPY4Z6LVePNahaQ+tA==
|
||||
dependencies:
|
||||
chalk "^4.0.0"
|
||||
jest-diff "^27.1.0"
|
||||
jest-diff "^27.0.6"
|
||||
jest-get-type "^27.0.6"
|
||||
pretty-format "^27.1.0"
|
||||
pretty-format "^27.0.6"
|
||||
|
||||
jest-message-util@^26.6.2:
|
||||
version "26.6.2"
|
||||
@@ -2722,18 +2697,18 @@ jest-message-util@^26.6.2:
|
||||
slash "^3.0.0"
|
||||
stack-utils "^2.0.2"
|
||||
|
||||
jest-message-util@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.1.0.tgz#e77692c84945d1d10ef00afdfd3d2c20bd8fb468"
|
||||
integrity sha512-Eck8NFnJ5Sg36R9XguD65cf2D5+McC+NF5GIdEninoabcuoOfWrID5qJhufq5FB0DRKoiyxB61hS7MKoMD0trQ==
|
||||
jest-message-util@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.0.6.tgz#158bcdf4785706492d164a39abca6a14da5ab8b5"
|
||||
integrity sha512-rBxIs2XK7rGy+zGxgi+UJKP6WqQ+KrBbD1YMj517HYN3v2BG66t3Xan3FWqYHKZwjdB700KiAJ+iES9a0M+ixw==
|
||||
dependencies:
|
||||
"@babel/code-frame" "^7.12.13"
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/stack-utils" "^2.0.0"
|
||||
chalk "^4.0.0"
|
||||
graceful-fs "^4.2.4"
|
||||
micromatch "^4.0.4"
|
||||
pretty-format "^27.1.0"
|
||||
pretty-format "^27.0.6"
|
||||
slash "^3.0.0"
|
||||
stack-utils "^2.0.3"
|
||||
|
||||
@@ -2745,12 +2720,12 @@ jest-mock@^26.6.2:
|
||||
"@jest/types" "^26.6.2"
|
||||
"@types/node" "*"
|
||||
|
||||
jest-mock@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.1.0.tgz#7ca6e4d09375c071661642d1c14c4711f3ab4b4f"
|
||||
integrity sha512-iT3/Yhu7DwAg/0HvvLCqLvrTKTRMyJlrrfJYWzuLSf9RCAxBoIXN3HoymZxMnYsC3eD8ewGbUa9jUknwBenx2w==
|
||||
jest-mock@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.0.6.tgz#0efdd40851398307ba16778728f6d34d583e3467"
|
||||
integrity sha512-lzBETUoK8cSxts2NYXSBWT+EJNzmUVtVVwS1sU9GwE1DLCfGsngg+ZVSIe0yd0ZSm+y791esiuo+WSwpXJQ5Bw==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/node" "*"
|
||||
|
||||
jest-pnp-resolver@^1.2.2:
|
||||
@@ -2791,19 +2766,18 @@ jest-resolve@^26.6.2:
|
||||
resolve "^1.18.1"
|
||||
slash "^3.0.0"
|
||||
|
||||
jest-resolve@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.1.0.tgz#bb22303c9e240cccdda28562e3c6fbcc6a23ac86"
|
||||
integrity sha512-TXvzrLyPg0vLOwcWX38ZGYeEztSEmW+cQQKqc4HKDUwun31wsBXwotRlUz4/AYU/Fq4GhbMd/ileIWZEtcdmIA==
|
||||
jest-resolve@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.0.6.tgz#e90f436dd4f8fbf53f58a91c42344864f8e55bff"
|
||||
integrity sha512-yKmIgw2LgTh7uAJtzv8UFHGF7Dm7XfvOe/LQ3Txv101fLM8cx2h1QVwtSJ51Q/SCxpIiKfVn6G2jYYMDNHZteA==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
chalk "^4.0.0"
|
||||
escalade "^3.1.1"
|
||||
graceful-fs "^4.2.4"
|
||||
jest-haste-map "^27.1.0"
|
||||
jest-pnp-resolver "^1.2.2"
|
||||
jest-util "^27.1.0"
|
||||
jest-validate "^27.1.0"
|
||||
jest-util "^27.0.6"
|
||||
jest-validate "^27.0.6"
|
||||
resolve "^1.20.0"
|
||||
slash "^3.0.0"
|
||||
|
||||
@@ -2866,35 +2840,34 @@ jest-runtime@^26.6.3:
|
||||
strip-bom "^4.0.0"
|
||||
yargs "^15.4.1"
|
||||
|
||||
jest-runtime@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.1.0.tgz#1a98d984ffebc16a0b4f9eaad8ab47c00a750cf5"
|
||||
integrity sha512-okiR2cpGjY0RkWmUGGado6ETpFOi9oG3yV0CioYdoktkVxy5Hv0WRLWnJFuArSYS8cHMCNcceUUMGiIfgxCO9A==
|
||||
jest-runtime@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.0.6.tgz#45877cfcd386afdd4f317def551fc369794c27c9"
|
||||
integrity sha512-BhvHLRVfKibYyqqEFkybsznKwhrsu7AWx2F3y9G9L95VSIN3/ZZ9vBpm/XCS2bS+BWz3sSeNGLzI3TVQ0uL85Q==
|
||||
dependencies:
|
||||
"@jest/console" "^27.1.0"
|
||||
"@jest/environment" "^27.1.0"
|
||||
"@jest/fake-timers" "^27.1.0"
|
||||
"@jest/globals" "^27.1.0"
|
||||
"@jest/console" "^27.0.6"
|
||||
"@jest/environment" "^27.0.6"
|
||||
"@jest/fake-timers" "^27.0.6"
|
||||
"@jest/globals" "^27.0.6"
|
||||
"@jest/source-map" "^27.0.6"
|
||||
"@jest/test-result" "^27.1.0"
|
||||
"@jest/transform" "^27.1.0"
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/test-result" "^27.0.6"
|
||||
"@jest/transform" "^27.0.6"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/yargs" "^16.0.0"
|
||||
chalk "^4.0.0"
|
||||
cjs-module-lexer "^1.0.0"
|
||||
collect-v8-coverage "^1.0.0"
|
||||
execa "^5.0.0"
|
||||
exit "^0.1.2"
|
||||
glob "^7.1.3"
|
||||
graceful-fs "^4.2.4"
|
||||
jest-haste-map "^27.1.0"
|
||||
jest-message-util "^27.1.0"
|
||||
jest-mock "^27.1.0"
|
||||
jest-haste-map "^27.0.6"
|
||||
jest-message-util "^27.0.6"
|
||||
jest-mock "^27.0.6"
|
||||
jest-regex-util "^27.0.6"
|
||||
jest-resolve "^27.1.0"
|
||||
jest-snapshot "^27.1.0"
|
||||
jest-util "^27.1.0"
|
||||
jest-validate "^27.1.0"
|
||||
jest-resolve "^27.0.6"
|
||||
jest-snapshot "^27.0.6"
|
||||
jest-util "^27.0.6"
|
||||
jest-validate "^27.0.6"
|
||||
slash "^3.0.0"
|
||||
strip-bom "^4.0.0"
|
||||
yargs "^16.0.3"
|
||||
@@ -2937,10 +2910,10 @@ jest-snapshot@^26.6.2:
|
||||
pretty-format "^26.6.2"
|
||||
semver "^7.3.2"
|
||||
|
||||
jest-snapshot@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.1.0.tgz#2a063ab90064017a7e9302528be7eaea6da12d17"
|
||||
integrity sha512-eaeUBoEjuuRwmiRI51oTldUsKOohB1F6fPqWKKILuDi/CStxzp2IWekVUXbuHHoz5ik33ioJhshiHpgPFbYgcA==
|
||||
jest-snapshot@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.0.6.tgz#f4e6b208bd2e92e888344d78f0f650bcff05a4bf"
|
||||
integrity sha512-NTHaz8He+ATUagUgE7C/UtFcRoHqR2Gc+KDfhQIyx+VFgwbeEMjeP+ILpUTLosZn/ZtbNdCF5LkVnN/l+V751A==
|
||||
dependencies:
|
||||
"@babel/core" "^7.7.2"
|
||||
"@babel/generator" "^7.7.2"
|
||||
@@ -2948,23 +2921,23 @@ jest-snapshot@^27.1.0:
|
||||
"@babel/plugin-syntax-typescript" "^7.7.2"
|
||||
"@babel/traverse" "^7.7.2"
|
||||
"@babel/types" "^7.0.0"
|
||||
"@jest/transform" "^27.1.0"
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/transform" "^27.0.6"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/babel__traverse" "^7.0.4"
|
||||
"@types/prettier" "^2.1.5"
|
||||
babel-preset-current-node-syntax "^1.0.0"
|
||||
chalk "^4.0.0"
|
||||
expect "^27.1.0"
|
||||
expect "^27.0.6"
|
||||
graceful-fs "^4.2.4"
|
||||
jest-diff "^27.1.0"
|
||||
jest-diff "^27.0.6"
|
||||
jest-get-type "^27.0.6"
|
||||
jest-haste-map "^27.1.0"
|
||||
jest-matcher-utils "^27.1.0"
|
||||
jest-message-util "^27.1.0"
|
||||
jest-resolve "^27.1.0"
|
||||
jest-util "^27.1.0"
|
||||
jest-haste-map "^27.0.6"
|
||||
jest-matcher-utils "^27.0.6"
|
||||
jest-message-util "^27.0.6"
|
||||
jest-resolve "^27.0.6"
|
||||
jest-util "^27.0.6"
|
||||
natural-compare "^1.4.0"
|
||||
pretty-format "^27.1.0"
|
||||
pretty-format "^27.0.6"
|
||||
semver "^7.3.2"
|
||||
|
||||
jest-util@^26.1.0, jest-util@^26.6.2:
|
||||
@@ -2979,12 +2952,12 @@ jest-util@^26.1.0, jest-util@^26.6.2:
|
||||
is-ci "^2.0.0"
|
||||
micromatch "^4.0.2"
|
||||
|
||||
jest-util@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.1.0.tgz#06a53777a8cb7e4940ca8e20bf9c67dd65d9bd68"
|
||||
integrity sha512-edSLD2OneYDKC6gZM1yc+wY/877s/fuJNoM1k3sOEpzFyeptSmke3SLnk1dDHk9CgTA+58mnfx3ew3J11Kes/w==
|
||||
jest-util@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.0.6.tgz#e8e04eec159de2f4d5f57f795df9cdc091e50297"
|
||||
integrity sha512-1JjlaIh+C65H/F7D11GNkGDDZtDfMEM8EBXsvd+l/cxtgQ6QhxuloOaiayt89DxUvDarbVhqI98HhgrM1yliFQ==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
"@types/node" "*"
|
||||
chalk "^4.0.0"
|
||||
graceful-fs "^4.2.4"
|
||||
@@ -3003,17 +2976,17 @@ jest-validate@^26.6.2:
|
||||
leven "^3.1.0"
|
||||
pretty-format "^26.6.2"
|
||||
|
||||
jest-validate@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.1.0.tgz#d9e82024c5e3f5cef52a600cfc456793a84c0998"
|
||||
integrity sha512-QiJ+4XuSuMsfPi9zvdO//IrSRSlG6ybJhOpuqYSsuuaABaNT84h0IoD6vvQhThBOKT+DIKvl5sTM0l6is9+SRA==
|
||||
jest-validate@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.0.6.tgz#930a527c7a951927df269f43b2dc23262457e2a6"
|
||||
integrity sha512-yhZZOaMH3Zg6DC83n60pLmdU1DQE46DW+KLozPiPbSbPhlXXaiUTDlhHQhHFpaqIFRrInko1FHXjTRpjWRuWfA==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
camelcase "^6.2.0"
|
||||
chalk "^4.0.0"
|
||||
jest-get-type "^27.0.6"
|
||||
leven "^3.1.0"
|
||||
pretty-format "^27.1.0"
|
||||
pretty-format "^27.0.6"
|
||||
|
||||
jest-watcher@^26.6.2:
|
||||
version "26.6.2"
|
||||
@@ -3037,10 +3010,10 @@ jest-worker@^26.6.2:
|
||||
merge-stream "^2.0.0"
|
||||
supports-color "^7.0.0"
|
||||
|
||||
jest-worker@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.1.0.tgz#65f4a88e37148ed984ba8ca8492d6b376938c0aa"
|
||||
integrity sha512-mO4PHb2QWLn9yRXGp7rkvXLAYuxwhq1ZYUo0LoDhg8wqvv4QizP1ZWEJOeolgbEgAWZLIEU0wsku8J+lGWfBhg==
|
||||
jest-worker@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.0.6.tgz#a5fdb1e14ad34eb228cfe162d9f729cdbfa28aed"
|
||||
integrity sha512-qupxcj/dRuA3xHPMUd40gr2EaAurFbkwzOh7wfPaeE9id7hyjURRQoqNfHifHK3XjJU6YJJUQKILGUnwGPEOCA==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
merge-stream "^2.0.0"
|
||||
@@ -3429,7 +3402,7 @@ npm-run-path@^2.0.0:
|
||||
dependencies:
|
||||
path-key "^2.0.0"
|
||||
|
||||
npm-run-path@^4.0.0, npm-run-path@^4.0.1:
|
||||
npm-run-path@^4.0.0:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea"
|
||||
integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==
|
||||
@@ -3476,7 +3449,7 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0:
|
||||
dependencies:
|
||||
wrappy "1"
|
||||
|
||||
onetime@^5.1.0, onetime@^5.1.2:
|
||||
onetime@^5.1.0:
|
||||
version "5.1.2"
|
||||
resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
|
||||
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
|
||||
@@ -3565,9 +3538,9 @@ path-key@^3.0.0, path-key@^3.1.0:
|
||||
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
|
||||
|
||||
path-parse@^1.0.6:
|
||||
version "1.0.7"
|
||||
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
|
||||
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
|
||||
integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==
|
||||
|
||||
performance-now@^2.1.0:
|
||||
version "2.1.0"
|
||||
@@ -3608,7 +3581,7 @@ prelude-ls@~1.1.2:
|
||||
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
|
||||
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
|
||||
|
||||
pretty-format@^26.6.2:
|
||||
pretty-format@^26.0.0, pretty-format@^26.6.2:
|
||||
version "26.6.2"
|
||||
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93"
|
||||
integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==
|
||||
@@ -3618,12 +3591,12 @@ pretty-format@^26.6.2:
|
||||
ansi-styles "^4.0.0"
|
||||
react-is "^17.0.1"
|
||||
|
||||
pretty-format@^27.0.0, pretty-format@^27.1.0:
|
||||
version "27.1.0"
|
||||
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.1.0.tgz#022f3fdb19121e0a2612f3cff8d724431461b9ca"
|
||||
integrity sha512-4aGaud3w3rxAO6OXmK3fwBFQ0bctIOG3/if+jYEFGNGIs0EvuidQm3bZ9mlP2/t9epLNC/12czabfy7TZNSwVA==
|
||||
pretty-format@^27.0.6:
|
||||
version "27.0.6"
|
||||
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.0.6.tgz#ab770c47b2c6f893a21aefc57b75da63ef49a11f"
|
||||
integrity sha512-8tGD7gBIENgzqA+UBzObyWqQ5B778VIFZA/S66cclyd5YkFLYs2Js7gxDKf0MXtTc9zcS7t1xhdfcElJ3YIvkQ==
|
||||
dependencies:
|
||||
"@jest/types" "^27.1.0"
|
||||
"@jest/types" "^27.0.6"
|
||||
ansi-regex "^5.0.0"
|
||||
ansi-styles "^5.0.0"
|
||||
react-is "^17.0.1"
|
||||
@@ -3913,7 +3886,7 @@ shellwords@^0.1.1:
|
||||
resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"
|
||||
integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==
|
||||
|
||||
signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3:
|
||||
signal-exit@^3.0.0, signal-exit@^3.0.2:
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c"
|
||||
integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==
|
||||
|
||||
Reference in New Issue
Block a user