@php-wasm/node 0.9.17 → 0.9.18

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.
Files changed (3) hide show
  1. package/index.js +22 -19
  2. package/noop.js +4 -1
  3. package/package.json +7 -7
package/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  import { createRequire as topLevelCreateRequire } from 'module';
2
- const require = topLevelCreateRequire(import.meta.url);
2
+ const require = topLevelCreateRequire(import.meta.url);
3
+ const __dirname = new URL('.', import.meta.url).pathname;
4
+ const __filename = new URL(import.meta.url).pathname;
5
+
3
6
  var __defProp = Object.defineProperty;
4
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
8
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
@@ -55,7 +58,7 @@ function init(RuntimeName, PHPLoader) {
55
58
  if (ENVIRONMENT_IS_NODE) {
56
59
  var fs = __require("fs");
57
60
  var nodePath = __require("path");
58
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
61
+ scriptDirectory = __dirname + "/";
59
62
  read_ = (filename, binary) => {
60
63
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
61
64
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -7491,7 +7494,7 @@ var dependencyFilename, dependenciesTotalSize;
7491
7494
  var init_php_8_3 = __esm({
7492
7495
  "packages/php-wasm/node/public/php_8_3.js"() {
7493
7496
  "use strict";
7494
- dependencyFilename = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/8_3_0/php_8_3.wasm";
7497
+ dependencyFilename = __dirname + "/8_3_0/php_8_3.wasm";
7495
7498
  dependenciesTotalSize = 15312039;
7496
7499
  }
7497
7500
  });
@@ -7534,7 +7537,7 @@ function init2(RuntimeName, PHPLoader) {
7534
7537
  if (ENVIRONMENT_IS_NODE) {
7535
7538
  var fs = __require("fs");
7536
7539
  var nodePath = __require("path");
7537
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
7540
+ scriptDirectory = __dirname + "/";
7538
7541
  read_ = (filename, binary) => {
7539
7542
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
7540
7543
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -14970,7 +14973,7 @@ var dependencyFilename2, dependenciesTotalSize2;
14970
14973
  var init_php_8_2 = __esm({
14971
14974
  "packages/php-wasm/node/public/php_8_2.js"() {
14972
14975
  "use strict";
14973
- dependencyFilename2 = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/8_2_10/php_8_2.wasm";
14976
+ dependencyFilename2 = __dirname + "/8_2_10/php_8_2.wasm";
14974
14977
  dependenciesTotalSize2 = 14931833;
14975
14978
  }
14976
14979
  });
@@ -15013,7 +15016,7 @@ function init3(RuntimeName, PHPLoader) {
15013
15016
  if (ENVIRONMENT_IS_NODE) {
15014
15017
  var fs = __require("fs");
15015
15018
  var nodePath = __require("path");
15016
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
15019
+ scriptDirectory = __dirname + "/";
15017
15020
  read_ = (filename, binary) => {
15018
15021
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
15019
15022
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -22443,7 +22446,7 @@ var dependencyFilename3, dependenciesTotalSize3;
22443
22446
  var init_php_8_1 = __esm({
22444
22447
  "packages/php-wasm/node/public/php_8_1.js"() {
22445
22448
  "use strict";
22446
- dependencyFilename3 = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/8_1_23/php_8_1.wasm";
22449
+ dependencyFilename3 = __dirname + "/8_1_23/php_8_1.wasm";
22447
22450
  dependenciesTotalSize3 = 14676594;
22448
22451
  }
22449
22452
  });
@@ -22486,7 +22489,7 @@ function init4(RuntimeName, PHPLoader) {
22486
22489
  if (ENVIRONMENT_IS_NODE) {
22487
22490
  var fs = __require("fs");
22488
22491
  var nodePath = __require("path");
22489
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
22492
+ scriptDirectory = __dirname + "/";
22490
22493
  read_ = (filename, binary) => {
22491
22494
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
22492
22495
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -29872,7 +29875,7 @@ var dependencyFilename4, dependenciesTotalSize4;
29872
29875
  var init_php_8_0 = __esm({
29873
29876
  "packages/php-wasm/node/public/php_8_0.js"() {
29874
29877
  "use strict";
29875
- dependencyFilename4 = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/8_0_30/php_8_0.wasm";
29878
+ dependencyFilename4 = __dirname + "/8_0_30/php_8_0.wasm";
29876
29879
  dependenciesTotalSize4 = 14694447;
29877
29880
  }
29878
29881
  });
@@ -29915,7 +29918,7 @@ function init5(RuntimeName, PHPLoader) {
29915
29918
  if (ENVIRONMENT_IS_NODE) {
29916
29919
  var fs = __require("fs");
29917
29920
  var nodePath = __require("path");
29918
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
29921
+ scriptDirectory = __dirname + "/";
29919
29922
  read_ = (filename, binary) => {
29920
29923
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
29921
29924
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -37287,7 +37290,7 @@ var dependencyFilename5, dependenciesTotalSize5;
37287
37290
  var init_php_7_4 = __esm({
37288
37291
  "packages/php-wasm/node/public/php_7_4.js"() {
37289
37292
  "use strict";
37290
- dependencyFilename5 = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/7_4_33/php_7_4.wasm";
37293
+ dependencyFilename5 = __dirname + "/7_4_33/php_7_4.wasm";
37291
37294
  dependenciesTotalSize5 = 15184093;
37292
37295
  }
37293
37296
  });
@@ -37330,7 +37333,7 @@ function init6(RuntimeName, PHPLoader) {
37330
37333
  if (ENVIRONMENT_IS_NODE) {
37331
37334
  var fs = __require("fs");
37332
37335
  var nodePath = __require("path");
37333
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
37336
+ scriptDirectory = __dirname + "/";
37334
37337
  read_ = (filename, binary) => {
37335
37338
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
37336
37339
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -44676,7 +44679,7 @@ var dependencyFilename6, dependenciesTotalSize6;
44676
44679
  var init_php_7_3 = __esm({
44677
44680
  "packages/php-wasm/node/public/php_7_3.js"() {
44678
44681
  "use strict";
44679
- dependencyFilename6 = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/7_3_33/php_7_3.wasm";
44682
+ dependencyFilename6 = __dirname + "/7_3_33/php_7_3.wasm";
44680
44683
  dependenciesTotalSize6 = 14496257;
44681
44684
  }
44682
44685
  });
@@ -44719,7 +44722,7 @@ function init7(RuntimeName, PHPLoader) {
44719
44722
  if (ENVIRONMENT_IS_NODE) {
44720
44723
  var fs = __require("fs");
44721
44724
  var nodePath = __require("path");
44722
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
44725
+ scriptDirectory = __dirname + "/";
44723
44726
  read_ = (filename, binary) => {
44724
44727
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
44725
44728
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -52065,7 +52068,7 @@ var dependencyFilename7, dependenciesTotalSize7;
52065
52068
  var init_php_7_2 = __esm({
52066
52069
  "packages/php-wasm/node/public/php_7_2.js"() {
52067
52070
  "use strict";
52068
- dependencyFilename7 = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/7_2_34/php_7_2.wasm";
52071
+ dependencyFilename7 = __dirname + "/7_2_34/php_7_2.wasm";
52069
52072
  dependenciesTotalSize7 = 14371503;
52070
52073
  }
52071
52074
  });
@@ -52108,7 +52111,7 @@ function init8(RuntimeName, PHPLoader) {
52108
52111
  if (ENVIRONMENT_IS_NODE) {
52109
52112
  var fs = __require("fs");
52110
52113
  var nodePath = __require("path");
52111
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
52114
+ scriptDirectory = __dirname + "/";
52112
52115
  read_ = (filename, binary) => {
52113
52116
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
52114
52117
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -59440,7 +59443,7 @@ var dependencyFilename8, dependenciesTotalSize8;
59440
59443
  var init_php_7_1 = __esm({
59441
59444
  "packages/php-wasm/node/public/php_7_1.js"() {
59442
59445
  "use strict";
59443
- dependencyFilename8 = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/7_1_30/php_7_1.wasm";
59446
+ dependencyFilename8 = __dirname + "/7_1_30/php_7_1.wasm";
59444
59447
  dependenciesTotalSize8 = 13822227;
59445
59448
  }
59446
59449
  });
@@ -59483,7 +59486,7 @@ function init9(RuntimeName, PHPLoader) {
59483
59486
  if (ENVIRONMENT_IS_NODE) {
59484
59487
  var fs = __require("fs");
59485
59488
  var nodePath = __require("path");
59486
- scriptDirectory = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/";
59489
+ scriptDirectory = __dirname + "/";
59487
59490
  read_ = (filename, binary) => {
59488
59491
  filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
59489
59492
  return fs.readFileSync(filename, binary ? void 0 : "utf8");
@@ -66829,7 +66832,7 @@ var dependencyFilename9, dependenciesTotalSize9;
66829
66832
  var init_php_7_0 = __esm({
66830
66833
  "packages/php-wasm/node/public/php_7_0.js"() {
66831
66834
  "use strict";
66832
- dependencyFilename9 = "/home/runner/work/wordpress-playground/wordpress-playground/packages/php-wasm/node/public/7_0_33/php_7_0.wasm";
66835
+ dependencyFilename9 = __dirname + "/7_0_33/php_7_0.wasm";
66833
66836
  dependenciesTotalSize9 = 13341609;
66834
66837
  }
66835
66838
  });
package/noop.js CHANGED
@@ -1,2 +1,5 @@
1
1
  import { createRequire as topLevelCreateRequire } from 'module';
2
- const require = topLevelCreateRequire(import.meta.url);
2
+ const require = topLevelCreateRequire(import.meta.url);
3
+ const __dirname = new URL('.', import.meta.url).pathname;
4
+ const __filename = new URL(import.meta.url).pathname;
5
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "0.9.17",
3
+ "version": "0.9.18",
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": "1e35a9e145580de64bbe3c11391d31513f5bdfa8",
41
+ "gitHead": "13942923e970013ae9448c658e7c9ba8d4d85619",
42
42
  "engines": {
43
43
  "node": ">=18.18.0",
44
44
  "npm": ">=8.11.0"
@@ -49,10 +49,10 @@
49
49
  "ini": "4.1.2",
50
50
  "ws": "8.13.0",
51
51
  "yargs": "17.7.2",
52
- "@php-wasm/node-polyfills": "0.9.17",
53
- "@php-wasm/universal": "0.9.17",
54
- "@php-wasm/logger": "0.9.17",
55
- "@php-wasm/util": "0.9.17",
56
- "@wp-playground/common": "0.9.17"
52
+ "@php-wasm/node-polyfills": "0.9.18",
53
+ "@php-wasm/universal": "0.9.18",
54
+ "@php-wasm/logger": "0.9.18",
55
+ "@php-wasm/util": "0.9.18",
56
+ "@wp-playground/common": "0.9.18"
57
57
  }
58
58
  }