You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@php-wasm/universal

Package Overview
Dependencies
Maintainers
7
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@php-wasm/universal - npm Package Compare versions

Comparing version
3.1.5
to
3.1.8
+17
-0
lib/api.d.ts

@@ -22,1 +22,18 @@ import { releaseProxy, type NodeEndpoint as NodeWorker, type Remote, type IsomorphicMessagePort, type ProxyMethods } from './comlink-sync';

export declare function exposeSyncAPI<Methods>(apiMethods: Methods, port: IsomorphicMessagePort): Promise<[() => void, (e: Error) => void, Methods]>;
/**
* Bridges a ReadableStream to a MessagePort by reading chunks and posting
* messages to the port. Used as a fallback when transferable streams are not
* supported (e.g., Safari).
*
* Protocol of the returned MessagePort:
*
* { t: 'chunk', b: ArrayBuffer } – next binary chunk
* { t: 'close' } – end of stream
* { t: 'error', m: string } – terminal error
*/
export declare function streamToPort(stream: ReadableStream<Uint8Array>): MessagePort;
/**
* Reconstructs a ReadableStream from a MessagePort using the inverse of the
* streamToPort protocol. Each message enqueues data, closes, or errors.
*/
export declare function portToStream(port: MessagePort): ReadableStream<Uint8Array>;
+1
-1

@@ -41,3 +41,3 @@ export interface PHPResponseData {

readonly exitCode: Promise<number>;
private parsedHeaders;
private cachedParsedHeaders;
private cachedStdoutBytes;

@@ -44,0 +44,0 @@ private cachedStderrText;

@@ -12,2 +12,6 @@ import type { PHP } from './php';

*
* Mounts are registered via php.mount() so they survive runtime rotation.
* When the replica's WASM module is hot-swapped, hotSwapPHPRuntime()
* re-applies these mount handlers on the fresh module.
*
* @param sourceOfTruth - The PHP instance containing the original files

@@ -17,3 +21,3 @@ * @param replica - The PHP instance that will access files through PROXYFS

*/
export declare function proxyFileSystem(sourceOfTruth: PHP, replica: PHP, paths: string[]): void;
export declare function proxyFileSystem(sourceOfTruth: PHP, replica: PHP, paths: string[]): Promise<void>;
/**

@@ -20,0 +24,0 @@ * Answers whether the given path is to a shared filesystem.

{
"name": "@php-wasm/universal",
"version": "3.1.5",
"version": "3.1.8",
"description": "PHP.wasm – emscripten bindings for PHP",

@@ -40,3 +40,3 @@ "repository": {

"license": "GPL-2.0-or-later",
"gitHead": "e10df5885055e97c87ce88fe5e9d8d4ac3e700da",
"gitHead": "ba6a9509c9db4e0b7af6f155cf31162a6b659b5f",
"engines": {

@@ -48,7 +48,7 @@ "node": ">=20.10.0",

"ini": "4.1.2",
"@php-wasm/node-polyfills": "3.1.5",
"@php-wasm/logger": "3.1.5",
"@php-wasm/util": "3.1.5",
"@php-wasm/stream-compression": "3.1.5",
"@php-wasm/progress": "3.1.5"
"@php-wasm/node-polyfills": "3.1.8",
"@php-wasm/logger": "3.1.8",
"@php-wasm/util": "3.1.8",
"@php-wasm/stream-compression": "3.1.8",
"@php-wasm/progress": "3.1.8"
},

@@ -62,3 +62,2 @@ "packageManager": "npm@10.9.2",

"@playwright/test": "1.55.1",
"ws": "8.18.3",
"tmp": "0.2.5",

@@ -65,0 +64,0 @@ "form-data": "^4.0.4",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display