electron-playwright-helpers
Advanced tools
Comparing version 1.5.5 to 1.6.0
@@ -20,3 +20,3 @@ /** | ||
export declare function findLatestBuild(buildDirectory?: string): string; | ||
type Architecture = 'x64' | 'x32' | 'arm64' | undefined; | ||
type Architecture = 'x64' | 'x32' | 'arm64' | 'universal' | undefined; | ||
export interface PackageJson { | ||
@@ -23,0 +23,0 @@ [key: string]: unknown; |
@@ -166,2 +166,18 @@ "use strict"; | ||
} | ||
if (baseNameLc.includes('universal')) { | ||
arch = 'universal'; | ||
} | ||
if (!arch) { | ||
// we still haven't figured out architecture | ||
// let's get a little more desperate | ||
if (baseNameLc.includes('x86')) { | ||
arch = 'x32'; | ||
} | ||
else if (baseNameLc.includes('arm')) { | ||
arch = 'arm64'; | ||
} | ||
else if (baseNameLc.includes('univ')) { | ||
arch = 'universal'; | ||
} | ||
} | ||
let executable; | ||
@@ -168,0 +184,0 @@ let main; |
{ | ||
"name": "electron-playwright-helpers", | ||
"version": "1.5.5", | ||
"version": "1.6.0", | ||
"description": "Helper functions for Electron end-to-end testing using Playwright", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129052
1531