playwright 1.57.0-alpha-2025-11-19 → 1.57.0-alpha-2025-11-20
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.
|
@@ -29,10 +29,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
var testServerConnection_exports = {};
|
|
30
30
|
__export(testServerConnection_exports, {
|
|
31
31
|
TestServerConnection: () => TestServerConnection,
|
|
32
|
+
TestServerConnectionClosedError: () => TestServerConnectionClosedError,
|
|
32
33
|
WebSocketTestServerTransport: () => WebSocketTestServerTransport
|
|
33
34
|
});
|
|
34
35
|
module.exports = __toCommonJS(testServerConnection_exports);
|
|
35
36
|
var events = __toESM(require("./events"));
|
|
37
|
+
class TestServerConnectionClosedError extends Error {
|
|
38
|
+
constructor() {
|
|
39
|
+
super("Test server connection closed");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
36
42
|
class WebSocketTestServerTransport {
|
|
37
43
|
constructor(url) {
|
|
38
44
|
this._ws = new WebSocket(url);
|
|
@@ -100,6 +106,9 @@ class TestServerConnection {
|
|
|
100
106
|
this._isClosed = true;
|
|
101
107
|
this._onCloseEmitter.fire();
|
|
102
108
|
clearInterval(pingInterval);
|
|
109
|
+
for (const callback of this._callbacks.values())
|
|
110
|
+
callback.reject(new TestServerConnectionClosedError());
|
|
111
|
+
this._callbacks.clear();
|
|
103
112
|
});
|
|
104
113
|
}
|
|
105
114
|
isClosed() {
|
|
@@ -211,5 +220,6 @@ class TestServerConnection {
|
|
|
211
220
|
// Annotate the CommonJS export names for ESM import in node:
|
|
212
221
|
0 && (module.exports = {
|
|
213
222
|
TestServerConnection,
|
|
223
|
+
TestServerConnectionClosedError,
|
|
214
224
|
WebSocketTestServerTransport
|
|
215
225
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright",
|
|
3
|
-
"version": "1.57.0-alpha-2025-11-
|
|
3
|
+
"version": "1.57.0-alpha-2025-11-20",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"license": "Apache-2.0",
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"playwright-core": "1.57.0-alpha-2025-11-
|
|
67
|
+
"playwright-core": "1.57.0-alpha-2025-11-20"
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|
|
70
70
|
"fsevents": "2.3.2"
|