Skip to content

Commit 6d80f9f

Browse files
committed
Make WebFileEntry fields public
1 parent 58c61f6 commit 6d80f9f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alttiri/vue-file-input",
3-
"version": "1.5.4-20240819",
3+
"version": "1.6.0-20240819",
44
"type": "module",
55
"description": "Vue.js file input with Drag and Drop support.",
66
"homepage": "https://github.com/alttiri/vue-file-input",

src/components/WebFileEntry.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ type WebFileEntryConstructorInit = {
1212
};
1313

1414
export class WebFileEntry {
15-
private readonly file: FileWithPath | File;
16-
private readonly type: WebFileEntryType;
17-
private readonly parent: WebFileEntry | undefined;
15+
public readonly file: FileWithPath | File;
16+
public readonly type: WebFileEntryType;
17+
public readonly parent: WebFileEntry | undefined;
18+
public children: WebFileEntry[] | undefined;
1819
private readonly _name: string | undefined;
19-
private children: WebFileEntry[] | undefined;
20-
private _contentSize: number | undefined;
20+
private _contentSize: number | undefined;
2121
constructor({file, type, name, parent}: WebFileEntryConstructorInit) {
2222
this.file = file;
2323
this.type = type;

0 commit comments

Comments
 (0)