@php-wasm/universal 3.1.39 → 3.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,4 +9,12 @@ export declare function printDebugDetails(e: any, streamedResponse?: StreamedPHP
9
9
  * @param e
10
10
  */
11
11
  export declare function prettyPrintFullStackTrace(e: any): Promise<void>;
12
+ /**
13
+ * Describe an error for display. Handles Error instances, Comlink-serialized
14
+ * plain objects (which lose their Error prototype during worker thread
15
+ * transfer), and arbitrary values.
16
+ */
17
+ export declare function describeError(error: unknown, seen?: WeakSet<object>, depth?: number, options?: {
18
+ suppressGenericErrorName?: boolean;
19
+ }): string;
12
20
  export declare function printResponseDebugDetails(response: PHPResponse): void;
package/lib/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { FSHelpers } from './fs-helpers';
3
3
  export type { ListFilesOptions, RmDirOptions } from './fs-helpers';
4
4
  export { PHPWorker } from './php-worker';
5
5
  export { getPhpIniEntries, setPhpIniEntries, withPHPIniValues } from './ini';
6
- export { printDebugDetails, prettyPrintFullStackTrace, printResponseDebugDetails, } from './error-reporting';
6
+ export { printDebugDetails, prettyPrintFullStackTrace, printResponseDebugDetails, describeError, } from './error-reporting';
7
7
  export { UnhandledRejectionsTarget } from './wasm-error-reporting';
8
8
  export { HttpCookieStore } from './http-cookie-store';
9
9
  export type { IteratePhpFilesOptions as IterateFilesOptions } from './iterate-files';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/universal",
3
- "version": "3.1.39",
3
+ "version": "3.1.41",
4
4
  "description": "PHP.wasm – emscripten bindings for PHP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,17 +37,17 @@
37
37
  "module": "./index.js",
38
38
  "types": "index.d.ts",
39
39
  "license": "GPL-2.0-or-later",
40
- "gitHead": "8f2bada44eb41b231b9040a866432dc32f80117e",
40
+ "gitHead": "d32ef94fc8b765bd0c6ed7d5ba32e2ebd34b8a75",
41
41
  "engines": {
42
42
  "node": ">=20.10.0",
43
43
  "npm": ">=10.2.3"
44
44
  },
45
45
  "dependencies": {
46
46
  "ini": "4.1.2",
47
- "@php-wasm/logger": "3.1.39",
48
- "@php-wasm/util": "3.1.39",
49
- "@php-wasm/stream-compression": "3.1.39",
50
- "@php-wasm/progress": "3.1.39"
47
+ "@php-wasm/logger": "3.1.41",
48
+ "@php-wasm/util": "3.1.41",
49
+ "@php-wasm/stream-compression": "3.1.41",
50
+ "@php-wasm/progress": "3.1.41"
51
51
  },
52
52
  "packageManager": "npm@10.9.2",
53
53
  "overrides": {
@@ -55,7 +55,7 @@
55
55
  "react": "18.3.1",
56
56
  "react-dom": "18.3.1",
57
57
  "typescript": "5.4.5",
58
- "@playwright/test": "1.55.1",
58
+ "@playwright/test": "1.61.0",
59
59
  "tmp": "0.2.5",
60
60
  "form-data": "^4.0.4",
61
61
  "lodash": "^4.17.23",