browsertime 17.0.0-beta.0 → 17.0.0-beta.2

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.
@@ -11,6 +11,7 @@ const CHROME_AMD_EDGE_INTERNAL_PHONE_HOME = [
11
11
  '"MAP cache.pack.google.com 127.0.0.1"',
12
12
  '"MAP clients1.google.com 127.0.0.1"',
13
13
  '"MAP update.googleapis.com 127.0.0.1"',
14
+ '"MAP content-autofill.googleapis.com 127.0.0.1"',
14
15
  '"MAP redirector.gvt1.com 127.0.0.1"',
15
16
  '"MAP laptop-updates.brave.com 127.0.0.1"',
16
17
  '"MAP offlinepages-pa.googleapis.com 127.0.0.1"',
@@ -350,7 +350,7 @@ export default class Engine {
350
350
  }
351
351
  }
352
352
  } // We don't have a HAR for Firefox on Android
353
- else if (options.browser === 'firefox' && options.android) {
353
+ else if (options.browser === 'firefox' && isAndroidConfigured(options)) {
354
354
  for (let result of totalResult) {
355
355
  result.info.browser.name = 'Firefox';
356
356
  try {
@@ -163,7 +163,8 @@ export async function configureBuilder(builder, baseDir, options) {
163
163
  ffOptions.setPreference(name, false);
164
164
  } else if (value === 'true') {
165
165
  ffOptions.setPreference(name, true);
166
- } else if (Number.isNaN(value)) {
166
+ // eslint-disable-next-line unicorn/prefer-number-properties
167
+ } else if (isNaN(value)) {
167
168
  ffOptions.setPreference(name, value);
168
169
  } else {
169
170
  ffOptions.setPreference(name, Number(value));
@@ -146,7 +146,7 @@ class Firefox {
146
146
  );
147
147
  }
148
148
 
149
- if (this.skipHar || this.options.android) {
149
+ if (this.skipHar || isAndroidConfigured(this.options)) {
150
150
  return result;
151
151
  } else {
152
152
  const har = await getHAR(runner, this.includeResponseBodies);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "description": "Browsertime",
3
- "version": "17.0.0-beta.0",
3
+ "version": "17.0.0-beta.2",
4
4
  "bin": "./bin/browsertime.js",
5
5
  "type": "module",
6
6
  "dependencies": {