@php-wasm/universal
Advanced tools
@@ -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; |
@@ -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; |
+8
-7
| { | ||
| "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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
863363
2.42%6535
2.09%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated