@php-wasm/node 3.0.35 → 3.0.37
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 +3 -3
- package/index.js +3 -8
- package/lib/index.d.ts +1 -1
- package/lib/load-runtime.d.ts +1 -1
- package/noop.js +0 -5
- package/package.json +17 -17
- /package/lib/{xdebug → extensions/xdebug}/get-xdebug-extension-module.d.ts +0 -0
- /package/lib/{xdebug → extensions/xdebug}/with-xdebug.d.ts +0 -0
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
package/lib/load-runtime.d.ts
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/node",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.37",
|
|
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": "
|
|
41
|
+
"gitHead": "1ac56b78f05f1c517f6b56beb527d6826b53aa82",
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=20.18.3",
|
|
44
44
|
"npm": ">=10.1.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"express": "4.
|
|
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.
|
|
53
|
-
"@php-wasm/universal": "3.0.
|
|
54
|
-
"@php-wasm/node-8-5": "3.0.
|
|
55
|
-
"@php-wasm/node-8-4": "3.0.
|
|
56
|
-
"@php-wasm/node-8-3": "3.0.
|
|
57
|
-
"@php-wasm/node-8-2": "3.0.
|
|
58
|
-
"@php-wasm/node-8-1": "3.0.
|
|
59
|
-
"@php-wasm/node-8-0": "3.0.
|
|
60
|
-
"@php-wasm/node-7-4": "3.0.
|
|
61
|
-
"@php-wasm/node-7-3": "3.0.
|
|
62
|
-
"@php-wasm/node-7-2": "3.0.
|
|
63
|
-
"@php-wasm/logger": "3.0.
|
|
64
|
-
"@php-wasm/util": "3.0.
|
|
65
|
-
"@wp-playground/common": "3.0.
|
|
52
|
+
"@php-wasm/node-polyfills": "3.0.37",
|
|
53
|
+
"@php-wasm/universal": "3.0.37",
|
|
54
|
+
"@php-wasm/node-8-5": "3.0.37",
|
|
55
|
+
"@php-wasm/node-8-4": "3.0.37",
|
|
56
|
+
"@php-wasm/node-8-3": "3.0.37",
|
|
57
|
+
"@php-wasm/node-8-2": "3.0.37",
|
|
58
|
+
"@php-wasm/node-8-1": "3.0.37",
|
|
59
|
+
"@php-wasm/node-8-0": "3.0.37",
|
|
60
|
+
"@php-wasm/node-7-4": "3.0.37",
|
|
61
|
+
"@php-wasm/node-7-3": "3.0.37",
|
|
62
|
+
"@php-wasm/node-7-2": "3.0.37",
|
|
63
|
+
"@php-wasm/logger": "3.0.37",
|
|
64
|
+
"@php-wasm/util": "3.0.37",
|
|
65
|
+
"@wp-playground/common": "3.0.37"
|
|
66
66
|
},
|
|
67
67
|
"packageManager": "npm@10.9.2",
|
|
68
68
|
"overrides": {
|
|
File without changes
|
|
File without changes
|