@datadog/webpack-plugin 2.1.0 → 2.2.0-dev-1

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,9 +1,11 @@
1
1
  import * as webpack from 'webpack';
2
+ import * as src from 'src';
2
3
 
3
4
  declare const CONFIG_KEY$1: "rum";
4
5
 
5
6
  type MinifiedPathPrefix = `http://${string}` | `https://${string}` | `/${string}`;
6
7
  type RumSourcemapsOptions = {
8
+ bailOnError?: boolean;
7
9
  dryRun?: boolean;
8
10
  intakeUrl?: string;
9
11
  maxConcurrency?: number;
@@ -26,6 +28,27 @@ type types$1 = {
26
28
 
27
29
  declare const CONFIG_KEY: "telemetry";
28
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
+ 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
+
29
52
  interface Metric {
30
53
  metric: string;
31
54
  type: 'count' | 'size' | 'duration';
@@ -50,35 +73,13 @@ type TelemetryOptions = {
50
73
  filters?: Filter[];
51
74
  };
52
75
 
53
- type types = {
54
- Filter: Filter;
55
- Metric: Metric;
56
- TelemetryOptions: TelemetryOptions;
57
- };
58
-
59
- type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none';
60
- type AuthOptions = {
61
- apiKey?: string;
62
- endPoint?: string;
63
- };
64
- interface GetPluginsOptions {
65
- auth?: AuthOptions;
66
- disableGit?: boolean;
67
- logLevel?: LogLevel;
68
- }
69
- interface Options extends GetPluginsOptions {
70
- [CONFIG_KEY$1]?: RumOptions;
71
- [CONFIG_KEY]?: TelemetryOptions;
72
- }
73
-
74
76
  declare const helpers: {
75
- rum: {};
76
77
  telemetry: {
77
78
  filters: ((metric: Metric) => Metric | null)[];
78
79
  };
79
80
  };
80
81
 
81
- declare const datadogWebpackPlugin: (options: Options) => webpack.WebpackPluginInstance;
82
+ declare const datadogWebpackPlugin: (options: src.WebpackPluginOptions) => webpack.WebpackPluginInstance;
82
83
 
83
84
  export { type types$1 as RumTypes, type types as TelemetryTypes, type Options as WebpackPluginOptions, datadogWebpackPlugin, helpers };
84
85
  //# sourceMappingURL=index.d.ts.map