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
5
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.0.6
to
3.0.8
+7
-0
lib/php-worker.d.ts

@@ -26,2 +26,3 @@ import type { EmscriptenDownloadMonitor } from '@php-wasm/progress';

documentRoot: string;
private chroot;
onMessageListeners: MessageListener[];

@@ -70,2 +71,8 @@ /** @inheritDoc */

chdir(path: string): void;
/** @inheritDoc @php-wasm/universal!/PHP.chdir */
cwd(): string;
/**
* @returns A PHP instance with a consistent chroot.
*/
private acquirePHPInstance;
/** @inheritDoc @php-wasm/universal!/PHP.setSapiName */

@@ -72,0 +79,0 @@ setSapiName(newName: string): void;

+16
-1

@@ -119,2 +119,8 @@ import { Semaphore } from '@php-wasm/util';

/**
* Gets the current working directory in the PHP filesystem.
*
* @returns The current working directory.
*/
cwd(): any;
/**
* Changes the permissions of a file or directory.

@@ -421,3 +427,2 @@ * @param path - The path to the file or directory.

maxRequests?: number;
cwd?: string;
}): void;

@@ -455,3 +460,13 @@ private rotateRuntime;

env?: Record<string, string>;
cwd?: string;
}): Promise<StreamedPHPResponse>;
/**
* Runs an arbitrary CLI command using the spawn handler associated
* with this PHP instance.
*
* @param argv
* @param options
* @returns StreamedPHPResponse.
*/
private subProcess;
setSkipShebang(shouldSkip: boolean): void;

@@ -458,0 +473,0 @@ exit(code?: number): void;

+1
-1

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

*/
export declare function rotatePHPRuntime({ php, cwd, recreateRuntime, maxRequests, }: RotateOptions): void;
export declare function rotatePHPRuntime({ php, recreateRuntime, maxRequests, }: RotateOptions): void;
{
"name": "@php-wasm/universal",
"version": "3.0.6",
"version": "3.0.8",
"description": "PHP.wasm – emscripten bindings for PHP",

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

"license": "GPL-2.0-or-later",
"gitHead": "76ac040706918e24e56aa96a89e266887d323691",
"gitHead": "a1128d0626073076640e7acd088cd3c9c70916c2",
"engines": {

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

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

@@ -60,2 +60,3 @@ "overrides": {

"typescript": "5.4.5",
"@playwright/test": "1.47.1",
"ws": "^8.18.0"

@@ -62,0 +63,0 @@ },

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