zen-fs-config 0.3.8 → 0.3.9

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/index.js CHANGED
@@ -339,6 +339,9 @@ async function wrapZenFSFileSystem(config) {
339
339
  await isolatedFS.mkdir(dir, { uid: 0, gid: 0, mode: 493 });
340
340
  }
341
341
  }
342
+ if (!await isolatedFS.exists(path)) {
343
+ await isolatedFS.createFile(path, { uid: 0, gid: 0, mode: 420 });
344
+ }
342
345
  await isolatedFS.write(path, bytes, 0);
343
346
  },
344
347
  async readdir(path) {
package/dist/index.mjs CHANGED
@@ -292,6 +292,9 @@ async function wrapZenFSFileSystem(config) {
292
292
  await isolatedFS.mkdir(dir, { uid: 0, gid: 0, mode: 493 });
293
293
  }
294
294
  }
295
+ if (!await isolatedFS.exists(path)) {
296
+ await isolatedFS.createFile(path, { uid: 0, gid: 0, mode: 420 });
297
+ }
295
298
  await isolatedFS.write(path, bytes, 0);
296
299
  },
297
300
  async readdir(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-fs-config",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Distributed config management library built on ZenFS, zen-fs-cache, and zen-fs-sync",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",