@php-wasm/universal 2.0.12 → 2.0.14

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.js CHANGED
@@ -2638,11 +2638,16 @@ function sandboxedSpawnHandlerFactory(t) {
2638
2638
  r.stdout("18 140"), r.exit(0);
2639
2639
  else if (n === "tput" && e[1] === "cols")
2640
2640
  r.stdout("140"), r.exit(0);
2641
- else if (n === "less")
2641
+ else if (n === "less") {
2642
2642
  r.on("stdin", (i) => {
2643
2643
  r.stdout(i);
2644
+ }), await new Promise((i) => {
2645
+ r.childProcess.stdin.on("finish", () => {
2646
+ i(!0);
2647
+ });
2644
2648
  }), r.exit(0);
2645
- else if (n === "php") {
2649
+ return;
2650
+ } else if (n === "php") {
2646
2651
  const { php: i, reap: o } = await t.acquirePHPInstance({
2647
2652
  considerPrimary: !1
2648
2653
  });