@datadog/rollup-plugin 2.2.0 → 2.3.0-dev

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,4 +1,5 @@
1
1
  import * as rollup from 'rollup';
2
+ import * as src from 'src';
2
3
 
3
4
  declare const CONFIG_KEY$1: "rum";
4
5
 
@@ -27,6 +28,26 @@ type types$1 = {
27
28
 
28
29
  declare const CONFIG_KEY: "telemetry";
29
30
 
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
+ };
41
+ interface GetPluginsOptions {
42
+ auth?: AuthOptions;
43
+ disableGit?: boolean;
44
+ logLevel?: LogLevel;
45
+ }
46
+ interface Options extends GetPluginsOptions {
47
+ [CONFIG_KEY$1]?: RumOptions;
48
+ [CONFIG_KEY]?: TelemetryOptions;
49
+ }
50
+
30
51
  interface Metric {
31
52
  metric: string;
32
53
  type: 'count' | 'size' | 'duration';
@@ -37,48 +58,40 @@ type Filter = (metric: Metric) => Metric | null;
37
58
  type OutputOptions = boolean | string | {
38
59
  destination: string;
39
60
  timings?: boolean;
40
- dependencies?: boolean;
41
- bundler?: boolean;
42
61
  metrics?: boolean;
43
- logs?: boolean;
44
62
  };
45
63
  type TelemetryOptions = {
46
64
  disabled?: boolean;
65
+ /** @deprecated */
66
+ enableTracing?: boolean;
67
+ endPoint?: string;
68
+ filters?: Filter[];
47
69
  output?: OutputOptions;
48
70
  prefix?: string;
49
71
  tags?: string[];
50
72
  timestamp?: number;
51
- filters?: Filter[];
52
73
  };
53
74
 
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
- }
75
+ declare const datadogRollupPlugin: (options: src.RollupPluginOptions) => rollup.Plugin<any>[];
74
76
 
77
+ declare const version: string;
75
78
  declare const helpers: {
76
79
  telemetry: {
77
80
  filters: ((metric: Metric) => Metric | null)[];
78
81
  };
79
82
  };
80
83
 
81
- declare const datadogRollupPlugin: (options: Options) => rollup.Plugin<any>[];
84
+ export { type Options as RollupPluginOptions, type types$1 as RumTypes, type types as TelemetryTypes, datadogRollupPlugin, helpers, version };
85
+
82
86
 
83
- export { type Options as RollupPluginOptions, type types$1 as RumTypes, type types as TelemetryTypes, datadogRollupPlugin, helpers };
87
+ if (typeof module !== 'undefined') {
88
+ module.exports = {
89
+ RollupPluginOptions,
90
+ RumTypes,
91
+ TelemetryTypes,
92
+ datadogRollupPlugin,
93
+ helpers,
94
+ version
95
+ };
96
+ }
84
97
  //# sourceMappingURL=index.d.ts.map