Socket
Socket
Sign inDemoInstall

playwright-core

Package Overview
Dependencies
Maintainers
4
Versions
4525
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-core - npm Package Compare versions

Comparing version 1.47.0-alpha-2024-07-29 to 1.47.0-alpha-2024-07-30

lib/client/eventEmitter.js

6

lib/client/channelOwner.js

@@ -7,3 +7,3 @@ "use strict";

exports.ChannelOwner = void 0;
var _events = require("events");
var _eventEmitter = require("./eventEmitter");
var _validator = require("../protocol/validator");

@@ -30,3 +30,3 @@ var _debugLogger = require("../utils/debugLogger");

class ChannelOwner extends _events.EventEmitter {
class ChannelOwner extends _eventEmitter.EventEmitter {
constructor(parent, type, guid, initializer) {

@@ -56,3 +56,3 @@ super();

}
this._channel = this._createChannel(new _events.EventEmitter());
this._channel = this._createChannel(new _eventEmitter.EventEmitter());
this._initializer = initializer;

@@ -59,0 +59,0 @@ }

@@ -75,3 +75,3 @@ "use strict";

async fetch(params, metadata) {
var _params$method;
var _params$method, _defaults$clientCerti;
const defaults = this._defaultOptions();

@@ -107,3 +107,6 @@ const headers = {

let agent;
if (proxy && proxy.server !== 'per-context' && !shouldBypassProxy(requestUrl, proxy.bypass)) {
// When `clientCertificates` is present, we set the `proxy` property to our own socks proxy
// for the browser to use. However, we don't need it here, because we already respect
// `clientCertificates` when fetching from Node.js.
if (proxy && !((_defaults$clientCerti = defaults.clientCertificates) !== null && _defaults$clientCerti !== void 0 && _defaults$clientCerti.length) && proxy.server !== 'per-context' && !shouldBypassProxy(requestUrl, proxy.bypass)) {
var _proxyOpts$protocol;

@@ -110,0 +113,0 @@ const proxyOpts = _url.default.parse(proxy.server);

@@ -199,3 +199,3 @@ "use strict";

} else {
internalTLS.end(['HTTP/1.1 503 Internal Server Error', 'Content-Type: text/html; charset=utf-8', 'Content-Length: ' + Buffer.byteLength(responseBody), '\r\n', responseBody].join('\r\n'));
internalTLS.end(['HTTP/1.1 503 Internal Server Error', 'Content-Type: text/html; charset=utf-8', 'Content-Length: ' + Buffer.byteLength(responseBody), '', responseBody].join('\r\n'));
closeBothSockets();

@@ -202,0 +202,0 @@ }

{
"name": "playwright-core",
"version": "1.47.0-alpha-2024-07-29",
"version": "1.47.0-alpha-2024-07-30",
"description": "A high-level API to automate web browsers",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc