@datadog/webpack-plugin 0.0.3-dev → 0.0.4-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.
- package/dist/src/index.d.ts +48 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.mjs.map +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as webpack from 'webpack';
|
|
2
|
+
|
|
3
|
+
interface GetPluginsOptions {
|
|
4
|
+
auth: {
|
|
5
|
+
apiKey: string;
|
|
6
|
+
appKey: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const CONFIG_KEY: "telemetry";
|
|
11
|
+
|
|
12
|
+
interface Metric {
|
|
13
|
+
metric: string;
|
|
14
|
+
type: 'count' | 'size' | 'duration';
|
|
15
|
+
value: number;
|
|
16
|
+
tags: string[];
|
|
17
|
+
}
|
|
18
|
+
type Filter = (metric: Metric) => Metric | null;
|
|
19
|
+
interface DatadogOptions {
|
|
20
|
+
apiKey?: string;
|
|
21
|
+
endPoint?: string;
|
|
22
|
+
prefix?: string;
|
|
23
|
+
tags?: string[];
|
|
24
|
+
timestamp?: number;
|
|
25
|
+
filters?: Filter[];
|
|
26
|
+
}
|
|
27
|
+
type OutputOptions = boolean | string | {
|
|
28
|
+
destination: string;
|
|
29
|
+
timings?: boolean;
|
|
30
|
+
dependencies?: boolean;
|
|
31
|
+
bundler?: boolean;
|
|
32
|
+
metrics?: boolean;
|
|
33
|
+
};
|
|
34
|
+
type TelemetryOptions = {
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
output?: OutputOptions;
|
|
37
|
+
hooks?: string[];
|
|
38
|
+
datadog?: DatadogOptions;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
interface Options extends GetPluginsOptions {
|
|
42
|
+
[CONFIG_KEY]?: TelemetryOptions;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare const datadogWebpackPlugin: (options: Options) => webpack.WebpackPluginInstance;
|
|
46
|
+
|
|
47
|
+
export { datadogWebpackPlugin, datadogWebpackPlugin as default };
|
|
48
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|