You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since cozy-konnector-dev uses require to "launch" a konnectors' code, require.main === module is false, preventing the use of the if (require.main === module) { main().catch(e => {...}) } technique to prevent the execution of code when importing the file (can be useful to test service functions without splitting the service into a "runnable" file and a "utilify" file). See https://mattermost.cozycloud.cc/cozycloud/pl/1ms91mf3f7rnmcagfymqw45j1c for more context.
The text was updated successfully, but these errors were encountered:
Since cozy-konnector-dev uses require to "launch" a konnectors' code,
require.main === module
is false, preventing the use of theif (require.main === module) { main().catch(e => {...}) }
technique to prevent the execution of code when importing the file (can be useful to test service functions without splitting the service into a "runnable" file and a "utilify" file). See https://mattermost.cozycloud.cc/cozycloud/pl/1ms91mf3f7rnmcagfymqw45j1c for more context.The text was updated successfully, but these errors were encountered: