chrome-cdp-manager 1.2.6 → 1.2.7

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/README.md CHANGED
@@ -140,8 +140,9 @@ playwright-cli click "Sign in"
140
140
  playwright-cli --help
141
141
  ```
142
142
 
143
- Requires the optional `playwright` peer dependency (`npm i playwright`). The
144
- endpoint port follows your saved config (`~/.config/chrome-cdp-manager/config.json`).
143
+ The Playwright CLI ships via `playwright-core` (a dependency of this package, so
144
+ it works out of the box — no browser download). The endpoint port follows your
145
+ saved config (`~/.config/chrome-cdp-manager/config.json`).
145
146
 
146
147
  ## Common options
147
148
 
@@ -59,10 +59,12 @@ async function main() {
59
59
  let program;
60
60
  try {
61
61
  ({ program } = require("playwright-core/lib/tools/cli-client/program"));
62
- } catch {
62
+ } catch (error) {
63
63
  throw new Error(
64
- "Playwright not found. The `playwright-cli` command needs Playwright " +
65
- "installed:\n npm i playwright",
64
+ "Could not load the Playwright CLI from playwright-core " +
65
+ "(a dependency of this package). Try reinstalling:\n" +
66
+ " npm install -g chrome-cdp-manager\n" +
67
+ `Original error: ${error.message}`,
66
68
  );
67
69
  }
68
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-cdp-manager",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Set up and drive a Chrome DevTools Protocol (CDP) instance on macOS or Windows through a dedicated launcher (consistent Dock/taskbar icon). Works with any Chromium-based browser — Chrome, Edge, Brave, Chromium, Vivaldi, Opera, Arc.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -59,7 +59,8 @@
59
59
  "license": "MIT",
60
60
  "dependencies": {
61
61
  "cheerio": "^1.2.0",
62
- "commander": "^12.1.0"
62
+ "commander": "^12.1.0",
63
+ "playwright-core": "^1.61.0"
63
64
  },
64
65
  "peerDependencies": {
65
66
  "playwright": ">=1.40.0"