@wp-playground/storage 3.1.12 → 3.1.13

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.
@@ -91,6 +91,20 @@ export declare class ZipFilesystem implements ReadableFilesystemBackend {
91
91
  read(relativePath: string): Promise<StreamedFile>;
92
92
  private getEntry;
93
93
  private getEntries;
94
+ /**
95
+ * Returns the paths of all entries in the zip (file and directory names).
96
+ */
97
+ getAllFilePaths(): Promise<string[]>;
98
+ }
99
+ /**
100
+ * A ReadableFilesystemBackend that exposes a subdirectory of another backend
101
+ * as the root, similar to chroot. Paths are resolved via joinPaths.
102
+ */
103
+ export declare class ChrootFilesystem implements ReadableFilesystemBackend {
104
+ private readonly chroot;
105
+ private readonly backend;
106
+ constructor(chroot: string, backend: ReadableFilesystemBackend);
107
+ read(path: string): Promise<StreamedFile>;
94
108
  }
95
109
  /**
96
110
  * A Filesystem implementation that cascades through multiple filesystems
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/storage",
3
- "version": "3.1.12",
3
+ "version": "3.1.13",
4
4
  "description": "Bindings for storing WordPress Playground on different backends.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -50,11 +50,11 @@
50
50
  "readable-stream": "^3.4.0",
51
51
  "sha.js": "^2.4.9",
52
52
  "simple-get": "^4.0.1",
53
- "@php-wasm/universal": "3.1.12",
54
- "@php-wasm/util": "3.1.12",
55
- "@php-wasm/stream-compression": "3.1.12"
53
+ "@php-wasm/universal": "3.1.13",
54
+ "@php-wasm/util": "3.1.13",
55
+ "@php-wasm/stream-compression": "3.1.13"
56
56
  },
57
- "gitHead": "d1271637be8979fd4d13e0d7da6e043a5abaafc2",
57
+ "gitHead": "4523244be9c3e12aef7889bbaca81ca40bcfaef3",
58
58
  "packageManager": "npm@10.9.2",
59
59
  "overrides": {
60
60
  "rollup": "^4.34.6",