@php-wasm/node-8-5 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.
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 module is currently needed by code injected by the php-wasm Dockerfile.
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
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = path.dirname(__filename);
8
+ import { fileURLToPath } from 'url';
11
9
 
12
- const dependencyFilename = path.join(__dirname, '8_5_0', 'php_8_5.wasm');
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 = 30716158;
15
- const phpVersionString = '8.5.0';
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 = __dirname + '/';
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.36",
3
+ "version": "3.0.38",
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": "ea21b3215956ace10f21e254fe483220168a120f",
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.36"
43
+ "@php-wasm/universal": "3.0.38"
44
44
  },
45
45
  "packageManager": "npm@10.9.2",
46
46
  "overrides": {