File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/electron-service Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -340,14 +340,14 @@ export const waitUntilWindowAvailable = async (browser: WebdriverIO.Browser) =>
340340const copyOriginalApi = async ( browser : WebdriverIO . Browser ) => {
341341 await browser . electron . execute < void , [ ExecuteOpts ] > (
342342 async ( electron ) => {
343- const { default : copy } = await import ( 'fast-copy' ) ;
343+ const { copy : fastCopy } = await import ( 'fast-copy' ) ;
344344 globalThis . originalApi = { } as unknown as Record < ElectronInterface , ElectronType [ ElectronInterface ] > ;
345345 for ( const api in electron ) {
346346 const apiName = api as keyof ElectronType ;
347347 globalThis . originalApi [ apiName ] = { } as ElectronType [ ElectronInterface ] ;
348348 for ( const apiElement in electron [ apiName ] ) {
349349 const apiElementName = apiElement as keyof ElectronType [ ElectronInterface ] ;
350- globalThis . originalApi [ apiName ] [ apiElementName ] = copy ( electron [ apiName ] [ apiElementName ] ) ;
350+ globalThis . originalApi [ apiName ] [ apiElementName ] = fastCopy ( electron [ apiName ] [ apiElementName ] ) ;
351351 }
352352 }
353353 } ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const config: BundlerConfig = {
1818 packageName : 'fast-copy' ,
1919 targetFile : 'src/service.ts' ,
2020 bundleRegExp : / e x p o r t .* $ / m,
21- importName : '{ default: copy }' ,
21+ importName : '{ copy: fastCopy }' ,
2222 bundleReplace : ( importName ) => `const ${ importName } = { default: index };` ,
2323 } ,
2424 } ,
You can’t perform that action at this time.
0 commit comments