@php-wasm/universal
Advanced tools
+1
-1
@@ -25,3 +25,3 @@ export type { MessageListener, PHPOutput, PHPRunOptions, UniversalPHP, PHPEvent, PHPEventListener, HTTPMethod, PHPRequest, PHPRequestHeaders, SpawnHandler, } from './universal-php'; | ||
| export type { PHPRequestHandlerConfiguration, RewriteRule, } from './php-request-handler'; | ||
| export { PHPRequestHandler, applyRewriteRules } from './php-request-handler'; | ||
| export { PHPRequestHandler, applyRewriteRules, inferMimeType, } from './php-request-handler'; | ||
| export type { FileNotFoundGetActionCallback, FileNotFoundToInternalRedirect, FileNotFoundToResponse, FileNotFoundAction, CookieStore, } from './php-request-handler'; | ||
@@ -28,0 +28,0 @@ export { rotatePHPRuntime } from './rotate-php-runtime'; |
@@ -234,2 +234,13 @@ import type { PHP } from './php'; | ||
| /** | ||
| * Naively infer a file mime type from its path. | ||
| * | ||
| * @todo Infer the mime type based on the file contents. | ||
| * A naive function like this one can be inaccurate | ||
| * and potentially have negative security consequences. | ||
| * | ||
| * @param path - The file path | ||
| * @returns The inferred mime type. | ||
| */ | ||
| export declare function inferMimeType(path: string): string; | ||
| /** | ||
| * Applies the given rewrite rules to the given path. | ||
@@ -236,0 +247,0 @@ * |
+7
-7
| { | ||
| "name": "@php-wasm/universal", | ||
| "version": "3.0.15", | ||
| "version": "3.0.16", | ||
| "description": "PHP.wasm – emscripten bindings for PHP", | ||
@@ -40,3 +40,3 @@ "repository": { | ||
| "license": "GPL-2.0-or-later", | ||
| "gitHead": "4e8addef4a0fa0e76f26785689a1a676bbb823e1", | ||
| "gitHead": "1f96a559fda4946f36f8543a2715cee411a5c8f2", | ||
| "engines": { | ||
@@ -48,7 +48,7 @@ "node": ">=20.18.3", | ||
| "ini": "4.1.2", | ||
| "@php-wasm/node-polyfills": "3.0.15", | ||
| "@php-wasm/logger": "3.0.15", | ||
| "@php-wasm/util": "3.0.15", | ||
| "@php-wasm/stream-compression": "3.0.15", | ||
| "@php-wasm/progress": "3.0.15" | ||
| "@php-wasm/node-polyfills": "3.0.16", | ||
| "@php-wasm/logger": "3.0.16", | ||
| "@php-wasm/util": "3.0.16", | ||
| "@php-wasm/stream-compression": "3.0.16", | ||
| "@php-wasm/progress": "3.0.16" | ||
| }, | ||
@@ -55,0 +55,0 @@ "packageManager": "npm@10.9.2", |
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
867622
0.08%6572
0.18%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated