@datadog/datadog-ci-plugin-synthetics 5.16.0 → 5.16.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { Readable, Writable } from "stream";
3
- import { URL, URLSearchParams } from "node:url";
3
+ import { URL as URL$1, URLSearchParams } from "node:url";
4
4
  import { Duplex, Readable as Readable$1, Writable as Writable$1 } from "node:stream";
5
5
  import { EventEmitter } from "node:events";
6
6
  import { Blob, File } from "node:buffer";
@@ -211,11 +211,30 @@ type BodyInit = ArrayBuffer | AsyncIterable<Uint8Array> | Blob | FormData | Iter
211
211
  interface SpecIterator<T, TReturn = any, TNext = undefined> {
212
212
  next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
213
213
  }
214
- interface SpecIterableIterator<T> extends SpecIterator<T> {
214
+ interface SpecIteratorObject<T, TReturn = undefined, TNext = unknown> extends SpecIterator<T, TReturn, TNext> {
215
+ [Symbol.iterator](): SpecIteratorObject<T, TReturn, TNext>;
216
+ map<U>(callbackfn: (value: T, index: number) => U): SpecIteratorObject<U>;
217
+ filter<S extends T>(predicate: (value: T, index: number) => value is S): SpecIteratorObject<S>;
218
+ filter(predicate: (value: T, index: number) => unknown): SpecIteratorObject<T>;
219
+ take(limit: number): SpecIteratorObject<T>;
220
+ drop(count: number): SpecIteratorObject<T>;
221
+ flatMap<U>(callbackfn: (value: T, index: number) => Iterator<U> | Iterable<U>): SpecIteratorObject<U>;
222
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;
223
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;
224
+ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;
225
+ toArray(): T[];
226
+ forEach(callbackfn: (value: T, index: number) => void): void;
227
+ some(predicate: (value: T, index: number) => unknown): boolean;
228
+ every(predicate: (value: T, index: number) => unknown): boolean;
229
+ find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined;
230
+ find(predicate: (value: T, index: number) => unknown): T | undefined;
231
+ readonly [Symbol.toStringTag]: string;
232
+ }
233
+ interface SpecIterableIterator<T> extends SpecIteratorObject<T> {
215
234
  [Symbol.iterator](): SpecIterableIterator<T>;
216
235
  }
217
236
  interface SpecIterable<T> {
218
- [Symbol.iterator](): SpecIterator<T>;
237
+ [Symbol.iterator](): SpecIterableIterator<T>;
219
238
  }
220
239
  type HeadersInit = [string, string][] | HeaderRecord | Headers;
221
240
  declare class Headers implements SpecIterable<[string, string]> {
@@ -234,6 +253,11 @@ declare class Headers implements SpecIterable<[string, string]> {
234
253
  }
235
254
  //#endregion
236
255
  //#region ../../node_modules/undici/types/formdata.d.ts
256
+ declare module 'node:buffer' {
257
+ interface File {
258
+ readonly [Symbol.toStringTag]: string;
259
+ }
260
+ }
237
261
  /**
238
262
  * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
239
263
  */
@@ -371,7 +395,7 @@ type ClientConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>;
371
395
  * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
372
396
  */
373
397
  declare class Client extends Dispatcher {
374
- constructor(url: string | URL, options?: Client.Options);
398
+ constructor(url: string | URL$1, options?: Client.Options);
375
399
  /** Property to get and set the pipelining factor. */
376
400
  pipelining: number;
377
401
  /** `true` after `client.close()` has been called. */
@@ -640,53 +664,53 @@ declare class Dispatcher extends EventEmitter {
640
664
  destroy(callback: () => void): void;
641
665
  destroy(err: Error | null): Promise<void>;
642
666
  destroy(): Promise<void>;
643
- on(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
644
- on(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
645
- on(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
646
- on(eventName: 'drain', callback: (origin: URL) => void): this;
647
- once(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
648
- once(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
649
- once(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
650
- once(eventName: 'drain', callback: (origin: URL) => void): this;
651
- off(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
652
- off(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
653
- off(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
654
- off(eventName: 'drain', callback: (origin: URL) => void): this;
655
- addListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
656
- addListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
657
- addListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
658
- addListener(eventName: 'drain', callback: (origin: URL) => void): this;
659
- removeListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
660
- removeListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
661
- removeListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
662
- removeListener(eventName: 'drain', callback: (origin: URL) => void): this;
663
- prependListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
664
- prependListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
665
- prependListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
666
- prependListener(eventName: 'drain', callback: (origin: URL) => void): this;
667
- prependOnceListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
668
- prependOnceListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
669
- prependOnceListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
670
- prependOnceListener(eventName: 'drain', callback: (origin: URL) => void): this;
671
- listeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[];
672
- listeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
673
- listeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
674
- listeners(eventName: 'drain'): ((origin: URL) => void)[];
675
- rawListeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[];
676
- rawListeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
677
- rawListeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
678
- rawListeners(eventName: 'drain'): ((origin: URL) => void)[];
679
- emit(eventName: 'connect', origin: URL, targets: readonly Dispatcher[]): boolean;
680
- emit(eventName: 'disconnect', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
681
- emit(eventName: 'connectionError', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
682
- emit(eventName: 'drain', origin: URL): boolean;
667
+ on(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
668
+ on(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
669
+ on(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
670
+ on(eventName: 'drain', callback: (origin: URL$1) => void): this;
671
+ once(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
672
+ once(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
673
+ once(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
674
+ once(eventName: 'drain', callback: (origin: URL$1) => void): this;
675
+ off(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
676
+ off(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
677
+ off(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
678
+ off(eventName: 'drain', callback: (origin: URL$1) => void): this;
679
+ addListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
680
+ addListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
681
+ addListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
682
+ addListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
683
+ removeListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
684
+ removeListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
685
+ removeListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
686
+ removeListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
687
+ prependListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
688
+ prependListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
689
+ prependListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
690
+ prependListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
691
+ prependOnceListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
692
+ prependOnceListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
693
+ prependOnceListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
694
+ prependOnceListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
695
+ listeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
696
+ listeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
697
+ listeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
698
+ listeners(eventName: 'drain'): ((origin: URL$1) => void)[];
699
+ rawListeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
700
+ rawListeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
701
+ rawListeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
702
+ rawListeners(eventName: 'drain'): ((origin: URL$1) => void)[];
703
+ emit(eventName: 'connect', origin: URL$1, targets: readonly Dispatcher[]): boolean;
704
+ emit(eventName: 'disconnect', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
705
+ emit(eventName: 'connectionError', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
706
+ emit(eventName: 'drain', origin: URL$1): boolean;
683
707
  }
684
708
  declare namespace Dispatcher {
685
709
  export interface ComposedDispatcher extends Dispatcher {}
686
710
  export type Dispatch = Dispatcher['dispatch'];
687
711
  export type DispatcherComposeInterceptor = (dispatch: Dispatch) => Dispatch;
688
712
  export interface DispatchOptions {
689
- origin?: string | URL;
713
+ origin?: string | URL$1;
690
714
  path: string;
691
715
  method: HttpMethod;
692
716
  /** Default: `null` */
@@ -715,7 +739,7 @@ declare namespace Dispatcher {
715
739
  expectContinue?: boolean;
716
740
  }
717
741
  export interface ConnectOptions<TOpaque = null> {
718
- origin: string | URL;
742
+ origin: string | URL$1;
719
743
  path: string;
720
744
  /** Default: `null` */
721
745
  headers?: UndiciHeaders;
@@ -723,8 +747,6 @@ declare namespace Dispatcher {
723
747
  signal?: AbortSignal$1 | EventEmitter | null;
724
748
  /** This argument parameter is passed through to `ConnectData` */
725
749
  opaque?: TOpaque;
726
- /** Default: false */
727
- redirectionLimitReached?: boolean;
728
750
  /** Default: `null` */
729
751
  responseHeaders?: 'raw' | null;
730
752
  }
@@ -733,8 +755,6 @@ declare namespace Dispatcher {
733
755
  opaque?: TOpaque;
734
756
  /** Default: `null` */
735
757
  signal?: AbortSignal$1 | EventEmitter | null;
736
- /** Default: false */
737
- redirectionLimitReached?: boolean;
738
758
  /** Default: `null` */
739
759
  onInfo?: (info: {
740
760
  statusCode: number;
@@ -759,8 +779,6 @@ declare namespace Dispatcher {
759
779
  protocol?: string;
760
780
  /** Default: `null` */
761
781
  signal?: AbortSignal$1 | EventEmitter | null;
762
- /** Default: false */
763
- redirectionLimitReached?: boolean;
764
782
  /** Default: `null` */
765
783
  responseHeaders?: 'raw' | null;
766
784
  }