@datadog/esbuild-plugin 2.3.1-dev-6 → 2.3.1-dev-7

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.
@@ -23519,15 +23519,16 @@ const defaultFilters = [
23519
23519
 
23520
23520
  const validateOptions$1 = (opts) => {
23521
23521
  const options = opts[CONFIG_KEY] || {};
23522
+ const endPoint = options.endPoint || "https://app.datadoghq.com";
23522
23523
  return {
23523
23524
  disabled: false,
23524
23525
  enableTracing: false,
23525
- endPoint: "app.datadoghq.com",
23526
23526
  filters: defaultFilters,
23527
23527
  output: false,
23528
23528
  prefix: "",
23529
23529
  tags: [],
23530
- ...options
23530
+ ...options,
23531
+ endPoint: endPoint.startsWith("http") ? endPoint : `https://${endPoint}`
23531
23532
  };
23532
23533
  };
23533
23534
  const getMetric = (metric, opts) => ({
@@ -36445,7 +36446,7 @@ const buildPluginFactory = ({
36445
36446
 
36446
36447
  var name = "@datadog/esbuild-plugin";
36447
36448
  var packageManager = "yarn@4.0.2";
36448
- var version$1 = "2.3.1-dev-6";
36449
+ var version$1 = "2.3.1-dev-7";
36449
36450
  var license = "MIT";
36450
36451
  var author = "Datadog";
36451
36452
  var description = "Datadog ESBuild Plugin";