@bigbinary/neeto-playwright-commons 4.8.8 → 4.8.9

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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -25,8 +25,6 @@ import require$$1$5 from 'string_decoder';
25
25
  import require$$0$b from 'node:buffer';
26
26
  import require$$1$6 from 'node:stream';
27
27
  import require$$1$7 from 'zlib';
28
- import { addExtra } from 'playwright-extra';
29
- import stealth$1 from 'puppeteer-extra-plugin-stealth';
30
28
  import { globSync } from 'node:fs';
31
29
  import customParseFormat from 'dayjs/plugin/customParseFormat.js';
32
30
  import timezone from 'dayjs/plugin/timezone.js';
@@ -117282,10 +117280,14 @@ const commands = {
117282
117280
  },
117283
117281
  };
117284
117282
 
117283
+ const loadPlaywrightExtra = () => import('playwright-extra');
117284
+ const loadStealthPlugin = () => import('puppeteer-extra-plugin-stealth');
117285
117285
  var stealth = test.extend({
117286
117286
  browser: async ({}, use) => {
117287
+ const { addExtra } = await loadPlaywrightExtra();
117288
+ const { default: stealth } = await loadStealthPlugin();
117287
117289
  const chromiumBrowser = addExtra(chromium);
117288
- chromiumBrowser.use(stealth$1());
117290
+ chromiumBrowser.use(stealth());
117289
117291
  const stealthBrowser = await chromiumBrowser.launch();
117290
117292
  await use(stealthBrowser);
117291
117293
  await stealthBrowser.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.8.8",
3
+ "version": "4.8.9",
4
4
  "description": "A package encapsulating common playwright code across neeto projects.",
5
5
  "repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
6
6
  "license": "apache-2.0",