@php-wasm/node
Advanced tools
Comparing version 0.6.7 to 0.6.8
@@ -57,2 +57,9 @@ // Generated by dts-bundle-generator v7.2.0 | ||
/** | ||
* Represents an error event related to the PHP request. | ||
*/ | ||
export interface PHPRequestErrorEvent { | ||
type: "request.error"; | ||
error: Error; | ||
} | ||
/** | ||
* Represents a PHP runtime initialization event. | ||
@@ -74,3 +81,3 @@ */ | ||
*/ | ||
export type PHPEvent = PHPRequestEndEvent | PHPRuntimeInitializedEvent | PHPRuntimeBeforeDestroyEvent; | ||
export type PHPEvent = PHPRequestEndEvent | PHPRequestErrorEvent | PHPRuntimeInitializedEvent | PHPRuntimeBeforeDestroyEvent; | ||
/** | ||
@@ -552,2 +559,6 @@ * A callback function that handles PHP events. | ||
export type SupportedPHPVersion = (typeof SupportedPHPVersions)[number]; | ||
export type RewriteRule = { | ||
match: RegExp; | ||
replacement: string; | ||
}; | ||
export interface PHPRequestHandlerConfiguration { | ||
@@ -563,5 +574,10 @@ /** | ||
absoluteUrl?: string; | ||
/** | ||
* Rewrite rules | ||
*/ | ||
rewriteRules?: RewriteRule[]; | ||
} | ||
declare class PHPRequestHandler implements RequestHandler { | ||
#private; | ||
rewriteRules: RewriteRule[]; | ||
/** | ||
@@ -568,0 +584,0 @@ * The PHP instance |
{ | ||
"name": "@php-wasm/node", | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"description": "PHP.wasm for Node.js", | ||
@@ -31,3 +31,3 @@ "repository": { | ||
"types": "index.d.ts", | ||
"gitHead": "c4c52563eee8997b94cd4a0875e10fb5d8ccda42", | ||
"gitHead": "cb7b1af260489022238495a2fc0d96f767a1294a", | ||
"engines": { | ||
@@ -42,6 +42,6 @@ "node": ">=18.18.2", | ||
"yargs": "17.7.2", | ||
"@php-wasm/node-polyfills": "0.6.7", | ||
"@php-wasm/universal": "0.6.7", | ||
"@php-wasm/util": "0.6.7" | ||
"@php-wasm/node-polyfills": "0.6.8", | ||
"@php-wasm/universal": "0.6.8", | ||
"@php-wasm/util": "0.6.8" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
Sorry, the diff of this file is too big to display
107830133
141088
+ Added@php-wasm/node-polyfills@0.6.8(transitive)
+ Added@php-wasm/universal@0.6.8(transitive)
+ Added@php-wasm/util@0.6.8(transitive)
- Removed@php-wasm/node-polyfills@0.6.7(transitive)
- Removed@php-wasm/universal@0.6.7(transitive)
- Removed@php-wasm/util@0.6.7(transitive)
Updated@php-wasm/universal@0.6.8
Updated@php-wasm/util@0.6.8