@zenfs/core 0.5.0 → 0.5.2

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/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isBackend, resolveBackendConfig } from './backends/backend.js';
1
+ import { isBackend, resolveBackend } from './backends/backend.js';
2
2
  import * as fs from './emulation/index.js';
3
3
  import { setCred } from './emulation/shared.js';
4
4
  import { FileSystem } from './filesystem.js';
@@ -29,7 +29,7 @@ export async function configure(config) {
29
29
  if (isBackend(value)) {
30
30
  value = { backend: value };
31
31
  }
32
- config[point] = await resolveBackendConfig(value);
32
+ config[point] = await resolveBackend(value);
33
33
  }
34
34
  initialize(config);
35
35
  }
@@ -321,7 +321,7 @@ async function _readFile(fname, flag, resolveSymlinks) {
321
321
  await file.close();
322
322
  return data;
323
323
  }
324
- finally {
324
+ catch (e) {
325
325
  await file.close();
326
326
  }
327
327
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "A filesystem in your browser",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist",