sliftutils 0.39.0 → 0.40.0
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
CHANGED
|
@@ -68,6 +68,7 @@ export class PrivateFileSystemStorage implements IStorageRaw {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
private async getFileHandle(key: string, create: boolean = false): Promise<FileSystemFileHandle | undefined> {
|
|
71
|
+
await this.ensureInitialized();
|
|
71
72
|
try {
|
|
72
73
|
const dirHandle = await this.getDirectoryHandle(create);
|
|
73
74
|
return await dirHandle.getFileHandle(key, { create });
|
|
@@ -77,6 +78,7 @@ export class PrivateFileSystemStorage implements IStorageRaw {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
private async fileExists(key: string): Promise<boolean> {
|
|
81
|
+
await this.ensureInitialized();
|
|
80
82
|
try {
|
|
81
83
|
// First check if directory exists
|
|
82
84
|
if (!(await this.directoryExists())) {
|