@php-wasm/node 1.0.12 → 1.0.13
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/asyncify/8_3_0/php_8_3.wasm +0 -0
- package/asyncify/php_8_3.js +8946 -7577
- package/index.cjs +1161 -391
- package/index.js +1161 -391
- package/lib/networking/outbound-ws-to-tcp-proxy.d.ts +13 -12
- package/package.json +8 -8
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import * as http from 'http';
|
|
2
3
|
/**
|
|
3
4
|
* Send a chunk of data to the remote server.
|
|
@@ -19,7 +20,7 @@ export declare const COMMAND_SET_SOCKETOPT = 2;
|
|
|
19
20
|
* @returns Decorated constructor
|
|
20
21
|
*/
|
|
21
22
|
export declare function addSocketOptionsSupportToWebSocketClass(WebSocketConstructor: typeof WebSocket): {
|
|
22
|
-
new (url: string | URL, protocols?: string | string[]): {
|
|
23
|
+
new (url: string | URL, protocols?: string | string[] | undefined): {
|
|
23
24
|
send(chunk: any, callback: any): any;
|
|
24
25
|
setSocketOpt(optionClass: number, optionName: number, optionValue: number): any;
|
|
25
26
|
sendCommand(commandType: number, chunk: string | ArrayBuffer | ArrayLike<number>, callback: any): any;
|
|
@@ -28,25 +29,25 @@ export declare function addSocketOptionsSupportToWebSocketClass(WebSocketConstru
|
|
|
28
29
|
readonly extensions: string;
|
|
29
30
|
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
30
31
|
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
31
|
-
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
32
|
+
onmessage: ((this: WebSocket, ev: MessageEvent<any>) => any) | null;
|
|
32
33
|
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
33
34
|
readonly protocol: string;
|
|
34
35
|
readonly readyState: number;
|
|
35
36
|
readonly url: string;
|
|
36
|
-
close(code?: number, reason?: string): void;
|
|
37
|
-
close(code?: number, reason?: string): void;
|
|
37
|
+
close(code?: number | undefined, reason?: string | undefined): void;
|
|
38
|
+
close(code?: number | undefined, reason?: string | undefined): void;
|
|
38
39
|
readonly CONNECTING: 0;
|
|
39
40
|
readonly OPEN: 1;
|
|
40
41
|
readonly CLOSING: 2;
|
|
41
42
|
readonly CLOSED: 3;
|
|
42
|
-
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
43
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
44
|
-
addEventListener<
|
|
45
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
46
|
-
removeEventListener<
|
|
47
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
48
|
-
removeEventListener<
|
|
49
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
43
|
+
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
44
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
45
|
+
addEventListener<K_1 extends keyof WebSocketEventMap>(type: K_1, listener: (this: WebSocket, ev: WebSocketEventMap[K_1]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
46
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
47
|
+
removeEventListener<K_2 extends keyof WebSocketEventMap>(type: K_2, listener: (this: WebSocket, ev: WebSocketEventMap[K_2]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
48
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
49
|
+
removeEventListener<K_3 extends keyof WebSocketEventMap>(type: K_3, listener: (this: WebSocket, ev: WebSocketEventMap[K_3]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
50
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
50
51
|
dispatchEvent(event: Event): boolean;
|
|
51
52
|
dispatchEvent(event: Event): boolean;
|
|
52
53
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/node",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "PHP.wasm for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "GPL-2.0-or-later",
|
|
40
40
|
"types": "index.d.ts",
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "22888c009b54e0b1e5a5c9961b9d97c08b39f672",
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=18.18.0",
|
|
44
44
|
"npm": ">=8.11.0"
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"wasm-feature-detect": "1.8.0",
|
|
52
52
|
"ws": "8.18.0",
|
|
53
53
|
"yargs": "17.7.2",
|
|
54
|
-
"@php-wasm/node-polyfills": "1.0.
|
|
55
|
-
"@php-wasm/universal": "1.0.
|
|
56
|
-
"@php-wasm/logger": "1.0.
|
|
57
|
-
"@php-wasm/util": "1.0.
|
|
58
|
-
"@wp-playground/common": "1.0.
|
|
59
|
-
"@wp-playground/wordpress": "1.0.
|
|
54
|
+
"@php-wasm/node-polyfills": "1.0.13",
|
|
55
|
+
"@php-wasm/universal": "1.0.13",
|
|
56
|
+
"@php-wasm/logger": "1.0.13",
|
|
57
|
+
"@php-wasm/util": "1.0.13",
|
|
58
|
+
"@wp-playground/common": "1.0.13",
|
|
59
|
+
"@wp-playground/wordpress": "1.0.13"
|
|
60
60
|
}
|
|
61
61
|
}
|