@php-wasm/web 1.0.4 → 1.0.5

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.
Files changed (53) hide show
  1. package/index.js +2399 -234
  2. package/lib/index.d.ts +2 -0
  3. package/lib/load-runtime.d.ts +2 -2
  4. package/lib/tcp-over-fetch-websocket.d.ts +108 -0
  5. package/lib/tls/1_2/connection.d.ts +194 -0
  6. package/lib/tls/1_2/prf.d.ts +7 -0
  7. package/lib/tls/1_2/types.d.ts +223 -0
  8. package/lib/tls/certificates.d.ts +199 -0
  9. package/lib/tls/cipher-suites.d.ts +210 -0
  10. package/lib/tls/extensions/0_server_name.d.ts +33 -0
  11. package/lib/tls/extensions/10_supported_groups.d.ts +44 -0
  12. package/lib/tls/extensions/11_ec_point_formats.d.ts +45 -0
  13. package/lib/tls/extensions/13_signature_algorithms.d.ts +74 -0
  14. package/lib/tls/extensions/parse-extensions.d.ts +66 -0
  15. package/lib/tls/extensions/types.d.ts +62 -0
  16. package/lib/tls/utils.d.ts +28 -0
  17. package/package.json +6 -6
  18. package/php/asyncify/7_0_33/php_7_0.wasm +0 -0
  19. package/php/asyncify/7_1_30/php_7_1.wasm +0 -0
  20. package/php/asyncify/7_2_34/php_7_2.wasm +0 -0
  21. package/php/asyncify/7_3_33/php_7_3.wasm +0 -0
  22. package/php/asyncify/7_4_33/php_7_4.wasm +0 -0
  23. package/php/asyncify/8_0_30/php_8_0.wasm +0 -0
  24. package/php/asyncify/8_1_23/php_8_1.wasm +0 -0
  25. package/php/asyncify/8_2_10/php_8_2.wasm +0 -0
  26. package/php/asyncify/8_3_0/php_8_3.wasm +0 -0
  27. package/php/asyncify/php_7_0.js +3 -3
  28. package/php/asyncify/php_7_1.js +3 -3
  29. package/php/asyncify/php_7_2.js +3 -3
  30. package/php/asyncify/php_7_3.js +3 -3
  31. package/php/asyncify/php_7_4.js +3 -3
  32. package/php/asyncify/php_8_0.js +3 -3
  33. package/php/asyncify/php_8_1.js +3 -3
  34. package/php/asyncify/php_8_2.js +3 -3
  35. package/php/asyncify/php_8_3.js +3 -3
  36. package/php/jspi/7_0_33/php_7_0.wasm +0 -0
  37. package/php/jspi/7_1_30/php_7_1.wasm +0 -0
  38. package/php/jspi/7_2_34/php_7_2.wasm +0 -0
  39. package/php/jspi/7_3_33/php_7_3.wasm +0 -0
  40. package/php/jspi/7_4_33/php_7_4.wasm +0 -0
  41. package/php/jspi/8_0_30/php_8_0.wasm +0 -0
  42. package/php/jspi/8_1_23/php_8_1.wasm +0 -0
  43. package/php/jspi/8_2_10/php_8_2.wasm +0 -0
  44. package/php/jspi/8_3_0/php_8_3.wasm +0 -0
  45. package/php/jspi/php_7_0.js +2 -2
  46. package/php/jspi/php_7_1.js +2 -2
  47. package/php/jspi/php_7_2.js +2 -2
  48. package/php/jspi/php_7_3.js +2 -2
  49. package/php/jspi/php_7_4.js +2 -2
  50. package/php/jspi/php_8_0.js +2 -2
  51. package/php/jspi/php_8_1.js +2 -2
  52. package/php/jspi/php_8_2.js +2 -2
  53. package/php/jspi/php_8_3.js +2 -2
@@ -0,0 +1,62 @@
1
+ /**
2
+ * IANA maintains a list of TLS extensions here:
3
+ * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml
4
+ */
5
+ export declare const ExtensionTypes: {
6
+ readonly server_name: 0;
7
+ readonly max_fragment_length: 1;
8
+ readonly client_certificate_url: 2;
9
+ readonly trusted_ca_keys: 3;
10
+ readonly truncated_hmac: 4;
11
+ readonly status_request: 5;
12
+ readonly user_mapping: 6;
13
+ readonly client_authz: 7;
14
+ readonly server_authz: 8;
15
+ readonly cert_type: 9;
16
+ readonly supported_groups: 10;
17
+ readonly ec_point_formats: 11;
18
+ readonly srp: 12;
19
+ readonly signature_algorithms: 13;
20
+ readonly use_srtp: 14;
21
+ readonly heartbeat: 15;
22
+ readonly application_layer_protocol_negotiation: 16;
23
+ readonly status_request_v2: 17;
24
+ readonly signed_certificate_timestamp: 18;
25
+ readonly client_certificate_type: 19;
26
+ readonly server_certificate_type: 20;
27
+ readonly padding: 21;
28
+ readonly encrypt_then_mac: 22;
29
+ readonly extended_master_secret: 23;
30
+ readonly token_binding: 24;
31
+ readonly cached_info: 25;
32
+ readonly tls_its: 26;
33
+ readonly compress_certificate: 27;
34
+ readonly record_size_limit: 28;
35
+ readonly pwd_protect: 29;
36
+ readonly pwo_clear: 30;
37
+ readonly password_salt: 31;
38
+ readonly ticket_pinning: 32;
39
+ readonly tls_cert_with_extern_psk: 33;
40
+ readonly delegated_credential: 34;
41
+ readonly session_ticket: 35;
42
+ readonly TLMSP: 36;
43
+ readonly TLMSP_proxying: 37;
44
+ readonly TLMSP_delegate: 38;
45
+ readonly supported_ekt_ciphers: 39;
46
+ readonly pre_shared_key: 41;
47
+ readonly early_data: 42;
48
+ readonly supported_versions: 43;
49
+ readonly cookie: 44;
50
+ readonly psk_key_exchange_modes: 45;
51
+ readonly reserved: 46;
52
+ readonly certificate_authorities: 47;
53
+ readonly oid_filters: 48;
54
+ readonly post_handshake_auth: 49;
55
+ readonly signature_algorithms_cert: 50;
56
+ readonly key_share: 51;
57
+ readonly transparency_info: 52;
58
+ readonly connection_id: 54;
59
+ };
60
+ export type ExtensionType = keyof typeof ExtensionTypes;
61
+ export declare const ExtensionNames: any;
62
+ export type ExtensionName = keyof typeof ExtensionNames;
@@ -0,0 +1,28 @@
1
+ export declare function flipObject(obj: Record<any, any>): any;
2
+ export declare function concatUint8Arrays(arrays: Uint8Array[]): Uint8Array;
3
+ export declare function concatArrayBuffers(buffers: ArrayBuffer[]): ArrayBuffer;
4
+ export declare function as2Bytes(value: number): Uint8Array;
5
+ export declare function as3Bytes(value: number): Uint8Array;
6
+ export declare function as8Bytes(value: number): Uint8Array;
7
+ export declare class ArrayBufferReader {
8
+ private buffer;
9
+ private view;
10
+ offset: number;
11
+ constructor(buffer: ArrayBuffer);
12
+ readUint8(): number;
13
+ readUint16(): number;
14
+ readUint32(): number;
15
+ readUint8Array(length: number): Uint8Array;
16
+ isFinished(): boolean;
17
+ }
18
+ export declare class ArrayBufferWriter {
19
+ buffer: ArrayBuffer;
20
+ view: DataView;
21
+ uint8Array: Uint8Array;
22
+ private offset;
23
+ constructor(length: number);
24
+ writeUint8(value: number): void;
25
+ writeUint16(value: number): void;
26
+ writeUint32(value: number): void;
27
+ writeUint8Array(value: Uint8Array): void;
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/web",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "PHP.wasm for the web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "type": "module",
30
30
  "main": "index.js",
31
31
  "types": "index.d.ts",
32
- "gitHead": "fd76ee2ebbe3d3ff71cf19ab7fe010dca8bcc17b",
32
+ "gitHead": "46db8582432b91516c1f25c591d2d0f346b99c5c",
33
33
  "engines": {
34
34
  "node": ">=16.15.1",
35
35
  "npm": ">=8.11.0"
@@ -42,9 +42,9 @@
42
42
  "wasm-feature-detect": "1.8.0",
43
43
  "ws": "8.18.0",
44
44
  "yargs": "17.7.2",
45
- "@php-wasm/universal": "1.0.4",
46
- "@php-wasm/util": "1.0.4",
47
- "@php-wasm/logger": "1.0.4",
48
- "@php-wasm/fs-journal": "1.0.4"
45
+ "@php-wasm/universal": "1.0.5",
46
+ "@php-wasm/util": "1.0.5",
47
+ "@php-wasm/logger": "1.0.5",
48
+ "@php-wasm/fs-journal": "1.0.5"
49
49
  }
50
50
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file