@datacamp/learn-vm-scripts 0.0.1-rc.4 → 0.0.1-rc.6

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 +8 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -95642,6 +95642,11 @@ function ensureHttps(url) {
95642
95642
  }
95643
95643
  return url;
95644
95644
  }
95645
+ function sleep(ms) {
95646
+ return new Promise((resolve5) => {
95647
+ setTimeout(resolve5, ms);
95648
+ });
95649
+ }
95645
95650
 
95646
95651
  // src/azureLogin.ts
95647
95652
  async function loginToAzure({
@@ -95658,6 +95663,7 @@ async function loginToAzure({
95658
95663
  await page.waitForNavigation();
95659
95664
  await page.waitForSelector('[name="loginfmt"]');
95660
95665
  await page.type('[name="loginfmt"]', username);
95666
+ await sleep(100);
95661
95667
  await page.click('[type="submit"]');
95662
95668
  spinner.start("Entering password...");
95663
95669
  await new Promise((resolve5) => {
@@ -95665,6 +95671,7 @@ async function loginToAzure({
95665
95671
  });
95666
95672
  await page.waitForSelector('input[type="password"]', { visible: true });
95667
95673
  await page.type('input[type="password"]', password);
95674
+ await sleep(100);
95668
95675
  await page.keyboard.press("Enter");
95669
95676
  await page.waitForNavigation();
95670
95677
  await page.waitForSelector('[type="submit"]');
@@ -95764,7 +95771,7 @@ var startInputWatcher = async ({
95764
95771
  }
95765
95772
  const fileContent = await fs6.readFile(inputFilePath, { encoding: "utf-8" });
95766
95773
  const lines = fileContent.split(/\r?\n/);
95767
- const firstLine = lines[0];
95774
+ const firstLine = lines[0]?.trim();
95768
95775
  if (firstLine == null) {
95769
95776
  continue;
95770
95777
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datacamp/learn-vm-scripts",
3
- "version": "0.0.1-rc.4",
3
+ "version": "0.0.1-rc.6",
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",