@datadog/esbuild-plugin 2.2.0-dev-1 → 2.2.0

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.
@@ -1,5 +1,4 @@
1
1
  import * as esbuild from 'esbuild';
2
- import * as src from 'src';
3
2
 
4
3
  declare const CONFIG_KEY$1: "rum";
5
4
 
@@ -28,27 +27,6 @@ type types$1 = {
28
27
 
29
28
  declare const CONFIG_KEY: "telemetry";
30
29
 
31
- type types = {
32
- Filter: Filter;
33
- Metric: Metric;
34
- TelemetryOptions: TelemetryOptions;
35
- };
36
-
37
- type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';
38
- type AuthOptions = {
39
- apiKey?: string;
40
- endPoint?: string;
41
- };
42
- interface GetPluginsOptions {
43
- auth?: AuthOptions;
44
- disableGit?: boolean;
45
- logLevel?: LogLevel;
46
- }
47
- interface Options extends GetPluginsOptions {
48
- [CONFIG_KEY$1]?: RumOptions;
49
- [CONFIG_KEY]?: TelemetryOptions;
50
- }
51
-
52
30
  interface Metric {
53
31
  metric: string;
54
32
  type: 'count' | 'size' | 'duration';
@@ -73,13 +51,34 @@ type TelemetryOptions = {
73
51
  filters?: Filter[];
74
52
  };
75
53
 
54
+ type types = {
55
+ Filter: Filter;
56
+ Metric: Metric;
57
+ TelemetryOptions: TelemetryOptions;
58
+ };
59
+
60
+ type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';
61
+ type AuthOptions = {
62
+ apiKey?: string;
63
+ endPoint?: string;
64
+ };
65
+ interface GetPluginsOptions {
66
+ auth?: AuthOptions;
67
+ disableGit?: boolean;
68
+ logLevel?: LogLevel;
69
+ }
70
+ interface Options extends GetPluginsOptions {
71
+ [CONFIG_KEY$1]?: RumOptions;
72
+ [CONFIG_KEY]?: TelemetryOptions;
73
+ }
74
+
76
75
  declare const helpers: {
77
76
  telemetry: {
78
77
  filters: ((metric: Metric) => Metric | null)[];
79
78
  };
80
79
  };
81
80
 
82
- declare const datadogEsbuildPlugin: (options: src.EsbuildPluginOptions) => esbuild.Plugin;
81
+ declare const datadogEsbuildPlugin: (options: Options) => esbuild.Plugin;
83
82
 
84
83
  export { type Options as EsbuildPluginOptions, type types$1 as RumTypes, type types as TelemetryTypes, datadogEsbuildPlugin, helpers };
85
84
  //# sourceMappingURL=index.d.ts.map
package/dist/src/index.js CHANGED
@@ -26957,7 +26957,7 @@ const buildPluginFactory = ({
26957
26957
 
26958
26958
  var name = "@datadog/esbuild-plugin";
26959
26959
  var packageManager = "yarn@4.0.2";
26960
- var version = "2.2.0-dev-1";
26960
+ var version = "2.2.0";
26961
26961
  var license = "MIT";
26962
26962
  var author = "Datadog";
26963
26963
  var description = "Datadog ESBuild Plugin";
@@ -27022,7 +27022,6 @@ var devDependencies = {
27022
27022
  var peerDependencies = {
27023
27023
  esbuild: ">=0.x"
27024
27024
  };
27025
- var stableVersion = "2.1.0";
27026
27025
  var pkg = {
27027
27026
  name: name,
27028
27027
  packageManager: packageManager,
@@ -27040,8 +27039,7 @@ var pkg = {
27040
27039
  files: files,
27041
27040
  scripts: scripts,
27042
27041
  devDependencies: devDependencies,
27043
- peerDependencies: peerDependencies,
27044
- stableVersion: stableVersion
27042
+ peerDependencies: peerDependencies
27045
27043
  };
27046
27044
 
27047
27045
  const datadogEsbuildPlugin = buildPluginFactory({