@php-wasm/node-7-4 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.
Binary file
Binary file
package/jspi/php_7_4.js CHANGED
@@ -3,15 +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 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, '7_4_33', 'php_7_4.wasm');
10
+ const currentDirPath =
11
+ typeof __dirname !== 'undefined'
12
+ ? __dirname
13
+ : path.dirname(fileURLToPath(import.meta.url));
14
+ const dependencyFilename = path.join(currentDirPath, '7_4_33', 'php_7_4.wasm');
13
15
  export { dependencyFilename };
14
- export const dependenciesTotalSize = 22427163;
16
+ export const dependenciesTotalSize = 22427158;
15
17
  const phpVersionString = '7.4.33';
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
@@ -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) => {
@@ -30972,13 +30974,13 @@ export function init(RuntimeName, PHPLoader) {
30972
30974
  // end include: postlibrary.js
30973
30975
 
30974
30976
  var ASM_CONSTS = {
30975
- 11305970: ($0) => {
30977
+ 11305954: ($0) => {
30976
30978
  if (!$0) {
30977
30979
  AL.alcErr = 0xa004;
30978
30980
  return 1;
30979
30981
  }
30980
30982
  },
30981
- 11306018: ($0) => {
30983
+ 11306002: ($0) => {
30982
30984
  if (!AL.currentCtx) {
30983
30985
  err('alGetProcAddress() called without a valid context');
30984
30986
  return 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node-7-4",
3
- "version": "3.0.36",
3
+ "version": "3.0.37",
4
4
  "description": "PHP 7.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": "ea21b3215956ace10f21e254fe483220168a120f",
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.36"
43
+ "@php-wasm/universal": "3.0.37"
44
44
  },
45
45
  "packageManager": "npm@10.9.2",
46
46
  "overrides": {