@php-wasm/node-8-4 3.0.36 → 3.0.38
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_4_15 → 8_4_16}/php_8_4.wasm +0 -0
- package/asyncify/extensions/intl/8_4/intl.so +0 -0
- package/asyncify/extensions/xdebug/8_4/xdebug.so +0 -0
- package/asyncify/php_8_4.js +477 -192
- package/jspi/8_4_16/php_8_4.wasm +0 -0
- package/jspi/extensions/intl/8_4/intl.so +0 -0
- package/jspi/extensions/xdebug/8_4/xdebug.so +0 -0
- package/jspi/php_8_4.js +9 -4
- package/package.json +3 -3
package/jspi/8_4_16/php_8_4.wasm
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/jspi/php_8_4.js
CHANGED
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
// this code in Node.js as an ES module.
|
|
4
4
|
import { createRequire } from 'module';
|
|
5
5
|
const require = createRequire(import.meta.url);
|
|
6
|
-
// Note: The path
|
|
6
|
+
// Note: The path and url modules are currently needed by code injected by the php-wasm Dockerfile.
|
|
7
7
|
import path from 'path';
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
+
const currentDirPath =
|
|
11
|
+
typeof __dirname !== 'undefined'
|
|
12
|
+
? __dirname
|
|
13
|
+
: path.dirname(fileURLToPath(import.meta.url));
|
|
14
|
+
const dependencyFilename = path.join(currentDirPath, '8_4_16', 'php_8_4.wasm');
|
|
10
15
|
export { dependencyFilename };
|
|
11
|
-
export const dependenciesTotalSize =
|
|
16
|
+
export const dependenciesTotalSize = 29265092;
|
|
12
17
|
const phpVersionString = '8.4.16';
|
|
13
18
|
export function init(RuntimeName, PHPLoader) {
|
|
14
19
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
@@ -72,7 +77,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
72
77
|
// the complexity of lazy-loading.
|
|
73
78
|
var fs = require('fs');
|
|
74
79
|
|
|
75
|
-
scriptDirectory =
|
|
80
|
+
scriptDirectory = currentDirPath + '/';
|
|
76
81
|
|
|
77
82
|
// include: node_shell_read.js
|
|
78
83
|
readBinary = (filename) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/node-8-4",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.38",
|
|
4
4
|
"description": "PHP 8.4 WebAssembly binaries for node",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"node": ">=20.18.3",
|
|
36
36
|
"npm": ">=10.1.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c49a4f463e0a868247b4e2a847318ca395502de7",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"ini": "4.1.2",
|
|
41
41
|
"wasm-feature-detect": "1.8.0",
|
|
42
42
|
"ws": "8.18.3",
|
|
43
|
-
"@php-wasm/universal": "3.0.
|
|
43
|
+
"@php-wasm/universal": "3.0.38"
|
|
44
44
|
},
|
|
45
45
|
"packageManager": "npm@10.9.2",
|
|
46
46
|
"overrides": {
|