@php-wasm/node 3.0.36 → 3.0.38

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.
package/index.cjs CHANGED
@@ -393,11 +393,11 @@ async function withNetworking(phpModuleArgs = {}) {
393
393
  var import_universal6 = require("@php-wasm/universal");
394
394
  var import_fs3 = __toESM(require("fs"), 1);
395
395
 
396
- // packages/php-wasm/node/src/lib/xdebug/with-xdebug.ts
396
+ // packages/php-wasm/node/src/lib/extensions/xdebug/with-xdebug.ts
397
397
  var import_universal3 = require("@php-wasm/universal");
398
398
  var import_fs = __toESM(require("fs"), 1);
399
399
 
400
- // packages/php-wasm/node/src/lib/xdebug/get-xdebug-extension-module.ts
400
+ // packages/php-wasm/node/src/lib/extensions/xdebug/get-xdebug-extension-module.ts
401
401
  var import_universal2 = require("@php-wasm/universal");
402
402
  async function getXdebugExtensionModule(version = import_universal2.LatestSupportedPHPVersion) {
403
403
  switch (version) {
@@ -423,7 +423,7 @@ async function getXdebugExtensionModule(version = import_universal2.LatestSuppor
423
423
  throw new Error(`Unsupported PHP version ${version}`);
424
424
  }
425
425
 
426
- // packages/php-wasm/node/src/lib/xdebug/with-xdebug.ts
426
+ // packages/php-wasm/node/src/lib/extensions/xdebug/with-xdebug.ts
427
427
  async function withXdebug(version = import_universal3.LatestSupportedPHPVersion, options, xdebugOptions) {
428
428
  const fileName = "xdebug.so";
429
429
  const filePath = await getXdebugExtensionModule(version);
package/index.js CHANGED
@@ -1,8 +1,3 @@
1
- import { createRequire as topLevelCreateRequire } from 'module';
2
- const require = topLevelCreateRequire(import.meta.url);
3
- const __filename = import.meta.filename;
4
- const __dirname = import.meta.dirname;
5
-
6
1
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
7
2
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
8
3
  }) : x)(function(x) {
@@ -365,11 +360,11 @@ async function withNetworking(phpModuleArgs = {}) {
365
360
  import { loadPHPRuntime, FSHelpers as FSHelpers3 } from "@php-wasm/universal";
366
361
  import fs3 from "fs";
367
362
 
368
- // packages/php-wasm/node/src/lib/xdebug/with-xdebug.ts
363
+ // packages/php-wasm/node/src/lib/extensions/xdebug/with-xdebug.ts
369
364
  import { LatestSupportedPHPVersion as LatestSupportedPHPVersion3, FSHelpers } from "@php-wasm/universal";
370
365
  import fs from "fs";
371
366
 
372
- // packages/php-wasm/node/src/lib/xdebug/get-xdebug-extension-module.ts
367
+ // packages/php-wasm/node/src/lib/extensions/xdebug/get-xdebug-extension-module.ts
373
368
  import { LatestSupportedPHPVersion as LatestSupportedPHPVersion2 } from "@php-wasm/universal";
374
369
  async function getXdebugExtensionModule(version = LatestSupportedPHPVersion2) {
375
370
  switch (version) {
@@ -395,7 +390,7 @@ async function getXdebugExtensionModule(version = LatestSupportedPHPVersion2) {
395
390
  throw new Error(`Unsupported PHP version ${version}`);
396
391
  }
397
392
 
398
- // packages/php-wasm/node/src/lib/xdebug/with-xdebug.ts
393
+ // packages/php-wasm/node/src/lib/extensions/xdebug/with-xdebug.ts
399
394
  async function withXdebug(version = LatestSupportedPHPVersion3, options, xdebugOptions) {
400
395
  const fileName = "xdebug.so";
401
396
  const filePath = await getXdebugExtensionModule(version);
package/lib/index.d.ts CHANGED
@@ -5,4 +5,4 @@ export * from './use-host-filesystem';
5
5
  export * from './node-fs-mount';
6
6
  export * from './file-lock-manager';
7
7
  export * from './file-lock-manager-for-node';
8
- export * from './xdebug/with-xdebug';
8
+ export * from './extensions/xdebug/with-xdebug';
@@ -1,6 +1,6 @@
1
1
  import type { SupportedPHPVersion, EmscriptenOptions, RemoteAPI } from '@php-wasm/universal';
2
2
  import type { FileLockManager } from './file-lock-manager';
3
- import { type XdebugOptions } from './xdebug/with-xdebug';
3
+ import { type XdebugOptions } from './extensions/xdebug/with-xdebug';
4
4
  import type { Promised } from '@php-wasm/util';
5
5
  export interface PHPLoaderOptions {
6
6
  emscriptenOptions?: EmscriptenOptions;
package/noop.js CHANGED
@@ -1,5 +0,0 @@
1
- import { createRequire as topLevelCreateRequire } from 'module';
2
- const require = topLevelCreateRequire(import.meta.url);
3
- const __filename = import.meta.filename;
4
- const __dirname = import.meta.dirname;
5
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node",
3
- "version": "3.0.36",
3
+ "version": "3.0.38",
4
4
  "description": "PHP.wasm for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,31 +38,31 @@
38
38
  },
39
39
  "license": "GPL-2.0-or-later",
40
40
  "types": "index.d.ts",
41
- "gitHead": "ea21b3215956ace10f21e254fe483220168a120f",
41
+ "gitHead": "c49a4f463e0a868247b4e2a847318ca395502de7",
42
42
  "engines": {
43
43
  "node": ">=20.18.3",
44
44
  "npm": ">=10.1.0"
45
45
  },
46
46
  "dependencies": {
47
- "express": "4.21.2",
47
+ "express": "4.22.0",
48
48
  "ini": "4.1.2",
49
49
  "wasm-feature-detect": "1.8.0",
50
50
  "ws": "8.18.3",
51
51
  "yargs": "17.7.2",
52
- "@php-wasm/node-polyfills": "3.0.36",
53
- "@php-wasm/universal": "3.0.36",
54
- "@php-wasm/node-8-5": "3.0.36",
55
- "@php-wasm/node-8-4": "3.0.36",
56
- "@php-wasm/node-8-3": "3.0.36",
57
- "@php-wasm/node-8-2": "3.0.36",
58
- "@php-wasm/node-8-1": "3.0.36",
59
- "@php-wasm/node-8-0": "3.0.36",
60
- "@php-wasm/node-7-4": "3.0.36",
61
- "@php-wasm/node-7-3": "3.0.36",
62
- "@php-wasm/node-7-2": "3.0.36",
63
- "@php-wasm/logger": "3.0.36",
64
- "@php-wasm/util": "3.0.36",
65
- "@wp-playground/common": "3.0.36"
52
+ "@php-wasm/node-polyfills": "3.0.38",
53
+ "@php-wasm/universal": "3.0.38",
54
+ "@php-wasm/node-8-5": "3.0.38",
55
+ "@php-wasm/node-8-4": "3.0.38",
56
+ "@php-wasm/node-8-3": "3.0.38",
57
+ "@php-wasm/node-8-2": "3.0.38",
58
+ "@php-wasm/node-8-1": "3.0.38",
59
+ "@php-wasm/node-8-0": "3.0.38",
60
+ "@php-wasm/node-7-4": "3.0.38",
61
+ "@php-wasm/node-7-3": "3.0.38",
62
+ "@php-wasm/node-7-2": "3.0.38",
63
+ "@php-wasm/logger": "3.0.38",
64
+ "@php-wasm/util": "3.0.38",
65
+ "@wp-playground/common": "3.0.38"
66
66
  },
67
67
  "packageManager": "npm@10.9.2",
68
68
  "overrides": {