@tsonic/nodejs 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -199,9 +199,11 @@ export const AnyTxtRecord: {
|
|
|
199
199
|
export type AnyTxtRecord = AnyTxtRecord$instance;
|
|
200
200
|
|
|
201
201
|
export interface AssertionError$instance extends Exception {
|
|
202
|
-
actual: unknown;
|
|
202
|
+
get actual(): unknown | undefined;
|
|
203
|
+
set actual(value: unknown);
|
|
203
204
|
readonly code: string;
|
|
204
|
-
expected: unknown;
|
|
205
|
+
get expected(): unknown | undefined;
|
|
206
|
+
set expected(value: unknown);
|
|
205
207
|
generatedMessage: boolean;
|
|
206
208
|
operator: string;
|
|
207
209
|
}
|
|
@@ -365,12 +367,17 @@ export const Buffer: {
|
|
|
365
367
|
export type Buffer = Buffer$instance;
|
|
366
368
|
|
|
367
369
|
export interface CaaRecord$instance {
|
|
368
|
-
contactemail: string;
|
|
369
|
-
|
|
370
|
+
get contactemail(): string | undefined;
|
|
371
|
+
set contactemail(value: string);
|
|
372
|
+
get contactphone(): string | undefined;
|
|
373
|
+
set contactphone(value: string);
|
|
370
374
|
critical: int;
|
|
371
|
-
iodef: string;
|
|
372
|
-
|
|
373
|
-
|
|
375
|
+
get iodef(): string | undefined;
|
|
376
|
+
set iodef(value: string);
|
|
377
|
+
get issue(): string | undefined;
|
|
378
|
+
set issue(value: string);
|
|
379
|
+
get issuewild(): string | undefined;
|
|
380
|
+
set issuewild(value: string);
|
|
374
381
|
}
|
|
375
382
|
|
|
376
383
|
|
|
@@ -387,11 +394,11 @@ export interface ChildProcess$instance extends EventEmitter {
|
|
|
387
394
|
readonly killed: boolean;
|
|
388
395
|
readonly pid: int;
|
|
389
396
|
readonly referenced: boolean;
|
|
390
|
-
readonly signalCode: string;
|
|
397
|
+
readonly signalCode: string | undefined;
|
|
391
398
|
readonly spawnargs: string[];
|
|
392
399
|
readonly spawnfile: string;
|
|
393
400
|
readonly stderr: Readable;
|
|
394
|
-
readonly stdin: Writable;
|
|
401
|
+
readonly stdin: Writable | undefined;
|
|
395
402
|
readonly stdout: Readable;
|
|
396
403
|
disconnect(): void;
|
|
397
404
|
kill(signal?: string): boolean;
|
|
@@ -442,11 +449,13 @@ export const CipherNameAndProtocol: {
|
|
|
442
449
|
export type CipherNameAndProtocol = CipherNameAndProtocol$instance;
|
|
443
450
|
|
|
444
451
|
export interface CommonConnectionOptions$instance {
|
|
445
|
-
alpnProtocols: string[];
|
|
452
|
+
get alpnProtocols(): string[] | undefined;
|
|
453
|
+
set alpnProtocols(value: string[]);
|
|
446
454
|
enableTrace: Nullable<System_Internal.Boolean>;
|
|
447
455
|
rejectUnauthorized: Nullable<System_Internal.Boolean>;
|
|
448
456
|
requestCert: Nullable<System_Internal.Boolean>;
|
|
449
|
-
secureContext: SecureContext;
|
|
457
|
+
get secureContext(): SecureContext | undefined;
|
|
458
|
+
set secureContext(value: SecureContext);
|
|
450
459
|
}
|
|
451
460
|
|
|
452
461
|
|
|
@@ -458,13 +467,18 @@ export const CommonConnectionOptions: {
|
|
|
458
467
|
export type CommonConnectionOptions = CommonConnectionOptions$instance;
|
|
459
468
|
|
|
460
469
|
export interface ConnectionOptions$instance extends CommonConnectionOptions {
|
|
461
|
-
ca: unknown;
|
|
462
|
-
|
|
470
|
+
get ca(): unknown | undefined;
|
|
471
|
+
set ca(value: unknown);
|
|
472
|
+
get cert(): unknown | undefined;
|
|
473
|
+
set cert(value: unknown);
|
|
463
474
|
host: string;
|
|
464
|
-
key: unknown;
|
|
465
|
-
|
|
475
|
+
get key(): unknown | undefined;
|
|
476
|
+
set key(value: unknown);
|
|
477
|
+
get passphrase(): string | undefined;
|
|
478
|
+
set passphrase(value: string);
|
|
466
479
|
port: Nullable<System_Internal.Int32>;
|
|
467
|
-
servername: string;
|
|
480
|
+
get servername(): string | undefined;
|
|
481
|
+
set servername(value: string);
|
|
468
482
|
timeout: Nullable<System_Internal.Int32>;
|
|
469
483
|
}
|
|
470
484
|
|
|
@@ -538,7 +552,8 @@ export const Decipher: {
|
|
|
538
552
|
export type Decipher = Decipher$instance;
|
|
539
553
|
|
|
540
554
|
export interface DetailedPeerCertificate$instance extends PeerCertificate {
|
|
541
|
-
issuerCertificate: DetailedPeerCertificate;
|
|
555
|
+
get issuerCertificate(): DetailedPeerCertificate | undefined;
|
|
556
|
+
set issuerCertificate(value: DetailedPeerCertificate);
|
|
542
557
|
}
|
|
543
558
|
|
|
544
559
|
|
|
@@ -627,7 +642,7 @@ export const DiffieHellman: {
|
|
|
627
642
|
export type DiffieHellman = DiffieHellman$instance;
|
|
628
643
|
|
|
629
644
|
export interface DSAPrivateKeyObject$instance extends KeyObject {
|
|
630
|
-
readonly asymmetricKeyType: string;
|
|
645
|
+
readonly asymmetricKeyType: string | undefined;
|
|
631
646
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
632
647
|
readonly type_: string;
|
|
633
648
|
dispose(): void;
|
|
@@ -643,7 +658,7 @@ export const DSAPrivateKeyObject: {
|
|
|
643
658
|
export type DSAPrivateKeyObject = DSAPrivateKeyObject$instance;
|
|
644
659
|
|
|
645
660
|
export interface DSAPublicKeyObject$instance extends KeyObject {
|
|
646
|
-
readonly asymmetricKeyType: string;
|
|
661
|
+
readonly asymmetricKeyType: string | undefined;
|
|
647
662
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
648
663
|
readonly type_: string;
|
|
649
664
|
dispose(): void;
|
|
@@ -704,7 +719,7 @@ export const ECDH: {
|
|
|
704
719
|
export type ECDH = ECDH$instance;
|
|
705
720
|
|
|
706
721
|
export interface EdDSAPrivateKeyObject$instance extends KeyObject {
|
|
707
|
-
readonly asymmetricKeyType: string;
|
|
722
|
+
readonly asymmetricKeyType: string | undefined;
|
|
708
723
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
709
724
|
readonly type_: string;
|
|
710
725
|
dispose(): void;
|
|
@@ -720,7 +735,7 @@ export const EdDSAPrivateKeyObject: {
|
|
|
720
735
|
export type EdDSAPrivateKeyObject = EdDSAPrivateKeyObject$instance;
|
|
721
736
|
|
|
722
737
|
export interface EdDSAPublicKeyObject$instance extends KeyObject {
|
|
723
|
-
readonly asymmetricKeyType: string;
|
|
738
|
+
readonly asymmetricKeyType: string | undefined;
|
|
724
739
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
725
740
|
readonly type_: string;
|
|
726
741
|
dispose(): void;
|
|
@@ -771,24 +786,32 @@ export interface EventEmitter$instance {
|
|
|
771
786
|
export const EventEmitter: {
|
|
772
787
|
new(): EventEmitter;
|
|
773
788
|
defaultMaxListeners: int;
|
|
774
|
-
once(emitter: EventEmitter, eventName: string): Task<unknown[]>;
|
|
789
|
+
once(emitter: EventEmitter, eventName: string): Task<(unknown | undefined)[]>;
|
|
775
790
|
};
|
|
776
791
|
|
|
777
792
|
|
|
778
793
|
export type EventEmitter = EventEmitter$instance;
|
|
779
794
|
|
|
780
795
|
export interface ExecOptions$instance {
|
|
781
|
-
argv0: string;
|
|
782
|
-
|
|
796
|
+
get argv0(): string | undefined;
|
|
797
|
+
set argv0(value: string);
|
|
798
|
+
get cwd(): string | undefined;
|
|
799
|
+
set cwd(value: string);
|
|
783
800
|
detached: boolean;
|
|
784
|
-
encoding: string;
|
|
785
|
-
|
|
801
|
+
get encoding(): string | undefined;
|
|
802
|
+
set encoding(value: string);
|
|
803
|
+
get env(): unknown | undefined;
|
|
804
|
+
set env(value: unknown);
|
|
786
805
|
gid: Nullable<System_Internal.Int32>;
|
|
787
|
-
input: string;
|
|
788
|
-
|
|
806
|
+
get input(): string | undefined;
|
|
807
|
+
set input(value: string);
|
|
808
|
+
get killSignal(): string | undefined;
|
|
809
|
+
set killSignal(value: string);
|
|
789
810
|
maxBuffer: int;
|
|
790
|
-
shell: string;
|
|
791
|
-
|
|
811
|
+
get shell(): string | undefined;
|
|
812
|
+
set shell(value: string);
|
|
813
|
+
get stdio(): string | undefined;
|
|
814
|
+
set stdio(value: string);
|
|
792
815
|
timeout: int;
|
|
793
816
|
uid: Nullable<System_Internal.Int32>;
|
|
794
817
|
windowsHide: boolean;
|
|
@@ -877,11 +900,14 @@ export type Interface = Interface$instance;
|
|
|
877
900
|
|
|
878
901
|
export interface InterfaceOptions$instance {
|
|
879
902
|
escapeCodeTimeout: Nullable<System_Internal.Int32>;
|
|
880
|
-
history: string[];
|
|
903
|
+
get history(): string[] | undefined;
|
|
904
|
+
set history(value: string[]);
|
|
881
905
|
historySize: Nullable<System_Internal.Int32>;
|
|
882
|
-
input: Readable;
|
|
906
|
+
get input(): Readable | undefined;
|
|
907
|
+
set input(value: Readable);
|
|
883
908
|
output: Writable;
|
|
884
|
-
prompt: string;
|
|
909
|
+
get prompt(): string | undefined;
|
|
910
|
+
set prompt(value: string);
|
|
885
911
|
removeHistoryDuplicates: Nullable<System_Internal.Boolean>;
|
|
886
912
|
tabSize: Nullable<System_Internal.Int32>;
|
|
887
913
|
terminal: Nullable<System_Internal.Boolean>;
|
|
@@ -908,7 +934,7 @@ export const IpcSocketConnectOpts: {
|
|
|
908
934
|
export type IpcSocketConnectOpts = IpcSocketConnectOpts$instance;
|
|
909
935
|
|
|
910
936
|
export interface KeyObject$instance {
|
|
911
|
-
readonly asymmetricKeyType: string;
|
|
937
|
+
readonly asymmetricKeyType: string | undefined;
|
|
912
938
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
913
939
|
readonly type_: string;
|
|
914
940
|
dispose(): void;
|
|
@@ -955,7 +981,8 @@ export interface LookupOptions$instance {
|
|
|
955
981
|
all: Nullable<System_Internal.Boolean>;
|
|
956
982
|
family: unknown;
|
|
957
983
|
hints: Nullable<System_Internal.Int32>;
|
|
958
|
-
order: string;
|
|
984
|
+
get order(): string | undefined;
|
|
985
|
+
set order(value: string);
|
|
959
986
|
verbatim: Nullable<System_Internal.Boolean>;
|
|
960
987
|
}
|
|
961
988
|
|
|
@@ -968,7 +995,8 @@ export const LookupOptions: {
|
|
|
968
995
|
export type LookupOptions = LookupOptions$instance;
|
|
969
996
|
|
|
970
997
|
export interface MarkOptions$instance {
|
|
971
|
-
detail: unknown;
|
|
998
|
+
get detail(): unknown | undefined;
|
|
999
|
+
set detail(value: unknown);
|
|
972
1000
|
startTime: Nullable<System_Internal.Double>;
|
|
973
1001
|
}
|
|
974
1002
|
|
|
@@ -981,11 +1009,14 @@ export const MarkOptions: {
|
|
|
981
1009
|
export type MarkOptions = MarkOptions$instance;
|
|
982
1010
|
|
|
983
1011
|
export interface MeasureOptions$instance {
|
|
984
|
-
detail: unknown;
|
|
1012
|
+
get detail(): unknown | undefined;
|
|
1013
|
+
set detail(value: unknown);
|
|
985
1014
|
end: Nullable<System_Internal.Double>;
|
|
986
|
-
endMark: string;
|
|
1015
|
+
get endMark(): string | undefined;
|
|
1016
|
+
set endMark(value: string);
|
|
987
1017
|
start: Nullable<System_Internal.Double>;
|
|
988
|
-
startMark: string;
|
|
1018
|
+
get startMark(): string | undefined;
|
|
1019
|
+
set startMark(value: string);
|
|
989
1020
|
}
|
|
990
1021
|
|
|
991
1022
|
|
|
@@ -1083,7 +1114,8 @@ export type PathModule = PathModule$instance;
|
|
|
1083
1114
|
|
|
1084
1115
|
export interface PeerCertificate$instance {
|
|
1085
1116
|
ca: boolean;
|
|
1086
|
-
ext_key_usage: string[];
|
|
1117
|
+
get ext_key_usage(): string[] | undefined;
|
|
1118
|
+
set ext_key_usage(value: string[]);
|
|
1087
1119
|
fingerprint: string;
|
|
1088
1120
|
fingerprint256: string;
|
|
1089
1121
|
fingerprint512: string;
|
|
@@ -1091,7 +1123,8 @@ export interface PeerCertificate$instance {
|
|
|
1091
1123
|
raw: byte[];
|
|
1092
1124
|
serialNumber: string;
|
|
1093
1125
|
subject: TLSCertificateInfo;
|
|
1094
|
-
subjectaltname: string;
|
|
1126
|
+
get subjectaltname(): string | undefined;
|
|
1127
|
+
set subjectaltname(value: string);
|
|
1095
1128
|
valid_from: string;
|
|
1096
1129
|
valid_to: string;
|
|
1097
1130
|
}
|
|
@@ -1120,7 +1153,7 @@ export const PerformanceEntry: {
|
|
|
1120
1153
|
export type PerformanceEntry = PerformanceEntry$instance;
|
|
1121
1154
|
|
|
1122
1155
|
export interface PerformanceMark$instance extends PerformanceEntry {
|
|
1123
|
-
readonly detail: unknown;
|
|
1156
|
+
readonly detail: unknown | undefined;
|
|
1124
1157
|
}
|
|
1125
1158
|
|
|
1126
1159
|
|
|
@@ -1132,7 +1165,7 @@ export const PerformanceMark: {
|
|
|
1132
1165
|
export type PerformanceMark = PerformanceMark$instance;
|
|
1133
1166
|
|
|
1134
1167
|
export interface PerformanceMeasure$instance extends PerformanceEntry {
|
|
1135
|
-
readonly detail: unknown;
|
|
1168
|
+
readonly detail: unknown | undefined;
|
|
1136
1169
|
}
|
|
1137
1170
|
|
|
1138
1171
|
|
|
@@ -1174,7 +1207,8 @@ export type PerformanceObserverEntryList = PerformanceObserverEntryList$instance
|
|
|
1174
1207
|
|
|
1175
1208
|
export interface PerformanceObserverOptions$instance {
|
|
1176
1209
|
buffered: boolean;
|
|
1177
|
-
entryTypes: string[];
|
|
1210
|
+
get entryTypes(): string[] | undefined;
|
|
1211
|
+
set entryTypes(value: string[]);
|
|
1178
1212
|
}
|
|
1179
1213
|
|
|
1180
1214
|
|
|
@@ -1186,7 +1220,7 @@ export const PerformanceObserverOptions: {
|
|
|
1186
1220
|
export type PerformanceObserverOptions = PerformanceObserverOptions$instance;
|
|
1187
1221
|
|
|
1188
1222
|
export interface PrivateKeyObject$instance extends KeyObject {
|
|
1189
|
-
readonly asymmetricKeyType: string;
|
|
1223
|
+
readonly asymmetricKeyType: string | undefined;
|
|
1190
1224
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1191
1225
|
readonly type_: string;
|
|
1192
1226
|
dispose(): void;
|
|
@@ -1205,9 +1239,10 @@ export type PrivateKeyObject = PrivateKeyObject$instance;
|
|
|
1205
1239
|
export interface ProcessEnv$instance {
|
|
1206
1240
|
readonly count: int;
|
|
1207
1241
|
readonly isReadOnly: boolean;
|
|
1208
|
-
item: string;
|
|
1242
|
+
get item(): string | undefined;
|
|
1243
|
+
set item(value: string);
|
|
1209
1244
|
readonly keys: ICollection<System_Internal.String>;
|
|
1210
|
-
readonly values: ICollection<
|
|
1245
|
+
readonly values: ICollection<string | undefined>;
|
|
1211
1246
|
add(key: string, value: string): void;
|
|
1212
1247
|
add(item: KeyValuePair<System_Internal.String, System_Internal.String>): void;
|
|
1213
1248
|
clear(): void;
|
|
@@ -1244,7 +1279,7 @@ export const ProcessVersions: {
|
|
|
1244
1279
|
export type ProcessVersions = ProcessVersions$instance;
|
|
1245
1280
|
|
|
1246
1281
|
export interface PublicKeyObject$instance extends KeyObject {
|
|
1247
|
-
readonly asymmetricKeyType: string;
|
|
1282
|
+
readonly asymmetricKeyType: string | undefined;
|
|
1248
1283
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1249
1284
|
readonly type_: string;
|
|
1250
1285
|
dispose(): void;
|
|
@@ -1270,7 +1305,7 @@ export interface Readable$instance extends Stream {
|
|
|
1270
1305
|
isPaused(): boolean;
|
|
1271
1306
|
pause(): Readable;
|
|
1272
1307
|
push(chunk: unknown, encoding?: string): boolean;
|
|
1273
|
-
read(size?: Nullable<System_Internal.Int32>): unknown;
|
|
1308
|
+
read(size?: Nullable<System_Internal.Int32>): unknown | undefined;
|
|
1274
1309
|
resume(): Readable;
|
|
1275
1310
|
setEncoding(encoding: string): Readable;
|
|
1276
1311
|
unpipe(destination?: Stream): Readable;
|
|
@@ -1374,7 +1409,7 @@ export const ResolverOptions: {
|
|
|
1374
1409
|
export type ResolverOptions = ResolverOptions$instance;
|
|
1375
1410
|
|
|
1376
1411
|
export interface SecretKeyObject$instance extends KeyObject {
|
|
1377
|
-
readonly asymmetricKeyType: string;
|
|
1412
|
+
readonly asymmetricKeyType: string | undefined;
|
|
1378
1413
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1379
1414
|
readonly type_: string;
|
|
1380
1415
|
dispose(): void;
|
|
@@ -1391,9 +1426,10 @@ export const SecretKeyObject: {
|
|
|
1391
1426
|
export type SecretKeyObject = SecretKeyObject$instance;
|
|
1392
1427
|
|
|
1393
1428
|
export interface SecureContext$instance {
|
|
1394
|
-
readonly caCertificates: X509Certificate2Collection;
|
|
1395
|
-
readonly certificate: X509Certificate2;
|
|
1396
|
-
context: unknown;
|
|
1429
|
+
readonly caCertificates: X509Certificate2Collection | undefined;
|
|
1430
|
+
readonly certificate: X509Certificate2 | undefined;
|
|
1431
|
+
get context(): unknown | undefined;
|
|
1432
|
+
set context(value: unknown);
|
|
1397
1433
|
readonly protocols: SslProtocols;
|
|
1398
1434
|
loadCACertificates(ca: unknown): void;
|
|
1399
1435
|
loadCertificate(cert: unknown, key: unknown, passphrase: string): void;
|
|
@@ -1409,14 +1445,22 @@ export const SecureContext: {
|
|
|
1409
1445
|
export type SecureContext = SecureContext$instance;
|
|
1410
1446
|
|
|
1411
1447
|
export interface SecureContextOptions$instance {
|
|
1412
|
-
ca: unknown;
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1448
|
+
get ca(): unknown | undefined;
|
|
1449
|
+
set ca(value: unknown);
|
|
1450
|
+
get cert(): unknown | undefined;
|
|
1451
|
+
set cert(value: unknown);
|
|
1452
|
+
get ciphers(): string | undefined;
|
|
1453
|
+
set ciphers(value: string);
|
|
1454
|
+
get key(): unknown | undefined;
|
|
1455
|
+
set key(value: unknown);
|
|
1456
|
+
get maxVersion(): string | undefined;
|
|
1457
|
+
set maxVersion(value: string);
|
|
1458
|
+
get minVersion(): string | undefined;
|
|
1459
|
+
set minVersion(value: string);
|
|
1460
|
+
get passphrase(): string | undefined;
|
|
1461
|
+
set passphrase(value: string);
|
|
1462
|
+
get pfx(): unknown | undefined;
|
|
1463
|
+
set pfx(value: unknown);
|
|
1420
1464
|
}
|
|
1421
1465
|
|
|
1422
1466
|
|
|
@@ -1506,12 +1550,12 @@ export interface Socket$instance extends Stream {
|
|
|
1506
1550
|
readonly bytesWritten: long;
|
|
1507
1551
|
readonly connecting: boolean;
|
|
1508
1552
|
readonly destroyed: boolean;
|
|
1509
|
-
readonly localAddress: string;
|
|
1510
|
-
readonly localFamily: string;
|
|
1553
|
+
readonly localAddress: string | undefined;
|
|
1554
|
+
readonly localFamily: string | undefined;
|
|
1511
1555
|
readonly localPort: Nullable<System_Internal.Int32>;
|
|
1512
1556
|
readonly readyState: string;
|
|
1513
|
-
readonly remoteAddress: string;
|
|
1514
|
-
readonly remoteFamily: string;
|
|
1557
|
+
readonly remoteAddress: string | undefined;
|
|
1558
|
+
readonly remoteFamily: string | undefined;
|
|
1515
1559
|
readonly remotePort: Nullable<System_Internal.Int32>;
|
|
1516
1560
|
address(): unknown;
|
|
1517
1561
|
connect(port: int, host?: string, connectionListener?: Action): Socket;
|
|
@@ -1608,10 +1652,12 @@ export const SocketOptions: {
|
|
|
1608
1652
|
export type SocketOptions = SocketOptions$instance;
|
|
1609
1653
|
|
|
1610
1654
|
export interface SpawnSyncReturns_1$instance<T> {
|
|
1611
|
-
error: Exception;
|
|
1612
|
-
|
|
1655
|
+
get error(): Exception | undefined;
|
|
1656
|
+
set error(value: Exception);
|
|
1657
|
+
output: (T | undefined)[];
|
|
1613
1658
|
pid: int;
|
|
1614
|
-
signal: string;
|
|
1659
|
+
get signal(): string | undefined;
|
|
1660
|
+
set signal(value: string);
|
|
1615
1661
|
status: Nullable<System_Internal.Int32>;
|
|
1616
1662
|
stderr: T;
|
|
1617
1663
|
stdout: T;
|
|
@@ -1698,7 +1744,8 @@ export interface TcpSocketConnectOpts$instance {
|
|
|
1698
1744
|
host: string;
|
|
1699
1745
|
keepAlive: Nullable<System_Internal.Boolean>;
|
|
1700
1746
|
keepAliveInitialDelay: Nullable<System_Internal.Int32>;
|
|
1701
|
-
localAddress: string;
|
|
1747
|
+
get localAddress(): string | undefined;
|
|
1748
|
+
set localAddress(value: string);
|
|
1702
1749
|
localPort: Nullable<System_Internal.Int32>;
|
|
1703
1750
|
noDelay: Nullable<System_Internal.Boolean>;
|
|
1704
1751
|
port: int;
|
|
@@ -1763,11 +1810,15 @@ export type TLSCertificateInfo = TLSCertificateInfo$instance;
|
|
|
1763
1810
|
|
|
1764
1811
|
export interface TlsOptions$instance extends CommonConnectionOptions {
|
|
1765
1812
|
allowHalfOpen: Nullable<System_Internal.Boolean>;
|
|
1766
|
-
ca: unknown;
|
|
1767
|
-
|
|
1813
|
+
get ca(): unknown | undefined;
|
|
1814
|
+
set ca(value: unknown);
|
|
1815
|
+
get cert(): unknown | undefined;
|
|
1816
|
+
set cert(value: unknown);
|
|
1768
1817
|
handshakeTimeout: Nullable<System_Internal.Int32>;
|
|
1769
|
-
key: unknown;
|
|
1770
|
-
|
|
1818
|
+
get key(): unknown | undefined;
|
|
1819
|
+
set key(value: unknown);
|
|
1820
|
+
get passphrase(): string | undefined;
|
|
1821
|
+
set passphrase(value: string);
|
|
1771
1822
|
pauseOnConnect: Nullable<System_Internal.Boolean>;
|
|
1772
1823
|
sessionTimeout: Nullable<System_Internal.Int32>;
|
|
1773
1824
|
}
|
|
@@ -1798,25 +1849,25 @@ export const TLSServer: {
|
|
|
1798
1849
|
export type TLSServer = TLSServer$instance;
|
|
1799
1850
|
|
|
1800
1851
|
export interface TLSSocket$instance extends Socket {
|
|
1801
|
-
readonly alpnProtocol: string;
|
|
1802
|
-
readonly authorizationError: Exception;
|
|
1852
|
+
readonly alpnProtocol: string | undefined;
|
|
1853
|
+
readonly authorizationError: Exception | undefined;
|
|
1803
1854
|
readonly authorized: boolean;
|
|
1804
1855
|
readonly encrypted: boolean;
|
|
1805
1856
|
disableRenegotiation(): void;
|
|
1806
1857
|
enableTrace(): void;
|
|
1807
1858
|
exportKeyingMaterial(length: int, label: string, context: byte[]): byte[];
|
|
1808
|
-
getCertificate(): PeerCertificate;
|
|
1859
|
+
getCertificate(): PeerCertificate | undefined;
|
|
1809
1860
|
getCipher(): CipherNameAndProtocol;
|
|
1810
|
-
getEphemeralKeyInfo(): EphemeralKeyInfo;
|
|
1811
|
-
getFinished(): byte[];
|
|
1812
|
-
getPeerCertificate(detailed?: boolean): PeerCertificate;
|
|
1813
|
-
getPeerFinished(): byte[];
|
|
1814
|
-
getPeerX509Certificate(): unknown;
|
|
1815
|
-
getProtocol(): string;
|
|
1816
|
-
getSession(): byte[];
|
|
1861
|
+
getEphemeralKeyInfo(): EphemeralKeyInfo | undefined;
|
|
1862
|
+
getFinished(): byte[] | undefined;
|
|
1863
|
+
getPeerCertificate(detailed?: boolean): PeerCertificate | undefined;
|
|
1864
|
+
getPeerFinished(): byte[] | undefined;
|
|
1865
|
+
getPeerX509Certificate(): unknown | undefined;
|
|
1866
|
+
getProtocol(): string | undefined;
|
|
1867
|
+
getSession(): byte[] | undefined;
|
|
1817
1868
|
getSharedSigalgs(): string[];
|
|
1818
|
-
getTLSTicket(): byte[];
|
|
1819
|
-
getX509Certificate(): unknown;
|
|
1869
|
+
getTLSTicket(): byte[] | undefined;
|
|
1870
|
+
getX509Certificate(): unknown | undefined;
|
|
1820
1871
|
isSessionReused(): boolean;
|
|
1821
1872
|
renegotiate(options: unknown, callback: Action<Exception>): boolean;
|
|
1822
1873
|
setKeyCert(context: unknown): void;
|
|
@@ -1837,13 +1888,19 @@ export const TLSSocket: {
|
|
|
1837
1888
|
export type TLSSocket = TLSSocket$instance;
|
|
1838
1889
|
|
|
1839
1890
|
export interface TLSSocketOptions$instance extends CommonConnectionOptions {
|
|
1840
|
-
ca: unknown;
|
|
1841
|
-
|
|
1891
|
+
get ca(): unknown | undefined;
|
|
1892
|
+
set ca(value: unknown);
|
|
1893
|
+
get cert(): unknown | undefined;
|
|
1894
|
+
set cert(value: unknown);
|
|
1842
1895
|
isServer: Nullable<System_Internal.Boolean>;
|
|
1843
|
-
key: unknown;
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1896
|
+
get key(): unknown | undefined;
|
|
1897
|
+
set key(value: unknown);
|
|
1898
|
+
get passphrase(): string | undefined;
|
|
1899
|
+
set passphrase(value: string);
|
|
1900
|
+
get server(): Server | undefined;
|
|
1901
|
+
set server(value: Server);
|
|
1902
|
+
get servername(): string | undefined;
|
|
1903
|
+
set servername(value: string);
|
|
1847
1904
|
}
|
|
1848
1905
|
|
|
1849
1906
|
|
|
@@ -1886,7 +1943,7 @@ export interface URL$instance {
|
|
|
1886
1943
|
export const URL: {
|
|
1887
1944
|
new(input: string, base: string): URL;
|
|
1888
1945
|
canParse(input: string, base?: string): boolean;
|
|
1889
|
-
parse(input: string, base?: string): URL;
|
|
1946
|
+
parse(input: string, base?: string): URL | undefined;
|
|
1890
1947
|
};
|
|
1891
1948
|
|
|
1892
1949
|
|
|
@@ -1898,7 +1955,7 @@ export interface URLSearchParams$instance {
|
|
|
1898
1955
|
delete_(name: string, value?: string): void;
|
|
1899
1956
|
entries(): IEnumerable__System_Collections_Generic<KeyValuePair<System_Internal.String, System_Internal.String>>;
|
|
1900
1957
|
forEach(callback: Action<System_Internal.String, System_Internal.String>): void;
|
|
1901
|
-
get_(name: string): string;
|
|
1958
|
+
get_(name: string): string | undefined;
|
|
1902
1959
|
getAll(name: string): string[];
|
|
1903
1960
|
has(name: string, value?: string): boolean;
|
|
1904
1961
|
keys(): IEnumerable__System_Collections_Generic<System_Internal.String>;
|
|
@@ -1919,7 +1976,8 @@ export type URLSearchParams = URLSearchParams$instance;
|
|
|
1919
1976
|
export interface UserInfo$instance {
|
|
1920
1977
|
gid: int;
|
|
1921
1978
|
homedir: string;
|
|
1922
|
-
shell: string;
|
|
1979
|
+
get shell(): string | undefined;
|
|
1980
|
+
set shell(value: string);
|
|
1923
1981
|
uid: int;
|
|
1924
1982
|
username: string;
|
|
1925
1983
|
}
|
|
@@ -1982,10 +2040,10 @@ export interface X509CertificateInfo$instance {
|
|
|
1982
2040
|
readonly subject: string;
|
|
1983
2041
|
readonly validFrom: DateTime;
|
|
1984
2042
|
readonly validTo: DateTime;
|
|
1985
|
-
checkEmail(email: string): string;
|
|
1986
|
-
checkHost(hostname: string): string;
|
|
1987
|
-
checkIP(ip: string): string;
|
|
1988
|
-
checkIssued(otherCert: X509CertificateInfo): string;
|
|
2043
|
+
checkEmail(email: string): string | undefined;
|
|
2044
|
+
checkHost(hostname: string): string | undefined;
|
|
2045
|
+
checkIP(ip: string): string | undefined;
|
|
2046
|
+
checkIssued(otherCert: X509CertificateInfo): string | undefined;
|
|
1989
2047
|
toPEM(): string;
|
|
1990
2048
|
toString(): string;
|
|
1991
2049
|
verify(issuerCert: X509CertificateInfo): boolean;
|
|
@@ -2445,7 +2503,7 @@ export abstract class tls$instance {
|
|
|
2445
2503
|
static DEFAULT_MIN_VERSION: string;
|
|
2446
2504
|
static DEFAULT_CIPHERS: string;
|
|
2447
2505
|
static readonly rootCertificates: string[];
|
|
2448
|
-
static checkServerIdentity(hostname: string, cert: PeerCertificate): Exception;
|
|
2506
|
+
static checkServerIdentity(hostname: string, cert: PeerCertificate): Exception | undefined;
|
|
2449
2507
|
static connect(options: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
|
|
2450
2508
|
static connect(port: int, options?: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
|
|
2451
2509
|
static connect(port: int, host?: string, options?: ConnectionOptions, secureConnectListener?: Action): TLSSocket;
|
|
@@ -37,7 +37,7 @@ export interface ClientRequest$instance extends EventEmitter {
|
|
|
37
37
|
readonly protocol: string;
|
|
38
38
|
abort(): void;
|
|
39
39
|
end(chunk?: string, encoding?: string, callback?: Action): Task;
|
|
40
|
-
getHeader(name: string): string;
|
|
40
|
+
getHeader(name: string): string | undefined;
|
|
41
41
|
getHeaderNames(): string[];
|
|
42
42
|
removeHeader(name: string): void;
|
|
43
43
|
setHeader(name: string, value: string): void;
|
|
@@ -60,7 +60,7 @@ export interface IncomingMessage$instance extends EventEmitter {
|
|
|
60
60
|
readonly method: string;
|
|
61
61
|
readonly statusCode: Nullable<System_Internal.Int32>;
|
|
62
62
|
readonly statusMessage: string;
|
|
63
|
-
readonly url: string;
|
|
63
|
+
readonly url: string | undefined;
|
|
64
64
|
destroy(): void;
|
|
65
65
|
onClose(callback: Action): void;
|
|
66
66
|
onData(callback: Action<System_Internal.String>): void;
|
|
@@ -78,8 +78,10 @@ export const IncomingMessage: {
|
|
|
78
78
|
export type IncomingMessage = IncomingMessage$instance;
|
|
79
79
|
|
|
80
80
|
export interface RequestOptions$instance {
|
|
81
|
-
agent: unknown;
|
|
82
|
-
|
|
81
|
+
get agent(): unknown | undefined;
|
|
82
|
+
set agent(value: unknown);
|
|
83
|
+
get auth(): string | undefined;
|
|
84
|
+
set auth(value: string);
|
|
83
85
|
headers: Dictionary<System_Internal.String, System_Internal.String>;
|
|
84
86
|
host: string;
|
|
85
87
|
hostname: string;
|
|
@@ -127,7 +129,7 @@ export interface ServerResponse$instance extends EventEmitter {
|
|
|
127
129
|
statusMessage: string;
|
|
128
130
|
end(chunk?: string, encoding?: string, callback?: Action): Task;
|
|
129
131
|
flushHeaders(): Task;
|
|
130
|
-
getHeader(name: string): string;
|
|
132
|
+
getHeader(name: string): string | undefined;
|
|
131
133
|
getHeaderNames(): string[];
|
|
132
134
|
getHeaders(): Dictionary<System_Internal.String, System_Internal.String>;
|
|
133
135
|
hasHeader(name: string): boolean;
|