New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

playwright-core

Package Overview
Dependencies
Maintainers
1
Versions
4830
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

to
0.11.1-next.1583993157193

2

lib/dom.d.ts

@@ -34,3 +34,3 @@ /**

constructor(delegate: js.ExecutionContextDelegate, frame: frames.Frame);
_evaluate(returnByValue: boolean, pageFunction: string | Function, ...args: any[]): Promise<any>;
_evaluate(returnByValue: boolean, waitForNavigations: boolean, pageFunction: string | Function, ...args: any[]): Promise<any>;
_createHandle(remoteObject: any): js.JSHandle;

@@ -37,0 +37,0 @@ _injected(): Promise<js.JSHandle<Injected>>;

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

}
async _evaluate(returnByValue, pageFunction, ...args) {
async _evaluate(returnByValue, waitForNavigations, pageFunction, ...args) {
const needsAdoption = (value) => {

@@ -38,3 +38,3 @@ return typeof value === 'object' && value instanceof ElementHandle && value._context !== this;

return this._delegate.evaluate(this, returnByValue, pageFunction, ...args);
});
}, waitForNavigations ? undefined : { waitUntil: 'nowait' });
}

@@ -53,3 +53,3 @@ const toDispose = [];

return this._delegate.evaluate(this, returnByValue, pageFunction, ...adopted);
});
}, waitForNavigations ? undefined : { waitUntil: 'nowait' });
}

@@ -81,3 +81,3 @@ finally {

`;
this._injectedPromise = this.evaluateHandle(source);
this._injectedPromise = this._evaluate(false /* returnByValue */, false /* waitForNavigations */, source);
this._injectedGeneration = selectors._generation;

@@ -84,0 +84,0 @@ }

@@ -28,3 +28,3 @@ /**

constructor(delegate: ExecutionContextDelegate);
_evaluate(returnByValue: boolean, pageFunction: string | Function, ...args: any[]): Promise<any>;
_evaluate(returnByValue: boolean, waitForNavigations: boolean, pageFunction: string | Function, ...args: any[]): Promise<any>;
evaluate: types.Evaluate;

@@ -31,0 +31,0 @@ evaluateHandle: types.EvaluateHandle;

@@ -21,10 +21,10 @@ "use strict";

this.evaluate = async (pageFunction, ...args) => {
return this._evaluate(true /* returnByValue */, pageFunction, ...args);
return this._evaluate(true /* returnByValue */, true /* waitForNavigations */, pageFunction, ...args);
};
this.evaluateHandle = async (pageFunction, ...args) => {
return this._evaluate(false /* returnByValue */, pageFunction, ...args);
return this._evaluate(false /* returnByValue */, true /* waitForNavigations */, pageFunction, ...args);
};
this._delegate = delegate;
}
_evaluate(returnByValue, pageFunction, ...args) {
_evaluate(returnByValue, waitForNavigations, pageFunction, ...args) {
return this._delegate.evaluate(this, returnByValue, pageFunction, ...args);

@@ -31,0 +31,0 @@ }

{
"name": "playwright-core",
"version": "0.11.1-next.1583987681271",
"version": "0.11.1-next.1583993157193",
"description": "A high-level API to automate web browsers",

@@ -5,0 +5,0 @@ "repository": "github:Microsoft/playwright",

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