@php-wasm/xdebug-bridge 3.1.35 → 3.1.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/cli.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const i=require("./run-cli-C15jrZ5h.cjs");i.main();
1
+ "use strict";const i=require("./run-cli-DzMn-eSu.cjs");i.main();
package/cli.js CHANGED
@@ -1,2 +1,2 @@
1
- import { m } from "./run-cli-Czgudx2V.js";
1
+ import { m } from "./run-cli-D9LfaCIl.js";
2
2
  m();
package/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./run-cli-C15jrZ5h.cjs");exports.CDPServer=e.CDPServer;exports.DbgpSession=e.DbgpSession;exports.XdebugCDPBridge=e.XdebugCDPBridge;exports.main=e.main;exports.startBridge=e.startBridge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./run-cli-DzMn-eSu.cjs");exports.CDPServer=e.CDPServer;exports.DbgpSession=e.DbgpSession;exports.XdebugCDPBridge=e.XdebugCDPBridge;exports.main=e.main;exports.startBridge=e.startBridge;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, D as r, X as g, m as i, s as D } from "./run-cli-Czgudx2V.js";
1
+ import { C as e, D as r, X as g, m as i, s as D } from "./run-cli-D9LfaCIl.js";
2
2
  export {
3
3
  e as CDPServer,
4
4
  r as DbgpSession,
@@ -5,6 +5,7 @@ export type StartBridgeConfig = {
5
5
  cdpHost?: string;
6
6
  dbgpPort?: number;
7
7
  phpRoot?: string;
8
+ excludedPaths?: string[];
8
9
  phpInstance?: UniversalPHP;
9
10
  getPHPFile?: (path: string) => string | Promise<string>;
10
11
  breakOnFirstLine?: boolean;
@@ -5,6 +5,7 @@ export interface XdebugCDPBridgeConfig {
5
5
  phpRoot?: string;
6
6
  getPHPFile(path: string): string | Promise<string>;
7
7
  breakOnFirstLine?: boolean;
8
+ excludedPaths?: string[];
8
9
  }
9
10
  export declare class XdebugCDPBridge {
10
11
  private dbgp;
@@ -21,12 +22,14 @@ export declare class XdebugCDPBridge {
21
22
  private phpRoot;
22
23
  private readPHPFile;
23
24
  private breakOnFirstLine;
25
+ private excludedPaths;
24
26
  constructor(dbgp: DbgpSession, cdp: CDPServer, config: XdebugCDPBridgeConfig);
25
27
  start(): void;
26
28
  stop(): void;
27
29
  private sendInitialScripts;
28
30
  private sendScriptToCDP;
29
31
  private getOrCreateScriptId;
32
+ private isExcludedPath;
30
33
  private formatPropertyFullName;
31
34
  private sendDbgpCommand;
32
35
  private handleCdpMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/xdebug-bridge",
3
- "version": "3.1.35",
3
+ "version": "3.1.38",
4
4
  "description": "XDebug bridge server for PHP.wasm",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,17 +39,17 @@
39
39
  },
40
40
  "license": "GPL-2.0-or-later",
41
41
  "types": "index.d.ts",
42
- "gitHead": "9d29b73246e12465902d8ce42c0fe747125bc69a",
42
+ "gitHead": "2850a2a6f512e68e68407f4a9426dad705b426f0",
43
43
  "engines": {
44
44
  "node": ">=20.10.0",
45
45
  "npm": ">=10.2.3"
46
46
  },
47
47
  "dependencies": {
48
- "ws": "8.18.0",
48
+ "ws": "8.21.0",
49
49
  "xml2js": "0.6.2",
50
50
  "yargs": "17.7.2",
51
- "@php-wasm/logger": "3.1.35",
52
- "@php-wasm/universal": "3.1.35"
51
+ "@php-wasm/logger": "3.1.38",
52
+ "@php-wasm/universal": "3.1.38"
53
53
  },
54
54
  "packageManager": "npm@10.9.2",
55
55
  "overrides": {
@@ -62,6 +62,7 @@
62
62
  "form-data": "^4.0.4",
63
63
  "lodash": "^4.17.23",
64
64
  "glob": "^9.3.0",
65
- "webpackbar": "^7.0.0"
65
+ "webpackbar": "^7.0.0",
66
+ "ws": "8.21.0"
66
67
  }
67
68
  }