@php-wasm/node 0.1.40 → 0.1.42

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 +4 -1
  2. package/package.json +4 -4
package/index.cjs CHANGED
@@ -68247,6 +68247,9 @@ var _NodePHP = class extends BasePHP2 {
68247
68247
  this.chdir(process.cwd());
68248
68248
  }
68249
68249
  mount(localPath, virtualFSPath) {
68250
+ if (!this.fileExists(virtualFSPath)) {
68251
+ this.mkdirTree(virtualFSPath);
68252
+ }
68250
68253
  this[__private__dont__use].FS.mount(
68251
68254
  this[__private__dont__use].FS.filesystems.NODEFS,
68252
68255
  typeof localPath === "object" ? localPath : { root: localPath },
@@ -68286,7 +68289,7 @@ var _NodePHP = class extends BasePHP2 {
68286
68289
  };
68287
68290
  var NodePHP = _NodePHP;
68288
68291
  __decorateClass([
68289
- rethrowFileSystemError("Could not mount a directory")
68292
+ rethrowFileSystemError("Could not mount {path}")
68290
68293
  ], NodePHP.prototype, "mount", 1);
68291
68294
  // Annotate the CommonJS export names for ESM import in node:
68292
68295
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,13 +28,13 @@
28
28
  "license": "GPL-2.0-or-later",
29
29
  "main": "index.cjs",
30
30
  "types": "index.d.ts",
31
- "gitHead": "d4817100bc505f21309e07a5b2cec1f2be38e85d",
31
+ "gitHead": "14707001dbf7738ca8f173f3040559c6c165110e",
32
32
  "dependencies": {
33
33
  "comlink": "4.4.1",
34
34
  "express": "4.18.2",
35
35
  "ws": "8.13.0",
36
36
  "yargs": "17.7.2",
37
- "@php-wasm/universal": "0.1.40",
38
- "@php-wasm/util": "0.1.40"
37
+ "@php-wasm/universal": "0.1.42",
38
+ "@php-wasm/util": "0.1.42"
39
39
  }
40
40
  }