@query-doctor/core 0.8.0-rc.2 → 0.8.0-rc.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/dist/index.cjs CHANGED
@@ -2526,6 +2526,15 @@ var PssRewriter = class {
2526
2526
  }
2527
2527
  };
2528
2528
  //#endregion
2529
+ //#region src/sentry.ts
2530
+ function deriveSentryEnvironment(url) {
2531
+ if (!url) return "local";
2532
+ if (url.includes("next")) return "next";
2533
+ if (url.includes("staging")) return "staging";
2534
+ if (url.includes("querydoctor.com")) return "production";
2535
+ return "local";
2536
+ }
2537
+ //#endregion
2529
2538
  exports.Analyzer = Analyzer;
2530
2539
  exports.ExportedStats = ExportedStats;
2531
2540
  exports.ExportedStatsColumns = ExportedStatsColumns;
@@ -2543,6 +2552,7 @@ exports.SKIP = SKIP;
2543
2552
  exports.Statistics = Statistics;
2544
2553
  exports.StatisticsMode = StatisticsMode;
2545
2554
  exports.StatisticsSource = StatisticsSource;
2555
+ exports.deriveSentryEnvironment = deriveSentryEnvironment;
2546
2556
  exports.dropIndex = dropIndex;
2547
2557
  exports.ignoredIdentifier = ignoredIdentifier;
2548
2558
  exports.isIndexProbablyDroppable = isIndexProbablyDroppable;