@datadog/datadog-ci-plugin-synthetics 5.19.0 → 5.20.1
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/bundle.d.ts +57 -35
- package/dist/bundle.js +786 -478
- package/dist/bundle.js.map +1 -1
- package/package.json +3 -3
package/dist/bundle.d.ts
CHANGED
|
@@ -485,6 +485,8 @@ declare namespace Client {
|
|
|
485
485
|
* @default 60000
|
|
486
486
|
*/
|
|
487
487
|
pingInterval?: number;
|
|
488
|
+
/** WebSocket-specific configuration options. */
|
|
489
|
+
webSocket?: WebSocketOptions;
|
|
488
490
|
}
|
|
489
491
|
export interface SocketInfo {
|
|
490
492
|
localAddress?: string;
|
|
@@ -496,6 +498,20 @@ declare namespace Client {
|
|
|
496
498
|
bytesWritten?: number;
|
|
497
499
|
bytesRead?: number;
|
|
498
500
|
}
|
|
501
|
+
export interface WebSocketOptions {
|
|
502
|
+
/**
|
|
503
|
+
* Maximum number of fragments in a message. Set to 0 to disable the limit.
|
|
504
|
+
* @default 131072
|
|
505
|
+
*/
|
|
506
|
+
maxFragments?: number;
|
|
507
|
+
/**
|
|
508
|
+
* Maximum allowed payload size in bytes for WebSocket messages.
|
|
509
|
+
* Applied to uncompressed messages, compressed frame payloads, and decompressed (permessage-deflate) messages.
|
|
510
|
+
* Set to 0 to disable the limit.
|
|
511
|
+
* @default 134217728 (128 MB)
|
|
512
|
+
*/
|
|
513
|
+
maxPayloadSize?: number;
|
|
514
|
+
}
|
|
499
515
|
}
|
|
500
516
|
//#endregion
|
|
501
517
|
//#region ../../node_modules/undici/types/errors.d.ts
|
|
@@ -824,6 +840,8 @@ declare namespace Dispatcher {
|
|
|
824
840
|
get aborted(): boolean;
|
|
825
841
|
get paused(): boolean;
|
|
826
842
|
get reason(): Error | null;
|
|
843
|
+
rawHeaders?: Buffer[] | string[] | IncomingHttpHeaders | null;
|
|
844
|
+
rawTrailers?: Buffer[] | string[] | IncomingHttpHeaders | null;
|
|
827
845
|
abort(reason: Error): void;
|
|
828
846
|
pause(): void;
|
|
829
847
|
resume(): void;
|
|
@@ -2241,6 +2259,40 @@ declare const execute: (runConfig: WrapperConfig, executeOptions: ExecuteOptions
|
|
|
2241
2259
|
//#region src/index.d.ts
|
|
2242
2260
|
declare const DEFAULT_COMMAND_CONFIG: RunTestsCommandConfig;
|
|
2243
2261
|
//#endregion
|
|
2262
|
+
//#region ../base/dist/helpers/logger.d.ts
|
|
2263
|
+
declare enum LogLevel {
|
|
2264
|
+
DEBUG = 1,
|
|
2265
|
+
INFO = 2,
|
|
2266
|
+
WARN = 3,
|
|
2267
|
+
ERROR = 4
|
|
2268
|
+
}
|
|
2269
|
+
interface LoggerOptions {
|
|
2270
|
+
shouldIncludeTimestamp?: boolean;
|
|
2271
|
+
/**
|
|
2272
|
+
* When `true`, every log call emits a single-line JSON object instead of
|
|
2273
|
+
* ANSI-coloured text. Useful when Datadog itself (or any other log
|
|
2274
|
+
* pipeline) ingests CLI output: each line parses cleanly and `level` is
|
|
2275
|
+
* preserved instead of every `error` showing up as `info`.
|
|
2276
|
+
*/
|
|
2277
|
+
jsonOutput?: boolean;
|
|
2278
|
+
}
|
|
2279
|
+
declare class Logger {
|
|
2280
|
+
private loglevel;
|
|
2281
|
+
private rawWriteMessage;
|
|
2282
|
+
private shouldIncludeTimestamp;
|
|
2283
|
+
private jsonOutput;
|
|
2284
|
+
constructor(writeMessage: (s: string) => void, loglevel: LogLevel, shouldIncludeTimestampOrOptions?: boolean | LoggerOptions);
|
|
2285
|
+
setLogLevel(newLogLevel: LogLevel): void;
|
|
2286
|
+
setShouldIncludeTime(newShouldIncludeTimestamp: boolean): void;
|
|
2287
|
+
setJsonOutput(newJsonOutput: boolean): void;
|
|
2288
|
+
isJsonOutput(): boolean;
|
|
2289
|
+
error(s: string): void;
|
|
2290
|
+
warn(s: string): void;
|
|
2291
|
+
info(s: string): void;
|
|
2292
|
+
debug(s: string): void;
|
|
2293
|
+
private emit;
|
|
2294
|
+
}
|
|
2295
|
+
//#endregion
|
|
2244
2296
|
//#region ../base/dist/index.d.ts
|
|
2245
2297
|
type CommandContext = BaseContext & {
|
|
2246
2298
|
builtinPlugins: string[];
|
|
@@ -2248,7 +2300,11 @@ type CommandContext = BaseContext & {
|
|
|
2248
2300
|
/**
|
|
2249
2301
|
* This command should be extended by **every** command in the monorepo.
|
|
2250
2302
|
*/
|
|
2251
|
-
declare abstract class BaseCommand extends Command<CommandContext> {
|
|
2303
|
+
declare abstract class BaseCommand extends Command<CommandContext> {
|
|
2304
|
+
protected logFormat: "json" | "text";
|
|
2305
|
+
private _logger?;
|
|
2306
|
+
get logger(): Logger;
|
|
2307
|
+
}
|
|
2252
2308
|
//#endregion
|
|
2253
2309
|
//#region ../base/dist/commands/synthetics/deploy-tests.d.ts
|
|
2254
2310
|
declare class SyntheticsDeployTestsCommand extends BaseCommand {
|
|
@@ -2381,39 +2437,6 @@ declare class SyntheticsUploadApplicationCommand extends BaseCommand {
|
|
|
2381
2437
|
execute(): Promise<number | void>;
|
|
2382
2438
|
}
|
|
2383
2439
|
//#endregion
|
|
2384
|
-
//#region ../base/dist/helpers/logger.d.ts
|
|
2385
|
-
declare enum LogLevel {
|
|
2386
|
-
DEBUG = 1,
|
|
2387
|
-
INFO = 2,
|
|
2388
|
-
WARN = 3,
|
|
2389
|
-
ERROR = 4
|
|
2390
|
-
}
|
|
2391
|
-
interface LoggerOptions {
|
|
2392
|
-
shouldIncludeTimestamp?: boolean;
|
|
2393
|
-
/**
|
|
2394
|
-
* When `true`, every log call emits a single-line JSON object instead of
|
|
2395
|
-
* ANSI-coloured text. Useful when Datadog itself (or any other log
|
|
2396
|
-
* pipeline) ingests CLI output: each line parses cleanly and `level` is
|
|
2397
|
-
* preserved instead of every `error` showing up as `info`.
|
|
2398
|
-
*/
|
|
2399
|
-
jsonOutput?: boolean;
|
|
2400
|
-
}
|
|
2401
|
-
declare class Logger {
|
|
2402
|
-
private loglevel;
|
|
2403
|
-
private rawWriteMessage;
|
|
2404
|
-
private shouldIncludeTimestamp;
|
|
2405
|
-
private jsonOutput;
|
|
2406
|
-
constructor(writeMessage: (s: string) => void, loglevel: LogLevel, shouldIncludeTimestampOrOptions?: boolean | LoggerOptions);
|
|
2407
|
-
setLogLevel(newLogLevel: LogLevel): void;
|
|
2408
|
-
setShouldIncludeTime(newShouldIncludeTimestamp: boolean): void;
|
|
2409
|
-
setJsonOutput(newJsonOutput: boolean): void;
|
|
2410
|
-
error(s: string): void;
|
|
2411
|
-
warn(s: string): void;
|
|
2412
|
-
info(s: string): void;
|
|
2413
|
-
debug(s: string): void;
|
|
2414
|
-
private emit;
|
|
2415
|
-
}
|
|
2416
|
-
//#endregion
|
|
2417
2440
|
//#region src/commands/upload-application.d.ts
|
|
2418
2441
|
declare class PluginCommand extends SyntheticsUploadApplicationCommand {
|
|
2419
2442
|
protected config: UploadApplicationCommandConfig;
|
|
@@ -2421,7 +2444,6 @@ declare class PluginCommand extends SyntheticsUploadApplicationCommand {
|
|
|
2421
2444
|
fips: boolean;
|
|
2422
2445
|
fipsIgnoreError: boolean;
|
|
2423
2446
|
};
|
|
2424
|
-
protected logger: Logger;
|
|
2425
2447
|
static getDefaultConfig(): UploadApplicationCommandConfig;
|
|
2426
2448
|
protected setup(): Promise<void>;
|
|
2427
2449
|
protected resolveConfig(): Promise<void>;
|