천현우

readme update

Showing 42 changed files with 510 additions and 111 deletions
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 }
......
...@@ -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 }
......
...@@ -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 { 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 /**
......
This diff is collapsed. Click to expand it.
...@@ -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",
......
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 +}
No preview for this file type