@php-wasm/node 1.1.1 → 1.1.2

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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -3,26 +3,12 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '7_2_34', 'php_7_2.wasm');
24
10
  export { dependencyFilename };
25
- export const dependenciesTotalSize = 18084292;
11
+ export const dependenciesTotalSize = 18084171;
26
12
  export function init(RuntimeName, PHPLoader) {
27
13
  // The rest of the code comes from the built php.js file and esm-suffix.js
28
14
  // include: shell.js
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '7_3_33', 'php_7_3.wasm');
24
10
  export { dependencyFilename };
@@ -3,26 +3,12 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '7_4_33', 'php_7_4.wasm');
24
10
  export { dependencyFilename };
25
- export const dependenciesTotalSize = 18674777;
11
+ export const dependenciesTotalSize = 18674775;
26
12
  export function init(RuntimeName, PHPLoader) {
27
13
  // The rest of the code comes from the built php.js file and esm-suffix.js
28
14
  // include: shell.js
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_0_30', 'php_8_0.wasm');
24
10
  export { dependencyFilename };
@@ -3,26 +3,12 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_1_23', 'php_8_1.wasm');
24
10
  export { dependencyFilename };
25
- export const dependenciesTotalSize = 17368519;
11
+ export const dependenciesTotalSize = 17368520;
26
12
  export function init(RuntimeName, PHPLoader) {
27
13
  // The rest of the code comes from the built php.js file and esm-suffix.js
28
14
  // include: shell.js
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_2_10', 'php_8_2.wasm');
24
10
  export { dependencyFilename };
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_3_0', 'php_8_3.wasm');
24
10
  export { dependencyFilename };
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_4_0', 'php_8_4.wasm');
24
10
  export { dependencyFilename };
package/index.cjs CHANGED
@@ -7440,10 +7440,6 @@ var init_php_8_4 = __esm({
7440
7440
  "packages/php-wasm/node/jspi/php_8_4.js"() {
7441
7441
  "use strict";
7442
7442
  import_path = __toESM(require("path"), 1);
7443
- if (typeof __filename === "undefined") {
7444
- }
7445
- if (typeof __dirname + "/jspi" === "undefined") {
7446
- }
7447
7443
  dependencyFilename = import_path.default.join(__dirname + "/jspi", "8_4_0", "php_8_4.wasm");
7448
7444
  dependenciesTotalSize = 21290902;
7449
7445
  }
@@ -14859,12 +14855,8 @@ var init_php_8_3 = __esm({
14859
14855
  "packages/php-wasm/node/jspi/php_8_3.js"() {
14860
14856
  "use strict";
14861
14857
  import_path2 = __toESM(require("path"), 1);
14862
- if (typeof __filename === "undefined") {
14863
- }
14864
- if (typeof __dirname + "/jspi" === "undefined") {
14865
- }
14866
14858
  dependencyFilename2 = import_path2.default.join(__dirname + "/jspi", "8_3_0", "php_8_3.wasm");
14867
- dependenciesTotalSize2 = 17914909;
14859
+ dependenciesTotalSize2 = 17914907;
14868
14860
  }
14869
14861
  });
14870
14862
 
@@ -22278,12 +22270,8 @@ var init_php_8_2 = __esm({
22278
22270
  "packages/php-wasm/node/jspi/php_8_2.js"() {
22279
22271
  "use strict";
22280
22272
  import_path3 = __toESM(require("path"), 1);
22281
- if (typeof __filename === "undefined") {
22282
- }
22283
- if (typeof __dirname + "/jspi" === "undefined") {
22284
- }
22285
22273
  dependencyFilename3 = import_path3.default.join(__dirname + "/jspi", "8_2_10", "php_8_2.wasm");
22286
- dependenciesTotalSize3 = 17526705;
22274
+ dependenciesTotalSize3 = 17526706;
22287
22275
  }
22288
22276
  });
22289
22277
 
@@ -29694,10 +29682,6 @@ var init_php_8_1 = __esm({
29694
29682
  "packages/php-wasm/node/jspi/php_8_1.js"() {
29695
29683
  "use strict";
29696
29684
  import_path4 = __toESM(require("path"), 1);
29697
- if (typeof __filename === "undefined") {
29698
- }
29699
- if (typeof __dirname + "/jspi" === "undefined") {
29700
- }
29701
29685
  dependencyFilename4 = import_path4.default.join(__dirname + "/jspi", "8_1_23", "php_8_1.wasm");
29702
29686
  dependenciesTotalSize4 = 17182850;
29703
29687
  }
@@ -37075,10 +37059,6 @@ var init_php_8_0 = __esm({
37075
37059
  "packages/php-wasm/node/jspi/php_8_0.js"() {
37076
37060
  "use strict";
37077
37061
  import_path5 = __toESM(require("path"), 1);
37078
- if (typeof __filename === "undefined") {
37079
- }
37080
- if (typeof __dirname + "/jspi" === "undefined") {
37081
- }
37082
37062
  dependencyFilename5 = import_path5.default.join(__dirname + "/jspi", "8_0_30", "php_8_0.wasm");
37083
37063
  dependenciesTotalSize5 = 17167385;
37084
37064
  }
@@ -44447,10 +44427,6 @@ var init_php_7_4 = __esm({
44447
44427
  "packages/php-wasm/node/jspi/php_7_4.js"() {
44448
44428
  "use strict";
44449
44429
  import_path6 = __toESM(require("path"), 1);
44450
- if (typeof __filename === "undefined") {
44451
- }
44452
- if (typeof __dirname + "/jspi" === "undefined") {
44453
- }
44454
44430
  dependencyFilename6 = import_path6.default.join(__dirname + "/jspi", "7_4_33", "php_7_4.wasm");
44455
44431
  dependenciesTotalSize6 = 18394980;
44456
44432
  }
@@ -51814,10 +51790,6 @@ var init_php_7_3 = __esm({
51814
51790
  "packages/php-wasm/node/jspi/php_7_3.js"() {
51815
51791
  "use strict";
51816
51792
  import_path7 = __toESM(require("path"), 1);
51817
- if (typeof __filename === "undefined") {
51818
- }
51819
- if (typeof __dirname + "/jspi" === "undefined") {
51820
- }
51821
51793
  dependencyFilename7 = import_path7.default.join(__dirname + "/jspi", "7_3_33", "php_7_3.wasm");
51822
51794
  dependenciesTotalSize7 = 17913346;
51823
51795
  }
@@ -59181,12 +59153,8 @@ var init_php_7_2 = __esm({
59181
59153
  "packages/php-wasm/node/jspi/php_7_2.js"() {
59182
59154
  "use strict";
59183
59155
  import_path8 = __toESM(require("path"), 1);
59184
- if (typeof __filename === "undefined") {
59185
- }
59186
- if (typeof __dirname + "/jspi" === "undefined") {
59187
- }
59188
59156
  dependencyFilename8 = import_path8.default.join(__dirname + "/jspi", "7_2_34", "php_7_2.wasm");
59189
- dependenciesTotalSize8 = 17819045;
59157
+ dependenciesTotalSize8 = 17819046;
59190
59158
  }
59191
59159
  });
59192
59160
 
@@ -67283,10 +67251,6 @@ var init_php_8_42 = __esm({
67283
67251
  "packages/php-wasm/node/asyncify/php_8_4.js"() {
67284
67252
  "use strict";
67285
67253
  import_path9 = __toESM(require("path"), 1);
67286
- if (typeof __filename === "undefined") {
67287
- }
67288
- if (typeof __dirname + "/asyncify" === "undefined") {
67289
- }
67290
67254
  dependencyFilename9 = import_path9.default.join(__dirname + "/asyncify", "8_4_0", "php_8_4.wasm");
67291
67255
  dependenciesTotalSize9 = 21471547;
67292
67256
  }
@@ -75407,10 +75371,6 @@ var init_php_8_32 = __esm({
75407
75371
  "packages/php-wasm/node/asyncify/php_8_3.js"() {
75408
75372
  "use strict";
75409
75373
  import_path10 = __toESM(require("path"), 1);
75410
- if (typeof __filename === "undefined") {
75411
- }
75412
- if (typeof __dirname + "/asyncify" === "undefined") {
75413
- }
75414
75374
  dependencyFilename10 = import_path10.default.join(__dirname + "/asyncify", "8_3_0", "php_8_3.wasm");
75415
75375
  dependenciesTotalSize10 = 18098720;
75416
75376
  }
@@ -83531,10 +83491,6 @@ var init_php_8_22 = __esm({
83531
83491
  "packages/php-wasm/node/asyncify/php_8_2.js"() {
83532
83492
  "use strict";
83533
83493
  import_path11 = __toESM(require("path"), 1);
83534
- if (typeof __filename === "undefined") {
83535
- }
83536
- if (typeof __dirname + "/asyncify" === "undefined") {
83537
- }
83538
83494
  dependencyFilename11 = import_path11.default.join(__dirname + "/asyncify", "8_2_10", "php_8_2.wasm");
83539
83495
  dependenciesTotalSize11 = 17711840;
83540
83496
  }
@@ -91652,12 +91608,8 @@ var init_php_8_12 = __esm({
91652
91608
  "packages/php-wasm/node/asyncify/php_8_1.js"() {
91653
91609
  "use strict";
91654
91610
  import_path12 = __toESM(require("path"), 1);
91655
- if (typeof __filename === "undefined") {
91656
- }
91657
- if (typeof __dirname + "/asyncify" === "undefined") {
91658
- }
91659
91611
  dependencyFilename12 = import_path12.default.join(__dirname + "/asyncify", "8_1_23", "php_8_1.wasm");
91660
- dependenciesTotalSize12 = 17368519;
91612
+ dependenciesTotalSize12 = 17368520;
91661
91613
  }
91662
91614
  });
91663
91615
 
@@ -99739,10 +99691,6 @@ var init_php_8_02 = __esm({
99739
99691
  "packages/php-wasm/node/asyncify/php_8_0.js"() {
99740
99692
  "use strict";
99741
99693
  import_path13 = __toESM(require("path"), 1);
99742
- if (typeof __filename === "undefined") {
99743
- }
99744
- if (typeof __dirname + "/asyncify" === "undefined") {
99745
- }
99746
99694
  dependencyFilename13 = import_path13.default.join(__dirname + "/asyncify", "8_0_30", "php_8_0.wasm");
99747
99695
  dependenciesTotalSize13 = 17379367;
99748
99696
  }
@@ -107788,12 +107736,8 @@ var init_php_7_42 = __esm({
107788
107736
  "packages/php-wasm/node/asyncify/php_7_4.js"() {
107789
107737
  "use strict";
107790
107738
  import_path14 = __toESM(require("path"), 1);
107791
- if (typeof __filename === "undefined") {
107792
- }
107793
- if (typeof __dirname + "/asyncify" === "undefined") {
107794
- }
107795
107739
  dependencyFilename14 = import_path14.default.join(__dirname + "/asyncify", "7_4_33", "php_7_4.wasm");
107796
- dependenciesTotalSize14 = 18674777;
107740
+ dependenciesTotalSize14 = 18674775;
107797
107741
  }
107798
107742
  });
107799
107743
 
@@ -115832,10 +115776,6 @@ var init_php_7_32 = __esm({
115832
115776
  "packages/php-wasm/node/asyncify/php_7_3.js"() {
115833
115777
  "use strict";
115834
115778
  import_path15 = __toESM(require("path"), 1);
115835
- if (typeof __filename === "undefined") {
115836
- }
115837
- if (typeof __dirname + "/asyncify" === "undefined") {
115838
- }
115839
115779
  dependencyFilename15 = import_path15.default.join(__dirname + "/asyncify", "7_3_33", "php_7_3.wasm");
115840
115780
  dependenciesTotalSize15 = 18172201;
115841
115781
  }
@@ -123876,12 +123816,8 @@ var init_php_7_22 = __esm({
123876
123816
  "packages/php-wasm/node/asyncify/php_7_2.js"() {
123877
123817
  "use strict";
123878
123818
  import_path16 = __toESM(require("path"), 1);
123879
- if (typeof __filename === "undefined") {
123880
- }
123881
- if (typeof __dirname + "/asyncify" === "undefined") {
123882
- }
123883
123819
  dependencyFilename16 = import_path16.default.join(__dirname + "/asyncify", "7_2_34", "php_7_2.wasm");
123884
- dependenciesTotalSize16 = 18084292;
123820
+ dependenciesTotalSize16 = 18084171;
123885
123821
  }
123886
123822
  });
123887
123823
 
package/index.js CHANGED
@@ -7430,10 +7430,6 @@ var dependencyFilename, dependenciesTotalSize;
7430
7430
  var init_php_8_4 = __esm({
7431
7431
  "packages/php-wasm/node/jspi/php_8_4.js"() {
7432
7432
  "use strict";
7433
- if (typeof __filename === "undefined") {
7434
- }
7435
- if (typeof __dirname + "/jspi" === "undefined") {
7436
- }
7437
7433
  dependencyFilename = path.join(__dirname + "/jspi", "8_4_0", "php_8_4.wasm");
7438
7434
  dependenciesTotalSize = 21290902;
7439
7435
  }
@@ -14849,12 +14845,8 @@ var dependencyFilename2, dependenciesTotalSize2;
14849
14845
  var init_php_8_3 = __esm({
14850
14846
  "packages/php-wasm/node/jspi/php_8_3.js"() {
14851
14847
  "use strict";
14852
- if (typeof __filename === "undefined") {
14853
- }
14854
- if (typeof __dirname + "/jspi" === "undefined") {
14855
- }
14856
14848
  dependencyFilename2 = path2.join(__dirname + "/jspi", "8_3_0", "php_8_3.wasm");
14857
- dependenciesTotalSize2 = 17914909;
14849
+ dependenciesTotalSize2 = 17914907;
14858
14850
  }
14859
14851
  });
14860
14852
 
@@ -22268,12 +22260,8 @@ var dependencyFilename3, dependenciesTotalSize3;
22268
22260
  var init_php_8_2 = __esm({
22269
22261
  "packages/php-wasm/node/jspi/php_8_2.js"() {
22270
22262
  "use strict";
22271
- if (typeof __filename === "undefined") {
22272
- }
22273
- if (typeof __dirname + "/jspi" === "undefined") {
22274
- }
22275
22263
  dependencyFilename3 = path3.join(__dirname + "/jspi", "8_2_10", "php_8_2.wasm");
22276
- dependenciesTotalSize3 = 17526705;
22264
+ dependenciesTotalSize3 = 17526706;
22277
22265
  }
22278
22266
  });
22279
22267
 
@@ -29684,10 +29672,6 @@ var dependencyFilename4, dependenciesTotalSize4;
29684
29672
  var init_php_8_1 = __esm({
29685
29673
  "packages/php-wasm/node/jspi/php_8_1.js"() {
29686
29674
  "use strict";
29687
- if (typeof __filename === "undefined") {
29688
- }
29689
- if (typeof __dirname + "/jspi" === "undefined") {
29690
- }
29691
29675
  dependencyFilename4 = path4.join(__dirname + "/jspi", "8_1_23", "php_8_1.wasm");
29692
29676
  dependenciesTotalSize4 = 17182850;
29693
29677
  }
@@ -37065,10 +37049,6 @@ var dependencyFilename5, dependenciesTotalSize5;
37065
37049
  var init_php_8_0 = __esm({
37066
37050
  "packages/php-wasm/node/jspi/php_8_0.js"() {
37067
37051
  "use strict";
37068
- if (typeof __filename === "undefined") {
37069
- }
37070
- if (typeof __dirname + "/jspi" === "undefined") {
37071
- }
37072
37052
  dependencyFilename5 = path5.join(__dirname + "/jspi", "8_0_30", "php_8_0.wasm");
37073
37053
  dependenciesTotalSize5 = 17167385;
37074
37054
  }
@@ -44437,10 +44417,6 @@ var dependencyFilename6, dependenciesTotalSize6;
44437
44417
  var init_php_7_4 = __esm({
44438
44418
  "packages/php-wasm/node/jspi/php_7_4.js"() {
44439
44419
  "use strict";
44440
- if (typeof __filename === "undefined") {
44441
- }
44442
- if (typeof __dirname + "/jspi" === "undefined") {
44443
- }
44444
44420
  dependencyFilename6 = path6.join(__dirname + "/jspi", "7_4_33", "php_7_4.wasm");
44445
44421
  dependenciesTotalSize6 = 18394980;
44446
44422
  }
@@ -51804,10 +51780,6 @@ var dependencyFilename7, dependenciesTotalSize7;
51804
51780
  var init_php_7_3 = __esm({
51805
51781
  "packages/php-wasm/node/jspi/php_7_3.js"() {
51806
51782
  "use strict";
51807
- if (typeof __filename === "undefined") {
51808
- }
51809
- if (typeof __dirname + "/jspi" === "undefined") {
51810
- }
51811
51783
  dependencyFilename7 = path7.join(__dirname + "/jspi", "7_3_33", "php_7_3.wasm");
51812
51784
  dependenciesTotalSize7 = 17913346;
51813
51785
  }
@@ -59171,12 +59143,8 @@ var dependencyFilename8, dependenciesTotalSize8;
59171
59143
  var init_php_7_2 = __esm({
59172
59144
  "packages/php-wasm/node/jspi/php_7_2.js"() {
59173
59145
  "use strict";
59174
- if (typeof __filename === "undefined") {
59175
- }
59176
- if (typeof __dirname + "/jspi" === "undefined") {
59177
- }
59178
59146
  dependencyFilename8 = path8.join(__dirname + "/jspi", "7_2_34", "php_7_2.wasm");
59179
- dependenciesTotalSize8 = 17819045;
59147
+ dependenciesTotalSize8 = 17819046;
59180
59148
  }
59181
59149
  });
59182
59150
 
@@ -67273,10 +67241,6 @@ var dependencyFilename9, dependenciesTotalSize9;
67273
67241
  var init_php_8_42 = __esm({
67274
67242
  "packages/php-wasm/node/asyncify/php_8_4.js"() {
67275
67243
  "use strict";
67276
- if (typeof __filename === "undefined") {
67277
- }
67278
- if (typeof __dirname + "/asyncify" === "undefined") {
67279
- }
67280
67244
  dependencyFilename9 = path9.join(__dirname + "/asyncify", "8_4_0", "php_8_4.wasm");
67281
67245
  dependenciesTotalSize9 = 21471547;
67282
67246
  }
@@ -75397,10 +75361,6 @@ var dependencyFilename10, dependenciesTotalSize10;
75397
75361
  var init_php_8_32 = __esm({
75398
75362
  "packages/php-wasm/node/asyncify/php_8_3.js"() {
75399
75363
  "use strict";
75400
- if (typeof __filename === "undefined") {
75401
- }
75402
- if (typeof __dirname + "/asyncify" === "undefined") {
75403
- }
75404
75364
  dependencyFilename10 = path10.join(__dirname + "/asyncify", "8_3_0", "php_8_3.wasm");
75405
75365
  dependenciesTotalSize10 = 18098720;
75406
75366
  }
@@ -83521,10 +83481,6 @@ var dependencyFilename11, dependenciesTotalSize11;
83521
83481
  var init_php_8_22 = __esm({
83522
83482
  "packages/php-wasm/node/asyncify/php_8_2.js"() {
83523
83483
  "use strict";
83524
- if (typeof __filename === "undefined") {
83525
- }
83526
- if (typeof __dirname + "/asyncify" === "undefined") {
83527
- }
83528
83484
  dependencyFilename11 = path11.join(__dirname + "/asyncify", "8_2_10", "php_8_2.wasm");
83529
83485
  dependenciesTotalSize11 = 17711840;
83530
83486
  }
@@ -91642,12 +91598,8 @@ var dependencyFilename12, dependenciesTotalSize12;
91642
91598
  var init_php_8_12 = __esm({
91643
91599
  "packages/php-wasm/node/asyncify/php_8_1.js"() {
91644
91600
  "use strict";
91645
- if (typeof __filename === "undefined") {
91646
- }
91647
- if (typeof __dirname + "/asyncify" === "undefined") {
91648
- }
91649
91601
  dependencyFilename12 = path12.join(__dirname + "/asyncify", "8_1_23", "php_8_1.wasm");
91650
- dependenciesTotalSize12 = 17368519;
91602
+ dependenciesTotalSize12 = 17368520;
91651
91603
  }
91652
91604
  });
91653
91605
 
@@ -99729,10 +99681,6 @@ var dependencyFilename13, dependenciesTotalSize13;
99729
99681
  var init_php_8_02 = __esm({
99730
99682
  "packages/php-wasm/node/asyncify/php_8_0.js"() {
99731
99683
  "use strict";
99732
- if (typeof __filename === "undefined") {
99733
- }
99734
- if (typeof __dirname + "/asyncify" === "undefined") {
99735
- }
99736
99684
  dependencyFilename13 = path13.join(__dirname + "/asyncify", "8_0_30", "php_8_0.wasm");
99737
99685
  dependenciesTotalSize13 = 17379367;
99738
99686
  }
@@ -107778,12 +107726,8 @@ var dependencyFilename14, dependenciesTotalSize14;
107778
107726
  var init_php_7_42 = __esm({
107779
107727
  "packages/php-wasm/node/asyncify/php_7_4.js"() {
107780
107728
  "use strict";
107781
- if (typeof __filename === "undefined") {
107782
- }
107783
- if (typeof __dirname + "/asyncify" === "undefined") {
107784
- }
107785
107729
  dependencyFilename14 = path14.join(__dirname + "/asyncify", "7_4_33", "php_7_4.wasm");
107786
- dependenciesTotalSize14 = 18674777;
107730
+ dependenciesTotalSize14 = 18674775;
107787
107731
  }
107788
107732
  });
107789
107733
 
@@ -115822,10 +115766,6 @@ var dependencyFilename15, dependenciesTotalSize15;
115822
115766
  var init_php_7_32 = __esm({
115823
115767
  "packages/php-wasm/node/asyncify/php_7_3.js"() {
115824
115768
  "use strict";
115825
- if (typeof __filename === "undefined") {
115826
- }
115827
- if (typeof __dirname + "/asyncify" === "undefined") {
115828
- }
115829
115769
  dependencyFilename15 = path15.join(__dirname + "/asyncify", "7_3_33", "php_7_3.wasm");
115830
115770
  dependenciesTotalSize15 = 18172201;
115831
115771
  }
@@ -123866,12 +123806,8 @@ var dependencyFilename16, dependenciesTotalSize16;
123866
123806
  var init_php_7_22 = __esm({
123867
123807
  "packages/php-wasm/node/asyncify/php_7_2.js"() {
123868
123808
  "use strict";
123869
- if (typeof __filename === "undefined") {
123870
- }
123871
- if (typeof __dirname + "/asyncify" === "undefined") {
123872
- }
123873
123809
  dependencyFilename16 = path16.join(__dirname + "/asyncify", "7_2_34", "php_7_2.wasm");
123874
- dependenciesTotalSize16 = 18084292;
123810
+ dependenciesTotalSize16 = 18084171;
123875
123811
  }
123876
123812
  });
123877
123813
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/jspi/php_7_2.js CHANGED
@@ -3,26 +3,12 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '7_2_34', 'php_7_2.wasm');
24
10
  export { dependencyFilename };
25
- export const dependenciesTotalSize = 17819045;
11
+ export const dependenciesTotalSize = 17819046;
26
12
  export function init(RuntimeName, PHPLoader) {
27
13
  // The rest of the code comes from the built php.js file and esm-suffix.js
28
14
  // include: shell.js
package/jspi/php_7_3.js CHANGED
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '7_3_33', 'php_7_3.wasm');
24
10
  export { dependencyFilename };
package/jspi/php_7_4.js CHANGED
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '7_4_33', 'php_7_4.wasm');
24
10
  export { dependencyFilename };
package/jspi/php_8_0.js CHANGED
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_0_30', 'php_8_0.wasm');
24
10
  export { dependencyFilename };
package/jspi/php_8_1.js CHANGED
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_1_23', 'php_8_1.wasm');
24
10
  export { dependencyFilename };
package/jspi/php_8_2.js CHANGED
@@ -3,26 +3,12 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_2_10', 'php_8_2.wasm');
24
10
  export { dependencyFilename };
25
- export const dependenciesTotalSize = 17526705;
11
+ export const dependenciesTotalSize = 17526706;
26
12
  export function init(RuntimeName, PHPLoader) {
27
13
  // The rest of the code comes from the built php.js file and esm-suffix.js
28
14
  // include: shell.js
package/jspi/php_8_3.js CHANGED
@@ -3,26 +3,12 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_3_0', 'php_8_3.wasm');
24
10
  export { dependencyFilename };
25
- export const dependenciesTotalSize = 17914909;
11
+ export const dependenciesTotalSize = 17914907;
26
12
  export function init(RuntimeName, PHPLoader) {
27
13
  // The rest of the code comes from the built php.js file and esm-suffix.js
28
14
  // include: shell.js
package/jspi/php_8_4.js CHANGED
@@ -3,22 +3,8 @@
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
- import { fileURLToPath } from 'url';
7
-
8
- /**
9
- * __filename and __dirname are not available in ES modules, so we need to
10
- * polyfill them to ensure the debug command (npx nx debug playground-cli)
11
- * works.
12
- *
13
- * @see https://nodejs.org/api/esm.html#no-__filename-or-__dirname
14
- */
6
+ // Note: The path module is currently needed by code injected by the php-wasm Dockerfile.
15
7
  import path from 'path';
16
- if (typeof __filename === 'undefined') {
17
- var __filename = fileURLToPath(import.meta.url);
18
- }
19
- if (typeof __dirname === 'undefined') {
20
- var __dirname = path.dirname(__filename);
21
- }
22
8
 
23
9
  const dependencyFilename = path.join(__dirname, '8_4_0', 'php_8_4.wasm');
24
10
  export { dependencyFilename };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "license": "GPL-2.0-or-later",
40
40
  "types": "index.d.ts",
41
- "gitHead": "8bff9428d68d3c4a5e84c6cd633e82bf8512a4e3",
41
+ "gitHead": "59c2db1ec41efa10ffa01e6e1ea7ac6e78bc693e",
42
42
  "engines": {
43
43
  "node": ">=20.18.3",
44
44
  "npm": ">=10.1.0"
@@ -50,12 +50,12 @@
50
50
  "wasm-feature-detect": "1.8.0",
51
51
  "ws": "8.18.1",
52
52
  "yargs": "17.7.2",
53
- "@php-wasm/node-polyfills": "1.1.1",
54
- "@php-wasm/universal": "1.1.1",
55
- "@php-wasm/util": "1.1.1",
56
- "@php-wasm/logger": "1.1.1",
57
- "@wp-playground/common": "1.1.1",
58
- "@wp-playground/wordpress": "1.1.1"
53
+ "@php-wasm/node-polyfills": "1.1.2",
54
+ "@php-wasm/universal": "1.1.2",
55
+ "@php-wasm/util": "1.1.2",
56
+ "@php-wasm/logger": "1.1.2",
57
+ "@wp-playground/common": "1.1.2",
58
+ "@wp-playground/wordpress": "1.1.2"
59
59
  },
60
60
  "overrides": {
61
61
  "rollup": "^4.34.6",