@letsscrapedata/controller 0.0.66 → 0.0.67

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/dist/index.cjs CHANGED
@@ -2166,7 +2166,6 @@ var PuppeteerElement = class _PuppeteerElement {
2166
2166
  await this.#$ele.click(actOptions);
2167
2167
  } else if (clickType === "evaluate") {
2168
2168
  await this.#frame.evaluate(async (ev) => await ev.click(), this.#$ele);
2169
- await this.#$ele.click(actOptions);
2170
2169
  } else {
2171
2170
  (0, import_utils6.unreachable)(clickType);
2172
2171
  }
@@ -6916,23 +6915,8 @@ var CamoufoxPage = class extends import_node_events11.default {
6916
6915
  );
6917
6916
  return true;
6918
6917
  }
6919
- async sendCDPMessage(method, params = null, detach = true) {
6920
- if (!this.#client) {
6921
- const origContext = this.browserContext()._origBrowserContext();
6922
- if (!origContext) {
6923
- throw new Error(`Invalid playwright browserContext`);
6924
- }
6925
- this.#client = await origContext.newCDPSession(this.#page);
6926
- }
6927
- if (!this.#client) {
6928
- throw new Error("No valid CDP session to send message");
6929
- }
6930
- const response = params ? await this.#client.send(method, params) : await this.#client.send(method);
6931
- if (detach) {
6932
- await this.#client.detach();
6933
- this.#client = null;
6934
- }
6935
- return response;
6918
+ async sendCDPMessage(_method, _params = null, _detach = true) {
6919
+ throw new Error("##browser Camoufox does not support sendCDPMessage");
6936
6920
  }
6937
6921
  setCloseWhenFree(closeWhenFree) {
6938
6922
  this.#closeWhenFree = closeWhenFree;
package/dist/index.js CHANGED
@@ -2115,7 +2115,6 @@ var PuppeteerElement = class _PuppeteerElement {
2115
2115
  await this.#$ele.click(actOptions);
2116
2116
  } else if (clickType === "evaluate") {
2117
2117
  await this.#frame.evaluate(async (ev) => await ev.click(), this.#$ele);
2118
- await this.#$ele.click(actOptions);
2119
2118
  } else {
2120
2119
  unreachable3(clickType);
2121
2120
  }
@@ -6865,23 +6864,8 @@ var CamoufoxPage = class extends EventEmitter11 {
6865
6864
  );
6866
6865
  return true;
6867
6866
  }
6868
- async sendCDPMessage(method, params = null, detach = true) {
6869
- if (!this.#client) {
6870
- const origContext = this.browserContext()._origBrowserContext();
6871
- if (!origContext) {
6872
- throw new Error(`Invalid playwright browserContext`);
6873
- }
6874
- this.#client = await origContext.newCDPSession(this.#page);
6875
- }
6876
- if (!this.#client) {
6877
- throw new Error("No valid CDP session to send message");
6878
- }
6879
- const response = params ? await this.#client.send(method, params) : await this.#client.send(method);
6880
- if (detach) {
6881
- await this.#client.detach();
6882
- this.#client = null;
6883
- }
6884
- return response;
6867
+ async sendCDPMessage(_method, _params = null, _detach = true) {
6868
+ throw new Error("##browser Camoufox does not support sendCDPMessage");
6885
6869
  }
6886
6870
  setCloseWhenFree(closeWhenFree) {
6887
6871
  this.#closeWhenFree = closeWhenFree;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letsscrapedata/controller",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "description": "Unified browser / HTML controller interfaces that support patchright, camoufox, playwright, puppeteer and cheerio",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",