@tsonic/nodejs 0.4.6 → 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.
@@ -262,7 +262,7 @@ export const BrotliOptions: {
262
262
  export type BrotliOptions = BrotliOptions$instance;
263
263
 
264
264
  export interface Buffer$instance {
265
- item: byte;
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;
@@ -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
- dispose(): void;
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 alpnProtocols(): string[] | undefined;
453
- set alpnProtocols(value: string[]);
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
- dispose(): void;
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
- dispose(): void;
618
+ Dispose(): void;
619
619
  generateKeys(encoding?: string): string;
620
620
  generateKeys(): byte[];
621
621
  getGenerator(encoding?: string): string;
@@ -645,7 +645,7 @@ export interface DSAPrivateKeyObject$instance extends KeyObject {
645
645
  readonly asymmetricKeyType: string | undefined;
646
646
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
647
647
  readonly type: string;
648
- dispose(): void;
648
+ Dispose(): void;
649
649
  export(options?: unknown): unknown;
650
650
  }
651
651
 
@@ -661,7 +661,7 @@ export interface DSAPublicKeyObject$instance extends KeyObject {
661
661
  readonly asymmetricKeyType: string | undefined;
662
662
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
663
663
  readonly type: string;
664
- dispose(): void;
664
+ Dispose(): void;
665
665
  export(options?: unknown): unknown;
666
666
  }
667
667
 
@@ -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
- dispose(): void;
700
+ Dispose(): void;
701
701
  generateKeys(encoding?: string, format?: string): string;
702
702
  generateKeys(): byte[];
703
703
  getPrivateKey(encoding?: string): string;
@@ -722,7 +722,7 @@ export interface EdDSAPrivateKeyObject$instance extends KeyObject {
722
722
  readonly asymmetricKeyType: string | undefined;
723
723
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
724
724
  readonly type: string;
725
- dispose(): void;
725
+ Dispose(): void;
726
726
  export(options?: unknown): unknown;
727
727
  }
728
728
 
@@ -738,7 +738,7 @@ export interface EdDSAPublicKeyObject$instance extends KeyObject {
738
738
  readonly asymmetricKeyType: string | undefined;
739
739
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
740
740
  readonly type: string;
741
- dispose(): void;
741
+ Dispose(): void;
742
742
  export(options?: unknown): unknown;
743
743
  }
744
744
 
@@ -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
- dispose(): void;
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
- dispose(): void;
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
- dispose(): void;
864
+ Dispose(): void;
865
865
  hasRef(): boolean;
866
866
  ref(): Immediate;
867
867
  unref(): Immediate;
@@ -937,7 +937,7 @@ export interface KeyObject$instance {
937
937
  readonly asymmetricKeyType: string | undefined;
938
938
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
939
939
  readonly type: string;
940
- dispose(): void;
940
+ Dispose(): void;
941
941
  export(options?: unknown): unknown;
942
942
  }
943
943
 
@@ -1106,7 +1106,7 @@ export interface PathModule$instance {
1106
1106
 
1107
1107
  export const PathModule: {
1108
1108
  new(): PathModule;
1109
- readonly instance: PathModule;
1109
+ readonly Instance: PathModule;
1110
1110
  };
1111
1111
 
1112
1112
 
@@ -1223,7 +1223,7 @@ export interface PrivateKeyObject$instance extends KeyObject {
1223
1223
  readonly asymmetricKeyType: string | undefined;
1224
1224
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1225
1225
  readonly type: string;
1226
- dispose(): void;
1226
+ Dispose(): void;
1227
1227
  export(options?: unknown): unknown;
1228
1228
  export(format: string, type?: string, cipher?: string, passphrase?: string): string;
1229
1229
  }
@@ -1237,22 +1237,22 @@ export const PrivateKeyObject: {
1237
1237
  export type PrivateKeyObject = PrivateKeyObject$instance;
1238
1238
 
1239
1239
  export interface ProcessEnv$instance {
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;
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
 
@@ -1282,7 +1282,7 @@ export interface PublicKeyObject$instance extends KeyObject {
1282
1282
  readonly asymmetricKeyType: string | undefined;
1283
1283
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1284
1284
  readonly type: string;
1285
- dispose(): void;
1285
+ Dispose(): void;
1286
1286
  export(options?: unknown): unknown;
1287
1287
  export(format: string, type?: string): string;
1288
1288
  }
@@ -1412,7 +1412,7 @@ export interface SecretKeyObject$instance extends KeyObject {
1412
1412
  readonly asymmetricKeyType: string | undefined;
1413
1413
  readonly symmetricKeySize: Nullable<System_Internal.Int32>;
1414
1414
  readonly type: string;
1415
- dispose(): void;
1415
+ Dispose(): void;
1416
1416
  export(options?: unknown): unknown;
1417
1417
  export(): byte[];
1418
1418
  }
@@ -1426,14 +1426,14 @@ export const SecretKeyObject: {
1426
1426
  export type SecretKeyObject = SecretKeyObject$instance;
1427
1427
 
1428
1428
  export interface SecureContext$instance {
1429
- readonly caCertificates: X509Certificate2Collection | undefined;
1430
- readonly certificate: X509Certificate2 | undefined;
1429
+ readonly CACertificates: X509Certificate2Collection | undefined;
1430
+ readonly Certificate: X509Certificate2 | undefined;
1431
1431
  get context(): unknown | undefined;
1432
1432
  set context(value: unknown);
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;
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
- dispose(): void;
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;
@@ -1690,18 +1690,18 @@ export interface Stats$instance {
1690
1690
  atime: DateTime;
1691
1691
  birthtime: DateTime;
1692
1692
  ctime: DateTime;
1693
- isDirectory2: boolean;
1694
- isFile2: boolean;
1693
+ isDirectory: boolean;
1694
+ isFile: boolean;
1695
1695
  mode: int;
1696
1696
  mtime: DateTime;
1697
1697
  size: long;
1698
- isBlockDevice(): boolean;
1699
- isCharacterDevice(): boolean;
1700
- isDirectory(): boolean;
1701
- isFIFO(): boolean;
1702
- isFile(): boolean;
1703
- isSocket(): boolean;
1704
- isSymbolicLink(): boolean;
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
- dispose(): void;
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
- toString(): string;
1938
+ ToString(): string;
1939
1939
  }
1940
1940
 
1941
1941
 
@@ -1960,7 +1960,7 @@ export interface URLSearchParams$instance {
1960
1960
  keys(): IEnumerable__System_Collections_Generic<System_Internal.String>;
1961
1961
  set(name: string, value: string): void;
1962
1962
  sort(): void;
1963
- toString(): string;
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
- dispose(): void;
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
- toString(): string;
2047
+ ToString(): string;
2048
2048
  verify(issuerCert: X509CertificateInfo): boolean;
2049
2049
  }
2050
2050
 
@@ -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 parseCertificate(certificate: byte[]): X509CertificateInfo;
2536
- static parseCertificate(certificate: string): X509CertificateInfo;
2535
+ static ParseCertificate(certificate: byte[]): X509CertificateInfo;
2536
+ static ParseCertificate(certificate: string): X509CertificateInfo;
2537
2537
  }
2538
2538
 
2539
2539