@zenfs/core 1.7.0 → 1.7.1

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.
@@ -55,7 +55,7 @@ export interface FileSystemMetadata {
55
55
  * These are used by the VFS for optimizations.
56
56
  * - setid: The FS supports setuid and setgid when creating files and directories.
57
57
  */
58
- features: ('setid' | '')[];
58
+ features?: ('setid' | '')[];
59
59
  }
60
60
  /**
61
61
  * Options used when creating files and directories
@@ -467,7 +467,8 @@ unlink;
467
467
  * Manually apply setuid/setgid.
468
468
  */
469
469
  async function applySetId(file, uid, gid) {
470
- if (file.fs.metadata().features.includes('setid'))
470
+ var _a;
471
+ if ((_a = file.fs.metadata().features) === null || _a === void 0 ? void 0 : _a.includes('setid'))
471
472
  return;
472
473
  const parent = await file.fs.stat(dirname(file.path));
473
474
  await file.chown(parent.mode & constants.S_ISUID ? parent.uid : uid, // manually apply setuid/setgid
package/dist/vfs/sync.js CHANGED
@@ -169,7 +169,8 @@ unlinkSync;
169
169
  * Manually apply setuid/setgid.
170
170
  */
171
171
  function applySetId(file, uid, gid) {
172
- if (file.fs.metadata().features.includes('setid'))
172
+ var _a;
173
+ if ((_a = file.fs.metadata().features) === null || _a === void 0 ? void 0 : _a.includes('setid'))
173
174
  return;
174
175
  const parent = file.fs.statSync(dirname(file.path));
175
176
  file.chownSync(parent.mode & constants.S_ISUID ? parent.uid : uid, // manually apply setuid/setgid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "A filesystem, anywhere",
5
5
  "funding": {
6
6
  "type": "individual",