@cloudscape-design/browser-test-tools 3.0.36 → 3.0.38

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.
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.getPuppeteer = exports.calculateIosTopOffset = exports.getElementCenter = void 0;
4
7
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5
8
  // SPDX-License-Identifier: Apache-2.0
9
+ const dns_1 = __importDefault(require("dns"));
6
10
  const exceptions_1 = require("../exceptions");
7
11
  function getElementCenter(rect) {
8
12
  return {
@@ -55,6 +59,8 @@ function calculateIosTopOffset(dimensions) {
55
59
  }
56
60
  exports.calculateIosTopOffset = calculateIosTopOffset;
57
61
  async function getPuppeteer(browser) {
62
+ // Make sure to favor IPv4 name resolution over IPv6 so that the localhost debugger can be found.
63
+ dns_1.default.setDefaultResultOrder('ipv4first');
58
64
  try {
59
65
  const puppeteer = await browser.getPuppeteer();
60
66
  return puppeteer;
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "52d3f350ea9e5d298511c09f1c50761ee26b5fde"
2
+ "commit": "06b0228f41890e69282511de29722adba2842e45"
3
3
  }
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "webdriverio": "^7.25.2"
15
15
  },
16
16
  "deprecated": false,
17
- "description": "## ⚠️ This is a generated artifact package and should be treated as **READ-ONLY**. Do not commit directly to this package!",
17
+ "description": "## ⚠️ This is a generated artifact package and should be treated as **READ-ONLY**.",
18
18
  "exports": {
19
19
  "./chrome-launcher": "./chrome-launcher.js",
20
20
  "./image-utils": "./image-utils.js",
@@ -64,6 +64,6 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/cloudscape-design/browser-test-tools.git"
66
66
  },
67
- "version": "3.0.36",
67
+ "version": "3.0.38",
68
68
  "license": "Apache-2.0"
69
69
  }