@php-wasm/universal 3.0.14 → 3.0.15
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 +6 -6
- package/index.cjs.map +1 -1
- package/index.js +22 -5
- package/index.js.map +1 -1
- package/lib/universal-php.d.ts +8 -1
- package/package.json +7 -7
package/lib/universal-php.d.ts
CHANGED
|
@@ -26,12 +26,19 @@ export interface PHPRuntimeInitializedEvent {
|
|
|
26
26
|
export interface PHPRuntimeBeforeExitEvent {
|
|
27
27
|
type: 'runtime.beforeExit';
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Emitted when a filesystem write operation occurs (writeFile, mkdir, rmdir, mv, unlink).
|
|
31
|
+
* This event is used to trigger journal flushing for persistent storage.
|
|
32
|
+
*/
|
|
33
|
+
export interface PHPFilesystemWriteEvent {
|
|
34
|
+
type: 'filesystem.write';
|
|
35
|
+
}
|
|
29
36
|
/**
|
|
30
37
|
* Represents an event related to the PHP instance.
|
|
31
38
|
* This is intentionally not an extension of CustomEvent
|
|
32
39
|
* to make it isomorphic between different JavaScript runtimes.
|
|
33
40
|
*/
|
|
34
|
-
export type PHPEvent = PHPRequestEndEvent | PHPRequestErrorEvent | PHPRuntimeInitializedEvent | PHPRuntimeBeforeExitEvent;
|
|
41
|
+
export type PHPEvent = PHPRequestEndEvent | PHPRequestErrorEvent | PHPRuntimeInitializedEvent | PHPRuntimeBeforeExitEvent | PHPFilesystemWriteEvent;
|
|
35
42
|
/**
|
|
36
43
|
* A callback function that handles PHP events.
|
|
37
44
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/universal",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.15",
|
|
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": "4e8addef4a0fa0e76f26785689a1a676bbb823e1",
|
|
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": "3.0.
|
|
48
|
-
"@php-wasm/logger": "3.0.
|
|
49
|
-
"@php-wasm/util": "3.0.
|
|
50
|
-
"@php-wasm/stream-compression": "3.0.
|
|
51
|
-
"@php-wasm/progress": "3.0.
|
|
47
|
+
"@php-wasm/node-polyfills": "3.0.15",
|
|
48
|
+
"@php-wasm/logger": "3.0.15",
|
|
49
|
+
"@php-wasm/util": "3.0.15",
|
|
50
|
+
"@php-wasm/stream-compression": "3.0.15",
|
|
51
|
+
"@php-wasm/progress": "3.0.15"
|
|
52
52
|
},
|
|
53
53
|
"packageManager": "npm@10.9.2",
|
|
54
54
|
"overrides": {
|