bun-types 0.6.4 → 0.6.5
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/package.json +1 -1
- package/types.d.ts +32 -6
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for bun 0.6.
|
|
1
|
+
// Type definitions for bun 0.6.5
|
|
2
2
|
// Project: https://github.com/oven-sh/bun
|
|
3
3
|
// Definitions by: Jarred Sumner <https://github.com/Jarred-Sumner>
|
|
4
4
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
@@ -871,7 +871,13 @@ declare module "tls" {
|
|
|
871
871
|
* the well-known CAs curated by Mozilla. Mozilla's CAs are completely
|
|
872
872
|
* replaced when CAs are explicitly specified using this option.
|
|
873
873
|
*/
|
|
874
|
-
ca?:
|
|
874
|
+
ca?:
|
|
875
|
+
| string
|
|
876
|
+
| Buffer
|
|
877
|
+
| TypedArray
|
|
878
|
+
| BunFile
|
|
879
|
+
| Array<string | Buffer | BunFile>
|
|
880
|
+
| undefined;
|
|
875
881
|
/**
|
|
876
882
|
* Cert chains in PEM format. One cert chain should be provided per
|
|
877
883
|
* private key. Each cert chain should consist of the PEM formatted
|
|
@@ -883,7 +889,13 @@ declare module "tls" {
|
|
|
883
889
|
* intermediate certificates are not provided, the peer will not be
|
|
884
890
|
* able to validate the certificate, and the handshake will fail.
|
|
885
891
|
*/
|
|
886
|
-
cert?:
|
|
892
|
+
cert?:
|
|
893
|
+
| string
|
|
894
|
+
| Buffer
|
|
895
|
+
| TypedArray
|
|
896
|
+
| BunFile
|
|
897
|
+
| Array<string | Buffer | TypedArray | BunFile>
|
|
898
|
+
| undefined;
|
|
887
899
|
/**
|
|
888
900
|
* Colon-separated list of supported signature algorithms. The list
|
|
889
901
|
* can contain digest algorithms (SHA256, MD5 etc.), public key
|
|
@@ -941,7 +953,13 @@ declare module "tls" {
|
|
|
941
953
|
* object.passphrase is optional. Encrypted keys will be decrypted with
|
|
942
954
|
* object.passphrase if provided, or options.passphrase if it is not.
|
|
943
955
|
*/
|
|
944
|
-
key?:
|
|
956
|
+
key?:
|
|
957
|
+
| string
|
|
958
|
+
| Buffer
|
|
959
|
+
| BunFile
|
|
960
|
+
| TypedArray
|
|
961
|
+
| Array<string | Buffer | BunFile | TypedArray | KeyObject>
|
|
962
|
+
| undefined;
|
|
945
963
|
/**
|
|
946
964
|
* Name of an OpenSSL engine to get private key from. Should be used
|
|
947
965
|
* together with privateKeyIdentifier.
|
|
@@ -19206,6 +19224,10 @@ declare module "bun" {
|
|
|
19206
19224
|
* A UNIX timestamp indicating when the file was last modified.
|
|
19207
19225
|
*/
|
|
19208
19226
|
lastModified: number;
|
|
19227
|
+
/**
|
|
19228
|
+
* The name or path of the file, as specified in the constructor.
|
|
19229
|
+
*/
|
|
19230
|
+
name?: number;
|
|
19209
19231
|
}
|
|
19210
19232
|
|
|
19211
19233
|
/**
|
|
@@ -20207,7 +20229,7 @@ declare module "bun" {
|
|
|
20207
20229
|
*
|
|
20208
20230
|
* @deprecated since v0.6.3 - Use `key: Bun.file(path)` instead.
|
|
20209
20231
|
*/
|
|
20210
|
-
keyFile
|
|
20232
|
+
keyFile?: string;
|
|
20211
20233
|
/**
|
|
20212
20234
|
* File path to a TLS certificate
|
|
20213
20235
|
*
|
|
@@ -20215,7 +20237,7 @@ declare module "bun" {
|
|
|
20215
20237
|
*
|
|
20216
20238
|
* @deprecated since v0.6.3 - Use `cert: Bun.file(path)` instead.
|
|
20217
20239
|
*/
|
|
20218
|
-
certFile
|
|
20240
|
+
certFile?: string;
|
|
20219
20241
|
|
|
20220
20242
|
/**
|
|
20221
20243
|
* Passphrase for the TLS key
|
|
@@ -29894,6 +29916,7 @@ declare module "buffer" {
|
|
|
29894
29916
|
type: "Buffer";
|
|
29895
29917
|
data: number[];
|
|
29896
29918
|
};
|
|
29919
|
+
|
|
29897
29920
|
/**
|
|
29898
29921
|
* Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`.
|
|
29899
29922
|
*
|
|
@@ -34905,6 +34928,9 @@ interface UnderlyingSource<R = any> {
|
|
|
34905
34928
|
cancel?: UnderlyingSourceCancelCallback;
|
|
34906
34929
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
34907
34930
|
start?: UnderlyingSourceStartCallback<R>;
|
|
34931
|
+
/**
|
|
34932
|
+
* Mode "bytes" is not currently supported.
|
|
34933
|
+
*/
|
|
34908
34934
|
type?: undefined;
|
|
34909
34935
|
}
|
|
34910
34936
|
|