@datadog/esbuild-plugin 3.1.8-dev.3 → 3.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.
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +1 -1
- package/dist/src/index.mjs.map +1 -1
- package/package.json +2 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -5263,6 +5263,7 @@ type DdLogOptions = {
|
|
|
5263
5263
|
type Env = (typeof ALL_ENVS)[number];
|
|
5264
5264
|
type TriggerHook<R> = <K extends keyof CustomHooks>(name: K, ...args: Parameters<NonNullable<CustomHooks[K]>>) => R;
|
|
5265
5265
|
type GlobalContext = {
|
|
5266
|
+
addMetric: (metric: Metric) => void;
|
|
5266
5267
|
asyncHook: TriggerHook<Promise<void[]>>;
|
|
5267
5268
|
auth: AuthOptionsWithDefaults;
|
|
5268
5269
|
build: BuildReport;
|
|
@@ -5287,6 +5288,7 @@ type CustomHooks = {
|
|
|
5287
5288
|
buildRoot?: HookFn<[
|
|
5288
5289
|
string
|
|
5289
5290
|
]>;
|
|
5291
|
+
flush?: () => Promise<void> | void;
|
|
5290
5292
|
init?: HookFn<[
|
|
5291
5293
|
GlobalContext
|
|
5292
5294
|
]>;
|
|
@@ -5364,6 +5366,7 @@ type GlobalData = {
|
|
|
5364
5366
|
type GlobalStores = {
|
|
5365
5367
|
errors: string[];
|
|
5366
5368
|
logs: Log[];
|
|
5369
|
+
metrics: Set<Metric>;
|
|
5367
5370
|
queue: Promise<any>[];
|
|
5368
5371
|
timings: Timer[];
|
|
5369
5372
|
warnings: string[];
|