@datadog/rspack-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
|
@@ -5262,6 +5262,7 @@ type DdLogOptions = {
|
|
|
5262
5262
|
type Env = (typeof ALL_ENVS)[number];
|
|
5263
5263
|
type TriggerHook<R> = <K extends keyof CustomHooks>(name: K, ...args: Parameters<NonNullable<CustomHooks[K]>>) => R;
|
|
5264
5264
|
type GlobalContext = {
|
|
5265
|
+
addMetric: (metric: Metric) => void;
|
|
5265
5266
|
asyncHook: TriggerHook<Promise<void[]>>;
|
|
5266
5267
|
auth: AuthOptionsWithDefaults;
|
|
5267
5268
|
build: BuildReport;
|
|
@@ -5286,6 +5287,7 @@ type CustomHooks = {
|
|
|
5286
5287
|
buildRoot?: HookFn<[
|
|
5287
5288
|
string
|
|
5288
5289
|
]>;
|
|
5290
|
+
flush?: () => Promise<void> | void;
|
|
5289
5291
|
init?: HookFn<[
|
|
5290
5292
|
GlobalContext
|
|
5291
5293
|
]>;
|
|
@@ -5363,6 +5365,7 @@ type GlobalData = {
|
|
|
5363
5365
|
type GlobalStores = {
|
|
5364
5366
|
errors: string[];
|
|
5365
5367
|
logs: Log[];
|
|
5368
|
+
metrics: Set<Metric>;
|
|
5366
5369
|
queue: Promise<any>[];
|
|
5367
5370
|
timings: Timer[];
|
|
5368
5371
|
warnings: string[];
|