@php-wasm/node 3.0.12 → 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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -20,11 +20,11 @@ import { loadNodeRuntime } from '@php-wasm/node';
20
20
 
21
21
  const php = new PHP(await loadNodeRuntime('8.3'));
22
22
 
23
- const output = await php.run({
23
+ const output = await php.runStream({
24
24
  code: '<?php phpinfo(); ?>',
25
25
  });
26
26
 
27
- console.log(response.text);
27
+ console.log(await output.stdoutText);
28
28
  ```
29
29
 
30
30
  ## Attribution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "3.0.12",
3
+ "version": "3.0.15",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "license": "GPL-2.0-or-later",
40
40
  "types": "index.d.ts",
41
- "gitHead": "75715549fdb6064f4fa335e65bc5718e2177c229",
41
+ "gitHead": "4e8addef4a0fa0e76f26785689a1a676bbb823e1",
42
42
  "engines": {
43
43
  "node": ">=20.18.3",
44
44
  "npm": ">=10.1.0"
@@ -49,11 +49,11 @@
49
49
  "wasm-feature-detect": "1.8.0",
50
50
  "ws": "8.18.1",
51
51
  "yargs": "17.7.2",
52
- "@php-wasm/node-polyfills": "3.0.12",
53
- "@php-wasm/universal": "3.0.12",
54
- "@php-wasm/logger": "3.0.12",
55
- "@php-wasm/util": "3.0.12",
56
- "@wp-playground/common": "3.0.12"
52
+ "@php-wasm/node-polyfills": "3.0.15",
53
+ "@php-wasm/universal": "3.0.15",
54
+ "@php-wasm/logger": "3.0.15",
55
+ "@php-wasm/util": "3.0.15",
56
+ "@wp-playground/common": "3.0.15"
57
57
  },
58
58
  "packageManager": "npm@10.9.2",
59
59
  "overrides": {