sandboxedjs 0.1.69 → 0.1.70

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.
@@ -512,6 +512,8 @@ declare class DescriptorTable {
512
512
  inherit(): DescriptorTable;
513
513
  /** Drop every descriptor. Every resource has an owner and a cleanup path. */
514
514
  closeAll(): void;
515
+ /** The numbers this table currently holds, in ascending order. */
516
+ fds(): number[];
515
517
  get openCount(): number;
516
518
  private release;
517
519
  }
@@ -512,6 +512,8 @@ declare class DescriptorTable {
512
512
  inherit(): DescriptorTable;
513
513
  /** Drop every descriptor. Every resource has an owner and a cleanup path. */
514
514
  closeAll(): void;
515
+ /** The numbers this table currently holds, in ascending order. */
516
+ fds(): number[];
515
517
  get openCount(): number;
516
518
  private release;
517
519
  }
@@ -1005,6 +1005,10 @@ var DescriptorTable = class _DescriptorTable {
1005
1005
  }
1006
1006
  }
1007
1007
  }
1008
+ /** The numbers this table currently holds, in ascending order. */
1009
+ fds() {
1010
+ return [...this.slots.keys()].sort((a, b) => a - b);
1011
+ }
1008
1012
  get openCount() {
1009
1013
  return this.slots.size;
1010
1014
  }