Skip to content

Commit 383427f

Browse files
committed
fix: the FileInfo type not matching the actual shape of the object
1 parent 32e21cf commit 383427f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99
### Breaking Change
1010

1111
### Fixed
12+
- Fixed the types on the `FileInfo` object. With 5.0.0, the properties were changed to be all in lowercase, to follow the libcurl struct more closely.
1213

1314
### Added
1415

@@ -38,6 +39,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3839
- Ubuntu >= v22.04.
3940
- Alpine >= 3.21
4041
- C++ compilers supporting c++20
42+
- The `FileInfo` object properties are now all in lowercase, to follow the libcurl struct more closely.
4143
- Errors thrown by the addon are now instances of one of the following classes:
4244
- `CurlEasyError`
4345
- `CurlMultiError`

lib/types/FileInfo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import { CurlFileType } from '../enum/CurlFileType'
1212
* @public
1313
*/
1414
export type FileInfo = {
15-
fileType: CurlFileType
16-
fileName: string
15+
filetype: CurlFileType
16+
filename: string
1717
time: Date
1818
perm: number
1919
uid: number
2020
gid: number
2121
size: number
22-
hardLinks: number
22+
hardlinks: number
2323
strings: {
2424
time: string
2525
perm: string

0 commit comments

Comments
 (0)