@@ -62,6 +62,10 @@ const ALLOWED_PACKAGES = new Set([
6262 'electron' ,
6363 'playwright' ,
6464 'puppeteer' ,
65+ 'playwright-core' ,
66+ 'playwright-chromium' ,
67+ 'playwright-firefox' ,
68+ 'playwright-webkit' ,
6569 'chromium' ,
6670 'firefox' ,
6771 'webkit' ,
@@ -166,6 +170,62 @@ const BINARY_PACKAGES = {
166170 } ,
167171 getFilename : ( version , platform , arch ) =>
168172 `webkit-${ version } -${ platform } -${ arch } .zip`
173+ } ,
174+ 'playwright-core' : {
175+ name : 'Playwright Core' ,
176+ platforms : [
177+ { os : 'Linux' , platform : 'linux' , arch : 'x64' } ,
178+ { os : 'macOS' , platform : 'darwin' , arch : 'x64' } ,
179+ { os : 'Windows' , platform : 'win32' , arch : 'x64' }
180+ ] ,
181+ getDownloadUrl : ( version , platform , arch ) => {
182+ // Playwright Core downloads browser binaries
183+ return `https://playwright.azureedge.net/builds/playwright-core-${ version } -${ platform } -${ arch } .zip`
184+ } ,
185+ getFilename : ( version , platform , arch ) =>
186+ `playwright-core-${ version } -${ platform } -${ arch } .zip`
187+ } ,
188+ 'playwright-chromium' : {
189+ name : 'Playwright Chromium' ,
190+ platforms : [
191+ { os : 'Linux' , platform : 'linux' , arch : 'x64' } ,
192+ { os : 'macOS' , platform : 'darwin' , arch : 'x64' } ,
193+ { os : 'Windows' , platform : 'win32' , arch : 'x64' }
194+ ] ,
195+ getDownloadUrl : ( version , platform , arch ) => {
196+ // Playwright Chromium downloads Chromium binaries
197+ return `https://playwright.azureedge.net/builds/chromium-${ version } -${ platform } -${ arch } .zip`
198+ } ,
199+ getFilename : ( version , platform , arch ) =>
200+ `playwright-chromium-${ version } -${ platform } -${ arch } .zip`
201+ } ,
202+ 'playwright-firefox' : {
203+ name : 'Playwright Firefox' ,
204+ platforms : [
205+ { os : 'Linux' , platform : 'linux' , arch : 'x64' } ,
206+ { os : 'macOS' , platform : 'darwin' , arch : 'x64' } ,
207+ { os : 'Windows' , platform : 'win32' , arch : 'x64' }
208+ ] ,
209+ getDownloadUrl : ( version , platform , arch ) => {
210+ // Playwright Firefox downloads Firefox binaries
211+ return `https://playwright.azureedge.net/builds/firefox-${ version } -${ platform } -${ arch } .zip`
212+ } ,
213+ getFilename : ( version , platform , arch ) =>
214+ `playwright-firefox-${ version } -${ platform } -${ arch } .zip`
215+ } ,
216+ 'playwright-webkit' : {
217+ name : 'Playwright WebKit' ,
218+ platforms : [
219+ { os : 'Linux' , platform : 'linux' , arch : 'x64' } ,
220+ { os : 'macOS' , platform : 'darwin' , arch : 'x64' } ,
221+ { os : 'Windows' , platform : 'win32' , arch : 'x64' }
222+ ] ,
223+ getDownloadUrl : ( version , platform , arch ) => {
224+ // Playwright WebKit downloads WebKit binaries
225+ return `https://playwright.azureedge.net/builds/webkit-${ version } -${ platform } -${ arch } .zip`
226+ } ,
227+ getFilename : ( version , platform , arch ) =>
228+ `playwright-webkit-${ version } -${ platform } -${ arch } .zip`
169229 }
170230}
171231
0 commit comments