@php-wasm/universal 2.0.22 → 3.0.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.
- package/index.cjs +5 -5
- package/index.cjs.map +1 -1
- package/index.js +70 -59
- package/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/php.d.ts +1 -5
- package/lib/proxy-file-system.d.ts +8 -0
- package/package.json +7 -7
package/lib/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export { writeFiles } from './write-files';
|
|
|
29
29
|
export type { FileTree } from './write-files';
|
|
30
30
|
export { DEFAULT_BASE_URL, ensurePathPrefix, removePathPrefix, toRelativeUrl, } from './urls';
|
|
31
31
|
export { isExitCode } from './is-exit-code';
|
|
32
|
-
export { proxyFileSystem } from './proxy-file-system';
|
|
32
|
+
export { proxyFileSystem, isPathToSharedFS } from './proxy-file-system';
|
|
33
33
|
export { sandboxedSpawnHandlerFactory } from './sandboxed-spawn-handler-factory';
|
|
34
34
|
export * from './api';
|
|
35
35
|
export type { WithAPIState as WithIsReady } from './api';
|
package/lib/php.d.ts
CHANGED
|
@@ -425,12 +425,8 @@ export declare class PHP implements Disposable {
|
|
|
425
425
|
* interrupting the operations of this PHP instance.
|
|
426
426
|
*
|
|
427
427
|
* @param runtime
|
|
428
|
-
* @param cwd. Internal, the VFS path to recreate in the new runtime.
|
|
429
|
-
* This arg is temporary and will be removed once BasePHP
|
|
430
|
-
* is fully decoupled from the request handler and
|
|
431
|
-
* accepts a constructor-level cwd argument.
|
|
432
428
|
*/
|
|
433
|
-
hotSwapPHPRuntime(runtime: number
|
|
429
|
+
hotSwapPHPRuntime(runtime: number): Promise<void>;
|
|
434
430
|
/**
|
|
435
431
|
* Mounts a filesystem to a given path in the PHP filesystem.
|
|
436
432
|
*
|
|
@@ -5,3 +5,11 @@ import type { PHP } from './php';
|
|
|
5
5
|
* between the parent and child processes.
|
|
6
6
|
*/
|
|
7
7
|
export declare function proxyFileSystem(sourceOfTruth: PHP, replica: PHP, paths: string[]): void;
|
|
8
|
+
/**
|
|
9
|
+
* Answers whether the given path is to a shared filesystem.
|
|
10
|
+
*
|
|
11
|
+
* @param sourceOfTruth - The PHP instance that is the source of truth.
|
|
12
|
+
* @param path - The path to check.
|
|
13
|
+
* @returns True if the path is to a shared filesystem, false otherwise.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isPathToSharedFS(sourceOfTruth: PHP, path: string): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/universal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "PHP.wasm – emscripten bindings for PHP",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"module": "./index.js",
|
|
38
38
|
"types": "index.d.ts",
|
|
39
39
|
"license": "GPL-2.0-or-later",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "9a65507f4294f48d98953edb9fc91392a8fab759",
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=20.18.3",
|
|
43
43
|
"npm": ">=10.1.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"ini": "4.1.2",
|
|
47
|
-
"@php-wasm/node-polyfills": "
|
|
48
|
-
"@php-wasm/logger": "
|
|
49
|
-
"@php-wasm/util": "
|
|
50
|
-
"@php-wasm/stream-compression": "
|
|
51
|
-
"@php-wasm/progress": "
|
|
47
|
+
"@php-wasm/node-polyfills": "3.0.1",
|
|
48
|
+
"@php-wasm/logger": "3.0.1",
|
|
49
|
+
"@php-wasm/util": "3.0.1",
|
|
50
|
+
"@php-wasm/stream-compression": "3.0.1",
|
|
51
|
+
"@php-wasm/progress": "3.0.1"
|
|
52
52
|
},
|
|
53
53
|
"overrides": {
|
|
54
54
|
"rollup": "^4.34.6",
|