@php-wasm/node-8-5 3.0.36 → 3.0.37
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_5_0 → 8_5_1}/php_8_5.wasm +0 -0
- package/asyncify/extensions/intl/8_5/intl.so +0 -0
- package/asyncify/extensions/xdebug/8_5/xdebug.so +0 -0
- package/asyncify/php_8_5.js +478 -193
- package/jspi/{8_5_0 → 8_5_1}/php_8_5.wasm +0 -0
- package/jspi/extensions/intl/8_5/intl.so +0 -0
- package/jspi/extensions/xdebug/8_5/xdebug.so +0 -0
- package/jspi/php_8_5.js +10 -8
- package/package.json +3 -3
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/jspi/php_8_5.js
CHANGED
|
@@ -3,16 +3,18 @@
|
|
|
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
|
|
7
|
-
import { fileURLToPath } from 'url';
|
|
6
|
+
// Note: The path and url modules are currently needed by code injected by the php-wasm Dockerfile.
|
|
8
7
|
import path from 'path';
|
|
9
|
-
|
|
10
|
-
const __dirname = path.dirname(__filename);
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
11
9
|
|
|
12
|
-
const
|
|
10
|
+
const currentDirPath =
|
|
11
|
+
typeof __dirname !== 'undefined'
|
|
12
|
+
? __dirname
|
|
13
|
+
: path.dirname(fileURLToPath(import.meta.url));
|
|
14
|
+
const dependencyFilename = path.join(currentDirPath, '8_5_1', 'php_8_5.wasm');
|
|
13
15
|
export { dependencyFilename };
|
|
14
|
-
export const dependenciesTotalSize =
|
|
15
|
-
const phpVersionString = '8.5.
|
|
16
|
+
export const dependenciesTotalSize = 30717737;
|
|
17
|
+
const phpVersionString = '8.5.1';
|
|
16
18
|
export function init(RuntimeName, PHPLoader) {
|
|
17
19
|
// The rest of the code comes from the built php.js file and esm-suffix.js
|
|
18
20
|
// include: shell.js
|
|
@@ -75,7 +77,7 @@ export function init(RuntimeName, PHPLoader) {
|
|
|
75
77
|
// the complexity of lazy-loading.
|
|
76
78
|
var fs = require('fs');
|
|
77
79
|
|
|
78
|
-
scriptDirectory =
|
|
80
|
+
scriptDirectory = currentDirPath + '/';
|
|
79
81
|
|
|
80
82
|
// include: node_shell_read.js
|
|
81
83
|
readBinary = (filename) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/node-8-5",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.37",
|
|
4
4
|
"description": "PHP 8.5 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": "1ac56b78f05f1c517f6b56beb527d6826b53aa82",
|
|
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.37"
|
|
44
44
|
},
|
|
45
45
|
"packageManager": "npm@10.9.2",
|
|
46
46
|
"overrides": {
|