@datadog/webpack-plugin 3.2.12 → 3.3.1-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 +66 -31
- 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 +5 -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;
|
|
@@ -48,14 +36,24 @@ type types = {
|
|
|
48
36
|
};
|
|
49
37
|
declare const getPlugins: GetPlugins;
|
|
50
38
|
type MinifiedPathPrefix = `http://${string}` | `https://${string}` | `/${string}`;
|
|
51
|
-
type
|
|
39
|
+
type SourcemapsUploadOptions = {
|
|
52
40
|
bailOnError?: boolean;
|
|
53
41
|
dryRun?: boolean;
|
|
54
42
|
maxConcurrency?: number;
|
|
43
|
+
};
|
|
44
|
+
type DebugIdSourcemapsOptions = SourcemapsUploadOptions & {
|
|
45
|
+
debugId: true;
|
|
46
|
+
minifiedPathPrefix?: never;
|
|
47
|
+
releaseVersion?: never;
|
|
48
|
+
service?: never;
|
|
49
|
+
};
|
|
50
|
+
type ServiceVersionSourcemapsOptions = SourcemapsUploadOptions & {
|
|
51
|
+
debugId?: false;
|
|
55
52
|
minifiedPathPrefix: MinifiedPathPrefix;
|
|
56
53
|
releaseVersion?: string;
|
|
57
54
|
service: string;
|
|
58
55
|
};
|
|
56
|
+
type SourcemapsOptions = DebugIdSourcemapsOptions | ServiceVersionSourcemapsOptions;
|
|
59
57
|
type ErrorTrackingOptions = {
|
|
60
58
|
enable?: boolean;
|
|
61
59
|
sourcemaps?: SourcemapsOptions;
|
|
@@ -75,21 +73,31 @@ declare const VALID_FUNCTION_KINDS: readonly [
|
|
|
75
73
|
"classPrivateMethod"
|
|
76
74
|
];
|
|
77
75
|
type FunctionKind = (typeof VALID_FUNCTION_KINDS)[number];
|
|
76
|
+
type FileExtensions = string[] | "all";
|
|
77
|
+
declare const VALID_DECORATOR_SYNTAXES: readonly [
|
|
78
|
+
"legacy",
|
|
79
|
+
"modern"
|
|
80
|
+
];
|
|
81
|
+
type DecoratorSyntax = (typeof VALID_DECORATOR_SYNTAXES)[number];
|
|
78
82
|
type LiveDebuggerOptions = {
|
|
79
83
|
enable?: boolean;
|
|
80
84
|
include?: (string | RegExp)[];
|
|
81
85
|
exclude?: (string | RegExp)[];
|
|
86
|
+
fileExtensions?: FileExtensions;
|
|
82
87
|
honorSkipComments?: boolean;
|
|
83
88
|
functionTypes?: FunctionKind[];
|
|
84
89
|
namedOnly?: boolean;
|
|
90
|
+
decorators?: DecoratorSyntax;
|
|
85
91
|
};
|
|
86
92
|
type LiveDebuggerOptionsWithDefaults = {
|
|
87
93
|
version: string | undefined;
|
|
88
94
|
include: (string | RegExp)[];
|
|
89
95
|
exclude: (string | RegExp)[];
|
|
96
|
+
fileExtensions: FileExtensions;
|
|
90
97
|
honorSkipComments: boolean;
|
|
91
98
|
functionTypes: FunctionKind[] | undefined;
|
|
92
99
|
namedOnly: boolean;
|
|
100
|
+
decorators: DecoratorSyntax;
|
|
93
101
|
};
|
|
94
102
|
declare const CONFIG_KEY$2: "liveDebugger";
|
|
95
103
|
declare const PLUGIN_NAME$2: PluginName;
|
|
@@ -5098,11 +5106,17 @@ interface PrivacyOptions {
|
|
|
5098
5106
|
addToDictionaryFunctionName?: string;
|
|
5099
5107
|
helperCodeExpression?: string;
|
|
5100
5108
|
}
|
|
5101
|
-
type
|
|
5109
|
+
type DebugIdSourceCodeContextOptions = {
|
|
5110
|
+
debugId: true;
|
|
5102
5111
|
service?: string;
|
|
5103
5112
|
version?: string;
|
|
5104
|
-
debugId?: boolean;
|
|
5105
5113
|
};
|
|
5114
|
+
type ServiceVersionSourceCodeContextOptions = {
|
|
5115
|
+
debugId?: false;
|
|
5116
|
+
service: string;
|
|
5117
|
+
version?: string;
|
|
5118
|
+
};
|
|
5119
|
+
type SourceCodeContextOptions = DebugIdSourceCodeContextOptions | ServiceVersionSourceCodeContextOptions;
|
|
5106
5120
|
type RumOptions = {
|
|
5107
5121
|
enable?: boolean;
|
|
5108
5122
|
sdk?: SDKOptions;
|
|
@@ -5294,6 +5308,8 @@ type Env = (typeof ALL_ENVS)[number];
|
|
|
5294
5308
|
type TriggerHook<R> = <K extends keyof CustomHooks>(name: K, ...args: Parameters<NonNullable<CustomHooks[K]>>) => R;
|
|
5295
5309
|
type GlobalContext = {
|
|
5296
5310
|
addMetric: (metric: Metric) => void;
|
|
5311
|
+
artifactsPending: boolean;
|
|
5312
|
+
artifactsReady: Promise<void>;
|
|
5297
5313
|
asyncHook: TriggerHook<Promise<void[]>>;
|
|
5298
5314
|
auth: AuthOptionsWithDefaults;
|
|
5299
5315
|
build: BuildReport;
|
|
@@ -5304,6 +5320,8 @@ type GlobalContext = {
|
|
|
5304
5320
|
git?: RepositoryData;
|
|
5305
5321
|
hook: TriggerHook<void>;
|
|
5306
5322
|
inject: (item: ToInjectItem) => void;
|
|
5323
|
+
markArtifactsPending: () => void;
|
|
5324
|
+
markArtifactsReady: (error?: unknown) => void;
|
|
5307
5325
|
pluginNames: string[];
|
|
5308
5326
|
plugins: (PluginOptions | CustomPluginOptions)[];
|
|
5309
5327
|
queue: (promise: Promise<any>) => void;
|
|
@@ -5363,7 +5381,6 @@ type AuthOptions = {
|
|
|
5363
5381
|
};
|
|
5364
5382
|
type AuthOptionsWithDefaults = Omit<AuthOptions, "site"> & {
|
|
5365
5383
|
site: Site$1;
|
|
5366
|
-
siteSubdomain?: string;
|
|
5367
5384
|
};
|
|
5368
5385
|
interface BaseOptions {
|
|
5369
5386
|
auth?: AuthOptions;
|
|
@@ -5371,6 +5388,21 @@ interface BaseOptions {
|
|
|
5371
5388
|
enableGit?: boolean;
|
|
5372
5389
|
logLevel?: LogLevel;
|
|
5373
5390
|
}
|
|
5391
|
+
type SourcemapsUploadEnabledOptions = {
|
|
5392
|
+
upload: true;
|
|
5393
|
+
bailOnError?: boolean;
|
|
5394
|
+
dryRun?: boolean;
|
|
5395
|
+
maxConcurrency?: number;
|
|
5396
|
+
};
|
|
5397
|
+
type SourcemapsInjectionOnlyOptions = {
|
|
5398
|
+
upload?: false;
|
|
5399
|
+
bailOnError?: never;
|
|
5400
|
+
dryRun?: never;
|
|
5401
|
+
maxConcurrency?: never;
|
|
5402
|
+
};
|
|
5403
|
+
type SourcemapsOptions$1 = {
|
|
5404
|
+
debugId: true;
|
|
5405
|
+
} & (SourcemapsUploadEnabledOptions | SourcemapsInjectionOnlyOptions);
|
|
5374
5406
|
interface Options extends BaseOptions {
|
|
5375
5407
|
[CONFIG_KEY]?: AppsOptions;
|
|
5376
5408
|
[CONFIG_KEY$1]?: ErrorTrackingOptions;
|
|
@@ -5378,6 +5410,9 @@ interface Options extends BaseOptions {
|
|
|
5378
5410
|
[CONFIG_KEY$3]?: MetricsOptions;
|
|
5379
5411
|
[CONFIG_KEY$4]?: OutputOptions;
|
|
5380
5412
|
[rum.CONFIG_KEY]?: RumOptions;
|
|
5413
|
+
sourcemaps?: SourcemapsOptions$1;
|
|
5414
|
+
/** Repository URL used in Git metadata instead of the detected remote URL. */
|
|
5415
|
+
gitRepositoryUrl?: string;
|
|
5381
5416
|
customPlugins?: GetCustomPlugins;
|
|
5382
5417
|
}
|
|
5383
5418
|
type OptionsWithDefaults = Assign<Assign<Options, Required<BaseOptions>>, {
|