@wp-playground/client 3.1.30 → 3.1.31
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/index.cjs +65 -65
- package/index.d.ts +17 -1
- package/index.js +1644 -1648
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1856,6 +1856,7 @@ export interface FileTree extends Record<string, Uint8Array | string | FileTree>
|
|
|
1856
1856
|
* regular PHP extensions and `zend_extension` for Zend extensions like Xdebug.
|
|
1857
1857
|
*/
|
|
1858
1858
|
export type PHPExtensionIniDirective = "extension" | "zend_extension";
|
|
1859
|
+
export type PHPExtensionLoadDirective = PHPExtensionIniDirective | false;
|
|
1859
1860
|
/**
|
|
1860
1861
|
* Extension artifact manifest. Lets callers publish a matrix of `.so` files
|
|
1861
1862
|
* and lets `resolvePHPExtension()` select the artifact matching the current
|
|
@@ -1865,6 +1866,21 @@ export interface PHPExtensionManifest {
|
|
|
1865
1866
|
name: string;
|
|
1866
1867
|
version?: string;
|
|
1867
1868
|
mode?: "php-extension";
|
|
1869
|
+
/**
|
|
1870
|
+
* The first directive of the generated startup `.ini` file. Defaults to
|
|
1871
|
+
* `extension`; use `zend_extension` for Zend extensions like Xdebug.
|
|
1872
|
+
* Use `false` to stage the `.so` without registering it in php.ini.
|
|
1873
|
+
*/
|
|
1874
|
+
loadWithIniDirective?: PHPExtensionLoadDirective;
|
|
1875
|
+
/** Additional `key=value` lines for the generated startup `.ini` file. */
|
|
1876
|
+
iniEntries?: Record<string, string>;
|
|
1877
|
+
/** Environment variables added before the extension is loaded. */
|
|
1878
|
+
env?: Record<string, string>;
|
|
1879
|
+
/**
|
|
1880
|
+
* VFS directory where PHP.wasm writes the extension `.so` file and its
|
|
1881
|
+
* per-extension ini file. Defaults to `PHP_EXTENSIONS_DIR`.
|
|
1882
|
+
*/
|
|
1883
|
+
extensionDir?: string;
|
|
1868
1884
|
artifacts: Array<{
|
|
1869
1885
|
/** PHP major/minor version, e.g. `8.4`. */
|
|
1870
1886
|
phpVersion: string;
|
|
@@ -1930,7 +1946,7 @@ export interface ResolvedInstallOptions {
|
|
|
1930
1946
|
* extensions need `extension=...`; Zend extensions like Xdebug need
|
|
1931
1947
|
* `zend_extension=...`.
|
|
1932
1948
|
*/
|
|
1933
|
-
loadWithIniDirective?:
|
|
1949
|
+
loadWithIniDirective?: PHPExtensionLoadDirective;
|
|
1934
1950
|
/** Additional `key=value` lines for the generated startup `.ini` file. */
|
|
1935
1951
|
iniEntries?: Record<string, string>;
|
|
1936
1952
|
/**
|