Showing
42 changed files
with
532 additions
and
160 deletions
.gitignore
0 → 100644
| 1 | +node_modules | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -11,8 +11,24 @@ | ... | @@ -11,8 +11,24 @@ |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | ## How to Use | 13 | ## How to Use |
| 14 | +1. **[Google Cloud Platform](https://cloud.google.com)** 에 프로젝트를 생성한 후, **Speech-to-Text**의 서비스 계정을 만든다. | ||
| 15 | +2. 서비스 계정의 서비스 계정 키(JSON)을 다운받고, 시스템 환경 변수에 계정 키 경로를 **GOOGLE_APPLICATION_CREDENTIALS**로 저장한다. | ||
| 16 | + | ||
| 17 | + * 직접 path에 입력 | ||
| 18 | + * Linux/macOS | ||
| 19 | + `export GOOGLE_APPLICATION_CREDENTIALS="KEY_PATH"` | ||
| 20 | + * Windows | ||
| 21 | + `$env:GOOGLE_APPLICATION_CREDENTIALS="KEY_PATH"` | ||
| 22 | + | ||
| 23 | +3. 프로젝트를 Clone한다. | ||
| 24 | +`git clone http://khuhub.khu.ac.kr/2019102168/Voicoding.git` | ||
| 25 | +4. domain, port 등을 변경한 후 실행한다. | ||
| 14 | 26 | ||
| 15 | ## Author | 27 | ## Author |
| 28 | +* 민병수(Min byeong-soo) | ||
| 29 | + :email: : qud9783@khu.ac.kr | ||
| 30 | +* 천현우(Chon hyun-woo) | ||
| 31 | + :email: : 2019102233@khu.ac.kr | ||
| 16 | 32 | ||
| 17 | 33 | ||
| 18 | 34 | ... | ... |
| ... | @@ -23,8 +23,8 @@ | ... | @@ -23,8 +23,8 @@ |
| 23 | <li><a href="">Contact</a></li> | 23 | <li><a href="">Contact</a></li> |
| 24 | </ul> | 24 | </ul> |
| 25 | <ul class="menu_bar_icons"> | 25 | <ul class="menu_bar_icons"> |
| 26 | - <li><a = href="https://www.instagram.com/waterinbottle48/"><i class="fab fa-instagram"></i></a></li> | 26 | + <li><a href="https://www.instagram.com/waterinbottle48/"><i class="fab fa-instagram"></i></a></li> |
| 27 | - <li><a = href="http://khuhub.khu.ac.kr/2019102168/Voicoding"><i class="fab fa-github"></i></a></li> | 27 | + <li><a href="http://khuhub.khu.ac.kr/2019102168/Voicoding"><i class="fab fa-github"></i></a></li> |
| 28 | </ul> | 28 | </ul> |
| 29 | <a href="#" class="menu_toggle"><i class="fas fa-bars"></i></a> | 29 | <a href="#" class="menu_toggle"><i class="fas fa-bars"></i></a> |
| 30 | </nav> | 30 | </nav> | ... | ... |
| ... | @@ -32,7 +32,7 @@ function uploadSoundData(blob) { | ... | @@ -32,7 +32,7 @@ function uploadSoundData(blob) { |
| 32 | let formData = new FormData(); | 32 | let formData = new FormData(); |
| 33 | xhr.onload = function(e) { | 33 | xhr.onload = function(e) { |
| 34 | if(this.readyState === 4) { | 34 | if(this.readyState === 4) { |
| 35 | - document.getElementById("output").innerHTML += `<br><br><strong>Result: </strong>${e.target.responseText}` | 35 | + document.getElementById("output").innerHTML += '<br><br><strong>Result: </strong>' + JSON.parse(e.target.responseText); |
| 36 | } | 36 | } |
| 37 | }; | 37 | }; |
| 38 | formData.append("audio_data", blob, filename); | 38 | formData.append("audio_data", blob, filename); | ... | ... |
| ... | @@ -4,6 +4,13 @@ | ... | @@ -4,6 +4,13 @@ |
| 4 | 4 | ||
| 5 | [1]: https://www.npmjs.com/package/@google-cloud/speech?activeTab=versions | 5 | [1]: https://www.npmjs.com/package/@google-cloud/speech?activeTab=versions |
| 6 | 6 | ||
| 7 | +### [4.5.2](https://www.github.com/googleapis/nodejs-speech/compare/v4.5.1...v4.5.2) (2021-05-25) | ||
| 8 | + | ||
| 9 | + | ||
| 10 | +### Bug Fixes | ||
| 11 | + | ||
| 12 | +* GoogleAdsError missing using generator version after 1.3.0 ([#755](https://www.github.com/googleapis/nodejs-speech/issues/755)) ([0f612f3](https://www.github.com/googleapis/nodejs-speech/commit/0f612f3b7fa2430e3ab17dd258ad8c17e578aad9)) | ||
| 13 | + | ||
| 7 | ### [4.5.1](https://www.github.com/googleapis/nodejs-speech/compare/v4.5.0...v4.5.1) (2021-05-20) | 14 | ### [4.5.1](https://www.github.com/googleapis/nodejs-speech/compare/v4.5.0...v4.5.1) (2021-05-20) |
| 8 | 15 | ||
| 9 | 16 | ... | ... |
| ... | @@ -112,6 +112,9 @@ class SpeechClient { | ... | @@ -112,6 +112,9 @@ class SpeechClient { |
| 112 | if (!opts.fallback) { | 112 | if (!opts.fallback) { |
| 113 | clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); | 113 | clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); |
| 114 | } | 114 | } |
| 115 | + else if (opts.fallback === 'rest') { | ||
| 116 | + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
| 117 | + } | ||
| 115 | if (opts.libName && opts.libVersion) { | 118 | if (opts.libName && opts.libVersion) { |
| 116 | clientHeader.push(`${opts.libName}/${opts.libVersion}`); | 119 | clientHeader.push(`${opts.libName}/${opts.libVersion}`); |
| 117 | } | 120 | } | ... | ... |
| 1 | -{"version":3,"file":"speech_client.js","sourceRoot":"","sources":["../../../src/v1/speech_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAErD,mBAAmB;AACnB,kCAAkC;AAUlC,uDAAwD;AACxD;;;;GAIG;AACH,2DAA2D;AAC3D,2CAA4C;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;GAIG;AACH,MAAa,YAAY;IAkBvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,YAAY,IAAoB;;QAnDxB,gBAAW,GAAG,KAAK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,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,OAAO,IAAI,CAAC,UAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAClC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AA1hBD,oCA0hBC"} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +{"version":3,"file":"speech_client.js","sourceRoot":"","sources":["../../../src/v1/speech_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAErD,mBAAmB;AACnB,kCAAkC;AAUlC,uDAAwD;AACxD;;;;GAIG;AACH,2DAA2D;AAC3D,2CAA4C;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;GAIG;AACH,MAAa,YAAY;IAkBvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,YAAY,IAAoB;;QAnDxB,gBAAW,GAAG,KAAK,CAAC;QAO5B,gBAAW,GAAgB;YACzB,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb,CAAC;QAwCA,uDAAuD;QACvD,MAAM,aAAa,GAAG,IAAI,CAAC,WAAkC,CAAC;QAC9D,MAAM,WAAW,GACf,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WA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BAClC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AA5hBD,oCA4hBC"} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -111,6 +111,9 @@ class AdaptationClient { | ... | @@ -111,6 +111,9 @@ class AdaptationClient { |
| 111 | if (!opts.fallback) { | 111 | if (!opts.fallback) { |
| 112 | clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); | 112 | clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); |
| 113 | } | 113 | } |
| 114 | + else if (opts.fallback === 'rest') { | ||
| 115 | + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
| 116 | + } | ||
| 114 | if (opts.libName && opts.libVersion) { | 117 | if (opts.libName && opts.libVersion) { |
| 115 | clientHeader.push(`${opts.libName}/${opts.libVersion}`); | 118 | clientHeader.push(`${opts.libName}/${opts.libVersion}`); |
| 116 | } | 119 | } | ... | ... |
| 1 | -{"version":3,"file":"adaptation_client.js","sourceRoot":"","sources":["../../../src/v1p1beta1/adaptation_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAErD,mBAAmB;AACnB,kCAAkC;AAalC,uDAAwD;AACxD;;;;GAIG;AACH,+DAA+D;AAE/D,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;GAIG;AACH,MAAa,gBAAgB;IAkB3B;;;;;;;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O,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,MAAM,CAAC;YACnD,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,2BAA2B,CAAC,WAAmB;QAC7C,OAAO,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;IAC3E,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,OAAO,IAAI,CAAC,cAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACtC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AAppDD,4CAopDC"} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -112,6 +112,9 @@ class SpeechClient { | ... | @@ -112,6 +112,9 @@ class SpeechClient { |
| 112 | if (!opts.fallback) { | 112 | if (!opts.fallback) { |
| 113 | clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); | 113 | clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); |
| 114 | } | 114 | } |
| 115 | + else if (opts.fallback === 'rest') { | ||
| 116 | + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
| 117 | + } | ||
| 115 | if (opts.libName && opts.libVersion) { | 118 | if (opts.libName && opts.libVersion) { |
| 116 | clientHeader.push(`${opts.libName}/${opts.libVersion}`); | 119 | clientHeader.push(`${opts.libName}/${opts.libVersion}`); |
| 117 | } | 120 | } | ... | ... |
| 1 | -{"version":3,"file":"speech_client.js","sourceRoot":"","sources":["../../../src/v1p1beta1/speech_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;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CAspBC"} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +{"version":3,"file":"speech_client.js","sourceRoot":"","sources":["../../../src/v1p1beta1/speech_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAErD,mBAAmB;AACnB,kCAAkC;AAUlC,uDAAwD;AACxD;;;;GAIG;AACH,2DAA2D;AAC3D,2CAA4C;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;GAIG;AACH,MAAa,YAAY;IAmBvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,YAAY,IAAoB;;QApDxB,gBAAW,GAAG,KAAK,CAAC;QAO5B,gBAAW,GAAgB;YACzB,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb,CAAC;QAyCA,uDAAuD;QACvD,MAAM,aAAa,GAAG,IAAI,CAAC,WAAkC,CAAC;QAC9D,MAAM,WAAW,GACf,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,MAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,CAAA,IAAI,aAAa,CAAC,WAAW,CAAC;QACtE,MAAM,IAAI,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,KAAI,aAAa,CAAC,IAAI,CAAC;QAC9C,MAAM,YAAY,SAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,mCAAI,EAAE,CAAC;QAC9C,MAAM,Q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QAClB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,OAAO,IAAI,CAAC,UAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAClC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AAxpBD,oCAwpBC"} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | { | 1 | { |
| 2 | "_from": "@google-cloud/speech", | 2 | "_from": "@google-cloud/speech", |
| 3 | - "_id": "@google-cloud/speech@4.5.1", | 3 | + "_id": "@google-cloud/speech@4.5.2", |
| 4 | "_inBundle": false, | 4 | "_inBundle": false, |
| 5 | - "_integrity": "sha512-1wyFQ1UTYIfgoMlBveHGvVSqnVzG9r6fjWxJ+A2Z94gSOf9sKb2yZibi9K8ZBdAXadLMwjwa5KERaD7qyk2hiA==", | 5 | + "_integrity": "sha512-MAxa6tlXzA0ZDL2Or7U7GTjrlbjU7ZpSxAeu0gUe79Df1W3ALcFl33zMJmBAc/xzKWZ+yQ1XIdPIYq2ydam4WQ==", |
| 6 | "_location": "/@google-cloud/speech", | 6 | "_location": "/@google-cloud/speech", |
| 7 | "_phantomChildren": {}, | 7 | "_phantomChildren": {}, |
| 8 | "_requested": { | 8 | "_requested": { |
| ... | @@ -20,8 +20,8 @@ | ... | @@ -20,8 +20,8 @@ |
| 20 | "#USER", | 20 | "#USER", |
| 21 | "/" | 21 | "/" |
| 22 | ], | 22 | ], |
| 23 | - "_resolved": "https://registry.npmjs.org/@google-cloud/speech/-/speech-4.5.1.tgz", | 23 | + "_resolved": "https://registry.npmjs.org/@google-cloud/speech/-/speech-4.5.2.tgz", |
| 24 | - "_shasum": "e383a19cb923b6eeea750d35c9712cb185b9fab4", | 24 | + "_shasum": "96fab034f49ecb319c2ed8531cbcfa02b7b9b87c", |
| 25 | "_spec": "@google-cloud/speech", | 25 | "_spec": "@google-cloud/speech", |
| 26 | "_where": "C:\\Users\\1000c\\이것저것\\옾소\\Voicoding", | 26 | "_where": "C:\\Users\\1000c\\이것저것\\옾소\\Voicoding", |
| 27 | "author": { | 27 | "author": { |
| ... | @@ -46,7 +46,7 @@ | ... | @@ -46,7 +46,7 @@ |
| 46 | "@microsoft/api-documenter": "^7.8.10", | 46 | "@microsoft/api-documenter": "^7.8.10", |
| 47 | "@microsoft/api-extractor": "^7.8.10", | 47 | "@microsoft/api-extractor": "^7.8.10", |
| 48 | "@types/mocha": "^8.0.0", | 48 | "@types/mocha": "^8.0.0", |
| 49 | - "@types/node": "^12.0.0", | 49 | + "@types/node": "^14.0.0", |
| 50 | "@types/sinon": "^10.0.0", | 50 | "@types/sinon": "^10.0.0", |
| 51 | "c8": "^7.0.0", | 51 | "c8": "^7.0.0", |
| 52 | "codecov": "^3.0.2", | 52 | "codecov": "^3.0.2", |
| ... | @@ -58,7 +58,7 @@ | ... | @@ -58,7 +58,7 @@ |
| 58 | "mocha": "^8.0.0", | 58 | "mocha": "^8.0.0", |
| 59 | "null-loader": "^4.0.0", | 59 | "null-loader": "^4.0.0", |
| 60 | "pack-n-play": "^1.0.0-2", | 60 | "pack-n-play": "^1.0.0-2", |
| 61 | - "sinon": "^10.0.0", | 61 | + "sinon": "^11.0.0", |
| 62 | "ts-loader": "^8.0.0", | 62 | "ts-loader": "^8.0.0", |
| 63 | "typescript": "^3.8.3", | 63 | "typescript": "^3.8.3", |
| 64 | "webpack": "^5.0.0", | 64 | "webpack": "^5.0.0", |
| ... | @@ -113,5 +113,5 @@ | ... | @@ -113,5 +113,5 @@ |
| 113 | "system-test": "c8 mocha build/system-test/*.js --timeout 600000", | 113 | "system-test": "c8 mocha build/system-test/*.js --timeout 600000", |
| 114 | "test": "c8 mocha build/test/*.js" | 114 | "test": "c8 mocha build/test/*.js" |
| 115 | }, | 115 | }, |
| 116 | - "version": "4.5.1" | 116 | + "version": "4.5.2" |
| 117 | } | 117 | } | ... | ... |
| ... | @@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/). | ... | @@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/). |
| 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. | 8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. |
| 9 | 9 | ||
| 10 | ### Additional Details | 10 | ### Additional Details |
| 11 | - * Last updated: Wed, 02 Jun 2021 07:31:33 GMT | 11 | + * Last updated: Thu, 03 Jun 2021 14:01:34 GMT |
| 12 | * Dependencies: none | 12 | * Dependencies: none |
| 13 | * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout` | 13 | * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout` |
| 14 | 14 | ... | ... |
| 1 | declare module 'buffer' { | 1 | declare module 'buffer' { |
| 2 | + import { BinaryLike } from 'crypto'; | ||
| 3 | + | ||
| 2 | export const INSPECT_MAX_BYTES: number; | 4 | export const INSPECT_MAX_BYTES: number; |
| 3 | export const kMaxLength: number; | 5 | export const kMaxLength: number; |
| 4 | export const kStringMaxLength: number; | 6 | export const kStringMaxLength: number; |
| ... | @@ -19,4 +21,64 @@ declare module 'buffer' { | ... | @@ -19,4 +21,64 @@ declare module 'buffer' { |
| 19 | }; | 21 | }; |
| 20 | 22 | ||
| 21 | export { BuffType as Buffer }; | 23 | export { BuffType as Buffer }; |
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * @experimental | ||
| 27 | + */ | ||
| 28 | + export interface BlobOptions { | ||
| 29 | + /** | ||
| 30 | + * @default 'utf8' | ||
| 31 | + */ | ||
| 32 | + encoding?: BufferEncoding; | ||
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * The Blob content-type. The intent is for `type` to convey | ||
| 36 | + * the MIME media type of the data, however no validation of the type format | ||
| 37 | + * is performed. | ||
| 38 | + */ | ||
| 39 | + type?: string; | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * @experimental | ||
| 44 | + */ | ||
| 45 | + export class Blob { | ||
| 46 | + /** | ||
| 47 | + * Returns a promise that fulfills with an {ArrayBuffer} containing a copy of the `Blob` data. | ||
| 48 | + */ | ||
| 49 | + readonly size: number; | ||
| 50 | + | ||
| 51 | + /** | ||
| 52 | + * The content-type of the `Blob`. | ||
| 53 | + */ | ||
| 54 | + readonly type: string; | ||
| 55 | + | ||
| 56 | + /** | ||
| 57 | + * Creates a new `Blob` object containing a concatenation of the given sources. | ||
| 58 | + * | ||
| 59 | + * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into | ||
| 60 | + * the 'Blob' and can therefore be safely modified after the 'Blob' is created. | ||
| 61 | + * | ||
| 62 | + * String sources are also copied into the `Blob`. | ||
| 63 | + */ | ||
| 64 | + constructor(sources: Array<(BinaryLike | Blob)>, options?: BlobOptions); | ||
| 65 | + | ||
| 66 | + arrayBuffer(): Promise<ArrayBuffer>; | ||
| 67 | + | ||
| 68 | + /** | ||
| 69 | + * @param start The starting index. | ||
| 70 | + * @param end The ending index. | ||
| 71 | + * @param type The content-type for the new `Blob` | ||
| 72 | + */ | ||
| 73 | + slice(start?: number, end?: number, type?: string): Blob; | ||
| 74 | + | ||
| 75 | + /** | ||
| 76 | + * Returns a promise that resolves the contents of the `Blob` decoded as a UTF-8 string. | ||
| 77 | + */ | ||
| 78 | + text(): Promise<string>; | ||
| 79 | + } | ||
| 80 | +} | ||
| 81 | + | ||
| 82 | +declare module 'node:buffer' { | ||
| 83 | + export * from 'buffer'; | ||
| 22 | } | 84 | } | ... | ... |
| ... | @@ -4,7 +4,7 @@ declare module 'child_process' { | ... | @@ -4,7 +4,7 @@ declare module 'child_process' { |
| 4 | import * as net from 'net'; | 4 | import * as net from 'net'; |
| 5 | import { Writable, Readable, Stream, Pipe } from 'stream'; | 5 | import { Writable, Readable, Stream, Pipe } from 'stream'; |
| 6 | 6 | ||
| 7 | - type Serializable = string | object | number | boolean; | 7 | + type Serializable = string | object | number | boolean | bigint; |
| 8 | type SendHandle = net.Socket | net.Server; | 8 | type SendHandle = net.Socket | net.Server; |
| 9 | 9 | ||
| 10 | interface ChildProcess extends EventEmitter { | 10 | interface ChildProcess extends EventEmitter { |
| ... | @@ -20,7 +20,7 @@ declare module 'child_process' { | ... | @@ -20,7 +20,7 @@ declare module 'child_process' { |
| 20 | Readable | Writable | null | undefined // extra | 20 | Readable | Writable | null | undefined // extra |
| 21 | ]; | 21 | ]; |
| 22 | readonly killed: boolean; | 22 | readonly killed: boolean; |
| 23 | - readonly pid: number; | 23 | + readonly pid?: number; |
| 24 | readonly connected: boolean; | 24 | readonly connected: boolean; |
| 25 | readonly exitCode: number | null; | 25 | readonly exitCode: number | null; |
| 26 | readonly signalCode: NodeJS.Signals | null; | 26 | readonly signalCode: NodeJS.Signals | null; |
| ... | @@ -135,12 +135,18 @@ declare module 'child_process' { | ... | @@ -135,12 +135,18 @@ declare module 'child_process' { |
| 135 | 135 | ||
| 136 | type SerializationType = 'json' | 'advanced'; | 136 | type SerializationType = 'json' | 'advanced'; |
| 137 | 137 | ||
| 138 | - interface MessagingOptions { | 138 | + interface MessagingOptions extends Abortable { |
| 139 | /** | 139 | /** |
| 140 | * Specify the kind of serialization used for sending messages between processes. | 140 | * Specify the kind of serialization used for sending messages between processes. |
| 141 | * @default 'json' | 141 | * @default 'json' |
| 142 | */ | 142 | */ |
| 143 | serialization?: SerializationType; | 143 | serialization?: SerializationType; |
| 144 | + | ||
| 145 | + /** | ||
| 146 | + * The signal value to be used when the spawned process will be killed by the abort signal. | ||
| 147 | + * @default 'SIGTERM' | ||
| 148 | + */ | ||
| 149 | + killSignal?: NodeJS.Signals | number; | ||
| 144 | } | 150 | } |
| 145 | 151 | ||
| 146 | interface ProcessEnvOptions { | 152 | interface ProcessEnvOptions { |
| ... | @@ -451,7 +457,6 @@ declare module 'child_process' { | ... | @@ -451,7 +457,6 @@ declare module 'child_process' { |
| 451 | 457 | ||
| 452 | interface SpawnSyncOptions extends CommonSpawnOptions { | 458 | interface SpawnSyncOptions extends CommonSpawnOptions { |
| 453 | input?: string | NodeJS.ArrayBufferView; | 459 | input?: string | NodeJS.ArrayBufferView; |
| 454 | - killSignal?: NodeJS.Signals | number; | ||
| 455 | maxBuffer?: number; | 460 | maxBuffer?: number; |
| 456 | encoding?: BufferEncoding | 'buffer' | null; | 461 | encoding?: BufferEncoding | 'buffer' | null; |
| 457 | } | 462 | } | ... | ... |
| ... | @@ -197,6 +197,45 @@ declare module 'crypto' { | ... | @@ -197,6 +197,45 @@ declare module 'crypto' { |
| 197 | passphrase?: string | Buffer; | 197 | passphrase?: string | Buffer; |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | + interface JwkKeyExportOptions { | ||
| 201 | + format: 'jwk'; | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + interface JsonWebKey { | ||
| 205 | + crv?: string; | ||
| 206 | + d?: string; | ||
| 207 | + dp?: string; | ||
| 208 | + dq?: string; | ||
| 209 | + e?: string; | ||
| 210 | + k?: string; | ||
| 211 | + kty?: string; | ||
| 212 | + n?: string; | ||
| 213 | + p?: string; | ||
| 214 | + q?: string; | ||
| 215 | + qi?: string; | ||
| 216 | + x?: string; | ||
| 217 | + y?: string; | ||
| 218 | + } | ||
| 219 | + | ||
| 220 | + interface AsymmetricKeyDetails { | ||
| 221 | + /** | ||
| 222 | + * Key size in bits (RSA, DSA). | ||
| 223 | + */ | ||
| 224 | + modulusLength?: number; | ||
| 225 | + /** | ||
| 226 | + * Public exponent (RSA). | ||
| 227 | + */ | ||
| 228 | + publicExponent?: bigint; | ||
| 229 | + /** | ||
| 230 | + * Size of q in bits (DSA). | ||
| 231 | + */ | ||
| 232 | + divisorLength?: number; | ||
| 233 | + /** | ||
| 234 | + * Name of the curve (EC). | ||
| 235 | + */ | ||
| 236 | + namedCurve?: string; | ||
| 237 | + } | ||
| 238 | + | ||
| 200 | class KeyObject { | 239 | class KeyObject { |
| 201 | private constructor(); | 240 | private constructor(); |
| 202 | asymmetricKeyType?: KeyType; | 241 | asymmetricKeyType?: KeyType; |
| ... | @@ -205,6 +244,13 @@ declare module 'crypto' { | ... | @@ -205,6 +244,13 @@ declare module 'crypto' { |
| 205 | * bytes. This property is `undefined` for symmetric keys. | 244 | * bytes. This property is `undefined` for symmetric keys. |
| 206 | */ | 245 | */ |
| 207 | asymmetricKeySize?: number; | 246 | asymmetricKeySize?: number; |
| 247 | + /** | ||
| 248 | + * This property exists only on asymmetric keys. Depending on the type of the key, | ||
| 249 | + * this object contains information about the key. None of the information obtained | ||
| 250 | + * through this property can be used to uniquely identify a key or to compromise the | ||
| 251 | + * security of the key. | ||
| 252 | + */ | ||
| 253 | + asymmetricKeyDetails?: AsymmetricKeyDetails; | ||
| 208 | export(options: KeyExportOptions<'pem'>): string | Buffer; | 254 | export(options: KeyExportOptions<'pem'>): string | Buffer; |
| 209 | export(options?: KeyExportOptions<'der'>): Buffer; | 255 | export(options?: KeyExportOptions<'der'>): Buffer; |
| 210 | symmetricKeySize?: number; | 256 | symmetricKeySize?: number; |
| ... | @@ -1163,22 +1209,28 @@ declare module 'crypto' { | ... | @@ -1163,22 +1209,28 @@ declare module 'crypto' { |
| 1163 | * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is | 1209 | * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is |
| 1164 | * dependent upon the key type (especially Ed25519 and Ed448). | 1210 | * dependent upon the key type (especially Ed25519 and Ed448). |
| 1165 | * | 1211 | * |
| 1166 | - * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been | 1212 | + * If `key` is not a `KeyObject`, this function behaves as if `key` had been |
| 1167 | - * passed to [`crypto.createPrivateKey()`][]. | 1213 | + * passed to `crypto.createPrivateKey(). |
| 1168 | */ | 1214 | */ |
| 1169 | function sign( | 1215 | function sign( |
| 1170 | algorithm: string | null | undefined, | 1216 | algorithm: string | null | undefined, |
| 1171 | data: NodeJS.ArrayBufferView, | 1217 | data: NodeJS.ArrayBufferView, |
| 1172 | key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, | 1218 | key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, |
| 1173 | ): Buffer; | 1219 | ): Buffer; |
| 1220 | + function sign( | ||
| 1221 | + algorithm: string | null | undefined, | ||
| 1222 | + data: NodeJS.ArrayBufferView, | ||
| 1223 | + key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, | ||
| 1224 | + callback: (error: Error | null, data: Buffer) => void | ||
| 1225 | + ): void; | ||
| 1174 | 1226 | ||
| 1175 | /** | 1227 | /** |
| 1176 | * Calculates and returns the signature for `data` using the given private key and | 1228 | * Calculates and returns the signature for `data` using the given private key and |
| 1177 | * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is | 1229 | * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is |
| 1178 | * dependent upon the key type (especially Ed25519 and Ed448). | 1230 | * dependent upon the key type (especially Ed25519 and Ed448). |
| 1179 | * | 1231 | * |
| 1180 | - * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been | 1232 | + * If `key` is not a `KeyObject`, this function behaves as if `key` had been |
| 1181 | - * passed to [`crypto.createPublicKey()`][]. | 1233 | + * passed to `crypto.createPublicKey()`. |
| 1182 | */ | 1234 | */ |
| 1183 | function verify( | 1235 | function verify( |
| 1184 | algorithm: string | null | undefined, | 1236 | algorithm: string | null | undefined, |
| ... | @@ -1186,6 +1238,13 @@ declare module 'crypto' { | ... | @@ -1186,6 +1238,13 @@ declare module 'crypto' { |
| 1186 | key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, | 1238 | key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, |
| 1187 | signature: NodeJS.ArrayBufferView, | 1239 | signature: NodeJS.ArrayBufferView, |
| 1188 | ): boolean; | 1240 | ): boolean; |
| 1241 | + function verify( | ||
| 1242 | + algorithm: string | null | undefined, | ||
| 1243 | + data: NodeJS.ArrayBufferView, | ||
| 1244 | + key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, | ||
| 1245 | + signature: NodeJS.ArrayBufferView, | ||
| 1246 | + callback: (error: Error | null, result: boolean) => void | ||
| 1247 | + ): void; | ||
| 1189 | 1248 | ||
| 1190 | /** | 1249 | /** |
| 1191 | * Computes the Diffie-Hellman secret based on a privateKey and a publicKey. | 1250 | * Computes the Diffie-Hellman secret based on a privateKey and a publicKey. |
| ... | @@ -1254,7 +1313,7 @@ declare module 'crypto' { | ... | @@ -1254,7 +1313,7 @@ declare module 'crypto' { |
| 1254 | * | 1313 | * |
| 1255 | * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. | 1314 | * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. |
| 1256 | * If an errors occurs while deriving the key, `err` will be set; otherwise `err` will be `null`. | 1315 | * If an errors occurs while deriving the key, `err` will be set; otherwise `err` will be `null`. |
| 1257 | - * The successfully generated `derivedKey` will be passed to the callback as an [`ArrayBuffer`][]. | 1316 | + * The successfully generated `derivedKey` will be passed to the callback as an `ArrayBuffer`. |
| 1258 | * An error will be thrown if any of the input aguments specify invalid values or types. | 1317 | * An error will be thrown if any of the input aguments specify invalid values or types. |
| 1259 | */ | 1318 | */ |
| 1260 | function hkdf(digest: string, key: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: ArrayBuffer) => any): void; | 1319 | function hkdf(digest: string, key: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: ArrayBuffer) => any): void; |
| ... | @@ -1263,7 +1322,7 @@ declare module 'crypto' { | ... | @@ -1263,7 +1322,7 @@ declare module 'crypto' { |
| 1263 | * Provides a synchronous HKDF key derivation function as defined in RFC 5869. | 1322 | * Provides a synchronous HKDF key derivation function as defined in RFC 5869. |
| 1264 | * The given `key`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. | 1323 | * The given `key`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. |
| 1265 | * | 1324 | * |
| 1266 | - * The successfully generated `derivedKey` will be returned as an [`ArrayBuffer`][]. | 1325 | + * The successfully generated `derivedKey` will be returned as an `ArrayBuffer`. |
| 1267 | * An error will be thrown if any of the input aguments specify invalid values or types, | 1326 | * An error will be thrown if any of the input aguments specify invalid values or types, |
| 1268 | * or if the derived key cannot be generated. | 1327 | * or if the derived key cannot be generated. |
| 1269 | */ | 1328 | */ |
| ... | @@ -1373,6 +1432,16 @@ declare module 'crypto' { | ... | @@ -1373,6 +1432,16 @@ declare module 'crypto' { |
| 1373 | readonly keyUsage: string[]; | 1432 | readonly keyUsage: string[]; |
| 1374 | 1433 | ||
| 1375 | /** | 1434 | /** |
| 1435 | + * The issuer identification included in this certificate. | ||
| 1436 | + */ | ||
| 1437 | + readonly issuer: string; | ||
| 1438 | + | ||
| 1439 | + /** | ||
| 1440 | + * The issuer certificate or `undefined` if the issuer certificate is not available. | ||
| 1441 | + */ | ||
| 1442 | + readonly issuerCertificate?: X509Certificate; | ||
| 1443 | + | ||
| 1444 | + /** | ||
| 1376 | * The public key for this certificate. | 1445 | * The public key for this certificate. |
| 1377 | */ | 1446 | */ |
| 1378 | readonly publicKey: KeyObject; | 1447 | readonly publicKey: KeyObject; |
| ... | @@ -1438,7 +1507,7 @@ declare module 'crypto' { | ... | @@ -1438,7 +1507,7 @@ declare module 'crypto' { |
| 1438 | toJSON(): string; | 1507 | toJSON(): string; |
| 1439 | 1508 | ||
| 1440 | /** | 1509 | /** |
| 1441 | - * Returns information about this certificate using the legacy [certificate object][] encoding. | 1510 | + * Returns information about this certificate using the legacy certificate object encoding. |
| 1442 | */ | 1511 | */ |
| 1443 | toLegacyObject(): PeerCertificate; | 1512 | toLegacyObject(): PeerCertificate; |
| 1444 | 1513 | ||
| ... | @@ -1453,4 +1522,57 @@ declare module 'crypto' { | ... | @@ -1453,4 +1522,57 @@ declare module 'crypto' { |
| 1453 | */ | 1522 | */ |
| 1454 | verify(publicKey: KeyObject): boolean; | 1523 | verify(publicKey: KeyObject): boolean; |
| 1455 | } | 1524 | } |
| 1525 | + | ||
| 1526 | + type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint; | ||
| 1527 | + | ||
| 1528 | + interface GeneratePrimeOptions { | ||
| 1529 | + add?: LargeNumberLike; | ||
| 1530 | + rem?: LargeNumberLike; | ||
| 1531 | + /** | ||
| 1532 | + * @default false | ||
| 1533 | + */ | ||
| 1534 | + safe?: boolean; | ||
| 1535 | + bigint?: boolean; | ||
| 1536 | + } | ||
| 1537 | + | ||
| 1538 | + interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions { | ||
| 1539 | + bigint: true; | ||
| 1540 | + } | ||
| 1541 | + | ||
| 1542 | + interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions { | ||
| 1543 | + bigint?: false; | ||
| 1544 | + } | ||
| 1545 | + | ||
| 1546 | + function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void; | ||
| 1547 | + function generatePrime(size: number, options: GeneratePrimeOptionsBigInt, callback: (err: Error | null, prime: bigint) => void): void; | ||
| 1548 | + function generatePrime(size: number, options: GeneratePrimeOptionsArrayBuffer, callback: (err: Error | null, prime: ArrayBuffer) => void): void; | ||
| 1549 | + function generatePrime(size: number, options: GeneratePrimeOptions, callback: (err: Error | null, prime: ArrayBuffer | bigint) => void): void; | ||
| 1550 | + | ||
| 1551 | + function generatePrimeSync(size: number): ArrayBuffer; | ||
| 1552 | + function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint; | ||
| 1553 | + function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer; | ||
| 1554 | + function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint; | ||
| 1555 | + | ||
| 1556 | + interface CheckPrimeOptions { | ||
| 1557 | + /** | ||
| 1558 | + * The number of Miller-Rabin probabilistic primality iterations to perform. | ||
| 1559 | + * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most 2-64 for random input. | ||
| 1560 | + * Care must be used when selecting a number of checks. | ||
| 1561 | + * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details. | ||
| 1562 | + * | ||
| 1563 | + * @default 0 | ||
| 1564 | + */ | ||
| 1565 | + checks?: number; | ||
| 1566 | + } | ||
| 1567 | + | ||
| 1568 | + /** | ||
| 1569 | + * Checks the primality of the candidate. | ||
| 1570 | + */ | ||
| 1571 | + function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void; | ||
| 1572 | + function checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: (err: Error | null, result: boolean) => void): void; | ||
| 1573 | + | ||
| 1574 | + /** | ||
| 1575 | + * Checks the primality of the candidate. | ||
| 1576 | + */ | ||
| 1577 | + function checkPrimeSync(value: LargeNumberLike, options?: CheckPrimeOptions): boolean; | ||
| 1456 | } | 1578 | } | ... | ... |
| 1 | declare module 'dgram' { | 1 | declare module 'dgram' { |
| 2 | import { AddressInfo } from 'net'; | 2 | import { AddressInfo } from 'net'; |
| 3 | import * as dns from 'dns'; | 3 | import * as dns from 'dns'; |
| 4 | - import EventEmitter = require('events'); | 4 | + import { EventEmitter, Abortable } from 'events'; |
| 5 | 5 | ||
| 6 | interface RemoteInfo { | 6 | interface RemoteInfo { |
| 7 | address: string; | 7 | address: string; |
| ... | @@ -19,7 +19,7 @@ declare module 'dgram' { | ... | @@ -19,7 +19,7 @@ declare module 'dgram' { |
| 19 | 19 | ||
| 20 | type SocketType = "udp4" | "udp6"; | 20 | type SocketType = "udp4" | "udp6"; |
| 21 | 21 | ||
| 22 | - interface SocketOptions { | 22 | + interface SocketOptions extends Abortable { |
| 23 | type: SocketType; | 23 | type: SocketType; |
| 24 | reuseAddr?: boolean; | 24 | reuseAddr?: boolean; |
| 25 | /** | 25 | /** | ... | ... |
| ... | @@ -276,9 +276,7 @@ declare module 'fs' { | ... | @@ -276,9 +276,7 @@ declare module 'fs' { |
| 276 | /** | 276 | /** |
| 277 | * Asynchronous rename(2) - Change the name or location of a file or directory. | 277 | * Asynchronous rename(2) - Change the name or location of a file or directory. |
| 278 | * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. | 278 | * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 279 | - * URL support is _experimental_. | ||
| 280 | * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. | 279 | * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 281 | - * URL support is _experimental_. | ||
| 282 | */ | 280 | */ |
| 283 | export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; | 281 | export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; |
| 284 | 282 | ||
| ... | @@ -297,9 +295,7 @@ declare module 'fs' { | ... | @@ -297,9 +295,7 @@ declare module 'fs' { |
| 297 | /** | 295 | /** |
| 298 | * Synchronous rename(2) - Change the name or location of a file or directory. | 296 | * Synchronous rename(2) - Change the name or location of a file or directory. |
| 299 | * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. | 297 | * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 300 | - * URL support is _experimental_. | ||
| 301 | * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. | 298 | * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 302 | - * URL support is _experimental_. | ||
| 303 | */ | 299 | */ |
| 304 | export function renameSync(oldPath: PathLike, newPath: PathLike): void; | 300 | export function renameSync(oldPath: PathLike, newPath: PathLike): void; |
| 305 | 301 | ||
| ... | @@ -313,7 +309,6 @@ declare module 'fs' { | ... | @@ -313,7 +309,6 @@ declare module 'fs' { |
| 313 | /** | 309 | /** |
| 314 | * Asynchronous truncate(2) - Truncate a file to a specified length. | 310 | * Asynchronous truncate(2) - Truncate a file to a specified length. |
| 315 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 311 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 316 | - * URL support is _experimental_. | ||
| 317 | */ | 312 | */ |
| 318 | export function truncate(path: PathLike, callback: NoParamCallback): void; | 313 | export function truncate(path: PathLike, callback: NoParamCallback): void; |
| 319 | 314 | ||
| ... | @@ -1242,7 +1237,7 @@ declare module 'fs' { | ... | @@ -1242,7 +1237,7 @@ declare module 'fs' { |
| 1242 | * Asynchronous close(2) - close a file descriptor. | 1237 | * Asynchronous close(2) - close a file descriptor. |
| 1243 | * @param fd A file descriptor. | 1238 | * @param fd A file descriptor. |
| 1244 | */ | 1239 | */ |
| 1245 | - export function close(fd: number, callback: NoParamCallback): void; | 1240 | + export function close(fd: number, callback?: NoParamCallback): void; |
| 1246 | 1241 | ||
| 1247 | // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. | 1242 | // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. |
| 1248 | export namespace close { | 1243 | export namespace close { |
| ... | @@ -1487,6 +1482,8 @@ declare module 'fs' { | ... | @@ -1487,6 +1482,8 @@ declare module 'fs' { |
| 1487 | */ | 1482 | */ |
| 1488 | export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number; | 1483 | export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number; |
| 1489 | 1484 | ||
| 1485 | + export type ReadPosition = number | bigint; | ||
| 1486 | + | ||
| 1490 | /** | 1487 | /** |
| 1491 | * Asynchronously reads data from the file referenced by the supplied file descriptor. | 1488 | * Asynchronously reads data from the file referenced by the supplied file descriptor. |
| 1492 | * @param fd A file descriptor. | 1489 | * @param fd A file descriptor. |
| ... | @@ -1500,7 +1497,7 @@ declare module 'fs' { | ... | @@ -1500,7 +1497,7 @@ declare module 'fs' { |
| 1500 | buffer: TBuffer, | 1497 | buffer: TBuffer, |
| 1501 | offset: number, | 1498 | offset: number, |
| 1502 | length: number, | 1499 | length: number, |
| 1503 | - position: number | null, | 1500 | + position: ReadPosition | null, |
| 1504 | callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, | 1501 | callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, |
| 1505 | ): void; | 1502 | ): void; |
| 1506 | 1503 | ||
| ... | @@ -1534,7 +1531,7 @@ declare module 'fs' { | ... | @@ -1534,7 +1531,7 @@ declare module 'fs' { |
| 1534 | /** | 1531 | /** |
| 1535 | * @default null | 1532 | * @default null |
| 1536 | */ | 1533 | */ |
| 1537 | - position?: number | null; | 1534 | + position?: ReadPosition | null; |
| 1538 | } | 1535 | } |
| 1539 | 1536 | ||
| 1540 | /** | 1537 | /** |
| ... | @@ -1545,7 +1542,7 @@ declare module 'fs' { | ... | @@ -1545,7 +1542,7 @@ declare module 'fs' { |
| 1545 | * @param length The number of bytes to read. | 1542 | * @param length The number of bytes to read. |
| 1546 | * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. | 1543 | * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. |
| 1547 | */ | 1544 | */ |
| 1548 | - export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: number | null): number; | 1545 | + export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: ReadPosition | null): number; |
| 1549 | 1546 | ||
| 1550 | /** | 1547 | /** |
| 1551 | * Similar to the above `fs.readSync` function, this version takes an optional `options` object. | 1548 | * Similar to the above `fs.readSync` function, this version takes an optional `options` object. |
| ... | @@ -1569,7 +1566,6 @@ declare module 'fs' { | ... | @@ -1569,7 +1566,6 @@ declare module 'fs' { |
| 1569 | /** | 1566 | /** |
| 1570 | * Asynchronously reads the entire contents of a file. | 1567 | * Asynchronously reads the entire contents of a file. |
| 1571 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 1568 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1572 | - * URL support is _experimental_. | ||
| 1573 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1569 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1574 | * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. | 1570 | * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. |
| 1575 | * If a flag is not provided, it defaults to `'r'`. | 1571 | * If a flag is not provided, it defaults to `'r'`. |
| ... | @@ -1583,7 +1579,6 @@ declare module 'fs' { | ... | @@ -1583,7 +1579,6 @@ declare module 'fs' { |
| 1583 | /** | 1579 | /** |
| 1584 | * Asynchronously reads the entire contents of a file. | 1580 | * Asynchronously reads the entire contents of a file. |
| 1585 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 1581 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1586 | - * URL support is _experimental_. | ||
| 1587 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1582 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1588 | * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. | 1583 | * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. |
| 1589 | * If a flag is not provided, it defaults to `'r'`. | 1584 | * If a flag is not provided, it defaults to `'r'`. |
| ... | @@ -1637,7 +1632,6 @@ declare module 'fs' { | ... | @@ -1637,7 +1632,6 @@ declare module 'fs' { |
| 1637 | /** | 1632 | /** |
| 1638 | * Synchronously reads the entire contents of a file. | 1633 | * Synchronously reads the entire contents of a file. |
| 1639 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 1634 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1640 | - * URL support is _experimental_. | ||
| 1641 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1635 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1642 | * @param options An object that may contain an optional flag. If a flag is not provided, it defaults to `'r'`. | 1636 | * @param options An object that may contain an optional flag. If a flag is not provided, it defaults to `'r'`. |
| 1643 | */ | 1637 | */ |
| ... | @@ -1646,7 +1640,6 @@ declare module 'fs' { | ... | @@ -1646,7 +1640,6 @@ declare module 'fs' { |
| 1646 | /** | 1640 | /** |
| 1647 | * Synchronously reads the entire contents of a file. | 1641 | * Synchronously reads the entire contents of a file. |
| 1648 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 1642 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1649 | - * URL support is _experimental_. | ||
| 1650 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1643 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1651 | * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. | 1644 | * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. |
| 1652 | * If a flag is not provided, it defaults to `'r'`. | 1645 | * If a flag is not provided, it defaults to `'r'`. |
| ... | @@ -1656,7 +1649,6 @@ declare module 'fs' { | ... | @@ -1656,7 +1649,6 @@ declare module 'fs' { |
| 1656 | /** | 1649 | /** |
| 1657 | * Synchronously reads the entire contents of a file. | 1650 | * Synchronously reads the entire contents of a file. |
| 1658 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 1651 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1659 | - * URL support is _experimental_. | ||
| 1660 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1652 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1661 | * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. | 1653 | * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. |
| 1662 | * If a flag is not provided, it defaults to `'r'`. | 1654 | * If a flag is not provided, it defaults to `'r'`. |
| ... | @@ -1668,7 +1660,6 @@ declare module 'fs' { | ... | @@ -1668,7 +1660,6 @@ declare module 'fs' { |
| 1668 | /** | 1660 | /** |
| 1669 | * Asynchronously writes data to a file, replacing the file if it already exists. | 1661 | * Asynchronously writes data to a file, replacing the file if it already exists. |
| 1670 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 1662 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1671 | - * URL support is _experimental_. | ||
| 1672 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1663 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1673 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. | 1664 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. |
| 1674 | * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. | 1665 | * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. |
| ... | @@ -1682,7 +1673,6 @@ declare module 'fs' { | ... | @@ -1682,7 +1673,6 @@ declare module 'fs' { |
| 1682 | /** | 1673 | /** |
| 1683 | * Asynchronously writes data to a file, replacing the file if it already exists. | 1674 | * Asynchronously writes data to a file, replacing the file if it already exists. |
| 1684 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 1675 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1685 | - * URL support is _experimental_. | ||
| 1686 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1676 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1687 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. | 1677 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. |
| 1688 | */ | 1678 | */ |
| ... | @@ -1708,7 +1698,6 @@ declare module 'fs' { | ... | @@ -1708,7 +1698,6 @@ declare module 'fs' { |
| 1708 | /** | 1698 | /** |
| 1709 | * Synchronously writes data to a file, replacing the file if it already exists. | 1699 | * Synchronously writes data to a file, replacing the file if it already exists. |
| 1710 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 1700 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1711 | - * URL support is _experimental_. | ||
| 1712 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1701 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1713 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. | 1702 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. |
| 1714 | * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. | 1703 | * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. |
| ... | @@ -1722,7 +1711,6 @@ declare module 'fs' { | ... | @@ -1722,7 +1711,6 @@ declare module 'fs' { |
| 1722 | /** | 1711 | /** |
| 1723 | * Asynchronously append data to a file, creating the file if it does not exist. | 1712 | * Asynchronously append data to a file, creating the file if it does not exist. |
| 1724 | * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. | 1713 | * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1725 | - * URL support is _experimental_. | ||
| 1726 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1714 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1727 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. | 1715 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. |
| 1728 | * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. | 1716 | * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. |
| ... | @@ -1736,7 +1724,6 @@ declare module 'fs' { | ... | @@ -1736,7 +1724,6 @@ declare module 'fs' { |
| 1736 | /** | 1724 | /** |
| 1737 | * Asynchronously append data to a file, creating the file if it does not exist. | 1725 | * Asynchronously append data to a file, creating the file if it does not exist. |
| 1738 | * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. | 1726 | * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1739 | - * URL support is _experimental_. | ||
| 1740 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1727 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1741 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. | 1728 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. |
| 1742 | */ | 1729 | */ |
| ... | @@ -1762,7 +1749,6 @@ declare module 'fs' { | ... | @@ -1762,7 +1749,6 @@ declare module 'fs' { |
| 1762 | /** | 1749 | /** |
| 1763 | * Synchronously append data to a file, creating the file if it does not exist. | 1750 | * Synchronously append data to a file, creating the file if it does not exist. |
| 1764 | * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. | 1751 | * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 1765 | - * URL support is _experimental_. | ||
| 1766 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. | 1752 | * If a file descriptor is provided, the underlying file will _not_ be closed automatically. |
| 1767 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. | 1753 | * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. |
| 1768 | * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. | 1754 | * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. |
| ... | @@ -1781,36 +1767,36 @@ declare module 'fs' { | ... | @@ -1781,36 +1767,36 @@ declare module 'fs' { |
| 1781 | /** | 1767 | /** |
| 1782 | * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. | 1768 | * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. |
| 1783 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 1769 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 1784 | - * URL support is _experimental_. | ||
| 1785 | */ | 1770 | */ |
| 1786 | export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): void; | 1771 | export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): void; |
| 1787 | 1772 | ||
| 1788 | /** | 1773 | /** |
| 1789 | * Stop watching for changes on `filename`. | 1774 | * Stop watching for changes on `filename`. |
| 1790 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 1775 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 1791 | - * URL support is _experimental_. | ||
| 1792 | */ | 1776 | */ |
| 1793 | export function unwatchFile(filename: PathLike, listener?: (curr: Stats, prev: Stats) => void): void; | 1777 | export function unwatchFile(filename: PathLike, listener?: (curr: Stats, prev: Stats) => void): void; |
| 1794 | 1778 | ||
| 1779 | + export interface WatchOptions extends Abortable { | ||
| 1780 | + encoding?: BufferEncoding | "buffer"; | ||
| 1781 | + persistent?: boolean; | ||
| 1782 | + recursive?: boolean; | ||
| 1783 | + } | ||
| 1784 | + | ||
| 1785 | + export type WatchListener<T> = (event: "rename" | "change", filename: T) => void; | ||
| 1786 | + | ||
| 1795 | /** | 1787 | /** |
| 1796 | * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. | 1788 | * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. |
| 1797 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 1789 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 1798 | - * URL support is _experimental_. | ||
| 1799 | * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. | 1790 | * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. |
| 1800 | * If `encoding` is not supplied, the default of `'utf8'` is used. | 1791 | * If `encoding` is not supplied, the default of `'utf8'` is used. |
| 1801 | * If `persistent` is not supplied, the default of `true` is used. | 1792 | * If `persistent` is not supplied, the default of `true` is used. |
| 1802 | * If `recursive` is not supplied, the default of `false` is used. | 1793 | * If `recursive` is not supplied, the default of `false` is used. |
| 1803 | */ | 1794 | */ |
| 1804 | - export function watch( | 1795 | + export function watch(filename: PathLike, options: WatchOptions & { encoding: "buffer" } | "buffer", listener?: WatchListener<Buffer>): FSWatcher; |
| 1805 | - filename: PathLike, | ||
| 1806 | - options: { encoding?: BufferEncoding | null, persistent?: boolean, recursive?: boolean } | BufferEncoding | undefined | null, | ||
| 1807 | - listener?: (event: "rename" | "change", filename: string) => void, | ||
| 1808 | - ): FSWatcher; | ||
| 1809 | 1796 | ||
| 1810 | /** | 1797 | /** |
| 1811 | * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. | 1798 | * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. |
| 1812 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 1799 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 1813 | - * URL support is _experimental_. | ||
| 1814 | * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. | 1800 | * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. |
| 1815 | * If `encoding` is not supplied, the default of `'utf8'` is used. | 1801 | * If `encoding` is not supplied, the default of `'utf8'` is used. |
| 1816 | * If `persistent` is not supplied, the default of `true` is used. | 1802 | * If `persistent` is not supplied, the default of `true` is used. |
| ... | @@ -1818,37 +1804,30 @@ declare module 'fs' { | ... | @@ -1818,37 +1804,30 @@ declare module 'fs' { |
| 1818 | */ | 1804 | */ |
| 1819 | export function watch( | 1805 | export function watch( |
| 1820 | filename: PathLike, | 1806 | filename: PathLike, |
| 1821 | - options: { encoding: "buffer", persistent?: boolean, recursive?: boolean; } | "buffer", | 1807 | + options?: WatchOptions | BufferEncoding | null, |
| 1822 | - listener?: (event: "rename" | "change", filename: Buffer) => void | 1808 | + listener?: WatchListener<string>, |
| 1823 | ): FSWatcher; | 1809 | ): FSWatcher; |
| 1824 | 1810 | ||
| 1825 | /** | 1811 | /** |
| 1826 | * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. | 1812 | * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. |
| 1827 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 1813 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 1828 | - * URL support is _experimental_. | ||
| 1829 | * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. | 1814 | * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. |
| 1830 | * If `encoding` is not supplied, the default of `'utf8'` is used. | 1815 | * If `encoding` is not supplied, the default of `'utf8'` is used. |
| 1831 | * If `persistent` is not supplied, the default of `true` is used. | 1816 | * If `persistent` is not supplied, the default of `true` is used. |
| 1832 | * If `recursive` is not supplied, the default of `false` is used. | 1817 | * If `recursive` is not supplied, the default of `false` is used. |
| 1833 | */ | 1818 | */ |
| 1834 | - export function watch( | 1819 | + export function watch(filename: PathLike, options: WatchOptions | string, listener?: WatchListener<string | Buffer>): FSWatcher; |
| 1835 | - filename: PathLike, | ||
| 1836 | - options: { encoding?: BufferEncoding | null, persistent?: boolean, recursive?: boolean } | string | null, | ||
| 1837 | - listener?: (event: "rename" | "change", filename: string | Buffer) => void, | ||
| 1838 | - ): FSWatcher; | ||
| 1839 | 1820 | ||
| 1840 | /** | 1821 | /** |
| 1841 | * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. | 1822 | * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. |
| 1842 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 1823 | * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 1843 | - * URL support is _experimental_. | ||
| 1844 | */ | 1824 | */ |
| 1845 | - export function watch(filename: PathLike, listener?: (event: "rename" | "change", filename: string) => any): FSWatcher; | 1825 | + export function watch(filename: PathLike, listener?: WatchListener<string>): FSWatcher; |
| 1846 | 1826 | ||
| 1847 | /** | 1827 | /** |
| 1848 | * Asynchronously tests whether or not the given path exists by checking with the file system. | 1828 | * Asynchronously tests whether or not the given path exists by checking with the file system. |
| 1849 | * @deprecated since v1.0.0 Use `fs.stat()` or `fs.access()` instead | 1829 | * @deprecated since v1.0.0 Use `fs.stat()` or `fs.access()` instead |
| 1850 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 1830 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 1851 | - * URL support is _experimental_. | ||
| 1852 | */ | 1831 | */ |
| 1853 | export function exists(path: PathLike, callback: (exists: boolean) => void): void; | 1832 | export function exists(path: PathLike, callback: (exists: boolean) => void): void; |
| 1854 | 1833 | ||
| ... | @@ -1864,7 +1843,6 @@ declare module 'fs' { | ... | @@ -1864,7 +1843,6 @@ declare module 'fs' { |
| 1864 | /** | 1843 | /** |
| 1865 | * Synchronously tests whether or not the given path exists by checking with the file system. | 1844 | * Synchronously tests whether or not the given path exists by checking with the file system. |
| 1866 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 1845 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 1867 | - * URL support is _experimental_. | ||
| 1868 | */ | 1846 | */ |
| 1869 | export function existsSync(path: PathLike): boolean; | 1847 | export function existsSync(path: PathLike): boolean; |
| 1870 | 1848 | ||
| ... | @@ -2034,14 +2012,12 @@ declare module 'fs' { | ... | @@ -2034,14 +2012,12 @@ declare module 'fs' { |
| 2034 | /** | 2012 | /** |
| 2035 | * Asynchronously tests a user's permissions for the file specified by path. | 2013 | * Asynchronously tests a user's permissions for the file specified by path. |
| 2036 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 2014 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 2037 | - * URL support is _experimental_. | ||
| 2038 | */ | 2015 | */ |
| 2039 | export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; | 2016 | export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; |
| 2040 | 2017 | ||
| 2041 | /** | 2018 | /** |
| 2042 | * Asynchronously tests a user's permissions for the file specified by path. | 2019 | * Asynchronously tests a user's permissions for the file specified by path. |
| 2043 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 2020 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 2044 | - * URL support is _experimental_. | ||
| 2045 | */ | 2021 | */ |
| 2046 | export function access(path: PathLike, callback: NoParamCallback): void; | 2022 | export function access(path: PathLike, callback: NoParamCallback): void; |
| 2047 | 2023 | ||
| ... | @@ -2058,7 +2034,6 @@ declare module 'fs' { | ... | @@ -2058,7 +2034,6 @@ declare module 'fs' { |
| 2058 | /** | 2034 | /** |
| 2059 | * Synchronously tests a user's permissions for the file specified by path. | 2035 | * Synchronously tests a user's permissions for the file specified by path. |
| 2060 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | 2036 | * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. |
| 2061 | - * URL support is _experimental_. | ||
| 2062 | */ | 2037 | */ |
| 2063 | export function accessSync(path: PathLike, mode?: number): void; | 2038 | export function accessSync(path: PathLike, mode?: number): void; |
| 2064 | 2039 | ||
| ... | @@ -2083,14 +2058,12 @@ declare module 'fs' { | ... | @@ -2083,14 +2058,12 @@ declare module 'fs' { |
| 2083 | /** | 2058 | /** |
| 2084 | * Returns a new `ReadStream` object. | 2059 | * Returns a new `ReadStream` object. |
| 2085 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 2060 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 2086 | - * URL support is _experimental_. | ||
| 2087 | */ | 2061 | */ |
| 2088 | export function createReadStream(path: PathLike, options?: string | ReadStreamOptions): ReadStream; | 2062 | export function createReadStream(path: PathLike, options?: string | ReadStreamOptions): ReadStream; |
| 2089 | 2063 | ||
| 2090 | /** | 2064 | /** |
| 2091 | * Returns a new `WriteStream` object. | 2065 | * Returns a new `WriteStream` object. |
| 2092 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. | 2066 | * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. |
| 2093 | - * URL support is _experimental_. | ||
| 2094 | */ | 2067 | */ |
| 2095 | export function createWriteStream(path: PathLike, options?: string | StreamOptions): WriteStream; | 2068 | export function createWriteStream(path: PathLike, options?: string | StreamOptions): WriteStream; |
| 2096 | 2069 | ... | ... |
| ... | @@ -17,6 +17,7 @@ declare module 'fs/promises' { | ... | @@ -17,6 +17,7 @@ declare module 'fs/promises' { |
| 17 | BufferEncodingOption, | 17 | BufferEncodingOption, |
| 18 | OpenMode, | 18 | OpenMode, |
| 19 | Mode, | 19 | Mode, |
| 20 | + WatchOptions, | ||
| 20 | } from 'fs'; | 21 | } from 'fs'; |
| 21 | 22 | ||
| 22 | interface FileHandle { | 23 | interface FileHandle { |
| ... | @@ -555,4 +556,37 @@ declare module 'fs/promises' { | ... | @@ -555,4 +556,37 @@ declare module 'fs/promises' { |
| 555 | function readFile(path: PathLike | FileHandle, options?: BaseEncodingOptions & Abortable & { flag?: OpenMode } | BufferEncoding | null): Promise<string | Buffer>; | 556 | function readFile(path: PathLike | FileHandle, options?: BaseEncodingOptions & Abortable & { flag?: OpenMode } | BufferEncoding | null): Promise<string | Buffer>; |
| 556 | 557 | ||
| 557 | function opendir(path: string, options?: OpenDirOptions): Promise<Dir>; | 558 | function opendir(path: string, options?: OpenDirOptions): Promise<Dir>; |
| 559 | + | ||
| 560 | + /** | ||
| 561 | + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. | ||
| 562 | + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | ||
| 563 | + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. | ||
| 564 | + * If `encoding` is not supplied, the default of `'utf8'` is used. | ||
| 565 | + * If `persistent` is not supplied, the default of `true` is used. | ||
| 566 | + * If `recursive` is not supplied, the default of `false` is used. | ||
| 567 | + */ | ||
| 568 | + function watch(filename: PathLike, options: WatchOptions & { encoding: "buffer" } | "buffer"): AsyncIterable<Buffer>; | ||
| 569 | + | ||
| 570 | + /** | ||
| 571 | + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. | ||
| 572 | + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | ||
| 573 | + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. | ||
| 574 | + * If `encoding` is not supplied, the default of `'utf8'` is used. | ||
| 575 | + * If `persistent` is not supplied, the default of `true` is used. | ||
| 576 | + * If `recursive` is not supplied, the default of `false` is used. | ||
| 577 | + */ | ||
| 578 | + function watch( | ||
| 579 | + filename: PathLike, | ||
| 580 | + options?: WatchOptions | BufferEncoding | ||
| 581 | + ): AsyncIterable<string>; | ||
| 582 | + | ||
| 583 | + /** | ||
| 584 | + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. | ||
| 585 | + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. | ||
| 586 | + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. | ||
| 587 | + * If `encoding` is not supplied, the default of `'utf8'` is used. | ||
| 588 | + * If `persistent` is not supplied, the default of `true` is used. | ||
| 589 | + * If `recursive` is not supplied, the default of `false` is used. | ||
| 590 | + */ | ||
| 591 | + function watch(filename: PathLike, options: WatchOptions | string): AsyncIterable<string> | AsyncIterable<Buffer>; | ||
| 558 | } | 592 | } | ... | ... |
| ... | @@ -37,9 +37,9 @@ interface ImportMeta { | ... | @@ -37,9 +37,9 @@ interface ImportMeta { |
| 37 | ------------------------------------------------*/ | 37 | ------------------------------------------------*/ |
| 38 | 38 | ||
| 39 | // For backwards compability | 39 | // For backwards compability |
| 40 | -interface NodeRequire extends NodeJS.Require {} | 40 | +interface NodeRequire extends NodeJS.Require { } |
| 41 | -interface RequireResolve extends NodeJS.RequireResolve {} | 41 | +interface RequireResolve extends NodeJS.RequireResolve { } |
| 42 | -interface NodeModule extends NodeJS.Module {} | 42 | +interface NodeModule extends NodeJS.Module { } |
| 43 | 43 | ||
| 44 | declare var process: NodeJS.Process; | 44 | declare var process: NodeJS.Process; |
| 45 | declare var console: Console; | 45 | declare var console: Console; |
| ... | @@ -318,6 +318,7 @@ interface AbortController { | ... | @@ -318,6 +318,7 @@ interface AbortController { |
| 318 | /** | 318 | /** |
| 319 | * Returns the AbortSignal object associated with this object. | 319 | * Returns the AbortSignal object associated with this object. |
| 320 | */ | 320 | */ |
| 321 | + | ||
| 321 | readonly signal: AbortSignal; | 322 | readonly signal: AbortSignal; |
| 322 | /** | 323 | /** |
| 323 | * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. | 324 | * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. |
| ... | @@ -331,6 +332,11 @@ interface AbortSignal { | ... | @@ -331,6 +332,11 @@ interface AbortSignal { |
| 331 | * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. | 332 | * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. |
| 332 | */ | 333 | */ |
| 333 | readonly aborted: boolean; | 334 | readonly aborted: boolean; |
| 335 | + | ||
| 336 | + /** | ||
| 337 | + * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. | ||
| 338 | + */ | ||
| 339 | + abort(): void; | ||
| 334 | } | 340 | } |
| 335 | 341 | ||
| 336 | declare var AbortController: { | 342 | declare var AbortController: { | ... | ... |
| ... | @@ -107,7 +107,7 @@ declare module 'http' { | ... | @@ -107,7 +107,7 @@ declare module 'http' { |
| 107 | ServerResponse?: typeof ServerResponse; | 107 | ServerResponse?: typeof ServerResponse; |
| 108 | /** | 108 | /** |
| 109 | * Optionally overrides the value of | 109 | * Optionally overrides the value of |
| 110 | - * [`--max-http-header-size`][] for requests received by this server, i.e. | 110 | + * `--max-http-header-size` for requests received by this server, i.e. |
| 111 | * the maximum length of request headers in bytes. | 111 | * the maximum length of request headers in bytes. |
| 112 | * @default 8192 | 112 | * @default 8192 |
| 113 | */ | 113 | */ |
| ... | @@ -156,7 +156,8 @@ declare module 'http' { | ... | @@ -156,7 +156,8 @@ declare module 'http' { |
| 156 | 156 | ||
| 157 | // https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js | 157 | // https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js |
| 158 | class OutgoingMessage extends stream.Writable { | 158 | class OutgoingMessage extends stream.Writable { |
| 159 | - upgrading: boolean; | 159 | + readonly req: IncomingMessage; |
| 160 | + | ||
| 160 | chunkedEncoding: boolean; | 161 | chunkedEncoding: boolean; |
| 161 | shouldKeepAlive: boolean; | 162 | shouldKeepAlive: boolean; |
| 162 | useChunkedEncodingByDefault: boolean; | 163 | useChunkedEncodingByDefault: boolean; |
| ... | @@ -165,12 +166,12 @@ declare module 'http' { | ... | @@ -165,12 +166,12 @@ declare module 'http' { |
| 165 | * @deprecated Use `writableEnded` instead. | 166 | * @deprecated Use `writableEnded` instead. |
| 166 | */ | 167 | */ |
| 167 | finished: boolean; | 168 | finished: boolean; |
| 168 | - headersSent: boolean; | 169 | + readonly headersSent: boolean; |
| 169 | /** | 170 | /** |
| 170 | * @deprecated Use `socket` instead. | 171 | * @deprecated Use `socket` instead. |
| 171 | */ | 172 | */ |
| 172 | - connection: Socket | null; | 173 | + readonly connection: Socket | null; |
| 173 | - socket: Socket | null; | 174 | + readonly socket: Socket | null; |
| 174 | 175 | ||
| 175 | constructor(); | 176 | constructor(); |
| 176 | 177 | ||
| ... | @@ -420,7 +421,14 @@ declare module 'http' { | ... | @@ -420,7 +421,14 @@ declare module 'http' { |
| 420 | 421 | ||
| 421 | /** | 422 | /** |
| 422 | * Read-only property specifying the maximum allowed size of HTTP headers in bytes. | 423 | * Read-only property specifying the maximum allowed size of HTTP headers in bytes. |
| 423 | - * Defaults to 16KB. Configurable using the [`--max-http-header-size`][] CLI option. | 424 | + * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option. |
| 424 | */ | 425 | */ |
| 425 | const maxHeaderSize: number; | 426 | const maxHeaderSize: number; |
| 427 | + | ||
| 428 | + /** | ||
| 429 | + * | ||
| 430 | + * This utility function converts a URL object into an ordinary options object as | ||
| 431 | + * expected by the `http.request()` and `https.request()` APIs. | ||
| 432 | + */ | ||
| 433 | + function urlToHttpOptions(url: URL): ClientRequestArgs; | ||
| 426 | } | 434 | } | ... | ... |
| ... | @@ -438,6 +438,13 @@ declare module 'http2' { | ... | @@ -438,6 +438,13 @@ declare module 'http2' { |
| 438 | paddingStrategy?: number; | 438 | paddingStrategy?: number; |
| 439 | peerMaxConcurrentStreams?: number; | 439 | peerMaxConcurrentStreams?: number; |
| 440 | settings?: Settings; | 440 | settings?: Settings; |
| 441 | + /** | ||
| 442 | + * Specifies a timeout in milliseconds that | ||
| 443 | + * a server should wait when an [`'unknownProtocol'`][] is emitted. If the | ||
| 444 | + * socket has not been destroyed by that time the server will destroy it. | ||
| 445 | + * @default 100000 | ||
| 446 | + */ | ||
| 447 | + unknownProtocolTimeout?: number; | ||
| 441 | 448 | ||
| 442 | selectPadding?(frameLen: number, maxFrameLen: number): number; | 449 | selectPadding?(frameLen: number, maxFrameLen: number): number; |
| 443 | createConnection?(authority: url.URL, option: SessionOptions): stream.Duplex; | 450 | createConnection?(authority: url.URL, option: SessionOptions): stream.Duplex; | ... | ... |
| 1 | -// Type definitions for non-npm package Node.js 15.6 | 1 | +// Type definitions for non-npm package Node.js 15.12 |
| 2 | // Project: http://nodejs.org/ | 2 | // Project: http://nodejs.org/ |
| 3 | // Definitions by: Microsoft TypeScript <https://github.com/Microsoft> | 3 | // Definitions by: Microsoft TypeScript <https://github.com/Microsoft> |
| 4 | // DefinitelyTyped <https://github.com/DefinitelyTyped> | 4 | // DefinitelyTyped <https://github.com/DefinitelyTyped> |
| ... | @@ -50,9 +50,9 @@ | ... | @@ -50,9 +50,9 @@ |
| 50 | 50 | ||
| 51 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: | 51 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: |
| 52 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions | 52 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions |
| 53 | -// - ~/index.d.ts - Definitions specific to TypeScript 2.8 | 53 | +// - ~/index.d.ts - Definitions specific to TypeScript 3.7 |
| 54 | -// - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5 | 54 | +// - ~/ts3.6/index.d.ts - Definitions specific to TypeScript 3.6 |
| 55 | 55 | ||
| 56 | -// NOTE: Augmentations for TypeScript 3.5 and later should use individual files for overrides | 56 | +// NOTE: Augmentations for TypeScript 3.6 and later should use individual files for overrides |
| 57 | -// within the respective ~/ts3.5 (or later) folder. However, this is disallowed for versions | 57 | +// within the respective ~/ts3.6 (or later) folder. However, this is disallowed for versions |
| 58 | -// prior to TypeScript 3.5, so the older definitions will be found here. | 58 | +// prior to TypeScript 3.6, so the older definitions will be found here. | ... | ... |
| ... | @@ -212,7 +212,7 @@ declare module 'os' { | ... | @@ -212,7 +212,7 @@ declare module 'os' { |
| 212 | /** | 212 | /** |
| 213 | * Returns a string identifying the kernel version. | 213 | * Returns a string identifying the kernel version. |
| 214 | * On POSIX systems, the operating system release is determined by calling | 214 | * On POSIX systems, the operating system release is determined by calling |
| 215 | - * [uname(3)][]. On Windows, `pRtlGetVersion` is used, and if it is not available, | 215 | + * uname(3). On Windows, `pRtlGetVersion` is used, and if it is not available, |
| 216 | * `GetVersionExW()` will be used. See | 216 | * `GetVersionExW()` will be used. See |
| 217 | * https://en.wikipedia.org/wiki/Uname#Examples for more information. | 217 | * https://en.wikipedia.org/wiki/Uname#Examples for more information. |
| 218 | */ | 218 | */ | ... | ... |
| 1 | { | 1 | { |
| 2 | "_from": "@types/node@*", | 2 | "_from": "@types/node@*", |
| 3 | - "_id": "@types/node@15.6.2", | 3 | + "_id": "@types/node@15.12.0", |
| 4 | "_inBundle": false, | 4 | "_inBundle": false, |
| 5 | - "_integrity": "sha512-dxcOx8801kMo3KlU+C+/ctWrzREAH7YvoF3aoVpRdqgs+Kf7flp+PJDN/EX5bME3suDUZHsxes9hpvBmzYlWbA==", | 5 | + "_integrity": "sha512-+aHJvoCsVhO2ZCuT4o5JtcPrCPyDE3+1nvbDprYes+pPkEsbjH7AGUCNtjMOXS0fqH14t+B7yLzaqSz92FPWyw==", |
| 6 | "_location": "/@types/node", | 6 | "_location": "/@types/node", |
| 7 | "_phantomChildren": {}, | 7 | "_phantomChildren": {}, |
| 8 | "_requested": { | 8 | "_requested": { |
| ... | @@ -22,8 +22,8 @@ | ... | @@ -22,8 +22,8 @@ |
| 22 | "/@types/pumpify", | 22 | "/@types/pumpify", |
| 23 | "/protobufjs" | 23 | "/protobufjs" |
| 24 | ], | 24 | ], |
| 25 | - "_resolved": "https://registry.npmjs.org/@types/node/-/node-15.6.2.tgz", | 25 | + "_resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.0.tgz", |
| 26 | - "_shasum": "c61d49f38af70da32424b5322eee21f97e627175", | 26 | + "_shasum": "6a459d261450a300e6865faeddb5af01c3389bb3", |
| 27 | "_spec": "@types/node@*", | 27 | "_spec": "@types/node@*", |
| 28 | "_where": "C:\\Users\\1000c\\이것저것\\옾소\\Voicoding\\node_modules\\@types\\pumpify", | 28 | "_where": "C:\\Users\\1000c\\이것저것\\옾소\\Voicoding\\node_modules\\@types\\pumpify", |
| 29 | "bugs": { | 29 | "bugs": { |
| ... | @@ -211,7 +211,7 @@ | ... | @@ -211,7 +211,7 @@ |
| 211 | "scripts": {}, | 211 | "scripts": {}, |
| 212 | "typeScriptVersion": "3.6", | 212 | "typeScriptVersion": "3.6", |
| 213 | "types": "index.d.ts", | 213 | "types": "index.d.ts", |
| 214 | - "typesPublisherContentHash": "f62422deccbd466260cb63740d207022259eb7fc7b6e7c406be463b9d1b0cd19", | 214 | + "typesPublisherContentHash": "2af6053c97f2d873b354fa2bd898df70fe2271585814d07e724e3f12c08d719e", |
| 215 | "typesVersions": { | 215 | "typesVersions": { |
| 216 | "<=3.6": { | 216 | "<=3.6": { |
| 217 | "*": [ | 217 | "*": [ |
| ... | @@ -219,5 +219,5 @@ | ... | @@ -219,5 +219,5 @@ |
| 219 | ] | 219 | ] |
| 220 | } | 220 | } |
| 221 | }, | 221 | }, |
| 222 | - "version": "15.6.2" | 222 | + "version": "15.12.0" |
| 223 | } | 223 | } | ... | ... |
| ... | @@ -3,7 +3,8 @@ declare module 'perf_hooks' { | ... | @@ -3,7 +3,8 @@ declare module 'perf_hooks' { |
| 3 | 3 | ||
| 4 | type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http'; | 4 | type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http'; |
| 5 | 5 | ||
| 6 | - interface PerformanceEntry { | 6 | + class PerformanceEntry { |
| 7 | + protected constructor(); | ||
| 7 | /** | 8 | /** |
| 8 | * The total number of milliseconds elapsed for this entry. | 9 | * The total number of milliseconds elapsed for this entry. |
| 9 | * This value will not be meaningful for all Performance Entry types. | 10 | * This value will not be meaningful for all Performance Entry types. |
| ... | @@ -41,7 +42,7 @@ declare module 'perf_hooks' { | ... | @@ -41,7 +42,7 @@ declare module 'perf_hooks' { |
| 41 | readonly flags?: number; | 42 | readonly flags?: number; |
| 42 | } | 43 | } |
| 43 | 44 | ||
| 44 | - interface PerformanceNodeTiming extends PerformanceEntry { | 45 | + class PerformanceNodeTiming extends PerformanceEntry { |
| 45 | /** | 46 | /** |
| 46 | * The high resolution millisecond timestamp at which the Node.js process completed bootstrap. | 47 | * The high resolution millisecond timestamp at which the Node.js process completed bootstrap. |
| 47 | */ | 48 | */ |
| ... | @@ -221,15 +222,36 @@ declare module 'perf_hooks' { | ... | @@ -221,15 +222,36 @@ declare module 'perf_hooks' { |
| 221 | resolution?: number; | 222 | resolution?: number; |
| 222 | } | 223 | } |
| 223 | 224 | ||
| 224 | - interface EventLoopDelayMonitor { | 225 | + interface Histogram { |
| 225 | /** | 226 | /** |
| 226 | - * Enables the event loop delay sample timer. Returns `true` if the timer was started, `false` if it was already started. | 227 | + * A `Map` object detailing the accumulated percentile distribution. |
| 227 | */ | 228 | */ |
| 228 | - enable(): boolean; | 229 | + readonly percentiles: Map<number, number>; |
| 230 | + | ||
| 229 | /** | 231 | /** |
| 230 | - * Disables the event loop delay sample timer. Returns `true` if the timer was stopped, `false` if it was already stopped. | 232 | + * The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold. |
| 231 | */ | 233 | */ |
| 232 | - disable(): boolean; | 234 | + readonly exceeds: number; |
| 235 | + | ||
| 236 | + /** | ||
| 237 | + * The minimum recorded event loop delay. | ||
| 238 | + */ | ||
| 239 | + readonly min: number; | ||
| 240 | + | ||
| 241 | + /** | ||
| 242 | + * The maximum recorded event loop delay. | ||
| 243 | + */ | ||
| 244 | + readonly max: number; | ||
| 245 | + | ||
| 246 | + /** | ||
| 247 | + * The mean of the recorded event loop delays. | ||
| 248 | + */ | ||
| 249 | + readonly mean: number; | ||
| 250 | + | ||
| 251 | + /** | ||
| 252 | + * The standard deviation of the recorded event loop delays. | ||
| 253 | + */ | ||
| 254 | + readonly stddev: number; | ||
| 233 | 255 | ||
| 234 | /** | 256 | /** |
| 235 | * Resets the collected histogram data. | 257 | * Resets the collected histogram data. |
| ... | @@ -241,37 +263,48 @@ declare module 'perf_hooks' { | ... | @@ -241,37 +263,48 @@ declare module 'perf_hooks' { |
| 241 | * @param percentile A percentile value between 1 and 100. | 263 | * @param percentile A percentile value between 1 and 100. |
| 242 | */ | 264 | */ |
| 243 | percentile(percentile: number): number; | 265 | percentile(percentile: number): number; |
| 266 | + } | ||
| 244 | 267 | ||
| 268 | + interface IntervalHistogram extends Histogram { | ||
| 245 | /** | 269 | /** |
| 246 | - * A `Map` object detailing the accumulated percentile distribution. | 270 | + * Enables the event loop delay sample timer. Returns `true` if the timer was started, `false` if it was already started. |
| 247 | */ | 271 | */ |
| 248 | - readonly percentiles: Map<number, number>; | 272 | + enable(): boolean; |
| 249 | - | ||
| 250 | /** | 273 | /** |
| 251 | - * The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold. | 274 | + * Disables the event loop delay sample timer. Returns `true` if the timer was stopped, `false` if it was already stopped. |
| 252 | */ | 275 | */ |
| 253 | - readonly exceeds: number; | 276 | + disable(): boolean; |
| 277 | + } | ||
| 278 | + | ||
| 279 | + interface RecordableHistogram extends Histogram { | ||
| 280 | + record(val: number | bigint): void; | ||
| 254 | 281 | ||
| 255 | /** | 282 | /** |
| 256 | - * The minimum recorded event loop delay. | 283 | + * Calculates the amount of time (in nanoseconds) that has passed since the previous call to recordDelta() and records that amount in the histogram. |
| 257 | */ | 284 | */ |
| 258 | - readonly min: number; | 285 | + recordDelta(): void; |
| 286 | + } | ||
| 287 | + | ||
| 288 | + function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram; | ||
| 259 | 289 | ||
| 290 | + interface CreateHistogramOptions { | ||
| 260 | /** | 291 | /** |
| 261 | - * The maximum recorded event loop delay. | 292 | + * The minimum recordable value. Must be an integer value greater than 0. |
| 293 | + * @default 1 | ||
| 262 | */ | 294 | */ |
| 263 | - readonly max: number; | 295 | + min?: number | bigint; |
| 264 | 296 | ||
| 265 | /** | 297 | /** |
| 266 | - * The mean of the recorded event loop delays. | 298 | + * The maximum recordable value. Must be an integer value greater than min. |
| 299 | + * @default Number.MAX_SAFE_INTEGER | ||
| 267 | */ | 300 | */ |
| 268 | - readonly mean: number; | 301 | + max?: number | bigint; |
| 269 | - | ||
| 270 | /** | 302 | /** |
| 271 | - * The standard deviation of the recorded event loop delays. | 303 | + * The number of accuracy digits. Must be a number between 1 and 5. |
| 304 | + * @default 3 | ||
| 272 | */ | 305 | */ |
| 273 | - readonly stddev: number; | 306 | + figures?: number; |
| 274 | } | 307 | } |
| 275 | 308 | ||
| 276 | - function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor; | 309 | + function createHistogram(options?: CreateHistogramOptions): RecordableHistogram; |
| 277 | } | 310 | } | ... | ... |
| ... | @@ -336,7 +336,7 @@ declare module 'process' { | ... | @@ -336,7 +336,7 @@ declare module 'process' { |
| 336 | 336 | ||
| 337 | /** | 337 | /** |
| 338 | * The `process.allowedNodeEnvironmentFlags` property is a special, | 338 | * The `process.allowedNodeEnvironmentFlags` property is a special, |
| 339 | - * read-only `Set` of flags allowable within the [`NODE_OPTIONS`][] | 339 | + * read-only `Set` of flags allowable within the `NODE_OPTIONS` |
| 340 | * environment variable. | 340 | * environment variable. |
| 341 | */ | 341 | */ |
| 342 | allowedNodeEnvironmentFlags: ReadonlySet<string>; | 342 | allowedNodeEnvironmentFlags: ReadonlySet<string>; | ... | ... |
| 1 | declare module 'readline' { | 1 | declare module 'readline' { |
| 2 | - import EventEmitter = require('events'); | 2 | + import { Abortable, EventEmitter } from 'events'; |
| 3 | 3 | ||
| 4 | interface Key { | 4 | interface Key { |
| 5 | sequence?: string; | 5 | sequence?: string; |
| ... | @@ -42,6 +42,7 @@ declare module 'readline' { | ... | @@ -42,6 +42,7 @@ declare module 'readline' { |
| 42 | setPrompt(prompt: string): void; | 42 | setPrompt(prompt: string): void; |
| 43 | prompt(preserveCursor?: boolean): void; | 43 | prompt(preserveCursor?: boolean): void; |
| 44 | question(query: string, callback: (answer: string) => void): void; | 44 | question(query: string, callback: (answer: string) => void): void; |
| 45 | + question(query: string, options: Abortable, callback: (answer: string) => void): void; | ||
| 45 | pause(): this; | 46 | pause(): this; |
| 46 | resume(): this; | 47 | resume(): this; |
| 47 | close(): void; | 48 | close(): void; |
| ... | @@ -63,8 +64,8 @@ declare module 'readline' { | ... | @@ -63,8 +64,8 @@ declare module 'readline' { |
| 63 | * 5. SIGCONT | 64 | * 5. SIGCONT |
| 64 | * 6. SIGINT | 65 | * 6. SIGINT |
| 65 | * 7. SIGTSTP | 66 | * 7. SIGTSTP |
| 67 | + * 8. history | ||
| 66 | */ | 68 | */ |
| 67 | - | ||
| 68 | addListener(event: string, listener: (...args: any[]) => void): this; | 69 | addListener(event: string, listener: (...args: any[]) => void): this; |
| 69 | addListener(event: "close", listener: () => void): this; | 70 | addListener(event: "close", listener: () => void): this; |
| 70 | addListener(event: "line", listener: (input: string) => void): this; | 71 | addListener(event: "line", listener: (input: string) => void): this; |
| ... | @@ -73,6 +74,7 @@ declare module 'readline' { | ... | @@ -73,6 +74,7 @@ declare module 'readline' { |
| 73 | addListener(event: "SIGCONT", listener: () => void): this; | 74 | addListener(event: "SIGCONT", listener: () => void): this; |
| 74 | addListener(event: "SIGINT", listener: () => void): this; | 75 | addListener(event: "SIGINT", listener: () => void): this; |
| 75 | addListener(event: "SIGTSTP", listener: () => void): this; | 76 | addListener(event: "SIGTSTP", listener: () => void): this; |
| 77 | + addListener(event: "history", listener: (history: string[]) => void): this; | ||
| 76 | 78 | ||
| 77 | emit(event: string | symbol, ...args: any[]): boolean; | 79 | emit(event: string | symbol, ...args: any[]): boolean; |
| 78 | emit(event: "close"): boolean; | 80 | emit(event: "close"): boolean; |
| ... | @@ -82,6 +84,7 @@ declare module 'readline' { | ... | @@ -82,6 +84,7 @@ declare module 'readline' { |
| 82 | emit(event: "SIGCONT"): boolean; | 84 | emit(event: "SIGCONT"): boolean; |
| 83 | emit(event: "SIGINT"): boolean; | 85 | emit(event: "SIGINT"): boolean; |
| 84 | emit(event: "SIGTSTP"): boolean; | 86 | emit(event: "SIGTSTP"): boolean; |
| 87 | + emit(event: "history", history: string[]): boolean; | ||
| 85 | 88 | ||
| 86 | on(event: string, listener: (...args: any[]) => void): this; | 89 | on(event: string, listener: (...args: any[]) => void): this; |
| 87 | on(event: "close", listener: () => void): this; | 90 | on(event: "close", listener: () => void): this; |
| ... | @@ -91,6 +94,7 @@ declare module 'readline' { | ... | @@ -91,6 +94,7 @@ declare module 'readline' { |
| 91 | on(event: "SIGCONT", listener: () => void): this; | 94 | on(event: "SIGCONT", listener: () => void): this; |
| 92 | on(event: "SIGINT", listener: () => void): this; | 95 | on(event: "SIGINT", listener: () => void): this; |
| 93 | on(event: "SIGTSTP", listener: () => void): this; | 96 | on(event: "SIGTSTP", listener: () => void): this; |
| 97 | + on(event: "history", listener: (history: string[]) => void): this; | ||
| 94 | 98 | ||
| 95 | once(event: string, listener: (...args: any[]) => void): this; | 99 | once(event: string, listener: (...args: any[]) => void): this; |
| 96 | once(event: "close", listener: () => void): this; | 100 | once(event: "close", listener: () => void): this; |
| ... | @@ -100,6 +104,7 @@ declare module 'readline' { | ... | @@ -100,6 +104,7 @@ declare module 'readline' { |
| 100 | once(event: "SIGCONT", listener: () => void): this; | 104 | once(event: "SIGCONT", listener: () => void): this; |
| 101 | once(event: "SIGINT", listener: () => void): this; | 105 | once(event: "SIGINT", listener: () => void): this; |
| 102 | once(event: "SIGTSTP", listener: () => void): this; | 106 | once(event: "SIGTSTP", listener: () => void): this; |
| 107 | + once(event: "history", listener: (history: string[]) => void): this; | ||
| 103 | 108 | ||
| 104 | prependListener(event: string, listener: (...args: any[]) => void): this; | 109 | prependListener(event: string, listener: (...args: any[]) => void): this; |
| 105 | prependListener(event: "close", listener: () => void): this; | 110 | prependListener(event: "close", listener: () => void): this; |
| ... | @@ -109,6 +114,7 @@ declare module 'readline' { | ... | @@ -109,6 +114,7 @@ declare module 'readline' { |
| 109 | prependListener(event: "SIGCONT", listener: () => void): this; | 114 | prependListener(event: "SIGCONT", listener: () => void): this; |
| 110 | prependListener(event: "SIGINT", listener: () => void): this; | 115 | prependListener(event: "SIGINT", listener: () => void): this; |
| 111 | prependListener(event: "SIGTSTP", listener: () => void): this; | 116 | prependListener(event: "SIGTSTP", listener: () => void): this; |
| 117 | + prependListener(event: "history", listener: (history: string[]) => void): this; | ||
| 112 | 118 | ||
| 113 | prependOnceListener(event: string, listener: (...args: any[]) => void): this; | 119 | prependOnceListener(event: string, listener: (...args: any[]) => void): this; |
| 114 | prependOnceListener(event: "close", listener: () => void): this; | 120 | prependOnceListener(event: "close", listener: () => void): this; |
| ... | @@ -118,6 +124,8 @@ declare module 'readline' { | ... | @@ -118,6 +124,8 @@ declare module 'readline' { |
| 118 | prependOnceListener(event: "SIGCONT", listener: () => void): this; | 124 | prependOnceListener(event: "SIGCONT", listener: () => void): this; |
| 119 | prependOnceListener(event: "SIGINT", listener: () => void): this; | 125 | prependOnceListener(event: "SIGINT", listener: () => void): this; |
| 120 | prependOnceListener(event: "SIGTSTP", listener: () => void): this; | 126 | prependOnceListener(event: "SIGTSTP", listener: () => void): this; |
| 127 | + prependOnceListener(event: "history", listener: (history: string[]) => void): this; | ||
| 128 | + | ||
| 121 | [Symbol.asyncIterator](): AsyncIterableIterator<string>; | 129 | [Symbol.asyncIterator](): AsyncIterableIterator<string>; |
| 122 | } | 130 | } |
| 123 | 131 | ||
| ... | @@ -133,9 +141,22 @@ declare module 'readline' { | ... | @@ -133,9 +141,22 @@ declare module 'readline' { |
| 133 | output?: NodeJS.WritableStream; | 141 | output?: NodeJS.WritableStream; |
| 134 | completer?: Completer | AsyncCompleter; | 142 | completer?: Completer | AsyncCompleter; |
| 135 | terminal?: boolean; | 143 | terminal?: boolean; |
| 144 | + /** | ||
| 145 | + * Initial list of history lines. This option makes sense | ||
| 146 | + * only if `terminal` is set to `true` by the user or by an internal `output` | ||
| 147 | + * check, otherwise the history caching mechanism is not initialized at all. | ||
| 148 | + * @default [] | ||
| 149 | + */ | ||
| 150 | + history?: string[]; | ||
| 136 | historySize?: number; | 151 | historySize?: number; |
| 137 | prompt?: string; | 152 | prompt?: string; |
| 138 | crlfDelay?: number; | 153 | crlfDelay?: number; |
| 154 | + /** | ||
| 155 | + * If `true`, when a new input line added | ||
| 156 | + * to the history list duplicates an older one, this removes the older line | ||
| 157 | + * from the list. | ||
| 158 | + * @default false | ||
| 159 | + */ | ||
| 139 | removeHistoryDuplicates?: boolean; | 160 | removeHistoryDuplicates?: boolean; |
| 140 | escapeCodeTimeout?: number; | 161 | escapeCodeTimeout?: number; |
| 141 | tabSize?: number; | 162 | tabSize?: number; | ... | ... |
| ... | @@ -301,7 +301,7 @@ declare module 'stream' { | ... | @@ -301,7 +301,7 @@ declare module 'stream' { |
| 301 | */ | 301 | */ |
| 302 | function addAbortSignal<T extends Stream>(signal: AbortSignal, stream: T): T; | 302 | function addAbortSignal<T extends Stream>(signal: AbortSignal, stream: T): T; |
| 303 | 303 | ||
| 304 | - interface FinishedOptions { | 304 | + interface FinishedOptions extends Abortable { |
| 305 | error?: boolean; | 305 | error?: boolean; |
| 306 | readable?: boolean; | 306 | readable?: boolean; |
| 307 | writable?: boolean; | 307 | writable?: boolean; | ... | ... |
| 1 | declare module 'timers' { | 1 | declare module 'timers' { |
| 2 | - interface TimerOptions { | 2 | + import { Abortable } from 'events'; |
| 3 | + | ||
| 4 | + interface TimerOptions extends Abortable { | ||
| 3 | /** | 5 | /** |
| 4 | * Set to `false` to indicate that the scheduled `Timeout` | 6 | * Set to `false` to indicate that the scheduled `Timeout` |
| 5 | * should not require the Node.js event loop to remain active. | 7 | * should not require the Node.js event loop to remain active. |
| 6 | * @default true | 8 | * @default true |
| 7 | */ | 9 | */ |
| 8 | ref?: boolean; | 10 | ref?: boolean; |
| 9 | - | ||
| 10 | - /** | ||
| 11 | - * An optional `AbortSignal` that can be used to cancel the scheduled `Timeout`. | ||
| 12 | - */ | ||
| 13 | - signal?: AbortSignal; | ||
| 14 | } | 11 | } |
| 15 | 12 | ||
| 16 | function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout; | 13 | function setTimeout(callback: (...args: any[]) => void, ms?: number, ...args: any[]): NodeJS.Timeout; | ... | ... |
| ... | @@ -3,11 +3,19 @@ declare module 'timers/promises' { | ... | @@ -3,11 +3,19 @@ declare module 'timers/promises' { |
| 3 | 3 | ||
| 4 | /** | 4 | /** |
| 5 | * Returns a promise that resolves after the specified delay in milliseconds. | 5 | * Returns a promise that resolves after the specified delay in milliseconds. |
| 6 | + * @param delay defaults to 1 | ||
| 6 | */ | 7 | */ |
| 7 | - function setTimeout<T>(delay: number, value?: T, options?: TimerOptions): Promise<T>; | 8 | + function setTimeout<T = void>(delay?: number, value?: T, options?: TimerOptions): Promise<T>; |
| 8 | 9 | ||
| 9 | /** | 10 | /** |
| 10 | * Returns a promise that resolves in the next tick. | 11 | * Returns a promise that resolves in the next tick. |
| 11 | */ | 12 | */ |
| 12 | - function setImmediate<T>(value: T, options?: TimerOptions): Promise<T>; | 13 | + function setImmediate<T = void>(value?: T, options?: TimerOptions): Promise<T>; |
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * | ||
| 17 | + * Returns an async iterator that generates values in an interval of delay ms. | ||
| 18 | + * @param delay defaults to 1 | ||
| 19 | + */ | ||
| 20 | + function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): AsyncIterable<T>; | ||
| 13 | } | 21 | } | ... | ... |
| 1 | declare module 'tls' { | 1 | declare module 'tls' { |
| 2 | + import { X509Certificate } from 'crypto'; | ||
| 2 | import * as net from 'net'; | 3 | import * as net from 'net'; |
| 3 | 4 | ||
| 4 | const CLIENT_RENEG_LIMIT: number; | 5 | const CLIENT_RENEG_LIMIT: number; |
| ... | @@ -296,6 +297,16 @@ declare module 'tls' { | ... | @@ -296,6 +297,16 @@ declare module 'tls' { |
| 296 | enableTrace(): void; | 297 | enableTrace(): void; |
| 297 | 298 | ||
| 298 | /** | 299 | /** |
| 300 | + * If there is no peer certificate, or the socket has been destroyed, `undefined` will be returned. | ||
| 301 | + */ | ||
| 302 | + getPeerX509Certificate(): X509Certificate | undefined; | ||
| 303 | + | ||
| 304 | + /** | ||
| 305 | + * If there is no local certificate, or the socket has been destroyed, `undefined` will be returned. | ||
| 306 | + */ | ||
| 307 | + getX509Certificate(): X509Certificate | undefined; | ||
| 308 | + | ||
| 309 | + /** | ||
| 299 | * @param length number of bytes to retrieve from keying material | 310 | * @param length number of bytes to retrieve from keying material |
| 300 | * @param label an application specific label, typically this will be a value from the | 311 | * @param label an application specific label, typically this will be a value from the |
| 301 | * [IANA Exporter Label Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels). | 312 | * [IANA Exporter Label Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels). | ... | ... |
| ... | @@ -3,8 +3,8 @@ | ... | @@ -3,8 +3,8 @@ |
| 3 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: | 3 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: |
| 4 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions | 4 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions |
| 5 | // - ~/index.d.ts - Definitions specific to TypeScript 3.7 and above | 5 | // - ~/index.d.ts - Definitions specific to TypeScript 3.7 and above |
| 6 | -// - ~/ts3.5/base.d.ts - Definitions specific to TypeScript 3.6 and earlier | 6 | +// - ~/ts3.6/base.d.ts - Definitions specific to TypeScript 3.6 and earlier |
| 7 | -// - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.6 and earlier with assert pulled in | 7 | +// - ~/ts3.6/index.d.ts - Definitions specific to TypeScript 3.6 and earlier with assert pulled in |
| 8 | 8 | ||
| 9 | // Reference required types from the default lib: | 9 | // Reference required types from the default lib: |
| 10 | /// <reference lib="es2018" /> | 10 | /// <reference lib="es2018" /> |
| ... | @@ -61,8 +61,8 @@ | ... | @@ -61,8 +61,8 @@ |
| 61 | /// <reference path="../worker_threads.d.ts" /> | 61 | /// <reference path="../worker_threads.d.ts" /> |
| 62 | /// <reference path="../zlib.d.ts" /> | 62 | /// <reference path="../zlib.d.ts" /> |
| 63 | 63 | ||
| 64 | -// TypeScript 3.5-specific augmentations: | 64 | +// TypeScript 3.6-specific augmentations: |
| 65 | /// <reference path="../globals.global.d.ts" /> | 65 | /// <reference path="../globals.global.d.ts" /> |
| 66 | 66 | ||
| 67 | -// TypeScript 3.5-specific augmentations: | 67 | +// TypeScript 3.6-specific augmentations: |
| 68 | /// <reference path="../wasi.d.ts" /> | 68 | /// <reference path="../wasi.d.ts" /> | ... | ... |
| 1 | -// NOTE: These definitions support NodeJS and TypeScript 3.5 - 3.6. | 1 | +// NOTE: These definitions support NodeJS and TypeScript 3.6. |
| 2 | // This is required to enable typing assert in ts3.7 without causing errors | 2 | // This is required to enable typing assert in ts3.7 without causing errors |
| 3 | // Typically type modifications should be made in base.d.ts instead of here | 3 | // Typically type modifications should be made in base.d.ts instead of here |
| 4 | 4 | ... | ... |
| ... | @@ -58,7 +58,7 @@ declare module 'wasi' { | ... | @@ -58,7 +58,7 @@ declare module 'wasi' { |
| 58 | * invoke the `__wasi_unstable_reactor_start()` export. If neither of those exports | 58 | * invoke the `__wasi_unstable_reactor_start()` export. If neither of those exports |
| 59 | * is present on `instance`, then `start()` does nothing. | 59 | * is present on `instance`, then `start()` does nothing. |
| 60 | * | 60 | * |
| 61 | - * `start()` requires that `instance` exports a [`WebAssembly.Memory`][] named | 61 | + * `start()` requires that `instance` exports a `WebAssembly.Memory` named |
| 62 | * `memory`. If `instance` does not have a `memory` export an exception is thrown. | 62 | * `memory`. If `instance` does not have a `memory` export an exception is thrown. |
| 63 | * | 63 | * |
| 64 | * If `start()` is called more than once, an exception is thrown. | 64 | * If `start()` is called more than once, an exception is thrown. |
| ... | @@ -69,7 +69,7 @@ declare module 'wasi' { | ... | @@ -69,7 +69,7 @@ declare module 'wasi' { |
| 69 | * Attempt to initialize `instance` as a WASI reactor by invoking its `_initialize()` export, if it is present. | 69 | * Attempt to initialize `instance` as a WASI reactor by invoking its `_initialize()` export, if it is present. |
| 70 | * If `instance` contains a `_start()` export, then an exception is thrown. | 70 | * If `instance` contains a `_start()` export, then an exception is thrown. |
| 71 | * | 71 | * |
| 72 | - * `start()` requires that `instance` exports a [`WebAssembly.Memory`][] named | 72 | + * `start()` requires that `instance` exports a `WebAssembly.Memory` named |
| 73 | * `memory`. If `instance` does not have a `memory` export an exception is thrown. | 73 | * `memory`. If `instance` does not have a `memory` export an exception is thrown. |
| 74 | * | 74 | * |
| 75 | * If `initialize()` is called more than once, an exception is thrown. | 75 | * If `initialize()` is called more than once, an exception is thrown. |
| ... | @@ -79,7 +79,7 @@ declare module 'wasi' { | ... | @@ -79,7 +79,7 @@ declare module 'wasi' { |
| 79 | /** | 79 | /** |
| 80 | * Is an object that implements the WASI system call API. This object | 80 | * Is an object that implements the WASI system call API. This object |
| 81 | * should be passed as the `wasi_snapshot_preview1` import during the instantiation of a | 81 | * should be passed as the `wasi_snapshot_preview1` import during the instantiation of a |
| 82 | - * [`WebAssembly.Instance`][]. | 82 | + * `WebAssembly.Instance`. |
| 83 | */ | 83 | */ |
| 84 | readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types | 84 | readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types |
| 85 | } | 85 | } | ... | ... |
| 1 | declare module 'worker_threads' { | 1 | declare module 'worker_threads' { |
| 2 | + import { Blob } from 'node:buffer'; | ||
| 2 | import { Context } from 'vm'; | 3 | import { Context } from 'vm'; |
| 3 | import { EventEmitter } from 'events'; | 4 | import { EventEmitter } from 'events'; |
| 4 | import { EventLoopUtilityFunction } from 'perf_hooks'; | 5 | import { EventLoopUtilityFunction } from 'perf_hooks'; |
| ... | @@ -23,7 +24,7 @@ declare module 'worker_threads' { | ... | @@ -23,7 +24,7 @@ declare module 'worker_threads' { |
| 23 | eventLoopUtilization: EventLoopUtilityFunction; | 24 | eventLoopUtilization: EventLoopUtilityFunction; |
| 24 | } | 25 | } |
| 25 | 26 | ||
| 26 | - type TransferListItem = ArrayBuffer | MessagePort | FileHandle | X509Certificate; | 27 | + type TransferListItem = ArrayBuffer | MessagePort | FileHandle | X509Certificate | Blob; |
| 27 | 28 | ||
| 28 | class MessagePort extends EventEmitter { | 29 | class MessagePort extends EventEmitter { |
| 29 | close(): void; | 30 | close(): void; |
| ... | @@ -145,11 +146,11 @@ declare module 'worker_threads' { | ... | @@ -145,11 +146,11 @@ declare module 'worker_threads' { |
| 145 | 146 | ||
| 146 | /** | 147 | /** |
| 147 | * Returns a readable stream for a V8 snapshot of the current state of the Worker. | 148 | * Returns a readable stream for a V8 snapshot of the current state of the Worker. |
| 148 | - * See [`v8.getHeapSnapshot()`][] for more details. | 149 | + * See `v8.getHeapSnapshot()` for more details. |
| 149 | * | 150 | * |
| 150 | * If the Worker thread is no longer running, which may occur before the | 151 | * If the Worker thread is no longer running, which may occur before the |
| 151 | - * [`'exit'` event][] is emitted, the returned `Promise` will be rejected | 152 | + * `'exit'` event is emitted, the returned `Promise` will be rejected |
| 152 | - * immediately with an [`ERR_WORKER_NOT_RUNNING`][] error | 153 | + * immediately with an `ERR_WORKER_NOT_RUNNING` error |
| 153 | */ | 154 | */ |
| 154 | getHeapSnapshot(): Promise<Readable>; | 155 | getHeapSnapshot(): Promise<Readable>; |
| 155 | 156 | ||
| ... | @@ -261,4 +262,21 @@ declare module 'worker_threads' { | ... | @@ -261,4 +262,21 @@ declare module 'worker_threads' { |
| 261 | * `MessagePort`’s queue. | 262 | * `MessagePort`’s queue. |
| 262 | */ | 263 | */ |
| 263 | function receiveMessageOnPort(port: MessagePort): { message: any } | undefined; | 264 | function receiveMessageOnPort(port: MessagePort): { message: any } | undefined; |
| 265 | + | ||
| 266 | + type Serializable = string | object | number | boolean | bigint; | ||
| 267 | + | ||
| 268 | + /** | ||
| 269 | + * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key. | ||
| 270 | + * @experimental | ||
| 271 | + */ | ||
| 272 | + function getEnvironmentData(key: Serializable): Serializable; | ||
| 273 | + | ||
| 274 | + /** | ||
| 275 | + * @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key. | ||
| 276 | + * @param value Any arbitrary, cloneable JavaScript value that will be cloned | ||
| 277 | + * and passed automatically to all new `Worker` instances. If `value` is passed | ||
| 278 | + * as `undefined`, any previously set value for the `key` will be deleted. | ||
| 279 | + * @experimental | ||
| 280 | + */ | ||
| 281 | + function setEnvironmentData(key: Serializable, value: Serializable): void; | ||
| 264 | } | 282 | } | ... | ... |
| ... | @@ -4,6 +4,13 @@ | ... | @@ -4,6 +4,13 @@ |
| 4 | 4 | ||
| 5 | [1]: https://www.npmjs.com/package/google-auth-library-nodejs?activeTab=versions | 5 | [1]: https://www.npmjs.com/package/google-auth-library-nodejs?activeTab=versions |
| 6 | 6 | ||
| 7 | +### [7.1.1](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v7.1.0...v7.1.1) (2021-06-02) | ||
| 8 | + | ||
| 9 | + | ||
| 10 | +### Bug Fixes | ||
| 11 | + | ||
| 12 | +* **deps:** update dependency puppeteer to v10 ([#1182](https://www.github.com/googleapis/google-auth-library-nodejs/issues/1182)) ([003e3ee](https://www.github.com/googleapis/google-auth-library-nodejs/commit/003e3ee5d8aeb749c07a4a4db2b75a5882988cc3)) | ||
| 13 | + | ||
| 7 | ## [7.1.0](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v7.0.4...v7.1.0) (2021-05-21) | 14 | ## [7.1.0](https://www.github.com/googleapis/google-auth-library-nodejs/compare/v7.0.4...v7.1.0) (2021-05-21) |
| 8 | 15 | ||
| 9 | 16 | ... | ... |
| ... | @@ -64,7 +64,9 @@ class OAuth2Client extends authclient_1.AuthClient { | ... | @@ -64,7 +64,9 @@ class OAuth2Client extends authclient_1.AuthClient { |
| 64 | opts.scope = opts.scope.join(' '); | 64 | opts.scope = opts.scope.join(' '); |
| 65 | } | 65 | } |
| 66 | const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_; | 66 | const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_; |
| 67 | - return rootUrl + '?' + querystring.stringify(opts); | 67 | + return (rootUrl + |
| 68 | + '?' + | ||
| 69 | + querystring.stringify(opts)); | ||
| 68 | } | 70 | } |
| 69 | generateCodeVerifier() { | 71 | generateCodeVerifier() { |
| 70 | // To make the code compatible with browser SubtleCrypto we need to make | 72 | // To make the code compatible with browser SubtleCrypto we need to make | ... | ... |
| 1 | { | 1 | { |
| 2 | "_from": "google-auth-library@^7.0.2", | 2 | "_from": "google-auth-library@^7.0.2", |
| 3 | - "_id": "google-auth-library@7.1.0", | 3 | + "_id": "google-auth-library@7.1.1", |
| 4 | "_inBundle": false, | 4 | "_inBundle": false, |
| 5 | - "_integrity": "sha512-X+gbkGjnLN3HUZP2W3KBREuA603BXd80ITvL0PeS0QpyDNYz/u0pIZ7aRuGnrSuUc0grk/qxEgtVTFt1ogbP+A==", | 5 | + "_integrity": "sha512-+Q1linq/To3DYLyPz4UTEkQ0v5EOXadMM/S+taLV3W9611hq9zqg8kgGApqbTQnggtwdO9yU1y2YT7+83wdTRg==", |
| 6 | "_location": "/google-auth-library", | 6 | "_location": "/google-auth-library", |
| 7 | "_phantomChildren": {}, | 7 | "_phantomChildren": {}, |
| 8 | "_requested": { | 8 | "_requested": { |
| ... | @@ -19,8 +19,8 @@ | ... | @@ -19,8 +19,8 @@ |
| 19 | "/@google-cloud/common", | 19 | "/@google-cloud/common", |
| 20 | "/google-gax" | 20 | "/google-gax" |
| 21 | ], | 21 | ], |
| 22 | - "_resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-7.1.0.tgz", | 22 | + "_resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-7.1.1.tgz", |
| 23 | - "_shasum": "d83b6bed1d170e30649e15e9b5b17cb375e88919", | 23 | + "_shasum": "aa901f14e97a4ca458f426417216e01b360c2b55", |
| 24 | "_spec": "google-auth-library@^7.0.2", | 24 | "_spec": "google-auth-library@^7.0.2", |
| 25 | "_where": "C:\\Users\\1000c\\이것저것\\옾소\\Voicoding\\node_modules\\@google-cloud\\common", | 25 | "_where": "C:\\Users\\1000c\\이것저것\\옾소\\Voicoding\\node_modules\\@google-cloud\\common", |
| 26 | "author": { | 26 | "author": { |
| ... | @@ -54,7 +54,7 @@ | ... | @@ -54,7 +54,7 @@ |
| 54 | "@types/mocha": "^8.0.0", | 54 | "@types/mocha": "^8.0.0", |
| 55 | "@types/mv": "^2.1.0", | 55 | "@types/mv": "^2.1.0", |
| 56 | "@types/ncp": "^2.0.1", | 56 | "@types/ncp": "^2.0.1", |
| 57 | - "@types/node": "^10.5.1", | 57 | + "@types/node": "^14.0.0", |
| 58 | "@types/sinon": "^10.0.0", | 58 | "@types/sinon": "^10.0.0", |
| 59 | "@types/tmp": "^0.2.0", | 59 | "@types/tmp": "^0.2.0", |
| 60 | "assert-rejects": "^1.0.0", | 60 | "assert-rejects": "^1.0.0", |
| ... | @@ -79,8 +79,8 @@ | ... | @@ -79,8 +79,8 @@ |
| 79 | "ncp": "^2.0.0", | 79 | "ncp": "^2.0.0", |
| 80 | "nock": "^13.0.0", | 80 | "nock": "^13.0.0", |
| 81 | "null-loader": "^4.0.0", | 81 | "null-loader": "^4.0.0", |
| 82 | - "puppeteer": "^8.0.0", | 82 | + "puppeteer": "^10.0.0", |
| 83 | - "sinon": "^10.0.0", | 83 | + "sinon": "^11.0.0", |
| 84 | "tmp": "^0.2.0", | 84 | "tmp": "^0.2.0", |
| 85 | "ts-loader": "^8.0.0", | 85 | "ts-loader": "^8.0.0", |
| 86 | "typescript": "^3.8.3", | 86 | "typescript": "^3.8.3", |
| ... | @@ -132,5 +132,5 @@ | ... | @@ -132,5 +132,5 @@ |
| 132 | "webpack": "webpack" | 132 | "webpack": "webpack" |
| 133 | }, | 133 | }, |
| 134 | "types": "./build/src/index.d.ts", | 134 | "types": "./build/src/index.d.ts", |
| 135 | - "version": "7.1.0" | 135 | + "version": "7.1.1" |
| 136 | } | 136 | } | ... | ... |
| 1 | { | 1 | { |
| 2 | - "requires": true, | 2 | + "name": "voicoding", |
| 3 | + "version": "1.0.0", | ||
| 3 | "lockfileVersion": 1, | 4 | "lockfileVersion": 1, |
| 5 | + "requires": true, | ||
| 4 | "dependencies": { | 6 | "dependencies": { |
| 5 | "@google-cloud/common": { | 7 | "@google-cloud/common": { |
| 6 | "version": "3.6.0", | 8 | "version": "3.6.0", |
| ... | @@ -29,9 +31,9 @@ | ... | @@ -29,9 +31,9 @@ |
| 29 | "integrity": "sha512-d4VSA86eL/AFTe5xtyZX+ePUjE8dIFu2T8zmdeNBSa5/kNgXPCx/o/wbFNHAGLJdGnk1vddRuMESD9HbOC8irw==" | 31 | "integrity": "sha512-d4VSA86eL/AFTe5xtyZX+ePUjE8dIFu2T8zmdeNBSa5/kNgXPCx/o/wbFNHAGLJdGnk1vddRuMESD9HbOC8irw==" |
| 30 | }, | 32 | }, |
| 31 | "@google-cloud/speech": { | 33 | "@google-cloud/speech": { |
| 32 | - "version": "4.5.1", | 34 | + "version": "4.5.2", |
| 33 | - "resolved": "https://registry.npmjs.org/@google-cloud/speech/-/speech-4.5.1.tgz", | 35 | + "resolved": "https://registry.npmjs.org/@google-cloud/speech/-/speech-4.5.2.tgz", |
| 34 | - "integrity": "sha512-1wyFQ1UTYIfgoMlBveHGvVSqnVzG9r6fjWxJ+A2Z94gSOf9sKb2yZibi9K8ZBdAXadLMwjwa5KERaD7qyk2hiA==", | 36 | + "integrity": "sha512-MAxa6tlXzA0ZDL2Or7U7GTjrlbjU7ZpSxAeu0gUe79Df1W3ALcFl33zMJmBAc/xzKWZ+yQ1XIdPIYq2ydam4WQ==", |
| 35 | "requires": { | 37 | "requires": { |
| 36 | "@google-cloud/common": "^3.0.0", | 38 | "@google-cloud/common": "^3.0.0", |
| 37 | "@types/pumpify": "^1.4.1", | 39 | "@types/pumpify": "^1.4.1", |
| ... | @@ -135,9 +137,9 @@ | ... | @@ -135,9 +137,9 @@ |
| 135 | "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" | 137 | "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" |
| 136 | }, | 138 | }, |
| 137 | "@types/node": { | 139 | "@types/node": { |
| 138 | - "version": "15.6.2", | 140 | + "version": "15.12.0", |
| 139 | - "resolved": "https://registry.npmjs.org/@types/node/-/node-15.6.2.tgz", | 141 | + "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.0.tgz", |
| 140 | - "integrity": "sha512-dxcOx8801kMo3KlU+C+/ctWrzREAH7YvoF3aoVpRdqgs+Kf7flp+PJDN/EX5bME3suDUZHsxes9hpvBmzYlWbA==" | 142 | + "integrity": "sha512-+aHJvoCsVhO2ZCuT4o5JtcPrCPyDE3+1nvbDprYes+pPkEsbjH7AGUCNtjMOXS0fqH14t+B7yLzaqSz92FPWyw==" |
| 141 | }, | 143 | }, |
| 142 | "@types/pumpify": { | 144 | "@types/pumpify": { |
| 143 | "version": "1.4.1", | 145 | "version": "1.4.1", |
| ... | @@ -622,9 +624,9 @@ | ... | @@ -622,9 +624,9 @@ |
| 622 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" | 624 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" |
| 623 | }, | 625 | }, |
| 624 | "google-auth-library": { | 626 | "google-auth-library": { |
| 625 | - "version": "7.1.0", | 627 | + "version": "7.1.1", |
| 626 | - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-7.1.0.tgz", | 628 | + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-7.1.1.tgz", |
| 627 | - "integrity": "sha512-X+gbkGjnLN3HUZP2W3KBREuA603BXd80ITvL0PeS0QpyDNYz/u0pIZ7aRuGnrSuUc0grk/qxEgtVTFt1ogbP+A==", | 629 | + "integrity": "sha512-+Q1linq/To3DYLyPz4UTEkQ0v5EOXadMM/S+taLV3W9611hq9zqg8kgGApqbTQnggtwdO9yU1y2YT7+83wdTRg==", |
| 628 | "requires": { | 630 | "requires": { |
| 629 | "arrify": "^2.0.0", | 631 | "arrify": "^2.0.0", |
| 630 | "base64-js": "^1.3.0", | 632 | "base64-js": "^1.3.0", | ... | ... |
package.json
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "voicoding", | ||
| 3 | + "version": "1.0.0", | ||
| 4 | + "description": "Voicoding", | ||
| 5 | + "main": "voicoding.js", | ||
| 6 | + "dependencies": { | ||
| 7 | + "@google-cloud/speech": "^4.5.2", | ||
| 8 | + "express": "^4.17.1", | ||
| 9 | + "fs": "^0.0.1-security", | ||
| 10 | + "multer": "^1.4.2", | ||
| 11 | + "node-record-lpcm16": "^1.0.1" | ||
| 12 | + }, | ||
| 13 | + "devDependencies": {}, | ||
| 14 | + "scripts": { | ||
| 15 | + "test": "echo \"Error: no test specified\" && exit 1" | ||
| 16 | + }, | ||
| 17 | + "repository": { | ||
| 18 | + "type": "git", | ||
| 19 | + "url": "http://khuhub.khu.ac.kr/2019102168/Voicoding.git" | ||
| 20 | + }, | ||
| 21 | + "author": "", | ||
| 22 | + "license": "ISC" | ||
| 23 | +} |
sox-14.4.1-win32.exe
deleted
100644 → 0
No preview for this file type
-
Please register or login to post a comment