From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:29 +0100 Subject: Updated 30 files and deleted 2976 files (automated) --- .../node_modules/http2-wrapper/index.d.ts | 141 --------------------- 1 file changed, 141 deletions(-) delete mode 100644 includes/external/addressbook/node_modules/http2-wrapper/index.d.ts (limited to 'includes/external/addressbook/node_modules/http2-wrapper/index.d.ts') diff --git a/includes/external/addressbook/node_modules/http2-wrapper/index.d.ts b/includes/external/addressbook/node_modules/http2-wrapper/index.d.ts deleted file mode 100644 index 474e019..0000000 --- a/includes/external/addressbook/node_modules/http2-wrapper/index.d.ts +++ /dev/null @@ -1,141 +0,0 @@ -// See https://github.com/facebook/jest/issues/2549 -// eslint-disable-next-line node/prefer-global/url -import {URL} from 'url'; -import {EventEmitter} from 'events'; -import tls = require('tls'); -import http = require('http'); -import https = require('https'); -import http2 = require('http2'); - -// Note: do not convert this to import from. -import QuickLRU = require('quick-lru'); - -export interface RequestOptions extends Omit { - tlsSession?: tls.ConnectionOptions['session']; - h2session?: http2.ClientHttp2Session; - agent?: Agent | false; - - // Required because @types/node is missing types - ALPNProtocols?: string[]; -} - -export interface AutoRequestOptions extends Omit { - agent?: { - http?: http.Agent | false; - https?: https.Agent | false; - http2?: Agent | false; - }; - resolveProtocol?: ResolveProtocolFunction; -} - -export interface EntryFunction { - (): Promise; - - completed: boolean; - destroyed: boolean; - listeners: PromiseListeners; -} - -export interface AgentOptions { - timeout?: number; - maxSessions?: number; - maxEmptySessions?: number; - maxCachedTlsSessions?: number; -} - -export interface PromiseListeners { - resolve: (value: unknown) => void; - reject: (error: Error) => void; -} - -export class Agent extends EventEmitter { - sessions: Record; - queue: Record>; - - timeout: number; - maxSessions: number; - maxEmptySessions: number; - protocol: string; - settings: http2.Settings; - - tlsSessionCache: QuickLRU; - - emptySessionCount: number; - pendingSessionCount: number; - sessionCount: number; - - constructor(options?: AgentOptions); - - static connect(origin: URL, options: http2.SecureClientSessionOptions): tls.TLSSocket; - - normalizeOptions(options: http2.ClientSessionRequestOptions): string; - - getSession(origin: string | URL, options?: http2.SecureClientSessionOptions, listeners?: PromiseListeners): Promise; - request(origin: string | URL, options?: http2.SecureClientSessionOptions, headers?: http2.OutgoingHttpHeaders, streamOptions?: http2.ClientSessionRequestOptions): Promise; - - createConnection(origin: URL, options: http2.SecureClientSessionOptions): Promise; - - closeEmptySessions(count?: number): void; - destroy(reason?: Error): void; -} - -export interface ProxyOptions { - headers?: http2.OutgoingHttpHeaders; - raw?: boolean; - url: URL | string; -} - -export namespace proxies { - class HttpOverHttp2 extends http.Agent { - constructor(options: http.AgentOptions & {proxyOptions: ProxyOptions}); - } - - class HttpsOverHttp2 extends https.Agent { - constructor(options: https.AgentOptions & {proxyOptions: ProxyOptions}); - } - - class Http2OverHttp2 extends Agent { - constructor(options: AgentOptions & {proxyOptions: ProxyOptions}); - } - - class Http2OverHttp extends Agent { - constructor(options: AgentOptions & {proxyOptions: ProxyOptions}); - } - - class Http2OverHttps extends Agent { - constructor(options: AgentOptions & {proxyOptions: ProxyOptions}); - } -} - -export type RequestFunction = - ((url: string | URL, options?: O, callback?: (response: http.IncomingMessage) => void) => T) & - ((url: string | URL, callback?: (response: http.IncomingMessage) => void) => T) & - ((options: O, callback?: (response: http.IncomingMessage) => void) => T); - -export const globalAgent: Agent; - -export type ResolveProtocolResult = { - alpnProtocol: string; - socket?: tls.TLSSocket; - timeout?: boolean; -}; -export type ResolveProtocolFunction = (options: AutoRequestOptions) => Promise; - -type Promisable = T | Promise; - -export type ResolveProtocolConnectFunction = (options: tls.ConnectionOptions, callback: () => void) => Promisable; - -export const request: RequestFunction; -export const get: RequestFunction; -export const auto: RequestFunction, AutoRequestOptions> & { - protocolCache: QuickLRU; - resolveProtocol: ResolveProtocolFunction; - createResolveProtocol: (cache: Map, queue: Map>, connect?: ResolveProtocolConnectFunction) => ResolveProtocolFunction; -}; - -export { - ClientRequest, - IncomingMessage -} from 'http'; - -export * from 'http2'; -- cgit