@datadog/esbuild-plugin 3.2.11 → 3.2.12-dev.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 +25 -29
- 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 +4 -5
package/dist/src/index.d.ts
CHANGED
|
@@ -10,36 +10,24 @@ declare class TrackedFilesMatcher {
|
|
|
10
10
|
rawTrackedFilesList(): string[];
|
|
11
11
|
private getFilename;
|
|
12
12
|
}
|
|
13
|
-
type
|
|
14
|
-
|
|
13
|
+
type LongPollingOptions = {
|
|
14
|
+
/** Max long-poll attempts. `1` polls once and never retries. Default: `10`. */
|
|
15
|
+
maxRetries?: number;
|
|
16
|
+
/** Randomize retry delays so concurrent pollers don't sync up. Default: `true`. */
|
|
17
|
+
jitter?: boolean;
|
|
18
|
+
/** Grow the delay between retries exponentially. Default: `true`. */
|
|
19
|
+
exponentialBackoff?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Deadline for one attempt, in ms. Must stay above the server's ~30s window,
|
|
22
|
+
* otherwise healthy polls get aborted. Default: `40000`.
|
|
23
|
+
*/
|
|
24
|
+
timeoutMs?: number;
|
|
25
|
+
};
|
|
15
26
|
type AppsOptions = {
|
|
16
27
|
enable?: boolean;
|
|
17
28
|
include?: string[];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
name?: string;
|
|
21
|
-
/** Human-readable description of the app. */
|
|
22
|
-
description?: string;
|
|
23
|
-
/** When true, the app appears in the Datadog self-service catalog. */
|
|
24
|
-
selfService?: boolean;
|
|
25
|
-
/** Deployment and identity settings for the app. */
|
|
26
|
-
permissions?: {
|
|
27
|
-
/**
|
|
28
|
-
* Controls whether publishing the app requires a second approver.
|
|
29
|
-
* - `direct_publish`: any user with publish rights can deploy immediately.
|
|
30
|
-
* - `approval_required`: a second user must approve before the app goes live.
|
|
31
|
-
*/
|
|
32
|
-
protectionLevel?: AppsProtectionLevel;
|
|
33
|
-
/**
|
|
34
|
-
* UUID of the service account the app's backend functions run as.
|
|
35
|
-
* When omitted the app runs as the uploading user.
|
|
36
|
-
* Only service accounts are accepted; arbitrary user UUIDs are rejected by the API.
|
|
37
|
-
*/
|
|
38
|
-
runAs?: string;
|
|
39
|
-
};
|
|
40
|
-
authOverrides?: {
|
|
41
|
-
method?: AuthMethod;
|
|
42
|
-
};
|
|
29
|
+
/** Controls how the dev server retries the Datadog long-poll execution endpoint. */
|
|
30
|
+
longPolling?: LongPollingOptions;
|
|
43
31
|
};
|
|
44
32
|
declare const CONFIG_KEY: "apps";
|
|
45
33
|
declare const PLUGIN_NAME: PluginName;
|
|
@@ -5234,7 +5222,12 @@ type BundlerReport = GlobalData["bundler"] & {
|
|
|
5234
5222
|
outDir: string;
|
|
5235
5223
|
rawConfig?: any;
|
|
5236
5224
|
};
|
|
5237
|
-
type
|
|
5225
|
+
type ChunkInfo = {
|
|
5226
|
+
sourceOrHash: string;
|
|
5227
|
+
fileName: string;
|
|
5228
|
+
isEntry: boolean;
|
|
5229
|
+
};
|
|
5230
|
+
type InjectedValue = string | (() => Promise<string>) | ((chunk?: ChunkInfo) => string);
|
|
5238
5231
|
declare enum InjectPosition {
|
|
5239
5232
|
BEFORE = 0,
|
|
5240
5233
|
MIDDLE = 1,
|
|
@@ -5289,6 +5282,8 @@ type Env = (typeof ALL_ENVS)[number];
|
|
|
5289
5282
|
type TriggerHook<R> = <K extends keyof CustomHooks>(name: K, ...args: Parameters<NonNullable<CustomHooks[K]>>) => R;
|
|
5290
5283
|
type GlobalContext = {
|
|
5291
5284
|
addMetric: (metric: Metric) => void;
|
|
5285
|
+
artifactsPending: boolean;
|
|
5286
|
+
artifactsReady: Promise<void>;
|
|
5292
5287
|
asyncHook: TriggerHook<Promise<void[]>>;
|
|
5293
5288
|
auth: AuthOptionsWithDefaults;
|
|
5294
5289
|
build: BuildReport;
|
|
@@ -5299,6 +5294,8 @@ type GlobalContext = {
|
|
|
5299
5294
|
git?: RepositoryData;
|
|
5300
5295
|
hook: TriggerHook<void>;
|
|
5301
5296
|
inject: (item: ToInjectItem) => void;
|
|
5297
|
+
markArtifactsPending: () => void;
|
|
5298
|
+
markArtifactsReady: (error?: unknown) => void;
|
|
5302
5299
|
pluginNames: string[];
|
|
5303
5300
|
plugins: (PluginOptions | CustomPluginOptions)[];
|
|
5304
5301
|
queue: (promise: Promise<any>) => void;
|
|
@@ -5358,7 +5355,6 @@ type AuthOptions = {
|
|
|
5358
5355
|
};
|
|
5359
5356
|
type AuthOptionsWithDefaults = Omit<AuthOptions, "site"> & {
|
|
5360
5357
|
site: Site$1;
|
|
5361
|
-
siteSubdomain?: string;
|
|
5362
5358
|
};
|
|
5363
5359
|
interface BaseOptions {
|
|
5364
5360
|
auth?: AuthOptions;
|