@datacamp/learn-vm-scripts 1.2.7-rc.0 → 1.2.8-rc.0

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/dist/index.cjs +4 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -366478,8 +366478,10 @@ async function setupPuppeteerPage({
366478
366478
  userDataDir
366479
366479
  });
366480
366480
  const pages = await browser.pages();
366481
- const page = pages[0] ?? await browser.newPage();
366482
- return page;
366481
+ if (pages[0] !== void 0) {
366482
+ return pages[0];
366483
+ }
366484
+ return browser.newPage();
366483
366485
  }
366484
366486
 
366485
366487
  // src/utils.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datacamp/learn-vm-scripts",
3
- "version": "1.2.7-rc.0",
3
+ "version": "1.2.8-rc.0",
4
4
  "repository": "git@github.com:datacamp-engineering/learn-vm-scripts.git",
5
5
  "description": "Scripts used by VMs in learn.",
6
6
  "main": "./dist/index.cjs",