ai-speedometer 1.3.3 → 1.3.4

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.
package/cli.js CHANGED
@@ -2305,7 +2305,7 @@ async function runHeadlessBenchmark(benchSpec, apiKey, useAiSdk) {
2305
2305
  }
2306
2306
 
2307
2307
  // Start the CLI
2308
- if (import.meta.url === `file://${process.argv[1]}`) {
2308
+ if (require.main === module) {
2309
2309
  // Check if help flag
2310
2310
  if (cliArgs.help) {
2311
2311
  showHelp();