zen-fs-config 0.3.11 → 0.3.12

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
@@ -353,6 +353,7 @@ async function wrapZenFSFileSystem(config) {
353
353
  await isolatedFS.createFile(path, { uid: 0, gid: 0, mode: 420 });
354
354
  }
355
355
  await isolatedFS.write(path, bytes, 0);
356
+ await isolatedFS.touch(path, { size: bytes.byteLength, mtimeMs: Date.now() });
356
357
  },
357
358
  async readdir(path) {
358
359
  return isolatedFS.readdir(path);
package/dist/index.mjs CHANGED
@@ -306,6 +306,7 @@ async function wrapZenFSFileSystem(config) {
306
306
  await isolatedFS.createFile(path, { uid: 0, gid: 0, mode: 420 });
307
307
  }
308
308
  await isolatedFS.write(path, bytes, 0);
309
+ await isolatedFS.touch(path, { size: bytes.byteLength, mtimeMs: Date.now() });
309
310
  },
310
311
  async readdir(path) {
311
312
  return isolatedFS.readdir(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-fs-config",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
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",