@php-wasm/universal 2.0.4 → 2.0.7
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.
- package/index.cjs +3 -3
- package/index.cjs.map +1 -1
- package/index.js +38 -21
- package/index.js.map +1 -1
- package/lib/php-response.d.ts +5 -0
- package/package.json +7 -7
package/lib/php-response.d.ts
CHANGED
|
@@ -94,6 +94,11 @@ export declare class PHPResponse implements PHPResponseData {
|
|
|
94
94
|
static forHttpCode(httpStatusCode: number, text?: string): PHPResponse;
|
|
95
95
|
static fromRawData(data: PHPResponseData): PHPResponse;
|
|
96
96
|
static fromStreamedResponse(streamedResponse: StreamedPHPResponse): Promise<PHPResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* True if the response is successful (HTTP status code 200-399),
|
|
99
|
+
* false otherwise.
|
|
100
|
+
*/
|
|
101
|
+
ok(): boolean;
|
|
97
102
|
toRawData(): PHPResponseData;
|
|
98
103
|
/**
|
|
99
104
|
* Response body as JSON.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/universal",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "PHP.wasm – emscripten bindings for PHP",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"module": "./index.js",
|
|
38
38
|
"types": "index.d.ts",
|
|
39
39
|
"license": "GPL-2.0-or-later",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "025d757fb86aaaae722819154a73fc8b6c728cc7",
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=20.18.3",
|
|
43
43
|
"npm": ">=10.1.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"ini": "4.1.2",
|
|
47
|
-
"@php-wasm/node-polyfills": "2.0.
|
|
48
|
-
"@php-wasm/logger": "2.0.
|
|
49
|
-
"@php-wasm/util": "2.0.
|
|
50
|
-
"@php-wasm/stream-compression": "2.0.
|
|
51
|
-
"@php-wasm/progress": "2.0.
|
|
47
|
+
"@php-wasm/node-polyfills": "2.0.7",
|
|
48
|
+
"@php-wasm/logger": "2.0.7",
|
|
49
|
+
"@php-wasm/util": "2.0.7",
|
|
50
|
+
"@php-wasm/stream-compression": "2.0.7",
|
|
51
|
+
"@php-wasm/progress": "2.0.7"
|
|
52
52
|
},
|
|
53
53
|
"overrides": {
|
|
54
54
|
"rollup": "^4.34.6",
|