@php-wasm/node 0.1.39 → 0.1.40

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 (2) hide show
  1. package/index.cjs +3 -2
  2. package/package.json +5 -4
package/index.cjs CHANGED
@@ -67156,7 +67156,6 @@ function rethrowFileSystemError(messagePrefix = "") {
67156
67156
  }
67157
67157
 
67158
67158
  // packages/php-wasm/universal/src/lib/load-php-runtime.ts
67159
- var import_meta = {};
67160
67159
  async function loadPHPRuntime(phpLoaderModule, phpModuleArgs = {}, dataDependenciesModules = []) {
67161
67160
  let resolvePhpReady, resolveDepsReady;
67162
67161
  const depsReady = new Promise((resolve) => {
@@ -67206,7 +67205,9 @@ function getLoadedRuntime(id) {
67206
67205
  return loadedRuntimes[id];
67207
67206
  }
67208
67207
  var currentJsRuntime = function() {
67209
- if (typeof window !== "undefined" && !import_meta.env.TEST) {
67208
+ if (typeof process !== "undefined" && process.release?.name === "node") {
67209
+ return "NODE";
67210
+ } else if (typeof window !== "undefined") {
67210
67211
  return "WEB";
67211
67212
  } else if (typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope) {
67212
67213
  return "WORKER";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,12 +28,13 @@
28
28
  "license": "GPL-2.0-or-later",
29
29
  "main": "index.cjs",
30
30
  "types": "index.d.ts",
31
- "gitHead": "18dcdc0d24417bf9207e113d4832229e80c68a28",
31
+ "gitHead": "d4817100bc505f21309e07a5b2cec1f2be38e85d",
32
32
  "dependencies": {
33
33
  "comlink": "4.4.1",
34
34
  "express": "4.18.2",
35
35
  "ws": "8.13.0",
36
- "@php-wasm/universal": "0.1.39",
37
- "@php-wasm/util": "0.1.37"
36
+ "yargs": "17.7.2",
37
+ "@php-wasm/universal": "0.1.40",
38
+ "@php-wasm/util": "0.1.40"
38
39
  }
39
40
  }