@checksum-ai/runtime 1.1.13 → 1.1.14

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/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@checksum-ai/runtime",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "Checksum.ai test runtime",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
7
  "@playwright/test": "1.46.0",
8
8
  "jsdom": "^22.1.0",
9
9
  "playwright-extra": "^4.3.6",
10
+ "puppeteer-extra-plugin": "^3.2.3",
10
11
  "request": "^2.88.2",
11
12
  "ts-node": "^10.9.1"
12
13
  },
@@ -195,12 +195,18 @@ function testType(projectRoot) {
195
195
  }
196
196
 
197
197
  function indexContent(projectRoot) {
198
- const file = join(projectRoot, "node_modules", "playwright", "lib", "index.js")
198
+ const file = join(
199
+ projectRoot,
200
+ "node_modules",
201
+ "playwright",
202
+ "lib",
203
+ "index.js"
204
+ );
199
205
  if (!doesFileExist) {
200
206
  return;
201
207
  }
202
208
  let originalContent, newContent;
203
- originalContent = `const browser = await playwright[browserName].launch();`
209
+ originalContent = `const browser = await playwright[browserName].launch();`;
204
210
  newContent = `
205
211
  let browser = playwright[browserName];
206
212
  try {
@@ -229,8 +235,8 @@ function indexContent(projectRoot) {
229
235
  );
230
236
  }
231
237
  browser = await browser.launch();
232
- `
233
- replaceContent(file, originalContent, newContent)
238
+ `;
239
+ replaceContent(file, originalContent, newContent);
234
240
  }
235
241
 
236
242
  function channelOwner(projectRoot) {
@@ -260,6 +266,12 @@ function channelOwner(projectRoot) {
260
266
  this._checksumTitle = undefined;
261
267
  }`;
262
268
  amend(file, entryPointText, appendText);
269
+
270
+ entryPointText = `if (isInternal) apiName = undefined;`;
271
+ appendText = `\nif (apiName && apiName.startsWith('proxy')) {
272
+ apiName = apiName.replace('proxy', 'page');
273
+ }`;
274
+ amend(file, entryPointText, appendText);
263
275
  }
264
276
 
265
277
  function stackTrace(projectRoot) {