@axe-core/watcher 2.0.0-next.22e40cc8 → 2.0.0-next.2878b20f
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/Controller.js +71 -131
- package/dist/Controller.js.map +1 -1
- package/dist/cypress.d.ts +1 -1
- package/dist/cypress.js +9 -34
- package/dist/cypress.js.map +1 -1
- package/dist/cypressCommands.js +55 -66
- package/dist/cypressCommands.js.map +1 -1
- package/dist/git.js +15 -21
- package/dist/git.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/playwright.d.ts +1 -1
- package/dist/playwright.js +17 -84
- package/dist/playwright.js.map +1 -1
- package/dist/playwrightTest.js +26 -104
- package/dist/playwrightTest.js.map +1 -1
- package/dist/playwrightWrapping.d.ts +1 -7
- package/dist/playwrightWrapping.js +188 -501
- package/dist/playwrightWrapping.js.map +1 -1
- package/dist/puppeteer.d.ts +2 -2
- package/dist/puppeteer.js +23 -93
- package/dist/puppeteer.js.map +1 -1
- package/dist/puppeteerWrapping.d.ts +14 -0
- package/dist/puppeteerWrapping.js +432 -0
- package/dist/puppeteerWrapping.js.map +1 -0
- package/dist/util.d.ts +8 -0
- package/dist/util.js +42 -44
- package/dist/util.js.map +1 -1
- package/dist/validateApiKey.js +6 -7
- package/dist/validateApiKey.js.map +1 -1
- package/dist/wdio.d.ts +1 -1
- package/dist/wdio.js +45 -134
- package/dist/wdio.js.map +1 -1
- package/dist/webdriver.d.ts +1 -1
- package/dist/webdriver.js +21 -84
- package/dist/webdriver.js.map +1 -1
- package/extension/background.js +1 -1
- package/extension/content.js +1 -1
- package/extension/manifest.json +1 -2
- package/package.json +2 -3
|
@@ -8,236 +8,104 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.wrapTouchscreen = exports.wrapMouse = exports.wrapKeyboard = exports.wrapJSHandle = exports.wrapLocator = exports.wrapFrameLocator = exports.wrapFrame = exports.wrapElementHandle = exports.wrapPage = exports.wrapBrowser = exports.wrapBrowserContext =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Object.defineProperty(o, kWrapped, {
|
|
50
|
-
configurable: false,
|
|
51
|
-
enumerable: false,
|
|
52
|
-
value: true
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
exports.markAsWrapped = markAsWrapped;
|
|
56
|
-
var wrappedCallWithSideEffects = function (target, prop, controller) {
|
|
57
|
-
return function () {
|
|
58
|
-
var args = [];
|
|
59
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
60
|
-
args[_i] = arguments[_i];
|
|
61
|
-
}
|
|
62
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
-
var result;
|
|
64
|
-
return __generator(this, function (_a) {
|
|
65
|
-
switch (_a.label) {
|
|
66
|
-
case 0: return [4 /*yield*/, target[prop].apply(target, args)];
|
|
67
|
-
case 1:
|
|
68
|
-
result = _a.sent();
|
|
69
|
-
return [4 /*yield*/, controller.analyze()];
|
|
70
|
-
case 2:
|
|
71
|
-
_a.sent();
|
|
72
|
-
return [2 /*return*/, result];
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
var wrapBrowserContext = function (browserContext, controller) {
|
|
79
|
-
if ((0, exports.isWrapped)(browserContext)) {
|
|
12
|
+
exports.wrapTouchscreen = exports.wrapMouse = exports.wrapKeyboard = exports.wrapJSHandle = exports.wrapLocator = exports.wrapFrameLocator = exports.wrapFrame = exports.wrapElementHandle = exports.wrapPage = exports.wrapBrowser = exports.wrapBrowserContext = void 0;
|
|
13
|
+
const util_1 = require("./util");
|
|
14
|
+
const wrappedCallWithSideEffects = (target, prop, controller) => (...args) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
// @ts-expect-error TypeScript is angry.
|
|
16
|
+
const result = yield target[prop](...args);
|
|
17
|
+
yield controller.analyze();
|
|
18
|
+
return result;
|
|
19
|
+
});
|
|
20
|
+
const wrapBrowserContext = (browserContext, controller) => {
|
|
21
|
+
if ((0, util_1.isWrapped)(browserContext)) {
|
|
80
22
|
return browserContext;
|
|
81
23
|
}
|
|
82
|
-
|
|
83
|
-
get
|
|
84
|
-
var _this = this;
|
|
24
|
+
const browserContextProxy = new Proxy(browserContext, {
|
|
25
|
+
get(target, prop, receiver) {
|
|
85
26
|
switch (prop) {
|
|
86
27
|
case 'newPage':
|
|
87
|
-
return function () {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
93
|
-
var page;
|
|
94
|
-
return __generator(this, function (_a) {
|
|
95
|
-
switch (_a.label) {
|
|
96
|
-
case 0: return [4 /*yield*/, target.newPage.apply(target, args)];
|
|
97
|
-
case 1:
|
|
98
|
-
page = _a.sent();
|
|
99
|
-
return [2 /*return*/, (0, exports.wrapPage)(page, controller)];
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
};
|
|
28
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const page = yield target.newPage(...args);
|
|
30
|
+
return (0, exports.wrapPage)(page, controller);
|
|
31
|
+
});
|
|
104
32
|
case 'browser':
|
|
105
|
-
return
|
|
106
|
-
|
|
33
|
+
return () => {
|
|
34
|
+
const browser = target.browser();
|
|
107
35
|
if (!browser) {
|
|
108
36
|
return null;
|
|
109
37
|
}
|
|
110
38
|
return (0, exports.wrapBrowser)(browser, controller);
|
|
111
39
|
};
|
|
112
40
|
case 'pages':
|
|
113
|
-
return
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
args[_i] = arguments[_i];
|
|
117
|
-
}
|
|
118
|
-
var pages = target.pages.apply(target, args);
|
|
119
|
-
return pages.map(function (p) { return (0, exports.wrapPage)(p, controller); });
|
|
41
|
+
return (...args) => {
|
|
42
|
+
const pages = target.pages(...args);
|
|
43
|
+
return pages.map(p => (0, exports.wrapPage)(p, controller));
|
|
120
44
|
};
|
|
121
45
|
case 'close':
|
|
122
|
-
return
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
case 1:
|
|
127
|
-
_a.sent();
|
|
128
|
-
return [2 /*return*/, target.close()];
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}); };
|
|
46
|
+
return () => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
yield controller.flush();
|
|
48
|
+
return target.close();
|
|
49
|
+
});
|
|
132
50
|
default:
|
|
133
51
|
return Reflect.get(target, prop, receiver);
|
|
134
52
|
}
|
|
135
53
|
}
|
|
136
54
|
});
|
|
137
|
-
(0,
|
|
55
|
+
(0, util_1.markAsWrapped)(browserContextProxy);
|
|
138
56
|
return browserContextProxy;
|
|
139
57
|
};
|
|
140
58
|
exports.wrapBrowserContext = wrapBrowserContext;
|
|
141
|
-
|
|
142
|
-
if ((0,
|
|
59
|
+
const wrapBrowser = (browser, controller) => {
|
|
60
|
+
if ((0, util_1.isWrapped)(browser)) {
|
|
143
61
|
return browser;
|
|
144
62
|
}
|
|
145
|
-
|
|
146
|
-
get
|
|
147
|
-
var _this = this;
|
|
63
|
+
const browserProxy = new Proxy(browser, {
|
|
64
|
+
get(target, prop, receiver) {
|
|
148
65
|
switch (prop) {
|
|
149
66
|
case 'newContext':
|
|
150
|
-
return function () {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
156
|
-
var context;
|
|
157
|
-
return __generator(this, function (_a) {
|
|
158
|
-
switch (_a.label) {
|
|
159
|
-
case 0: return [4 /*yield*/, target.newContext.apply(target, args)];
|
|
160
|
-
case 1:
|
|
161
|
-
context = _a.sent();
|
|
162
|
-
return [2 /*return*/, (0, exports.wrapBrowserContext)(context, controller)];
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
};
|
|
67
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const context = yield target.newContext(...args);
|
|
69
|
+
return (0, exports.wrapBrowserContext)(context, controller);
|
|
70
|
+
});
|
|
167
71
|
case 'newPage':
|
|
168
|
-
return function () {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
174
|
-
var page;
|
|
175
|
-
return __generator(this, function (_a) {
|
|
176
|
-
switch (_a.label) {
|
|
177
|
-
case 0: return [4 /*yield*/, target.newPage.apply(target, args)];
|
|
178
|
-
case 1:
|
|
179
|
-
page = _a.sent();
|
|
180
|
-
return [2 /*return*/, (0, exports.wrapPage)(page, controller)];
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
};
|
|
72
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const page = yield target.newPage(...args);
|
|
74
|
+
return (0, exports.wrapPage)(page, controller);
|
|
75
|
+
});
|
|
185
76
|
case 'contexts':
|
|
186
|
-
return
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
args[_i] = arguments[_i];
|
|
190
|
-
}
|
|
191
|
-
var contexts = target.contexts.apply(target, args);
|
|
192
|
-
return contexts.map(function (c) { return (0, exports.wrapBrowserContext)(c, controller); });
|
|
77
|
+
return (...args) => {
|
|
78
|
+
const contexts = target.contexts(...args);
|
|
79
|
+
return contexts.map(c => (0, exports.wrapBrowserContext)(c, controller));
|
|
193
80
|
};
|
|
194
81
|
case 'close':
|
|
195
|
-
return
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
case 1:
|
|
200
|
-
_a.sent();
|
|
201
|
-
return [2 /*return*/, target.close()];
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
}); };
|
|
82
|
+
return () => __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
yield controller.flush();
|
|
84
|
+
return target.close();
|
|
85
|
+
});
|
|
205
86
|
default:
|
|
206
87
|
return Reflect.get(target, prop, receiver);
|
|
207
88
|
}
|
|
208
89
|
}
|
|
209
90
|
});
|
|
210
|
-
(0,
|
|
91
|
+
(0, util_1.markAsWrapped)(browserProxy);
|
|
211
92
|
return browserProxy;
|
|
212
93
|
};
|
|
213
94
|
exports.wrapBrowser = wrapBrowser;
|
|
214
|
-
|
|
215
|
-
if ((0,
|
|
95
|
+
const wrapPage = (page, controller) => {
|
|
96
|
+
if ((0, util_1.isWrapped)(page)) {
|
|
216
97
|
return page;
|
|
217
98
|
}
|
|
218
|
-
|
|
219
|
-
get
|
|
220
|
-
var _this = this;
|
|
99
|
+
const pageProxy = new Proxy(page, {
|
|
100
|
+
get(target, prop, receiver) {
|
|
221
101
|
switch (prop) {
|
|
222
102
|
case 'addScriptTag':
|
|
223
103
|
case 'addStyleTag':
|
|
224
|
-
return function () {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
230
|
-
var style;
|
|
231
|
-
return __generator(this, function (_a) {
|
|
232
|
-
switch (_a.label) {
|
|
233
|
-
case 0: return [4 /*yield*/, target[prop].apply(target, args)];
|
|
234
|
-
case 1:
|
|
235
|
-
style = _a.sent();
|
|
236
|
-
return [2 /*return*/, (0, exports.wrapElementHandle)(style, controller)];
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
};
|
|
104
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
// @ts-expect-error TypeScript is angry.
|
|
106
|
+
const style = yield target[prop](...args);
|
|
107
|
+
return (0, exports.wrapElementHandle)(style, controller);
|
|
108
|
+
});
|
|
241
109
|
case 'bringToFront':
|
|
242
110
|
case 'check':
|
|
243
111
|
case 'click':
|
|
@@ -260,59 +128,35 @@ var wrapPage = function (page, controller) {
|
|
|
260
128
|
case 'uncheck':
|
|
261
129
|
return wrappedCallWithSideEffects(target, prop, controller);
|
|
262
130
|
case 'context':
|
|
263
|
-
return
|
|
264
|
-
|
|
131
|
+
return () => {
|
|
132
|
+
const context = target.context();
|
|
265
133
|
return (0, exports.wrapBrowserContext)(context, controller);
|
|
266
134
|
};
|
|
267
135
|
case 'evaluateHandle':
|
|
268
136
|
case 'waitForFunction':
|
|
269
|
-
return function () {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
275
|
-
var handle;
|
|
276
|
-
return __generator(this, function (_a) {
|
|
277
|
-
switch (_a.label) {
|
|
278
|
-
case 0: return [4 /*yield*/, target[prop].apply(target, args)];
|
|
279
|
-
case 1:
|
|
280
|
-
handle = _a.sent();
|
|
281
|
-
return [2 /*return*/, (0, exports.wrapJSHandle)(handle, controller)];
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
});
|
|
285
|
-
};
|
|
137
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
// @ts-expect-error TypeScript is angry.
|
|
139
|
+
const handle = yield target[prop](...args);
|
|
140
|
+
return (0, exports.wrapJSHandle)(handle, controller);
|
|
141
|
+
});
|
|
286
142
|
case 'frame':
|
|
287
143
|
case 'mainFrame':
|
|
288
|
-
return
|
|
289
|
-
var args = [];
|
|
290
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
291
|
-
args[_i] = arguments[_i];
|
|
292
|
-
}
|
|
144
|
+
return (...args) => {
|
|
293
145
|
// @ts-expect-error TypeScript is angry.
|
|
294
|
-
|
|
146
|
+
const mainFrame = target[prop](...args);
|
|
295
147
|
if (!mainFrame) {
|
|
296
148
|
return null;
|
|
297
149
|
}
|
|
298
150
|
return (0, exports.wrapFrame)(mainFrame, controller);
|
|
299
151
|
};
|
|
300
152
|
case 'frames':
|
|
301
|
-
return
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
args[_i] = arguments[_i];
|
|
305
|
-
}
|
|
306
|
-
var frames = target.frames.apply(target, args);
|
|
307
|
-
return frames.map(function (f) { return (0, exports.wrapFrame)(f, controller); });
|
|
153
|
+
return (...args) => {
|
|
154
|
+
const frames = target.frames(...args);
|
|
155
|
+
return frames.map(f => (0, exports.wrapFrame)(f, controller));
|
|
308
156
|
};
|
|
309
157
|
case 'frameLocator':
|
|
310
|
-
return
|
|
311
|
-
|
|
312
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
313
|
-
args[_i] = arguments[_i];
|
|
314
|
-
}
|
|
315
|
-
var frameLocator = target.frameLocator.apply(target, args);
|
|
158
|
+
return (...args) => {
|
|
159
|
+
const frameLocator = target.frameLocator(...args);
|
|
316
160
|
return (0, exports.wrapFrameLocator)(frameLocator, controller);
|
|
317
161
|
};
|
|
318
162
|
case 'getByAltText':
|
|
@@ -323,13 +167,9 @@ var wrapPage = function (page, controller) {
|
|
|
323
167
|
case 'getByText':
|
|
324
168
|
case 'getByTitle':
|
|
325
169
|
case 'locator':
|
|
326
|
-
return
|
|
327
|
-
var args = [];
|
|
328
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
329
|
-
args[_i] = arguments[_i];
|
|
330
|
-
}
|
|
170
|
+
return (...args) => {
|
|
331
171
|
// @ts-expect-error TypeScript is angry.
|
|
332
|
-
|
|
172
|
+
const el = target[prop](...args);
|
|
333
173
|
return (0, exports.wrapLocator)(el, controller);
|
|
334
174
|
};
|
|
335
175
|
case 'keyboard':
|
|
@@ -339,71 +179,39 @@ var wrapPage = function (page, controller) {
|
|
|
339
179
|
case 'touchscreen':
|
|
340
180
|
return (0, exports.wrapTouchscreen)(target.touchscreen, controller);
|
|
341
181
|
case 'close':
|
|
342
|
-
return
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
case 1:
|
|
347
|
-
_a.sent();
|
|
348
|
-
return [2 /*return*/, target.close()];
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
}); };
|
|
182
|
+
return () => __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
yield controller.flush();
|
|
184
|
+
return target.close();
|
|
185
|
+
});
|
|
352
186
|
default:
|
|
353
187
|
return Reflect.get(target, prop, receiver);
|
|
354
188
|
}
|
|
355
189
|
}
|
|
356
190
|
});
|
|
357
|
-
(0,
|
|
191
|
+
(0, util_1.markAsWrapped)(pageProxy);
|
|
358
192
|
return pageProxy;
|
|
359
193
|
};
|
|
360
194
|
exports.wrapPage = wrapPage;
|
|
361
|
-
|
|
362
|
-
if ((0,
|
|
195
|
+
const wrapElementHandle = (elementHandle, controller) => {
|
|
196
|
+
if ((0, util_1.isWrapped)(elementHandle)) {
|
|
363
197
|
return elementHandle;
|
|
364
198
|
}
|
|
365
|
-
|
|
366
|
-
get
|
|
367
|
-
var _this = this;
|
|
199
|
+
const elementHandleProxy = new Proxy(elementHandle, {
|
|
200
|
+
get(target, prop, receiver) {
|
|
368
201
|
switch (prop) {
|
|
369
202
|
case '$':
|
|
370
203
|
case 'asElement':
|
|
371
204
|
case 'waitForSelector':
|
|
372
|
-
return function () {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
378
|
-
var el;
|
|
379
|
-
return __generator(this, function (_a) {
|
|
380
|
-
switch (_a.label) {
|
|
381
|
-
case 0: return [4 /*yield*/, target[prop].apply(target, args)];
|
|
382
|
-
case 1:
|
|
383
|
-
el = _a.sent();
|
|
384
|
-
return [2 /*return*/, (0, exports.wrapElementHandle)(el, controller)];
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
});
|
|
388
|
-
};
|
|
205
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
// @ts-expect-error TypeScript is angry.
|
|
207
|
+
const el = yield target[prop](...args);
|
|
208
|
+
return (0, exports.wrapElementHandle)(el, controller);
|
|
209
|
+
});
|
|
389
210
|
case '$$':
|
|
390
|
-
return function () {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
396
|
-
var els;
|
|
397
|
-
return __generator(this, function (_a) {
|
|
398
|
-
switch (_a.label) {
|
|
399
|
-
case 0: return [4 /*yield*/, target.$$.apply(target, args)];
|
|
400
|
-
case 1:
|
|
401
|
-
els = _a.sent();
|
|
402
|
-
return [2 /*return*/, els.map(function (e) { return (0, exports.wrapElementHandle)(e, controller); })];
|
|
403
|
-
}
|
|
404
|
-
});
|
|
405
|
-
});
|
|
406
|
-
};
|
|
211
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const els = yield target.$$(...args);
|
|
213
|
+
return els.map(e => (0, exports.wrapElementHandle)(e, controller));
|
|
214
|
+
});
|
|
407
215
|
case 'check':
|
|
408
216
|
case 'click':
|
|
409
217
|
case 'dblclick':
|
|
@@ -423,94 +231,52 @@ var wrapElementHandle = function (elementHandle, controller) {
|
|
|
423
231
|
return wrappedCallWithSideEffects(target, prop, controller);
|
|
424
232
|
case 'contentFrame':
|
|
425
233
|
case 'ownerFrame':
|
|
426
|
-
return function () {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
234
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
235
|
+
// @ts-expect-error TypeScript is angry.
|
|
236
|
+
const frame = yield target[prop](...args);
|
|
237
|
+
if (!frame) {
|
|
238
|
+
return null;
|
|
430
239
|
}
|
|
431
|
-
return
|
|
432
|
-
|
|
433
|
-
return __generator(this, function (_a) {
|
|
434
|
-
switch (_a.label) {
|
|
435
|
-
case 0: return [4 /*yield*/, target[prop].apply(target, args)];
|
|
436
|
-
case 1:
|
|
437
|
-
frame = _a.sent();
|
|
438
|
-
if (!frame) {
|
|
439
|
-
return [2 /*return*/, null];
|
|
440
|
-
}
|
|
441
|
-
return [2 /*return*/, (0, exports.wrapFrame)(frame, controller)];
|
|
442
|
-
}
|
|
443
|
-
});
|
|
444
|
-
});
|
|
445
|
-
};
|
|
240
|
+
return (0, exports.wrapFrame)(frame, controller);
|
|
241
|
+
});
|
|
446
242
|
default:
|
|
447
243
|
return Reflect.get(target, prop, receiver);
|
|
448
244
|
}
|
|
449
245
|
}
|
|
450
246
|
});
|
|
451
|
-
(0,
|
|
247
|
+
(0, util_1.markAsWrapped)(elementHandleProxy);
|
|
452
248
|
return elementHandleProxy;
|
|
453
249
|
};
|
|
454
250
|
exports.wrapElementHandle = wrapElementHandle;
|
|
455
|
-
|
|
456
|
-
if ((0,
|
|
251
|
+
const wrapFrame = (frame, controller) => {
|
|
252
|
+
if ((0, util_1.isWrapped)(frame)) {
|
|
457
253
|
return frame;
|
|
458
254
|
}
|
|
459
|
-
|
|
460
|
-
get
|
|
461
|
-
var _this = this;
|
|
255
|
+
const frameProxy = new Proxy(frame, {
|
|
256
|
+
get(target, prop, receiver) {
|
|
462
257
|
switch (prop) {
|
|
463
258
|
case '$':
|
|
464
259
|
case 'addScriptTag':
|
|
465
260
|
case 'addStyleTag':
|
|
466
261
|
case 'frameElement':
|
|
467
262
|
case 'waitForSelector':
|
|
468
|
-
return function () {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
263
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
// @ts-expect-error TypeScript is angry.
|
|
265
|
+
const el = yield target[prop](...args);
|
|
266
|
+
if (!el) {
|
|
267
|
+
return null;
|
|
472
268
|
}
|
|
473
|
-
return
|
|
474
|
-
|
|
475
|
-
return __generator(this, function (_a) {
|
|
476
|
-
switch (_a.label) {
|
|
477
|
-
case 0: return [4 /*yield*/, target[prop].apply(target, args)];
|
|
478
|
-
case 1:
|
|
479
|
-
el = _a.sent();
|
|
480
|
-
if (!el) {
|
|
481
|
-
return [2 /*return*/, null];
|
|
482
|
-
}
|
|
483
|
-
return [2 /*return*/, (0, exports.wrapElementHandle)(el, controller)];
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
});
|
|
487
|
-
};
|
|
269
|
+
return (0, exports.wrapElementHandle)(el, controller);
|
|
270
|
+
});
|
|
488
271
|
case 'evaluateHandle':
|
|
489
|
-
return function () {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
495
|
-
var el;
|
|
496
|
-
return __generator(this, function (_a) {
|
|
497
|
-
switch (_a.label) {
|
|
498
|
-
case 0: return [4 /*yield*/, target.evaluateHandle.apply(target, args)];
|
|
499
|
-
case 1:
|
|
500
|
-
el = _a.sent();
|
|
501
|
-
return [2 /*return*/, (0, exports.wrapJSHandle)(el, controller)];
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
});
|
|
505
|
-
};
|
|
272
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
const el = yield target.evaluateHandle(...args);
|
|
274
|
+
return (0, exports.wrapJSHandle)(el, controller);
|
|
275
|
+
});
|
|
506
276
|
case 'childFrames':
|
|
507
|
-
return
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
args[_i] = arguments[_i];
|
|
511
|
-
}
|
|
512
|
-
var frames = target.childFrames.apply(target, args);
|
|
513
|
-
return frames.map(function (f) { return (0, exports.wrapFrame)(f, controller); });
|
|
277
|
+
return (...args) => {
|
|
278
|
+
const frames = target.childFrames(...args);
|
|
279
|
+
return frames.map(f => (0, exports.wrapFrame)(f, controller));
|
|
514
280
|
};
|
|
515
281
|
case 'check':
|
|
516
282
|
case 'click':
|
|
@@ -529,12 +295,8 @@ var wrapFrame = function (frame, controller) {
|
|
|
529
295
|
case 'uncheck':
|
|
530
296
|
return wrappedCallWithSideEffects(target, prop, controller);
|
|
531
297
|
case 'frameLocator':
|
|
532
|
-
return
|
|
533
|
-
|
|
534
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
535
|
-
args[_i] = arguments[_i];
|
|
536
|
-
}
|
|
537
|
-
var frameLocator = target.frameLocator.apply(target, args);
|
|
298
|
+
return (...args) => {
|
|
299
|
+
const frameLocator = target.frameLocator(...args);
|
|
538
300
|
return (0, exports.wrapFrameLocator)(frameLocator, controller);
|
|
539
301
|
};
|
|
540
302
|
case 'getByAltText':
|
|
@@ -545,20 +307,16 @@ var wrapFrame = function (frame, controller) {
|
|
|
545
307
|
case 'getByText':
|
|
546
308
|
case 'getByTitle':
|
|
547
309
|
case 'locator':
|
|
548
|
-
return
|
|
549
|
-
var args = [];
|
|
550
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
551
|
-
args[_i] = arguments[_i];
|
|
552
|
-
}
|
|
310
|
+
return (...args) => {
|
|
553
311
|
// @ts-expect-error TypeScript is angry.
|
|
554
|
-
|
|
312
|
+
const el = target[prop](...args);
|
|
555
313
|
return (0, exports.wrapLocator)(el, controller);
|
|
556
314
|
};
|
|
557
315
|
case 'page':
|
|
558
|
-
return
|
|
316
|
+
return () => (0, exports.wrapPage)(target.page(), controller);
|
|
559
317
|
case 'parentFrame':
|
|
560
|
-
return
|
|
561
|
-
|
|
318
|
+
return () => {
|
|
319
|
+
const parentFrame = target.parentFrame();
|
|
562
320
|
if (!parentFrame) {
|
|
563
321
|
return null;
|
|
564
322
|
}
|
|
@@ -569,28 +327,24 @@ var wrapFrame = function (frame, controller) {
|
|
|
569
327
|
}
|
|
570
328
|
}
|
|
571
329
|
});
|
|
572
|
-
(0,
|
|
330
|
+
(0, util_1.markAsWrapped)(frameProxy);
|
|
573
331
|
return frameProxy;
|
|
574
332
|
};
|
|
575
333
|
exports.wrapFrame = wrapFrame;
|
|
576
|
-
|
|
577
|
-
if ((0,
|
|
334
|
+
const wrapFrameLocator = (frameLocator, controller) => {
|
|
335
|
+
if ((0, util_1.isWrapped)(frameLocator)) {
|
|
578
336
|
return frameLocator;
|
|
579
337
|
}
|
|
580
|
-
|
|
581
|
-
get
|
|
338
|
+
const frameLocatorProxy = new Proxy(frameLocator, {
|
|
339
|
+
get(target, prop, receiver) {
|
|
582
340
|
switch (prop) {
|
|
583
341
|
case 'first':
|
|
584
342
|
case 'frameLocator':
|
|
585
343
|
case 'last':
|
|
586
344
|
case 'nth':
|
|
587
|
-
return
|
|
588
|
-
var args = [];
|
|
589
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
590
|
-
args[_i] = arguments[_i];
|
|
591
|
-
}
|
|
345
|
+
return (...args) => {
|
|
592
346
|
// @ts-expect-error TypeScript is angry.
|
|
593
|
-
|
|
347
|
+
const frame = target[prop](...args);
|
|
594
348
|
if (!frame) {
|
|
595
349
|
return null;
|
|
596
350
|
}
|
|
@@ -604,13 +358,9 @@ var wrapFrameLocator = function (frameLocator, controller) {
|
|
|
604
358
|
case 'getByTestId':
|
|
605
359
|
case 'getByText':
|
|
606
360
|
case 'getByTitle':
|
|
607
|
-
return
|
|
608
|
-
var args = [];
|
|
609
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
610
|
-
args[_i] = arguments[_i];
|
|
611
|
-
}
|
|
361
|
+
return (...args) => {
|
|
612
362
|
// @ts-expect-error TypeScript is angry.
|
|
613
|
-
|
|
363
|
+
const el = target[prop](...args);
|
|
614
364
|
return (0, exports.wrapLocator)(el, controller);
|
|
615
365
|
};
|
|
616
366
|
default:
|
|
@@ -618,36 +368,22 @@ var wrapFrameLocator = function (frameLocator, controller) {
|
|
|
618
368
|
}
|
|
619
369
|
}
|
|
620
370
|
});
|
|
621
|
-
(0,
|
|
371
|
+
(0, util_1.markAsWrapped)(frameLocatorProxy);
|
|
622
372
|
return frameLocatorProxy;
|
|
623
373
|
};
|
|
624
374
|
exports.wrapFrameLocator = wrapFrameLocator;
|
|
625
|
-
|
|
626
|
-
if ((0,
|
|
375
|
+
const wrapLocator = (locator, controller) => {
|
|
376
|
+
if ((0, util_1.isWrapped)(locator)) {
|
|
627
377
|
return locator;
|
|
628
378
|
}
|
|
629
|
-
|
|
630
|
-
get
|
|
631
|
-
var _this = this;
|
|
379
|
+
const locatorProxy = new Proxy(locator, {
|
|
380
|
+
get(target, prop, receiver) {
|
|
632
381
|
switch (prop) {
|
|
633
382
|
case 'all':
|
|
634
|
-
return function () {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
640
|
-
var els;
|
|
641
|
-
return __generator(this, function (_a) {
|
|
642
|
-
switch (_a.label) {
|
|
643
|
-
case 0: return [4 /*yield*/, target.all.apply(target, args)];
|
|
644
|
-
case 1:
|
|
645
|
-
els = _a.sent();
|
|
646
|
-
return [2 /*return*/, els.map(function (e) { return (0, exports.wrapLocator)(e, controller); })];
|
|
647
|
-
}
|
|
648
|
-
});
|
|
649
|
-
});
|
|
650
|
-
};
|
|
383
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
384
|
+
const els = yield target.all(...args);
|
|
385
|
+
return els.map(e => (0, exports.wrapLocator)(e, controller));
|
|
386
|
+
});
|
|
651
387
|
case 'blur':
|
|
652
388
|
case 'check':
|
|
653
389
|
case 'click':
|
|
@@ -669,50 +405,23 @@ var wrapLocator = function (locator, controller) {
|
|
|
669
405
|
case 'uncheck':
|
|
670
406
|
return wrappedCallWithSideEffects(target, prop, controller);
|
|
671
407
|
case 'elementHandle':
|
|
672
|
-
return
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
if (!el) {
|
|
680
|
-
return [2 /*return*/, null];
|
|
681
|
-
}
|
|
682
|
-
return [2 /*return*/, (0, exports.wrapElementHandle)(el, controller)];
|
|
683
|
-
}
|
|
684
|
-
});
|
|
685
|
-
}); };
|
|
408
|
+
return () => __awaiter(this, void 0, void 0, function* () {
|
|
409
|
+
const el = yield target.elementHandle();
|
|
410
|
+
if (!el) {
|
|
411
|
+
return null;
|
|
412
|
+
}
|
|
413
|
+
return (0, exports.wrapElementHandle)(el, controller);
|
|
414
|
+
});
|
|
686
415
|
case 'elementHandles':
|
|
687
|
-
return
|
|
688
|
-
|
|
689
|
-
return
|
|
690
|
-
|
|
691
|
-
case 0: return [4 /*yield*/, target.elementHandles()];
|
|
692
|
-
case 1:
|
|
693
|
-
els = _a.sent();
|
|
694
|
-
return [2 /*return*/, els.map(function (e) { return (0, exports.wrapElementHandle)(e, controller); })];
|
|
695
|
-
}
|
|
696
|
-
});
|
|
697
|
-
}); };
|
|
416
|
+
return () => __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
const els = yield target.elementHandles();
|
|
418
|
+
return els.map(e => (0, exports.wrapElementHandle)(e, controller));
|
|
419
|
+
});
|
|
698
420
|
case 'evaluateHandle':
|
|
699
|
-
return function () {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
705
|
-
var handle;
|
|
706
|
-
return __generator(this, function (_a) {
|
|
707
|
-
switch (_a.label) {
|
|
708
|
-
case 0: return [4 /*yield*/, target.evaluateHandle.apply(target, args)];
|
|
709
|
-
case 1:
|
|
710
|
-
handle = _a.sent();
|
|
711
|
-
return [2 /*return*/, (0, exports.wrapJSHandle)(handle, controller)];
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
});
|
|
715
|
-
};
|
|
421
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
422
|
+
const handle = yield target.evaluateHandle(...args);
|
|
423
|
+
return (0, exports.wrapJSHandle)(handle, controller);
|
|
424
|
+
});
|
|
716
425
|
case 'filter':
|
|
717
426
|
case 'first':
|
|
718
427
|
case 'last':
|
|
@@ -725,28 +434,20 @@ var wrapLocator = function (locator, controller) {
|
|
|
725
434
|
case 'getByTestId':
|
|
726
435
|
case 'getByText':
|
|
727
436
|
case 'getByTitle':
|
|
728
|
-
return
|
|
729
|
-
var args = [];
|
|
730
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
731
|
-
args[_i] = arguments[_i];
|
|
732
|
-
}
|
|
437
|
+
return (...args) => {
|
|
733
438
|
// @ts-expect-error TypeScript doesn't like this.
|
|
734
|
-
|
|
439
|
+
const el = target[prop](...args);
|
|
735
440
|
return (0, exports.wrapLocator)(el, controller);
|
|
736
441
|
};
|
|
737
442
|
case 'frameLocator':
|
|
738
|
-
return
|
|
739
|
-
var args = [];
|
|
740
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
741
|
-
args[_i] = arguments[_i];
|
|
742
|
-
}
|
|
443
|
+
return (...args) => {
|
|
743
444
|
// @ts-expect-error TypeScript doesn't like this.
|
|
744
|
-
|
|
445
|
+
const frame = target[prop](...args);
|
|
745
446
|
return (0, exports.wrapFrameLocator)(frame, controller);
|
|
746
447
|
};
|
|
747
448
|
case 'page':
|
|
748
|
-
return
|
|
749
|
-
|
|
449
|
+
return () => {
|
|
450
|
+
const page = target[prop]();
|
|
750
451
|
return (0, exports.wrapPage)(page, controller);
|
|
751
452
|
};
|
|
752
453
|
default:
|
|
@@ -754,59 +455,45 @@ var wrapLocator = function (locator, controller) {
|
|
|
754
455
|
}
|
|
755
456
|
}
|
|
756
457
|
});
|
|
757
|
-
(0,
|
|
458
|
+
(0, util_1.markAsWrapped)(locatorProxy);
|
|
758
459
|
return locatorProxy;
|
|
759
460
|
};
|
|
760
461
|
exports.wrapLocator = wrapLocator;
|
|
761
|
-
|
|
762
|
-
if ((0,
|
|
462
|
+
const wrapJSHandle = (jsHandle, controller) => {
|
|
463
|
+
if ((0, util_1.isWrapped)(jsHandle)) {
|
|
763
464
|
return jsHandle;
|
|
764
465
|
}
|
|
765
|
-
|
|
766
|
-
get
|
|
767
|
-
var _this = this;
|
|
466
|
+
const jsHandleProxy = new Proxy(jsHandle, {
|
|
467
|
+
get(target, prop, receiver) {
|
|
768
468
|
switch (prop) {
|
|
769
469
|
case 'asElement':
|
|
770
|
-
return
|
|
771
|
-
|
|
470
|
+
return () => {
|
|
471
|
+
const el = target.asElement();
|
|
772
472
|
if (!el) {
|
|
773
473
|
return null;
|
|
774
474
|
}
|
|
775
475
|
return (0, exports.wrapElementHandle)(el, controller);
|
|
776
476
|
};
|
|
777
477
|
case 'evaluateHandle':
|
|
778
|
-
return function () {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}
|
|
783
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
784
|
-
var handle;
|
|
785
|
-
return __generator(this, function (_a) {
|
|
786
|
-
switch (_a.label) {
|
|
787
|
-
case 0: return [4 /*yield*/, target.evaluateHandle.apply(target, args)];
|
|
788
|
-
case 1:
|
|
789
|
-
handle = _a.sent();
|
|
790
|
-
return [2 /*return*/, (0, exports.wrapJSHandle)(handle, controller)];
|
|
791
|
-
}
|
|
792
|
-
});
|
|
793
|
-
});
|
|
794
|
-
};
|
|
478
|
+
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
const handle = yield target.evaluateHandle(...args);
|
|
480
|
+
return (0, exports.wrapJSHandle)(handle, controller);
|
|
481
|
+
});
|
|
795
482
|
default:
|
|
796
483
|
return Reflect.get(target, prop, receiver);
|
|
797
484
|
}
|
|
798
485
|
}
|
|
799
486
|
});
|
|
800
|
-
(0,
|
|
487
|
+
(0, util_1.markAsWrapped)(jsHandleProxy);
|
|
801
488
|
return jsHandleProxy;
|
|
802
489
|
};
|
|
803
490
|
exports.wrapJSHandle = wrapJSHandle;
|
|
804
|
-
|
|
805
|
-
if ((0,
|
|
491
|
+
const wrapKeyboard = (keyboard, controller) => {
|
|
492
|
+
if ((0, util_1.isWrapped)(keyboard)) {
|
|
806
493
|
return keyboard;
|
|
807
494
|
}
|
|
808
|
-
|
|
809
|
-
get
|
|
495
|
+
const keyboardProxy = new Proxy(keyboard, {
|
|
496
|
+
get(target, prop, receiver) {
|
|
810
497
|
switch (prop) {
|
|
811
498
|
case 'down':
|
|
812
499
|
case 'press':
|
|
@@ -819,16 +506,16 @@ var wrapKeyboard = function (keyboard, controller) {
|
|
|
819
506
|
}
|
|
820
507
|
}
|
|
821
508
|
});
|
|
822
|
-
(0,
|
|
509
|
+
(0, util_1.markAsWrapped)(keyboardProxy);
|
|
823
510
|
return keyboardProxy;
|
|
824
511
|
};
|
|
825
512
|
exports.wrapKeyboard = wrapKeyboard;
|
|
826
|
-
|
|
827
|
-
if ((0,
|
|
513
|
+
const wrapMouse = (mouse, controller) => {
|
|
514
|
+
if ((0, util_1.isWrapped)(mouse)) {
|
|
828
515
|
return mouse;
|
|
829
516
|
}
|
|
830
|
-
|
|
831
|
-
get
|
|
517
|
+
const mouseProxy = new Proxy(mouse, {
|
|
518
|
+
get(target, prop, receiver) {
|
|
832
519
|
switch (prop) {
|
|
833
520
|
case 'click':
|
|
834
521
|
case 'dblclick':
|
|
@@ -842,16 +529,16 @@ var wrapMouse = function (mouse, controller) {
|
|
|
842
529
|
}
|
|
843
530
|
}
|
|
844
531
|
});
|
|
845
|
-
(0,
|
|
532
|
+
(0, util_1.markAsWrapped)(mouseProxy);
|
|
846
533
|
return mouseProxy;
|
|
847
534
|
};
|
|
848
535
|
exports.wrapMouse = wrapMouse;
|
|
849
|
-
|
|
850
|
-
if ((0,
|
|
536
|
+
const wrapTouchscreen = (touchscreen, controller) => {
|
|
537
|
+
if ((0, util_1.isWrapped)(touchscreen)) {
|
|
851
538
|
return touchscreen;
|
|
852
539
|
}
|
|
853
|
-
|
|
854
|
-
get
|
|
540
|
+
const touchscreenProxy = new Proxy(touchscreen, {
|
|
541
|
+
get(target, prop, receiver) {
|
|
855
542
|
switch (prop) {
|
|
856
543
|
case 'tap':
|
|
857
544
|
return wrappedCallWithSideEffects(target, prop, controller);
|
|
@@ -860,7 +547,7 @@ var wrapTouchscreen = function (touchscreen, controller) {
|
|
|
860
547
|
}
|
|
861
548
|
}
|
|
862
549
|
});
|
|
863
|
-
(0,
|
|
550
|
+
(0, util_1.markAsWrapped)(touchscreenProxy);
|
|
864
551
|
return touchscreenProxy;
|
|
865
552
|
};
|
|
866
553
|
exports.wrapTouchscreen = wrapTouchscreen;
|