@tsonic/nodejs 0.4.5 → 10.0.1
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.
- package/README.md +12 -4
- package/index/bindings.json +14811 -27320
- package/index/internal/index.d.ts +122 -122
- package/nodejs.Http/bindings.json +534 -1585
- package/nodejs.Http/internal/index.d.ts +2 -2
- package/package.json +5 -4
- package/__build/scripts/generate.sh +0 -106
- package/__build/scripts/verify-library-mode.sh +0 -90
- package/index/internal/metadata.json +0 -20663
- package/nodejs.Http/internal/metadata.json +0 -1365
- package/tsconfig.json +0 -18
|
@@ -40,7 +40,7 @@ export const AddressInfo: {
|
|
|
40
40
|
export type AddressInfo = AddressInfo$instance;
|
|
41
41
|
|
|
42
42
|
export interface AnyAaaaRecord$instance extends RecordWithTtl {
|
|
43
|
-
readonly
|
|
43
|
+
readonly type: string;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
|
|
@@ -52,7 +52,7 @@ export const AnyAaaaRecord: {
|
|
|
52
52
|
export type AnyAaaaRecord = AnyAaaaRecord$instance;
|
|
53
53
|
|
|
54
54
|
export interface AnyARecord$instance extends RecordWithTtl {
|
|
55
|
-
readonly
|
|
55
|
+
readonly type: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
|
|
@@ -64,7 +64,7 @@ export const AnyARecord: {
|
|
|
64
64
|
export type AnyARecord = AnyARecord$instance;
|
|
65
65
|
|
|
66
66
|
export interface AnyCaaRecord$instance extends CaaRecord {
|
|
67
|
-
readonly
|
|
67
|
+
readonly type: string;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
|
|
@@ -76,7 +76,7 @@ export const AnyCaaRecord: {
|
|
|
76
76
|
export type AnyCaaRecord = AnyCaaRecord$instance;
|
|
77
77
|
|
|
78
78
|
export interface AnyCnameRecord$instance {
|
|
79
|
-
readonly
|
|
79
|
+
readonly type: string;
|
|
80
80
|
value: string;
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -89,7 +89,7 @@ export const AnyCnameRecord: {
|
|
|
89
89
|
export type AnyCnameRecord = AnyCnameRecord$instance;
|
|
90
90
|
|
|
91
91
|
export interface AnyMxRecord$instance extends MxRecord {
|
|
92
|
-
readonly
|
|
92
|
+
readonly type: string;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
|
|
@@ -101,7 +101,7 @@ export const AnyMxRecord: {
|
|
|
101
101
|
export type AnyMxRecord = AnyMxRecord$instance;
|
|
102
102
|
|
|
103
103
|
export interface AnyNaptrRecord$instance extends NaptrRecord {
|
|
104
|
-
readonly
|
|
104
|
+
readonly type: string;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
|
|
@@ -113,7 +113,7 @@ export const AnyNaptrRecord: {
|
|
|
113
113
|
export type AnyNaptrRecord = AnyNaptrRecord$instance;
|
|
114
114
|
|
|
115
115
|
export interface AnyNsRecord$instance {
|
|
116
|
-
readonly
|
|
116
|
+
readonly type: string;
|
|
117
117
|
value: string;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -126,7 +126,7 @@ export const AnyNsRecord: {
|
|
|
126
126
|
export type AnyNsRecord = AnyNsRecord$instance;
|
|
127
127
|
|
|
128
128
|
export interface AnyPtrRecord$instance {
|
|
129
|
-
readonly
|
|
129
|
+
readonly type: string;
|
|
130
130
|
value: string;
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -139,7 +139,7 @@ export const AnyPtrRecord: {
|
|
|
139
139
|
export type AnyPtrRecord = AnyPtrRecord$instance;
|
|
140
140
|
|
|
141
141
|
export interface AnyRecord$instance {
|
|
142
|
-
readonly
|
|
142
|
+
readonly type: string;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
|
|
@@ -150,7 +150,7 @@ export const AnyRecord: {
|
|
|
150
150
|
export type AnyRecord = AnyRecord$instance;
|
|
151
151
|
|
|
152
152
|
export interface AnySoaRecord$instance extends SoaRecord {
|
|
153
|
-
readonly
|
|
153
|
+
readonly type: string;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
|
|
@@ -162,7 +162,7 @@ export const AnySoaRecord: {
|
|
|
162
162
|
export type AnySoaRecord = AnySoaRecord$instance;
|
|
163
163
|
|
|
164
164
|
export interface AnySrvRecord$instance extends SrvRecord {
|
|
165
|
-
readonly
|
|
165
|
+
readonly type: string;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
|
|
@@ -174,7 +174,7 @@ export const AnySrvRecord: {
|
|
|
174
174
|
export type AnySrvRecord = AnySrvRecord$instance;
|
|
175
175
|
|
|
176
176
|
export interface AnyTlsaRecord$instance extends TlsaRecord {
|
|
177
|
-
readonly
|
|
177
|
+
readonly type: string;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
|
|
@@ -187,7 +187,7 @@ export type AnyTlsaRecord = AnyTlsaRecord$instance;
|
|
|
187
187
|
|
|
188
188
|
export interface AnyTxtRecord$instance {
|
|
189
189
|
entries: string[];
|
|
190
|
-
readonly
|
|
190
|
+
readonly type: string;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
|
|
@@ -232,10 +232,10 @@ export const BindOptions: {
|
|
|
232
232
|
export type BindOptions = BindOptions$instance;
|
|
233
233
|
|
|
234
234
|
export interface BlockList$instance {
|
|
235
|
-
addAddress(address: string,
|
|
236
|
-
addRange(start: string, end: string,
|
|
237
|
-
addSubnet(network: string, prefix: int,
|
|
238
|
-
check(address: string,
|
|
235
|
+
addAddress(address: string, type?: string): void;
|
|
236
|
+
addRange(start: string, end: string, type?: string): void;
|
|
237
|
+
addSubnet(network: string, prefix: int, type?: string): void;
|
|
238
|
+
check(address: string, type?: string): boolean;
|
|
239
239
|
getRules(): string[];
|
|
240
240
|
}
|
|
241
241
|
|
|
@@ -262,7 +262,7 @@ export const BrotliOptions: {
|
|
|
262
262
|
export type BrotliOptions = BrotliOptions$instance;
|
|
263
263
|
|
|
264
264
|
export interface Buffer$instance {
|
|
265
|
-
|
|
265
|
+
Item: byte;
|
|
266
266
|
readonly length: int;
|
|
267
267
|
compare(target: Buffer, targetStart?: Nullable<System_Internal.Int32>, targetEnd?: Nullable<System_Internal.Int32>, sourceStart?: Nullable<System_Internal.Int32>, sourceEnd?: Nullable<System_Internal.Int32>): int;
|
|
268
268
|
copy(target: Buffer, targetStart?: int, sourceStart?: Nullable<System_Internal.Int32>, sourceEnd?: Nullable<System_Internal.Int32>): int;
|
|
@@ -354,13 +354,13 @@ export const Buffer: {
|
|
|
354
354
|
byteLength(str: string, encoding?: string): int;
|
|
355
355
|
compare(buf1: Buffer, buf2: Buffer): int;
|
|
356
356
|
concat(list: Buffer[], totalLength?: Nullable<System_Internal.Int32>): Buffer;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
357
|
+
from(buffer: Buffer): Buffer;
|
|
358
|
+
from(array: byte[]): Buffer;
|
|
359
|
+
from(array: int[]): Buffer;
|
|
360
|
+
from(str: string, encoding?: string): Buffer;
|
|
361
361
|
isBuffer(obj: unknown): boolean;
|
|
362
362
|
isEncoding(encoding: string): boolean;
|
|
363
|
-
|
|
363
|
+
of(...items: int[]): Buffer;
|
|
364
364
|
};
|
|
365
365
|
|
|
366
366
|
|
|
@@ -416,7 +416,7 @@ export const ChildProcess: {
|
|
|
416
416
|
export type ChildProcess = ChildProcess$instance;
|
|
417
417
|
|
|
418
418
|
export interface Cipher$instance extends Transform {
|
|
419
|
-
|
|
419
|
+
Dispose(): void;
|
|
420
420
|
final(outputEncoding?: string): string;
|
|
421
421
|
final(): byte[];
|
|
422
422
|
getAuthTag(): byte[];
|
|
@@ -449,8 +449,8 @@ export const CipherNameAndProtocol: {
|
|
|
449
449
|
export type CipherNameAndProtocol = CipherNameAndProtocol$instance;
|
|
450
450
|
|
|
451
451
|
export interface CommonConnectionOptions$instance {
|
|
452
|
-
get
|
|
453
|
-
set
|
|
452
|
+
get ALPNProtocols(): string[] | undefined;
|
|
453
|
+
set ALPNProtocols(value: string[]);
|
|
454
454
|
enableTrace: Nullable<System_Internal.Boolean>;
|
|
455
455
|
rejectUnauthorized: Nullable<System_Internal.Boolean>;
|
|
456
456
|
requestCert: Nullable<System_Internal.Boolean>;
|
|
@@ -534,7 +534,7 @@ export const CursorPosition: {
|
|
|
534
534
|
export type CursorPosition = CursorPosition$instance;
|
|
535
535
|
|
|
536
536
|
export interface Decipher$instance extends Transform {
|
|
537
|
-
|
|
537
|
+
Dispose(): void;
|
|
538
538
|
final(outputEncoding?: string): string;
|
|
539
539
|
final(): byte[];
|
|
540
540
|
setAAD(buffer: byte[]): void;
|
|
@@ -615,7 +615,7 @@ export interface DiffieHellman$instance {
|
|
|
615
615
|
computeSecret(otherPublicKey: string, inputEncoding?: string, outputEncoding?: string): string;
|
|
616
616
|
computeSecret(otherPublicKey: byte[], outputEncoding?: string): string;
|
|
617
617
|
computeSecret(otherPublicKey: byte[]): byte[];
|
|
618
|
-
|
|
618
|
+
Dispose(): void;
|
|
619
619
|
generateKeys(encoding?: string): string;
|
|
620
620
|
generateKeys(): byte[];
|
|
621
621
|
getGenerator(encoding?: string): string;
|
|
@@ -644,9 +644,9 @@ export type DiffieHellman = DiffieHellman$instance;
|
|
|
644
644
|
export interface DSAPrivateKeyObject$instance extends KeyObject {
|
|
645
645
|
readonly asymmetricKeyType: string | undefined;
|
|
646
646
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
647
|
-
readonly
|
|
648
|
-
|
|
649
|
-
|
|
647
|
+
readonly type: string;
|
|
648
|
+
Dispose(): void;
|
|
649
|
+
export(options?: unknown): unknown;
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
|
|
@@ -660,9 +660,9 @@ export type DSAPrivateKeyObject = DSAPrivateKeyObject$instance;
|
|
|
660
660
|
export interface DSAPublicKeyObject$instance extends KeyObject {
|
|
661
661
|
readonly asymmetricKeyType: string | undefined;
|
|
662
662
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
663
|
-
readonly
|
|
664
|
-
|
|
665
|
-
|
|
663
|
+
readonly type: string;
|
|
664
|
+
Dispose(): void;
|
|
665
|
+
export(options?: unknown): unknown;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
|
|
@@ -697,7 +697,7 @@ export interface ECDH$instance {
|
|
|
697
697
|
computeSecret(otherPublicKey: string, inputEncoding?: string, outputEncoding?: string): string;
|
|
698
698
|
computeSecret(otherPublicKey: byte[], outputEncoding?: string): string;
|
|
699
699
|
computeSecret(otherPublicKey: byte[]): byte[];
|
|
700
|
-
|
|
700
|
+
Dispose(): void;
|
|
701
701
|
generateKeys(encoding?: string, format?: string): string;
|
|
702
702
|
generateKeys(): byte[];
|
|
703
703
|
getPrivateKey(encoding?: string): string;
|
|
@@ -721,9 +721,9 @@ export type ECDH = ECDH$instance;
|
|
|
721
721
|
export interface EdDSAPrivateKeyObject$instance extends KeyObject {
|
|
722
722
|
readonly asymmetricKeyType: string | undefined;
|
|
723
723
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
724
|
-
readonly
|
|
725
|
-
|
|
726
|
-
|
|
724
|
+
readonly type: string;
|
|
725
|
+
Dispose(): void;
|
|
726
|
+
export(options?: unknown): unknown;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
|
|
@@ -737,9 +737,9 @@ export type EdDSAPrivateKeyObject = EdDSAPrivateKeyObject$instance;
|
|
|
737
737
|
export interface EdDSAPublicKeyObject$instance extends KeyObject {
|
|
738
738
|
readonly asymmetricKeyType: string | undefined;
|
|
739
739
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
740
|
-
readonly
|
|
741
|
-
|
|
742
|
-
|
|
740
|
+
readonly type: string;
|
|
741
|
+
Dispose(): void;
|
|
742
|
+
export(options?: unknown): unknown;
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
|
|
@@ -753,7 +753,7 @@ export type EdDSAPublicKeyObject = EdDSAPublicKeyObject$instance;
|
|
|
753
753
|
export interface EphemeralKeyInfo$instance {
|
|
754
754
|
name: string;
|
|
755
755
|
size: int;
|
|
756
|
-
|
|
756
|
+
type: string;
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
|
|
@@ -831,7 +831,7 @@ export interface Hash$instance extends Transform {
|
|
|
831
831
|
digest(encoding: string): string;
|
|
832
832
|
digest(): byte[];
|
|
833
833
|
digest(outputLength: int): byte[];
|
|
834
|
-
|
|
834
|
+
Dispose(): void;
|
|
835
835
|
update(data: string, inputEncoding?: string): Hash;
|
|
836
836
|
update(data: byte[]): Hash;
|
|
837
837
|
}
|
|
@@ -847,7 +847,7 @@ export type Hash = Hash$instance;
|
|
|
847
847
|
export interface Hmac$instance extends Transform {
|
|
848
848
|
digest(encoding?: string): string;
|
|
849
849
|
digest(): byte[];
|
|
850
|
-
|
|
850
|
+
Dispose(): void;
|
|
851
851
|
update(data: string, inputEncoding?: string): Hmac;
|
|
852
852
|
update(data: byte[]): Hmac;
|
|
853
853
|
}
|
|
@@ -861,7 +861,7 @@ export const Hmac: {
|
|
|
861
861
|
export type Hmac = Hmac$instance;
|
|
862
862
|
|
|
863
863
|
export interface Immediate$instance {
|
|
864
|
-
|
|
864
|
+
Dispose(): void;
|
|
865
865
|
hasRef(): boolean;
|
|
866
866
|
ref(): Immediate;
|
|
867
867
|
unref(): Immediate;
|
|
@@ -936,9 +936,9 @@ export type IpcSocketConnectOpts = IpcSocketConnectOpts$instance;
|
|
|
936
936
|
export interface KeyObject$instance {
|
|
937
937
|
readonly asymmetricKeyType: string | undefined;
|
|
938
938
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
939
|
-
readonly
|
|
940
|
-
|
|
941
|
-
|
|
939
|
+
readonly type: string;
|
|
940
|
+
Dispose(): void;
|
|
941
|
+
export(options?: unknown): unknown;
|
|
942
942
|
}
|
|
943
943
|
|
|
944
944
|
|
|
@@ -1098,7 +1098,7 @@ export interface PathModule$instance {
|
|
|
1098
1098
|
matchesGlob(path: string, pattern: string): boolean;
|
|
1099
1099
|
normalize(path: string): string;
|
|
1100
1100
|
parse(path: string): ParsedPath;
|
|
1101
|
-
relative(
|
|
1101
|
+
relative(from: string, to: string): string;
|
|
1102
1102
|
resolve(...paths: string[]): string;
|
|
1103
1103
|
toNamespacedPath(path: string): string;
|
|
1104
1104
|
}
|
|
@@ -1106,7 +1106,7 @@ export interface PathModule$instance {
|
|
|
1106
1106
|
|
|
1107
1107
|
export const PathModule: {
|
|
1108
1108
|
new(): PathModule;
|
|
1109
|
-
readonly
|
|
1109
|
+
readonly Instance: PathModule;
|
|
1110
1110
|
};
|
|
1111
1111
|
|
|
1112
1112
|
|
|
@@ -1193,8 +1193,8 @@ export type PerformanceObserver = PerformanceObserver$instance;
|
|
|
1193
1193
|
|
|
1194
1194
|
export interface PerformanceObserverEntryList$instance {
|
|
1195
1195
|
getEntries(): PerformanceEntry[];
|
|
1196
|
-
getEntriesByName(name: string,
|
|
1197
|
-
getEntriesByType(
|
|
1196
|
+
getEntriesByName(name: string, type?: string): PerformanceEntry[];
|
|
1197
|
+
getEntriesByType(type: string): PerformanceEntry[];
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
1200
|
|
|
@@ -1222,10 +1222,10 @@ export type PerformanceObserverOptions = PerformanceObserverOptions$instance;
|
|
|
1222
1222
|
export interface PrivateKeyObject$instance extends KeyObject {
|
|
1223
1223
|
readonly asymmetricKeyType: string | undefined;
|
|
1224
1224
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1225
|
-
readonly
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1225
|
+
readonly type: string;
|
|
1226
|
+
Dispose(): void;
|
|
1227
|
+
export(options?: unknown): unknown;
|
|
1228
|
+
export(format: string, type?: string, cipher?: string, passphrase?: string): string;
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
|
|
@@ -1237,22 +1237,22 @@ export const PrivateKeyObject: {
|
|
|
1237
1237
|
export type PrivateKeyObject = PrivateKeyObject$instance;
|
|
1238
1238
|
|
|
1239
1239
|
export interface ProcessEnv$instance {
|
|
1240
|
-
readonly
|
|
1241
|
-
readonly
|
|
1242
|
-
get
|
|
1243
|
-
set
|
|
1244
|
-
readonly
|
|
1245
|
-
readonly
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1240
|
+
readonly Count: int;
|
|
1241
|
+
readonly IsReadOnly: boolean;
|
|
1242
|
+
get Item(): string | undefined;
|
|
1243
|
+
set Item(value: string);
|
|
1244
|
+
readonly Keys: ICollection<System_Internal.String>;
|
|
1245
|
+
readonly Values: ICollection<string | undefined>;
|
|
1246
|
+
Add(key: string, value: string): void;
|
|
1247
|
+
Add(item: KeyValuePair<System_Internal.String, System_Internal.String>): void;
|
|
1248
|
+
Clear(): void;
|
|
1249
|
+
Contains(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
|
|
1250
|
+
ContainsKey(key: string): boolean;
|
|
1251
|
+
CopyTo(array: KeyValuePair<System_Internal.String, System_Internal.String>[], arrayIndex: int): void;
|
|
1252
|
+
GetEnumerator(): IEnumerator<KeyValuePair<System_Internal.String, System_Internal.String>>;
|
|
1253
|
+
Remove(key: string): boolean;
|
|
1254
|
+
Remove(item: KeyValuePair<System_Internal.String, System_Internal.String>): boolean;
|
|
1255
|
+
TryGetValue(key: string, value: string): boolean;
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
1258
|
|
|
@@ -1281,10 +1281,10 @@ export type ProcessVersions = ProcessVersions$instance;
|
|
|
1281
1281
|
export interface PublicKeyObject$instance extends KeyObject {
|
|
1282
1282
|
readonly asymmetricKeyType: string | undefined;
|
|
1283
1283
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1284
|
-
readonly
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1284
|
+
readonly type: string;
|
|
1285
|
+
Dispose(): void;
|
|
1286
|
+
export(options?: unknown): unknown;
|
|
1287
|
+
export(format: string, type?: string): string;
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
1290
|
|
|
@@ -1411,10 +1411,10 @@ export type ResolverOptions = ResolverOptions$instance;
|
|
|
1411
1411
|
export interface SecretKeyObject$instance extends KeyObject {
|
|
1412
1412
|
readonly asymmetricKeyType: string | undefined;
|
|
1413
1413
|
readonly symmetricKeySize: Nullable<System_Internal.Int32>;
|
|
1414
|
-
readonly
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1414
|
+
readonly type: string;
|
|
1415
|
+
Dispose(): void;
|
|
1416
|
+
export(options?: unknown): unknown;
|
|
1417
|
+
export(): byte[];
|
|
1418
1418
|
}
|
|
1419
1419
|
|
|
1420
1420
|
|
|
@@ -1426,14 +1426,14 @@ export const SecretKeyObject: {
|
|
|
1426
1426
|
export type SecretKeyObject = SecretKeyObject$instance;
|
|
1427
1427
|
|
|
1428
1428
|
export interface SecureContext$instance {
|
|
1429
|
-
readonly
|
|
1430
|
-
readonly
|
|
1429
|
+
readonly CACertificates: X509Certificate2Collection | undefined;
|
|
1430
|
+
readonly Certificate: X509Certificate2 | undefined;
|
|
1431
1431
|
get context(): unknown | undefined;
|
|
1432
1432
|
set context(value: unknown);
|
|
1433
|
-
readonly
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1433
|
+
readonly Protocols: SslProtocols;
|
|
1434
|
+
LoadCACertificates(ca: unknown): void;
|
|
1435
|
+
LoadCertificate(cert: unknown, key: unknown, passphrase: string): void;
|
|
1436
|
+
SetProtocols(minVersion: string, maxVersion: string): void;
|
|
1437
1437
|
}
|
|
1438
1438
|
|
|
1439
1439
|
|
|
@@ -1510,7 +1510,7 @@ export const ServerOpts: {
|
|
|
1510
1510
|
export type ServerOpts = ServerOpts$instance;
|
|
1511
1511
|
|
|
1512
1512
|
export interface Sign$instance extends Transform {
|
|
1513
|
-
|
|
1513
|
+
Dispose(): void;
|
|
1514
1514
|
sign(privateKey: string, outputEncoding?: string): string;
|
|
1515
1515
|
sign(privateKey: string): byte[];
|
|
1516
1516
|
sign(privateKey: unknown, outputEncoding?: string): string;
|
|
@@ -1640,7 +1640,7 @@ export interface SocketOptions$instance {
|
|
|
1640
1640
|
reuseAddr: boolean;
|
|
1641
1641
|
reusePort: boolean;
|
|
1642
1642
|
sendBufferSize: Nullable<System_Internal.Int32>;
|
|
1643
|
-
|
|
1643
|
+
type: string;
|
|
1644
1644
|
}
|
|
1645
1645
|
|
|
1646
1646
|
|
|
@@ -1690,18 +1690,18 @@ export interface Stats$instance {
|
|
|
1690
1690
|
atime: DateTime;
|
|
1691
1691
|
birthtime: DateTime;
|
|
1692
1692
|
ctime: DateTime;
|
|
1693
|
-
|
|
1694
|
-
|
|
1693
|
+
isDirectory: boolean;
|
|
1694
|
+
isFile: boolean;
|
|
1695
1695
|
mode: int;
|
|
1696
1696
|
mtime: DateTime;
|
|
1697
1697
|
size: long;
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1698
|
+
IsBlockDevice(): boolean;
|
|
1699
|
+
IsCharacterDevice(): boolean;
|
|
1700
|
+
IsDirectory(): boolean;
|
|
1701
|
+
IsFIFO(): boolean;
|
|
1702
|
+
IsFile(): boolean;
|
|
1703
|
+
IsSocket(): boolean;
|
|
1704
|
+
IsSymbolicLink(): boolean;
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
1707
|
|
|
@@ -1761,7 +1761,7 @@ export type TcpSocketConnectOpts = TcpSocketConnectOpts$instance;
|
|
|
1761
1761
|
|
|
1762
1762
|
export interface Timeout$instance {
|
|
1763
1763
|
close(): void;
|
|
1764
|
-
|
|
1764
|
+
Dispose(): void;
|
|
1765
1765
|
hasRef(): boolean;
|
|
1766
1766
|
ref(): Timeout;
|
|
1767
1767
|
refresh(): Timeout;
|
|
@@ -1935,7 +1935,7 @@ export interface URL$instance {
|
|
|
1935
1935
|
readonly searchParams: URLSearchParams;
|
|
1936
1936
|
username: string;
|
|
1937
1937
|
toJSON(): string;
|
|
1938
|
-
|
|
1938
|
+
ToString(): string;
|
|
1939
1939
|
}
|
|
1940
1940
|
|
|
1941
1941
|
|
|
@@ -1951,16 +1951,16 @@ export type URL = URL$instance;
|
|
|
1951
1951
|
export interface URLSearchParams$instance {
|
|
1952
1952
|
readonly size: int;
|
|
1953
1953
|
append(name: string, value: string): void;
|
|
1954
|
-
|
|
1954
|
+
delete(name: string, value?: string): void;
|
|
1955
1955
|
entries(): IEnumerable__System_Collections_Generic<KeyValuePair<System_Internal.String, System_Internal.String>>;
|
|
1956
1956
|
forEach(callback: Action<System_Internal.String, System_Internal.String>): void;
|
|
1957
|
-
|
|
1957
|
+
get(name: string): string | undefined;
|
|
1958
1958
|
getAll(name: string): string[];
|
|
1959
1959
|
has(name: string, value?: string): boolean;
|
|
1960
1960
|
keys(): IEnumerable__System_Collections_Generic<System_Internal.String>;
|
|
1961
|
-
|
|
1961
|
+
set(name: string, value: string): void;
|
|
1962
1962
|
sort(): void;
|
|
1963
|
-
|
|
1963
|
+
ToString(): string;
|
|
1964
1964
|
values(): IEnumerable__System_Collections_Generic<System_Internal.String>;
|
|
1965
1965
|
}
|
|
1966
1966
|
|
|
@@ -1990,7 +1990,7 @@ export const UserInfo: {
|
|
|
1990
1990
|
export type UserInfo = UserInfo$instance;
|
|
1991
1991
|
|
|
1992
1992
|
export interface Verify$instance extends Transform {
|
|
1993
|
-
|
|
1993
|
+
Dispose(): void;
|
|
1994
1994
|
update(data: string, inputEncoding?: string): Verify;
|
|
1995
1995
|
update(data: byte[]): Verify;
|
|
1996
1996
|
verify(publicKey: string, signature: string, signatureEncoding?: string): boolean;
|
|
@@ -2044,7 +2044,7 @@ export interface X509CertificateInfo$instance {
|
|
|
2044
2044
|
checkIP(ip: string): string | undefined;
|
|
2045
2045
|
checkIssued(otherCert: X509CertificateInfo): string | undefined;
|
|
2046
2046
|
toPEM(): string;
|
|
2047
|
-
|
|
2047
|
+
ToString(): string;
|
|
2048
2048
|
verify(issuerCert: X509CertificateInfo): boolean;
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
@@ -2076,12 +2076,12 @@ export type ZlibOptions = ZlibOptions$instance;
|
|
|
2076
2076
|
export abstract class assert$instance {
|
|
2077
2077
|
static deepEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2078
2078
|
static deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2079
|
-
static doesNotMatch(
|
|
2079
|
+
static doesNotMatch(string: string, regexp: Regex, message?: string): void;
|
|
2080
2080
|
static doesNotThrow(fn: Action, message?: string): void;
|
|
2081
2081
|
static equal(actual: unknown, expected: unknown, message?: string): void;
|
|
2082
2082
|
static fail(message?: string): void;
|
|
2083
2083
|
static ifError(value: unknown): void;
|
|
2084
|
-
static match(
|
|
2084
|
+
static match(string: string, regexp: Regex, message?: string): void;
|
|
2085
2085
|
static notDeepEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2086
2086
|
static notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
2087
2087
|
static notEqual(actual: unknown, expected: unknown, message?: string): void;
|
|
@@ -2173,10 +2173,10 @@ export abstract class crypto$instance {
|
|
|
2173
2173
|
static createSecretKey(key: string, encoding?: string): KeyObject;
|
|
2174
2174
|
static createSign(algorithm: string): Sign;
|
|
2175
2175
|
static createVerify(algorithm: string): Verify;
|
|
2176
|
-
static generateKey(
|
|
2177
|
-
static generateKey(
|
|
2178
|
-
static generateKeyPair(
|
|
2179
|
-
static generateKeyPairSync(
|
|
2176
|
+
static generateKey(type: string, options: unknown, callback: Action<Exception, KeyObject>): void;
|
|
2177
|
+
static generateKey(type: string, options: unknown): KeyObject;
|
|
2178
|
+
static generateKeyPair(type: string, options: unknown, callback: Action<Exception, unknown, unknown>): void;
|
|
2179
|
+
static generateKeyPairSync(type: string, options?: unknown): ValueTuple<KeyObject, KeyObject>;
|
|
2180
2180
|
static getCiphers(): string[];
|
|
2181
2181
|
static getCurves(): string[];
|
|
2182
2182
|
static getDefaultCipherList(): string;
|
|
@@ -2221,7 +2221,7 @@ export type crypto = crypto$instance;
|
|
|
2221
2221
|
|
|
2222
2222
|
export abstract class dgram$instance {
|
|
2223
2223
|
static createSocket(options: SocketOptions, callback?: Action<byte[], RemoteInfo>): DgramSocket;
|
|
2224
|
-
static createSocket(
|
|
2224
|
+
static createSocket(type: string, callback?: Action<byte[], RemoteInfo>): DgramSocket;
|
|
2225
2225
|
}
|
|
2226
2226
|
|
|
2227
2227
|
|
|
@@ -2327,8 +2327,8 @@ export abstract class fs$instance {
|
|
|
2327
2327
|
static rmSync(path: string, recursive?: boolean): void;
|
|
2328
2328
|
static stat(path: string): Task<Stats>;
|
|
2329
2329
|
static statSync(path: string): Stats;
|
|
2330
|
-
static symlink(target: string, path: string,
|
|
2331
|
-
static symlinkSync(target: string, path: string,
|
|
2330
|
+
static symlink(target: string, path: string, type?: string): Task;
|
|
2331
|
+
static symlinkSync(target: string, path: string, type?: string): void;
|
|
2332
2332
|
static truncate(path: string, len?: long): Task;
|
|
2333
2333
|
static truncateSync(path: string, len?: long): void;
|
|
2334
2334
|
static unlink(path: string): Task;
|
|
@@ -2382,7 +2382,7 @@ export abstract class os$instance {
|
|
|
2382
2382
|
static release(): string;
|
|
2383
2383
|
static tmpdir(): string;
|
|
2384
2384
|
static totalmem(): long;
|
|
2385
|
-
static
|
|
2385
|
+
static type(): string;
|
|
2386
2386
|
static uptime(): long;
|
|
2387
2387
|
static userInfo(): UserInfo;
|
|
2388
2388
|
}
|
|
@@ -2404,7 +2404,7 @@ export abstract class path$instance {
|
|
|
2404
2404
|
static matchesGlob(path: string, pattern: string): boolean;
|
|
2405
2405
|
static normalize(path: string): string;
|
|
2406
2406
|
static parse(path: string): ParsedPath;
|
|
2407
|
-
static relative(
|
|
2407
|
+
static relative(from: string, to: string): string;
|
|
2408
2408
|
static resolve(...paths: string[]): string;
|
|
2409
2409
|
static toNamespacedPath(path: string): string;
|
|
2410
2410
|
}
|
|
@@ -2416,8 +2416,8 @@ export abstract class performance$instance {
|
|
|
2416
2416
|
static clearMarks(name?: string): void;
|
|
2417
2417
|
static clearMeasures(name?: string): void;
|
|
2418
2418
|
static getEntries(): PerformanceEntry[];
|
|
2419
|
-
static getEntriesByName(name: string,
|
|
2420
|
-
static getEntriesByType(
|
|
2419
|
+
static getEntriesByName(name: string, type?: string): PerformanceEntry[];
|
|
2420
|
+
static getEntriesByType(type: string): PerformanceEntry[];
|
|
2421
2421
|
static mark(name: string, options?: MarkOptions): PerformanceMark;
|
|
2422
2422
|
static measure(name: string, startOrOptions?: unknown, endMark?: string): PerformanceMeasure;
|
|
2423
2423
|
static now(): double;
|
|
@@ -2509,7 +2509,7 @@ export abstract class tls$instance {
|
|
|
2509
2509
|
static createSecureContext(options?: SecureContextOptions): SecureContext;
|
|
2510
2510
|
static createServer(options: TlsOptions, secureConnectionListener?: Action<TLSSocket>): TLSServer;
|
|
2511
2511
|
static createServer(secureConnectionListener?: Action<TLSSocket>): TLSServer;
|
|
2512
|
-
static getCACertificates(
|
|
2512
|
+
static getCACertificates(type?: string): string[];
|
|
2513
2513
|
static getCiphers(): string[];
|
|
2514
2514
|
static setDefaultCACertificates(certs: string[]): void;
|
|
2515
2515
|
}
|
|
@@ -2522,7 +2522,7 @@ export abstract class util$instance {
|
|
|
2522
2522
|
static deprecate<TResult>(fn: Func<TResult>, msg: string, code?: string): Func<TResult>;
|
|
2523
2523
|
static deprecate(action: Action, msg: string, code?: string): Action;
|
|
2524
2524
|
static format(format: unknown, ...args: unknown[]): string;
|
|
2525
|
-
static inherits(
|
|
2525
|
+
static inherits(constructor: unknown, superConstructor: unknown): void;
|
|
2526
2526
|
static inspect(obj: unknown): string;
|
|
2527
2527
|
static isArray(obj: unknown): boolean;
|
|
2528
2528
|
static isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
|
|
@@ -2532,8 +2532,8 @@ export abstract class util$instance {
|
|
|
2532
2532
|
export type util = util$instance;
|
|
2533
2533
|
|
|
2534
2534
|
export abstract class X509CertificateExtensions$instance {
|
|
2535
|
-
static
|
|
2536
|
-
static
|
|
2535
|
+
static ParseCertificate(certificate: byte[]): X509CertificateInfo;
|
|
2536
|
+
static ParseCertificate(certificate: string): X509CertificateInfo;
|
|
2537
2537
|
}
|
|
2538
2538
|
|
|
2539
2539
|
|