diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-16 19:08:29 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-16 19:08:29 +0800 |
| commit | 434aa8343fdcbb4d5002f934979913c099489bee (patch) | |
| tree | 55bab4ec5a6151be57797d34f61faf5ea744471b /frontend-old/node_modules/@grpc/grpc-js/build/src | |
| parent | 893c388d4e99442a36005e5971a87730623f946e (diff) | |
sdk, del
Diffstat (limited to 'frontend-old/node_modules/@grpc/grpc-js/build/src')
321 files changed, 0 insertions, 17360 deletions
diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.d.ts deleted file mode 100644 index 92b9bba..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { ServiceDefinition } from './make-client'; -import { Server, UntypedServiceImplementation } from './server'; -interface GetServiceDefinition { - (): ServiceDefinition; -} -interface GetHandlers { - (): UntypedServiceImplementation; -} -export declare function registerAdminService(getServiceDefinition: GetServiceDefinition, getHandlers: GetHandlers): void; -export declare function addAdminServicesToServer(server: Server): void; -export {}; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.js deleted file mode 100644 index 9fd8e64..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.addAdminServicesToServer = exports.registerAdminService = void 0; -const registeredAdminServices = []; -function registerAdminService(getServiceDefinition, getHandlers) { - registeredAdminServices.push({ getServiceDefinition, getHandlers }); -} -exports.registerAdminService = registerAdminService; -function addAdminServicesToServer(server) { - for (const { getServiceDefinition, getHandlers } of registeredAdminServices) { - server.addService(getServiceDefinition(), getHandlers()); - } -} -exports.addAdminServicesToServer = addAdminServicesToServer; -//# sourceMappingURL=admin.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.js.map deleted file mode 100644 index e6e801a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/admin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"admin.js","sourceRoot":"","sources":["../../src/admin.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAaH,MAAM,uBAAuB,GAGvB,EAAE,CAAC;AAET,SAAgB,oBAAoB,CAClC,oBAA0C,EAC1C,WAAwB;IAExB,uBAAuB,CAAC,IAAI,CAAC,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC,CAAC;AACtE,CAAC;AALD,oDAKC;AAED,SAAgB,wBAAwB,CAAC,MAAc;IACrD,KAAK,MAAM,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,uBAAuB,EAAE,CAAC;QAC5E,MAAM,CAAC,UAAU,CAAC,oBAAoB,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC;AAJD,4DAIC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.d.ts deleted file mode 100644 index c98e3a0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -export interface BackoffOptions { - initialDelay?: number; - multiplier?: number; - jitter?: number; - maxDelay?: number; -} -export declare class BackoffTimeout { - private callback; - /** - * The delay time at the start, and after each reset. - */ - private readonly initialDelay; - /** - * The exponential backoff multiplier. - */ - private readonly multiplier; - /** - * The maximum delay time - */ - private readonly maxDelay; - /** - * The maximum fraction by which the delay time can randomly vary after - * applying the multiplier. - */ - private readonly jitter; - /** - * The delay time for the next time the timer runs. - */ - private nextDelay; - /** - * The handle of the underlying timer. If running is false, this value refers - * to an object representing a timer that has ended, but it can still be - * interacted with without error. - */ - private timerId; - /** - * Indicates whether the timer is currently running. - */ - private running; - /** - * Indicates whether the timer should keep the Node process running if no - * other async operation is doing so. - */ - private hasRef; - /** - * The time that the currently running timer was started. Only valid if - * running is true. - */ - private startTime; - /** - * The approximate time that the currently running timer will end. Only valid - * if running is true. - */ - private endTime; - constructor(callback: () => void, options?: BackoffOptions); - private runTimer; - /** - * Call the callback after the current amount of delay time - */ - runOnce(): void; - /** - * Stop the timer. The callback will not be called until `runOnce` is called - * again. - */ - stop(): void; - /** - * Reset the delay time to its initial value. If the timer is still running, - * retroactively apply that reset to the current timer. - */ - reset(): void; - /** - * Check whether the timer is currently running. - */ - isRunning(): boolean; - /** - * Set that while the timer is running, it should keep the Node process - * running. - */ - ref(): void; - /** - * Set that while the timer is running, it should not keep the Node process - * running. - */ - unref(): void; - /** - * Get the approximate timestamp of when the timer will fire. Only valid if - * this.isRunning() is true. - */ - getEndTime(): Date; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js deleted file mode 100644 index 02762d5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +++ /dev/null @@ -1,174 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BackoffTimeout = void 0; -const INITIAL_BACKOFF_MS = 1000; -const BACKOFF_MULTIPLIER = 1.6; -const MAX_BACKOFF_MS = 120000; -const BACKOFF_JITTER = 0.2; -/** - * Get a number uniformly at random in the range [min, max) - * @param min - * @param max - */ -function uniformRandom(min, max) { - return Math.random() * (max - min) + min; -} -class BackoffTimeout { - constructor(callback, options) { - this.callback = callback; - /** - * The delay time at the start, and after each reset. - */ - this.initialDelay = INITIAL_BACKOFF_MS; - /** - * The exponential backoff multiplier. - */ - this.multiplier = BACKOFF_MULTIPLIER; - /** - * The maximum delay time - */ - this.maxDelay = MAX_BACKOFF_MS; - /** - * The maximum fraction by which the delay time can randomly vary after - * applying the multiplier. - */ - this.jitter = BACKOFF_JITTER; - /** - * Indicates whether the timer is currently running. - */ - this.running = false; - /** - * Indicates whether the timer should keep the Node process running if no - * other async operation is doing so. - */ - this.hasRef = true; - /** - * The time that the currently running timer was started. Only valid if - * running is true. - */ - this.startTime = new Date(); - /** - * The approximate time that the currently running timer will end. Only valid - * if running is true. - */ - this.endTime = new Date(); - if (options) { - if (options.initialDelay) { - this.initialDelay = options.initialDelay; - } - if (options.multiplier) { - this.multiplier = options.multiplier; - } - if (options.jitter) { - this.jitter = options.jitter; - } - if (options.maxDelay) { - this.maxDelay = options.maxDelay; - } - } - this.nextDelay = this.initialDelay; - this.timerId = setTimeout(() => { }, 0); - clearTimeout(this.timerId); - } - runTimer(delay) { - var _a, _b; - this.endTime = this.startTime; - this.endTime.setMilliseconds(this.endTime.getMilliseconds() + this.nextDelay); - clearTimeout(this.timerId); - this.timerId = setTimeout(() => { - this.callback(); - this.running = false; - }, delay); - if (!this.hasRef) { - (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - } - /** - * Call the callback after the current amount of delay time - */ - runOnce() { - this.running = true; - this.startTime = new Date(); - this.runTimer(this.nextDelay); - const nextBackoff = Math.min(this.nextDelay * this.multiplier, this.maxDelay); - const jitterMagnitude = nextBackoff * this.jitter; - this.nextDelay = - nextBackoff + uniformRandom(-jitterMagnitude, jitterMagnitude); - } - /** - * Stop the timer. The callback will not be called until `runOnce` is called - * again. - */ - stop() { - clearTimeout(this.timerId); - this.running = false; - } - /** - * Reset the delay time to its initial value. If the timer is still running, - * retroactively apply that reset to the current timer. - */ - reset() { - this.nextDelay = this.initialDelay; - if (this.running) { - const now = new Date(); - const newEndTime = this.startTime; - newEndTime.setMilliseconds(newEndTime.getMilliseconds() + this.nextDelay); - clearTimeout(this.timerId); - if (now < newEndTime) { - this.runTimer(newEndTime.getTime() - now.getTime()); - } - else { - this.running = false; - } - } - } - /** - * Check whether the timer is currently running. - */ - isRunning() { - return this.running; - } - /** - * Set that while the timer is running, it should keep the Node process - * running. - */ - ref() { - var _a, _b; - this.hasRef = true; - (_b = (_a = this.timerId).ref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - /** - * Set that while the timer is running, it should not keep the Node process - * running. - */ - unref() { - var _a, _b; - this.hasRef = false; - (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - /** - * Get the approximate timestamp of when the timer will fire. Only valid if - * this.isRunning() is true. - */ - getEndTime() { - return this.endTime; - } -} -exports.BackoffTimeout = BackoffTimeout; -//# sourceMappingURL=backoff-timeout.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js.map deleted file mode 100644 index e3462d7..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"backoff-timeout.js","sourceRoot":"","sources":["../../src/backoff-timeout.ts"],"names":[],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line at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts deleted file mode 100644 index 1564eac..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Metadata } from './metadata'; -export interface CallMetadataOptions { - service_url: string; -} -export type CallMetadataGenerator = (options: CallMetadataOptions, cb: (err: Error | null, metadata?: Metadata) => void) => void; -export interface OldOAuth2Client { - getRequestMetadata: (url: string, callback: (err: Error | null, headers?: { - [index: string]: string; - }) => void) => void; -} -export interface CurrentOAuth2Client { - getRequestHeaders: (url?: string) => Promise<{ - [index: string]: string; - }>; -} -export type OAuth2Client = OldOAuth2Client | CurrentOAuth2Client; -/** - * A class that represents a generic method of adding authentication-related - * metadata on a per-request basis. - */ -export declare abstract class CallCredentials { - /** - * Asynchronously generates a new Metadata object. - * @param options Options used in generating the Metadata object. - */ - abstract generateMetadata(options: CallMetadataOptions): Promise<Metadata>; - /** - * Creates a new CallCredentials object from properties of both this and - * another CallCredentials object. This object's metadata generator will be - * called first. - * @param callCredentials The other CallCredentials object. - */ - abstract compose(callCredentials: CallCredentials): CallCredentials; - /** - * Check whether two call credentials objects are equal. Separate - * SingleCallCredentials with identical metadata generator functions are - * equal. - * @param other The other CallCredentials object to compare with. - */ - abstract _equals(other: CallCredentials): boolean; - /** - * Creates a new CallCredentials object from a given function that generates - * Metadata objects. - * @param metadataGenerator A function that accepts a set of options, and - * generates a Metadata object based on these options, which is passed back - * to the caller via a supplied (err, metadata) callback. - */ - static createFromMetadataGenerator(metadataGenerator: CallMetadataGenerator): CallCredentials; - /** - * Create a gRPC credential from a Google credential object. - * @param googleCredentials The authentication client to use. - * @return The resulting CallCredentials object. - */ - static createFromGoogleCredential(googleCredentials: OAuth2Client): CallCredentials; - static createEmpty(): CallCredentials; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.js deleted file mode 100644 index 67b9266..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.js +++ /dev/null @@ -1,153 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CallCredentials = void 0; -const metadata_1 = require("./metadata"); -function isCurrentOauth2Client(client) { - return ('getRequestHeaders' in client && - typeof client.getRequestHeaders === 'function'); -} -/** - * A class that represents a generic method of adding authentication-related - * metadata on a per-request basis. - */ -class CallCredentials { - /** - * Creates a new CallCredentials object from a given function that generates - * Metadata objects. - * @param metadataGenerator A function that accepts a set of options, and - * generates a Metadata object based on these options, which is passed back - * to the caller via a supplied (err, metadata) callback. - */ - static createFromMetadataGenerator(metadataGenerator) { - return new SingleCallCredentials(metadataGenerator); - } - /** - * Create a gRPC credential from a Google credential object. - * @param googleCredentials The authentication client to use. - * @return The resulting CallCredentials object. - */ - static createFromGoogleCredential(googleCredentials) { - return CallCredentials.createFromMetadataGenerator((options, callback) => { - let getHeaders; - if (isCurrentOauth2Client(googleCredentials)) { - getHeaders = googleCredentials.getRequestHeaders(options.service_url); - } - else { - getHeaders = new Promise((resolve, reject) => { - googleCredentials.getRequestMetadata(options.service_url, (err, headers) => { - if (err) { - reject(err); - return; - } - if (!headers) { - reject(new Error('Headers not set by metadata plugin')); - return; - } - resolve(headers); - }); - }); - } - getHeaders.then(headers => { - const metadata = new metadata_1.Metadata(); - for (const key of Object.keys(headers)) { - metadata.add(key, headers[key]); - } - callback(null, metadata); - }, err => { - callback(err); - }); - }); - } - static createEmpty() { - return new EmptyCallCredentials(); - } -} -exports.CallCredentials = CallCredentials; -class ComposedCallCredentials extends CallCredentials { - constructor(creds) { - super(); - this.creds = creds; - } - async generateMetadata(options) { - const base = new metadata_1.Metadata(); - const generated = await Promise.all(this.creds.map(cred => cred.generateMetadata(options))); - for (const gen of generated) { - base.merge(gen); - } - return base; - } - compose(other) { - return new ComposedCallCredentials(this.creds.concat([other])); - } - _equals(other) { - if (this === other) { - return true; - } - if (other instanceof ComposedCallCredentials) { - return this.creds.every((value, index) => value._equals(other.creds[index])); - } - else { - return false; - } - } -} -class SingleCallCredentials extends CallCredentials { - constructor(metadataGenerator) { - super(); - this.metadataGenerator = metadataGenerator; - } - generateMetadata(options) { - return new Promise((resolve, reject) => { - this.metadataGenerator(options, (err, metadata) => { - if (metadata !== undefined) { - resolve(metadata); - } - else { - reject(err); - } - }); - }); - } - compose(other) { - return new ComposedCallCredentials([this, other]); - } - _equals(other) { - if (this === other) { - return true; - } - if (other instanceof SingleCallCredentials) { - return this.metadataGenerator === other.metadataGenerator; - } - else { - return false; - } - } -} -class EmptyCallCredentials extends CallCredentials { - generateMetadata(options) { - return Promise.resolve(new metadata_1.Metadata()); - } - compose(other) { - return other; - } - _equals(other) { - return other instanceof EmptyCallCredentials; - } -} -//# sourceMappingURL=call-credentials.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.js.map deleted file mode 100644 index 8a4e9d6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"call-credentials.js","sourceRoot":"","sources":["../../src/call-credentials.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAAsC;AA+BtC,SAAS,qBAAqB,CAC5B,MAAoB;IAEpB,OAAO,CACL,mBAAmB,IAAI,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ED,OAAO,CAAC,KAAsB;QAC5B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CAAC,KAAsB;QAC5B,OAAO,KAAK,YAAY,oBAAoB,CAAC;IAC/C,CAAC;CACF"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.d.ts deleted file mode 100644 index bbb098c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -/// <reference types="node" /> -import { CallCredentials } from './call-credentials'; -import { Status } from './constants'; -import { Deadline } from './deadline'; -import { Metadata } from './metadata'; -import { ServerSurfaceCall } from './server-call'; -export interface CallStreamOptions { - deadline: Deadline; - flags: number; - host: string; - parentCall: ServerSurfaceCall | null; -} -export type PartialCallStreamOptions = Partial<CallStreamOptions>; -export interface StatusObject { - code: Status; - details: string; - metadata: Metadata; -} -export type PartialStatusObject = Pick<StatusObject, 'code' | 'details'> & { - metadata: Metadata | null; -}; -export declare const enum WriteFlags { - BufferHint = 1, - NoCompress = 2, - WriteThrough = 4 -} -export interface WriteObject { - message: Buffer; - flags?: number; -} -export interface MetadataListener { - (metadata: Metadata, next: (metadata: Metadata) => void): void; -} -export interface MessageListener { - (message: any, next: (message: any) => void): void; -} -export interface StatusListener { - (status: StatusObject, next: (status: StatusObject) => void): void; -} -export interface FullListener { - onReceiveMetadata: MetadataListener; - onReceiveMessage: MessageListener; - onReceiveStatus: StatusListener; -} -export type Listener = Partial<FullListener>; -/** - * An object with methods for handling the responses to a call. - */ -export interface InterceptingListener { - onReceiveMetadata(metadata: Metadata): void; - onReceiveMessage(message: any): void; - onReceiveStatus(status: StatusObject): void; -} -export declare function isInterceptingListener(listener: Listener | InterceptingListener): listener is InterceptingListener; -export declare class InterceptingListenerImpl implements InterceptingListener { - private listener; - private nextListener; - private processingMetadata; - private hasPendingMessage; - private pendingMessage; - private processingMessage; - private pendingStatus; - constructor(listener: FullListener, nextListener: InterceptingListener); - private processPendingMessage; - private processPendingStatus; - onReceiveMetadata(metadata: Metadata): void; - onReceiveMessage(message: any): void; - onReceiveStatus(status: StatusObject): void; -} -export interface WriteCallback { - (error?: Error | null): void; -} -export interface MessageContext { - callback?: WriteCallback; - flags?: number; -} -export interface Call { - cancelWithStatus(status: Status, details: string): void; - getPeer(): string; - start(metadata: Metadata, listener: InterceptingListener): void; - sendMessageWithContext(context: MessageContext, message: Buffer): void; - startRead(): void; - halfClose(): void; - getCallNumber(): number; - setCredentials(credentials: CallCredentials): void; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.js deleted file mode 100644 index cdef46f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InterceptingListenerImpl = exports.isInterceptingListener = void 0; -function isInterceptingListener(listener) { - return (listener.onReceiveMetadata !== undefined && - listener.onReceiveMetadata.length === 1); -} -exports.isInterceptingListener = isInterceptingListener; -class InterceptingListenerImpl { - constructor(listener, nextListener) { - this.listener = listener; - this.nextListener = nextListener; - this.processingMetadata = false; - this.hasPendingMessage = false; - this.processingMessage = false; - this.pendingStatus = null; - } - processPendingMessage() { - if (this.hasPendingMessage) { - this.nextListener.onReceiveMessage(this.pendingMessage); - this.pendingMessage = null; - this.hasPendingMessage = false; - } - } - processPendingStatus() { - if (this.pendingStatus) { - this.nextListener.onReceiveStatus(this.pendingStatus); - } - } - onReceiveMetadata(metadata) { - this.processingMetadata = true; - this.listener.onReceiveMetadata(metadata, metadata => { - this.processingMetadata = false; - this.nextListener.onReceiveMetadata(metadata); - this.processPendingMessage(); - this.processPendingStatus(); - }); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage(message) { - /* If this listener processes messages asynchronously, the last message may - * be reordered with respect to the status */ - this.processingMessage = true; - this.listener.onReceiveMessage(message, msg => { - this.processingMessage = false; - if (this.processingMetadata) { - this.pendingMessage = msg; - this.hasPendingMessage = true; - } - else { - this.nextListener.onReceiveMessage(msg); - this.processPendingStatus(); - } - }); - } - onReceiveStatus(status) { - this.listener.onReceiveStatus(status, processedStatus => { - if (this.processingMetadata || this.processingMessage) { - this.pendingStatus = processedStatus; - } - else { - this.nextListener.onReceiveStatus(processedStatus); - } - }); - } -} -exports.InterceptingListenerImpl = InterceptingListenerImpl; -//# sourceMappingURL=call-interface.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.js.map deleted file mode 100644 index 9cb4c7e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"call-interface.js","sourceRoot":"","sources":["../../src/call-interface.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAqEH,SAAgB,sBAAsB,CACpC,QAAyC;IAEzC,OAAO,CACL,QAAQ,CAAC,iBAAiB,KAAK,SAAS;QACxC,QAAQ,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CACxC,CAAC;AACJ,CAAC;AAPD,wDAOC;AAED,MAAa,wBAAwB;IAMnC,YACU,QAAsB,EACtB,YAAkC;QADlC,aAAQ,GAAR,QAAQ,CAAc;QACtB,iBAAY,GAAZ,YAAY,CAAsB;QAPpC,uBAAkB,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AI,CAAC,iBAAiB,GAAG,IAAI,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;gBACxC,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC9B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IACD,eAAe,CAAC,MAAoB;QAClC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE;YACtD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACtD,IAAI,CAAC,aAAa,GAAG,eAAe,CAAC;YACvC,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;YACrD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,4DA2DC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.d.ts deleted file mode 100644 index a679ff6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function getNextCallNumber(): number; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.js deleted file mode 100644 index a694f0f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getNextCallNumber = void 0; -let nextCallNumber = 0; -function getNextCallNumber() { - return nextCallNumber++; -} -exports.getNextCallNumber = getNextCallNumber; -//# sourceMappingURL=call-number.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.js.map deleted file mode 100644 index 9a77ba9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-number.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"call-number.js","sourceRoot":"","sources":["../../src/call-number.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,IAAI,cAAc,GAAG,CAAC,CAAC;AAEvB,SAAgB,iBAAiB;IAC/B,OAAO,cAAc,EAAE,CAAC;AAC1B,CAAC;AAFD,8CAEC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/call.d.ts deleted file mode 100644 index d223aa3..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -/// <reference types="node" /> -/// <reference types="node" /> -/// <reference types="node" /> -import { EventEmitter } from 'events'; -import { Duplex, Readable, Writable } from 'stream'; -import { StatusObject } from './call-interface'; -import { EmitterAugmentation1 } from './events'; -import { Metadata } from './metadata'; -import { ObjectReadable, ObjectWritable, WriteCallback } from './object-stream'; -import { InterceptingCallInterface } from './client-interceptors'; -/** - * A type extending the built-in Error object with additional fields. - */ -export type ServiceError = StatusObject & Error; -/** - * A base type for all user-facing values returned by client-side method calls. - */ -export type SurfaceCall = { - call?: InterceptingCallInterface; - cancel(): void; - getPeer(): string; -} & EmitterAugmentation1<'metadata', Metadata> & EmitterAugmentation1<'status', StatusObject> & EventEmitter; -/** - * A type representing the return value of a unary method call. - */ -export type ClientUnaryCall = SurfaceCall; -/** - * A type representing the return value of a server stream method call. - */ -export type ClientReadableStream<ResponseType> = { - deserialize: (chunk: Buffer) => ResponseType; -} & SurfaceCall & ObjectReadable<ResponseType>; -/** - * A type representing the return value of a client stream method call. - */ -export type ClientWritableStream<RequestType> = { - serialize: (value: RequestType) => Buffer; -} & SurfaceCall & ObjectWritable<RequestType>; -/** - * A type representing the return value of a bidirectional stream method call. - */ -export type ClientDuplexStream<RequestType, ResponseType> = ClientWritableStream<RequestType> & ClientReadableStream<ResponseType>; -/** - * Construct a ServiceError from a StatusObject. This function exists primarily - * as an attempt to make the error stack trace clearly communicate that the - * error is not necessarily a problem in gRPC itself. - * @param status - */ -export declare function callErrorFromStatus(status: StatusObject, callerStack: string): ServiceError; -export declare class ClientUnaryCallImpl extends EventEmitter implements ClientUnaryCall { - call?: InterceptingCallInterface; - constructor(); - cancel(): void; - getPeer(): string; -} -export declare class ClientReadableStreamImpl<ResponseType> extends Readable implements ClientReadableStream<ResponseType> { - readonly deserialize: (chunk: Buffer) => ResponseType; - call?: InterceptingCallInterface; - constructor(deserialize: (chunk: Buffer) => ResponseType); - cancel(): void; - getPeer(): string; - _read(_size: number): void; -} -export declare class ClientWritableStreamImpl<RequestType> extends Writable implements ClientWritableStream<RequestType> { - readonly serialize: (value: RequestType) => Buffer; - call?: InterceptingCallInterface; - constructor(serialize: (value: RequestType) => Buffer); - cancel(): void; - getPeer(): string; - _write(chunk: RequestType, encoding: string, cb: WriteCallback): void; - _final(cb: Function): void; -} -export declare class ClientDuplexStreamImpl<RequestType, ResponseType> extends Duplex implements ClientDuplexStream<RequestType, ResponseType> { - readonly serialize: (value: RequestType) => Buffer; - readonly deserialize: (chunk: Buffer) => ResponseType; - call?: InterceptingCallInterface; - constructor(serialize: (value: RequestType) => Buffer, deserialize: (chunk: Buffer) => ResponseType); - cancel(): void; - getPeer(): string; - _read(_size: number): void; - _write(chunk: RequestType, encoding: string, cb: WriteCallback): void; - _final(cb: Function): void; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/call.js deleted file mode 100644 index 029f679..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClientDuplexStreamImpl = exports.ClientWritableStreamImpl = exports.ClientReadableStreamImpl = exports.ClientUnaryCallImpl = exports.callErrorFromStatus = void 0; -const events_1 = require("events"); -const stream_1 = require("stream"); -const constants_1 = require("./constants"); -/** - * Construct a ServiceError from a StatusObject. This function exists primarily - * as an attempt to make the error stack trace clearly communicate that the - * error is not necessarily a problem in gRPC itself. - * @param status - */ -function callErrorFromStatus(status, callerStack) { - const message = `${status.code} ${constants_1.Status[status.code]}: ${status.details}`; - const error = new Error(message); - const stack = `${error.stack}\nfor call at\n${callerStack}`; - return Object.assign(new Error(message), status, { stack }); -} -exports.callErrorFromStatus = callErrorFromStatus; -class ClientUnaryCallImpl extends events_1.EventEmitter { - constructor() { - super(); - } - cancel() { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; - } -} -exports.ClientUnaryCallImpl = ClientUnaryCallImpl; -class ClientReadableStreamImpl extends stream_1.Readable { - constructor(deserialize) { - super({ objectMode: true }); - this.deserialize = deserialize; - } - cancel() { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; - } - _read(_size) { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead(); - } -} -exports.ClientReadableStreamImpl = ClientReadableStreamImpl; -class ClientWritableStreamImpl extends stream_1.Writable { - constructor(serialize) { - super({ objectMode: true }); - this.serialize = serialize; - } - cancel() { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; - } - _write(chunk, encoding, cb) { - var _a; - const context = { - callback: cb, - }; - const flags = Number(encoding); - if (!Number.isNaN(flags)) { - context.flags = flags; - } - (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk); - } - _final(cb) { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose(); - cb(); - } -} -exports.ClientWritableStreamImpl = ClientWritableStreamImpl; -class ClientDuplexStreamImpl extends stream_1.Duplex { - constructor(serialize, deserialize) { - super({ objectMode: true }); - this.serialize = serialize; - this.deserialize = deserialize; - } - cancel() { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; - } - _read(_size) { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead(); - } - _write(chunk, encoding, cb) { - var _a; - const context = { - callback: cb, - }; - const flags = Number(encoding); - if (!Number.isNaN(flags)) { - context.flags = flags; - } - (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk); - } - _final(cb) { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose(); - cb(); - } -} -exports.ClientDuplexStreamImpl = ClientDuplexStreamImpl; -//# sourceMappingURL=call.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/call.js.map deleted file mode 100644 index ed4d096..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"call.js","sourceRoot":"","sources":["../../src/call.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,mCAAsC;AACtC,mCAAoD;AAGpD,2CAAqC;AAiDrC;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,MAAoB,EACpB,WAAmB;IAEnB,MAAM,OAAO,GAAG,GAAG,MAAM,CAAC,IAAI,IAAI,kBAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,OAAO,EAAE,CAAC;IAC3E,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,GAAG,KAAK,CAAC,KAAK,kBAAkB,WAAW,EAAE,CAAC;IAC5D,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;AAC9D,CAAC;AARD,kDAQC;AAED,MAAa,mBACX,SAAQ,qBAAY;IAIpB;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,MAAM;;QACJ,MAAA,IAAI,CAAC,IAAI,0CAAE,gBAAgB,CAAC,kBAAM,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;IACvE,CAAC;IAED,OAAO;;QACL,OAAO,MAAA,MAAA,IAAI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;QACvB,EAAE,EAAE,CAAC;IACP,CAAC;CACF;AAvCD,wDAuCC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.d.ts deleted file mode 100644 index 75b0312..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -/// <reference types="node" /> -/// <reference types="node" /> -import { ConnectionOptions, PeerCertificate, SecureContext } from 'tls'; -import { CallCredentials } from './call-credentials'; -/** - * A callback that will receive the expected hostname and presented peer - * certificate as parameters. The callback should return an error to - * indicate that the presented certificate is considered invalid and - * otherwise returned undefined. - */ -export type CheckServerIdentityCallback = (hostname: string, cert: PeerCertificate) => Error | undefined; -/** - * Additional peer verification options that can be set when creating - * SSL credentials. - */ -export interface VerifyOptions { - /** - * If set, this callback will be invoked after the usual hostname verification - * has been performed on the peer certificate. - */ - checkServerIdentity?: CheckServerIdentityCallback; -} -/** - * A class that contains credentials for communicating over a channel, as well - * as a set of per-call credentials, which are applied to every method call made - * over a channel initialized with an instance of this class. - */ -export declare abstract class ChannelCredentials { - protected callCredentials: CallCredentials; - protected constructor(callCredentials?: CallCredentials); - /** - * Returns a copy of this object with the included set of per-call credentials - * expanded to include callCredentials. - * @param callCredentials A CallCredentials object to associate with this - * instance. - */ - abstract compose(callCredentials: CallCredentials): ChannelCredentials; - /** - * Gets the set of per-call credentials associated with this instance. - */ - _getCallCredentials(): CallCredentials; - /** - * Gets a SecureContext object generated from input parameters if this - * instance was created with createSsl, or null if this instance was created - * with createInsecure. - */ - abstract _getConnectionOptions(): ConnectionOptions | null; - /** - * Indicates whether this credentials object creates a secure channel. - */ - abstract _isSecure(): boolean; - /** - * Check whether two channel credentials objects are equal. Two secure - * credentials are equal if they were constructed with the same parameters. - * @param other The other ChannelCredentials Object - */ - abstract _equals(other: ChannelCredentials): boolean; - /** - * Return a new ChannelCredentials instance with a given set of credentials. - * The resulting instance can be used to construct a Channel that communicates - * over TLS. - * @param rootCerts The root certificate data. - * @param privateKey The client certificate private key, if available. - * @param certChain The client certificate key chain, if available. - * @param verifyOptions Additional options to modify certificate verification - */ - static createSsl(rootCerts?: Buffer | null, privateKey?: Buffer | null, certChain?: Buffer | null, verifyOptions?: VerifyOptions): ChannelCredentials; - /** - * Return a new ChannelCredentials instance with credentials created using - * the provided secureContext. The resulting instances can be used to - * construct a Channel that communicates over TLS. gRPC will not override - * anything in the provided secureContext, so the environment variables - * GRPC_SSL_CIPHER_SUITES and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH will - * not be applied. - * @param secureContext The return value of tls.createSecureContext() - * @param verifyOptions Additional options to modify certificate verification - */ - static createFromSecureContext(secureContext: SecureContext, verifyOptions?: VerifyOptions): ChannelCredentials; - /** - * Return a new ChannelCredentials instance with no credentials. - */ - static createInsecure(): ChannelCredentials; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.js deleted file mode 100644 index 9e00e0b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +++ /dev/null @@ -1,177 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChannelCredentials = void 0; -const tls_1 = require("tls"); -const call_credentials_1 = require("./call-credentials"); -const tls_helpers_1 = require("./tls-helpers"); -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function verifyIsBufferOrNull(obj, friendlyName) { - if (obj && !(obj instanceof Buffer)) { - throw new TypeError(`${friendlyName}, if provided, must be a Buffer.`); - } -} -/** - * A class that contains credentials for communicating over a channel, as well - * as a set of per-call credentials, which are applied to every method call made - * over a channel initialized with an instance of this class. - */ -class ChannelCredentials { - constructor(callCredentials) { - this.callCredentials = callCredentials || call_credentials_1.CallCredentials.createEmpty(); - } - /** - * Gets the set of per-call credentials associated with this instance. - */ - _getCallCredentials() { - return this.callCredentials; - } - /** - * Return a new ChannelCredentials instance with a given set of credentials. - * The resulting instance can be used to construct a Channel that communicates - * over TLS. - * @param rootCerts The root certificate data. - * @param privateKey The client certificate private key, if available. - * @param certChain The client certificate key chain, if available. - * @param verifyOptions Additional options to modify certificate verification - */ - static createSsl(rootCerts, privateKey, certChain, verifyOptions) { - var _a; - verifyIsBufferOrNull(rootCerts, 'Root certificate'); - verifyIsBufferOrNull(privateKey, 'Private key'); - verifyIsBufferOrNull(certChain, 'Certificate chain'); - if (privateKey && !certChain) { - throw new Error('Private key must be given with accompanying certificate chain'); - } - if (!privateKey && certChain) { - throw new Error('Certificate chain must be given with accompanying private key'); - } - const secureContext = (0, tls_1.createSecureContext)({ - ca: (_a = rootCerts !== null && rootCerts !== void 0 ? rootCerts : (0, tls_helpers_1.getDefaultRootsData)()) !== null && _a !== void 0 ? _a : undefined, - key: privateKey !== null && privateKey !== void 0 ? privateKey : undefined, - cert: certChain !== null && certChain !== void 0 ? certChain : undefined, - ciphers: tls_helpers_1.CIPHER_SUITES, - }); - return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); - } - /** - * Return a new ChannelCredentials instance with credentials created using - * the provided secureContext. The resulting instances can be used to - * construct a Channel that communicates over TLS. gRPC will not override - * anything in the provided secureContext, so the environment variables - * GRPC_SSL_CIPHER_SUITES and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH will - * not be applied. - * @param secureContext The return value of tls.createSecureContext() - * @param verifyOptions Additional options to modify certificate verification - */ - static createFromSecureContext(secureContext, verifyOptions) { - return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); - } - /** - * Return a new ChannelCredentials instance with no credentials. - */ - static createInsecure() { - return new InsecureChannelCredentialsImpl(); - } -} -exports.ChannelCredentials = ChannelCredentials; -class InsecureChannelCredentialsImpl extends ChannelCredentials { - constructor(callCredentials) { - super(callCredentials); - } - compose(callCredentials) { - throw new Error('Cannot compose insecure credentials'); - } - _getConnectionOptions() { - return null; - } - _isSecure() { - return false; - } - _equals(other) { - return other instanceof InsecureChannelCredentialsImpl; - } -} -class SecureChannelCredentialsImpl extends ChannelCredentials { - constructor(secureContext, verifyOptions) { - super(); - this.secureContext = secureContext; - this.verifyOptions = verifyOptions; - this.connectionOptions = { - secureContext, - }; - // Node asserts that this option is a function, so we cannot pass undefined - if (verifyOptions === null || verifyOptions === void 0 ? void 0 : verifyOptions.checkServerIdentity) { - this.connectionOptions.checkServerIdentity = - verifyOptions.checkServerIdentity; - } - } - compose(callCredentials) { - const combinedCallCredentials = this.callCredentials.compose(callCredentials); - return new ComposedChannelCredentialsImpl(this, combinedCallCredentials); - } - _getConnectionOptions() { - // Copy to prevent callers from mutating this.connectionOptions - return Object.assign({}, this.connectionOptions); - } - _isSecure() { - return true; - } - _equals(other) { - if (this === other) { - return true; - } - if (other instanceof SecureChannelCredentialsImpl) { - return (this.secureContext === other.secureContext && - this.verifyOptions.checkServerIdentity === - other.verifyOptions.checkServerIdentity); - } - else { - return false; - } - } -} -class ComposedChannelCredentialsImpl extends ChannelCredentials { - constructor(channelCredentials, callCreds) { - super(callCreds); - this.channelCredentials = channelCredentials; - } - compose(callCredentials) { - const combinedCallCredentials = this.callCredentials.compose(callCredentials); - return new ComposedChannelCredentialsImpl(this.channelCredentials, combinedCallCredentials); - } - _getConnectionOptions() { - return this.channelCredentials._getConnectionOptions(); - } - _isSecure() { - return true; - } - _equals(other) { - if (this === other) { - return true; - } - if (other instanceof ComposedChannelCredentialsImpl) { - return (this.channelCredentials._equals(other.channelCredentials) && - this.callCredentials._equals(other.callCredentials)); - } - else { - return false; - } - } -} -//# sourceMappingURL=channel-credentials.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.js.map deleted file mode 100644 index f512cba..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-credentials.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"channel-credentials.js","sourceRoot":"","sources":["../../src/channel-credentials.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,6BAKa;AAEb,yDAAqD;AACrD,+CAAmE;AAEnE,8DAA8D;AAC9D,SAAS,oBAAoB,CAAC,GAAQ,EAAE,YAAoB;IAC1D,IAAI,GAAG,IAAI,CAAC,CAAC,GAAG,YAAY,MAAM,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,SAAS,CAAC,GAAG,YAAY,kCAAkC,CAAC,CAAC;IACzE,CAAC;AACH,CAAC;AAyBD;;;;GAIG;AACH,MAAsB,kBAAkB;IAGtC,YAAsB,eAAiC;QACrD,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,kCAAe,CAAC,WAAW,EAAE,CAAC;IAC1E,CAAC;IASD;;OAEG;IACH,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAqBD;;;;;;;;OAQG;IACH,MAAM,CAAC,SAAS,CACd,SAAyB,EACzB,UAA0B,EAC1B,SAAyB,EACzB,aAA6B;;QAE7B,oBAAoB,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC;QACpD,oBAAoB,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QAChD,oBAAoB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;QACrD,IAAI,UAAU,IAAI,CAAC,SAAS,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,C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C,eAAgC;QACtC,MAAM,uBAAuB,GAC3B,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAChD,OAAO,IAAI,8BAA8B,CACvC,IAAI,CAAC,kBAAkB,EACvB,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAED,qBAAqB;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,EAAE,CAAC;IACzD,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CAAC,KAAyB;QAC/B,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,KAAK,YAAY,8BAA8B,EAAE,CAAC;YACpD,OAAO,CACL,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC;gBACzD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CACpD,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.d.ts deleted file mode 100644 index 8fdb06d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { CompressionAlgorithms } from './compression-algorithms'; -/** - * An interface that contains options used when initializing a Channel instance. - */ -export interface ChannelOptions { - 'grpc.ssl_target_name_override'?: string; - 'grpc.primary_user_agent'?: string; - 'grpc.secondary_user_agent'?: string; - 'grpc.default_authority'?: string; - 'grpc.keepalive_time_ms'?: number; - 'grpc.keepalive_timeout_ms'?: number; - 'grpc.keepalive_permit_without_calls'?: number; - 'grpc.service_config'?: string; - 'grpc.max_concurrent_streams'?: number; - 'grpc.initial_reconnect_backoff_ms'?: number; - 'grpc.max_reconnect_backoff_ms'?: number; - 'grpc.use_local_subchannel_pool'?: number; - 'grpc.max_send_message_length'?: number; - 'grpc.max_receive_message_length'?: number; - 'grpc.enable_http_proxy'?: number; - 'grpc.http_connect_target'?: string; - 'grpc.http_connect_creds'?: string; - 'grpc.default_compression_algorithm'?: CompressionAlgorithms; - 'grpc.enable_channelz'?: number; - 'grpc.dns_min_time_between_resolutions_ms'?: number; - 'grpc.enable_retries'?: number; - 'grpc.per_rpc_retry_buffer_size'?: number; - 'grpc.retry_buffer_size'?: number; - 'grpc.max_connection_age_ms'?: number; - 'grpc.max_connection_age_grace_ms'?: number; - 'grpc-node.max_session_memory'?: number; - 'grpc.service_config_disable_resolution'?: number; - 'grpc.client_idle_timeout_ms'?: number; - /** - * Set the enableTrace option in TLS clients and servers - */ - 'grpc-node.tls_enable_trace'?: number; - [key: string]: any; -} -/** - * This is for checking provided options at runtime. This is an object for - * easier membership checking. - */ -export declare const recognizedOptions: { - 'grpc.ssl_target_name_override': boolean; - 'grpc.primary_user_agent': boolean; - 'grpc.secondary_user_agent': boolean; - 'grpc.default_authority': boolean; - 'grpc.keepalive_time_ms': boolean; - 'grpc.keepalive_timeout_ms': boolean; - 'grpc.keepalive_permit_without_calls': boolean; - 'grpc.service_config': boolean; - 'grpc.max_concurrent_streams': boolean; - 'grpc.initial_reconnect_backoff_ms': boolean; - 'grpc.max_reconnect_backoff_ms': boolean; - 'grpc.use_local_subchannel_pool': boolean; - 'grpc.max_send_message_length': boolean; - 'grpc.max_receive_message_length': boolean; - 'grpc.enable_http_proxy': boolean; - 'grpc.enable_channelz': boolean; - 'grpc.dns_min_time_between_resolutions_ms': boolean; - 'grpc.enable_retries': boolean; - 'grpc.per_rpc_retry_buffer_size': boolean; - 'grpc.retry_buffer_size': boolean; - 'grpc.max_connection_age_ms': boolean; - 'grpc.max_connection_age_grace_ms': boolean; - 'grpc-node.max_session_memory': boolean; - 'grpc.service_config_disable_resolution': boolean; - 'grpc.client_idle_timeout_ms': boolean; - 'grpc-node.tls_enable_trace': boolean; -}; -export declare function channelOptionsEqual(options1: ChannelOptions, options2: ChannelOptions): boolean; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.js deleted file mode 100644 index 9e3bb75..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.channelOptionsEqual = exports.recognizedOptions = void 0; -/** - * This is for checking provided options at runtime. This is an object for - * easier membership checking. - */ -exports.recognizedOptions = { - 'grpc.ssl_target_name_override': true, - 'grpc.primary_user_agent': true, - 'grpc.secondary_user_agent': true, - 'grpc.default_authority': true, - 'grpc.keepalive_time_ms': true, - 'grpc.keepalive_timeout_ms': true, - 'grpc.keepalive_permit_without_calls': true, - 'grpc.service_config': true, - 'grpc.max_concurrent_streams': true, - 'grpc.initial_reconnect_backoff_ms': true, - 'grpc.max_reconnect_backoff_ms': true, - 'grpc.use_local_subchannel_pool': true, - 'grpc.max_send_message_length': true, - 'grpc.max_receive_message_length': true, - 'grpc.enable_http_proxy': true, - 'grpc.enable_channelz': true, - 'grpc.dns_min_time_between_resolutions_ms': true, - 'grpc.enable_retries': true, - 'grpc.per_rpc_retry_buffer_size': true, - 'grpc.retry_buffer_size': true, - 'grpc.max_connection_age_ms': true, - 'grpc.max_connection_age_grace_ms': true, - 'grpc-node.max_session_memory': true, - 'grpc.service_config_disable_resolution': true, - 'grpc.client_idle_timeout_ms': true, - 'grpc-node.tls_enable_trace': true, -}; -function channelOptionsEqual(options1, options2) { - const keys1 = Object.keys(options1).sort(); - const keys2 = Object.keys(options2).sort(); - if (keys1.length !== keys2.length) { - return false; - } - for (let i = 0; i < keys1.length; i += 1) { - if (keys1[i] !== keys2[i]) { - return false; - } - if (options1[keys1[i]] !== options2[keys2[i]]) { - return false; - } - } - return true; -} -exports.channelOptionsEqual = channelOptionsEqual; -//# sourceMappingURL=channel-options.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.js.map deleted file mode 100644 index aa3bb6b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"channel-options.js","sourceRoot":"","sources":["../../src/channel-options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAoDH;;;GAGG;AACU,QAAA,iBAAiB,GAAG;IAC/B,+BAA+B,EAAE,IAAI;IACrC,yBAAyB,EAAE,IAAI;IAC/B,2BAA2B,EAAE,IAAI;IACjC,wBAAwB,EAAE,IAAI;IAC9B,wBAAwB,EAAE,IAAI;IAC9B,2BAA2B,EAAE,IAAI;IACjC,qCAAqC,EAAE,IAAI;IAC3C,qBAAqB,EAAE,IAAI;IAC3B,6BAA6B,EAAE,IAAI;IACnC,mCAAmC,EAAE,IAAI;IACzC,+BAA+B,EAAE,IAAI;IACrC,gCAAgC,EAAE,IAAI;IACtC,8BAA8B,EAAE,IAAI;IACpC,iCAAiC,EAAE,IAAI;IACvC,wBAAwB,EAAE,IAAI;IAC9B,sBAAsB,EAAE,IAAI;IAC5B,0CAA0C,EAAE,IAAI;IAChD,qBAAqB,EAAE,IAAI;IAC3B,gCAAgC,EAAE,IAAI;IACtC,wBAAwB,EAAE,IAAI;IAC9B,4BAA4B,EAAE,IAAI;IAClC,kCAAkC,EAAE,IAAI;IACxC,8BAA8B,EAAE,IAAI;IACpC,wCAAwC,EAAE,IAAI;IAC9C,6BAA6B,EAAE,IAAI;IACnC,4BAA4B,EAAE,IAAI;CACnC,CAAC;AAEF,SAAgB,mBAAmB,CACjC,QAAwB,EACxB,QAAwB;IAExB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3C,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;QAClC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACzC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC;QACf,CAAC;QACD,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9C,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAlBD,kDAkBC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.d.ts deleted file mode 100644 index 62b43e7..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { ChannelCredentials } from './channel-credentials'; -import { ChannelOptions } from './channel-options'; -import { ServerSurfaceCall } from './server-call'; -import { ConnectivityState } from './connectivity-state'; -import { ChannelRef } from './channelz'; -import { Call } from './call-interface'; -import { Deadline } from './deadline'; -/** - * An interface that represents a communication channel to a server specified - * by a given address. - */ -export interface Channel { - /** - * Close the channel. This has the same functionality as the existing - * grpc.Client.prototype.close - */ - close(): void; - /** - * Return the target that this channel connects to - */ - getTarget(): string; - /** - * Get the channel's current connectivity state. This method is here mainly - * because it is in the existing internal Channel class, and there isn't - * another good place to put it. - * @param tryToConnect If true, the channel will start connecting if it is - * idle. Otherwise, idle channels will only start connecting when a - * call starts. - */ - getConnectivityState(tryToConnect: boolean): ConnectivityState; - /** - * Watch for connectivity state changes. This is also here mainly because - * it is in the existing external Channel class. - * @param currentState The state to watch for transitions from. This should - * always be populated by calling getConnectivityState immediately - * before. - * @param deadline A deadline for waiting for a state change - * @param callback Called with no error when a state change, or with an - * error if the deadline passes without a state change. - */ - watchConnectivityState(currentState: ConnectivityState, deadline: Date | number, callback: (error?: Error) => void): void; - /** - * Get the channelz reference object for this channel. A request to the - * channelz service for the id in this object will provide information - * about this channel. - */ - getChannelzRef(): ChannelRef; - /** - * Create a call object. Call is an opaque type that is used by the Client - * class. This function is called by the gRPC library when starting a - * request. Implementers should return an instance of Call that is returned - * from calling createCall on an instance of the provided Channel class. - * @param method The full method string to request. - * @param deadline The call deadline - * @param host A host string override for making the request - * @param parentCall A server call to propagate some information from - * @param propagateFlags A bitwise combination of elements of grpc.propagate - * that indicates what information to propagate from parentCall. - */ - createCall(method: string, deadline: Deadline, host: string | null | undefined, parentCall: ServerSurfaceCall | null, propagateFlags: number | null | undefined): Call; -} -export declare class ChannelImplementation implements Channel { - private internalChannel; - constructor(target: string, credentials: ChannelCredentials, options: ChannelOptions); - close(): void; - getTarget(): string; - getConnectivityState(tryToConnect: boolean): ConnectivityState; - watchConnectivityState(currentState: ConnectivityState, deadline: Date | number, callback: (error?: Error) => void): void; - /** - * Get the channelz reference object for this channel. The returned value is - * garbage if channelz is disabled for this channel. - * @returns - */ - getChannelzRef(): ChannelRef; - createCall(method: string, deadline: Deadline, host: string | null | undefined, parentCall: ServerSurfaceCall | null, propagateFlags: number | null | undefined): Call; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.js deleted file mode 100644 index 49e8639..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChannelImplementation = void 0; -const channel_credentials_1 = require("./channel-credentials"); -const internal_channel_1 = require("./internal-channel"); -class ChannelImplementation { - constructor(target, credentials, options) { - if (typeof target !== 'string') { - throw new TypeError('Channel target must be a string'); - } - if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) { - throw new TypeError('Channel credentials must be a ChannelCredentials object'); - } - if (options) { - if (typeof options !== 'object') { - throw new TypeError('Channel options must be an object'); - } - } - this.internalChannel = new internal_channel_1.InternalChannel(target, credentials, options); - } - close() { - this.internalChannel.close(); - } - getTarget() { - return this.internalChannel.getTarget(); - } - getConnectivityState(tryToConnect) { - return this.internalChannel.getConnectivityState(tryToConnect); - } - watchConnectivityState(currentState, deadline, callback) { - this.internalChannel.watchConnectivityState(currentState, deadline, callback); - } - /** - * Get the channelz reference object for this channel. The returned value is - * garbage if channelz is disabled for this channel. - * @returns - */ - getChannelzRef() { - return this.internalChannel.getChannelzRef(); - } - createCall(method, deadline, host, parentCall, propagateFlags) { - if (typeof method !== 'string') { - throw new TypeError('Channel#createCall: method must be a string'); - } - if (!(typeof deadline === 'number' || deadline instanceof Date)) { - throw new TypeError('Channel#createCall: deadline must be a number or Date'); - } - return this.internalChannel.createCall(method, deadline, host, parentCall, propagateFlags); - } -} -exports.ChannelImplementation = ChannelImplementation; -//# sourceMappingURL=channel.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.js.map deleted file mode 100644 index 8758e84..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/channel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAA2D;AAO3D,yDAAqD;AAoErD,MAAa,qBAAqB;IAGhC,YACE,MAAc,EACd,WAA+B,EAC/B,OAAuB;QAEvB,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,IAAI,SAAS,CAAC,iCAAiC,CAAC,CAAC;QACzD,CAAC;QACD,IAAI,CAAC,CAAC,WAAW,YAAY,wCAAkB,CAAC,EAAE,CAAC;YACjD,MAAM,IAAI,SAAS,CACjB,yDAAyD,CAC1D,CAAC;QACJ,CAAC;QACD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAChC,MAAM,IAAI,SAAS,CAAC,mCAAmC,CAAC,CAAC;YAC3D,CAAC;QACH,CAAC;QAED,IAAI,CAAC,eAAe,GAAG,IAAI,kCAAe,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED,KAAK;QACH,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;IAC/B,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;IAC1C,CAAC;IAED,oBAAoB,CAAC,YAAqB;QACxC,OAAO,IAAI,CAAC,eAAe,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC;IACjE,CAAC;IAED,sBAAsB,CACpB,YAA+B,EAC/B,QAAuB,EACvB,QAAiC;QAEjC,IAAI,CAAC,eAAe,CAAC,sBAAsB,CACzC,YAAY,EACZ,QAAQ,EACR,QAAQ,CACT,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,CAAC;IAC/C,CAAC;IAED,UAAU,CACR,MAAc,EACd,QAAkB,EAClB,IAA+B,EAC/B,UAAoC,EACpC,cAAyC;QAEzC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,IAAI,SAAS,CAAC,6CAA6C,CAAC,CAAC;QACrE,CAAC;QACD,IAAI,CAAC,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,YAAY,IAAI,CAAC,EAAE,CAAC;YAChE,MAAM,IAAI,SAAS,CACjB,uDAAuD,CACxD,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CACpC,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,CACf,CAAC;IACJ,CAAC;CACF;AAjFD,sDAiFC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.d.ts deleted file mode 100644 index 388ef2d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -/// <reference types="node" /> -import { ConnectivityState } from './connectivity-state'; -import { ChannelTrace } from './generated/grpc/channelz/v1/ChannelTrace'; -import { SubchannelAddress } from './subchannel-address'; -import { ChannelzDefinition, ChannelzHandlers } from './generated/grpc/channelz/v1/Channelz'; -export type TraceSeverity = 'CT_UNKNOWN' | 'CT_INFO' | 'CT_WARNING' | 'CT_ERROR'; -export interface ChannelRef { - kind: 'channel'; - id: number; - name: string; -} -export interface SubchannelRef { - kind: 'subchannel'; - id: number; - name: string; -} -export interface ServerRef { - kind: 'server'; - id: number; -} -export interface SocketRef { - kind: 'socket'; - id: number; - name: string; -} -interface TraceEvent { - description: string; - severity: TraceSeverity; - timestamp: Date; - childChannel?: ChannelRef; - childSubchannel?: SubchannelRef; -} -export declare class ChannelzTrace { - events: TraceEvent[]; - creationTimestamp: Date; - eventsLogged: number; - constructor(); - addTrace(severity: TraceSeverity, description: string, child?: ChannelRef | SubchannelRef): void; - getTraceMessage(): ChannelTrace; -} -export declare class ChannelzChildrenTracker { - private channelChildren; - private subchannelChildren; - private socketChildren; - refChild(child: ChannelRef | SubchannelRef | SocketRef): void; - unrefChild(child: ChannelRef | SubchannelRef | SocketRef): void; - getChildLists(): ChannelzChildren; -} -export declare class ChannelzCallTracker { - callsStarted: number; - callsSucceeded: number; - callsFailed: number; - lastCallStartedTimestamp: Date | null; - addCallStarted(): void; - addCallSucceeded(): void; - addCallFailed(): void; -} -export interface ChannelzChildren { - channels: ChannelRef[]; - subchannels: SubchannelRef[]; - sockets: SocketRef[]; -} -export interface ChannelInfo { - target: string; - state: ConnectivityState; - trace: ChannelzTrace; - callTracker: ChannelzCallTracker; - children: ChannelzChildren; -} -export type SubchannelInfo = ChannelInfo; -export interface ServerInfo { - trace: ChannelzTrace; - callTracker: ChannelzCallTracker; - listenerChildren: ChannelzChildren; - sessionChildren: ChannelzChildren; -} -export interface TlsInfo { - cipherSuiteStandardName: string | null; - cipherSuiteOtherName: string | null; - localCertificate: Buffer | null; - remoteCertificate: Buffer | null; -} -export interface SocketInfo { - localAddress: SubchannelAddress | null; - remoteAddress: SubchannelAddress | null; - security: TlsInfo | null; - remoteName: string | null; - streamsStarted: number; - streamsSucceeded: number; - streamsFailed: number; - messagesSent: number; - messagesReceived: number; - keepAlivesSent: number; - lastLocalStreamCreatedTimestamp: Date | null; - lastRemoteStreamCreatedTimestamp: Date | null; - lastMessageSentTimestamp: Date | null; - lastMessageReceivedTimestamp: Date | null; - localFlowControlWindow: number | null; - remoteFlowControlWindow: number | null; -} -export declare function registerChannelzChannel(name: string, getInfo: () => ChannelInfo, channelzEnabled: boolean): ChannelRef; -export declare function registerChannelzSubchannel(name: string, getInfo: () => SubchannelInfo, channelzEnabled: boolean): SubchannelRef; -export declare function registerChannelzServer(getInfo: () => ServerInfo, channelzEnabled: boolean): ServerRef; -export declare function registerChannelzSocket(name: string, getInfo: () => SocketInfo, channelzEnabled: boolean): SocketRef; -export declare function unregisterChannelzRef(ref: ChannelRef | SubchannelRef | ServerRef | SocketRef): void; -export declare function getChannelzHandlers(): ChannelzHandlers; -export declare function getChannelzServiceDefinition(): ChannelzDefinition; -export declare function setup(): void; -export {}; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.js deleted file mode 100644 index 9a8fc30..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.js +++ /dev/null @@ -1,637 +0,0 @@ -"use strict"; -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setup = exports.getChannelzServiceDefinition = exports.getChannelzHandlers = exports.unregisterChannelzRef = exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTracker = exports.ChannelzChildrenTracker = exports.ChannelzTrace = void 0; -const net_1 = require("net"); -const connectivity_state_1 = require("./connectivity-state"); -const constants_1 = require("./constants"); -const subchannel_address_1 = require("./subchannel-address"); -const admin_1 = require("./admin"); -const make_client_1 = require("./make-client"); -function channelRefToMessage(ref) { - return { - channel_id: ref.id, - name: ref.name, - }; -} -function subchannelRefToMessage(ref) { - return { - subchannel_id: ref.id, - name: ref.name, - }; -} -function serverRefToMessage(ref) { - return { - server_id: ref.id, - }; -} -function socketRefToMessage(ref) { - return { - socket_id: ref.id, - name: ref.name, - }; -} -/** - * The loose upper bound on the number of events that should be retained in a - * trace. This may be exceeded by up to a factor of 2. Arbitrarily chosen as a - * number that should be large enough to contain the recent relevant - * information, but small enough to not use excessive memory. - */ -const TARGET_RETAINED_TRACES = 32; -class ChannelzTrace { - constructor() { - this.events = []; - this.eventsLogged = 0; - this.creationTimestamp = new Date(); - } - addTrace(severity, description, child) { - const timestamp = new Date(); - this.events.push({ - description: description, - severity: severity, - timestamp: timestamp, - childChannel: (child === null || child === void 0 ? void 0 : child.kind) === 'channel' ? child : undefined, - childSubchannel: (child === null || child === void 0 ? void 0 : child.kind) === 'subchannel' ? child : undefined, - }); - // Whenever the trace array gets too large, discard the first half - if (this.events.length >= TARGET_RETAINED_TRACES * 2) { - this.events = this.events.slice(TARGET_RETAINED_TRACES); - } - this.eventsLogged += 1; - } - getTraceMessage() { - return { - creation_timestamp: dateToProtoTimestamp(this.creationTimestamp), - num_events_logged: this.eventsLogged, - events: this.events.map(event => { - return { - description: event.description, - severity: event.severity, - timestamp: dateToProtoTimestamp(event.timestamp), - channel_ref: event.childChannel - ? channelRefToMessage(event.childChannel) - : null, - subchannel_ref: event.childSubchannel - ? subchannelRefToMessage(event.childSubchannel) - : null, - }; - }), - }; - } -} -exports.ChannelzTrace = ChannelzTrace; -class ChannelzChildrenTracker { - constructor() { - this.channelChildren = new Map(); - this.subchannelChildren = new Map(); - this.socketChildren = new Map(); - } - refChild(child) { - var _a, _b, _c; - switch (child.kind) { - case 'channel': { - const trackedChild = (_a = this.channelChildren.get(child.id)) !== null && _a !== void 0 ? _a : { - ref: child, - count: 0, - }; - trackedChild.count += 1; - this.channelChildren.set(child.id, trackedChild); - break; - } - case 'subchannel': { - const trackedChild = (_b = this.subchannelChildren.get(child.id)) !== null && _b !== void 0 ? _b : { - ref: child, - count: 0, - }; - trackedChild.count += 1; - this.subchannelChildren.set(child.id, trackedChild); - break; - } - case 'socket': { - const trackedChild = (_c = this.socketChildren.get(child.id)) !== null && _c !== void 0 ? _c : { - ref: child, - count: 0, - }; - trackedChild.count += 1; - this.socketChildren.set(child.id, trackedChild); - break; - } - } - } - unrefChild(child) { - switch (child.kind) { - case 'channel': { - const trackedChild = this.channelChildren.get(child.id); - if (trackedChild !== undefined) { - trackedChild.count -= 1; - if (trackedChild.count === 0) { - this.channelChildren.delete(child.id); - } - else { - this.channelChildren.set(child.id, trackedChild); - } - } - break; - } - case 'subchannel': { - const trackedChild = this.subchannelChildren.get(child.id); - if (trackedChild !== undefined) { - trackedChild.count -= 1; - if (trackedChild.count === 0) { - this.subchannelChildren.delete(child.id); - } - else { - this.subchannelChildren.set(child.id, trackedChild); - } - } - break; - } - case 'socket': { - const trackedChild = this.socketChildren.get(child.id); - if (trackedChild !== undefined) { - trackedChild.count -= 1; - if (trackedChild.count === 0) { - this.socketChildren.delete(child.id); - } - else { - this.socketChildren.set(child.id, trackedChild); - } - } - break; - } - } - } - getChildLists() { - const channels = []; - for (const { ref } of this.channelChildren.values()) { - channels.push(ref); - } - const subchannels = []; - for (const { ref } of this.subchannelChildren.values()) { - subchannels.push(ref); - } - const sockets = []; - for (const { ref } of this.socketChildren.values()) { - sockets.push(ref); - } - return { channels, subchannels, sockets }; - } -} -exports.ChannelzChildrenTracker = ChannelzChildrenTracker; -class ChannelzCallTracker { - constructor() { - this.callsStarted = 0; - this.callsSucceeded = 0; - this.callsFailed = 0; - this.lastCallStartedTimestamp = null; - } - addCallStarted() { - this.callsStarted += 1; - this.lastCallStartedTimestamp = new Date(); - } - addCallSucceeded() { - this.callsSucceeded += 1; - } - addCallFailed() { - this.callsFailed += 1; - } -} -exports.ChannelzCallTracker = ChannelzCallTracker; -let nextId = 1; -function getNextId() { - return nextId++; -} -const channels = []; -const subchannels = []; -const servers = []; -const sockets = []; -function registerChannelzChannel(name, getInfo, channelzEnabled) { - const id = getNextId(); - const ref = { id, name, kind: 'channel' }; - if (channelzEnabled) { - channels[id] = { ref, getInfo }; - } - return ref; -} -exports.registerChannelzChannel = registerChannelzChannel; -function registerChannelzSubchannel(name, getInfo, channelzEnabled) { - const id = getNextId(); - const ref = { id, name, kind: 'subchannel' }; - if (channelzEnabled) { - subchannels[id] = { ref, getInfo }; - } - return ref; -} -exports.registerChannelzSubchannel = registerChannelzSubchannel; -function registerChannelzServer(getInfo, channelzEnabled) { - const id = getNextId(); - const ref = { id, kind: 'server' }; - if (channelzEnabled) { - servers[id] = { ref, getInfo }; - } - return ref; -} -exports.registerChannelzServer = registerChannelzServer; -function registerChannelzSocket(name, getInfo, channelzEnabled) { - const id = getNextId(); - const ref = { id, name, kind: 'socket' }; - if (channelzEnabled) { - sockets[id] = { ref, getInfo }; - } - return ref; -} -exports.registerChannelzSocket = registerChannelzSocket; -function unregisterChannelzRef(ref) { - switch (ref.kind) { - case 'channel': - delete channels[ref.id]; - return; - case 'subchannel': - delete subchannels[ref.id]; - return; - case 'server': - delete servers[ref.id]; - return; - case 'socket': - delete sockets[ref.id]; - return; - } -} -exports.unregisterChannelzRef = unregisterChannelzRef; -/** - * Parse a single section of an IPv6 address as two bytes - * @param addressSection A hexadecimal string of length up to 4 - * @returns The pair of bytes representing this address section - */ -function parseIPv6Section(addressSection) { - const numberValue = Number.parseInt(addressSection, 16); - return [(numberValue / 256) | 0, numberValue % 256]; -} -/** - * Parse a chunk of an IPv6 address string to some number of bytes - * @param addressChunk Some number of segments of up to 4 hexadecimal - * characters each, joined by colons. - * @returns The list of bytes representing this address chunk - */ -function parseIPv6Chunk(addressChunk) { - if (addressChunk === '') { - return []; - } - const bytePairs = addressChunk - .split(':') - .map(section => parseIPv6Section(section)); - const result = []; - return result.concat(...bytePairs); -} -/** - * Converts an IPv4 or IPv6 address from string representation to binary - * representation - * @param ipAddress an IP address in standard IPv4 or IPv6 text format - * @returns - */ -function ipAddressStringToBuffer(ipAddress) { - if ((0, net_1.isIPv4)(ipAddress)) { - return Buffer.from(Uint8Array.from(ipAddress.split('.').map(segment => Number.parseInt(segment)))); - } - else if ((0, net_1.isIPv6)(ipAddress)) { - let leftSection; - let rightSection; - const doubleColonIndex = ipAddress.indexOf('::'); - if (doubleColonIndex === -1) { - leftSection = ipAddress; - rightSection = ''; - } - else { - leftSection = ipAddress.substring(0, doubleColonIndex); - rightSection = ipAddress.substring(doubleColonIndex + 2); - } - const leftBuffer = Buffer.from(parseIPv6Chunk(leftSection)); - const rightBuffer = Buffer.from(parseIPv6Chunk(rightSection)); - const middleBuffer = Buffer.alloc(16 - leftBuffer.length - rightBuffer.length, 0); - return Buffer.concat([leftBuffer, middleBuffer, rightBuffer]); - } - else { - return null; - } -} -function connectivityStateToMessage(state) { - switch (state) { - case connectivity_state_1.ConnectivityState.CONNECTING: - return { - state: 'CONNECTING', - }; - case connectivity_state_1.ConnectivityState.IDLE: - return { - state: 'IDLE', - }; - case connectivity_state_1.ConnectivityState.READY: - return { - state: 'READY', - }; - case connectivity_state_1.ConnectivityState.SHUTDOWN: - return { - state: 'SHUTDOWN', - }; - case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE: - return { - state: 'TRANSIENT_FAILURE', - }; - default: - return { - state: 'UNKNOWN', - }; - } -} -function dateToProtoTimestamp(date) { - if (!date) { - return null; - } - const millisSinceEpoch = date.getTime(); - return { - seconds: (millisSinceEpoch / 1000) | 0, - nanos: (millisSinceEpoch % 1000) * 1000000, - }; -} -function getChannelMessage(channelEntry) { - const resolvedInfo = channelEntry.getInfo(); - return { - ref: channelRefToMessage(channelEntry.ref), - data: { - target: resolvedInfo.target, - state: connectivityStateToMessage(resolvedInfo.state), - calls_started: resolvedInfo.callTracker.callsStarted, - calls_succeeded: resolvedInfo.callTracker.callsSucceeded, - calls_failed: resolvedInfo.callTracker.callsFailed, - last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), - trace: resolvedInfo.trace.getTraceMessage(), - }, - channel_ref: resolvedInfo.children.channels.map(ref => channelRefToMessage(ref)), - subchannel_ref: resolvedInfo.children.subchannels.map(ref => subchannelRefToMessage(ref)), - }; -} -function GetChannel(call, callback) { - const channelId = Number.parseInt(call.request.channel_id); - const channelEntry = channels[channelId]; - if (channelEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No channel data found for id ' + channelId, - }); - return; - } - callback(null, { channel: getChannelMessage(channelEntry) }); -} -function GetTopChannels(call, callback) { - const maxResults = Number.parseInt(call.request.max_results); - const resultList = []; - let i = Number.parseInt(call.request.start_channel_id); - for (; i < channels.length; i++) { - const channelEntry = channels[i]; - if (channelEntry === undefined) { - continue; - } - resultList.push(getChannelMessage(channelEntry)); - if (resultList.length >= maxResults) { - break; - } - } - callback(null, { - channel: resultList, - end: i >= servers.length, - }); -} -function getServerMessage(serverEntry) { - const resolvedInfo = serverEntry.getInfo(); - return { - ref: serverRefToMessage(serverEntry.ref), - data: { - calls_started: resolvedInfo.callTracker.callsStarted, - calls_succeeded: resolvedInfo.callTracker.callsSucceeded, - calls_failed: resolvedInfo.callTracker.callsFailed, - last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), - trace: resolvedInfo.trace.getTraceMessage(), - }, - listen_socket: resolvedInfo.listenerChildren.sockets.map(ref => socketRefToMessage(ref)), - }; -} -function GetServer(call, callback) { - const serverId = Number.parseInt(call.request.server_id); - const serverEntry = servers[serverId]; - if (serverEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No server data found for id ' + serverId, - }); - return; - } - callback(null, { server: getServerMessage(serverEntry) }); -} -function GetServers(call, callback) { - const maxResults = Number.parseInt(call.request.max_results); - const resultList = []; - let i = Number.parseInt(call.request.start_server_id); - for (; i < servers.length; i++) { - const serverEntry = servers[i]; - if (serverEntry === undefined) { - continue; - } - resultList.push(getServerMessage(serverEntry)); - if (resultList.length >= maxResults) { - break; - } - } - callback(null, { - server: resultList, - end: i >= servers.length, - }); -} -function GetSubchannel(call, callback) { - const subchannelId = Number.parseInt(call.request.subchannel_id); - const subchannelEntry = subchannels[subchannelId]; - if (subchannelEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No subchannel data found for id ' + subchannelId, - }); - return; - } - const resolvedInfo = subchannelEntry.getInfo(); - const subchannelMessage = { - ref: subchannelRefToMessage(subchannelEntry.ref), - data: { - target: resolvedInfo.target, - state: connectivityStateToMessage(resolvedInfo.state), - calls_started: resolvedInfo.callTracker.callsStarted, - calls_succeeded: resolvedInfo.callTracker.callsSucceeded, - calls_failed: resolvedInfo.callTracker.callsFailed, - last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), - trace: resolvedInfo.trace.getTraceMessage(), - }, - socket_ref: resolvedInfo.children.sockets.map(ref => socketRefToMessage(ref)), - }; - callback(null, { subchannel: subchannelMessage }); -} -function subchannelAddressToAddressMessage(subchannelAddress) { - var _a; - if ((0, subchannel_address_1.isTcpSubchannelAddress)(subchannelAddress)) { - return { - address: 'tcpip_address', - tcpip_address: { - ip_address: (_a = ipAddressStringToBuffer(subchannelAddress.host)) !== null && _a !== void 0 ? _a : undefined, - port: subchannelAddress.port, - }, - }; - } - else { - return { - address: 'uds_address', - uds_address: { - filename: subchannelAddress.path, - }, - }; - } -} -function GetSocket(call, callback) { - var _a, _b, _c, _d, _e; - const socketId = Number.parseInt(call.request.socket_id); - const socketEntry = sockets[socketId]; - if (socketEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No socket data found for id ' + socketId, - }); - return; - } - const resolvedInfo = socketEntry.getInfo(); - const securityMessage = resolvedInfo.security - ? { - model: 'tls', - tls: { - cipher_suite: resolvedInfo.security.cipherSuiteStandardName - ? 'standard_name' - : 'other_name', - standard_name: (_a = resolvedInfo.security.cipherSuiteStandardName) !== null && _a !== void 0 ? _a : undefined, - other_name: (_b = resolvedInfo.security.cipherSuiteOtherName) !== null && _b !== void 0 ? _b : undefined, - local_certificate: (_c = resolvedInfo.security.localCertificate) !== null && _c !== void 0 ? _c : undefined, - remote_certificate: (_d = resolvedInfo.security.remoteCertificate) !== null && _d !== void 0 ? _d : undefined, - }, - } - : null; - const socketMessage = { - ref: socketRefToMessage(socketEntry.ref), - local: resolvedInfo.localAddress - ? subchannelAddressToAddressMessage(resolvedInfo.localAddress) - : null, - remote: resolvedInfo.remoteAddress - ? subchannelAddressToAddressMessage(resolvedInfo.remoteAddress) - : null, - remote_name: (_e = resolvedInfo.remoteName) !== null && _e !== void 0 ? _e : undefined, - security: securityMessage, - data: { - keep_alives_sent: resolvedInfo.keepAlivesSent, - streams_started: resolvedInfo.streamsStarted, - streams_succeeded: resolvedInfo.streamsSucceeded, - streams_failed: resolvedInfo.streamsFailed, - last_local_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastLocalStreamCreatedTimestamp), - last_remote_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastRemoteStreamCreatedTimestamp), - messages_received: resolvedInfo.messagesReceived, - messages_sent: resolvedInfo.messagesSent, - last_message_received_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageReceivedTimestamp), - last_message_sent_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageSentTimestamp), - local_flow_control_window: resolvedInfo.localFlowControlWindow - ? { value: resolvedInfo.localFlowControlWindow } - : null, - remote_flow_control_window: resolvedInfo.remoteFlowControlWindow - ? { value: resolvedInfo.remoteFlowControlWindow } - : null, - }, - }; - callback(null, { socket: socketMessage }); -} -function GetServerSockets(call, callback) { - const serverId = Number.parseInt(call.request.server_id); - const serverEntry = servers[serverId]; - if (serverEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No server data found for id ' + serverId, - }); - return; - } - const startId = Number.parseInt(call.request.start_socket_id); - const maxResults = Number.parseInt(call.request.max_results); - const resolvedInfo = serverEntry.getInfo(); - // If we wanted to include listener sockets in the result, this line would - // instead say - // const allSockets = resolvedInfo.listenerChildren.sockets.concat(resolvedInfo.sessionChildren.sockets).sort((ref1, ref2) => ref1.id - ref2.id); - const allSockets = resolvedInfo.sessionChildren.sockets.sort((ref1, ref2) => ref1.id - ref2.id); - const resultList = []; - let i = 0; - for (; i < allSockets.length; i++) { - if (allSockets[i].id >= startId) { - resultList.push(socketRefToMessage(allSockets[i])); - if (resultList.length >= maxResults) { - break; - } - } - } - callback(null, { - socket_ref: resultList, - end: i >= allSockets.length, - }); -} -function getChannelzHandlers() { - return { - GetChannel, - GetTopChannels, - GetServer, - GetServers, - GetSubchannel, - GetSocket, - GetServerSockets, - }; -} -exports.getChannelzHandlers = getChannelzHandlers; -let loadedChannelzDefinition = null; -function getChannelzServiceDefinition() { - if (loadedChannelzDefinition) { - return loadedChannelzDefinition; - } - /* The purpose of this complexity is to avoid loading @grpc/proto-loader at - * runtime for users who will not use/enable channelz. */ - const loaderLoadSync = require('@grpc/proto-loader') - .loadSync; - const loadedProto = loaderLoadSync('channelz.proto', { - keepCase: true, - longs: String, - enums: String, - defaults: true, - oneofs: true, - includeDirs: [`${__dirname}/../../proto`], - }); - const channelzGrpcObject = (0, make_client_1.loadPackageDefinition)(loadedProto); - loadedChannelzDefinition = - channelzGrpcObject.grpc.channelz.v1.Channelz.service; - return loadedChannelzDefinition; -} -exports.getChannelzServiceDefinition = getChannelzServiceDefinition; -function setup() { - (0, admin_1.registerAdminService)(getChannelzServiceDefinition, getChannelzHandlers); -} -exports.setup = setup; -//# sourceMappingURL=channelz.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.js.map deleted file mode 100644 index 742d99b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/channelz.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"channelz.js","sourceRoot":"","sources":["../../src/channelz.ts"],"names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4BAA4B,EAAE,mBAAmB,CAAC,CAAC;AAC1E,CAAC;AAFD,sBAEC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.d.ts deleted file mode 100644 index 1ecfb34..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { Metadata } from './metadata'; -import { Listener, MetadataListener, MessageListener, StatusListener, InterceptingListener, MessageContext } from './call-interface'; -import { Status } from './constants'; -import { Channel } from './channel'; -import { CallOptions } from './client'; -import { ClientMethodDefinition } from './make-client'; -/** - * Error class associated with passing both interceptors and interceptor - * providers to a client constructor or as call options. - */ -export declare class InterceptorConfigurationError extends Error { - constructor(message: string); -} -export interface MetadataRequester { - (metadata: Metadata, listener: InterceptingListener, next: (metadata: Metadata, listener: InterceptingListener | Listener) => void): void; -} -export interface MessageRequester { - (message: any, next: (message: any) => void): void; -} -export interface CloseRequester { - (next: () => void): void; -} -export interface CancelRequester { - (next: () => void): void; -} -/** - * An object with methods for intercepting and modifying outgoing call operations. - */ -export interface FullRequester { - start: MetadataRequester; - sendMessage: MessageRequester; - halfClose: CloseRequester; - cancel: CancelRequester; -} -export type Requester = Partial<FullRequester>; -export declare class ListenerBuilder { - private metadata; - private message; - private status; - withOnReceiveMetadata(onReceiveMetadata: MetadataListener): this; - withOnReceiveMessage(onReceiveMessage: MessageListener): this; - withOnReceiveStatus(onReceiveStatus: StatusListener): this; - build(): Listener; -} -export declare class RequesterBuilder { - private start; - private message; - private halfClose; - private cancel; - withStart(start: MetadataRequester): this; - withSendMessage(sendMessage: MessageRequester): this; - withHalfClose(halfClose: CloseRequester): this; - withCancel(cancel: CancelRequester): this; - build(): Requester; -} -export interface InterceptorOptions extends CallOptions { - method_definition: ClientMethodDefinition<any, any>; -} -export interface InterceptingCallInterface { - cancelWithStatus(status: Status, details: string): void; - getPeer(): string; - start(metadata: Metadata, listener?: Partial<InterceptingListener>): void; - sendMessageWithContext(context: MessageContext, message: any): void; - sendMessage(message: any): void; - startRead(): void; - halfClose(): void; -} -export declare class InterceptingCall implements InterceptingCallInterface { - private nextCall; - /** - * The requester that this InterceptingCall uses to modify outgoing operations - */ - private requester; - /** - * Indicates that metadata has been passed to the requester's start - * method but it has not been passed to the corresponding next callback - */ - private processingMetadata; - /** - * Message context for a pending message that is waiting for - */ - private pendingMessageContext; - private pendingMessage; - /** - * Indicates that a message has been passed to the requester's sendMessage - * method but it has not been passed to the corresponding next callback - */ - private processingMessage; - /** - * Indicates that a status was received but could not be propagated because - * a message was still being processed. - */ - private pendingHalfClose; - constructor(nextCall: InterceptingCallInterface, requester?: Requester); - cancelWithStatus(status: Status, details: string): void; - getPeer(): string; - private processPendingMessage; - private processPendingHalfClose; - start(metadata: Metadata, interceptingListener?: Partial<InterceptingListener>): void; - sendMessageWithContext(context: MessageContext, message: any): void; - sendMessage(message: any): void; - startRead(): void; - halfClose(): void; -} -export interface NextCall { - (options: InterceptorOptions): InterceptingCallInterface; -} -export interface Interceptor { - (options: InterceptorOptions, nextCall: NextCall): InterceptingCall; -} -export interface InterceptorProvider { - (methodDefinition: ClientMethodDefinition<any, any>): Interceptor; -} -export interface InterceptorArguments { - clientInterceptors: Interceptor[]; - clientInterceptorProviders: InterceptorProvider[]; - callInterceptors: Interceptor[]; - callInterceptorProviders: InterceptorProvider[]; -} -export declare function getInterceptingCall(interceptorArgs: InterceptorArguments, methodDefinition: ClientMethodDefinition<any, any>, options: CallOptions, channel: Channel): InterceptingCallInterface; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.js deleted file mode 100644 index 76352e9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +++ /dev/null @@ -1,428 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getInterceptingCall = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.InterceptorConfigurationError = void 0; -const metadata_1 = require("./metadata"); -const call_interface_1 = require("./call-interface"); -const constants_1 = require("./constants"); -const error_1 = require("./error"); -/** - * Error class associated with passing both interceptors and interceptor - * providers to a client constructor or as call options. - */ -class InterceptorConfigurationError extends Error { - constructor(message) { - super(message); - this.name = 'InterceptorConfigurationError'; - Error.captureStackTrace(this, InterceptorConfigurationError); - } -} -exports.InterceptorConfigurationError = InterceptorConfigurationError; -class ListenerBuilder { - constructor() { - this.metadata = undefined; - this.message = undefined; - this.status = undefined; - } - withOnReceiveMetadata(onReceiveMetadata) { - this.metadata = onReceiveMetadata; - return this; - } - withOnReceiveMessage(onReceiveMessage) { - this.message = onReceiveMessage; - return this; - } - withOnReceiveStatus(onReceiveStatus) { - this.status = onReceiveStatus; - return this; - } - build() { - return { - onReceiveMetadata: this.metadata, - onReceiveMessage: this.message, - onReceiveStatus: this.status, - }; - } -} -exports.ListenerBuilder = ListenerBuilder; -class RequesterBuilder { - constructor() { - this.start = undefined; - this.message = undefined; - this.halfClose = undefined; - this.cancel = undefined; - } - withStart(start) { - this.start = start; - return this; - } - withSendMessage(sendMessage) { - this.message = sendMessage; - return this; - } - withHalfClose(halfClose) { - this.halfClose = halfClose; - return this; - } - withCancel(cancel) { - this.cancel = cancel; - return this; - } - build() { - return { - start: this.start, - sendMessage: this.message, - halfClose: this.halfClose, - cancel: this.cancel, - }; - } -} -exports.RequesterBuilder = RequesterBuilder; -/** - * A Listener with a default pass-through implementation of each method. Used - * for filling out Listeners with some methods omitted. - */ -const defaultListener = { - onReceiveMetadata: (metadata, next) => { - next(metadata); - }, - onReceiveMessage: (message, next) => { - next(message); - }, - onReceiveStatus: (status, next) => { - next(status); - }, -}; -/** - * A Requester with a default pass-through implementation of each method. Used - * for filling out Requesters with some methods omitted. - */ -const defaultRequester = { - start: (metadata, listener, next) => { - next(metadata, listener); - }, - sendMessage: (message, next) => { - next(message); - }, - halfClose: next => { - next(); - }, - cancel: next => { - next(); - }, -}; -class InterceptingCall { - constructor(nextCall, requester) { - var _a, _b, _c, _d; - this.nextCall = nextCall; - /** - * Indicates that metadata has been passed to the requester's start - * method but it has not been passed to the corresponding next callback - */ - this.processingMetadata = false; - /** - * Message context for a pending message that is waiting for - */ - this.pendingMessageContext = null; - /** - * Indicates that a message has been passed to the requester's sendMessage - * method but it has not been passed to the corresponding next callback - */ - this.processingMessage = false; - /** - * Indicates that a status was received but could not be propagated because - * a message was still being processed. - */ - this.pendingHalfClose = false; - if (requester) { - this.requester = { - start: (_a = requester.start) !== null && _a !== void 0 ? _a : defaultRequester.start, - sendMessage: (_b = requester.sendMessage) !== null && _b !== void 0 ? _b : defaultRequester.sendMessage, - halfClose: (_c = requester.halfClose) !== null && _c !== void 0 ? _c : defaultRequester.halfClose, - cancel: (_d = requester.cancel) !== null && _d !== void 0 ? _d : defaultRequester.cancel, - }; - } - else { - this.requester = defaultRequester; - } - } - cancelWithStatus(status, details) { - this.requester.cancel(() => { - this.nextCall.cancelWithStatus(status, details); - }); - } - getPeer() { - return this.nextCall.getPeer(); - } - processPendingMessage() { - if (this.pendingMessageContext) { - this.nextCall.sendMessageWithContext(this.pendingMessageContext, this.pendingMessage); - this.pendingMessageContext = null; - this.pendingMessage = null; - } - } - processPendingHalfClose() { - if (this.pendingHalfClose) { - this.nextCall.halfClose(); - } - } - start(metadata, interceptingListener) { - var _a, _b, _c, _d, _e, _f; - const fullInterceptingListener = { - onReceiveMetadata: (_b = (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(interceptingListener)) !== null && _b !== void 0 ? _b : (metadata => { }), - onReceiveMessage: (_d = (_c = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _c === void 0 ? void 0 : _c.bind(interceptingListener)) !== null && _d !== void 0 ? _d : (message => { }), - onReceiveStatus: (_f = (_e = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _e === void 0 ? void 0 : _e.bind(interceptingListener)) !== null && _f !== void 0 ? _f : (status => { }), - }; - this.processingMetadata = true; - this.requester.start(metadata, fullInterceptingListener, (md, listener) => { - var _a, _b, _c; - this.processingMetadata = false; - let finalInterceptingListener; - if ((0, call_interface_1.isInterceptingListener)(listener)) { - finalInterceptingListener = listener; - } - else { - const fullListener = { - onReceiveMetadata: (_a = listener.onReceiveMetadata) !== null && _a !== void 0 ? _a : defaultListener.onReceiveMetadata, - onReceiveMessage: (_b = listener.onReceiveMessage) !== null && _b !== void 0 ? _b : defaultListener.onReceiveMessage, - onReceiveStatus: (_c = listener.onReceiveStatus) !== null && _c !== void 0 ? _c : defaultListener.onReceiveStatus, - }; - finalInterceptingListener = new call_interface_1.InterceptingListenerImpl(fullListener, fullInterceptingListener); - } - this.nextCall.start(md, finalInterceptingListener); - this.processPendingMessage(); - this.processPendingHalfClose(); - }); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - sendMessageWithContext(context, message) { - this.processingMessage = true; - this.requester.sendMessage(message, finalMessage => { - this.processingMessage = false; - if (this.processingMetadata) { - this.pendingMessageContext = context; - this.pendingMessage = message; - } - else { - this.nextCall.sendMessageWithContext(context, finalMessage); - this.processPendingHalfClose(); - } - }); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - sendMessage(message) { - this.sendMessageWithContext({}, message); - } - startRead() { - this.nextCall.startRead(); - } - halfClose() { - this.requester.halfClose(() => { - if (this.processingMetadata || this.processingMessage) { - this.pendingHalfClose = true; - } - else { - this.nextCall.halfClose(); - } - }); - } -} -exports.InterceptingCall = InterceptingCall; -function getCall(channel, path, options) { - var _a, _b; - const deadline = (_a = options.deadline) !== null && _a !== void 0 ? _a : Infinity; - const host = options.host; - const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null; - const propagateFlags = options.propagate_flags; - const credentials = options.credentials; - const call = channel.createCall(path, deadline, host, parent, propagateFlags); - if (credentials) { - call.setCredentials(credentials); - } - return call; -} -/** - * InterceptingCall implementation that directly owns the underlying Call - * object and handles serialization and deseraizliation. - */ -class BaseInterceptingCall { - constructor(call, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - methodDefinition) { - this.call = call; - this.methodDefinition = methodDefinition; - } - cancelWithStatus(status, details) { - this.call.cancelWithStatus(status, details); - } - getPeer() { - return this.call.getPeer(); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - sendMessageWithContext(context, message) { - let serialized; - try { - serialized = this.methodDefinition.requestSerialize(message); - } - catch (e) { - this.call.cancelWithStatus(constants_1.Status.INTERNAL, `Request message serialization failure: ${(0, error_1.getErrorMessage)(e)}`); - return; - } - this.call.sendMessageWithContext(context, serialized); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - sendMessage(message) { - this.sendMessageWithContext({}, message); - } - start(metadata, interceptingListener) { - let readError = null; - this.call.start(metadata, { - onReceiveMetadata: metadata => { - var _a; - (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, metadata); - }, - onReceiveMessage: message => { - var _a; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - let deserialized; - try { - deserialized = this.methodDefinition.responseDeserialize(message); - } - catch (e) { - readError = { - code: constants_1.Status.INTERNAL, - details: `Response message parsing error: ${(0, error_1.getErrorMessage)(e)}`, - metadata: new metadata_1.Metadata(), - }; - this.call.cancelWithStatus(readError.code, readError.details); - return; - } - (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, deserialized); - }, - onReceiveStatus: status => { - var _a, _b; - if (readError) { - (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, readError); - } - else { - (_b = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(interceptingListener, status); - } - }, - }); - } - startRead() { - this.call.startRead(); - } - halfClose() { - this.call.halfClose(); - } -} -/** - * BaseInterceptingCall with special-cased behavior for methods with unary - * responses. - */ -class BaseUnaryInterceptingCall extends BaseInterceptingCall { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - constructor(call, methodDefinition) { - super(call, methodDefinition); - } - start(metadata, listener) { - var _a, _b; - let receivedMessage = false; - const wrapperListener = { - onReceiveMetadata: (_b = (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(listener)) !== null && _b !== void 0 ? _b : (metadata => { }), - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage: (message) => { - var _a; - receivedMessage = true; - (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, message); - }, - onReceiveStatus: (status) => { - var _a, _b; - if (!receivedMessage) { - (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, null); - } - (_b = listener === null || listener === void 0 ? void 0 : listener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(listener, status); - }, - }; - super.start(metadata, wrapperListener); - this.call.startRead(); - } -} -/** - * BaseInterceptingCall with special-cased behavior for methods with streaming - * responses. - */ -class BaseStreamingInterceptingCall extends BaseInterceptingCall { -} -function getBottomInterceptingCall(channel, options, -// eslint-disable-next-line @typescript-eslint/no-explicit-any -methodDefinition) { - const call = getCall(channel, methodDefinition.path, options); - if (methodDefinition.responseStream) { - return new BaseStreamingInterceptingCall(call, methodDefinition); - } - else { - return new BaseUnaryInterceptingCall(call, methodDefinition); - } -} -function getInterceptingCall(interceptorArgs, -// eslint-disable-next-line @typescript-eslint/no-explicit-any -methodDefinition, options, channel) { - if (interceptorArgs.clientInterceptors.length > 0 && - interceptorArgs.clientInterceptorProviders.length > 0) { - throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as options ' + - 'to the client constructor. Only one of these is allowed.'); - } - if (interceptorArgs.callInterceptors.length > 0 && - interceptorArgs.callInterceptorProviders.length > 0) { - throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as call ' + - 'options. Only one of these is allowed.'); - } - let interceptors = []; - // Interceptors passed to the call override interceptors passed to the client constructor - if (interceptorArgs.callInterceptors.length > 0 || - interceptorArgs.callInterceptorProviders.length > 0) { - interceptors = [] - .concat(interceptorArgs.callInterceptors, interceptorArgs.callInterceptorProviders.map(provider => provider(methodDefinition))) - .filter(interceptor => interceptor); - // Filter out falsy values when providers return nothing - } - else { - interceptors = [] - .concat(interceptorArgs.clientInterceptors, interceptorArgs.clientInterceptorProviders.map(provider => provider(methodDefinition))) - .filter(interceptor => interceptor); - // Filter out falsy values when providers return nothing - } - const interceptorOptions = Object.assign({}, options, { - method_definition: methodDefinition, - }); - /* For each interceptor in the list, the nextCall function passed to it is - * based on the next interceptor in the list, using a nextCall function - * constructed with the following interceptor in the list, and so on. The - * initialValue, which is effectively at the end of the list, is a nextCall - * function that invokes getBottomInterceptingCall, the result of which - * handles (de)serialization and also gets the underlying call from the - * channel. */ - const getCall = interceptors.reduceRight((nextCall, nextInterceptor) => { - return currentOptions => nextInterceptor(currentOptions, nextCall); - }, (finalOptions) => getBottomInterceptingCall(channel, finalOptions, methodDefinition)); - return getCall(interceptorOptions); -} -exports.getInterceptingCall = getInterceptingCall; -//# sourceMappingURL=client-interceptors.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.js.map deleted file mode 100644 index e1dfd73..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/client-interceptors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client-interceptors.js","sourceRoot":"","sources":["../../src/client-interceptors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAAsC;AACtC,qDAY0B;AAC1B,2CAAqC;AAIrC,mCAA0C;AAE1C;;;GAGG;AACH,MAAa,6BAA8B,SAAQ,KAAK;IACtD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,+BAA+B,CAAC;QAC5C,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,6BAA6B,CAAC,CAAC;IAC/D,CAAC;CACF;AAND,sEAMC;AAsCD,MAAa,eAAe;IAA5B;QACU,aAAQ,GAAiC,SAAS,CAAC;QACnD,YAAO,GAAgC,SAAS,CAAC;QACjD,WAAM,GAA+B,SAAS,CAAC;IAwBzD,CAAC;IAtBC,qBAAqB,CAAC,iBAAmC;QACvD,IAAI,CAAC,QAAQ,GAAG,iBAAiB,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,oBAAoB,CAAC,gBAAiC;QACpD,IAAI,CAAC,OAAO,GAAG,gBAAgB,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,mBAAmB,CAAC,eAA+B;QACjD,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK;QACH,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,QAAQ;YAChC,gBAAgB,EAAE,IAAI,CAAC,OAAO;YAC9B,eAAe,EAAE,IAAI,CAAC,MAAM;SAC7B,CAAC;IACJ,CAAC;CACF;AA3BD,0CA2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,EAAE,EAAE,OAAO,EAAE;QACpD,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;IACH;;;;;;kBAMc;IACd,MAAM,OAAO,GAAa,YAAY,CAAC,WAAW,CAChD,CAAC,QAAkB,EAAE,eAA4B,EAAE,EAAE;QACnD,OAAO,cAAc,CAAC,EAAE,CAAC,eAAe,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACrE,CAAC,EACD,CAAC,YAAgC,EAAE,EAAE,CACnC,yBAAyB,CAAC,OAAO,EAAE,YAAY,EAAE,gBAAgB,CAAC,CACrE,CAAC;IACF,OAAO,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACrC,CAAC;AArED,kDAqEC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/client.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/client.d.ts deleted file mode 100644 index a57bfb5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/client.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -/// <reference types="node" /> -import { ClientDuplexStream, ClientReadableStream, ClientUnaryCall, ClientWritableStream, ServiceError, SurfaceCall } from './call'; -import { CallCredentials } from './call-credentials'; -import { Channel } from './channel'; -import { ChannelCredentials } from './channel-credentials'; -import { ChannelOptions } from './channel-options'; -import { Metadata } from './metadata'; -import { ClientMethodDefinition } from './make-client'; -import { Interceptor, InterceptorProvider } from './client-interceptors'; -import { ServerUnaryCall, ServerReadableStream, ServerWritableStream, ServerDuplexStream } from './server-call'; -import { Deadline } from './deadline'; -declare const CHANNEL_SYMBOL: unique symbol; -declare const INTERCEPTOR_SYMBOL: unique symbol; -declare const INTERCEPTOR_PROVIDER_SYMBOL: unique symbol; -declare const CALL_INVOCATION_TRANSFORMER_SYMBOL: unique symbol; -export interface UnaryCallback<ResponseType> { - (err: ServiceError | null, value?: ResponseType): void; -} -export interface CallOptions { - deadline?: Deadline; - host?: string; - parent?: ServerUnaryCall<any, any> | ServerReadableStream<any, any> | ServerWritableStream<any, any> | ServerDuplexStream<any, any>; - propagate_flags?: number; - credentials?: CallCredentials; - interceptors?: Interceptor[]; - interceptor_providers?: InterceptorProvider[]; -} -export interface CallProperties<RequestType, ResponseType> { - argument?: RequestType; - metadata: Metadata; - call: SurfaceCall; - channel: Channel; - methodDefinition: ClientMethodDefinition<RequestType, ResponseType>; - callOptions: CallOptions; - callback?: UnaryCallback<ResponseType>; -} -export interface CallInvocationTransformer { - (callProperties: CallProperties<any, any>): CallProperties<any, any>; -} -export type ClientOptions = Partial<ChannelOptions> & { - channelOverride?: Channel; - channelFactoryOverride?: (address: string, credentials: ChannelCredentials, options: ClientOptions) => Channel; - interceptors?: Interceptor[]; - interceptor_providers?: InterceptorProvider[]; - callInvocationTransformer?: CallInvocationTransformer; -}; -/** - * A generic gRPC client. Primarily useful as a base class for all generated - * clients. - */ -export declare class Client { - private readonly [CHANNEL_SYMBOL]; - private readonly [INTERCEPTOR_SYMBOL]; - private readonly [INTERCEPTOR_PROVIDER_SYMBOL]; - private readonly [CALL_INVOCATION_TRANSFORMER_SYMBOL]?; - constructor(address: string, credentials: ChannelCredentials, options?: ClientOptions); - close(): void; - getChannel(): Channel; - waitForReady(deadline: Deadline, callback: (error?: Error) => void): void; - private checkOptionalUnaryResponseArguments; - makeUnaryRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, argument: RequestType, metadata: Metadata, options: CallOptions, callback: UnaryCallback<ResponseType>): ClientUnaryCall; - makeUnaryRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, argument: RequestType, metadata: Metadata, callback: UnaryCallback<ResponseType>): ClientUnaryCall; - makeUnaryRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, argument: RequestType, options: CallOptions, callback: UnaryCallback<ResponseType>): ClientUnaryCall; - makeUnaryRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, argument: RequestType, callback: UnaryCallback<ResponseType>): ClientUnaryCall; - makeClientStreamRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, metadata: Metadata, options: CallOptions, callback: UnaryCallback<ResponseType>): ClientWritableStream<RequestType>; - makeClientStreamRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, metadata: Metadata, callback: UnaryCallback<ResponseType>): ClientWritableStream<RequestType>; - makeClientStreamRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, options: CallOptions, callback: UnaryCallback<ResponseType>): ClientWritableStream<RequestType>; - makeClientStreamRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, callback: UnaryCallback<ResponseType>): ClientWritableStream<RequestType>; - private checkMetadataAndOptions; - makeServerStreamRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, argument: RequestType, metadata: Metadata, options?: CallOptions): ClientReadableStream<ResponseType>; - makeServerStreamRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, argument: RequestType, options?: CallOptions): ClientReadableStream<ResponseType>; - makeBidiStreamRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, metadata: Metadata, options?: CallOptions): ClientDuplexStream<RequestType, ResponseType>; - makeBidiStreamRequest<RequestType, ResponseType>(method: string, serialize: (value: RequestType) => Buffer, deserialize: (value: Buffer) => ResponseType, options?: CallOptions): ClientDuplexStream<RequestType, ResponseType>; -} -export {}; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/client.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/client.js deleted file mode 100644 index f29ced0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/client.js +++ /dev/null @@ -1,431 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Client = void 0; -const call_1 = require("./call"); -const channel_1 = require("./channel"); -const connectivity_state_1 = require("./connectivity-state"); -const constants_1 = require("./constants"); -const metadata_1 = require("./metadata"); -const client_interceptors_1 = require("./client-interceptors"); -const CHANNEL_SYMBOL = Symbol(); -const INTERCEPTOR_SYMBOL = Symbol(); -const INTERCEPTOR_PROVIDER_SYMBOL = Symbol(); -const CALL_INVOCATION_TRANSFORMER_SYMBOL = Symbol(); -function isFunction(arg) { - return typeof arg === 'function'; -} -function getErrorStackString(error) { - return error.stack.split('\n').slice(1).join('\n'); -} -/** - * A generic gRPC client. Primarily useful as a base class for all generated - * clients. - */ -class Client { - constructor(address, credentials, options = {}) { - var _a, _b; - options = Object.assign({}, options); - this[INTERCEPTOR_SYMBOL] = (_a = options.interceptors) !== null && _a !== void 0 ? _a : []; - delete options.interceptors; - this[INTERCEPTOR_PROVIDER_SYMBOL] = (_b = options.interceptor_providers) !== null && _b !== void 0 ? _b : []; - delete options.interceptor_providers; - if (this[INTERCEPTOR_SYMBOL].length > 0 && - this[INTERCEPTOR_PROVIDER_SYMBOL].length > 0) { - throw new Error('Both interceptors and interceptor_providers were passed as options ' + - 'to the client constructor. Only one of these is allowed.'); - } - this[CALL_INVOCATION_TRANSFORMER_SYMBOL] = - options.callInvocationTransformer; - delete options.callInvocationTransformer; - if (options.channelOverride) { - this[CHANNEL_SYMBOL] = options.channelOverride; - } - else if (options.channelFactoryOverride) { - const channelFactoryOverride = options.channelFactoryOverride; - delete options.channelFactoryOverride; - this[CHANNEL_SYMBOL] = channelFactoryOverride(address, credentials, options); - } - else { - this[CHANNEL_SYMBOL] = new channel_1.ChannelImplementation(address, credentials, options); - } - } - close() { - this[CHANNEL_SYMBOL].close(); - } - getChannel() { - return this[CHANNEL_SYMBOL]; - } - waitForReady(deadline, callback) { - const checkState = (err) => { - if (err) { - callback(new Error('Failed to connect before the deadline')); - return; - } - let newState; - try { - newState = this[CHANNEL_SYMBOL].getConnectivityState(true); - } - catch (e) { - callback(new Error('The channel has been closed')); - return; - } - if (newState === connectivity_state_1.ConnectivityState.READY) { - callback(); - } - else { - try { - this[CHANNEL_SYMBOL].watchConnectivityState(newState, deadline, checkState); - } - catch (e) { - callback(new Error('The channel has been closed')); - } - } - }; - setImmediate(checkState); - } - checkOptionalUnaryResponseArguments(arg1, arg2, arg3) { - if (isFunction(arg1)) { - return { metadata: new metadata_1.Metadata(), options: {}, callback: arg1 }; - } - else if (isFunction(arg2)) { - if (arg1 instanceof metadata_1.Metadata) { - return { metadata: arg1, options: {}, callback: arg2 }; - } - else { - return { metadata: new metadata_1.Metadata(), options: arg1, callback: arg2 }; - } - } - else { - if (!(arg1 instanceof metadata_1.Metadata && - arg2 instanceof Object && - isFunction(arg3))) { - throw new Error('Incorrect arguments passed'); - } - return { metadata: arg1, options: arg2, callback: arg3 }; - } - } - makeUnaryRequest(method, serialize, deserialize, argument, metadata, options, callback) { - var _a, _b; - const checkedArguments = this.checkOptionalUnaryResponseArguments(metadata, options, callback); - const methodDefinition = { - path: method, - requestStream: false, - responseStream: false, - requestSerialize: serialize, - responseDeserialize: deserialize, - }; - let callProperties = { - argument: argument, - metadata: checkedArguments.metadata, - call: new call_1.ClientUnaryCallImpl(), - channel: this[CHANNEL_SYMBOL], - methodDefinition: methodDefinition, - callOptions: checkedArguments.options, - callback: checkedArguments.callback, - }; - if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { - callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); - } - const emitter = callProperties.call; - const interceptorArgs = { - clientInterceptors: this[INTERCEPTOR_SYMBOL], - clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], - callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], - callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], - }; - const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); - /* This needs to happen before the emitter is used. Unfortunately we can't - * enforce this with the type system. We need to construct this emitter - * before calling the CallInvocationTransformer, and we need to create the - * call after that. */ - emitter.call = call; - let responseMessage = null; - let receivedStatus = false; - let callerStackError = new Error(); - call.start(callProperties.metadata, { - onReceiveMetadata: metadata => { - emitter.emit('metadata', metadata); - }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage(message) { - if (responseMessage !== null) { - call.cancelWithStatus(constants_1.Status.INTERNAL, 'Too many responses received'); - } - responseMessage = message; - }, - onReceiveStatus(status) { - if (receivedStatus) { - return; - } - receivedStatus = true; - if (status.code === constants_1.Status.OK) { - if (responseMessage === null) { - const callerStack = getErrorStackString(callerStackError); - callProperties.callback((0, call_1.callErrorFromStatus)({ - code: constants_1.Status.INTERNAL, - details: 'No message received', - metadata: status.metadata, - }, callerStack)); - } - else { - callProperties.callback(null, responseMessage); - } - } - else { - const callerStack = getErrorStackString(callerStackError); - callProperties.callback((0, call_1.callErrorFromStatus)(status, callerStack)); - } - /* Avoid retaining the callerStackError object in the call context of - * the status event handler. */ - callerStackError = null; - emitter.emit('status', status); - }, - }); - call.sendMessage(argument); - call.halfClose(); - return emitter; - } - makeClientStreamRequest(method, serialize, deserialize, metadata, options, callback) { - var _a, _b; - const checkedArguments = this.checkOptionalUnaryResponseArguments(metadata, options, callback); - const methodDefinition = { - path: method, - requestStream: true, - responseStream: false, - requestSerialize: serialize, - responseDeserialize: deserialize, - }; - let callProperties = { - metadata: checkedArguments.metadata, - call: new call_1.ClientWritableStreamImpl(serialize), - channel: this[CHANNEL_SYMBOL], - methodDefinition: methodDefinition, - callOptions: checkedArguments.options, - callback: checkedArguments.callback, - }; - if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { - callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); - } - const emitter = callProperties.call; - const interceptorArgs = { - clientInterceptors: this[INTERCEPTOR_SYMBOL], - clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], - callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], - callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], - }; - const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); - /* This needs to happen before the emitter is used. Unfortunately we can't - * enforce this with the type system. We need to construct this emitter - * before calling the CallInvocationTransformer, and we need to create the - * call after that. */ - emitter.call = call; - let responseMessage = null; - let receivedStatus = false; - let callerStackError = new Error(); - call.start(callProperties.metadata, { - onReceiveMetadata: metadata => { - emitter.emit('metadata', metadata); - }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage(message) { - if (responseMessage !== null) { - call.cancelWithStatus(constants_1.Status.INTERNAL, 'Too many responses received'); - } - responseMessage = message; - }, - onReceiveStatus(status) { - if (receivedStatus) { - return; - } - receivedStatus = true; - if (status.code === constants_1.Status.OK) { - if (responseMessage === null) { - const callerStack = getErrorStackString(callerStackError); - callProperties.callback((0, call_1.callErrorFromStatus)({ - code: constants_1.Status.INTERNAL, - details: 'No message received', - metadata: status.metadata, - }, callerStack)); - } - else { - callProperties.callback(null, responseMessage); - } - } - else { - const callerStack = getErrorStackString(callerStackError); - callProperties.callback((0, call_1.callErrorFromStatus)(status, callerStack)); - } - /* Avoid retaining the callerStackError object in the call context of - * the status event handler. */ - callerStackError = null; - emitter.emit('status', status); - }, - }); - return emitter; - } - checkMetadataAndOptions(arg1, arg2) { - let metadata; - let options; - if (arg1 instanceof metadata_1.Metadata) { - metadata = arg1; - if (arg2) { - options = arg2; - } - else { - options = {}; - } - } - else { - if (arg1) { - options = arg1; - } - else { - options = {}; - } - metadata = new metadata_1.Metadata(); - } - return { metadata, options }; - } - makeServerStreamRequest(method, serialize, deserialize, argument, metadata, options) { - var _a, _b; - const checkedArguments = this.checkMetadataAndOptions(metadata, options); - const methodDefinition = { - path: method, - requestStream: false, - responseStream: true, - requestSerialize: serialize, - responseDeserialize: deserialize, - }; - let callProperties = { - argument: argument, - metadata: checkedArguments.metadata, - call: new call_1.ClientReadableStreamImpl(deserialize), - channel: this[CHANNEL_SYMBOL], - methodDefinition: methodDefinition, - callOptions: checkedArguments.options, - }; - if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { - callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); - } - const stream = callProperties.call; - const interceptorArgs = { - clientInterceptors: this[INTERCEPTOR_SYMBOL], - clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], - callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], - callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], - }; - const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); - /* This needs to happen before the emitter is used. Unfortunately we can't - * enforce this with the type system. We need to construct this emitter - * before calling the CallInvocationTransformer, and we need to create the - * call after that. */ - stream.call = call; - let receivedStatus = false; - let callerStackError = new Error(); - call.start(callProperties.metadata, { - onReceiveMetadata(metadata) { - stream.emit('metadata', metadata); - }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage(message) { - stream.push(message); - }, - onReceiveStatus(status) { - if (receivedStatus) { - return; - } - receivedStatus = true; - stream.push(null); - if (status.code !== constants_1.Status.OK) { - const callerStack = getErrorStackString(callerStackError); - stream.emit('error', (0, call_1.callErrorFromStatus)(status, callerStack)); - } - /* Avoid retaining the callerStackError object in the call context of - * the status event handler. */ - callerStackError = null; - stream.emit('status', status); - }, - }); - call.sendMessage(argument); - call.halfClose(); - return stream; - } - makeBidiStreamRequest(method, serialize, deserialize, metadata, options) { - var _a, _b; - const checkedArguments = this.checkMetadataAndOptions(metadata, options); - const methodDefinition = { - path: method, - requestStream: true, - responseStream: true, - requestSerialize: serialize, - responseDeserialize: deserialize, - }; - let callProperties = { - metadata: checkedArguments.metadata, - call: new call_1.ClientDuplexStreamImpl(serialize, deserialize), - channel: this[CHANNEL_SYMBOL], - methodDefinition: methodDefinition, - callOptions: checkedArguments.options, - }; - if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { - callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); - } - const stream = callProperties.call; - const interceptorArgs = { - clientInterceptors: this[INTERCEPTOR_SYMBOL], - clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], - callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], - callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], - }; - const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); - /* This needs to happen before the emitter is used. Unfortunately we can't - * enforce this with the type system. We need to construct this emitter - * before calling the CallInvocationTransformer, and we need to create the - * call after that. */ - stream.call = call; - let receivedStatus = false; - let callerStackError = new Error(); - call.start(callProperties.metadata, { - onReceiveMetadata(metadata) { - stream.emit('metadata', metadata); - }, - onReceiveMessage(message) { - stream.push(message); - }, - onReceiveStatus(status) { - if (receivedStatus) { - return; - } - receivedStatus = true; - stream.push(null); - if (status.code !== constants_1.Status.OK) { - const callerStack = getErrorStackString(callerStackError); - stream.emit('error', (0, call_1.callErrorFromStatus)(status, callerStack)); - } - /* Avoid retaining the callerStackError object in the call context of - * the status event handler. */ - callerStackError = null; - stream.emit('status', status); - }, - }); - return stream; - } -} -exports.Client = Client; -//# sourceMappingURL=client.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/client.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/client.js.map deleted file mode 100644 index 3578015..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/client.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,iCAYgB;AAGhB,uCAA2D;AAC3D,6DAAyD;AAGzD,2CAAqC;AACrC,yCAAsC;AAEtC,+DAM+B;AAS/B,MAAM,cAAc,GAAG,MAAM,EAAE,CAAC;AAChC,MAAM,kBAAkB,GAAG,MAAM,EAAE,CAAC;AACpC,MAAM,2BAA2B,GAAG,MAAM,EAAE,CAAC;AAC7C,MAAM,kCAAkC,GAAG,MAAM,EAAE,CAAC;AAEpD,SAAS,UAAU,CACjB,GAAqE;IAErE,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC;AACnC,CAAC;AAgDD,SAAS,mBAAmB,CAAC,KAAY;IACvC,OAAO,KAAK,CAAC,KAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAED;;;GAGG;AACH,MAAa,MAAM;IAKjB,YACE,OAAe,EACf,WAA+B,EAC/B,UAAyB,EAAE;;QAE3B,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,kBAAkB,CAAC,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,EAAE,CAAC;QACtD,OAAO,OAAO,CAAC,YAAY,CAAC;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modules/@grpc/grpc-js/build/src/compression-algorithms.d.ts deleted file mode 100644 index 555b222..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-algorithms.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare enum CompressionAlgorithms { - identity = 0, - deflate = 1, - gzip = 2 -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js deleted file mode 100644 index 15a4f00..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CompressionAlgorithms = void 0; -var CompressionAlgorithms; -(function (CompressionAlgorithms) { - CompressionAlgorithms[CompressionAlgorithms["identity"] = 0] = "identity"; - CompressionAlgorithms[CompressionAlgorithms["deflate"] = 1] = "deflate"; - CompressionAlgorithms[CompressionAlgorithms["gzip"] = 2] = "gzip"; -})(CompressionAlgorithms || (exports.CompressionAlgorithms = CompressionAlgorithms = {})); -//# sourceMappingURL=compression-algorithms.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js.map deleted file mode 100644 index 760772f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compression-algorithms.js","sourceRoot":"","sources":["../../src/compression-algorithms.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,yEAAY,CAAA;IACZ,uEAAW,CAAA;IACX,iEAAQ,CAAA;AACV,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.d.ts deleted file mode 100644 index 1b6b48f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// <reference types="node" /> -import { WriteObject } from './call-interface'; -import { Channel } from './channel'; -import { ChannelOptions } from './channel-options'; -import { BaseFilter, Filter, FilterFactory } from './filter'; -import { Metadata } from './metadata'; -type SharedCompressionFilterConfig = { - serverSupportedEncodingHeader?: string; -}; -export declare class CompressionFilter extends BaseFilter implements Filter { - private sharedFilterConfig; - private sendCompression; - private receiveCompression; - private currentCompressionAlgorithm; - private maxReceiveMessageLength; - constructor(channelOptions: ChannelOptions, sharedFilterConfig: SharedCompressionFilterConfig); - sendMetadata(metadata: Promise<Metadata>): Promise<Metadata>; - receiveMetadata(metadata: Metadata): Metadata; - sendMessage(message: Promise<WriteObject>): Promise<WriteObject>; - receiveMessage(message: Promise<Buffer>): Promise<Buffer>; -} -export declare class CompressionFilterFactory implements FilterFactory<CompressionFilter> { - private readonly options; - private sharedFilterConfig; - constructor(channel: Channel, options: ChannelOptions); - createFilter(): CompressionFilter; -} -export {}; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.js deleted file mode 100644 index 41c3c37..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.js +++ /dev/null @@ -1,288 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CompressionFilterFactory = exports.CompressionFilter = void 0; -const zlib = require("zlib"); -const compression_algorithms_1 = require("./compression-algorithms"); -const constants_1 = require("./constants"); -const filter_1 = require("./filter"); -const logging = require("./logging"); -const isCompressionAlgorithmKey = (key) => { - return (typeof key === 'number' && typeof compression_algorithms_1.CompressionAlgorithms[key] === 'string'); -}; -class CompressionHandler { - /** - * @param message Raw uncompressed message bytes - * @param compress Indicates whether the message should be compressed - * @return Framed message, compressed if applicable - */ - async writeMessage(message, compress) { - let messageBuffer = message; - if (compress) { - messageBuffer = await this.compressMessage(messageBuffer); - } - const output = Buffer.allocUnsafe(messageBuffer.length + 5); - output.writeUInt8(compress ? 1 : 0, 0); - output.writeUInt32BE(messageBuffer.length, 1); - messageBuffer.copy(output, 5); - return output; - } - /** - * @param data Framed message, possibly compressed - * @return Uncompressed message - */ - async readMessage(data) { - const compressed = data.readUInt8(0) === 1; - let messageBuffer = data.slice(5); - if (compressed) { - messageBuffer = await this.decompressMessage(messageBuffer); - } - return messageBuffer; - } -} -class IdentityHandler extends CompressionHandler { - async compressMessage(message) { - return message; - } - async writeMessage(message, compress) { - const output = Buffer.allocUnsafe(message.length + 5); - /* With "identity" compression, messages should always be marked as - * uncompressed */ - output.writeUInt8(0, 0); - output.writeUInt32BE(message.length, 1); - message.copy(output, 5); - return output; - } - decompressMessage(message) { - return Promise.reject(new Error('Received compressed message but "grpc-encoding" header was identity')); - } -} -class DeflateHandler extends CompressionHandler { - constructor(maxRecvMessageLength) { - super(); - this.maxRecvMessageLength = maxRecvMessageLength; - } - compressMessage(message) { - return new Promise((resolve, reject) => { - zlib.deflate(message, (err, output) => { - if (err) { - reject(err); - } - else { - resolve(output); - } - }); - }); - } - decompressMessage(message) { - return new Promise((resolve, reject) => { - let totalLength = 0; - const messageParts = []; - const decompresser = zlib.createInflate(); - decompresser.on('data', (chunk) => { - messageParts.push(chunk); - totalLength += chunk.byteLength; - if (this.maxRecvMessageLength !== -1 && totalLength > this.maxRecvMessageLength) { - decompresser.destroy(); - reject({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Received message that decompresses to a size larger than ${this.maxRecvMessageLength}` - }); - } - }); - decompresser.on('end', () => { - resolve(Buffer.concat(messageParts)); - }); - decompresser.write(message); - decompresser.end(); - }); - } -} -class GzipHandler extends CompressionHandler { - constructor(maxRecvMessageLength) { - super(); - this.maxRecvMessageLength = maxRecvMessageLength; - } - compressMessage(message) { - return new Promise((resolve, reject) => { - zlib.gzip(message, (err, output) => { - if (err) { - reject(err); - } - else { - resolve(output); - } - }); - }); - } - decompressMessage(message) { - return new Promise((resolve, reject) => { - let totalLength = 0; - const messageParts = []; - const decompresser = zlib.createGunzip(); - decompresser.on('data', (chunk) => { - messageParts.push(chunk); - totalLength += chunk.byteLength; - if (this.maxRecvMessageLength !== -1 && totalLength > this.maxRecvMessageLength) { - decompresser.destroy(); - reject({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Received message that decompresses to a size larger than ${this.maxRecvMessageLength}` - }); - } - }); - decompresser.on('end', () => { - resolve(Buffer.concat(messageParts)); - }); - decompresser.write(message); - decompresser.end(); - }); - } -} -class UnknownHandler extends CompressionHandler { - constructor(compressionName) { - super(); - this.compressionName = compressionName; - } - compressMessage(message) { - return Promise.reject(new Error(`Received message compressed with unsupported compression method ${this.compressionName}`)); - } - decompressMessage(message) { - // This should be unreachable - return Promise.reject(new Error(`Compression method not supported: ${this.compressionName}`)); - } -} -function getCompressionHandler(compressionName, maxReceiveMessageSize) { - switch (compressionName) { - case 'identity': - return new IdentityHandler(); - case 'deflate': - return new DeflateHandler(maxReceiveMessageSize); - case 'gzip': - return new GzipHandler(maxReceiveMessageSize); - default: - return new UnknownHandler(compressionName); - } -} -class CompressionFilter extends filter_1.BaseFilter { - constructor(channelOptions, sharedFilterConfig) { - var _a, _b; - super(); - this.sharedFilterConfig = sharedFilterConfig; - this.sendCompression = new IdentityHandler(); - this.receiveCompression = new IdentityHandler(); - this.currentCompressionAlgorithm = 'identity'; - const compressionAlgorithmKey = channelOptions['grpc.default_compression_algorithm']; - this.maxReceiveMessageLength = (_a = channelOptions['grpc.max_receive_message_length']) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; - if (compressionAlgorithmKey !== undefined) { - if (isCompressionAlgorithmKey(compressionAlgorithmKey)) { - const clientSelectedEncoding = compression_algorithms_1.CompressionAlgorithms[compressionAlgorithmKey]; - const serverSupportedEncodings = (_b = sharedFilterConfig.serverSupportedEncodingHeader) === null || _b === void 0 ? void 0 : _b.split(','); - /** - * There are two possible situations here: - * 1) We don't have any info yet from the server about what compression it supports - * In that case we should just use what the client tells us to use - * 2) We've previously received a response from the server including a grpc-accept-encoding header - * In that case we only want to use the encoding chosen by the client if the server supports it - */ - if (!serverSupportedEncodings || - serverSupportedEncodings.includes(clientSelectedEncoding)) { - this.currentCompressionAlgorithm = clientSelectedEncoding; - this.sendCompression = getCompressionHandler(this.currentCompressionAlgorithm, -1); - } - } - else { - logging.log(constants_1.LogVerbosity.ERROR, `Invalid value provided for grpc.default_compression_algorithm option: ${compressionAlgorithmKey}`); - } - } - } - async sendMetadata(metadata) { - const headers = await metadata; - headers.set('grpc-accept-encoding', 'identity,deflate,gzip'); - headers.set('accept-encoding', 'identity'); - // No need to send the header if it's "identity" - behavior is identical; save the bandwidth - if (this.currentCompressionAlgorithm === 'identity') { - headers.remove('grpc-encoding'); - } - else { - headers.set('grpc-encoding', this.currentCompressionAlgorithm); - } - return headers; - } - receiveMetadata(metadata) { - const receiveEncoding = metadata.get('grpc-encoding'); - if (receiveEncoding.length > 0) { - const encoding = receiveEncoding[0]; - if (typeof encoding === 'string') { - this.receiveCompression = getCompressionHandler(encoding, this.maxReceiveMessageLength); - } - } - metadata.remove('grpc-encoding'); - /* Check to see if the compression we're using to send messages is supported by the server - * If not, reset the sendCompression filter and have it use the default IdentityHandler */ - const serverSupportedEncodingsHeader = metadata.get('grpc-accept-encoding')[0]; - if (serverSupportedEncodingsHeader) { - this.sharedFilterConfig.serverSupportedEncodingHeader = - serverSupportedEncodingsHeader; - const serverSupportedEncodings = serverSupportedEncodingsHeader.split(','); - if (!serverSupportedEncodings.includes(this.currentCompressionAlgorithm)) { - this.sendCompression = new IdentityHandler(); - this.currentCompressionAlgorithm = 'identity'; - } - } - metadata.remove('grpc-accept-encoding'); - return metadata; - } - async sendMessage(message) { - var _a; - /* This filter is special. The input message is the bare message bytes, - * and the output is a framed and possibly compressed message. For this - * reason, this filter should be at the bottom of the filter stack */ - const resolvedMessage = await message; - let compress; - if (this.sendCompression instanceof IdentityHandler) { - compress = false; - } - else { - compress = (((_a = resolvedMessage.flags) !== null && _a !== void 0 ? _a : 0) & 2 /* WriteFlags.NoCompress */) === 0; - } - return { - message: await this.sendCompression.writeMessage(resolvedMessage.message, compress), - flags: resolvedMessage.flags, - }; - } - async receiveMessage(message) { - /* This filter is also special. The input message is framed and possibly - * compressed, and the output message is deframed and uncompressed. So - * this is another reason that this filter should be at the bottom of the - * filter stack. */ - return this.receiveCompression.readMessage(await message); - } -} -exports.CompressionFilter = CompressionFilter; -class CompressionFilterFactory { - constructor(channel, options) { - this.options = options; - this.sharedFilterConfig = {}; - } - createFilter() { - return new CompressionFilter(this.options, this.sharedFilterConfig); - } -} -exports.CompressionFilterFactory = CompressionFilterFactory; -//# sourceMappingURL=compression-filter.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.js.map deleted file mode 100644 index 9a9b1af..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/compression-filter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compression-filter.js","sourceRoot":"","sources":["../../src/compression-filter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,6BAA6B;AAK7B,qEAAiE;AACjE,2CAAuF;AACvF,qCAA6D;AAC7D,qCAAqC;AAGrC,MAAM,yBAAyB,GAAG,CAChC,GAAW,EACmB,EAAE;IAChC,OAAO,CACL,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,8CAAqB,CAAC,GAAG,CAAC,KAAK,QAAQ,CAC1E,CAAC;AACJ,CAAC,CAAC;AAQF,MAAe,kBAAkB;IAG/B;;;;OAIG;IACH,KAAK,CAAC,YAAY,CAAC,OAAe,EAAE,QAAiB;QACnD,IAAI,aAAa,GAAG,OAAO,CAAC;QAC5B,IAAI,QAAQ,EAAE,CAAC;YACb,aAAa,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QAC5D,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACvC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAC9C,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAC9B,OAAO,MAAM,CAAC;IAChB,CAAC;IACD;;;OAGG;IACH,KAAK,CAAC,WAAW,CAAC,IAAY;QAC5B,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAClC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,CAC9C,eAAe,CAAC,OAAO,EACvB,QAAQ,CACT;YACD,KAAK,EAAE,eAAe,CAAC,KAAK;SAC7B,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,OAAwB;QAC3C;;;2BAGmB;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,MAAM,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AA3HD,8CA2HC;AAED,MAAa,wBAAwB;IAInC,YAAY,OAAgB,EAAmB,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;QAD9D,uBAAkB,GAAkC,EAAE,CAAC;IACU,CAAC;IAC1E,YAAY;QACV,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACtE,CAAC;CACF;AARD,4DAQC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.d.ts deleted file mode 100644 index 048ea39..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare enum ConnectivityState { - IDLE = 0, - CONNECTING = 1, - READY = 2, - TRANSIENT_FAILURE = 3, - SHUTDOWN = 4 -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.js deleted file mode 100644 index c8540b0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ConnectivityState = void 0; -var ConnectivityState; -(function (ConnectivityState) { - ConnectivityState[ConnectivityState["IDLE"] = 0] = "IDLE"; - ConnectivityState[ConnectivityState["CONNECTING"] = 1] = "CONNECTING"; - ConnectivityState[ConnectivityState["READY"] = 2] = "READY"; - ConnectivityState[ConnectivityState["TRANSIENT_FAILURE"] = 3] = "TRANSIENT_FAILURE"; - ConnectivityState[ConnectivityState["SHUTDOWN"] = 4] = "SHUTDOWN"; -})(ConnectivityState || (exports.ConnectivityState = ConnectivityState = {})); -//# sourceMappingURL=connectivity-state.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.js.map deleted file mode 100644 index 1afc24d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/connectivity-state.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connectivity-state.js","sourceRoot":"","sources":["../../src/connectivity-state.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,yDAAI,CAAA;IACJ,qEAAU,CAAA;IACV,2DAAK,CAAA;IACL,mFAAiB,CAAA;IACjB,iEAAQ,CAAA;AACV,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.d.ts deleted file mode 100644 index 43ec358..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export declare enum Status { - OK = 0, - CANCELLED = 1, - UNKNOWN = 2, - INVALID_ARGUMENT = 3, - DEADLINE_EXCEEDED = 4, - NOT_FOUND = 5, - ALREADY_EXISTS = 6, - PERMISSION_DENIED = 7, - RESOURCE_EXHAUSTED = 8, - FAILED_PRECONDITION = 9, - ABORTED = 10, - OUT_OF_RANGE = 11, - UNIMPLEMENTED = 12, - INTERNAL = 13, - UNAVAILABLE = 14, - DATA_LOSS = 15, - UNAUTHENTICATED = 16 -} -export declare enum LogVerbosity { - DEBUG = 0, - INFO = 1, - ERROR = 2, - NONE = 3 -} -/** - * NOTE: This enum is not currently used in any implemented API in this - * library. It is included only for type parity with the other implementation. - */ -export declare enum Propagate { - DEADLINE = 1, - CENSUS_STATS_CONTEXT = 2, - CENSUS_TRACING_CONTEXT = 4, - CANCELLATION = 8, - DEFAULTS = 65535 -} -export declare const DEFAULT_MAX_SEND_MESSAGE_LENGTH = -1; -export declare const DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH: number; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.js deleted file mode 100644 index 6e6b8ed..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = exports.Propagate = exports.LogVerbosity = exports.Status = void 0; -var Status; -(function (Status) { - Status[Status["OK"] = 0] = "OK"; - Status[Status["CANCELLED"] = 1] = "CANCELLED"; - Status[Status["UNKNOWN"] = 2] = "UNKNOWN"; - Status[Status["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT"; - Status[Status["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED"; - Status[Status["NOT_FOUND"] = 5] = "NOT_FOUND"; - Status[Status["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS"; - Status[Status["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED"; - Status[Status["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED"; - Status[Status["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION"; - Status[Status["ABORTED"] = 10] = "ABORTED"; - Status[Status["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE"; - Status[Status["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED"; - Status[Status["INTERNAL"] = 13] = "INTERNAL"; - Status[Status["UNAVAILABLE"] = 14] = "UNAVAILABLE"; - Status[Status["DATA_LOSS"] = 15] = "DATA_LOSS"; - Status[Status["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED"; -})(Status || (exports.Status = Status = {})); -var LogVerbosity; -(function (LogVerbosity) { - LogVerbosity[LogVerbosity["DEBUG"] = 0] = "DEBUG"; - LogVerbosity[LogVerbosity["INFO"] = 1] = "INFO"; - LogVerbosity[LogVerbosity["ERROR"] = 2] = "ERROR"; - LogVerbosity[LogVerbosity["NONE"] = 3] = "NONE"; -})(LogVerbosity || (exports.LogVerbosity = LogVerbosity = {})); -/** - * NOTE: This enum is not currently used in any implemented API in this - * library. It is included only for type parity with the other implementation. - */ -var Propagate; -(function (Propagate) { - Propagate[Propagate["DEADLINE"] = 1] = "DEADLINE"; - Propagate[Propagate["CENSUS_STATS_CONTEXT"] = 2] = "CENSUS_STATS_CONTEXT"; - Propagate[Propagate["CENSUS_TRACING_CONTEXT"] = 4] = "CENSUS_TRACING_CONTEXT"; - Propagate[Propagate["CANCELLATION"] = 8] = "CANCELLATION"; - // https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/propagation_bits.h#L43 - Propagate[Propagate["DEFAULTS"] = 65535] = "DEFAULTS"; -})(Propagate || (exports.Propagate = Propagate = {})); -// -1 means unlimited -exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = -1; -// 4 MB default -exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = 4 * 1024 * 1024; -//# sourceMappingURL=constants.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.js.map deleted file mode 100644 index a3c5c87..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,IAAY,MAkBX;AAlBD,WAAY,MAAM;IAChB,+BAAM,CAAA;IACN,6CAAS,CAAA;IACT,yCAAO,CAAA;IACP,2DAAgB,CAAA;IAChB,6DAAiB,CAAA;IACjB,6CAAS,CAAA;IACT,uDAAc,CAAA;IACd,6DAAiB,CAAA;IACjB,+DAAkB,CAAA;IAClB,iEAAmB,CAAA;IACnB,0CAAO,CAAA;IACP,oDAAY,CAAA;IACZ,sDAAa,CAAA;IACb,4CAAQ,CAAA;IACR,kDAAW,CAAA;IACX,8CAAS,CAAA;IACT,0DAAe,CAAA;AACjB,CAAC,EAlBW,MAAM,sBAAN,MAAM,QAkBjB;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iDAAS,CAAA;IACT,+CAAI,CAAA;IACJ,iDAAK,CAAA;IACL,+CAAI,CAAA;AACN,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED;;;GAGG;AACH,IAAY,SAWX;AAXD,WAAY,SAAS;IACnB,iDAAY,CAAA;IACZ,yEAAwB,CAAA;IACxB,6EAA0B,CAAA;IAC1B,yDAAgB,CAAA;IAChB,4FAA4F;IAC5F,qDAIwB,CAAA;AAC1B,CAAC,EAXW,SAAS,yBAAT,SAAS,QAWpB;AAED,qBAAqB;AACR,QAAA,+BAA+B,GAAG,CAAC,CAAC,CAAC;AAElD,eAAe;AACF,QAAA,kCAAkC,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.d.ts deleted file mode 100644 index a137cab..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Status } from './constants'; -export declare function restrictControlPlaneStatusCode(code: Status, details: string): { - code: Status; - details: string; -}; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.js deleted file mode 100644 index dc41cb2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.restrictControlPlaneStatusCode = void 0; -const constants_1 = require("./constants"); -const INAPPROPRIATE_CONTROL_PLANE_CODES = [ - constants_1.Status.OK, - constants_1.Status.INVALID_ARGUMENT, - constants_1.Status.NOT_FOUND, - constants_1.Status.ALREADY_EXISTS, - constants_1.Status.FAILED_PRECONDITION, - constants_1.Status.ABORTED, - constants_1.Status.OUT_OF_RANGE, - constants_1.Status.DATA_LOSS, -]; -function restrictControlPlaneStatusCode(code, details) { - if (INAPPROPRIATE_CONTROL_PLANE_CODES.includes(code)) { - return { - code: constants_1.Status.INTERNAL, - details: `Invalid status from control plane: ${code} ${constants_1.Status[code]} ${details}`, - }; - } - else { - return { code, details }; - } -} -exports.restrictControlPlaneStatusCode = restrictControlPlaneStatusCode; -//# sourceMappingURL=control-plane-status.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.js.map deleted file mode 100644 index 297ca91..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/control-plane-status.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"control-plane-status.js","sourceRoot":"","sources":["../../src/control-plane-status.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,2CAAqC;AAErC,MAAM,iCAAiC,GAAa;IAClD,kBAAM,CAAC,EAAE;IACT,kBAAM,CAAC,gBAAgB;IACvB,kBAAM,CAAC,SAAS;IAChB,kBAAM,CAAC,cAAc;IACrB,kBAAM,CAAC,mBAAmB;IAC1B,kBAAM,CAAC,OAAO;IACd,kBAAM,CAAC,YAAY;IACnB,kBAAM,CAAC,SAAS;CACjB,CAAC;AAEF,SAAgB,8BAA8B,CAC5C,IAAY,EACZ,OAAe;IAEf,IAAI,iCAAiC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACrD,OAAO;YACL,IAAI,EAAE,kBAAM,CAAC,QAAQ;YACrB,OAAO,EAAE,sCAAsC,IAAI,IAAI,kBAAM,CAAC,IAAI,CAAC,IAAI,OAAO,EAAE;SACjF,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC3B,CAAC;AACH,CAAC;AAZD,wEAYC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts deleted file mode 100644 index 08af4ba..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export type Deadline = Date | number; -export declare function minDeadline(...deadlineList: Deadline[]): Deadline; -export declare function getDeadlineTimeoutString(deadline: Deadline): string; -/** - * Get the timeout value that should be passed to setTimeout now for the timer - * to end at the deadline. For any deadline before now, the timer should end - * immediately, represented by a value of 0. For any deadline more than - * MAX_TIMEOUT_TIME milliseconds in the future, a timer cannot be set that will - * end at that time, so it is treated as infinitely far in the future. - * @param deadline - * @returns - */ -export declare function getRelativeTimeout(deadline: Deadline): number; -export declare function deadlineToString(deadline: Deadline): string; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.js deleted file mode 100644 index f51c43c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.deadlineToString = exports.getRelativeTimeout = exports.getDeadlineTimeoutString = exports.minDeadline = void 0; -function minDeadline(...deadlineList) { - let minValue = Infinity; - for (const deadline of deadlineList) { - const deadlineMsecs = deadline instanceof Date ? deadline.getTime() : deadline; - if (deadlineMsecs < minValue) { - minValue = deadlineMsecs; - } - } - return minValue; -} -exports.minDeadline = minDeadline; -const units = [ - ['m', 1], - ['S', 1000], - ['M', 60 * 1000], - ['H', 60 * 60 * 1000], -]; -function getDeadlineTimeoutString(deadline) { - const now = new Date().getTime(); - if (deadline instanceof Date) { - deadline = deadline.getTime(); - } - const timeoutMs = Math.max(deadline - now, 0); - for (const [unit, factor] of units) { - const amount = timeoutMs / factor; - if (amount < 1e8) { - return String(Math.ceil(amount)) + unit; - } - } - throw new Error('Deadline is too far in the future'); -} -exports.getDeadlineTimeoutString = getDeadlineTimeoutString; -/** - * See https://nodejs.org/api/timers.html#settimeoutcallback-delay-args - * In particular, "When delay is larger than 2147483647 or less than 1, the - * delay will be set to 1. Non-integer delays are truncated to an integer." - * This number of milliseconds is almost 25 days. - */ -const MAX_TIMEOUT_TIME = 2147483647; -/** - * Get the timeout value that should be passed to setTimeout now for the timer - * to end at the deadline. For any deadline before now, the timer should end - * immediately, represented by a value of 0. For any deadline more than - * MAX_TIMEOUT_TIME milliseconds in the future, a timer cannot be set that will - * end at that time, so it is treated as infinitely far in the future. - * @param deadline - * @returns - */ -function getRelativeTimeout(deadline) { - const deadlineMs = deadline instanceof Date ? deadline.getTime() : deadline; - const now = new Date().getTime(); - const timeout = deadlineMs - now; - if (timeout < 0) { - return 0; - } - else if (timeout > MAX_TIMEOUT_TIME) { - return Infinity; - } - else { - return timeout; - } -} -exports.getRelativeTimeout = getRelativeTimeout; -function deadlineToString(deadline) { - if (deadline instanceof Date) { - return deadline.toISOString(); - } - else { - const dateDeadline = new Date(deadline); - if (Number.isNaN(dateDeadline.getTime())) { - return '' + deadline; - } - else { - return dateDeadline.toISOString(); - } - } -} -exports.deadlineToString = deadlineToString; -//# sourceMappingURL=deadline.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.js.map deleted file mode 100644 index c9a47b3..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/deadline.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deadline.js","sourceRoot":"","sources":["../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AAC;IACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;AACvD,CAAC;AAbD,4DAaC;AAED;;;;;GAKG;AACH,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAEpC;;;;;;;;GAQG;AACH,SAAgB,kBAAkB,CAAC,QAAkB;IACnD,MAAM,UAAU,GAAG,QAAQ,YAAY,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC5E,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,UAAU,GAAG,GAAG,CAAC;IACjC,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;QAChB,OAAO,CAAC,CAAC;IACX,CAAC;SAAM,IAAI,OAAO,GAAG,gBAAgB,EAAE,CAAC;QACtC,OAAO,QAAQ,CAAC;IAClB,CAAC;SAAM,CAAC;QACN,OAAO,OAAO,CAAC;IACjB,CAAC;AACH,CAAC;AAXD,gDAWC;AAED,SAAgB,gBAAgB,CAAC,QAAkB;IACjD,IAAI,QAAQ,YAAY,IAAI,EAAE,CAAC;QAC7B,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;SAAM,CAAC;QACN,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxC,IAAI,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;YACzC,OAAO,EAAE,GAAG,QAAQ,CAAC;QACvB,CAAC;aAAM,CAAC;YACN,OAAO,YAAY,CAAC,WAAW,EAAE,CAAC;QACpC,CAAC;IACH,CAAC;AACH,CAAC;AAXD,4CAWC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.d.ts deleted file mode 100644 index 923159b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface Duration { - seconds: number; - nanos: number; -} -export declare function msToDuration(millis: number): Duration; -export declare function durationToMs(duration: Duration): number; -export declare function isDuration(value: any): value is Duration; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.js deleted file mode 100644 index 3ac1d21..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isDuration = exports.durationToMs = exports.msToDuration = void 0; -function msToDuration(millis) { - return { - seconds: (millis / 1000) | 0, - nanos: ((millis % 1000) * 1000000) | 0, - }; -} -exports.msToDuration = msToDuration; -function durationToMs(duration) { - return (duration.seconds * 1000 + duration.nanos / 1000000) | 0; -} -exports.durationToMs = durationToMs; -function isDuration(value) { - return typeof value.seconds === 'number' && typeof value.nanos === 'number'; -} -exports.isDuration = isDuration; -//# sourceMappingURL=duration.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.js.map deleted file mode 100644 index 3be3631..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/duration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"duration.js","sourceRoot":"","sources":["../../src/duration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAOH,SAAgB,YAAY,CAAC,MAAc;IACzC,OAAO;QACL,OAAO,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC;QAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,OAAS,CAAC,GAAG,CAAC;KACzC,CAAC;AACJ,CAAC;AALD,oCAKC;AAED,SAAgB,YAAY,CAAC,QAAkB;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO,GAAG,IAAI,GAAG,QAAQ,CAAC,KAAK,GAAG,OAAS,CAAC,GAAG,CAAC,CAAC;AACpE,CAAC;AAFD,oCAEC;AAED,SAAgB,UAAU,CAAC,KAAU;IACnC,OAAO,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC;AAC9E,CAAC;AAFD,gCAEC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/error.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/error.d.ts deleted file mode 100644 index fd4cc77..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/error.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function getErrorMessage(error: unknown): string; -export declare function getErrorCode(error: unknown): number | null; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/error.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/error.js deleted file mode 100644 index c842333..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/error.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getErrorCode = exports.getErrorMessage = void 0; -function getErrorMessage(error) { - if (error instanceof Error) { - return error.message; - } - else { - return String(error); - } -} -exports.getErrorMessage = getErrorMessage; -function getErrorCode(error) { - if (typeof error === 'object' && - error !== null && - 'code' in error && - typeof error.code === 'number') { - return error.code; - } - else { - return null; - } -} -exports.getErrorCode = getErrorCode; -//# sourceMappingURL=error.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/error.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/error.js.map deleted file mode 100644 index 192891c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,SAAgB,eAAe,CAAC,KAAc;IAC5C,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,KAAK,CAAC,OAAO,CAAC;IACvB,CAAC;SAAM,CAAC;QACN,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;AACH,CAAC;AAND,0CAMC;AAED,SAAgB,YAAY,CAAC,KAAc;IACzC,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,MAAM,IAAI,KAAK;QACf,OAAQ,KAAiC,CAAC,IAAI,KAAK,QAAQ,EAC3D,CAAC;QACD,OAAQ,KAAgC,CAAC,IAAI,CAAC;IAChD,CAAC;SAAM,CAAC;QACN,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAXD,oCAWC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/events.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/events.d.ts deleted file mode 100644 index d1a764e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/events.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export interface EmitterAugmentation1<Name extends string | symbol, Arg> { - addListener(event: Name, listener: (arg1: Arg) => void): this; - emit(event: Name, arg1: Arg): boolean; - on(event: Name, listener: (arg1: Arg) => void): this; - once(event: Name, listener: (arg1: Arg) => void): this; - prependListener(event: Name, listener: (arg1: Arg) => void): this; - prependOnceListener(event: Name, listener: (arg1: Arg) => void): this; - removeListener(event: Name, listener: (arg1: Arg) => void): this; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/events.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/events.js deleted file mode 100644 index 082ed9b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/events.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=events.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/events.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/events.js.map deleted file mode 100644 index ba39b5d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/events.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.d.ts deleted file mode 100644 index 5808971..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export { trace, log } from './logging'; -export { Resolver, ResolverListener, registerResolver, ConfigSelector, createResolver, } from './resolver'; -export { GrpcUri, uriToString } from './uri-parser'; -export { Duration, durationToMs } from './duration'; -export { ServiceConfig, MethodConfig, RetryPolicy } from './service-config'; -export { BackoffTimeout } from './backoff-timeout'; -export { LoadBalancer, LoadBalancingConfig, ChannelControlHelper, createChildChannelControlHelper, registerLoadBalancerType, getFirstUsableConfig, validateLoadBalancingConfig, } from './load-balancer'; -export { SubchannelAddress, subchannelAddressToString, } from './subchannel-address'; -export { ChildLoadBalancerHandler } from './load-balancer-child-handler'; -export { Picker, UnavailablePicker, QueuePicker, PickResult, PickArgs, PickResultType, } from './picker'; -export { Call as CallStream } from './call-interface'; -export { Filter, BaseFilter, FilterFactory } from './filter'; -export { FilterStackFactory } from './filter-stack'; -export { registerAdminService } from './admin'; -export { SubchannelInterface, BaseSubchannelWrapper, ConnectivityStateListener, } from './subchannel-interface'; -export { OutlierDetectionLoadBalancingConfig, SuccessRateEjectionConfig, FailurePercentageEjectionConfig, } from './load-balancer-outlier-detection'; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.js deleted file mode 100644 index 21e26e0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OutlierDetectionLoadBalancingConfig = exports.BaseSubchannelWrapper = exports.registerAdminService = exports.FilterStackFactory = exports.BaseFilter = exports.PickResultType = exports.QueuePicker = exports.UnavailablePicker = exports.ChildLoadBalancerHandler = exports.subchannelAddressToString = exports.validateLoadBalancingConfig = exports.getFirstUsableConfig = exports.registerLoadBalancerType = exports.createChildChannelControlHelper = exports.BackoffTimeout = exports.durationToMs = exports.uriToString = exports.createResolver = exports.registerResolver = exports.log = exports.trace = void 0; -var logging_1 = require("./logging"); -Object.defineProperty(exports, "trace", { enumerable: true, get: function () { return logging_1.trace; } }); -Object.defineProperty(exports, "log", { enumerable: true, get: function () { return logging_1.log; } }); -var resolver_1 = require("./resolver"); -Object.defineProperty(exports, "registerResolver", { enumerable: true, get: function () { return resolver_1.registerResolver; } }); -Object.defineProperty(exports, "createResolver", { enumerable: true, get: function () { return resolver_1.createResolver; } }); -var uri_parser_1 = require("./uri-parser"); -Object.defineProperty(exports, "uriToString", { enumerable: true, get: function () { return uri_parser_1.uriToString; } }); -var duration_1 = require("./duration"); -Object.defineProperty(exports, "durationToMs", { enumerable: true, get: function () { return duration_1.durationToMs; } }); -var backoff_timeout_1 = require("./backoff-timeout"); -Object.defineProperty(exports, "BackoffTimeout", { enumerable: true, get: function () { return backoff_timeout_1.BackoffTimeout; } }); -var load_balancer_1 = require("./load-balancer"); -Object.defineProperty(exports, "createChildChannelControlHelper", { enumerable: true, get: function () { return load_balancer_1.createChildChannelControlHelper; } }); -Object.defineProperty(exports, "registerLoadBalancerType", { enumerable: true, get: function () { return load_balancer_1.registerLoadBalancerType; } }); -Object.defineProperty(exports, "getFirstUsableConfig", { enumerable: true, get: function () { return load_balancer_1.getFirstUsableConfig; } }); -Object.defineProperty(exports, "validateLoadBalancingConfig", { enumerable: true, get: function () { return load_balancer_1.validateLoadBalancingConfig; } }); -var subchannel_address_1 = require("./subchannel-address"); -Object.defineProperty(exports, "subchannelAddressToString", { enumerable: true, get: function () { return subchannel_address_1.subchannelAddressToString; } }); -var load_balancer_child_handler_1 = require("./load-balancer-child-handler"); -Object.defineProperty(exports, "ChildLoadBalancerHandler", { enumerable: true, get: function () { return load_balancer_child_handler_1.ChildLoadBalancerHandler; } }); -var picker_1 = require("./picker"); -Object.defineProperty(exports, "UnavailablePicker", { enumerable: true, get: function () { return picker_1.UnavailablePicker; } }); -Object.defineProperty(exports, "QueuePicker", { enumerable: true, get: function () { return picker_1.QueuePicker; } }); -Object.defineProperty(exports, "PickResultType", { enumerable: true, get: function () { return picker_1.PickResultType; } }); -var filter_1 = require("./filter"); -Object.defineProperty(exports, "BaseFilter", { enumerable: true, get: function () { return filter_1.BaseFilter; } }); -var filter_stack_1 = require("./filter-stack"); -Object.defineProperty(exports, "FilterStackFactory", { enumerable: true, get: function () { return filter_stack_1.FilterStackFactory; } }); -var admin_1 = require("./admin"); -Object.defineProperty(exports, "registerAdminService", { enumerable: true, get: function () { return admin_1.registerAdminService; } }); -var subchannel_interface_1 = require("./subchannel-interface"); -Object.defineProperty(exports, "BaseSubchannelWrapper", { enumerable: true, get: function () { return subchannel_interface_1.BaseSubchannelWrapper; } }); -var load_balancer_outlier_detection_1 = require("./load-balancer-outlier-detection"); -Object.defineProperty(exports, "OutlierDetectionLoadBalancingConfig", { enumerable: true, get: function () { return load_balancer_outlier_detection_1.OutlierDetectionLoadBalancingConfig; } }); -//# sourceMappingURL=experimental.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.js.map deleted file mode 100644 index 757d3db..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/experimental.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"experimental.js","sourceRoot":"","sources":["../../src/experimental.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAA9B,gGAAA,KAAK,OAAA;AAAE,8FAAA,GAAG,OAAA;AACnB,uCAMoB;AAHlB,4GAAA,gBAAgB,OAAA;AAEhB,0GAAA,cAAc,OAAA;AAEhB,2CAAoD;AAAlC,yGAAA,WAAW,OAAA;AAC7B,uCAAoD;AAAjC,wGAAA,YAAY,OAAA;AAE/B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,iDAQyB;AAJvB,gIAAA,+BAA+B,OAAA;AAC/B,yHAAA,wBAAwB,OAAA;AACxB,qHAAA,oBAAoB,OAAA;AACpB,4HAAA,2BAA2B,OAAA;AAE7B,2DAG8B;AAD5B,+HAAA,yBAAyB,OAAA;AAE3B,6EAAyE;AAAhE,uIAAA,wBAAwB,OAAA;AACjC,mCAOkB;AALhB,2GAAA,iBAAiB,OAAA;AACjB,qGAAA,WAAW,OAAA;AAGX,wGAAA,cAAc,OAAA;AAGhB,mCAA6D;AAA5C,oGAAA,UAAU,OAAA;AAC3B,+CAAoD;AAA3C,kHAAA,kBAAkB,OAAA;AAC3B,iCAA+C;AAAtC,6GAAA,oBAAoB,OAAA;AAC7B,+DAIgC;AAF9B,6HAAA,qBAAqB,OAAA;AAGvB,qFAI2C;AAHzC,sJAAA,mCAAmC,OAAA"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.d.ts deleted file mode 100644 index c3f55cc..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// <reference types="node" /> -import { StatusObject, WriteObject } from './call-interface'; -import { Filter, FilterFactory } from './filter'; -import { Metadata } from './metadata'; -export declare class FilterStack implements Filter { - private readonly filters; - constructor(filters: Filter[]); - sendMetadata(metadata: Promise<Metadata>): Promise<Metadata>; - receiveMetadata(metadata: Metadata): Metadata; - sendMessage(message: Promise<WriteObject>): Promise<WriteObject>; - receiveMessage(message: Promise<Buffer>): Promise<Buffer>; - receiveTrailers(status: StatusObject): StatusObject; - push(filters: Filter[]): void; - getFilters(): Filter[]; -} -export declare class FilterStackFactory implements FilterFactory<FilterStack> { - private readonly factories; - constructor(factories: Array<FilterFactory<Filter>>); - push(filterFactories: FilterFactory<Filter>[]): void; - clone(): FilterStackFactory; - createFilter(): FilterStack; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.js deleted file mode 100644 index 6cf2e1a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FilterStackFactory = exports.FilterStack = void 0; -class FilterStack { - constructor(filters) { - this.filters = filters; - } - sendMetadata(metadata) { - let result = metadata; - for (let i = 0; i < this.filters.length; i++) { - result = this.filters[i].sendMetadata(result); - } - return result; - } - receiveMetadata(metadata) { - let result = metadata; - for (let i = this.filters.length - 1; i >= 0; i--) { - result = this.filters[i].receiveMetadata(result); - } - return result; - } - sendMessage(message) { - let result = message; - for (let i = 0; i < this.filters.length; i++) { - result = this.filters[i].sendMessage(result); - } - return result; - } - receiveMessage(message) { - let result = message; - for (let i = this.filters.length - 1; i >= 0; i--) { - result = this.filters[i].receiveMessage(result); - } - return result; - } - receiveTrailers(status) { - let result = status; - for (let i = this.filters.length - 1; i >= 0; i--) { - result = this.filters[i].receiveTrailers(result); - } - return result; - } - push(filters) { - this.filters.unshift(...filters); - } - getFilters() { - return this.filters; - } -} -exports.FilterStack = FilterStack; -class FilterStackFactory { - constructor(factories) { - this.factories = factories; - } - push(filterFactories) { - this.factories.unshift(...filterFactories); - } - clone() { - return new FilterStackFactory([...this.factories]); - } - createFilter() { - return new FilterStack(this.factories.map(factory => factory.createFilter())); - } -} -exports.FilterStackFactory = FilterStackFactory; -//# sourceMappingURL=filter-stack.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.js.map deleted file mode 100644 index ffbeadf..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter-stack.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"filter-stack.js","sourceRoot":"","sources":["../../src/filter-stack.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAMH,MAAa,WAAW;IACtB,YAA6B,OAAiB;QAAjB,YAAO,GAAP,OAAO,CAAU;IAAG,CAAC;IAElD,YAAY,CAAC,QAA2B;QACtC,IAAI,MAAM,GAAsB,QAAQ,CAAC;QAEzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAChD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,eAAe,CAAC,QAAkB;QAChC,IAAI,MAAM,GAAa,QAAQ,CAAC;QAEhC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAClD,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,WAAW,CAAC,OAA6B;QACvC,IAAI,MAAM,GAAyB,OAAO,CAAC;QAE3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,cAAc,CAAC,OAAwB;QACrC,IAAI,MAAM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CAAC;CACF;AAhBD,gDAgBC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.d.ts deleted file mode 100644 index f7e382a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/// <reference types="node" /> -import { StatusObject, WriteObject } from './call-interface'; -import { Metadata } from './metadata'; -/** - * Filter classes represent related per-call logic and state that is primarily - * used to modify incoming and outgoing data. All async filters can be - * rejected. The rejection error must be a StatusObject, and a rejection will - * cause the call to end with that status. - */ -export interface Filter { - sendMetadata(metadata: Promise<Metadata>): Promise<Metadata>; - receiveMetadata(metadata: Metadata): Metadata; - sendMessage(message: Promise<WriteObject>): Promise<WriteObject>; - receiveMessage(message: Promise<Buffer>): Promise<Buffer>; - receiveTrailers(status: StatusObject): StatusObject; -} -export declare abstract class BaseFilter implements Filter { - sendMetadata(metadata: Promise<Metadata>): Promise<Metadata>; - receiveMetadata(metadata: Metadata): Metadata; - sendMessage(message: Promise<WriteObject>): Promise<WriteObject>; - receiveMessage(message: Promise<Buffer>): Promise<Buffer>; - receiveTrailers(status: StatusObject): StatusObject; -} -export interface FilterFactory<T extends Filter> { - createFilter(): T; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.js deleted file mode 100644 index d888a82..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BaseFilter = void 0; -class BaseFilter { - async sendMetadata(metadata) { - return metadata; - } - receiveMetadata(metadata) { - return metadata; - } - async sendMessage(message) { - return message; - } - async receiveMessage(message) { - return message; - } - receiveTrailers(status) { - return status; - } -} -exports.BaseFilter = BaseFilter; -//# sourceMappingURL=filter.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.js.map deleted file mode 100644 index 1ddf110..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/filter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../src/filter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAuBH,MAAsB,UAAU;IAC9B,KAAK,CAAC,YAAY,CAAC,QAA2B;QAC5C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,eAAe,CAAC,QAAkB;QAChC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAA6B;QAC7C,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,OAAwB;QAC3C,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,eAAe,CAAC,MAAoB;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AApBD,gCAoBC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.d.ts deleted file mode 100644 index d311c65..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type * as grpc from '../index'; -import type { MessageTypeDefinition } from '@grpc/proto-loader'; -import type { ChannelzClient as _grpc_channelz_v1_ChannelzClient, ChannelzDefinition as _grpc_channelz_v1_ChannelzDefinition } from './grpc/channelz/v1/Channelz'; -type SubtypeConstructor<Constructor extends new (...args: any) => any, Subtype> = { - new (...args: ConstructorParameters<Constructor>): Subtype; -}; -export interface ProtoGrpcType { - google: { - protobuf: { - Any: MessageTypeDefinition; - BoolValue: MessageTypeDefinition; - BytesValue: MessageTypeDefinition; - DoubleValue: MessageTypeDefinition; - Duration: MessageTypeDefinition; - FloatValue: MessageTypeDefinition; - Int32Value: MessageTypeDefinition; - Int64Value: MessageTypeDefinition; - StringValue: MessageTypeDefinition; - Timestamp: MessageTypeDefinition; - UInt32Value: MessageTypeDefinition; - UInt64Value: MessageTypeDefinition; - }; - }; - grpc: { - channelz: { - v1: { - Address: MessageTypeDefinition; - Channel: MessageTypeDefinition; - ChannelConnectivityState: MessageTypeDefinition; - ChannelData: MessageTypeDefinition; - ChannelRef: MessageTypeDefinition; - ChannelTrace: MessageTypeDefinition; - ChannelTraceEvent: MessageTypeDefinition; - /** - * Channelz is a service exposed by gRPC servers that provides detailed debug - * information. - */ - Channelz: SubtypeConstructor<typeof grpc.Client, _grpc_channelz_v1_ChannelzClient> & { - service: _grpc_channelz_v1_ChannelzDefinition; - }; - GetChannelRequest: MessageTypeDefinition; - GetChannelResponse: MessageTypeDefinition; - GetServerRequest: MessageTypeDefinition; - GetServerResponse: MessageTypeDefinition; - GetServerSocketsRequest: MessageTypeDefinition; - GetServerSocketsResponse: MessageTypeDefinition; - GetServersRequest: MessageTypeDefinition; - GetServersResponse: MessageTypeDefinition; - GetSocketRequest: MessageTypeDefinition; - GetSocketResponse: MessageTypeDefinition; - GetSubchannelRequest: MessageTypeDefinition; - GetSubchannelResponse: MessageTypeDefinition; - GetTopChannelsRequest: MessageTypeDefinition; - GetTopChannelsResponse: MessageTypeDefinition; - Security: MessageTypeDefinition; - Server: MessageTypeDefinition; - ServerData: MessageTypeDefinition; - ServerRef: MessageTypeDefinition; - Socket: MessageTypeDefinition; - SocketData: MessageTypeDefinition; - SocketOption: MessageTypeDefinition; - SocketOptionLinger: MessageTypeDefinition; - SocketOptionTcpInfo: MessageTypeDefinition; - SocketOptionTimeout: MessageTypeDefinition; - SocketRef: MessageTypeDefinition; - Subchannel: MessageTypeDefinition; - SubchannelRef: MessageTypeDefinition; - }; - }; - }; -} -export {}; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.js deleted file mode 100644 index 0c2cf67..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=channelz.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.js.map deleted file mode 100644 index af4016b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/channelz.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"channelz.js","sourceRoot":"","sources":["../../../src/generated/channelz.ts"],"names":[],"mappings":""}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.d.ts deleted file mode 100644 index e8c0607..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// <reference types="node" /> -import type { AnyExtension } from '@grpc/proto-loader'; -export type Any = AnyExtension | { - type_url: string; - value: Buffer | Uint8Array | string; -}; -export interface Any__Output { - 'type_url': (string); - 'value': (Buffer); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js deleted file mode 100644 index f9651f8..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Any.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js.map deleted file mode 100644 index 2e75474..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Any.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Any.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/Any.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.d.ts deleted file mode 100644 index b7235a7..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface BoolValue { - 'value'?: (boolean); -} -export interface BoolValue__Output { - 'value': (boolean); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js deleted file mode 100644 index f893f74..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=BoolValue.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js.map deleted file mode 100644 index 3573853..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BoolValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BoolValue.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/BoolValue.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.d.ts deleted file mode 100644 index 2c77f9d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// <reference types="node" /> -export interface BytesValue { - 'value'?: (Buffer | Uint8Array | string); -} -export interface BytesValue__Output { - 'value': (Buffer); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js deleted file mode 100644 index 4cac93e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=BytesValue.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js.map deleted file mode 100644 index a589ea5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/BytesValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BytesValue.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/BytesValue.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.d.ts deleted file mode 100644 index e4e2204..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface DoubleValue { - 'value'?: (number | string); -} -export interface DoubleValue__Output { - 'value': (number); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js deleted file mode 100644 index 133e011..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=DoubleValue.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js.map deleted file mode 100644 index 7f28720..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/DoubleValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DoubleValue.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/DoubleValue.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.d.ts deleted file mode 100644 index 7e04ea6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface Duration { - 'seconds'?: (number | string | Long); - 'nanos'?: (number); -} -export interface Duration__Output { - 'seconds': (string); - 'nanos': (number); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js deleted file mode 100644 index b071b70..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Duration.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js.map deleted file mode 100644 index 3fc8fe8..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Duration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Duration.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/Duration.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.d.ts deleted file mode 100644 index 33bd60b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface FloatValue { - 'value'?: (number | string); -} -export interface FloatValue__Output { - 'value': (number); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js deleted file mode 100644 index 17290a2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=FloatValue.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js.map deleted file mode 100644 index bf27b78..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/FloatValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FloatValue.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/FloatValue.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.d.ts deleted file mode 100644 index 895fb9d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface Int32Value { - 'value'?: (number); -} -export interface Int32Value__Output { - 'value': (number); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js deleted file mode 100644 index dc46343..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Int32Value.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js.map deleted file mode 100644 index 157e73a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int32Value.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Int32Value.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/Int32Value.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.d.ts deleted file mode 100644 index 00bd119..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface Int64Value { - 'value'?: (number | string | Long); -} -export interface Int64Value__Output { - 'value': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js deleted file mode 100644 index a77bc96..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Int64Value.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js.map deleted file mode 100644 index b8894b1..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Int64Value.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Int64Value.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/Int64Value.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.d.ts deleted file mode 100644 index 74230c9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface StringValue { - 'value'?: (string); -} -export interface StringValue__Output { - 'value': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js deleted file mode 100644 index 0836e97..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=StringValue.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js.map deleted file mode 100644 index bc05ddc..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/StringValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StringValue.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/StringValue.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.d.ts deleted file mode 100644 index 900ff5a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface Timestamp { - 'seconds'?: (number | string | Long); - 'nanos'?: (number); -} -export interface Timestamp__Output { - 'seconds': (string); - 'nanos': (number); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js deleted file mode 100644 index dcca213..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Timestamp.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js.map deleted file mode 100644 index e90342e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/Timestamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Timestamp.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/Timestamp.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.d.ts deleted file mode 100644 index d7e185f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface UInt32Value { - 'value'?: (number); -} -export interface UInt32Value__Output { - 'value': (number); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js deleted file mode 100644 index 889cd2e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=UInt32Value.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js.map deleted file mode 100644 index 2a0420f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt32Value.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UInt32Value.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/UInt32Value.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.d.ts deleted file mode 100644 index fe94d29..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface UInt64Value { - 'value'?: (number | string | Long); -} -export interface UInt64Value__Output { - 'value': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js deleted file mode 100644 index 2a06a69..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: null -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=UInt64Value.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js.map deleted file mode 100644 index 4ea43ca..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/UInt64Value.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UInt64Value.js","sourceRoot":"","sources":["../../../../../src/generated/google/protobuf/UInt64Value.ts"],"names":[],"mappings":";AAAA,sBAAsB"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.d.ts deleted file mode 100644 index 0676367..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -/// <reference types="node" /> -import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any'; -/** - * An address type not included above. - */ -export interface _grpc_channelz_v1_Address_OtherAddress { - /** - * The human readable version of the value. This value should be set. - */ - 'name'?: (string); - /** - * The actual address message. - */ - 'value'?: (_google_protobuf_Any | null); -} -/** - * An address type not included above. - */ -export interface _grpc_channelz_v1_Address_OtherAddress__Output { - /** - * The human readable version of the value. This value should be set. - */ - 'name': (string); - /** - * The actual address message. - */ - 'value': (_google_protobuf_Any__Output | null); -} -export interface _grpc_channelz_v1_Address_TcpIpAddress { - /** - * Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16 - * bytes in length. - */ - 'ip_address'?: (Buffer | Uint8Array | string); - /** - * 0-64k, or -1 if not appropriate. - */ - 'port'?: (number); -} -export interface _grpc_channelz_v1_Address_TcpIpAddress__Output { - /** - * Either the IPv4 or IPv6 address in bytes. Will be either 4 bytes or 16 - * bytes in length. - */ - 'ip_address': (Buffer); - /** - * 0-64k, or -1 if not appropriate. - */ - 'port': (number); -} -/** - * A Unix Domain Socket address. - */ -export interface _grpc_channelz_v1_Address_UdsAddress { - 'filename'?: (string); -} -/** - * A Unix Domain Socket address. - */ -export interface _grpc_channelz_v1_Address_UdsAddress__Output { - 'filename': (string); -} -/** - * Address represents the address used to create the socket. - */ -export interface Address { - 'tcpip_address'?: (_grpc_channelz_v1_Address_TcpIpAddress | null); - 'uds_address'?: (_grpc_channelz_v1_Address_UdsAddress | null); - 'other_address'?: (_grpc_channelz_v1_Address_OtherAddress | null); - 'address'?: "tcpip_address" | "uds_address" | "other_address"; -} -/** - * Address represents the address used to create the socket. - */ -export interface Address__Output { - 'tcpip_address'?: (_grpc_channelz_v1_Address_TcpIpAddress__Output | null); - 'uds_address'?: (_grpc_channelz_v1_Address_UdsAddress__Output | null); - 'other_address'?: (_grpc_channelz_v1_Address_OtherAddress__Output | null); - 'address': "tcpip_address" | "uds_address" | "other_address"; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js deleted file mode 100644 index 6f15b91..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Address.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js.map deleted file mode 100644 index 554d6da..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Address.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/Address.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.d.ts deleted file mode 100644 index 3bd11ca..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import type { ChannelRef as _grpc_channelz_v1_ChannelRef, ChannelRef__Output as _grpc_channelz_v1_ChannelRef__Output } from '../../../grpc/channelz/v1/ChannelRef'; -import type { ChannelData as _grpc_channelz_v1_ChannelData, ChannelData__Output as _grpc_channelz_v1_ChannelData__Output } from '../../../grpc/channelz/v1/ChannelData'; -import type { SubchannelRef as _grpc_channelz_v1_SubchannelRef, SubchannelRef__Output as _grpc_channelz_v1_SubchannelRef__Output } from '../../../grpc/channelz/v1/SubchannelRef'; -import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef'; -/** - * Channel is a logical grouping of channels, subchannels, and sockets. - */ -export interface Channel { - /** - * The identifier for this channel. This should bet set. - */ - 'ref'?: (_grpc_channelz_v1_ChannelRef | null); - /** - * Data specific to this channel. - */ - 'data'?: (_grpc_channelz_v1_ChannelData | null); - /** - * There are no ordering guarantees on the order of channel refs. - * There may not be cycles in the ref graph. - * A channel ref may be present in more than one channel or subchannel. - */ - 'channel_ref'?: (_grpc_channelz_v1_ChannelRef)[]; - /** - * At most one of 'channel_ref+subchannel_ref' and 'socket' is set. - * There are no ordering guarantees on the order of subchannel refs. - * There may not be cycles in the ref graph. - * A sub channel ref may be present in more than one channel or subchannel. - */ - 'subchannel_ref'?: (_grpc_channelz_v1_SubchannelRef)[]; - /** - * There are no ordering guarantees on the order of sockets. - */ - 'socket_ref'?: (_grpc_channelz_v1_SocketRef)[]; -} -/** - * Channel is a logical grouping of channels, subchannels, and sockets. - */ -export interface Channel__Output { - /** - * The identifier for this channel. This should bet set. - */ - 'ref': (_grpc_channelz_v1_ChannelRef__Output | null); - /** - * Data specific to this channel. - */ - 'data': (_grpc_channelz_v1_ChannelData__Output | null); - /** - * There are no ordering guarantees on the order of channel refs. - * There may not be cycles in the ref graph. - * A channel ref may be present in more than one channel or subchannel. - */ - 'channel_ref': (_grpc_channelz_v1_ChannelRef__Output)[]; - /** - * At most one of 'channel_ref+subchannel_ref' and 'socket' is set. - * There are no ordering guarantees on the order of subchannel refs. - * There may not be cycles in the ref graph. - * A sub channel ref may be present in more than one channel or subchannel. - */ - 'subchannel_ref': (_grpc_channelz_v1_SubchannelRef__Output)[]; - /** - * There are no ordering guarantees on the order of sockets. - */ - 'socket_ref': (_grpc_channelz_v1_SocketRef__Output)[]; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js deleted file mode 100644 index d9bc55a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Channel.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js.map deleted file mode 100644 index 5dd6b69..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/Channel.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.d.ts deleted file mode 100644 index 2ea3833..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export declare const _grpc_channelz_v1_ChannelConnectivityState_State: { - readonly UNKNOWN: "UNKNOWN"; - readonly IDLE: "IDLE"; - readonly CONNECTING: "CONNECTING"; - readonly READY: "READY"; - readonly TRANSIENT_FAILURE: "TRANSIENT_FAILURE"; - readonly SHUTDOWN: "SHUTDOWN"; -}; -export type _grpc_channelz_v1_ChannelConnectivityState_State = 'UNKNOWN' | 0 | 'IDLE' | 1 | 'CONNECTING' | 2 | 'READY' | 3 | 'TRANSIENT_FAILURE' | 4 | 'SHUTDOWN' | 5; -export type _grpc_channelz_v1_ChannelConnectivityState_State__Output = typeof _grpc_channelz_v1_ChannelConnectivityState_State[keyof typeof _grpc_channelz_v1_ChannelConnectivityState_State]; -/** - * These come from the specified states in this document: - * https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md - */ -export interface ChannelConnectivityState { - 'state'?: (_grpc_channelz_v1_ChannelConnectivityState_State); -} -/** - * These come from the specified states in this document: - * https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md - */ -export interface ChannelConnectivityState__Output { - 'state': (_grpc_channelz_v1_ChannelConnectivityState_State__Output); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js deleted file mode 100644 index 2a783d9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -exports._grpc_channelz_v1_ChannelConnectivityState_State = void 0; -// Original file: proto/channelz.proto -exports._grpc_channelz_v1_ChannelConnectivityState_State = { - UNKNOWN: 'UNKNOWN', - IDLE: 'IDLE', - CONNECTING: 'CONNECTING', - READY: 'READY', - TRANSIENT_FAILURE: 'TRANSIENT_FAILURE', - SHUTDOWN: 'SHUTDOWN', -}; -//# sourceMappingURL=ChannelConnectivityState.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js.map deleted file mode 100644 index d4b2567..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelConnectivityState.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChannelConnectivityState.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/ChannelConnectivityState.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAGtC,sCAAsC;AAEzB,QAAA,gDAAgD,GAAG;IAC9D,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;IACd,iBAAiB,EAAE,mBAAmB;IACtC,QAAQ,EAAE,UAAU;CACZ,CAAC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.d.ts deleted file mode 100644 index 3d9716a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import type { ChannelConnectivityState as _grpc_channelz_v1_ChannelConnectivityState, ChannelConnectivityState__Output as _grpc_channelz_v1_ChannelConnectivityState__Output } from '../../../grpc/channelz/v1/ChannelConnectivityState'; -import type { ChannelTrace as _grpc_channelz_v1_ChannelTrace, ChannelTrace__Output as _grpc_channelz_v1_ChannelTrace__Output } from '../../../grpc/channelz/v1/ChannelTrace'; -import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp'; -import type { Long } from '@grpc/proto-loader'; -/** - * Channel data is data related to a specific Channel or Subchannel. - */ -export interface ChannelData { - /** - * The connectivity state of the channel or subchannel. Implementations - * should always set this. - */ - 'state'?: (_grpc_channelz_v1_ChannelConnectivityState | null); - /** - * The target this channel originally tried to connect to. May be absent - */ - 'target'?: (string); - /** - * A trace of recent events on the channel. May be absent. - */ - 'trace'?: (_grpc_channelz_v1_ChannelTrace | null); - /** - * The number of calls started on the channel - */ - 'calls_started'?: (number | string | Long); - /** - * The number of calls that have completed with an OK status - */ - 'calls_succeeded'?: (number | string | Long); - /** - * The number of calls that have completed with a non-OK status - */ - 'calls_failed'?: (number | string | Long); - /** - * The last time a call was started on the channel. - */ - 'last_call_started_timestamp'?: (_google_protobuf_Timestamp | null); -} -/** - * Channel data is data related to a specific Channel or Subchannel. - */ -export interface ChannelData__Output { - /** - * The connectivity state of the channel or subchannel. Implementations - * should always set this. - */ - 'state': (_grpc_channelz_v1_ChannelConnectivityState__Output | null); - /** - * The target this channel originally tried to connect to. May be absent - */ - 'target': (string); - /** - * A trace of recent events on the channel. May be absent. - */ - 'trace': (_grpc_channelz_v1_ChannelTrace__Output | null); - /** - * The number of calls started on the channel - */ - 'calls_started': (string); - /** - * The number of calls that have completed with an OK status - */ - 'calls_succeeded': (string); - /** - * The number of calls that have completed with a non-OK status - */ - 'calls_failed': (string); - /** - * The last time a call was started on the channel. - */ - 'last_call_started_timestamp': (_google_protobuf_Timestamp__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js deleted file mode 100644 index dffbd45..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ChannelData.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js.map deleted file mode 100644 index bb2b4c4..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChannelData.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/ChannelData.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.d.ts deleted file mode 100644 index 29deef9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -/** - * ChannelRef is a reference to a Channel. - */ -export interface ChannelRef { - /** - * The globally unique id for this channel. Must be a positive number. - */ - 'channel_id'?: (number | string | Long); - /** - * An optional name associated with the channel. - */ - 'name'?: (string); -} -/** - * ChannelRef is a reference to a Channel. - */ -export interface ChannelRef__Output { - /** - * The globally unique id for this channel. Must be a positive number. - */ - 'channel_id': (string); - /** - * An optional name associated with the channel. - */ - 'name': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js deleted file mode 100644 index d239819..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ChannelRef.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js.map deleted file mode 100644 index 1030ded..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChannelRef.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/ChannelRef.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.d.ts deleted file mode 100644 index 5b6170a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp'; -import type { ChannelTraceEvent as _grpc_channelz_v1_ChannelTraceEvent, ChannelTraceEvent__Output as _grpc_channelz_v1_ChannelTraceEvent__Output } from '../../../grpc/channelz/v1/ChannelTraceEvent'; -import type { Long } from '@grpc/proto-loader'; -/** - * ChannelTrace represents the recent events that have occurred on the channel. - */ -export interface ChannelTrace { - /** - * Number of events ever logged in this tracing object. This can differ from - * events.size() because events can be overwritten or garbage collected by - * implementations. - */ - 'num_events_logged'?: (number | string | Long); - /** - * Time that this channel was created. - */ - 'creation_timestamp'?: (_google_protobuf_Timestamp | null); - /** - * List of events that have occurred on this channel. - */ - 'events'?: (_grpc_channelz_v1_ChannelTraceEvent)[]; -} -/** - * ChannelTrace represents the recent events that have occurred on the channel. - */ -export interface ChannelTrace__Output { - /** - * Number of events ever logged in this tracing object. This can differ from - * events.size() because events can be overwritten or garbage collected by - * implementations. - */ - 'num_events_logged': (string); - /** - * Time that this channel was created. - */ - 'creation_timestamp': (_google_protobuf_Timestamp__Output | null); - /** - * List of events that have occurred on this channel. - */ - 'events': (_grpc_channelz_v1_ChannelTraceEvent__Output)[]; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js deleted file mode 100644 index 112069c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ChannelTrace.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js.map deleted file mode 100644 index 2f665dc..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTrace.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChannelTrace.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/ChannelTrace.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.d.ts deleted file mode 100644 index 6ff7e30..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp'; -import type { ChannelRef as _grpc_channelz_v1_ChannelRef, ChannelRef__Output as _grpc_channelz_v1_ChannelRef__Output } from '../../../grpc/channelz/v1/ChannelRef'; -import type { SubchannelRef as _grpc_channelz_v1_SubchannelRef, SubchannelRef__Output as _grpc_channelz_v1_SubchannelRef__Output } from '../../../grpc/channelz/v1/SubchannelRef'; -/** - * The supported severity levels of trace events. - */ -export declare const _grpc_channelz_v1_ChannelTraceEvent_Severity: { - readonly CT_UNKNOWN: "CT_UNKNOWN"; - readonly CT_INFO: "CT_INFO"; - readonly CT_WARNING: "CT_WARNING"; - readonly CT_ERROR: "CT_ERROR"; -}; -/** - * The supported severity levels of trace events. - */ -export type _grpc_channelz_v1_ChannelTraceEvent_Severity = 'CT_UNKNOWN' | 0 | 'CT_INFO' | 1 | 'CT_WARNING' | 2 | 'CT_ERROR' | 3; -/** - * The supported severity levels of trace events. - */ -export type _grpc_channelz_v1_ChannelTraceEvent_Severity__Output = typeof _grpc_channelz_v1_ChannelTraceEvent_Severity[keyof typeof _grpc_channelz_v1_ChannelTraceEvent_Severity]; -/** - * A trace event is an interesting thing that happened to a channel or - * subchannel, such as creation, address resolution, subchannel creation, etc. - */ -export interface ChannelTraceEvent { - /** - * High level description of the event. - */ - 'description'?: (string); - /** - * the severity of the trace event - */ - 'severity'?: (_grpc_channelz_v1_ChannelTraceEvent_Severity); - /** - * When this event occurred. - */ - 'timestamp'?: (_google_protobuf_Timestamp | null); - 'channel_ref'?: (_grpc_channelz_v1_ChannelRef | null); - 'subchannel_ref'?: (_grpc_channelz_v1_SubchannelRef | null); - /** - * ref of referenced channel or subchannel. - * Optional, only present if this event refers to a child object. For example, - * this field would be filled if this trace event was for a subchannel being - * created. - */ - 'child_ref'?: "channel_ref" | "subchannel_ref"; -} -/** - * A trace event is an interesting thing that happened to a channel or - * subchannel, such as creation, address resolution, subchannel creation, etc. - */ -export interface ChannelTraceEvent__Output { - /** - * High level description of the event. - */ - 'description': (string); - /** - * the severity of the trace event - */ - 'severity': (_grpc_channelz_v1_ChannelTraceEvent_Severity__Output); - /** - * When this event occurred. - */ - 'timestamp': (_google_protobuf_Timestamp__Output | null); - 'channel_ref'?: (_grpc_channelz_v1_ChannelRef__Output | null); - 'subchannel_ref'?: (_grpc_channelz_v1_SubchannelRef__Output | null); - /** - * ref of referenced channel or subchannel. - * Optional, only present if this event refers to a child object. For example, - * this field would be filled if this trace event was for a subchannel being - * created. - */ - 'child_ref': "channel_ref" | "subchannel_ref"; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js deleted file mode 100644 index ae9981b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -exports._grpc_channelz_v1_ChannelTraceEvent_Severity = void 0; -// Original file: proto/channelz.proto -/** - * The supported severity levels of trace events. - */ -exports._grpc_channelz_v1_ChannelTraceEvent_Severity = { - CT_UNKNOWN: 'CT_UNKNOWN', - CT_INFO: 'CT_INFO', - CT_WARNING: 'CT_WARNING', - CT_ERROR: 'CT_ERROR', -}; -//# sourceMappingURL=ChannelTraceEvent.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js.map deleted file mode 100644 index 2ed003c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ChannelTraceEvent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChannelTraceEvent.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/ChannelTraceEvent.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAMtC,sCAAsC;AAEtC;;GAEG;AACU,QAAA,4CAA4C,GAAG;IAC1D,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACZ,CAAC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.d.ts deleted file mode 100644 index 3e9eb98..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.d.ts +++ /dev/null @@ -1,159 +0,0 @@ -import type * as grpc from '../../../../index'; -import type { MethodDefinition } from '@grpc/proto-loader'; -import type { GetChannelRequest as _grpc_channelz_v1_GetChannelRequest, GetChannelRequest__Output as _grpc_channelz_v1_GetChannelRequest__Output } from '../../../grpc/channelz/v1/GetChannelRequest'; -import type { GetChannelResponse as _grpc_channelz_v1_GetChannelResponse, GetChannelResponse__Output as _grpc_channelz_v1_GetChannelResponse__Output } from '../../../grpc/channelz/v1/GetChannelResponse'; -import type { GetServerRequest as _grpc_channelz_v1_GetServerRequest, GetServerRequest__Output as _grpc_channelz_v1_GetServerRequest__Output } from '../../../grpc/channelz/v1/GetServerRequest'; -import type { GetServerResponse as _grpc_channelz_v1_GetServerResponse, GetServerResponse__Output as _grpc_channelz_v1_GetServerResponse__Output } from '../../../grpc/channelz/v1/GetServerResponse'; -import type { GetServerSocketsRequest as _grpc_channelz_v1_GetServerSocketsRequest, GetServerSocketsRequest__Output as _grpc_channelz_v1_GetServerSocketsRequest__Output } from '../../../grpc/channelz/v1/GetServerSocketsRequest'; -import type { GetServerSocketsResponse as _grpc_channelz_v1_GetServerSocketsResponse, GetServerSocketsResponse__Output as _grpc_channelz_v1_GetServerSocketsResponse__Output } from '../../../grpc/channelz/v1/GetServerSocketsResponse'; -import type { GetServersRequest as _grpc_channelz_v1_GetServersRequest, GetServersRequest__Output as _grpc_channelz_v1_GetServersRequest__Output } from '../../../grpc/channelz/v1/GetServersRequest'; -import type { GetServersResponse as _grpc_channelz_v1_GetServersResponse, GetServersResponse__Output as _grpc_channelz_v1_GetServersResponse__Output } from '../../../grpc/channelz/v1/GetServersResponse'; -import type { GetSocketRequest as _grpc_channelz_v1_GetSocketRequest, GetSocketRequest__Output as _grpc_channelz_v1_GetSocketRequest__Output } from '../../../grpc/channelz/v1/GetSocketRequest'; -import type { GetSocketResponse as _grpc_channelz_v1_GetSocketResponse, GetSocketResponse__Output as _grpc_channelz_v1_GetSocketResponse__Output } from '../../../grpc/channelz/v1/GetSocketResponse'; -import type { GetSubchannelRequest as _grpc_channelz_v1_GetSubchannelRequest, GetSubchannelRequest__Output as _grpc_channelz_v1_GetSubchannelRequest__Output } from '../../../grpc/channelz/v1/GetSubchannelRequest'; -import type { GetSubchannelResponse as _grpc_channelz_v1_GetSubchannelResponse, GetSubchannelResponse__Output as _grpc_channelz_v1_GetSubchannelResponse__Output } from '../../../grpc/channelz/v1/GetSubchannelResponse'; -import type { GetTopChannelsRequest as _grpc_channelz_v1_GetTopChannelsRequest, GetTopChannelsRequest__Output as _grpc_channelz_v1_GetTopChannelsRequest__Output } from '../../../grpc/channelz/v1/GetTopChannelsRequest'; -import type { GetTopChannelsResponse as _grpc_channelz_v1_GetTopChannelsResponse, GetTopChannelsResponse__Output as _grpc_channelz_v1_GetTopChannelsResponse__Output } from '../../../grpc/channelz/v1/GetTopChannelsResponse'; -/** - * Channelz is a service exposed by gRPC servers that provides detailed debug - * information. - */ -export interface ChannelzClient extends grpc.Client { - /** - * Returns a single Channel, or else a NOT_FOUND code. - */ - GetChannel(argument: _grpc_channelz_v1_GetChannelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetChannelResponse__Output>): grpc.ClientUnaryCall; - GetChannel(argument: _grpc_channelz_v1_GetChannelRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetChannelResponse__Output>): grpc.ClientUnaryCall; - GetChannel(argument: _grpc_channelz_v1_GetChannelRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetChannelResponse__Output>): grpc.ClientUnaryCall; - GetChannel(argument: _grpc_channelz_v1_GetChannelRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetChannelResponse__Output>): grpc.ClientUnaryCall; - /** - * Returns a single Server, or else a NOT_FOUND code. - */ - GetServer(argument: _grpc_channelz_v1_GetServerRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall; - GetServer(argument: _grpc_channelz_v1_GetServerRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall; - GetServer(argument: _grpc_channelz_v1_GetServerRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall; - GetServer(argument: _grpc_channelz_v1_GetServerRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall; - /** - * Returns a single Server, or else a NOT_FOUND code. - */ - getServer(argument: _grpc_channelz_v1_GetServerRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall; - getServer(argument: _grpc_channelz_v1_GetServerRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall; - getServer(argument: _grpc_channelz_v1_GetServerRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall; - getServer(argument: _grpc_channelz_v1_GetServerRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerResponse__Output>): grpc.ClientUnaryCall; - /** - * Gets all server sockets that exist in the process. - */ - GetServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall; - GetServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall; - GetServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall; - GetServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall; - /** - * Gets all server sockets that exist in the process. - */ - getServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall; - getServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall; - getServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall; - getServerSockets(argument: _grpc_channelz_v1_GetServerSocketsRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServerSocketsResponse__Output>): grpc.ClientUnaryCall; - /** - * Gets all servers that exist in the process. - */ - GetServers(argument: _grpc_channelz_v1_GetServersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall; - GetServers(argument: _grpc_channelz_v1_GetServersRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall; - GetServers(argument: _grpc_channelz_v1_GetServersRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall; - GetServers(argument: _grpc_channelz_v1_GetServersRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall; - /** - * Gets all servers that exist in the process. - */ - getServers(argument: _grpc_channelz_v1_GetServersRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall; - getServers(argument: _grpc_channelz_v1_GetServersRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall; - getServers(argument: _grpc_channelz_v1_GetServersRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall; - getServers(argument: _grpc_channelz_v1_GetServersRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetServersResponse__Output>): grpc.ClientUnaryCall; - /** - * Returns a single Socket or else a NOT_FOUND code. - */ - GetSocket(argument: _grpc_channelz_v1_GetSocketRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall; - GetSocket(argument: _grpc_channelz_v1_GetSocketRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall; - GetSocket(argument: _grpc_channelz_v1_GetSocketRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall; - GetSocket(argument: _grpc_channelz_v1_GetSocketRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall; - /** - * Returns a single Socket or else a NOT_FOUND code. - */ - getSocket(argument: _grpc_channelz_v1_GetSocketRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall; - getSocket(argument: _grpc_channelz_v1_GetSocketRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall; - getSocket(argument: _grpc_channelz_v1_GetSocketRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall; - getSocket(argument: _grpc_channelz_v1_GetSocketRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetSocketResponse__Output>): grpc.ClientUnaryCall; - /** - * Returns a single Subchannel, or else a NOT_FOUND code. - */ - GetSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall; - GetSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall; - GetSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall; - GetSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall; - /** - * Returns a single Subchannel, or else a NOT_FOUND code. - */ - getSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall; - getSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall; - getSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall; - getSubchannel(argument: _grpc_channelz_v1_GetSubchannelRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetSubchannelResponse__Output>): grpc.ClientUnaryCall; - /** - * Gets all root channels (i.e. channels the application has directly - * created). This does not include subchannels nor non-top level channels. - */ - GetTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall; - GetTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall; - GetTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall; - GetTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall; - /** - * Gets all root channels (i.e. channels the application has directly - * created). This does not include subchannels nor non-top level channels. - */ - getTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall; - getTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, metadata: grpc.Metadata, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall; - getTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, options: grpc.CallOptions, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall; - getTopChannels(argument: _grpc_channelz_v1_GetTopChannelsRequest, callback: grpc.requestCallback<_grpc_channelz_v1_GetTopChannelsResponse__Output>): grpc.ClientUnaryCall; -} -/** - * Channelz is a service exposed by gRPC servers that provides detailed debug - * information. - */ -export interface ChannelzHandlers extends grpc.UntypedServiceImplementation { - /** - * Returns a single Channel, or else a NOT_FOUND code. - */ - GetChannel: grpc.handleUnaryCall<_grpc_channelz_v1_GetChannelRequest__Output, _grpc_channelz_v1_GetChannelResponse>; - /** - * Returns a single Server, or else a NOT_FOUND code. - */ - GetServer: grpc.handleUnaryCall<_grpc_channelz_v1_GetServerRequest__Output, _grpc_channelz_v1_GetServerResponse>; - /** - * Gets all server sockets that exist in the process. - */ - GetServerSockets: grpc.handleUnaryCall<_grpc_channelz_v1_GetServerSocketsRequest__Output, _grpc_channelz_v1_GetServerSocketsResponse>; - /** - * Gets all servers that exist in the process. - */ - GetServers: grpc.handleUnaryCall<_grpc_channelz_v1_GetServersRequest__Output, _grpc_channelz_v1_GetServersResponse>; - /** - * Returns a single Socket or else a NOT_FOUND code. - */ - GetSocket: grpc.handleUnaryCall<_grpc_channelz_v1_GetSocketRequest__Output, _grpc_channelz_v1_GetSocketResponse>; - /** - * Returns a single Subchannel, or else a NOT_FOUND code. - */ - GetSubchannel: grpc.handleUnaryCall<_grpc_channelz_v1_GetSubchannelRequest__Output, _grpc_channelz_v1_GetSubchannelResponse>; - /** - * Gets all root channels (i.e. channels the application has directly - * created). This does not include subchannels nor non-top level channels. - */ - GetTopChannels: grpc.handleUnaryCall<_grpc_channelz_v1_GetTopChannelsRequest__Output, _grpc_channelz_v1_GetTopChannelsResponse>; -} -export interface ChannelzDefinition extends grpc.ServiceDefinition { - GetChannel: MethodDefinition<_grpc_channelz_v1_GetChannelRequest, _grpc_channelz_v1_GetChannelResponse, _grpc_channelz_v1_GetChannelRequest__Output, _grpc_channelz_v1_GetChannelResponse__Output>; - GetServer: MethodDefinition<_grpc_channelz_v1_GetServerRequest, _grpc_channelz_v1_GetServerResponse, _grpc_channelz_v1_GetServerRequest__Output, _grpc_channelz_v1_GetServerResponse__Output>; - GetServerSockets: MethodDefinition<_grpc_channelz_v1_GetServerSocketsRequest, _grpc_channelz_v1_GetServerSocketsResponse, _grpc_channelz_v1_GetServerSocketsRequest__Output, _grpc_channelz_v1_GetServerSocketsResponse__Output>; - GetServers: MethodDefinition<_grpc_channelz_v1_GetServersRequest, _grpc_channelz_v1_GetServersResponse, _grpc_channelz_v1_GetServersRequest__Output, _grpc_channelz_v1_GetServersResponse__Output>; - GetSocket: MethodDefinition<_grpc_channelz_v1_GetSocketRequest, _grpc_channelz_v1_GetSocketResponse, _grpc_channelz_v1_GetSocketRequest__Output, _grpc_channelz_v1_GetSocketResponse__Output>; - GetSubchannel: MethodDefinition<_grpc_channelz_v1_GetSubchannelRequest, _grpc_channelz_v1_GetSubchannelResponse, _grpc_channelz_v1_GetSubchannelRequest__Output, _grpc_channelz_v1_GetSubchannelResponse__Output>; - GetTopChannels: MethodDefinition<_grpc_channelz_v1_GetTopChannelsRequest, _grpc_channelz_v1_GetTopChannelsResponse, _grpc_channelz_v1_GetTopChannelsRequest__Output, _grpc_channelz_v1_GetTopChannelsResponse__Output>; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js deleted file mode 100644 index 9fdf9fc..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Channelz.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js.map deleted file mode 100644 index 86fafec..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Channelz.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Channelz.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/Channelz.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.d.ts deleted file mode 100644 index 4956cfa..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface GetChannelRequest { - /** - * channel_id is the identifier of the specific channel to get. - */ - 'channel_id'?: (number | string | Long); -} -export interface GetChannelRequest__Output { - /** - * channel_id is the identifier of the specific channel to get. - */ - 'channel_id': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js deleted file mode 100644 index 10948d4..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetChannelRequest.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js.map deleted file mode 100644 index 0ae3f26..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetChannelRequest.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetChannelRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.d.ts deleted file mode 100644 index 2fbab92..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Channel as _grpc_channelz_v1_Channel, Channel__Output as _grpc_channelz_v1_Channel__Output } from '../../../grpc/channelz/v1/Channel'; -export interface GetChannelResponse { - /** - * The Channel that corresponds to the requested channel_id. This field - * should be set. - */ - 'channel'?: (_grpc_channelz_v1_Channel | null); -} -export interface GetChannelResponse__Output { - /** - * The Channel that corresponds to the requested channel_id. This field - * should be set. - */ - 'channel': (_grpc_channelz_v1_Channel__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js deleted file mode 100644 index 02a4426..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetChannelResponse.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js.map deleted file mode 100644 index a3cfefb..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetChannelResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetChannelResponse.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetChannelResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.d.ts deleted file mode 100644 index 1df8503..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface GetServerRequest { - /** - * server_id is the identifier of the specific server to get. - */ - 'server_id'?: (number | string | Long); -} -export interface GetServerRequest__Output { - /** - * server_id is the identifier of the specific server to get. - */ - 'server_id': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js deleted file mode 100644 index 77717b4..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetServerRequest.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js.map deleted file mode 100644 index 86fbba6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetServerRequest.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetServerRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.d.ts deleted file mode 100644 index 2da13dd..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Server as _grpc_channelz_v1_Server, Server__Output as _grpc_channelz_v1_Server__Output } from '../../../grpc/channelz/v1/Server'; -export interface GetServerResponse { - /** - * The Server that corresponds to the requested server_id. This field - * should be set. - */ - 'server'?: (_grpc_channelz_v1_Server | null); -} -export interface GetServerResponse__Output { - /** - * The Server that corresponds to the requested server_id. This field - * should be set. - */ - 'server': (_grpc_channelz_v1_Server__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js deleted file mode 100644 index 130eb1b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetServerResponse.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js.map deleted file mode 100644 index f4b16ff..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetServerResponse.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetServerResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.d.ts deleted file mode 100644 index d810b92..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface GetServerSocketsRequest { - 'server_id'?: (number | string | Long); - /** - * start_socket_id indicates that only sockets at or above this id should be - * included in the results. - * To request the first page, this must be set to 0. To request - * subsequent pages, the client generates this value by adding 1 to - * the highest seen result ID. - */ - 'start_socket_id'?: (number | string | Long); - /** - * If non-zero, the server will return a page of results containing - * at most this many items. If zero, the server will choose a - * reasonable page size. Must never be negative. - */ - 'max_results'?: (number | string | Long); -} -export interface GetServerSocketsRequest__Output { - 'server_id': (string); - /** - * start_socket_id indicates that only sockets at or above this id should be - * included in the results. - * To request the first page, this must be set to 0. To request - * subsequent pages, the client generates this value by adding 1 to - * the highest seen result ID. - */ - 'start_socket_id': (string); - /** - * If non-zero, the server will return a page of results containing - * at most this many items. If zero, the server will choose a - * reasonable page size. Must never be negative. - */ - 'max_results': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js deleted file mode 100644 index 1a15183..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetServerSocketsRequest.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js.map deleted file mode 100644 index 458dd98..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetServerSocketsRequest.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetServerSocketsRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.d.ts deleted file mode 100644 index 4c329ae..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef'; -export interface GetServerSocketsResponse { - /** - * list of socket refs that the connection detail service knows about. Sorted in - * ascending socket_id order. - * Must contain at least 1 result, otherwise 'end' must be true. - */ - 'socket_ref'?: (_grpc_channelz_v1_SocketRef)[]; - /** - * If set, indicates that the list of sockets is the final list. Requesting - * more sockets will only return more if they are created after this RPC - * completes. - */ - 'end'?: (boolean); -} -export interface GetServerSocketsResponse__Output { - /** - * list of socket refs that the connection detail service knows about. Sorted in - * ascending socket_id order. - * Must contain at least 1 result, otherwise 'end' must be true. - */ - 'socket_ref': (_grpc_channelz_v1_SocketRef__Output)[]; - /** - * If set, indicates that the list of sockets is the final list. Requesting - * more sockets will only return more if they are created after this RPC - * completes. - */ - 'end': (boolean); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js deleted file mode 100644 index 29e424f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetServerSocketsResponse.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js.map deleted file mode 100644 index dc99923..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServerSocketsResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetServerSocketsResponse.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetServerSocketsResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.d.ts deleted file mode 100644 index 64ace6e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface GetServersRequest { - /** - * start_server_id indicates that only servers at or above this id should be - * included in the results. - * To request the first page, this must be set to 0. To request - * subsequent pages, the client generates this value by adding 1 to - * the highest seen result ID. - */ - 'start_server_id'?: (number | string | Long); - /** - * If non-zero, the server will return a page of results containing - * at most this many items. If zero, the server will choose a - * reasonable page size. Must never be negative. - */ - 'max_results'?: (number | string | Long); -} -export interface GetServersRequest__Output { - /** - * start_server_id indicates that only servers at or above this id should be - * included in the results. - * To request the first page, this must be set to 0. To request - * subsequent pages, the client generates this value by adding 1 to - * the highest seen result ID. - */ - 'start_server_id': (string); - /** - * If non-zero, the server will return a page of results containing - * at most this many items. If zero, the server will choose a - * reasonable page size. Must never be negative. - */ - 'max_results': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js deleted file mode 100644 index 7371813..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetServersRequest.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js.map deleted file mode 100644 index db7c710..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetServersRequest.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetServersRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.d.ts deleted file mode 100644 index d3840cd..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { Server as _grpc_channelz_v1_Server, Server__Output as _grpc_channelz_v1_Server__Output } from '../../../grpc/channelz/v1/Server'; -export interface GetServersResponse { - /** - * list of servers that the connection detail service knows about. Sorted in - * ascending server_id order. - * Must contain at least 1 result, otherwise 'end' must be true. - */ - 'server'?: (_grpc_channelz_v1_Server)[]; - /** - * If set, indicates that the list of servers is the final list. Requesting - * more servers will only return more if they are created after this RPC - * completes. - */ - 'end'?: (boolean); -} -export interface GetServersResponse__Output { - /** - * list of servers that the connection detail service knows about. Sorted in - * ascending server_id order. - * Must contain at least 1 result, otherwise 'end' must be true. - */ - 'server': (_grpc_channelz_v1_Server__Output)[]; - /** - * If set, indicates that the list of servers is the final list. Requesting - * more servers will only return more if they are created after this RPC - * completes. - */ - 'end': (boolean); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js deleted file mode 100644 index 5124298..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetServersResponse.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js.map deleted file mode 100644 index 74e4bba..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetServersResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetServersResponse.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetServersResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.d.ts deleted file mode 100644 index f80615c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface GetSocketRequest { - /** - * socket_id is the identifier of the specific socket to get. - */ - 'socket_id'?: (number | string | Long); - /** - * If true, the response will contain only high level information - * that is inexpensive to obtain. Fields thay may be omitted are - * documented. - */ - 'summary'?: (boolean); -} -export interface GetSocketRequest__Output { - /** - * socket_id is the identifier of the specific socket to get. - */ - 'socket_id': (string); - /** - * If true, the response will contain only high level information - * that is inexpensive to obtain. Fields thay may be omitted are - * documented. - */ - 'summary': (boolean); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js deleted file mode 100644 index 40ad25b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetSocketRequest.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js.map deleted file mode 100644 index 3b4c180..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetSocketRequest.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetSocketRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.d.ts deleted file mode 100644 index a9795d3..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Socket as _grpc_channelz_v1_Socket, Socket__Output as _grpc_channelz_v1_Socket__Output } from '../../../grpc/channelz/v1/Socket'; -export interface GetSocketResponse { - /** - * The Socket that corresponds to the requested socket_id. This field - * should be set. - */ - 'socket'?: (_grpc_channelz_v1_Socket | null); -} -export interface GetSocketResponse__Output { - /** - * The Socket that corresponds to the requested socket_id. This field - * should be set. - */ - 'socket': (_grpc_channelz_v1_Socket__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js deleted file mode 100644 index ace0ef2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetSocketResponse.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js.map deleted file mode 100644 index 90fada3..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSocketResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetSocketResponse.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetSocketResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.d.ts deleted file mode 100644 index 114a91f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface GetSubchannelRequest { - /** - * subchannel_id is the identifier of the specific subchannel to get. - */ - 'subchannel_id'?: (number | string | Long); -} -export interface GetSubchannelRequest__Output { - /** - * subchannel_id is the identifier of the specific subchannel to get. - */ - 'subchannel_id': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js deleted file mode 100644 index 90f45ea..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetSubchannelRequest.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js.map deleted file mode 100644 index b8f8f62..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetSubchannelRequest.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetSubchannelRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.d.ts deleted file mode 100644 index 455639f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Subchannel as _grpc_channelz_v1_Subchannel, Subchannel__Output as _grpc_channelz_v1_Subchannel__Output } from '../../../grpc/channelz/v1/Subchannel'; -export interface GetSubchannelResponse { - /** - * The Subchannel that corresponds to the requested subchannel_id. This - * field should be set. - */ - 'subchannel'?: (_grpc_channelz_v1_Subchannel | null); -} -export interface GetSubchannelResponse__Output { - /** - * The Subchannel that corresponds to the requested subchannel_id. This - * field should be set. - */ - 'subchannel': (_grpc_channelz_v1_Subchannel__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js deleted file mode 100644 index 52d4111..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetSubchannelResponse.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js.map deleted file mode 100644 index b39861f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetSubchannelResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetSubchannelResponse.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetSubchannelResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.d.ts deleted file mode 100644 index 43049af..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -export interface GetTopChannelsRequest { - /** - * start_channel_id indicates that only channels at or above this id should be - * included in the results. - * To request the first page, this should be set to 0. To request - * subsequent pages, the client generates this value by adding 1 to - * the highest seen result ID. - */ - 'start_channel_id'?: (number | string | Long); - /** - * If non-zero, the server will return a page of results containing - * at most this many items. If zero, the server will choose a - * reasonable page size. Must never be negative. - */ - 'max_results'?: (number | string | Long); -} -export interface GetTopChannelsRequest__Output { - /** - * start_channel_id indicates that only channels at or above this id should be - * included in the results. - * To request the first page, this should be set to 0. To request - * subsequent pages, the client generates this value by adding 1 to - * the highest seen result ID. - */ - 'start_channel_id': (string); - /** - * If non-zero, the server will return a page of results containing - * at most this many items. If zero, the server will choose a - * reasonable page size. Must never be negative. - */ - 'max_results': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js deleted file mode 100644 index 8b3e023..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetTopChannelsRequest.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js.map deleted file mode 100644 index c4ffc68..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetTopChannelsRequest.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetTopChannelsRequest.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.d.ts deleted file mode 100644 index 03f282f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { Channel as _grpc_channelz_v1_Channel, Channel__Output as _grpc_channelz_v1_Channel__Output } from '../../../grpc/channelz/v1/Channel'; -export interface GetTopChannelsResponse { - /** - * list of channels that the connection detail service knows about. Sorted in - * ascending channel_id order. - * Must contain at least 1 result, otherwise 'end' must be true. - */ - 'channel'?: (_grpc_channelz_v1_Channel)[]; - /** - * If set, indicates that the list of channels is the final list. Requesting - * more channels can only return more if they are created after this RPC - * completes. - */ - 'end'?: (boolean); -} -export interface GetTopChannelsResponse__Output { - /** - * list of channels that the connection detail service knows about. Sorted in - * ascending channel_id order. - * Must contain at least 1 result, otherwise 'end' must be true. - */ - 'channel': (_grpc_channelz_v1_Channel__Output)[]; - /** - * If set, indicates that the list of channels is the final list. Requesting - * more channels can only return more if they are created after this RPC - * completes. - */ - 'end': (boolean); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js deleted file mode 100644 index 44f1c91..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=GetTopChannelsResponse.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js.map deleted file mode 100644 index b691e5e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/GetTopChannelsResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GetTopChannelsResponse.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/GetTopChannelsResponse.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.d.ts deleted file mode 100644 index a78e8f8..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -/// <reference types="node" /> -import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any'; -export interface _grpc_channelz_v1_Security_OtherSecurity { - /** - * The human readable version of the value. - */ - 'name'?: (string); - /** - * The actual security details message. - */ - 'value'?: (_google_protobuf_Any | null); -} -export interface _grpc_channelz_v1_Security_OtherSecurity__Output { - /** - * The human readable version of the value. - */ - 'name': (string); - /** - * The actual security details message. - */ - 'value': (_google_protobuf_Any__Output | null); -} -export interface _grpc_channelz_v1_Security_Tls { - /** - * The cipher suite name in the RFC 4346 format: - * https://tools.ietf.org/html/rfc4346#appendix-C - */ - 'standard_name'?: (string); - /** - * Some other way to describe the cipher suite if - * the RFC 4346 name is not available. - */ - 'other_name'?: (string); - /** - * the certificate used by this endpoint. - */ - 'local_certificate'?: (Buffer | Uint8Array | string); - /** - * the certificate used by the remote endpoint. - */ - 'remote_certificate'?: (Buffer | Uint8Array | string); - 'cipher_suite'?: "standard_name" | "other_name"; -} -export interface _grpc_channelz_v1_Security_Tls__Output { - /** - * The cipher suite name in the RFC 4346 format: - * https://tools.ietf.org/html/rfc4346#appendix-C - */ - 'standard_name'?: (string); - /** - * Some other way to describe the cipher suite if - * the RFC 4346 name is not available. - */ - 'other_name'?: (string); - /** - * the certificate used by this endpoint. - */ - 'local_certificate': (Buffer); - /** - * the certificate used by the remote endpoint. - */ - 'remote_certificate': (Buffer); - 'cipher_suite': "standard_name" | "other_name"; -} -/** - * Security represents details about how secure the socket is. - */ -export interface Security { - 'tls'?: (_grpc_channelz_v1_Security_Tls | null); - 'other'?: (_grpc_channelz_v1_Security_OtherSecurity | null); - 'model'?: "tls" | "other"; -} -/** - * Security represents details about how secure the socket is. - */ -export interface Security__Output { - 'tls'?: (_grpc_channelz_v1_Security_Tls__Output | null); - 'other'?: (_grpc_channelz_v1_Security_OtherSecurity__Output | null); - 'model': "tls" | "other"; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js deleted file mode 100644 index 022b367..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Security.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js.map deleted file mode 100644 index 3243c97..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Security.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Security.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/Security.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.d.ts deleted file mode 100644 index 8d984af..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import type { ServerRef as _grpc_channelz_v1_ServerRef, ServerRef__Output as _grpc_channelz_v1_ServerRef__Output } from '../../../grpc/channelz/v1/ServerRef'; -import type { ServerData as _grpc_channelz_v1_ServerData, ServerData__Output as _grpc_channelz_v1_ServerData__Output } from '../../../grpc/channelz/v1/ServerData'; -import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef'; -/** - * Server represents a single server. There may be multiple servers in a single - * program. - */ -export interface Server { - /** - * The identifier for a Server. This should be set. - */ - 'ref'?: (_grpc_channelz_v1_ServerRef | null); - /** - * The associated data of the Server. - */ - 'data'?: (_grpc_channelz_v1_ServerData | null); - /** - * The sockets that the server is listening on. There are no ordering - * guarantees. This may be absent. - */ - 'listen_socket'?: (_grpc_channelz_v1_SocketRef)[]; -} -/** - * Server represents a single server. There may be multiple servers in a single - * program. - */ -export interface Server__Output { - /** - * The identifier for a Server. This should be set. - */ - 'ref': (_grpc_channelz_v1_ServerRef__Output | null); - /** - * The associated data of the Server. - */ - 'data': (_grpc_channelz_v1_ServerData__Output | null); - /** - * The sockets that the server is listening on. There are no ordering - * guarantees. This may be absent. - */ - 'listen_socket': (_grpc_channelz_v1_SocketRef__Output)[]; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js deleted file mode 100644 index b230e4d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Server.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js.map deleted file mode 100644 index 522934d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Server.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/Server.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.d.ts deleted file mode 100644 index 7a2de0f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type { ChannelTrace as _grpc_channelz_v1_ChannelTrace, ChannelTrace__Output as _grpc_channelz_v1_ChannelTrace__Output } from '../../../grpc/channelz/v1/ChannelTrace'; -import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp'; -import type { Long } from '@grpc/proto-loader'; -/** - * ServerData is data for a specific Server. - */ -export interface ServerData { - /** - * A trace of recent events on the server. May be absent. - */ - 'trace'?: (_grpc_channelz_v1_ChannelTrace | null); - /** - * The number of incoming calls started on the server - */ - 'calls_started'?: (number | string | Long); - /** - * The number of incoming calls that have completed with an OK status - */ - 'calls_succeeded'?: (number | string | Long); - /** - * The number of incoming calls that have a completed with a non-OK status - */ - 'calls_failed'?: (number | string | Long); - /** - * The last time a call was started on the server. - */ - 'last_call_started_timestamp'?: (_google_protobuf_Timestamp | null); -} -/** - * ServerData is data for a specific Server. - */ -export interface ServerData__Output { - /** - * A trace of recent events on the server. May be absent. - */ - 'trace': (_grpc_channelz_v1_ChannelTrace__Output | null); - /** - * The number of incoming calls started on the server - */ - 'calls_started': (string); - /** - * The number of incoming calls that have completed with an OK status - */ - 'calls_succeeded': (string); - /** - * The number of incoming calls that have a completed with a non-OK status - */ - 'calls_failed': (string); - /** - * The last time a call was started on the server. - */ - 'last_call_started_timestamp': (_google_protobuf_Timestamp__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js deleted file mode 100644 index 53d92a6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ServerData.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js.map deleted file mode 100644 index b78c5b4..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ServerData.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/ServerData.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.d.ts deleted file mode 100644 index 778b87d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -/** - * ServerRef is a reference to a Server. - */ -export interface ServerRef { - /** - * A globally unique identifier for this server. Must be a positive number. - */ - 'server_id'?: (number | string | Long); - /** - * An optional name associated with the server. - */ - 'name'?: (string); -} -/** - * ServerRef is a reference to a Server. - */ -export interface ServerRef__Output { - /** - * A globally unique identifier for this server. Must be a positive number. - */ - 'server_id': (string); - /** - * An optional name associated with the server. - */ - 'name': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js deleted file mode 100644 index 9a623c7..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ServerRef.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js.map deleted file mode 100644 index 75f5aad..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/ServerRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ServerRef.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/ServerRef.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.d.ts deleted file mode 100644 index 91d4ad8..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef'; -import type { SocketData as _grpc_channelz_v1_SocketData, SocketData__Output as _grpc_channelz_v1_SocketData__Output } from '../../../grpc/channelz/v1/SocketData'; -import type { Address as _grpc_channelz_v1_Address, Address__Output as _grpc_channelz_v1_Address__Output } from '../../../grpc/channelz/v1/Address'; -import type { Security as _grpc_channelz_v1_Security, Security__Output as _grpc_channelz_v1_Security__Output } from '../../../grpc/channelz/v1/Security'; -/** - * Information about an actual connection. Pronounced "sock-ay". - */ -export interface Socket { - /** - * The identifier for the Socket. - */ - 'ref'?: (_grpc_channelz_v1_SocketRef | null); - /** - * Data specific to this Socket. - */ - 'data'?: (_grpc_channelz_v1_SocketData | null); - /** - * The locally bound address. - */ - 'local'?: (_grpc_channelz_v1_Address | null); - /** - * The remote bound address. May be absent. - */ - 'remote'?: (_grpc_channelz_v1_Address | null); - /** - * Security details for this socket. May be absent if not available, or - * there is no security on the socket. - */ - 'security'?: (_grpc_channelz_v1_Security | null); - /** - * Optional, represents the name of the remote endpoint, if different than - * the original target name. - */ - 'remote_name'?: (string); -} -/** - * Information about an actual connection. Pronounced "sock-ay". - */ -export interface Socket__Output { - /** - * The identifier for the Socket. - */ - 'ref': (_grpc_channelz_v1_SocketRef__Output | null); - /** - * Data specific to this Socket. - */ - 'data': (_grpc_channelz_v1_SocketData__Output | null); - /** - * The locally bound address. - */ - 'local': (_grpc_channelz_v1_Address__Output | null); - /** - * The remote bound address. May be absent. - */ - 'remote': (_grpc_channelz_v1_Address__Output | null); - /** - * Security details for this socket. May be absent if not available, or - * there is no security on the socket. - */ - 'security': (_grpc_channelz_v1_Security__Output | null); - /** - * Optional, represents the name of the remote endpoint, if different than - * the original target name. - */ - 'remote_name': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js deleted file mode 100644 index c1e5004..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Socket.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js.map deleted file mode 100644 index d49d9df..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Socket.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Socket.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/Socket.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.d.ts deleted file mode 100644 index 5553cb2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.d.ts +++ /dev/null @@ -1,146 +0,0 @@ -import type { Timestamp as _google_protobuf_Timestamp, Timestamp__Output as _google_protobuf_Timestamp__Output } from '../../../google/protobuf/Timestamp'; -import type { Int64Value as _google_protobuf_Int64Value, Int64Value__Output as _google_protobuf_Int64Value__Output } from '../../../google/protobuf/Int64Value'; -import type { SocketOption as _grpc_channelz_v1_SocketOption, SocketOption__Output as _grpc_channelz_v1_SocketOption__Output } from '../../../grpc/channelz/v1/SocketOption'; -import type { Long } from '@grpc/proto-loader'; -/** - * SocketData is data associated for a specific Socket. The fields present - * are specific to the implementation, so there may be minor differences in - * the semantics. (e.g. flow control windows) - */ -export interface SocketData { - /** - * The number of streams that have been started. - */ - 'streams_started'?: (number | string | Long); - /** - * The number of streams that have ended successfully: - * On client side, received frame with eos bit set; - * On server side, sent frame with eos bit set. - */ - 'streams_succeeded'?: (number | string | Long); - /** - * The number of streams that have ended unsuccessfully: - * On client side, ended without receiving frame with eos bit set; - * On server side, ended without sending frame with eos bit set. - */ - 'streams_failed'?: (number | string | Long); - /** - * The number of grpc messages successfully sent on this socket. - */ - 'messages_sent'?: (number | string | Long); - /** - * The number of grpc messages received on this socket. - */ - 'messages_received'?: (number | string | Long); - /** - * The number of keep alives sent. This is typically implemented with HTTP/2 - * ping messages. - */ - 'keep_alives_sent'?: (number | string | Long); - /** - * The last time a stream was created by this endpoint. Usually unset for - * servers. - */ - 'last_local_stream_created_timestamp'?: (_google_protobuf_Timestamp | null); - /** - * The last time a stream was created by the remote endpoint. Usually unset - * for clients. - */ - 'last_remote_stream_created_timestamp'?: (_google_protobuf_Timestamp | null); - /** - * The last time a message was sent by this endpoint. - */ - 'last_message_sent_timestamp'?: (_google_protobuf_Timestamp | null); - /** - * The last time a message was received by this endpoint. - */ - 'last_message_received_timestamp'?: (_google_protobuf_Timestamp | null); - /** - * The amount of window, granted to the local endpoint by the remote endpoint. - * This may be slightly out of date due to network latency. This does NOT - * include stream level or TCP level flow control info. - */ - 'local_flow_control_window'?: (_google_protobuf_Int64Value | null); - /** - * The amount of window, granted to the remote endpoint by the local endpoint. - * This may be slightly out of date due to network latency. This does NOT - * include stream level or TCP level flow control info. - */ - 'remote_flow_control_window'?: (_google_protobuf_Int64Value | null); - /** - * Socket options set on this socket. May be absent if 'summary' is set - * on GetSocketRequest. - */ - 'option'?: (_grpc_channelz_v1_SocketOption)[]; -} -/** - * SocketData is data associated for a specific Socket. The fields present - * are specific to the implementation, so there may be minor differences in - * the semantics. (e.g. flow control windows) - */ -export interface SocketData__Output { - /** - * The number of streams that have been started. - */ - 'streams_started': (string); - /** - * The number of streams that have ended successfully: - * On client side, received frame with eos bit set; - * On server side, sent frame with eos bit set. - */ - 'streams_succeeded': (string); - /** - * The number of streams that have ended unsuccessfully: - * On client side, ended without receiving frame with eos bit set; - * On server side, ended without sending frame with eos bit set. - */ - 'streams_failed': (string); - /** - * The number of grpc messages successfully sent on this socket. - */ - 'messages_sent': (string); - /** - * The number of grpc messages received on this socket. - */ - 'messages_received': (string); - /** - * The number of keep alives sent. This is typically implemented with HTTP/2 - * ping messages. - */ - 'keep_alives_sent': (string); - /** - * The last time a stream was created by this endpoint. Usually unset for - * servers. - */ - 'last_local_stream_created_timestamp': (_google_protobuf_Timestamp__Output | null); - /** - * The last time a stream was created by the remote endpoint. Usually unset - * for clients. - */ - 'last_remote_stream_created_timestamp': (_google_protobuf_Timestamp__Output | null); - /** - * The last time a message was sent by this endpoint. - */ - 'last_message_sent_timestamp': (_google_protobuf_Timestamp__Output | null); - /** - * The last time a message was received by this endpoint. - */ - 'last_message_received_timestamp': (_google_protobuf_Timestamp__Output | null); - /** - * The amount of window, granted to the local endpoint by the remote endpoint. - * This may be slightly out of date due to network latency. This does NOT - * include stream level or TCP level flow control info. - */ - 'local_flow_control_window': (_google_protobuf_Int64Value__Output | null); - /** - * The amount of window, granted to the remote endpoint by the local endpoint. - * This may be slightly out of date due to network latency. This does NOT - * include stream level or TCP level flow control info. - */ - 'remote_flow_control_window': (_google_protobuf_Int64Value__Output | null); - /** - * Socket options set on this socket. May be absent if 'summary' is set - * on GetSocketRequest. - */ - 'option': (_grpc_channelz_v1_SocketOption__Output)[]; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js deleted file mode 100644 index 40638de..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=SocketData.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js.map deleted file mode 100644 index c17becd..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SocketData.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/SocketData.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.d.ts deleted file mode 100644 index 53c23a2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { Any as _google_protobuf_Any, Any__Output as _google_protobuf_Any__Output } from '../../../google/protobuf/Any'; -/** - * SocketOption represents socket options for a socket. Specifically, these - * are the options returned by getsockopt(). - */ -export interface SocketOption { - /** - * The full name of the socket option. Typically this will be the upper case - * name, such as "SO_REUSEPORT". - */ - 'name'?: (string); - /** - * The human readable value of this socket option. At least one of value or - * additional will be set. - */ - 'value'?: (string); - /** - * Additional data associated with the socket option. At least one of value - * or additional will be set. - */ - 'additional'?: (_google_protobuf_Any | null); -} -/** - * SocketOption represents socket options for a socket. Specifically, these - * are the options returned by getsockopt(). - */ -export interface SocketOption__Output { - /** - * The full name of the socket option. Typically this will be the upper case - * name, such as "SO_REUSEPORT". - */ - 'name': (string); - /** - * The human readable value of this socket option. At least one of value or - * additional will be set. - */ - 'value': (string); - /** - * Additional data associated with the socket option. At least one of value - * or additional will be set. - */ - 'additional': (_google_protobuf_Any__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js deleted file mode 100644 index c459962..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=SocketOption.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js.map deleted file mode 100644 index 6b8bf59..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOption.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SocketOption.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/SocketOption.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.d.ts deleted file mode 100644 index d0fd4b0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../google/protobuf/Duration'; -/** - * For use with SocketOption's additional field. This is primarily used for - * SO_LINGER. - */ -export interface SocketOptionLinger { - /** - * active maps to `struct linger.l_onoff` - */ - 'active'?: (boolean); - /** - * duration maps to `struct linger.l_linger` - */ - 'duration'?: (_google_protobuf_Duration | null); -} -/** - * For use with SocketOption's additional field. This is primarily used for - * SO_LINGER. - */ -export interface SocketOptionLinger__Output { - /** - * active maps to `struct linger.l_onoff` - */ - 'active': (boolean); - /** - * duration maps to `struct linger.l_linger` - */ - 'duration': (_google_protobuf_Duration__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js deleted file mode 100644 index 01028c8..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=SocketOptionLinger.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js.map deleted file mode 100644 index a5283ab..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionLinger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SocketOptionLinger.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/SocketOptionLinger.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.d.ts deleted file mode 100644 index d2457e1..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * For use with SocketOption's additional field. Tcp info for - * SOL_TCP and TCP_INFO. - */ -export interface SocketOptionTcpInfo { - 'tcpi_state'?: (number); - 'tcpi_ca_state'?: (number); - 'tcpi_retransmits'?: (number); - 'tcpi_probes'?: (number); - 'tcpi_backoff'?: (number); - 'tcpi_options'?: (number); - 'tcpi_snd_wscale'?: (number); - 'tcpi_rcv_wscale'?: (number); - 'tcpi_rto'?: (number); - 'tcpi_ato'?: (number); - 'tcpi_snd_mss'?: (number); - 'tcpi_rcv_mss'?: (number); - 'tcpi_unacked'?: (number); - 'tcpi_sacked'?: (number); - 'tcpi_lost'?: (number); - 'tcpi_retrans'?: (number); - 'tcpi_fackets'?: (number); - 'tcpi_last_data_sent'?: (number); - 'tcpi_last_ack_sent'?: (number); - 'tcpi_last_data_recv'?: (number); - 'tcpi_last_ack_recv'?: (number); - 'tcpi_pmtu'?: (number); - 'tcpi_rcv_ssthresh'?: (number); - 'tcpi_rtt'?: (number); - 'tcpi_rttvar'?: (number); - 'tcpi_snd_ssthresh'?: (number); - 'tcpi_snd_cwnd'?: (number); - 'tcpi_advmss'?: (number); - 'tcpi_reordering'?: (number); -} -/** - * For use with SocketOption's additional field. Tcp info for - * SOL_TCP and TCP_INFO. - */ -export interface SocketOptionTcpInfo__Output { - 'tcpi_state': (number); - 'tcpi_ca_state': (number); - 'tcpi_retransmits': (number); - 'tcpi_probes': (number); - 'tcpi_backoff': (number); - 'tcpi_options': (number); - 'tcpi_snd_wscale': (number); - 'tcpi_rcv_wscale': (number); - 'tcpi_rto': (number); - 'tcpi_ato': (number); - 'tcpi_snd_mss': (number); - 'tcpi_rcv_mss': (number); - 'tcpi_unacked': (number); - 'tcpi_sacked': (number); - 'tcpi_lost': (number); - 'tcpi_retrans': (number); - 'tcpi_fackets': (number); - 'tcpi_last_data_sent': (number); - 'tcpi_last_ack_sent': (number); - 'tcpi_last_data_recv': (number); - 'tcpi_last_ack_recv': (number); - 'tcpi_pmtu': (number); - 'tcpi_rcv_ssthresh': (number); - 'tcpi_rtt': (number); - 'tcpi_rttvar': (number); - 'tcpi_snd_ssthresh': (number); - 'tcpi_snd_cwnd': (number); - 'tcpi_advmss': (number); - 'tcpi_reordering': (number); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js deleted file mode 100644 index b663a2e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=SocketOptionTcpInfo.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js.map deleted file mode 100644 index cb68a32..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTcpInfo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SocketOptionTcpInfo.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/SocketOptionTcpInfo.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.d.ts deleted file mode 100644 index b102a34..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Duration as _google_protobuf_Duration, Duration__Output as _google_protobuf_Duration__Output } from '../../../google/protobuf/Duration'; -/** - * For use with SocketOption's additional field. This is primarily used for - * SO_RCVTIMEO and SO_SNDTIMEO - */ -export interface SocketOptionTimeout { - 'duration'?: (_google_protobuf_Duration | null); -} -/** - * For use with SocketOption's additional field. This is primarily used for - * SO_RCVTIMEO and SO_SNDTIMEO - */ -export interface SocketOptionTimeout__Output { - 'duration': (_google_protobuf_Duration__Output | null); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js deleted file mode 100644 index bcef7f5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=SocketOptionTimeout.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js.map deleted file mode 100644 index 73c8085..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketOptionTimeout.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SocketOptionTimeout.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/SocketOptionTimeout.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.d.ts deleted file mode 100644 index 2f34d65..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -/** - * SocketRef is a reference to a Socket. - */ -export interface SocketRef { - /** - * The globally unique id for this socket. Must be a positive number. - */ - 'socket_id'?: (number | string | Long); - /** - * An optional name associated with the socket. - */ - 'name'?: (string); -} -/** - * SocketRef is a reference to a Socket. - */ -export interface SocketRef__Output { - /** - * The globally unique id for this socket. Must be a positive number. - */ - 'socket_id': (string); - /** - * An optional name associated with the socket. - */ - 'name': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js deleted file mode 100644 index a73587f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=SocketRef.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js.map deleted file mode 100644 index d970f9c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SocketRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SocketRef.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/SocketRef.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.d.ts deleted file mode 100644 index 1222cb5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import type { SubchannelRef as _grpc_channelz_v1_SubchannelRef, SubchannelRef__Output as _grpc_channelz_v1_SubchannelRef__Output } from '../../../grpc/channelz/v1/SubchannelRef'; -import type { ChannelData as _grpc_channelz_v1_ChannelData, ChannelData__Output as _grpc_channelz_v1_ChannelData__Output } from '../../../grpc/channelz/v1/ChannelData'; -import type { ChannelRef as _grpc_channelz_v1_ChannelRef, ChannelRef__Output as _grpc_channelz_v1_ChannelRef__Output } from '../../../grpc/channelz/v1/ChannelRef'; -import type { SocketRef as _grpc_channelz_v1_SocketRef, SocketRef__Output as _grpc_channelz_v1_SocketRef__Output } from '../../../grpc/channelz/v1/SocketRef'; -/** - * Subchannel is a logical grouping of channels, subchannels, and sockets. - * A subchannel is load balanced over by it's ancestor - */ -export interface Subchannel { - /** - * The identifier for this channel. - */ - 'ref'?: (_grpc_channelz_v1_SubchannelRef | null); - /** - * Data specific to this channel. - */ - 'data'?: (_grpc_channelz_v1_ChannelData | null); - /** - * There are no ordering guarantees on the order of channel refs. - * There may not be cycles in the ref graph. - * A channel ref may be present in more than one channel or subchannel. - */ - 'channel_ref'?: (_grpc_channelz_v1_ChannelRef)[]; - /** - * At most one of 'channel_ref+subchannel_ref' and 'socket' is set. - * There are no ordering guarantees on the order of subchannel refs. - * There may not be cycles in the ref graph. - * A sub channel ref may be present in more than one channel or subchannel. - */ - 'subchannel_ref'?: (_grpc_channelz_v1_SubchannelRef)[]; - /** - * There are no ordering guarantees on the order of sockets. - */ - 'socket_ref'?: (_grpc_channelz_v1_SocketRef)[]; -} -/** - * Subchannel is a logical grouping of channels, subchannels, and sockets. - * A subchannel is load balanced over by it's ancestor - */ -export interface Subchannel__Output { - /** - * The identifier for this channel. - */ - 'ref': (_grpc_channelz_v1_SubchannelRef__Output | null); - /** - * Data specific to this channel. - */ - 'data': (_grpc_channelz_v1_ChannelData__Output | null); - /** - * There are no ordering guarantees on the order of channel refs. - * There may not be cycles in the ref graph. - * A channel ref may be present in more than one channel or subchannel. - */ - 'channel_ref': (_grpc_channelz_v1_ChannelRef__Output)[]; - /** - * At most one of 'channel_ref+subchannel_ref' and 'socket' is set. - * There are no ordering guarantees on the order of subchannel refs. - * There may not be cycles in the ref graph. - * A sub channel ref may be present in more than one channel or subchannel. - */ - 'subchannel_ref': (_grpc_channelz_v1_SubchannelRef__Output)[]; - /** - * There are no ordering guarantees on the order of sockets. - */ - 'socket_ref': (_grpc_channelz_v1_SocketRef__Output)[]; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js deleted file mode 100644 index 6a5e543..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Subchannel.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js.map deleted file mode 100644 index 6441346..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/Subchannel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subchannel.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/Subchannel.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.d.ts deleted file mode 100644 index 290fc85..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { Long } from '@grpc/proto-loader'; -/** - * SubchannelRef is a reference to a Subchannel. - */ -export interface SubchannelRef { - /** - * The globally unique id for this subchannel. Must be a positive number. - */ - 'subchannel_id'?: (number | string | Long); - /** - * An optional name associated with the subchannel. - */ - 'name'?: (string); -} -/** - * SubchannelRef is a reference to a Subchannel. - */ -export interface SubchannelRef__Output { - /** - * The globally unique id for this subchannel. Must be a positive number. - */ - 'subchannel_id': (string); - /** - * An optional name associated with the subchannel. - */ - 'name': (string); -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js deleted file mode 100644 index 68520f9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -// Original file: proto/channelz.proto -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=SubchannelRef.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js.map deleted file mode 100644 index 1e4b009..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/SubchannelRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubchannelRef.js","sourceRoot":"","sources":["../../../../../../src/generated/grpc/channelz/v1/SubchannelRef.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.d.ts deleted file mode 100644 index 345e42c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// <reference types="node" /> -/// <reference types="node" /> -import { Socket } from 'net'; -import * as tls from 'tls'; -import { SubchannelAddress } from './subchannel-address'; -import { ChannelOptions } from './channel-options'; -import { GrpcUri } from './uri-parser'; -export interface ProxyMapResult { - target: GrpcUri; - extraOptions: ChannelOptions; -} -export declare function mapProxyName(target: GrpcUri, options: ChannelOptions): ProxyMapResult; -export interface ProxyConnectionResult { - socket?: Socket; - realTarget?: GrpcUri; -} -export declare function getProxiedConnection(address: SubchannelAddress, channelOptions: ChannelOptions, connectionOptions: tls.ConnectionOptions): Promise<ProxyConnectionResult>; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.js deleted file mode 100644 index 67fc1e2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.js +++ /dev/null @@ -1,260 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getProxiedConnection = exports.mapProxyName = void 0; -const logging_1 = require("./logging"); -const constants_1 = require("./constants"); -const resolver_1 = require("./resolver"); -const http = require("http"); -const tls = require("tls"); -const logging = require("./logging"); -const subchannel_address_1 = require("./subchannel-address"); -const uri_parser_1 = require("./uri-parser"); -const url_1 = require("url"); -const resolver_dns_1 = require("./resolver-dns"); -const TRACER_NAME = 'proxy'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -function getProxyInfo() { - let proxyEnv = ''; - let envVar = ''; - /* Prefer using 'grpc_proxy'. Fallback on 'http_proxy' if it is not set. - * Also prefer using 'https_proxy' with fallback on 'http_proxy'. The - * fallback behavior can be removed if there's a demand for it. - */ - if (process.env.grpc_proxy) { - envVar = 'grpc_proxy'; - proxyEnv = process.env.grpc_proxy; - } - else if (process.env.https_proxy) { - envVar = 'https_proxy'; - proxyEnv = process.env.https_proxy; - } - else if (process.env.http_proxy) { - envVar = 'http_proxy'; - proxyEnv = process.env.http_proxy; - } - else { - return {}; - } - let proxyUrl; - try { - proxyUrl = new url_1.URL(proxyEnv); - } - catch (e) { - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, `cannot parse value of "${envVar}" env var`); - return {}; - } - if (proxyUrl.protocol !== 'http:') { - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, `"${proxyUrl.protocol}" scheme not supported in proxy URI`); - return {}; - } - let userCred = null; - if (proxyUrl.username) { - if (proxyUrl.password) { - (0, logging_1.log)(constants_1.LogVerbosity.INFO, 'userinfo found in proxy URI'); - userCred = `${proxyUrl.username}:${proxyUrl.password}`; - } - else { - userCred = proxyUrl.username; - } - } - const hostname = proxyUrl.hostname; - let port = proxyUrl.port; - /* The proxy URL uses the scheme "http:", which has a default port number of - * 80. We need to set that explicitly here if it is omitted because otherwise - * it will use gRPC's default port 443. */ - if (port === '') { - port = '80'; - } - const result = { - address: `${hostname}:${port}`, - }; - if (userCred) { - result.creds = userCred; - } - trace('Proxy server ' + result.address + ' set by environment variable ' + envVar); - return result; -} -function getNoProxyHostList() { - /* Prefer using 'no_grpc_proxy'. Fallback on 'no_proxy' if it is not set. */ - let noProxyStr = process.env.no_grpc_proxy; - let envVar = 'no_grpc_proxy'; - if (!noProxyStr) { - noProxyStr = process.env.no_proxy; - envVar = 'no_proxy'; - } - if (noProxyStr) { - trace('No proxy server list set by environment variable ' + envVar); - return noProxyStr.split(','); - } - else { - return []; - } -} -function mapProxyName(target, options) { - var _a; - const noProxyResult = { - target: target, - extraOptions: {}, - }; - if (((_a = options['grpc.enable_http_proxy']) !== null && _a !== void 0 ? _a : 1) === 0) { - return noProxyResult; - } - if (target.scheme === 'unix') { - return noProxyResult; - } - const proxyInfo = getProxyInfo(); - if (!proxyInfo.address) { - return noProxyResult; - } - const hostPort = (0, uri_parser_1.splitHostPort)(target.path); - if (!hostPort) { - return noProxyResult; - } - const serverHost = hostPort.host; - for (const host of getNoProxyHostList()) { - if (host === serverHost) { - trace('Not using proxy for target in no_proxy list: ' + (0, uri_parser_1.uriToString)(target)); - return noProxyResult; - } - } - const extraOptions = { - 'grpc.http_connect_target': (0, uri_parser_1.uriToString)(target), - }; - if (proxyInfo.creds) { - extraOptions['grpc.http_connect_creds'] = proxyInfo.creds; - } - return { - target: { - scheme: 'dns', - path: proxyInfo.address, - }, - extraOptions: extraOptions, - }; -} -exports.mapProxyName = mapProxyName; -function getProxiedConnection(address, channelOptions, connectionOptions) { - var _a; - if (!('grpc.http_connect_target' in channelOptions)) { - return Promise.resolve({}); - } - const realTarget = channelOptions['grpc.http_connect_target']; - const parsedTarget = (0, uri_parser_1.parseUri)(realTarget); - if (parsedTarget === null) { - return Promise.resolve({}); - } - const splitHostPost = (0, uri_parser_1.splitHostPort)(parsedTarget.path); - if (splitHostPost === null) { - return Promise.resolve({}); - } - const hostPort = `${splitHostPost.host}:${(_a = splitHostPost.port) !== null && _a !== void 0 ? _a : resolver_dns_1.DEFAULT_PORT}`; - const options = { - method: 'CONNECT', - path: hostPort, - }; - const headers = { - Host: hostPort, - }; - // Connect to the subchannel address as a proxy - if ((0, subchannel_address_1.isTcpSubchannelAddress)(address)) { - options.host = address.host; - options.port = address.port; - } - else { - options.socketPath = address.path; - } - if ('grpc.http_connect_creds' in channelOptions) { - headers['Proxy-Authorization'] = - 'Basic ' + - Buffer.from(channelOptions['grpc.http_connect_creds']).toString('base64'); - } - options.headers = headers; - const proxyAddressString = (0, subchannel_address_1.subchannelAddressToString)(address); - trace('Using proxy ' + proxyAddressString + ' to connect to ' + options.path); - return new Promise((resolve, reject) => { - const request = http.request(options); - request.once('connect', (res, socket, head) => { - var _a; - request.removeAllListeners(); - socket.removeAllListeners(); - if (res.statusCode === 200) { - trace('Successfully connected to ' + - options.path + - ' through proxy ' + - proxyAddressString); - if ('secureContext' in connectionOptions) { - /* The proxy is connecting to a TLS server, so upgrade this socket - * connection to a TLS connection. - * This is a workaround for https://github.com/nodejs/node/issues/32922 - * See https://github.com/grpc/grpc-node/pull/1369 for more info. */ - const targetPath = (0, resolver_1.getDefaultAuthority)(parsedTarget); - const hostPort = (0, uri_parser_1.splitHostPort)(targetPath); - const remoteHost = (_a = hostPort === null || hostPort === void 0 ? void 0 : hostPort.host) !== null && _a !== void 0 ? _a : targetPath; - const cts = tls.connect(Object.assign({ host: remoteHost, servername: remoteHost, socket: socket }, connectionOptions), () => { - trace('Successfully established a TLS connection to ' + - options.path + - ' through proxy ' + - proxyAddressString); - resolve({ socket: cts, realTarget: parsedTarget }); - }); - cts.on('error', (error) => { - trace('Failed to establish a TLS connection to ' + - options.path + - ' through proxy ' + - proxyAddressString + - ' with error ' + - error.message); - reject(); - }); - } - else { - trace('Successfully established a plaintext connection to ' + - options.path + - ' through proxy ' + - proxyAddressString); - resolve({ - socket, - realTarget: parsedTarget, - }); - } - } - else { - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to connect to ' + - options.path + - ' through proxy ' + - proxyAddressString + - ' with status ' + - res.statusCode); - reject(); - } - }); - request.once('error', err => { - request.removeAllListeners(); - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to connect to proxy ' + - proxyAddressString + - ' with error ' + - err.message); - reject(); - }); - request.end(); - }); -} -exports.getProxiedConnection = getProxiedConnection; -//# sourceMappingURL=http_proxy.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.js.map deleted file mode 100644 index 82df262..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/http_proxy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"http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C,OAAO,EAAE,GAAG,CAAC,EAAE;YAC1B,OAAO,CAAC,kBAAkB,EAAE,CAAC;YAC7B,IAAA,aAAG,EACD,wBAAY,CAAC,KAAK,EAClB,6BAA6B;gBAC3B,kBAAkB;gBAClB,cAAc;gBACd,GAAG,CAAC,OAAO,CACd,CAAC;YACF,MAAM,EAAE,CAAC;QACX,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC;AAnID,oDAmIC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/index.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/index.d.ts deleted file mode 100644 index 5842a1b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/index.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -/// <reference types="node" /> -import { ClientDuplexStream, ClientReadableStream, ClientUnaryCall, ClientWritableStream, ServiceError } from './call'; -import { CallCredentials, OAuth2Client } from './call-credentials'; -import { StatusObject } from './call-interface'; -import { Channel, ChannelImplementation } from './channel'; -import { CompressionAlgorithms } from './compression-algorithms'; -import { ConnectivityState } from './connectivity-state'; -import { ChannelCredentials } from './channel-credentials'; -import { CallOptions, Client, ClientOptions, CallInvocationTransformer, CallProperties, UnaryCallback } from './client'; -import { LogVerbosity, Status, Propagate } from './constants'; -import { Deserialize, loadPackageDefinition, makeClientConstructor, MethodDefinition, Serialize, ServiceDefinition } from './make-client'; -import { Metadata, MetadataOptions, MetadataValue } from './metadata'; -import { Server, UntypedHandleCall, UntypedServiceImplementation } from './server'; -import { KeyCertPair, ServerCredentials } from './server-credentials'; -import { StatusBuilder } from './status-builder'; -import { handleBidiStreamingCall, handleServerStreamingCall, handleClientStreamingCall, handleUnaryCall, sendUnaryData, ServerUnaryCall, ServerReadableStream, ServerWritableStream, ServerDuplexStream, ServerErrorResponse } from './server-call'; -export { OAuth2Client }; -/**** Client Credentials ****/ -export declare const credentials: { - /** - * Combine a ChannelCredentials with any number of CallCredentials into a - * single ChannelCredentials object. - * @param channelCredentials The ChannelCredentials object. - * @param callCredentials Any number of CallCredentials objects. - * @return The resulting ChannelCredentials object. - */ - combineChannelCredentials: (channelCredentials: ChannelCredentials, ...callCredentials: CallCredentials[]) => ChannelCredentials; - /** - * Combine any number of CallCredentials into a single CallCredentials - * object. - * @param first The first CallCredentials object. - * @param additional Any number of additional CallCredentials objects. - * @return The resulting CallCredentials object. - */ - combineCallCredentials: (first: CallCredentials, ...additional: CallCredentials[]) => CallCredentials; - createInsecure: typeof ChannelCredentials.createInsecure; - createSsl: typeof ChannelCredentials.createSsl; - createFromSecureContext: typeof ChannelCredentials.createFromSecureContext; - createFromMetadataGenerator: typeof CallCredentials.createFromMetadataGenerator; - createFromGoogleCredential: typeof CallCredentials.createFromGoogleCredential; - createEmpty: typeof CallCredentials.createEmpty; -}; -/**** Metadata ****/ -export { Metadata, MetadataOptions, MetadataValue }; -/**** Constants ****/ -export { LogVerbosity as logVerbosity, Status as status, ConnectivityState as connectivityState, Propagate as propagate, CompressionAlgorithms as compressionAlgorithms, }; -/**** Client ****/ -export { Client, ClientOptions, loadPackageDefinition, makeClientConstructor, makeClientConstructor as makeGenericClientConstructor, CallProperties, CallInvocationTransformer, ChannelImplementation as Channel, Channel as ChannelInterface, UnaryCallback as requestCallback, }; -/** - * Close a Client object. - * @param client The client to close. - */ -export declare const closeClient: (client: Client) => void; -export declare const waitForClientReady: (client: Client, deadline: Date | number, callback: (error?: Error) => void) => void; -export { sendUnaryData, ChannelCredentials, CallCredentials, Deadline, Serialize as serialize, Deserialize as deserialize, ClientUnaryCall, ClientReadableStream, ClientWritableStream, ClientDuplexStream, CallOptions, MethodDefinition, StatusObject, ServiceError, ServerUnaryCall, ServerReadableStream, ServerWritableStream, ServerDuplexStream, ServerErrorResponse, ServiceDefinition, UntypedHandleCall, UntypedServiceImplementation, }; -/**** Server ****/ -export { handleBidiStreamingCall, handleServerStreamingCall, handleUnaryCall, handleClientStreamingCall, }; -export type Call = ClientUnaryCall | ClientReadableStream<any> | ClientWritableStream<any> | ClientDuplexStream<any, any>; -/**** Unimplemented function stubs ****/ -export declare const loadObject: (value: any, options: any) => never; -export declare const load: (filename: any, format: any, options: any) => never; -export declare const setLogger: (logger: Partial<Console>) => void; -export declare const setLogVerbosity: (verbosity: LogVerbosity) => void; -export { Server }; -export { ServerCredentials }; -export { KeyCertPair }; -export declare const getClientChannel: (client: Client) => Channel; -export { StatusBuilder }; -export { Listener, InterceptingListener } from './call-interface'; -export { Requester, ListenerBuilder, RequesterBuilder, Interceptor, InterceptorOptions, InterceptorProvider, InterceptingCall, InterceptorConfigurationError, NextCall, } from './client-interceptors'; -export { GrpcObject, ServiceClientConstructor, ProtobufTypeDefinition, } from './make-client'; -export { ChannelOptions } from './channel-options'; -export { getChannelzServiceDefinition, getChannelzHandlers } from './channelz'; -export { addAdminServicesToServer } from './admin'; -import * as experimental from './experimental'; -export { experimental }; -import { Deadline } from './deadline'; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/index.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/index.js deleted file mode 100644 index 7a7821d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/index.js +++ /dev/null @@ -1,140 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.experimental = exports.addAdminServicesToServer = exports.getChannelzHandlers = exports.getChannelzServiceDefinition = exports.InterceptorConfigurationError = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.StatusBuilder = exports.getClientChannel = exports.ServerCredentials = exports.Server = exports.setLogVerbosity = exports.setLogger = exports.load = exports.loadObject = exports.CallCredentials = exports.ChannelCredentials = exports.waitForClientReady = exports.closeClient = exports.Channel = exports.makeGenericClientConstructor = exports.makeClientConstructor = exports.loadPackageDefinition = exports.Client = exports.compressionAlgorithms = exports.propagate = exports.connectivityState = exports.status = exports.logVerbosity = exports.Metadata = exports.credentials = void 0; -const call_credentials_1 = require("./call-credentials"); -Object.defineProperty(exports, "CallCredentials", { enumerable: true, get: function () { return call_credentials_1.CallCredentials; } }); -const channel_1 = require("./channel"); -Object.defineProperty(exports, "Channel", { enumerable: true, get: function () { return channel_1.ChannelImplementation; } }); -const compression_algorithms_1 = require("./compression-algorithms"); -Object.defineProperty(exports, "compressionAlgorithms", { enumerable: true, get: function () { return compression_algorithms_1.CompressionAlgorithms; } }); -const connectivity_state_1 = require("./connectivity-state"); -Object.defineProperty(exports, "connectivityState", { enumerable: true, get: function () { return connectivity_state_1.ConnectivityState; } }); -const channel_credentials_1 = require("./channel-credentials"); -Object.defineProperty(exports, "ChannelCredentials", { enumerable: true, get: function () { return channel_credentials_1.ChannelCredentials; } }); -const client_1 = require("./client"); -Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_1.Client; } }); -const constants_1 = require("./constants"); -Object.defineProperty(exports, "logVerbosity", { enumerable: true, get: function () { return constants_1.LogVerbosity; } }); -Object.defineProperty(exports, "status", { enumerable: true, get: function () { return constants_1.Status; } }); -Object.defineProperty(exports, "propagate", { enumerable: true, get: function () { return constants_1.Propagate; } }); -const logging = require("./logging"); -const make_client_1 = require("./make-client"); -Object.defineProperty(exports, "loadPackageDefinition", { enumerable: true, get: function () { return make_client_1.loadPackageDefinition; } }); -Object.defineProperty(exports, "makeClientConstructor", { enumerable: true, get: function () { return make_client_1.makeClientConstructor; } }); -Object.defineProperty(exports, "makeGenericClientConstructor", { enumerable: true, get: function () { return make_client_1.makeClientConstructor; } }); -const metadata_1 = require("./metadata"); -Object.defineProperty(exports, "Metadata", { enumerable: true, get: function () { return metadata_1.Metadata; } }); -const server_1 = require("./server"); -Object.defineProperty(exports, "Server", { enumerable: true, get: function () { return server_1.Server; } }); -const server_credentials_1 = require("./server-credentials"); -Object.defineProperty(exports, "ServerCredentials", { enumerable: true, get: function () { return server_credentials_1.ServerCredentials; } }); -const status_builder_1 = require("./status-builder"); -Object.defineProperty(exports, "StatusBuilder", { enumerable: true, get: function () { return status_builder_1.StatusBuilder; } }); -/**** Client Credentials ****/ -// Using assign only copies enumerable properties, which is what we want -exports.credentials = { - /** - * Combine a ChannelCredentials with any number of CallCredentials into a - * single ChannelCredentials object. - * @param channelCredentials The ChannelCredentials object. - * @param callCredentials Any number of CallCredentials objects. - * @return The resulting ChannelCredentials object. - */ - combineChannelCredentials: (channelCredentials, ...callCredentials) => { - return callCredentials.reduce((acc, other) => acc.compose(other), channelCredentials); - }, - /** - * Combine any number of CallCredentials into a single CallCredentials - * object. - * @param first The first CallCredentials object. - * @param additional Any number of additional CallCredentials objects. - * @return The resulting CallCredentials object. - */ - combineCallCredentials: (first, ...additional) => { - return additional.reduce((acc, other) => acc.compose(other), first); - }, - // from channel-credentials.ts - createInsecure: channel_credentials_1.ChannelCredentials.createInsecure, - createSsl: channel_credentials_1.ChannelCredentials.createSsl, - createFromSecureContext: channel_credentials_1.ChannelCredentials.createFromSecureContext, - // from call-credentials.ts - createFromMetadataGenerator: call_credentials_1.CallCredentials.createFromMetadataGenerator, - createFromGoogleCredential: call_credentials_1.CallCredentials.createFromGoogleCredential, - createEmpty: call_credentials_1.CallCredentials.createEmpty, -}; -/** - * Close a Client object. - * @param client The client to close. - */ -const closeClient = (client) => client.close(); -exports.closeClient = closeClient; -const waitForClientReady = (client, deadline, callback) => client.waitForReady(deadline, callback); -exports.waitForClientReady = waitForClientReady; -/* eslint-enable @typescript-eslint/no-explicit-any */ -/**** Unimplemented function stubs ****/ -/* eslint-disable @typescript-eslint/no-explicit-any */ -const loadObject = (value, options) => { - throw new Error('Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'); -}; -exports.loadObject = loadObject; -const load = (filename, format, options) => { - throw new Error('Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'); -}; -exports.load = load; -const setLogger = (logger) => { - logging.setLogger(logger); -}; -exports.setLogger = setLogger; -const setLogVerbosity = (verbosity) => { - logging.setLoggerVerbosity(verbosity); -}; -exports.setLogVerbosity = setLogVerbosity; -const getClientChannel = (client) => { - return client_1.Client.prototype.getChannel.call(client); -}; -exports.getClientChannel = getClientChannel; -var client_interceptors_1 = require("./client-interceptors"); -Object.defineProperty(exports, "ListenerBuilder", { enumerable: true, get: function () { return client_interceptors_1.ListenerBuilder; } }); -Object.defineProperty(exports, "RequesterBuilder", { enumerable: true, get: function () { return client_interceptors_1.RequesterBuilder; } }); -Object.defineProperty(exports, "InterceptingCall", { enumerable: true, get: function () { return client_interceptors_1.InterceptingCall; } }); -Object.defineProperty(exports, "InterceptorConfigurationError", { enumerable: true, get: function () { return client_interceptors_1.InterceptorConfigurationError; } }); -var channelz_1 = require("./channelz"); -Object.defineProperty(exports, "getChannelzServiceDefinition", { enumerable: true, get: function () { return channelz_1.getChannelzServiceDefinition; } }); -Object.defineProperty(exports, "getChannelzHandlers", { enumerable: true, get: function () { return channelz_1.getChannelzHandlers; } }); -var admin_1 = require("./admin"); -Object.defineProperty(exports, "addAdminServicesToServer", { enumerable: true, get: function () { return admin_1.addAdminServicesToServer; } }); -const experimental = require("./experimental"); -exports.experimental = experimental; -const resolver_dns = require("./resolver-dns"); -const resolver_uds = require("./resolver-uds"); -const resolver_ip = require("./resolver-ip"); -const load_balancer_pick_first = require("./load-balancer-pick-first"); -const load_balancer_round_robin = require("./load-balancer-round-robin"); -const load_balancer_outlier_detection = require("./load-balancer-outlier-detection"); -const channelz = require("./channelz"); -(() => { - resolver_dns.setup(); - resolver_uds.setup(); - resolver_ip.setup(); - load_balancer_pick_first.setup(); - load_balancer_round_robin.setup(); - load_balancer_outlier_detection.setup(); - channelz.setup(); -})(); -//# sourceMappingURL=index.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/index.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/index.js.map deleted file mode 100644 index 439aec5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AASH,yDAAmE;AA4IjE,gGA5IO,kCAAe,OA4IP;AA1IjB,uCAA2D;AAoHhC,wFApHT,+BAAqB,OAoHL;AAnHlC,qEAAiE;AAqGtC,sGArGlB,8CAAqB,OAqGkB;AApGhD,6DAAyD;AAkGlC,kGAlGd,sCAAiB,OAkGc;AAjGxC,+DAA2D;AAsIzD,mGAtIO,wCAAkB,OAsIP;AArIpB,qCAOkB;AAkGhB,uFAvGA,eAAM,OAuGA;AAjGR,2CAA8D;AAsF5C,6FAtFT,wBAAY,OAsFS;AAClB,uFAvFW,kBAAM,OAuFX;AAEH,0FAzFgB,qBAAS,OAyFhB;AAxFxB,qCAAqC;AACrC,+CAOuB;AA0FrB,sGA/FA,mCAAqB,OA+FA;AACrB,sGA/FA,mCAAqB,OA+FA;AACI,6GAhGzB,mCAAqB,OAgGgC;AA3FvD,yCAAsE;AAuE7D,yFAvEA,mBAAQ,OAuEA;AAtEjB,qCAIkB;AA8KT,uFAjLP,eAAM,OAiLO;AA7Kf,6DAAsE;AA8K7D,kGA9Ka,sCAAiB,OA8Kb;AA7K1B,qDAAiD;AAoLxC,8FApLA,8BAAa,OAoLA;AApKtB,8BAA8B;AAE9B,wEAAwE;AAC3D,QAAA,WAAW,GAAG;IACzB;;;;;;OAMG;IACH,yBAAyB,EAAE,CACzB,kBAAsC,EACtC,GAAG,eAAkC,EACjB,EAAE;QACtB,OAAO,eAAe,CAAC,MAAM,CAC3B,CAAC,GAAG,EAAE,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ules/@grpc/grpc-js/build/src/internal-channel.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/internal-channel.d.ts deleted file mode 100644 index 7dee784..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/internal-channel.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { ChannelCredentials } from './channel-credentials'; -import { ChannelOptions } from './channel-options'; -import { Metadata } from './metadata'; -import { CallConfig } from './resolver'; -import { ServerSurfaceCall } from './server-call'; -import { ConnectivityState } from './connectivity-state'; -import { ChannelRef } from './channelz'; -import { LoadBalancingCall } from './load-balancing-call'; -import { CallCredentials } from './call-credentials'; -import { Call, StatusObject } from './call-interface'; -import { Deadline } from './deadline'; -import { ResolvingCall } from './resolving-call'; -import { RetryingCall } from './retrying-call'; -import { BaseSubchannelWrapper, SubchannelInterface } from './subchannel-interface'; -interface NoneConfigResult { - type: 'NONE'; -} -interface SuccessConfigResult { - type: 'SUCCESS'; - config: CallConfig; -} -interface ErrorConfigResult { - type: 'ERROR'; - error: StatusObject; -} -type GetConfigResult = NoneConfigResult | SuccessConfigResult | ErrorConfigResult; -declare class ChannelSubchannelWrapper extends BaseSubchannelWrapper implements SubchannelInterface { - private channel; - private refCount; - private subchannelStateListener; - constructor(childSubchannel: SubchannelInterface, channel: InternalChannel); - ref(): void; - unref(): void; -} -export declare class InternalChannel { - private readonly credentials; - private readonly options; - private readonly resolvingLoadBalancer; - private readonly subchannelPool; - private connectivityState; - private currentPicker; - /** - * Calls queued up to get a call config. Should only be populated before the - * first time the resolver returns a result, which includes the ConfigSelector. - */ - private configSelectionQueue; - private pickQueue; - private connectivityStateWatchers; - private readonly defaultAuthority; - private readonly filterStackFactory; - private readonly target; - /** - * This timer does not do anything on its own. Its purpose is to hold the - * event loop open while there are any pending calls for the channel that - * have not yet been assigned to specific subchannels. In other words, - * the invariant is that callRefTimer is reffed if and only if pickQueue - * is non-empty. - */ - private readonly callRefTimer; - private configSelector; - /** - * This is the error from the name resolver if it failed most recently. It - * is only used to end calls that start while there is no config selector - * and the name resolver is in backoff, so it should be nulled if - * configSelector becomes set or the channel state becomes anything other - * than TRANSIENT_FAILURE. - */ - private currentResolutionError; - private readonly retryBufferTracker; - private keepaliveTime; - private readonly wrappedSubchannels; - private callCount; - private idleTimer; - private readonly idleTimeoutMs; - private lastActivityTimestamp; - private readonly channelzEnabled; - private readonly originalTarget; - private readonly channelzRef; - private readonly channelzTrace; - private readonly callTracker; - private readonly childrenTracker; - constructor(target: string, credentials: ChannelCredentials, options: ChannelOptions); - private getChannelzInfo; - private trace; - private callRefTimerRef; - private callRefTimerUnref; - private removeConnectivityStateWatcher; - private updateState; - throttleKeepalive(newKeepaliveTime: number): void; - removeWrappedSubchannel(wrappedSubchannel: ChannelSubchannelWrapper): void; - doPick(metadata: Metadata, extraPickInfo: { - [key: string]: string; - }): import("./picker").PickResult; - queueCallForPick(call: LoadBalancingCall): void; - getConfig(method: string, metadata: Metadata): GetConfigResult; - queueCallForConfig(call: ResolvingCall): void; - private enterIdle; - private startIdleTimeout; - private maybeStartIdleTimer; - private onCallStart; - private onCallEnd; - createLoadBalancingCall(callConfig: CallConfig, method: string, host: string, credentials: CallCredentials, deadline: Deadline): LoadBalancingCall; - createRetryingCall(callConfig: CallConfig, method: string, host: string, credentials: CallCredentials, deadline: Deadline): RetryingCall; - createInnerCall(callConfig: CallConfig, method: string, host: string, credentials: CallCredentials, deadline: Deadline): Call; - createResolvingCall(method: string, deadline: Deadline, host: string | null | undefined, parentCall: ServerSurfaceCall | null, propagateFlags: number | null | undefined): ResolvingCall; - close(): void; - getTarget(): string; - getConnectivityState(tryToConnect: boolean): ConnectivityState; - watchConnectivityState(currentState: ConnectivityState, deadline: Date | number, callback: (error?: Error) => void): void; - /** - * Get the channelz reference object for this channel. The returned value is - * garbage if channelz is disabled for this channel. - * @returns - */ - getChannelzRef(): ChannelRef; - createCall(method: string, deadline: Deadline, host: string | null | undefined, parentCall: ServerSurfaceCall | null, propagateFlags: number | null | undefined): Call; -} -export {}; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/internal-channel.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/internal-channel.js deleted file mode 100644 index 535aba2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/internal-channel.js +++ /dev/null @@ -1,533 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InternalChannel = void 0; -const channel_credentials_1 = require("./channel-credentials"); -const resolving_load_balancer_1 = require("./resolving-load-balancer"); -const subchannel_pool_1 = require("./subchannel-pool"); -const picker_1 = require("./picker"); -const constants_1 = require("./constants"); -const filter_stack_1 = require("./filter-stack"); -const compression_filter_1 = require("./compression-filter"); -const resolver_1 = require("./resolver"); -const logging_1 = require("./logging"); -const http_proxy_1 = require("./http_proxy"); -const uri_parser_1 = require("./uri-parser"); -const connectivity_state_1 = require("./connectivity-state"); -const channelz_1 = require("./channelz"); -const load_balancing_call_1 = require("./load-balancing-call"); -const deadline_1 = require("./deadline"); -const resolving_call_1 = require("./resolving-call"); -const call_number_1 = require("./call-number"); -const control_plane_status_1 = require("./control-plane-status"); -const retrying_call_1 = require("./retrying-call"); -const subchannel_interface_1 = require("./subchannel-interface"); -/** - * See https://nodejs.org/api/timers.html#timers_setinterval_callback_delay_args - */ -const MAX_TIMEOUT_TIME = 2147483647; -const MIN_IDLE_TIMEOUT_MS = 1000; -// 30 minutes -const DEFAULT_IDLE_TIMEOUT_MS = 30 * 60 * 1000; -const RETRY_THROTTLER_MAP = new Map(); -const DEFAULT_RETRY_BUFFER_SIZE_BYTES = 1 << 24; // 16 MB -const DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES = 1 << 20; // 1 MB -class ChannelSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { - constructor(childSubchannel, channel) { - super(childSubchannel); - this.channel = channel; - this.refCount = 0; - this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime) => { - channel.throttleKeepalive(keepaliveTime); - }; - childSubchannel.addConnectivityStateListener(this.subchannelStateListener); - } - ref() { - this.child.ref(); - this.refCount += 1; - } - unref() { - this.child.unref(); - this.refCount -= 1; - if (this.refCount <= 0) { - this.child.removeConnectivityStateListener(this.subchannelStateListener); - this.channel.removeWrappedSubchannel(this); - } - } -} -class InternalChannel { - constructor(target, credentials, options) { - var _a, _b, _c, _d, _e, _f, _g, _h; - this.credentials = credentials; - this.options = options; - this.connectivityState = connectivity_state_1.ConnectivityState.IDLE; - this.currentPicker = new picker_1.UnavailablePicker(); - /** - * Calls queued up to get a call config. Should only be populated before the - * first time the resolver returns a result, which includes the ConfigSelector. - */ - this.configSelectionQueue = []; - this.pickQueue = []; - this.connectivityStateWatchers = []; - this.configSelector = null; - /** - * This is the error from the name resolver if it failed most recently. It - * is only used to end calls that start while there is no config selector - * and the name resolver is in backoff, so it should be nulled if - * configSelector becomes set or the channel state becomes anything other - * than TRANSIENT_FAILURE. - */ - this.currentResolutionError = null; - this.wrappedSubchannels = new Set(); - this.callCount = 0; - this.idleTimer = null; - // Channelz info - this.channelzEnabled = true; - this.callTracker = new channelz_1.ChannelzCallTracker(); - this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); - if (typeof target !== 'string') { - throw new TypeError('Channel target must be a string'); - } - if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) { - throw new TypeError('Channel credentials must be a ChannelCredentials object'); - } - if (options) { - if (typeof options !== 'object') { - throw new TypeError('Channel options must be an object'); - } - } - this.originalTarget = target; - const originalTargetUri = (0, uri_parser_1.parseUri)(target); - if (originalTargetUri === null) { - throw new Error(`Could not parse target name "${target}"`); - } - /* This ensures that the target has a scheme that is registered with the - * resolver */ - const defaultSchemeMapResult = (0, resolver_1.mapUriDefaultScheme)(originalTargetUri); - if (defaultSchemeMapResult === null) { - throw new Error(`Could not find a default scheme for target name "${target}"`); - } - this.callRefTimer = setInterval(() => { }, MAX_TIMEOUT_TIME); - (_b = (_a = this.callRefTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - if (this.options['grpc.enable_channelz'] === 0) { - this.channelzEnabled = false; - } - this.channelzTrace = new channelz_1.ChannelzTrace(); - this.channelzRef = (0, channelz_1.registerChannelzChannel)(target, () => this.getChannelzInfo(), this.channelzEnabled); - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Channel created'); - } - if (this.options['grpc.default_authority']) { - this.defaultAuthority = this.options['grpc.default_authority']; - } - else { - this.defaultAuthority = (0, resolver_1.getDefaultAuthority)(defaultSchemeMapResult); - } - const proxyMapResult = (0, http_proxy_1.mapProxyName)(defaultSchemeMapResult, options); - this.target = proxyMapResult.target; - this.options = Object.assign({}, this.options, proxyMapResult.extraOptions); - /* The global boolean parameter to getSubchannelPool has the inverse meaning to what - * the grpc.use_local_subchannel_pool channel option means. */ - this.subchannelPool = (0, subchannel_pool_1.getSubchannelPool)(((_c = options['grpc.use_local_subchannel_pool']) !== null && _c !== void 0 ? _c : 0) === 0); - this.retryBufferTracker = new retrying_call_1.MessageBufferTracker((_d = options['grpc.retry_buffer_size']) !== null && _d !== void 0 ? _d : DEFAULT_RETRY_BUFFER_SIZE_BYTES, (_e = options['grpc.per_rpc_retry_buffer_size']) !== null && _e !== void 0 ? _e : DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES); - this.keepaliveTime = (_f = options['grpc.keepalive_time_ms']) !== null && _f !== void 0 ? _f : -1; - this.idleTimeoutMs = Math.max((_g = options['grpc.client_idle_timeout_ms']) !== null && _g !== void 0 ? _g : DEFAULT_IDLE_TIMEOUT_MS, MIN_IDLE_TIMEOUT_MS); - const channelControlHelper = { - createSubchannel: (subchannelAddress, subchannelArgs) => { - const subchannel = this.subchannelPool.getOrCreateSubchannel(this.target, subchannelAddress, Object.assign({}, this.options, subchannelArgs), this.credentials); - subchannel.throttleKeepalive(this.keepaliveTime); - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Created subchannel or used existing subchannel', subchannel.getChannelzRef()); - } - const wrappedSubchannel = new ChannelSubchannelWrapper(subchannel, this); - this.wrappedSubchannels.add(wrappedSubchannel); - return wrappedSubchannel; - }, - updateState: (connectivityState, picker) => { - this.currentPicker = picker; - const queueCopy = this.pickQueue.slice(); - this.pickQueue = []; - if (queueCopy.length > 0) { - this.callRefTimerUnref(); - } - for (const call of queueCopy) { - call.doPick(); - } - this.updateState(connectivityState); - }, - requestReresolution: () => { - // This should never be called. - throw new Error('Resolving load balancer should never call requestReresolution'); - }, - addChannelzChild: (child) => { - if (this.channelzEnabled) { - this.childrenTracker.refChild(child); - } - }, - removeChannelzChild: (child) => { - if (this.channelzEnabled) { - this.childrenTracker.unrefChild(child); - } - }, - }; - this.resolvingLoadBalancer = new resolving_load_balancer_1.ResolvingLoadBalancer(this.target, channelControlHelper, options, (serviceConfig, configSelector) => { - if (serviceConfig.retryThrottling) { - RETRY_THROTTLER_MAP.set(this.getTarget(), new retrying_call_1.RetryThrottler(serviceConfig.retryThrottling.maxTokens, serviceConfig.retryThrottling.tokenRatio, RETRY_THROTTLER_MAP.get(this.getTarget()))); - } - else { - RETRY_THROTTLER_MAP.delete(this.getTarget()); - } - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Address resolution succeeded'); - } - this.configSelector = configSelector; - this.currentResolutionError = null; - /* We process the queue asynchronously to ensure that the corresponding - * load balancer update has completed. */ - process.nextTick(() => { - const localQueue = this.configSelectionQueue; - this.configSelectionQueue = []; - if (localQueue.length > 0) { - this.callRefTimerUnref(); - } - for (const call of localQueue) { - call.getConfig(); - } - }); - }, status => { - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_WARNING', 'Address resolution failed with code ' + - status.code + - ' and details "' + - status.details + - '"'); - } - if (this.configSelectionQueue.length > 0) { - this.trace('Name resolution failed with calls queued for config selection'); - } - if (this.configSelector === null) { - this.currentResolutionError = Object.assign(Object.assign({}, (0, control_plane_status_1.restrictControlPlaneStatusCode)(status.code, status.details)), { metadata: status.metadata }); - } - const localQueue = this.configSelectionQueue; - this.configSelectionQueue = []; - if (localQueue.length > 0) { - this.callRefTimerUnref(); - } - for (const call of localQueue) { - call.reportResolverError(status); - } - }); - this.filterStackFactory = new filter_stack_1.FilterStackFactory([ - new compression_filter_1.CompressionFilterFactory(this, this.options), - ]); - this.trace('Channel constructed with options ' + - JSON.stringify(options, undefined, 2)); - const error = new Error(); - (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, 'channel_stacktrace', '(' + - this.channelzRef.id + - ') ' + - 'Channel constructed \n' + - ((_h = error.stack) === null || _h === void 0 ? void 0 : _h.substring(error.stack.indexOf('\n') + 1))); - this.lastActivityTimestamp = new Date(); - } - getChannelzInfo() { - return { - target: this.originalTarget, - state: this.connectivityState, - trace: this.channelzTrace, - callTracker: this.callTracker, - children: this.childrenTracker.getChildLists(), - }; - } - trace(text, verbosityOverride) { - (0, logging_1.trace)(verbosityOverride !== null && verbosityOverride !== void 0 ? verbosityOverride : constants_1.LogVerbosity.DEBUG, 'channel', '(' + this.channelzRef.id + ') ' + (0, uri_parser_1.uriToString)(this.target) + ' ' + text); - } - callRefTimerRef() { - var _a, _b, _c, _d; - // If the hasRef function does not exist, always run the code - if (!((_b = (_a = this.callRefTimer).hasRef) === null || _b === void 0 ? void 0 : _b.call(_a))) { - this.trace('callRefTimer.ref | configSelectionQueue.length=' + - this.configSelectionQueue.length + - ' pickQueue.length=' + - this.pickQueue.length); - (_d = (_c = this.callRefTimer).ref) === null || _d === void 0 ? void 0 : _d.call(_c); - } - } - callRefTimerUnref() { - var _a, _b; - // If the hasRef function does not exist, always run the code - if (!this.callRefTimer.hasRef || this.callRefTimer.hasRef()) { - this.trace('callRefTimer.unref | configSelectionQueue.length=' + - this.configSelectionQueue.length + - ' pickQueue.length=' + - this.pickQueue.length); - (_b = (_a = this.callRefTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - } - removeConnectivityStateWatcher(watcherObject) { - const watcherIndex = this.connectivityStateWatchers.findIndex(value => value === watcherObject); - if (watcherIndex >= 0) { - this.connectivityStateWatchers.splice(watcherIndex, 1); - } - } - updateState(newState) { - (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, 'connectivity_state', '(' + - this.channelzRef.id + - ') ' + - (0, uri_parser_1.uriToString)(this.target) + - ' ' + - connectivity_state_1.ConnectivityState[this.connectivityState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Connectivity state change to ' + connectivity_state_1.ConnectivityState[newState]); - } - this.connectivityState = newState; - const watchersCopy = this.connectivityStateWatchers.slice(); - for (const watcherObject of watchersCopy) { - if (newState !== watcherObject.currentState) { - if (watcherObject.timer) { - clearTimeout(watcherObject.timer); - } - this.removeConnectivityStateWatcher(watcherObject); - watcherObject.callback(); - } - } - if (newState !== connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - this.currentResolutionError = null; - } - } - throttleKeepalive(newKeepaliveTime) { - if (newKeepaliveTime > this.keepaliveTime) { - this.keepaliveTime = newKeepaliveTime; - for (const wrappedSubchannel of this.wrappedSubchannels) { - wrappedSubchannel.throttleKeepalive(newKeepaliveTime); - } - } - } - removeWrappedSubchannel(wrappedSubchannel) { - this.wrappedSubchannels.delete(wrappedSubchannel); - } - doPick(metadata, extraPickInfo) { - return this.currentPicker.pick({ - metadata: metadata, - extraPickInfo: extraPickInfo, - }); - } - queueCallForPick(call) { - this.pickQueue.push(call); - this.callRefTimerRef(); - } - getConfig(method, metadata) { - this.resolvingLoadBalancer.exitIdle(); - if (this.configSelector) { - return { - type: 'SUCCESS', - config: this.configSelector(method, metadata), - }; - } - else { - if (this.currentResolutionError) { - return { - type: 'ERROR', - error: this.currentResolutionError, - }; - } - else { - return { - type: 'NONE', - }; - } - } - } - queueCallForConfig(call) { - this.configSelectionQueue.push(call); - this.callRefTimerRef(); - } - enterIdle() { - this.resolvingLoadBalancer.destroy(); - this.updateState(connectivity_state_1.ConnectivityState.IDLE); - this.currentPicker = new picker_1.QueuePicker(this.resolvingLoadBalancer); - if (this.idleTimer) { - clearTimeout(this.idleTimer); - this.idleTimer = null; - } - } - startIdleTimeout(timeoutMs) { - var _a, _b; - this.idleTimer = setTimeout(() => { - if (this.callCount > 0) { - /* If there is currently a call, the channel will not go idle for a - * period of at least idleTimeoutMs, so check again after that time. - */ - this.startIdleTimeout(this.idleTimeoutMs); - return; - } - const now = new Date(); - const timeSinceLastActivity = now.valueOf() - this.lastActivityTimestamp.valueOf(); - if (timeSinceLastActivity >= this.idleTimeoutMs) { - this.trace('Idle timer triggered after ' + - this.idleTimeoutMs + - 'ms of inactivity'); - this.enterIdle(); - } - else { - /* Whenever the timer fires with the latest activity being too recent, - * set the timer again for the time when the time since the last - * activity is equal to the timeout. This should result in the timer - * firing no more than once every idleTimeoutMs/2 on average. */ - this.startIdleTimeout(this.idleTimeoutMs - timeSinceLastActivity); - } - }, timeoutMs); - (_b = (_a = this.idleTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - maybeStartIdleTimer() { - if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN && !this.idleTimer) { - this.startIdleTimeout(this.idleTimeoutMs); - } - } - onCallStart() { - if (this.channelzEnabled) { - this.callTracker.addCallStarted(); - } - this.callCount += 1; - } - onCallEnd(status) { - if (this.channelzEnabled) { - if (status.code === constants_1.Status.OK) { - this.callTracker.addCallSucceeded(); - } - else { - this.callTracker.addCallFailed(); - } - } - this.callCount -= 1; - this.lastActivityTimestamp = new Date(); - this.maybeStartIdleTimer(); - } - createLoadBalancingCall(callConfig, method, host, credentials, deadline) { - const callNumber = (0, call_number_1.getNextCallNumber)(); - this.trace('createLoadBalancingCall [' + callNumber + '] method="' + method + '"'); - return new load_balancing_call_1.LoadBalancingCall(this, callConfig, method, host, credentials, deadline, callNumber); - } - createRetryingCall(callConfig, method, host, credentials, deadline) { - const callNumber = (0, call_number_1.getNextCallNumber)(); - this.trace('createRetryingCall [' + callNumber + '] method="' + method + '"'); - return new retrying_call_1.RetryingCall(this, callConfig, method, host, credentials, deadline, callNumber, this.retryBufferTracker, RETRY_THROTTLER_MAP.get(this.getTarget())); - } - createInnerCall(callConfig, method, host, credentials, deadline) { - // Create a RetryingCall if retries are enabled - if (this.options['grpc.enable_retries'] === 0) { - return this.createLoadBalancingCall(callConfig, method, host, credentials, deadline); - } - else { - return this.createRetryingCall(callConfig, method, host, credentials, deadline); - } - } - createResolvingCall(method, deadline, host, parentCall, propagateFlags) { - const callNumber = (0, call_number_1.getNextCallNumber)(); - this.trace('createResolvingCall [' + - callNumber + - '] method="' + - method + - '", deadline=' + - (0, deadline_1.deadlineToString)(deadline)); - const finalOptions = { - deadline: deadline, - flags: propagateFlags !== null && propagateFlags !== void 0 ? propagateFlags : constants_1.Propagate.DEFAULTS, - host: host !== null && host !== void 0 ? host : this.defaultAuthority, - parentCall: parentCall, - }; - const call = new resolving_call_1.ResolvingCall(this, method, finalOptions, this.filterStackFactory.clone(), this.credentials._getCallCredentials(), callNumber); - this.onCallStart(); - call.addStatusWatcher(status => { - this.onCallEnd(status); - }); - return call; - } - close() { - this.resolvingLoadBalancer.destroy(); - this.updateState(connectivity_state_1.ConnectivityState.SHUTDOWN); - clearInterval(this.callRefTimer); - if (this.idleTimer) { - clearTimeout(this.idleTimer); - } - if (this.channelzEnabled) { - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - } - this.subchannelPool.unrefUnusedSubchannels(); - } - getTarget() { - return (0, uri_parser_1.uriToString)(this.target); - } - getConnectivityState(tryToConnect) { - const connectivityState = this.connectivityState; - if (tryToConnect) { - this.resolvingLoadBalancer.exitIdle(); - this.lastActivityTimestamp = new Date(); - this.maybeStartIdleTimer(); - } - return connectivityState; - } - watchConnectivityState(currentState, deadline, callback) { - if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) { - throw new Error('Channel has been shut down'); - } - let timer = null; - if (deadline !== Infinity) { - const deadlineDate = deadline instanceof Date ? deadline : new Date(deadline); - const now = new Date(); - if (deadline === -Infinity || deadlineDate <= now) { - process.nextTick(callback, new Error('Deadline passed without connectivity state change')); - return; - } - timer = setTimeout(() => { - this.removeConnectivityStateWatcher(watcherObject); - callback(new Error('Deadline passed without connectivity state change')); - }, deadlineDate.getTime() - now.getTime()); - } - const watcherObject = { - currentState, - callback, - timer, - }; - this.connectivityStateWatchers.push(watcherObject); - } - /** - * Get the channelz reference object for this channel. The returned value is - * garbage if channelz is disabled for this channel. - * @returns - */ - getChannelzRef() { - return this.channelzRef; - } - createCall(method, deadline, host, parentCall, propagateFlags) { - if (typeof method !== 'string') { - throw new TypeError('Channel#createCall: method must be a string'); - } - if (!(typeof deadline === 'number' || deadline instanceof Date)) { - throw new TypeError('Channel#createCall: deadline must be a number or Date'); - } - if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) { - throw new Error('Channel has been shut down'); - } - return this.createResolvingCall(method, deadline, host, parentCall, propagateFlags); - } -} -exports.InternalChannel = InternalChannel; -//# sourceMappingURL=internal-channel.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/internal-channel.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/internal-channel.js.map deleted file mode 100644 index 6e00714..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/internal-channel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"internal-channel.js","sourceRoot":"","sources":["../../src/internal-channel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+DAA2D;AAE3D,uEAAkE;AAClE,uDAAsE;AAEtE,qC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ACN,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAC/D,CAAC;YACJ,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QAC7C,CAAC;QACD,MAAM,aAAa,GAAG;YACpB,YAAY;YACZ,QAAQ;YACR,KAAK;SACN,CAAC;QACF,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACrD,CAAC;IAED;;;;OAIG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,UAAU,CACR,MAAc,EACd,QAAkB,EAClB,IAA+B,EAC/B,UAAoC,EACpC,cAAyC;QAEzC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,IAAI,SAAS,CAAC,6CAA6C,CAAC,CAAC;QACrE,CAAC;QACD,IAAI,CAAC,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,YAAY,IAAI,CAAC,EAAE,CAAC;YAChE,MAAM,IAAI,SAAS,CACjB,uDAAuD,CACxD,CAAC;QACJ,CAAC;QACD,IAAI,IAAI,CAAC,iBAAiB,KAAK,sCAAiB,CAAC,QAAQ,EAAE,CAAC;YAC1D,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,IAAI,CAAC,mBAAmB,CAC7B,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,CACf,CAAC;IACJ,CAAC;CACF;AA5qBD,0CA4qBC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.d.ts deleted file mode 100644 index c142b54..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { LoadBalancer, ChannelControlHelper, LoadBalancingConfig } from './load-balancer'; -import { SubchannelAddress } from './subchannel-address'; -export declare class ChildLoadBalancerHandler implements LoadBalancer { - private readonly channelControlHelper; - private currentChild; - private pendingChild; - private latestConfig; - private ChildPolicyHelper; - constructor(channelControlHelper: ChannelControlHelper); - protected configUpdateRequiresNewPolicyInstance(oldConfig: LoadBalancingConfig, newConfig: LoadBalancingConfig): boolean; - /** - * Prerequisites: lbConfig !== null and lbConfig.name is registered - * @param addressList - * @param lbConfig - * @param attributes - */ - updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig, attributes: { - [key: string]: unknown; - }): void; - exitIdle(): void; - resetBackoff(): void; - destroy(): void; - getTypeName(): string; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js deleted file mode 100644 index 181450b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; -/* - * Copyright 2020 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChildLoadBalancerHandler = void 0; -const load_balancer_1 = require("./load-balancer"); -const connectivity_state_1 = require("./connectivity-state"); -const TYPE_NAME = 'child_load_balancer_helper'; -class ChildLoadBalancerHandler { - constructor(channelControlHelper) { - this.channelControlHelper = channelControlHelper; - this.currentChild = null; - this.pendingChild = null; - this.latestConfig = null; - this.ChildPolicyHelper = class { - constructor(parent) { - this.parent = parent; - this.child = null; - } - createSubchannel(subchannelAddress, subchannelArgs) { - return this.parent.channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); - } - updateState(connectivityState, picker) { - var _a; - if (this.calledByPendingChild()) { - if (connectivityState === connectivity_state_1.ConnectivityState.CONNECTING) { - return; - } - (_a = this.parent.currentChild) === null || _a === void 0 ? void 0 : _a.destroy(); - this.parent.currentChild = this.parent.pendingChild; - this.parent.pendingChild = null; - } - else if (!this.calledByCurrentChild()) { - return; - } - this.parent.channelControlHelper.updateState(connectivityState, picker); - } - requestReresolution() { - var _a; - const latestChild = (_a = this.parent.pendingChild) !== null && _a !== void 0 ? _a : this.parent.currentChild; - if (this.child === latestChild) { - this.parent.channelControlHelper.requestReresolution(); - } - } - setChild(newChild) { - this.child = newChild; - } - addChannelzChild(child) { - this.parent.channelControlHelper.addChannelzChild(child); - } - removeChannelzChild(child) { - this.parent.channelControlHelper.removeChannelzChild(child); - } - calledByPendingChild() { - return this.child === this.parent.pendingChild; - } - calledByCurrentChild() { - return this.child === this.parent.currentChild; - } - }; - } - configUpdateRequiresNewPolicyInstance(oldConfig, newConfig) { - return oldConfig.getLoadBalancerName() !== newConfig.getLoadBalancerName(); - } - /** - * Prerequisites: lbConfig !== null and lbConfig.name is registered - * @param addressList - * @param lbConfig - * @param attributes - */ - updateAddressList(addressList, lbConfig, attributes) { - let childToUpdate; - if (this.currentChild === null || - this.latestConfig === null || - this.configUpdateRequiresNewPolicyInstance(this.latestConfig, lbConfig)) { - const newHelper = new this.ChildPolicyHelper(this); - const newChild = (0, load_balancer_1.createLoadBalancer)(lbConfig, newHelper); - newHelper.setChild(newChild); - if (this.currentChild === null) { - this.currentChild = newChild; - childToUpdate = this.currentChild; - } - else { - if (this.pendingChild) { - this.pendingChild.destroy(); - } - this.pendingChild = newChild; - childToUpdate = this.pendingChild; - } - } - else { - if (this.pendingChild === null) { - childToUpdate = this.currentChild; - } - else { - childToUpdate = this.pendingChild; - } - } - this.latestConfig = lbConfig; - childToUpdate.updateAddressList(addressList, lbConfig, attributes); - } - exitIdle() { - if (this.currentChild) { - this.currentChild.exitIdle(); - if (this.pendingChild) { - this.pendingChild.exitIdle(); - } - } - } - resetBackoff() { - if (this.currentChild) { - this.currentChild.resetBackoff(); - if (this.pendingChild) { - this.pendingChild.resetBackoff(); - } - } - } - destroy() { - /* Note: state updates are only propagated from the child balancer if that - * object is equal to this.currentChild or this.pendingChild. Since this - * function sets both of those to null, no further state updates will - * occur after this function returns. */ - if (this.currentChild) { - this.currentChild.destroy(); - this.currentChild = null; - } - if (this.pendingChild) { - this.pendingChild.destroy(); - this.pendingChild = null; - } - } - getTypeName() { - return TYPE_NAME; - } -} -exports.ChildLoadBalancerHandler = ChildLoadBalancerHandler; -//# sourceMappingURL=load-balancer-child-handler.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js.map deleted file mode 100644 index 35d319b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-balancer-child-handler.js","sourceRoot":"","sources":["../../src/load-balancer-child-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,mDAKyB;AAGzB,6DAAyD;AAKzD,MAAM,SAAS,GAAG,4BAA4B,CAAC;AAE/C,MAAa,wBAAwB;IAsDnC,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;QArD/D,iBAAY,GAAwB,IAAI,CAAC;QACzC,iBAAY,GAAwB,IAAI,CAAC;QACzC,iBAAY,GAA+B,IAAI,CAAC;QAEhD,sBAAiB,GAAG;YAE1B,YAAoB,MAAgC;gBAAhC,WAAM,GAAN,MAAM,CAA0B;gBAD5C,UAAK,GAAwB,IAAI,CAAC;YACa,CAAC;YACxD,gBAAgB,CACd,iBAAoC,EACpC,cAA8B;gBAE9B,OAAO,IAAI,CAAC,MAAM,CAA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ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.d.ts deleted file mode 100644 index f5f8676..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { ChannelControlHelper } from './experimental'; -import { LoadBalancer, LoadBalancingConfig } from './load-balancer'; -import { SubchannelAddress } from './subchannel-address'; -export interface SuccessRateEjectionConfig { - readonly stdev_factor: number; - readonly enforcement_percentage: number; - readonly minimum_hosts: number; - readonly request_volume: number; -} -export interface FailurePercentageEjectionConfig { - readonly threshold: number; - readonly enforcement_percentage: number; - readonly minimum_hosts: number; - readonly request_volume: number; -} -export declare class OutlierDetectionLoadBalancingConfig implements LoadBalancingConfig { - private readonly childPolicy; - private readonly intervalMs; - private readonly baseEjectionTimeMs; - private readonly maxEjectionTimeMs; - private readonly maxEjectionPercent; - private readonly successRateEjection; - private readonly failurePercentageEjection; - constructor(intervalMs: number | null, baseEjectionTimeMs: number | null, maxEjectionTimeMs: number | null, maxEjectionPercent: number | null, successRateEjection: Partial<SuccessRateEjectionConfig> | null, failurePercentageEjection: Partial<FailurePercentageEjectionConfig> | null, childPolicy: LoadBalancingConfig[]); - getLoadBalancerName(): string; - toJsonObject(): object; - getIntervalMs(): number; - getBaseEjectionTimeMs(): number; - getMaxEjectionTimeMs(): number; - getMaxEjectionPercent(): number; - getSuccessRateEjectionConfig(): SuccessRateEjectionConfig | null; - getFailurePercentageEjectionConfig(): FailurePercentageEjectionConfig | null; - getChildPolicy(): LoadBalancingConfig[]; - copyWithChildPolicy(childPolicy: LoadBalancingConfig[]): OutlierDetectionLoadBalancingConfig; - static createFromJson(obj: any): OutlierDetectionLoadBalancingConfig; -} -export declare class OutlierDetectionLoadBalancer implements LoadBalancer { - private childBalancer; - private addressMap; - private latestConfig; - private ejectionTimer; - private timerStartTime; - constructor(channelControlHelper: ChannelControlHelper); - private isCountingEnabled; - private getCurrentEjectionPercent; - private runSuccessRateCheck; - private runFailurePercentageCheck; - private eject; - private uneject; - private switchAllBuckets; - private startTimer; - private runChecks; - updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig, attributes: { - [key: string]: unknown; - }): void; - exitIdle(): void; - resetBackoff(): void; - destroy(): void; - getTypeName(): string; -} -export declare function setup(): void; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js deleted file mode 100644 index 82ff6e2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +++ /dev/null @@ -1,608 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setup = exports.OutlierDetectionLoadBalancer = exports.OutlierDetectionLoadBalancingConfig = void 0; -const connectivity_state_1 = require("./connectivity-state"); -const constants_1 = require("./constants"); -const duration_1 = require("./duration"); -const experimental_1 = require("./experimental"); -const load_balancer_1 = require("./load-balancer"); -const load_balancer_child_handler_1 = require("./load-balancer-child-handler"); -const picker_1 = require("./picker"); -const subchannel_address_1 = require("./subchannel-address"); -const subchannel_interface_1 = require("./subchannel-interface"); -const logging = require("./logging"); -const TRACER_NAME = 'outlier_detection'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const TYPE_NAME = 'outlier_detection'; -const OUTLIER_DETECTION_ENABLED = ((_a = process.env.GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION) !== null && _a !== void 0 ? _a : 'true') === 'true'; -const defaultSuccessRateEjectionConfig = { - stdev_factor: 1900, - enforcement_percentage: 100, - minimum_hosts: 5, - request_volume: 100, -}; -const defaultFailurePercentageEjectionConfig = { - threshold: 85, - enforcement_percentage: 100, - minimum_hosts: 5, - request_volume: 50, -}; -function validateFieldType(obj, fieldName, expectedType, objectName) { - if (fieldName in obj && typeof obj[fieldName] !== expectedType) { - const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; - throw new Error(`outlier detection config ${fullFieldName} parse error: expected ${expectedType}, got ${typeof obj[fieldName]}`); - } -} -function validatePositiveDuration(obj, fieldName, objectName) { - const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; - if (fieldName in obj) { - if (!(0, duration_1.isDuration)(obj[fieldName])) { - throw new Error(`outlier detection config ${fullFieldName} parse error: expected Duration, got ${typeof obj[fieldName]}`); - } - if (!(obj[fieldName].seconds >= 0 && - obj[fieldName].seconds <= 315576000000 && - obj[fieldName].nanos >= 0 && - obj[fieldName].nanos <= 999999999)) { - throw new Error(`outlier detection config ${fullFieldName} parse error: values out of range for non-negative Duaration`); - } - } -} -function validatePercentage(obj, fieldName, objectName) { - const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; - validateFieldType(obj, fieldName, 'number', objectName); - if (fieldName in obj && !(obj[fieldName] >= 0 && obj[fieldName] <= 100)) { - throw new Error(`outlier detection config ${fullFieldName} parse error: value out of range for percentage (0-100)`); - } -} -class OutlierDetectionLoadBalancingConfig { - constructor(intervalMs, baseEjectionTimeMs, maxEjectionTimeMs, maxEjectionPercent, successRateEjection, failurePercentageEjection, childPolicy) { - this.childPolicy = childPolicy; - if (childPolicy.length > 0 && - childPolicy[0].getLoadBalancerName() === 'pick_first') { - throw new Error('outlier_detection LB policy cannot have a pick_first child policy'); - } - this.intervalMs = intervalMs !== null && intervalMs !== void 0 ? intervalMs : 10000; - this.baseEjectionTimeMs = baseEjectionTimeMs !== null && baseEjectionTimeMs !== void 0 ? baseEjectionTimeMs : 30000; - this.maxEjectionTimeMs = maxEjectionTimeMs !== null && maxEjectionTimeMs !== void 0 ? maxEjectionTimeMs : 300000; - this.maxEjectionPercent = maxEjectionPercent !== null && maxEjectionPercent !== void 0 ? maxEjectionPercent : 10; - this.successRateEjection = successRateEjection - ? Object.assign(Object.assign({}, defaultSuccessRateEjectionConfig), successRateEjection) : null; - this.failurePercentageEjection = failurePercentageEjection - ? Object.assign(Object.assign({}, defaultFailurePercentageEjectionConfig), failurePercentageEjection) : null; - } - getLoadBalancerName() { - return TYPE_NAME; - } - toJsonObject() { - return { - interval: (0, duration_1.msToDuration)(this.intervalMs), - base_ejection_time: (0, duration_1.msToDuration)(this.baseEjectionTimeMs), - max_ejection_time: (0, duration_1.msToDuration)(this.maxEjectionTimeMs), - max_ejection_percent: this.maxEjectionPercent, - success_rate_ejection: this.successRateEjection, - failure_percentage_ejection: this.failurePercentageEjection, - child_policy: this.childPolicy.map(policy => policy.toJsonObject()), - }; - } - getIntervalMs() { - return this.intervalMs; - } - getBaseEjectionTimeMs() { - return this.baseEjectionTimeMs; - } - getMaxEjectionTimeMs() { - return this.maxEjectionTimeMs; - } - getMaxEjectionPercent() { - return this.maxEjectionPercent; - } - getSuccessRateEjectionConfig() { - return this.successRateEjection; - } - getFailurePercentageEjectionConfig() { - return this.failurePercentageEjection; - } - getChildPolicy() { - return this.childPolicy; - } - copyWithChildPolicy(childPolicy) { - return new OutlierDetectionLoadBalancingConfig(this.intervalMs, this.baseEjectionTimeMs, this.maxEjectionTimeMs, this.maxEjectionPercent, this.successRateEjection, this.failurePercentageEjection, childPolicy); - } - static createFromJson(obj) { - var _a; - validatePositiveDuration(obj, 'interval'); - validatePositiveDuration(obj, 'base_ejection_time'); - validatePositiveDuration(obj, 'max_ejection_time'); - validatePercentage(obj, 'max_ejection_percent'); - if ('success_rate_ejection' in obj) { - if (typeof obj.success_rate_ejection !== 'object') { - throw new Error('outlier detection config success_rate_ejection must be an object'); - } - validateFieldType(obj.success_rate_ejection, 'stdev_factor', 'number', 'success_rate_ejection'); - validatePercentage(obj.success_rate_ejection, 'enforcement_percentage', 'success_rate_ejection'); - validateFieldType(obj.success_rate_ejection, 'minimum_hosts', 'number', 'success_rate_ejection'); - validateFieldType(obj.success_rate_ejection, 'request_volume', 'number', 'success_rate_ejection'); - } - if ('failure_percentage_ejection' in obj) { - if (typeof obj.failure_percentage_ejection !== 'object') { - throw new Error('outlier detection config failure_percentage_ejection must be an object'); - } - validatePercentage(obj.failure_percentage_ejection, 'threshold', 'failure_percentage_ejection'); - validatePercentage(obj.failure_percentage_ejection, 'enforcement_percentage', 'failure_percentage_ejection'); - validateFieldType(obj.failure_percentage_ejection, 'minimum_hosts', 'number', 'failure_percentage_ejection'); - validateFieldType(obj.failure_percentage_ejection, 'request_volume', 'number', 'failure_percentage_ejection'); - } - return new OutlierDetectionLoadBalancingConfig(obj.interval ? (0, duration_1.durationToMs)(obj.interval) : null, obj.base_ejection_time ? (0, duration_1.durationToMs)(obj.base_ejection_time) : null, obj.max_ejection_time ? (0, duration_1.durationToMs)(obj.max_ejection_time) : null, (_a = obj.max_ejection_percent) !== null && _a !== void 0 ? _a : null, obj.success_rate_ejection, obj.failure_percentage_ejection, obj.child_policy.map(load_balancer_1.validateLoadBalancingConfig)); - } -} -exports.OutlierDetectionLoadBalancingConfig = OutlierDetectionLoadBalancingConfig; -class OutlierDetectionSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { - constructor(childSubchannel, mapEntry) { - super(childSubchannel); - this.mapEntry = mapEntry; - this.stateListeners = []; - this.ejected = false; - this.refCount = 0; - this.childSubchannelState = childSubchannel.getConnectivityState(); - childSubchannel.addConnectivityStateListener((subchannel, previousState, newState, keepaliveTime) => { - this.childSubchannelState = newState; - if (!this.ejected) { - for (const listener of this.stateListeners) { - listener(this, previousState, newState, keepaliveTime); - } - } - }); - } - getConnectivityState() { - if (this.ejected) { - return connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE; - } - else { - return this.childSubchannelState; - } - } - /** - * Add a listener function to be called whenever the wrapper's - * connectivity state changes. - * @param listener - */ - addConnectivityStateListener(listener) { - this.stateListeners.push(listener); - } - /** - * Remove a listener previously added with `addConnectivityStateListener` - * @param listener A reference to a function previously passed to - * `addConnectivityStateListener` - */ - removeConnectivityStateListener(listener) { - const listenerIndex = this.stateListeners.indexOf(listener); - if (listenerIndex > -1) { - this.stateListeners.splice(listenerIndex, 1); - } - } - ref() { - this.child.ref(); - this.refCount += 1; - } - unref() { - this.child.unref(); - this.refCount -= 1; - if (this.refCount <= 0) { - if (this.mapEntry) { - const index = this.mapEntry.subchannelWrappers.indexOf(this); - if (index >= 0) { - this.mapEntry.subchannelWrappers.splice(index, 1); - } - } - } - } - eject() { - this.ejected = true; - for (const listener of this.stateListeners) { - listener(this, this.childSubchannelState, connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, -1); - } - } - uneject() { - this.ejected = false; - for (const listener of this.stateListeners) { - listener(this, connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, this.childSubchannelState, -1); - } - } - getMapEntry() { - return this.mapEntry; - } - getWrappedSubchannel() { - return this.child; - } -} -function createEmptyBucket() { - return { - success: 0, - failure: 0, - }; -} -class CallCounter { - constructor() { - this.activeBucket = createEmptyBucket(); - this.inactiveBucket = createEmptyBucket(); - } - addSuccess() { - this.activeBucket.success += 1; - } - addFailure() { - this.activeBucket.failure += 1; - } - switchBuckets() { - this.inactiveBucket = this.activeBucket; - this.activeBucket = createEmptyBucket(); - } - getLastSuccesses() { - return this.inactiveBucket.success; - } - getLastFailures() { - return this.inactiveBucket.failure; - } -} -class OutlierDetectionPicker { - constructor(wrappedPicker, countCalls) { - this.wrappedPicker = wrappedPicker; - this.countCalls = countCalls; - } - pick(pickArgs) { - const wrappedPick = this.wrappedPicker.pick(pickArgs); - if (wrappedPick.pickResultType === picker_1.PickResultType.COMPLETE) { - const subchannelWrapper = wrappedPick.subchannel; - const mapEntry = subchannelWrapper.getMapEntry(); - if (mapEntry) { - let onCallEnded = wrappedPick.onCallEnded; - if (this.countCalls) { - onCallEnded = statusCode => { - var _a; - if (statusCode === constants_1.Status.OK) { - mapEntry.counter.addSuccess(); - } - else { - mapEntry.counter.addFailure(); - } - (_a = wrappedPick.onCallEnded) === null || _a === void 0 ? void 0 : _a.call(wrappedPick, statusCode); - }; - } - return Object.assign(Object.assign({}, wrappedPick), { subchannel: subchannelWrapper.getWrappedSubchannel(), onCallEnded: onCallEnded }); - } - else { - return Object.assign(Object.assign({}, wrappedPick), { subchannel: subchannelWrapper.getWrappedSubchannel() }); - } - } - else { - return wrappedPick; - } - } -} -class OutlierDetectionLoadBalancer { - constructor(channelControlHelper) { - this.addressMap = new Map(); - this.latestConfig = null; - this.timerStartTime = null; - this.childBalancer = new load_balancer_child_handler_1.ChildLoadBalancerHandler((0, experimental_1.createChildChannelControlHelper)(channelControlHelper, { - createSubchannel: (subchannelAddress, subchannelArgs) => { - const originalSubchannel = channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); - const mapEntry = this.addressMap.get((0, subchannel_address_1.subchannelAddressToString)(subchannelAddress)); - const subchannelWrapper = new OutlierDetectionSubchannelWrapper(originalSubchannel, mapEntry); - if ((mapEntry === null || mapEntry === void 0 ? void 0 : mapEntry.currentEjectionTimestamp) !== null) { - // If the address is ejected, propagate that to the new subchannel wrapper - subchannelWrapper.eject(); - } - mapEntry === null || mapEntry === void 0 ? void 0 : mapEntry.subchannelWrappers.push(subchannelWrapper); - return subchannelWrapper; - }, - updateState: (connectivityState, picker) => { - if (connectivityState === connectivity_state_1.ConnectivityState.READY) { - channelControlHelper.updateState(connectivityState, new OutlierDetectionPicker(picker, this.isCountingEnabled())); - } - else { - channelControlHelper.updateState(connectivityState, picker); - } - }, - })); - this.ejectionTimer = setInterval(() => { }, 0); - clearInterval(this.ejectionTimer); - } - isCountingEnabled() { - return (this.latestConfig !== null && - (this.latestConfig.getSuccessRateEjectionConfig() !== null || - this.latestConfig.getFailurePercentageEjectionConfig() !== null)); - } - getCurrentEjectionPercent() { - let ejectionCount = 0; - for (const mapEntry of this.addressMap.values()) { - if (mapEntry.currentEjectionTimestamp !== null) { - ejectionCount += 1; - } - } - return (ejectionCount * 100) / this.addressMap.size; - } - runSuccessRateCheck(ejectionTimestamp) { - if (!this.latestConfig) { - return; - } - const successRateConfig = this.latestConfig.getSuccessRateEjectionConfig(); - if (!successRateConfig) { - return; - } - trace('Running success rate check'); - // Step 1 - const targetRequestVolume = successRateConfig.request_volume; - let addresesWithTargetVolume = 0; - const successRates = []; - for (const [address, mapEntry] of this.addressMap) { - const successes = mapEntry.counter.getLastSuccesses(); - const failures = mapEntry.counter.getLastFailures(); - trace('Stats for ' + - address + - ': successes=' + - successes + - ' failures=' + - failures + - ' targetRequestVolume=' + - targetRequestVolume); - if (successes + failures >= targetRequestVolume) { - addresesWithTargetVolume += 1; - successRates.push(successes / (successes + failures)); - } - } - trace('Found ' + - addresesWithTargetVolume + - ' success rate candidates; currentEjectionPercent=' + - this.getCurrentEjectionPercent() + - ' successRates=[' + - successRates + - ']'); - if (addresesWithTargetVolume < successRateConfig.minimum_hosts) { - return; - } - // Step 2 - const successRateMean = successRates.reduce((a, b) => a + b) / successRates.length; - let successRateDeviationSum = 0; - for (const rate of successRates) { - const deviation = rate - successRateMean; - successRateDeviationSum += deviation * deviation; - } - const successRateVariance = successRateDeviationSum / successRates.length; - const successRateStdev = Math.sqrt(successRateVariance); - const ejectionThreshold = successRateMean - - successRateStdev * (successRateConfig.stdev_factor / 1000); - trace('stdev=' + successRateStdev + ' ejectionThreshold=' + ejectionThreshold); - // Step 3 - for (const [address, mapEntry] of this.addressMap.entries()) { - // Step 3.i - if (this.getCurrentEjectionPercent() >= - this.latestConfig.getMaxEjectionPercent()) { - break; - } - // Step 3.ii - const successes = mapEntry.counter.getLastSuccesses(); - const failures = mapEntry.counter.getLastFailures(); - if (successes + failures < targetRequestVolume) { - continue; - } - // Step 3.iii - const successRate = successes / (successes + failures); - trace('Checking candidate ' + address + ' successRate=' + successRate); - if (successRate < ejectionThreshold) { - const randomNumber = Math.random() * 100; - trace('Candidate ' + - address + - ' randomNumber=' + - randomNumber + - ' enforcement_percentage=' + - successRateConfig.enforcement_percentage); - if (randomNumber < successRateConfig.enforcement_percentage) { - trace('Ejecting candidate ' + address); - this.eject(mapEntry, ejectionTimestamp); - } - } - } - } - runFailurePercentageCheck(ejectionTimestamp) { - if (!this.latestConfig) { - return; - } - const failurePercentageConfig = this.latestConfig.getFailurePercentageEjectionConfig(); - if (!failurePercentageConfig) { - return; - } - trace('Running failure percentage check. threshold=' + - failurePercentageConfig.threshold + - ' request volume threshold=' + - failurePercentageConfig.request_volume); - // Step 1 - let addressesWithTargetVolume = 0; - for (const mapEntry of this.addressMap.values()) { - const successes = mapEntry.counter.getLastSuccesses(); - const failures = mapEntry.counter.getLastFailures(); - if (successes + failures >= failurePercentageConfig.request_volume) { - addressesWithTargetVolume += 1; - } - } - if (addressesWithTargetVolume < failurePercentageConfig.minimum_hosts) { - return; - } - // Step 2 - for (const [address, mapEntry] of this.addressMap.entries()) { - // Step 2.i - if (this.getCurrentEjectionPercent() >= - this.latestConfig.getMaxEjectionPercent()) { - break; - } - // Step 2.ii - const successes = mapEntry.counter.getLastSuccesses(); - const failures = mapEntry.counter.getLastFailures(); - trace('Candidate successes=' + successes + ' failures=' + failures); - if (successes + failures < failurePercentageConfig.request_volume) { - continue; - } - // Step 2.iii - const failurePercentage = (failures * 100) / (failures + successes); - if (failurePercentage > failurePercentageConfig.threshold) { - const randomNumber = Math.random() * 100; - trace('Candidate ' + - address + - ' randomNumber=' + - randomNumber + - ' enforcement_percentage=' + - failurePercentageConfig.enforcement_percentage); - if (randomNumber < failurePercentageConfig.enforcement_percentage) { - trace('Ejecting candidate ' + address); - this.eject(mapEntry, ejectionTimestamp); - } - } - } - } - eject(mapEntry, ejectionTimestamp) { - mapEntry.currentEjectionTimestamp = new Date(); - mapEntry.ejectionTimeMultiplier += 1; - for (const subchannelWrapper of mapEntry.subchannelWrappers) { - subchannelWrapper.eject(); - } - } - uneject(mapEntry) { - mapEntry.currentEjectionTimestamp = null; - for (const subchannelWrapper of mapEntry.subchannelWrappers) { - subchannelWrapper.uneject(); - } - } - switchAllBuckets() { - for (const mapEntry of this.addressMap.values()) { - mapEntry.counter.switchBuckets(); - } - } - startTimer(delayMs) { - var _a, _b; - this.ejectionTimer = setTimeout(() => this.runChecks(), delayMs); - (_b = (_a = this.ejectionTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - runChecks() { - const ejectionTimestamp = new Date(); - trace('Ejection timer running'); - this.switchAllBuckets(); - if (!this.latestConfig) { - return; - } - this.timerStartTime = ejectionTimestamp; - this.startTimer(this.latestConfig.getIntervalMs()); - this.runSuccessRateCheck(ejectionTimestamp); - this.runFailurePercentageCheck(ejectionTimestamp); - for (const [address, mapEntry] of this.addressMap.entries()) { - if (mapEntry.currentEjectionTimestamp === null) { - if (mapEntry.ejectionTimeMultiplier > 0) { - mapEntry.ejectionTimeMultiplier -= 1; - } - } - else { - const baseEjectionTimeMs = this.latestConfig.getBaseEjectionTimeMs(); - const maxEjectionTimeMs = this.latestConfig.getMaxEjectionTimeMs(); - const returnTime = new Date(mapEntry.currentEjectionTimestamp.getTime()); - returnTime.setMilliseconds(returnTime.getMilliseconds() + - Math.min(baseEjectionTimeMs * mapEntry.ejectionTimeMultiplier, Math.max(baseEjectionTimeMs, maxEjectionTimeMs))); - if (returnTime < new Date()) { - trace('Unejecting ' + address); - this.uneject(mapEntry); - } - } - } - } - updateAddressList(addressList, lbConfig, attributes) { - if (!(lbConfig instanceof OutlierDetectionLoadBalancingConfig)) { - return; - } - const subchannelAddresses = new Set(); - for (const address of addressList) { - subchannelAddresses.add((0, subchannel_address_1.subchannelAddressToString)(address)); - } - for (const address of subchannelAddresses) { - if (!this.addressMap.has(address)) { - trace('Adding map entry for ' + address); - this.addressMap.set(address, { - counter: new CallCounter(), - currentEjectionTimestamp: null, - ejectionTimeMultiplier: 0, - subchannelWrappers: [], - }); - } - } - for (const key of this.addressMap.keys()) { - if (!subchannelAddresses.has(key)) { - trace('Removing map entry for ' + key); - this.addressMap.delete(key); - } - } - const childPolicy = (0, load_balancer_1.getFirstUsableConfig)(lbConfig.getChildPolicy(), true); - this.childBalancer.updateAddressList(addressList, childPolicy, attributes); - if (lbConfig.getSuccessRateEjectionConfig() || - lbConfig.getFailurePercentageEjectionConfig()) { - if (this.timerStartTime) { - trace('Previous timer existed. Replacing timer'); - clearTimeout(this.ejectionTimer); - const remainingDelay = lbConfig.getIntervalMs() - - (new Date().getTime() - this.timerStartTime.getTime()); - this.startTimer(remainingDelay); - } - else { - trace('Starting new timer'); - this.timerStartTime = new Date(); - this.startTimer(lbConfig.getIntervalMs()); - this.switchAllBuckets(); - } - } - else { - trace('Counting disabled. Cancelling timer.'); - this.timerStartTime = null; - clearTimeout(this.ejectionTimer); - for (const mapEntry of this.addressMap.values()) { - this.uneject(mapEntry); - mapEntry.ejectionTimeMultiplier = 0; - } - } - this.latestConfig = lbConfig; - } - exitIdle() { - this.childBalancer.exitIdle(); - } - resetBackoff() { - this.childBalancer.resetBackoff(); - } - destroy() { - clearTimeout(this.ejectionTimer); - this.childBalancer.destroy(); - } - getTypeName() { - return TYPE_NAME; - } -} -exports.OutlierDetectionLoadBalancer = OutlierDetectionLoadBalancer; -function setup() { - if (OUTLIER_DETECTION_ENABLED) { - (0, experimental_1.registerLoadBalancerType)(TYPE_NAME, OutlierDetectionLoadBalancer, OutlierDetectionLoadBalancingConfig); - } -} -exports.setup = setup; -//# sourceMappingURL=load-balancer-outlier-detection.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js.map deleted file mode 100644 index d9b5eef..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-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AAC,YAAY,EAAE,CAAC;IACpC,CAAC;IACD,OAAO;QACL,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACjC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;IAC/B,CAAC;IACD,WAAW;QACT,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAnXD,oEAmXC;AAED,SAAgB,KAAK;IACnB,IAAI,yBAAyB,EAAE,CAAC;QAC9B,IAAA,uCAAwB,EACtB,SAAS,EACT,4BAA4B,EAC5B,mCAAmC,CACpC,CAAC;IACJ,CAAC;AACH,CAAC;AARD,sBAQC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.d.ts deleted file mode 100644 index 22443d6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { LoadBalancer, ChannelControlHelper, LoadBalancingConfig } from './load-balancer'; -import { SubchannelAddress } from './subchannel-address'; -export declare class PickFirstLoadBalancingConfig implements LoadBalancingConfig { - private readonly shuffleAddressList; - constructor(shuffleAddressList: boolean); - getLoadBalancerName(): string; - toJsonObject(): object; - getShuffleAddressList(): boolean; - static createFromJson(obj: any): PickFirstLoadBalancingConfig; -} -/** - * Return a new array with the elements of the input array in a random order - * @param list The input array - * @returns A shuffled array of the elements of list - */ -export declare function shuffled<T>(list: T[]): T[]; -export declare class PickFirstLoadBalancer implements LoadBalancer { - private readonly channelControlHelper; - /** - * The list of subchannels this load balancer is currently attempting to - * connect to. - */ - private children; - /** - * The current connectivity state of the load balancer. - */ - private currentState; - /** - * The index within the `subchannels` array of the subchannel with the most - * recently started connection attempt. - */ - private currentSubchannelIndex; - /** - * The currently picked subchannel used for making calls. Populated if - * and only if the load balancer's current state is READY. In that case, - * the subchannel's current state is also READY. - */ - private currentPick; - /** - * Listener callback attached to each subchannel in the `subchannels` list - * while establishing a connection. - */ - private subchannelStateListener; - /** - * Timer reference for the timer tracking when to start - */ - private connectionDelayTimeout; - private triedAllSubchannels; - /** - * The LB policy enters sticky TRANSIENT_FAILURE mode when all - * subchannels have failed to connect at least once, and it stays in that - * mode until a connection attempt is successful. While in sticky TF mode, - * the LB policy continuously attempts to connect to all of its subchannels. - */ - private stickyTransientFailureMode; - /** - * Indicates whether we called channelControlHelper.requestReresolution since - * the last call to updateAddressList - */ - private requestedResolutionSinceLastUpdate; - /** - * The most recent error reported by any subchannel as it transitioned to - * TRANSIENT_FAILURE. - */ - private lastError; - private latestAddressList; - /** - * Load balancer that attempts to connect to each backend in the address list - * in order, and picks the first one that connects, using it for every - * request. - * @param channelControlHelper `ChannelControlHelper` instance provided by - * this load balancer's owner. - */ - constructor(channelControlHelper: ChannelControlHelper); - private allChildrenHaveReportedTF; - private calculateAndReportNewState; - private requestReresolution; - private maybeEnterStickyTransientFailureMode; - private removeCurrentPick; - private onSubchannelStateUpdate; - private startNextSubchannelConnecting; - /** - * Have a single subchannel in the `subchannels` list start connecting. - * @param subchannelIndex The index into the `subchannels` list. - */ - private startConnecting; - private pickSubchannel; - private updateState; - private resetSubchannelList; - private connectToAddressList; - updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig): void; - exitIdle(): void; - resetBackoff(): void; - destroy(): void; - getTypeName(): string; -} -export declare function setup(): void; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js deleted file mode 100644 index 0bf16c6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +++ /dev/null @@ -1,393 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setup = exports.PickFirstLoadBalancer = exports.shuffled = exports.PickFirstLoadBalancingConfig = void 0; -const load_balancer_1 = require("./load-balancer"); -const connectivity_state_1 = require("./connectivity-state"); -const picker_1 = require("./picker"); -const logging = require("./logging"); -const constants_1 = require("./constants"); -const TRACER_NAME = 'pick_first'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const TYPE_NAME = 'pick_first'; -/** - * Delay after starting a connection on a subchannel before starting a - * connection on the next subchannel in the list, for Happy Eyeballs algorithm. - */ -const CONNECTION_DELAY_INTERVAL_MS = 250; -class PickFirstLoadBalancingConfig { - constructor(shuffleAddressList) { - this.shuffleAddressList = shuffleAddressList; - } - getLoadBalancerName() { - return TYPE_NAME; - } - toJsonObject() { - return { - [TYPE_NAME]: { - shuffleAddressList: this.shuffleAddressList, - }, - }; - } - getShuffleAddressList() { - return this.shuffleAddressList; - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static createFromJson(obj) { - if ('shuffleAddressList' in obj && - !(typeof obj.shuffleAddressList === 'boolean')) { - throw new Error('pick_first config field shuffleAddressList must be a boolean if provided'); - } - return new PickFirstLoadBalancingConfig(obj.shuffleAddressList === true); - } -} -exports.PickFirstLoadBalancingConfig = PickFirstLoadBalancingConfig; -/** - * Picker for a `PickFirstLoadBalancer` in the READY state. Always returns the - * picked subchannel. - */ -class PickFirstPicker { - constructor(subchannel) { - this.subchannel = subchannel; - } - pick(pickArgs) { - return { - pickResultType: picker_1.PickResultType.COMPLETE, - subchannel: this.subchannel, - status: null, - onCallStarted: null, - onCallEnded: null, - }; - } -} -/** - * Return a new array with the elements of the input array in a random order - * @param list The input array - * @returns A shuffled array of the elements of list - */ -function shuffled(list) { - const result = list.slice(); - for (let i = result.length - 1; i > 1; i--) { - const j = Math.floor(Math.random() * (i + 1)); - const temp = result[i]; - result[i] = result[j]; - result[j] = temp; - } - return result; -} -exports.shuffled = shuffled; -class PickFirstLoadBalancer { - /** - * Load balancer that attempts to connect to each backend in the address list - * in order, and picks the first one that connects, using it for every - * request. - * @param channelControlHelper `ChannelControlHelper` instance provided by - * this load balancer's owner. - */ - constructor(channelControlHelper) { - this.channelControlHelper = channelControlHelper; - /** - * The list of subchannels this load balancer is currently attempting to - * connect to. - */ - this.children = []; - /** - * The current connectivity state of the load balancer. - */ - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - /** - * The index within the `subchannels` array of the subchannel with the most - * recently started connection attempt. - */ - this.currentSubchannelIndex = 0; - /** - * The currently picked subchannel used for making calls. Populated if - * and only if the load balancer's current state is READY. In that case, - * the subchannel's current state is also READY. - */ - this.currentPick = null; - /** - * Listener callback attached to each subchannel in the `subchannels` list - * while establishing a connection. - */ - this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime, errorMessage) => { - this.onSubchannelStateUpdate(subchannel, previousState, newState, errorMessage); - }; - this.triedAllSubchannels = false; - /** - * The LB policy enters sticky TRANSIENT_FAILURE mode when all - * subchannels have failed to connect at least once, and it stays in that - * mode until a connection attempt is successful. While in sticky TF mode, - * the LB policy continuously attempts to connect to all of its subchannels. - */ - this.stickyTransientFailureMode = false; - /** - * Indicates whether we called channelControlHelper.requestReresolution since - * the last call to updateAddressList - */ - this.requestedResolutionSinceLastUpdate = false; - /** - * The most recent error reported by any subchannel as it transitioned to - * TRANSIENT_FAILURE. - */ - this.lastError = null; - this.latestAddressList = null; - this.connectionDelayTimeout = setTimeout(() => { }, 0); - clearTimeout(this.connectionDelayTimeout); - } - allChildrenHaveReportedTF() { - return this.children.every(child => child.hasReportedTransientFailure); - } - calculateAndReportNewState() { - if (this.currentPick) { - this.updateState(connectivity_state_1.ConnectivityState.READY, new PickFirstPicker(this.currentPick)); - } - else if (this.children.length === 0) { - this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this)); - } - else { - if (this.stickyTransientFailureMode) { - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ details: `No connection established. Last error: ${this.lastError}` })); - } - else { - this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this)); - } - } - } - requestReresolution() { - this.requestedResolutionSinceLastUpdate = true; - this.channelControlHelper.requestReresolution(); - } - maybeEnterStickyTransientFailureMode() { - if (!this.allChildrenHaveReportedTF()) { - return; - } - if (!this.requestedResolutionSinceLastUpdate) { - /* Each time we get an update we reset each subchannel's - * hasReportedTransientFailure flag, so the next time we get to this - * point after that, each subchannel has reported TRANSIENT_FAILURE - * at least once since then. That is the trigger for requesting - * reresolution, whether or not the LB policy is already in sticky TF - * mode. */ - this.requestReresolution(); - } - if (this.stickyTransientFailureMode) { - return; - } - this.stickyTransientFailureMode = true; - for (const { subchannel } of this.children) { - subchannel.startConnecting(); - } - this.calculateAndReportNewState(); - } - removeCurrentPick() { - if (this.currentPick !== null) { - /* Unref can cause a state change, which can cause a change in the value - * of this.currentPick, so we hold a local reference to make sure that - * does not impact this function. */ - const currentPick = this.currentPick; - this.currentPick = null; - currentPick.unref(); - currentPick.removeConnectivityStateListener(this.subchannelStateListener); - this.channelControlHelper.removeChannelzChild(currentPick.getChannelzRef()); - } - } - onSubchannelStateUpdate(subchannel, previousState, newState, errorMessage) { - var _a; - if ((_a = this.currentPick) === null || _a === void 0 ? void 0 : _a.realSubchannelEquals(subchannel)) { - if (newState !== connectivity_state_1.ConnectivityState.READY) { - this.removeCurrentPick(); - this.calculateAndReportNewState(); - this.requestReresolution(); - } - return; - } - for (const [index, child] of this.children.entries()) { - if (subchannel.realSubchannelEquals(child.subchannel)) { - if (newState === connectivity_state_1.ConnectivityState.READY) { - this.pickSubchannel(child.subchannel); - } - if (newState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - child.hasReportedTransientFailure = true; - if (errorMessage) { - this.lastError = errorMessage; - } - this.maybeEnterStickyTransientFailureMode(); - if (index === this.currentSubchannelIndex) { - this.startNextSubchannelConnecting(index + 1); - } - } - child.subchannel.startConnecting(); - return; - } - } - } - startNextSubchannelConnecting(startIndex) { - clearTimeout(this.connectionDelayTimeout); - if (this.triedAllSubchannels) { - return; - } - for (const [index, child] of this.children.entries()) { - if (index >= startIndex) { - const subchannelState = child.subchannel.getConnectivityState(); - if (subchannelState === connectivity_state_1.ConnectivityState.IDLE || - subchannelState === connectivity_state_1.ConnectivityState.CONNECTING) { - this.startConnecting(index); - return; - } - } - } - this.triedAllSubchannels = true; - this.maybeEnterStickyTransientFailureMode(); - } - /** - * Have a single subchannel in the `subchannels` list start connecting. - * @param subchannelIndex The index into the `subchannels` list. - */ - startConnecting(subchannelIndex) { - var _a, _b; - clearTimeout(this.connectionDelayTimeout); - this.currentSubchannelIndex = subchannelIndex; - if (this.children[subchannelIndex].subchannel.getConnectivityState() === - connectivity_state_1.ConnectivityState.IDLE) { - trace('Start connecting to subchannel with address ' + - this.children[subchannelIndex].subchannel.getAddress()); - process.nextTick(() => { - var _a; - (_a = this.children[subchannelIndex]) === null || _a === void 0 ? void 0 : _a.subchannel.startConnecting(); - }); - } - this.connectionDelayTimeout = (_b = (_a = setTimeout(() => { - this.startNextSubchannelConnecting(subchannelIndex + 1); - }, CONNECTION_DELAY_INTERVAL_MS)).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - pickSubchannel(subchannel) { - if (this.currentPick && subchannel.realSubchannelEquals(this.currentPick)) { - return; - } - trace('Pick subchannel with address ' + subchannel.getAddress()); - this.stickyTransientFailureMode = false; - if (this.currentPick !== null) { - this.currentPick.unref(); - this.channelControlHelper.removeChannelzChild(this.currentPick.getChannelzRef()); - this.currentPick.removeConnectivityStateListener(this.subchannelStateListener); - } - this.currentPick = subchannel; - subchannel.ref(); - this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); - this.resetSubchannelList(); - clearTimeout(this.connectionDelayTimeout); - this.calculateAndReportNewState(); - } - updateState(newState, picker) { - trace(connectivity_state_1.ConnectivityState[this.currentState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - this.currentState = newState; - this.channelControlHelper.updateState(newState, picker); - } - resetSubchannelList() { - for (const child of this.children) { - if (!(this.currentPick && child.subchannel.realSubchannelEquals(this.currentPick))) { - /* The connectivity state listener is the same whether the subchannel - * is in the list of children or it is the currentPick, so if it is in - * both, removing it here would cause problems. In particular, that - * always happens immediately after the subchannel is picked. */ - child.subchannel.removeConnectivityStateListener(this.subchannelStateListener); - } - /* Refs are counted independently for the children list and the - * currentPick, so we call unref whether or not the child is the - * currentPick. Channelz child references are also refcounted, so - * removeChannelzChild can be handled the same way. */ - child.subchannel.unref(); - this.channelControlHelper.removeChannelzChild(child.subchannel.getChannelzRef()); - } - this.currentSubchannelIndex = 0; - this.children = []; - this.triedAllSubchannels = false; - this.requestedResolutionSinceLastUpdate = false; - } - connectToAddressList(addressList) { - const newChildrenList = addressList.map(address => ({ - subchannel: this.channelControlHelper.createSubchannel(address, {}), - hasReportedTransientFailure: false, - })); - /* Ref each subchannel before resetting the list, to ensure that - * subchannels shared between the list don't drop to 0 refs during the - * transition. */ - for (const { subchannel } of newChildrenList) { - subchannel.ref(); - this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); - } - this.resetSubchannelList(); - this.children = newChildrenList; - for (const { subchannel } of this.children) { - subchannel.addConnectivityStateListener(this.subchannelStateListener); - if (subchannel.getConnectivityState() === connectivity_state_1.ConnectivityState.READY) { - this.pickSubchannel(subchannel); - return; - } - } - for (const child of this.children) { - if (child.subchannel.getConnectivityState() === - connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - child.hasReportedTransientFailure = true; - } - } - this.startNextSubchannelConnecting(0); - this.calculateAndReportNewState(); - } - updateAddressList(addressList, lbConfig) { - if (!(lbConfig instanceof PickFirstLoadBalancingConfig)) { - return; - } - /* Previously, an update would be discarded if it was identical to the - * previous update, to minimize churn. Now the DNS resolver is - * rate-limited, so that is less of a concern. */ - if (lbConfig.getShuffleAddressList()) { - addressList = shuffled(addressList); - } - this.latestAddressList = addressList; - this.connectToAddressList(addressList); - } - exitIdle() { - if (this.currentState === connectivity_state_1.ConnectivityState.IDLE && this.latestAddressList) { - this.connectToAddressList(this.latestAddressList); - } - } - resetBackoff() { - /* The pick first load balancer does not have a connection backoff, so this - * does nothing */ - } - destroy() { - this.resetSubchannelList(); - this.removeCurrentPick(); - } - getTypeName() { - return TYPE_NAME; - } -} -exports.PickFirstLoadBalancer = PickFirstLoadBalancer; -function setup() { - (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, PickFirstLoadBalancer, PickFirstLoadBalancingConfig); - (0, load_balancer_1.registerDefaultLoadBalancerType)(TYPE_NAME); -} -exports.setup = setup; -//# sourceMappingURL=load-balancer-pick-first.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js.map deleted file mode 100644 index 90125e0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-balancer-pick-first.js","sourceRoot":"","sources":["../../src/load-balancer-pick-first.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,mDAMyB;AACzB,6DAAyD;AACzD,qCAOkB;AAElB,qCAAqC;AACrC,2CAA2C;AAM3C,MAAM,WAAW,GAAG,YAAY,CAAC;AAEjC,SAAS,KAAK,CAAC,IAAY;IACzB,OAAO,CAAC,KAAK,CAAC,wBAAY,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,SAAS,GAAG,YAAY,CAAC;AAE/B;;;GAGG;AACH,MAAM,4BAA4B,GAAG,GAAG,CAAC;AAEzC,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A4B,CAAC,EAAE,CAAC;YACxD,OAAO;QACT,CAAC;QACD;;yDAEiD;QACjD,IAAI,QAAQ,CAAC,qBAAqB,EAAE,EAAE,CAAC;YACrC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,CAAC,iBAAiB,GAAG,WAAW,CAAC;QACrC,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IACzC,CAAC;IAED,QAAQ;QACN,IAAI,IAAI,CAAC,YAAY,KAAK,sCAAiB,CAAC,IAAI,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC3E,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IAED,YAAY;QACV;0BACkB;IACpB,CAAC;IAED,OAAO;QACL,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC3B,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC3B,CAAC;IAED,WAAW;QACT,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AA9VD,sDA8VC;AAED,SAAgB,KAAK;IACnB,IAAA,wCAAwB,EACtB,SAAS,EACT,qBAAqB,EACrB,4BAA4B,CAC7B,CAAC;IACF,IAAA,+CAA+B,EAAC,SAAS,CAAC,CAAC;AAC7C,CAAC;AAPD,sBAOC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.d.ts deleted file mode 100644 index 0fa9421..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { LoadBalancer, ChannelControlHelper, LoadBalancingConfig } from './load-balancer'; -import { SubchannelAddress } from './subchannel-address'; -export declare class RoundRobinLoadBalancer implements LoadBalancer { - private readonly channelControlHelper; - private subchannels; - private currentState; - private subchannelStateListener; - private currentReadyPicker; - private lastError; - constructor(channelControlHelper: ChannelControlHelper); - private countSubchannelsWithState; - private calculateAndUpdateState; - private updateState; - private resetSubchannelList; - updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig): void; - exitIdle(): void; - resetBackoff(): void; - destroy(): void; - getTypeName(): string; -} -export declare function setup(): void; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js deleted file mode 100644 index 1f78b37..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +++ /dev/null @@ -1,174 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setup = exports.RoundRobinLoadBalancer = void 0; -const load_balancer_1 = require("./load-balancer"); -const connectivity_state_1 = require("./connectivity-state"); -const picker_1 = require("./picker"); -const subchannel_address_1 = require("./subchannel-address"); -const logging = require("./logging"); -const constants_1 = require("./constants"); -const TRACER_NAME = 'round_robin'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const TYPE_NAME = 'round_robin'; -class RoundRobinLoadBalancingConfig { - getLoadBalancerName() { - return TYPE_NAME; - } - constructor() { } - toJsonObject() { - return { - [TYPE_NAME]: {}, - }; - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static createFromJson(obj) { - return new RoundRobinLoadBalancingConfig(); - } -} -class RoundRobinPicker { - constructor(subchannelList, nextIndex = 0) { - this.subchannelList = subchannelList; - this.nextIndex = nextIndex; - } - pick(pickArgs) { - const pickedSubchannel = this.subchannelList[this.nextIndex]; - this.nextIndex = (this.nextIndex + 1) % this.subchannelList.length; - return { - pickResultType: picker_1.PickResultType.COMPLETE, - subchannel: pickedSubchannel, - status: null, - onCallStarted: null, - onCallEnded: null, - }; - } - /** - * Check what the next subchannel returned would be. Used by the load - * balancer implementation to preserve this part of the picker state if - * possible when a subchannel connects or disconnects. - */ - peekNextSubchannel() { - return this.subchannelList[this.nextIndex]; - } -} -class RoundRobinLoadBalancer { - constructor(channelControlHelper) { - this.channelControlHelper = channelControlHelper; - this.subchannels = []; - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - this.currentReadyPicker = null; - this.lastError = null; - this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime, errorMessage) => { - this.calculateAndUpdateState(); - if (newState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE || - newState === connectivity_state_1.ConnectivityState.IDLE) { - if (errorMessage) { - this.lastError = errorMessage; - } - this.channelControlHelper.requestReresolution(); - subchannel.startConnecting(); - } - }; - } - countSubchannelsWithState(state) { - return this.subchannels.filter(subchannel => subchannel.getConnectivityState() === state).length; - } - calculateAndUpdateState() { - if (this.countSubchannelsWithState(connectivity_state_1.ConnectivityState.READY) > 0) { - const readySubchannels = this.subchannels.filter(subchannel => subchannel.getConnectivityState() === connectivity_state_1.ConnectivityState.READY); - let index = 0; - if (this.currentReadyPicker !== null) { - index = readySubchannels.indexOf(this.currentReadyPicker.peekNextSubchannel()); - if (index < 0) { - index = 0; - } - } - this.updateState(connectivity_state_1.ConnectivityState.READY, new RoundRobinPicker(readySubchannels, index)); - } - else if (this.countSubchannelsWithState(connectivity_state_1.ConnectivityState.CONNECTING) > 0) { - this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this)); - } - else if (this.countSubchannelsWithState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) > 0) { - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ details: `No connection established. Last error: ${this.lastError}` })); - } - else { - this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this)); - } - } - updateState(newState, picker) { - trace(connectivity_state_1.ConnectivityState[this.currentState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - if (newState === connectivity_state_1.ConnectivityState.READY) { - this.currentReadyPicker = picker; - } - else { - this.currentReadyPicker = null; - } - this.currentState = newState; - this.channelControlHelper.updateState(newState, picker); - } - resetSubchannelList() { - for (const subchannel of this.subchannels) { - subchannel.removeConnectivityStateListener(this.subchannelStateListener); - subchannel.unref(); - this.channelControlHelper.removeChannelzChild(subchannel.getChannelzRef()); - } - this.subchannels = []; - } - updateAddressList(addressList, lbConfig) { - this.resetSubchannelList(); - trace('Connect to address list ' + - addressList.map(address => (0, subchannel_address_1.subchannelAddressToString)(address))); - this.subchannels = addressList.map(address => this.channelControlHelper.createSubchannel(address, {})); - for (const subchannel of this.subchannels) { - subchannel.ref(); - subchannel.addConnectivityStateListener(this.subchannelStateListener); - this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); - const subchannelState = subchannel.getConnectivityState(); - if (subchannelState === connectivity_state_1.ConnectivityState.IDLE || - subchannelState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - subchannel.startConnecting(); - } - } - this.calculateAndUpdateState(); - } - exitIdle() { - for (const subchannel of this.subchannels) { - subchannel.startConnecting(); - } - } - resetBackoff() { - /* The pick first load balancer does not have a connection backoff, so this - * does nothing */ - } - destroy() { - this.resetSubchannelList(); - } - getTypeName() { - return TYPE_NAME; - } -} -exports.RoundRobinLoadBalancer = RoundRobinLoadBalancer; -function setup() { - (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, RoundRobinLoadBalancer, RoundRobinLoadBalancingConfig); -} -exports.setup = setup; -//# sourceMappingURL=load-balancer-round-robin.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js.map deleted file mode 100644 index def50c5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-balancer-round-robin.js","sourceRoot":"","sources":["../../src/load-balancer-round-robin.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,mDAKyB;AACzB,6DAAyD;AACzD,qCAOkB;AAClB,6DAG8B;AAC9B,qCAAqC;AACrC,2CAA2C;AAM3C,MAAM,WAAW,GAAG,aAAa,CAAC;AAElC,SAAS,KAAK,CAAC,IAAY;IACzB,OAAO,CAAC,KAAK,CAAC,wBAAY,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC,MAAM,6BAA6B;IACjC,mBAAmB;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,gBAAe,CAAC;IAEhB,YAAY;QACV,OAAO;YACL,CAAC,SAAS,CAAC,EAAE,EAAE;SAChB,CAAC;IACJ,CAAC;IAED,8DAA8D;IAC9D,MAAM,CAAC,cAAc,CAAC,GAAQ;QAC5B,OAAO,IAAI,6BAA6B,EAAE,CAAC;IAC7C,CAAC;CACF;AAED,MAAM,gBAAgB;IACpB,YACmB,cAAqC,EAC9C,YAAY,CAAC;QADJ,mBAAc,GAAd,cAAc,CAAuB;QAC9C,cAAS,GAAT,SAAS,CAAI;IACpB,CAAC;IAEJ,IAAI,CAAC,QAAkB;QACrB,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7D,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;QACnE,OAAO;YACL,cAAc,EAAE,u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AAC,CAAC;YACtE,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC;YACxE,MAAM,eAAe,GAAG,UAAU,CAAC,oBAAoB,EAAE,CAAC;YAC1D,IACE,eAAe,KAAK,sCAAiB,CAAC,IAAI;gBAC1C,eAAe,KAAK,sCAAiB,CAAC,iBAAiB,EACvD,CAAC;gBACD,UAAU,CAAC,eAAe,EAAE,CAAC;YAC/B,CAAC;QACH,CAAC;QACD,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAED,QAAQ;QACN,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YAC1C,UAAU,CAAC,eAAe,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;IACD,YAAY;QACV;0BACkB;IACpB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IACD,WAAW;QACT,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AA9ID,wDA8IC;AAED,SAAgB,KAAK;IACnB,IAAA,wCAAwB,EACtB,SAAS,EACT,sBAAsB,EACtB,6BAA6B,CAC9B,CAAC;AACJ,CAAC;AAND,sBAMC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.d.ts deleted file mode 100644 index 52f86a2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { ChannelOptions } from './channel-options'; -import { SubchannelAddress } from './subchannel-address'; -import { ConnectivityState } from './connectivity-state'; -import { Picker } from './picker'; -import { ChannelRef, SubchannelRef } from './channelz'; -import { SubchannelInterface } from './subchannel-interface'; -/** - * A collection of functions associated with a channel that a load balancer - * can call as necessary. - */ -export interface ChannelControlHelper { - /** - * Returns a subchannel connected to the specified address. - * @param subchannelAddress The address to connect to - * @param subchannelArgs Extra channel arguments specified by the load balancer - */ - createSubchannel(subchannelAddress: SubchannelAddress, subchannelArgs: ChannelOptions): SubchannelInterface; - /** - * Passes a new subchannel picker up to the channel. This is called if either - * the connectivity state changes or if a different picker is needed for any - * other reason. - * @param connectivityState New connectivity state - * @param picker New picker - */ - updateState(connectivityState: ConnectivityState, picker: Picker): void; - /** - * Request new data from the resolver. - */ - requestReresolution(): void; - addChannelzChild(child: ChannelRef | SubchannelRef): void; - removeChannelzChild(child: ChannelRef | SubchannelRef): void; -} -/** - * Create a child ChannelControlHelper that overrides some methods of the - * parent while letting others pass through to the parent unmodified. This - * allows other code to create these children without needing to know about - * all of the methods to be passed through. - * @param parent - * @param overrides - */ -export declare function createChildChannelControlHelper(parent: ChannelControlHelper, overrides: Partial<ChannelControlHelper>): ChannelControlHelper; -/** - * Tracks one or more connected subchannels and determines which subchannel - * each request should use. - */ -export interface LoadBalancer { - /** - * Gives the load balancer a new list of addresses to start connecting to. - * The load balancer will start establishing connections with the new list, - * but will continue using any existing connections until the new connections - * are established - * @param addressList The new list of addresses to connect to - * @param lbConfig The load balancing config object from the service config, - * if one was provided - */ - updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig, attributes: { - [key: string]: unknown; - }): void; - /** - * If the load balancer is currently in the IDLE state, start connecting. - */ - exitIdle(): void; - /** - * If the load balancer is currently in the CONNECTING or TRANSIENT_FAILURE - * state, reset the current connection backoff timeout to its base value and - * transition to CONNECTING if in TRANSIENT_FAILURE. - */ - resetBackoff(): void; - /** - * The load balancer unrefs all of its subchannels and stops calling methods - * of its channel control helper. - */ - destroy(): void; - /** - * Get the type name for this load balancer type. Must be constant across an - * entire load balancer implementation class and must match the name that the - * balancer implementation class was registered with. - */ - getTypeName(): string; -} -export interface LoadBalancerConstructor { - new (channelControlHelper: ChannelControlHelper): LoadBalancer; -} -export interface LoadBalancingConfig { - getLoadBalancerName(): string; - toJsonObject(): object; -} -export interface LoadBalancingConfigConstructor { - new (...args: any): LoadBalancingConfig; - createFromJson(obj: any): LoadBalancingConfig; -} -export declare function registerLoadBalancerType(typeName: string, loadBalancerType: LoadBalancerConstructor, loadBalancingConfigType: LoadBalancingConfigConstructor): void; -export declare function registerDefaultLoadBalancerType(typeName: string): void; -export declare function createLoadBalancer(config: LoadBalancingConfig, channelControlHelper: ChannelControlHelper): LoadBalancer | null; -export declare function isLoadBalancerNameRegistered(typeName: string): boolean; -export declare function getFirstUsableConfig(configs: LoadBalancingConfig[], fallbackTodefault?: true): LoadBalancingConfig; -export declare function validateLoadBalancingConfig(obj: any): LoadBalancingConfig; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.js deleted file mode 100644 index ac4956e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateLoadBalancingConfig = exports.getFirstUsableConfig = exports.isLoadBalancerNameRegistered = exports.createLoadBalancer = exports.registerDefaultLoadBalancerType = exports.registerLoadBalancerType = exports.createChildChannelControlHelper = void 0; -/** - * Create a child ChannelControlHelper that overrides some methods of the - * parent while letting others pass through to the parent unmodified. This - * allows other code to create these children without needing to know about - * all of the methods to be passed through. - * @param parent - * @param overrides - */ -function createChildChannelControlHelper(parent, overrides) { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - return { - createSubchannel: (_b = (_a = overrides.createSubchannel) === null || _a === void 0 ? void 0 : _a.bind(overrides)) !== null && _b !== void 0 ? _b : parent.createSubchannel.bind(parent), - updateState: (_d = (_c = overrides.updateState) === null || _c === void 0 ? void 0 : _c.bind(overrides)) !== null && _d !== void 0 ? _d : parent.updateState.bind(parent), - requestReresolution: (_f = (_e = overrides.requestReresolution) === null || _e === void 0 ? void 0 : _e.bind(overrides)) !== null && _f !== void 0 ? _f : parent.requestReresolution.bind(parent), - addChannelzChild: (_h = (_g = overrides.addChannelzChild) === null || _g === void 0 ? void 0 : _g.bind(overrides)) !== null && _h !== void 0 ? _h : parent.addChannelzChild.bind(parent), - removeChannelzChild: (_k = (_j = overrides.removeChannelzChild) === null || _j === void 0 ? void 0 : _j.bind(overrides)) !== null && _k !== void 0 ? _k : parent.removeChannelzChild.bind(parent), - }; -} -exports.createChildChannelControlHelper = createChildChannelControlHelper; -const registeredLoadBalancerTypes = {}; -let defaultLoadBalancerType = null; -function registerLoadBalancerType(typeName, loadBalancerType, loadBalancingConfigType) { - registeredLoadBalancerTypes[typeName] = { - LoadBalancer: loadBalancerType, - LoadBalancingConfig: loadBalancingConfigType, - }; -} -exports.registerLoadBalancerType = registerLoadBalancerType; -function registerDefaultLoadBalancerType(typeName) { - defaultLoadBalancerType = typeName; -} -exports.registerDefaultLoadBalancerType = registerDefaultLoadBalancerType; -function createLoadBalancer(config, channelControlHelper) { - const typeName = config.getLoadBalancerName(); - if (typeName in registeredLoadBalancerTypes) { - return new registeredLoadBalancerTypes[typeName].LoadBalancer(channelControlHelper); - } - else { - return null; - } -} -exports.createLoadBalancer = createLoadBalancer; -function isLoadBalancerNameRegistered(typeName) { - return typeName in registeredLoadBalancerTypes; -} -exports.isLoadBalancerNameRegistered = isLoadBalancerNameRegistered; -function getFirstUsableConfig(configs, fallbackTodefault = false) { - for (const config of configs) { - if (config.getLoadBalancerName() in registeredLoadBalancerTypes) { - return config; - } - } - if (fallbackTodefault) { - if (defaultLoadBalancerType) { - return new registeredLoadBalancerTypes[defaultLoadBalancerType].LoadBalancingConfig(); - } - else { - return null; - } - } - else { - return null; - } -} -exports.getFirstUsableConfig = getFirstUsableConfig; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function validateLoadBalancingConfig(obj) { - if (!(obj !== null && typeof obj === 'object')) { - throw new Error('Load balancing config must be an object'); - } - const keys = Object.keys(obj); - if (keys.length !== 1) { - throw new Error('Provided load balancing config has multiple conflicting entries'); - } - const typeName = keys[0]; - if (typeName in registeredLoadBalancerTypes) { - return registeredLoadBalancerTypes[typeName].LoadBalancingConfig.createFromJson(obj[typeName]); - } - else { - throw new Error(`Unrecognized load balancing config name ${typeName}`); - } -} -exports.validateLoadBalancingConfig = validateLoadBalancingConfig; -//# sourceMappingURL=load-balancer.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.js.map deleted file mode 100644 index 3b241bc..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-balancer.js","sourceRoot":"","sources":["../../src/load-balancer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAuCH;;;;;;;GAOG;AACH,SAAgB,+BAA+B,CAC7C,MAA4B,EAC5B,SAAwC;;IAExC,OAAO;QACL,gBAAgB,EACd,MAAA,MAAA,SAAS,CAAC,gBAAgB,0CAAE,IAAI,CAAC,SAAS,CAAC,mCAC3C,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC;QACtC,WAAW,EACT,MAAA,MAAA,SAAS,CAAC,WAAW,0CAAE,IAAI,CAAC,SAAS,CAAC,mCAAI,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC;QAC3E,mBAAmB,EACjB,MAAA,MAAA,SAAS,CAAC,mBAAmB,0CAAE,IAAI,CAAC,SAAS,CAAC,mCAC9C,MAAM,CAAC,mBAAmB,CA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c-js/build/src/load-balancing-call.d.ts deleted file mode 100644 index fe61f5b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancing-call.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/// <reference types="node" /> -import { CallCredentials } from './call-credentials'; -import { Call, InterceptingListener, MessageContext, StatusObject } from './call-interface'; -import { Status } from './constants'; -import { Deadline } from './deadline'; -import { InternalChannel } from './internal-channel'; -import { Metadata } from './metadata'; -import { CallConfig } from './resolver'; -export type RpcProgress = 'NOT_STARTED' | 'DROP' | 'REFUSED' | 'PROCESSED'; -export interface StatusObjectWithProgress extends StatusObject { - progress: RpcProgress; -} -export interface LoadBalancingCallInterceptingListener extends InterceptingListener { - onReceiveStatus(status: StatusObjectWithProgress): void; -} -export declare class LoadBalancingCall implements Call { - private readonly channel; - private readonly callConfig; - private readonly methodName; - private readonly host; - private readonly credentials; - private readonly deadline; - private readonly callNumber; - private child; - private readPending; - private pendingMessage; - private pendingHalfClose; - private ended; - private serviceUrl; - private metadata; - private listener; - private onCallEnded; - constructor(channel: InternalChannel, callConfig: CallConfig, methodName: string, host: string, credentials: CallCredentials, deadline: Deadline, callNumber: number); - private trace; - private outputStatus; - doPick(): void; - cancelWithStatus(status: Status, details: string): void; - getPeer(): string; - start(metadata: Metadata, listener: LoadBalancingCallInterceptingListener): void; - sendMessageWithContext(context: MessageContext, message: Buffer): void; - startRead(): void; - halfClose(): void; - setCredentials(credentials: CallCredentials): void; - getCallNumber(): number; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js deleted file mode 100644 index 964891a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +++ /dev/null @@ -1,269 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LoadBalancingCall = void 0; -const connectivity_state_1 = require("./connectivity-state"); -const constants_1 = require("./constants"); -const deadline_1 = require("./deadline"); -const metadata_1 = require("./metadata"); -const picker_1 = require("./picker"); -const uri_parser_1 = require("./uri-parser"); -const logging = require("./logging"); -const control_plane_status_1 = require("./control-plane-status"); -const http2 = require("http2"); -const TRACER_NAME = 'load_balancing_call'; -class LoadBalancingCall { - constructor(channel, callConfig, methodName, host, credentials, deadline, callNumber) { - var _a, _b; - this.channel = channel; - this.callConfig = callConfig; - this.methodName = methodName; - this.host = host; - this.credentials = credentials; - this.deadline = deadline; - this.callNumber = callNumber; - this.child = null; - this.readPending = false; - this.pendingMessage = null; - this.pendingHalfClose = false; - this.ended = false; - this.metadata = null; - this.listener = null; - this.onCallEnded = null; - const splitPath = this.methodName.split('/'); - let serviceName = ''; - /* The standard path format is "/{serviceName}/{methodName}", so if we split - * by '/', the first item should be empty and the second should be the - * service name */ - if (splitPath.length >= 2) { - serviceName = splitPath[1]; - } - const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : 'localhost'; - /* Currently, call credentials are only allowed on HTTPS connections, so we - * can assume that the scheme is "https" */ - this.serviceUrl = `https://${hostname}/${serviceName}`; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); - } - outputStatus(status, progress) { - var _a, _b; - if (!this.ended) { - this.ended = true; - this.trace('ended with status: code=' + - status.code + - ' details="' + - status.details + - '"'); - const finalStatus = Object.assign(Object.assign({}, status), { progress }); - (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(finalStatus); - (_b = this.onCallEnded) === null || _b === void 0 ? void 0 : _b.call(this, finalStatus.code); - } - } - doPick() { - var _a, _b; - if (this.ended) { - return; - } - if (!this.metadata) { - throw new Error('doPick called before start'); - } - this.trace('Pick called'); - const pickResult = this.channel.doPick(this.metadata, this.callConfig.pickInformation); - const subchannelString = pickResult.subchannel - ? '(' + - pickResult.subchannel.getChannelzRef().id + - ') ' + - pickResult.subchannel.getAddress() - : '' + pickResult.subchannel; - this.trace('Pick result: ' + - picker_1.PickResultType[pickResult.pickResultType] + - ' subchannel: ' + - subchannelString + - ' status: ' + - ((_a = pickResult.status) === null || _a === void 0 ? void 0 : _a.code) + - ' ' + - ((_b = pickResult.status) === null || _b === void 0 ? void 0 : _b.details)); - switch (pickResult.pickResultType) { - case picker_1.PickResultType.COMPLETE: - this.credentials - .generateMetadata({ service_url: this.serviceUrl }) - .then(credsMetadata => { - var _a, _b, _c; - /* If this call was cancelled (e.g. by the deadline) before - * metadata generation finished, we shouldn't do anything with - * it. */ - if (this.ended) { - this.trace('Credentials metadata generation finished after call ended'); - return; - } - const finalMetadata = this.metadata.clone(); - finalMetadata.merge(credsMetadata); - if (finalMetadata.get('authorization').length > 1) { - this.outputStatus({ - code: constants_1.Status.INTERNAL, - details: '"authorization" metadata cannot have multiple values', - metadata: new metadata_1.Metadata(), - }, 'PROCESSED'); - } - if (pickResult.subchannel.getConnectivityState() !== - connectivity_state_1.ConnectivityState.READY) { - this.trace('Picked subchannel ' + - subchannelString + - ' has state ' + - connectivity_state_1.ConnectivityState[pickResult.subchannel.getConnectivityState()] + - ' after getting credentials metadata. Retrying pick'); - this.doPick(); - return; - } - if (this.deadline !== Infinity) { - finalMetadata.set('grpc-timeout', (0, deadline_1.getDeadlineTimeoutString)(this.deadline)); - } - try { - this.child = pickResult - .subchannel.getRealSubchannel() - .createCall(finalMetadata, this.host, this.methodName, { - onReceiveMetadata: metadata => { - this.trace('Received metadata'); - this.listener.onReceiveMetadata(metadata); - }, - onReceiveMessage: message => { - this.trace('Received message'); - this.listener.onReceiveMessage(message); - }, - onReceiveStatus: status => { - this.trace('Received status'); - if (status.rstCode === - http2.constants.NGHTTP2_REFUSED_STREAM) { - this.outputStatus(status, 'REFUSED'); - } - else { - this.outputStatus(status, 'PROCESSED'); - } - }, - }); - } - catch (error) { - this.trace('Failed to start call on picked subchannel ' + - subchannelString + - ' with error ' + - error.message); - this.outputStatus({ - code: constants_1.Status.INTERNAL, - details: 'Failed to start HTTP/2 stream with error ' + - error.message, - metadata: new metadata_1.Metadata(), - }, 'NOT_STARTED'); - return; - } - (_b = (_a = this.callConfig).onCommitted) === null || _b === void 0 ? void 0 : _b.call(_a); - (_c = pickResult.onCallStarted) === null || _c === void 0 ? void 0 : _c.call(pickResult); - this.onCallEnded = pickResult.onCallEnded; - this.trace('Created child call [' + this.child.getCallNumber() + ']'); - if (this.readPending) { - this.child.startRead(); - } - if (this.pendingMessage) { - this.child.sendMessageWithContext(this.pendingMessage.context, this.pendingMessage.message); - } - if (this.pendingHalfClose) { - this.child.halfClose(); - } - }, (error) => { - // We assume the error code isn't 0 (Status.OK) - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(typeof error.code === 'number' ? error.code : constants_1.Status.UNKNOWN, `Getting metadata from plugin failed with error: ${error.message}`); - this.outputStatus({ - code: code, - details: details, - metadata: new metadata_1.Metadata(), - }, 'PROCESSED'); - }); - break; - case picker_1.PickResultType.DROP: - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(pickResult.status.code, pickResult.status.details); - setImmediate(() => { - this.outputStatus({ code, details, metadata: pickResult.status.metadata }, 'DROP'); - }); - break; - case picker_1.PickResultType.TRANSIENT_FAILURE: - if (this.metadata.getOptions().waitForReady) { - this.channel.queueCallForPick(this); - } - else { - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(pickResult.status.code, pickResult.status.details); - setImmediate(() => { - this.outputStatus({ code, details, metadata: pickResult.status.metadata }, 'PROCESSED'); - }); - } - break; - case picker_1.PickResultType.QUEUE: - this.channel.queueCallForPick(this); - } - } - cancelWithStatus(status, details) { - var _a; - this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); - (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status, details); - this.outputStatus({ code: status, details: details, metadata: new metadata_1.Metadata() }, 'PROCESSED'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.child) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.channel.getTarget(); - } - start(metadata, listener) { - this.trace('start called'); - this.listener = listener; - this.metadata = metadata; - this.doPick(); - } - sendMessageWithContext(context, message) { - this.trace('write() called with message of length ' + message.length); - if (this.child) { - this.child.sendMessageWithContext(context, message); - } - else { - this.pendingMessage = { context, message }; - } - } - startRead() { - this.trace('startRead called'); - if (this.child) { - this.child.startRead(); - } - else { - this.readPending = true; - } - } - halfClose() { - this.trace('halfClose called'); - if (this.child) { - this.child.halfClose(); - } - else { - this.pendingHalfClose = true; - } - } - setCredentials(credentials) { - throw new Error('Method not implemented.'); - } - getCallNumber() { - return this.callNumber; - } -} -exports.LoadBalancingCall = LoadBalancingCall; -//# sourceMappingURL=load-balancing-call.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js.map deleted file mode 100644 index ebf7fd5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"load-balancing-call.js","sourceRoot":"","sources":["../../src/load-balancing-call.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAUH,6DAAyD;AACzD,2CAAmD;AACnD,yCAAgE;AAEhE,yCAAsC;AACtC,qCAA0C;AAE1C,6CAA6C;AAC7C,qCAAqC;AACrC,iEAAwE;AACxE,+BAA+B;AAE/B,MAAM,WAAW,G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,CAAC,SAAS,EAAE,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC/B,CAAC;IACH,CAAC;IACD,cAAc,CAAC,WAA4B;QACzC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AA5SD,8CA4SC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.d.ts deleted file mode 100644 index 7ac65fa..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// <reference types="node" /> -import { LogVerbosity } from './constants'; -export declare const getLogger: () => Partial<Console>; -export declare const setLogger: (logger: Partial<Console>) => void; -export declare const setLoggerVerbosity: (verbosity: LogVerbosity) => void; -export declare const log: (severity: LogVerbosity, ...args: any[]) => void; -export declare function trace(severity: LogVerbosity, tracer: string, text: string): void; -export declare function isTracerEnabled(tracer: string): boolean; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.js deleted file mode 100644 index 3686d4d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.js +++ /dev/null @@ -1,114 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -var _a, _b, _c, _d; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isTracerEnabled = exports.trace = exports.log = exports.setLoggerVerbosity = exports.setLogger = exports.getLogger = void 0; -const constants_1 = require("./constants"); -const process_1 = require("process"); -const clientVersion = require('../../package.json').version; -const DEFAULT_LOGGER = { - error: (message, ...optionalParams) => { - console.error('E ' + message, ...optionalParams); - }, - info: (message, ...optionalParams) => { - console.error('I ' + message, ...optionalParams); - }, - debug: (message, ...optionalParams) => { - console.error('D ' + message, ...optionalParams); - }, -}; -let _logger = DEFAULT_LOGGER; -let _logVerbosity = constants_1.LogVerbosity.ERROR; -const verbosityString = (_b = (_a = process.env.GRPC_NODE_VERBOSITY) !== null && _a !== void 0 ? _a : process.env.GRPC_VERBOSITY) !== null && _b !== void 0 ? _b : ''; -switch (verbosityString.toUpperCase()) { - case 'DEBUG': - _logVerbosity = constants_1.LogVerbosity.DEBUG; - break; - case 'INFO': - _logVerbosity = constants_1.LogVerbosity.INFO; - break; - case 'ERROR': - _logVerbosity = constants_1.LogVerbosity.ERROR; - break; - case 'NONE': - _logVerbosity = constants_1.LogVerbosity.NONE; - break; - default: - // Ignore any other values -} -const getLogger = () => { - return _logger; -}; -exports.getLogger = getLogger; -const setLogger = (logger) => { - _logger = logger; -}; -exports.setLogger = setLogger; -const setLoggerVerbosity = (verbosity) => { - _logVerbosity = verbosity; -}; -exports.setLoggerVerbosity = setLoggerVerbosity; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -const log = (severity, ...args) => { - let logFunction; - if (severity >= _logVerbosity) { - switch (severity) { - case constants_1.LogVerbosity.DEBUG: - logFunction = _logger.debug; - break; - case constants_1.LogVerbosity.INFO: - logFunction = _logger.info; - break; - case constants_1.LogVerbosity.ERROR: - logFunction = _logger.error; - break; - } - /* Fall back to _logger.error when other methods are not available for - * compatiblity with older behavior that always logged to _logger.error */ - if (!logFunction) { - logFunction = _logger.error; - } - if (logFunction) { - logFunction.bind(_logger)(...args); - } - } -}; -exports.log = log; -const tracersString = (_d = (_c = process.env.GRPC_NODE_TRACE) !== null && _c !== void 0 ? _c : process.env.GRPC_TRACE) !== null && _d !== void 0 ? _d : ''; -const enabledTracers = new Set(); -const disabledTracers = new Set(); -for (const tracerName of tracersString.split(',')) { - if (tracerName.startsWith('-')) { - disabledTracers.add(tracerName.substring(1)); - } - else { - enabledTracers.add(tracerName); - } -} -const allEnabled = enabledTracers.has('all'); -function trace(severity, tracer, text) { - if (isTracerEnabled(tracer)) { - (0, exports.log)(severity, new Date().toISOString() + ' | v' + clientVersion + ' ' + process_1.pid + ' | ' + tracer + ' | ' + text); - } -} -exports.trace = trace; -function isTracerEnabled(tracer) { - return (!disabledTracers.has(tracer) && (allEnabled || enabledTracers.has(tracer))); -} -exports.isTracerEnabled = isTracerEnabled; -//# sourceMappingURL=logging.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.js.map deleted file mode 100644 index cf90e6f..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/logging.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;AAEH,2CAA2C;AAC3C,qCAA8B;AAE9B,MAAM,aAAa,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAE5D,MAAM,cAAc,GAAqB;IACvC,KAAK,EAAE,CAAC,OAAa,EAAE,GAAG,cAAqB,EAAE,EAAE;QACjD,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,EAAE,GAAG,cAAc,CAAC,CAAC;IACnD,CAAC;IACD,IAAI,EAAE,CAAC,OAAa,EAAE,GAAG,cAAqB,EAAE,EAAE;QAChD,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,EAAE,GAAG,cAAc,CAAC,CAAC;IACnD,CAAC;IACD,KAAK,EAAE,CAAC,OAAa,EAAE,GAAG,cAAqB,EAAE,EAAE;QAC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,MAAM,CAAC,EAAE,CAAC;QAC5B,IAAA,WAAG,EAAC,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,GAAG,MAAM,GAAG,aAAa,GAAG,GAAG,GAAG,aAAG,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC;IAC/G,CAAC;AACH,CAAC;AARD,sBAQC;AAED,SAAgB,eAAe,CAAC,MAAc;IAC5C,OAAO,CACL,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,IAAI,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAC3E,CAAC;AACJ,CAAC;AAJD,0CAIC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.d.ts deleted file mode 100644 index 39b59c1..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -/// <reference types="node" /> -import { ChannelCredentials } from './channel-credentials'; -import { ChannelOptions } from './channel-options'; -import { Client } from './client'; -import { UntypedServiceImplementation } from './server'; -export interface Serialize<T> { - (value: T): Buffer; -} -export interface Deserialize<T> { - (bytes: Buffer): T; -} -export interface ClientMethodDefinition<RequestType, ResponseType> { - path: string; - requestStream: boolean; - responseStream: boolean; - requestSerialize: Serialize<RequestType>; - responseDeserialize: Deserialize<ResponseType>; - originalName?: string; -} -export interface ServerMethodDefinition<RequestType, ResponseType> { - path: string; - requestStream: boolean; - responseStream: boolean; - responseSerialize: Serialize<ResponseType>; - requestDeserialize: Deserialize<RequestType>; - originalName?: string; -} -export interface MethodDefinition<RequestType, ResponseType> extends ClientMethodDefinition<RequestType, ResponseType>, ServerMethodDefinition<RequestType, ResponseType> { -} -export type ServiceDefinition<ImplementationType = UntypedServiceImplementation> = { - readonly [index in keyof ImplementationType]: MethodDefinition<any, any>; -}; -export interface ProtobufTypeDefinition { - format: string; - type: object; - fileDescriptorProtos: Buffer[]; -} -export interface PackageDefinition { - [index: string]: ServiceDefinition | ProtobufTypeDefinition; -} -export interface ServiceClient extends Client { - [methodName: string]: Function; -} -export interface ServiceClientConstructor { - new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): ServiceClient; - service: ServiceDefinition; - serviceName: string; -} -/** - * Creates a constructor for a client with the given methods, as specified in - * the methods argument. The resulting class will have an instance method for - * each method in the service, which is a partial application of one of the - * [Client]{@link grpc.Client} request methods, depending on `requestSerialize` - * and `responseSerialize`, with the `method`, `serialize`, and `deserialize` - * arguments predefined. - * @param methods An object mapping method names to - * method attributes - * @param serviceName The fully qualified name of the service - * @param classOptions An options object. - * @return New client constructor, which is a subclass of - * {@link grpc.Client}, and has the same arguments as that constructor. - */ -export declare function makeClientConstructor(methods: ServiceDefinition, serviceName: string, classOptions?: {}): ServiceClientConstructor; -export interface GrpcObject { - [index: string]: GrpcObject | ServiceClientConstructor | ProtobufTypeDefinition; -} -/** - * Load a gRPC package definition as a gRPC object hierarchy. - * @param packageDef The package definition object. - * @return The resulting gRPC object. - */ -export declare function loadPackageDefinition(packageDef: PackageDefinition): GrpcObject; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.js deleted file mode 100644 index 6f90569..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.js +++ /dev/null @@ -1,144 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.loadPackageDefinition = exports.makeClientConstructor = void 0; -const client_1 = require("./client"); -/** - * Map with short names for each of the requester maker functions. Used in - * makeClientConstructor - * @private - */ -const requesterFuncs = { - unary: client_1.Client.prototype.makeUnaryRequest, - server_stream: client_1.Client.prototype.makeServerStreamRequest, - client_stream: client_1.Client.prototype.makeClientStreamRequest, - bidi: client_1.Client.prototype.makeBidiStreamRequest, -}; -/** - * Returns true, if given key is included in the blacklisted - * keys. - * @param key key for check, string. - */ -function isPrototypePolluted(key) { - return ['__proto__', 'prototype', 'constructor'].includes(key); -} -/** - * Creates a constructor for a client with the given methods, as specified in - * the methods argument. The resulting class will have an instance method for - * each method in the service, which is a partial application of one of the - * [Client]{@link grpc.Client} request methods, depending on `requestSerialize` - * and `responseSerialize`, with the `method`, `serialize`, and `deserialize` - * arguments predefined. - * @param methods An object mapping method names to - * method attributes - * @param serviceName The fully qualified name of the service - * @param classOptions An options object. - * @return New client constructor, which is a subclass of - * {@link grpc.Client}, and has the same arguments as that constructor. - */ -function makeClientConstructor(methods, serviceName, classOptions) { - if (!classOptions) { - classOptions = {}; - } - class ServiceClientImpl extends client_1.Client { - } - Object.keys(methods).forEach(name => { - if (isPrototypePolluted(name)) { - return; - } - const attrs = methods[name]; - let methodType; - // TODO(murgatroid99): Verify that we don't need this anymore - if (typeof name === 'string' && name.charAt(0) === '$') { - throw new Error('Method names cannot start with $'); - } - if (attrs.requestStream) { - if (attrs.responseStream) { - methodType = 'bidi'; - } - else { - methodType = 'client_stream'; - } - } - else { - if (attrs.responseStream) { - methodType = 'server_stream'; - } - else { - methodType = 'unary'; - } - } - const serialize = attrs.requestSerialize; - const deserialize = attrs.responseDeserialize; - const methodFunc = partial(requesterFuncs[methodType], attrs.path, serialize, deserialize); - ServiceClientImpl.prototype[name] = methodFunc; - // Associate all provided attributes with the method - Object.assign(ServiceClientImpl.prototype[name], attrs); - if (attrs.originalName && !isPrototypePolluted(attrs.originalName)) { - ServiceClientImpl.prototype[attrs.originalName] = - ServiceClientImpl.prototype[name]; - } - }); - ServiceClientImpl.service = methods; - ServiceClientImpl.serviceName = serviceName; - return ServiceClientImpl; -} -exports.makeClientConstructor = makeClientConstructor; -function partial(fn, path, serialize, deserialize) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return function (...args) { - return fn.call(this, path, serialize, deserialize, ...args); - }; -} -function isProtobufTypeDefinition(obj) { - return 'format' in obj; -} -/** - * Load a gRPC package definition as a gRPC object hierarchy. - * @param packageDef The package definition object. - * @return The resulting gRPC object. - */ -function loadPackageDefinition(packageDef) { - const result = {}; - for (const serviceFqn in packageDef) { - if (Object.prototype.hasOwnProperty.call(packageDef, serviceFqn)) { - const service = packageDef[serviceFqn]; - const nameComponents = serviceFqn.split('.'); - if (nameComponents.some((comp) => isPrototypePolluted(comp))) { - continue; - } - const serviceName = nameComponents[nameComponents.length - 1]; - let current = result; - for (const packageName of nameComponents.slice(0, -1)) { - if (!current[packageName]) { - current[packageName] = {}; - } - current = current[packageName]; - } - if (isProtobufTypeDefinition(service)) { - current[serviceName] = service; - } - else { - current[serviceName] = makeClientConstructor(service, serviceName, {}); - } - } - } - return result; -} -exports.loadPackageDefinition = loadPackageDefinition; -//# sourceMappingURL=make-client.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.js.map deleted file mode 100644 index adfab3e..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/make-client.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"make-client.js","sourceRoot":"","sources":["../../src/make-client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAIH,qCAAkC;AAmDlC;;;;GAIG;AACH,MAAM,cAAc,GAAG;IACrB,KAAK,EAAE,eAAM,CAAC,SAAS,CAAC,gBAAgB;IACxC,aAAa,EAAE,eAAM,CAAC,SAAS,CAAC,uBAAuB;IACvD,aAAa,EAAE,eA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C;QACpC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC;YACjE,MAAM,OAAO,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;YACvC,MAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7C,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;gBACrE,SAAS;YACX,CAAC;YACD,MAAM,WAAW,GAAG,cAAc,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAC9D,IAAI,OAAO,GAAG,MAAM,CAAC;YACrB,KAAK,MAAM,WAAW,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACtD,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;oBAC1B,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;gBAC5B,CAAC;gBACD,OAAO,GAAG,OAAO,CAAC,WAAW,CAAe,CAAC;YAC/C,CAAC;YACD,IAAI,wBAAwB,CAAC,OAAO,CAAC,EAAE,CAAC;gBACtC,OAAO,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC;YACjC,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,WAAW,CAAC,GAAG,qBAAqB,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AA3BD,sDA2BC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.d.ts deleted file mode 100644 index 1943b75..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -/// <reference types="node" /> -/// <reference types="node" /> -/// <reference types="node" /> -import * as http2 from 'http2'; -export type MetadataValue = string | Buffer; -export type MetadataObject = Map<string, MetadataValue[]>; -export interface MetadataOptions { - idempotentRequest?: boolean; - waitForReady?: boolean; - cacheableRequest?: boolean; - corked?: boolean; -} -/** - * A class for storing metadata. Keys are normalized to lowercase ASCII. - */ -export declare class Metadata { - protected internalRepr: MetadataObject; - private options; - constructor(options?: MetadataOptions); - /** - * Sets the given value for the given key by replacing any other values - * associated with that key. Normalizes the key. - * @param key The key to whose value should be set. - * @param value The value to set. Must be a buffer if and only - * if the normalized key ends with '-bin'. - */ - set(key: string, value: MetadataValue): void; - /** - * Adds the given value for the given key by appending to a list of previous - * values associated with that key. Normalizes the key. - * @param key The key for which a new value should be appended. - * @param value The value to add. Must be a buffer if and only - * if the normalized key ends with '-bin'. - */ - add(key: string, value: MetadataValue): void; - /** - * Removes the given key and any associated values. Normalizes the key. - * @param key The key whose values should be removed. - */ - remove(key: string): void; - /** - * Gets a list of all values associated with the key. Normalizes the key. - * @param key The key whose value should be retrieved. - * @return A list of values associated with the given key. - */ - get(key: string): MetadataValue[]; - /** - * Gets a plain object mapping each key to the first value associated with it. - * This reflects the most common way that people will want to see metadata. - * @return A key/value mapping of the metadata. - */ - getMap(): { - [key: string]: MetadataValue; - }; - /** - * Clones the metadata object. - * @return The newly cloned object. - */ - clone(): Metadata; - /** - * Merges all key-value pairs from a given Metadata object into this one. - * If both this object and the given object have values in the same key, - * values from the other Metadata object will be appended to this object's - * values. - * @param other A Metadata object. - */ - merge(other: Metadata): void; - setOptions(options: MetadataOptions): void; - getOptions(): MetadataOptions; - /** - * Creates an OutgoingHttpHeaders object that can be used with the http2 API. - */ - toHttp2Headers(): http2.OutgoingHttpHeaders; - /** - * This modifies the behavior of JSON.stringify to show an object - * representation of the metadata map. - */ - toJSON(): { - [key: string]: MetadataValue[]; - }; - /** - * Returns a new Metadata object based fields in a given IncomingHttpHeaders - * object. - * @param headers An IncomingHttpHeaders object. - */ - static fromHttp2Headers(headers: http2.IncomingHttpHeaders): Metadata; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.js deleted file mode 100644 index c0ea411..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.js +++ /dev/null @@ -1,249 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Metadata = void 0; -const logging_1 = require("./logging"); -const constants_1 = require("./constants"); -const error_1 = require("./error"); -const LEGAL_KEY_REGEX = /^[0-9a-z_.-]+$/; -const LEGAL_NON_BINARY_VALUE_REGEX = /^[ -~]*$/; -function isLegalKey(key) { - return LEGAL_KEY_REGEX.test(key); -} -function isLegalNonBinaryValue(value) { - return LEGAL_NON_BINARY_VALUE_REGEX.test(value); -} -function isBinaryKey(key) { - return key.endsWith('-bin'); -} -function isCustomMetadata(key) { - return !key.startsWith('grpc-'); -} -function normalizeKey(key) { - return key.toLowerCase(); -} -function validate(key, value) { - if (!isLegalKey(key)) { - throw new Error('Metadata key "' + key + '" contains illegal characters'); - } - if (value !== null && value !== undefined) { - if (isBinaryKey(key)) { - if (!Buffer.isBuffer(value)) { - throw new Error("keys that end with '-bin' must have Buffer values"); - } - } - else { - if (Buffer.isBuffer(value)) { - throw new Error("keys that don't end with '-bin' must have String values"); - } - if (!isLegalNonBinaryValue(value)) { - throw new Error('Metadata string value "' + value + '" contains illegal characters'); - } - } - } -} -/** - * A class for storing metadata. Keys are normalized to lowercase ASCII. - */ -class Metadata { - constructor(options = {}) { - this.internalRepr = new Map(); - this.options = options; - } - /** - * Sets the given value for the given key by replacing any other values - * associated with that key. Normalizes the key. - * @param key The key to whose value should be set. - * @param value The value to set. Must be a buffer if and only - * if the normalized key ends with '-bin'. - */ - set(key, value) { - key = normalizeKey(key); - validate(key, value); - this.internalRepr.set(key, [value]); - } - /** - * Adds the given value for the given key by appending to a list of previous - * values associated with that key. Normalizes the key. - * @param key The key for which a new value should be appended. - * @param value The value to add. Must be a buffer if and only - * if the normalized key ends with '-bin'. - */ - add(key, value) { - key = normalizeKey(key); - validate(key, value); - const existingValue = this.internalRepr.get(key); - if (existingValue === undefined) { - this.internalRepr.set(key, [value]); - } - else { - existingValue.push(value); - } - } - /** - * Removes the given key and any associated values. Normalizes the key. - * @param key The key whose values should be removed. - */ - remove(key) { - key = normalizeKey(key); - // validate(key); - this.internalRepr.delete(key); - } - /** - * Gets a list of all values associated with the key. Normalizes the key. - * @param key The key whose value should be retrieved. - * @return A list of values associated with the given key. - */ - get(key) { - key = normalizeKey(key); - // validate(key); - return this.internalRepr.get(key) || []; - } - /** - * Gets a plain object mapping each key to the first value associated with it. - * This reflects the most common way that people will want to see metadata. - * @return A key/value mapping of the metadata. - */ - getMap() { - const result = {}; - for (const [key, values] of this.internalRepr) { - if (values.length > 0) { - const v = values[0]; - result[key] = Buffer.isBuffer(v) ? Buffer.from(v) : v; - } - } - return result; - } - /** - * Clones the metadata object. - * @return The newly cloned object. - */ - clone() { - const newMetadata = new Metadata(this.options); - const newInternalRepr = newMetadata.internalRepr; - for (const [key, value] of this.internalRepr) { - const clonedValue = value.map(v => { - if (Buffer.isBuffer(v)) { - return Buffer.from(v); - } - else { - return v; - } - }); - newInternalRepr.set(key, clonedValue); - } - return newMetadata; - } - /** - * Merges all key-value pairs from a given Metadata object into this one. - * If both this object and the given object have values in the same key, - * values from the other Metadata object will be appended to this object's - * values. - * @param other A Metadata object. - */ - merge(other) { - for (const [key, values] of other.internalRepr) { - const mergedValue = (this.internalRepr.get(key) || []).concat(values); - this.internalRepr.set(key, mergedValue); - } - } - setOptions(options) { - this.options = options; - } - getOptions() { - return this.options; - } - /** - * Creates an OutgoingHttpHeaders object that can be used with the http2 API. - */ - toHttp2Headers() { - // NOTE: Node <8.9 formats http2 headers incorrectly. - const result = {}; - for (const [key, values] of this.internalRepr) { - // We assume that the user's interaction with this object is limited to - // through its public API (i.e. keys and values are already validated). - result[key] = values.map(bufToString); - } - return result; - } - /** - * This modifies the behavior of JSON.stringify to show an object - * representation of the metadata map. - */ - toJSON() { - const result = {}; - for (const [key, values] of this.internalRepr) { - result[key] = values; - } - return result; - } - /** - * Returns a new Metadata object based fields in a given IncomingHttpHeaders - * object. - * @param headers An IncomingHttpHeaders object. - */ - static fromHttp2Headers(headers) { - const result = new Metadata(); - for (const key of Object.keys(headers)) { - // Reserved headers (beginning with `:`) are not valid keys. - if (key.charAt(0) === ':') { - continue; - } - const values = headers[key]; - try { - if (isBinaryKey(key)) { - if (Array.isArray(values)) { - values.forEach(value => { - result.add(key, Buffer.from(value, 'base64')); - }); - } - else if (values !== undefined) { - if (isCustomMetadata(key)) { - values.split(',').forEach(v => { - result.add(key, Buffer.from(v.trim(), 'base64')); - }); - } - else { - result.add(key, Buffer.from(values, 'base64')); - } - } - } - else { - if (Array.isArray(values)) { - values.forEach(value => { - result.add(key, value); - }); - } - else if (values !== undefined) { - result.add(key, values); - } - } - } - catch (error) { - const message = `Failed to add metadata entry ${key}: ${values}. ${(0, error_1.getErrorMessage)(error)}. For more information see https://github.com/grpc/grpc-node/issues/1173`; - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, message); - } - } - return result; - } -} -exports.Metadata = Metadata; -const bufToString = (val) => { - return Buffer.isBuffer(val) ? val.toString('base64') : val; -}; -//# sourceMappingURL=metadata.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.js.map deleted file mode 100644 index e3d809c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/metadata.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/metadata.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,uCAAgC;AAChC,2CAA2C;AAC3C,mCAA0C;AAC1C,MAAM,eAAe,GAAG,gBAAgB,CAAC;AACzC,MAAM,4BAA4B,GAAG,UAAU,CAAC;AAKhD,SAAS,UAAU,CAAC,GAAW;IAC7B,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAa;IAC1C,OAAO,4BAA4B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,WAAW,CAAC,GAAW;IAC9B,OAAO,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED,SAAS,gBAAgB,CAAC,GAAW;IACnC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;AAC3B,CAAC;AAED,SAAS,QAAQ,CAAC,GAAW,EAAE,KAAqB;IAClD,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,gBAAgB,GAAG,GAAG,GAAG,+BAA+B,CAAC,CAAC;IAC5E,CAAC;IAED,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QAC1C,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;YACrB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC5B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,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wBAC1B,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;4BACrB,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;wBACzB,CAAC,CAAC,CAAC;oBACL,CAAC;yBAAM,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;wBAChC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;oBAC1B,CAAC;gBACH,CAAC;YACH,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,OAAO,GAAG,gCAAgC,GAAG,KAAK,MAAM,KAAK,IAAA,uBAAe,EAChF,KAAK,CACN,0EAA0E,CAAC;gBAC5E,IAAA,aAAG,EAAC,wBAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACnC,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA7MD,4BA6MC;AAED,MAAM,WAAW,GAAG,CAAC,GAAoB,EAAU,EAAE;IACnD,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAC7D,CAAC,CAAC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.d.ts deleted file mode 100644 index b424cc7..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/// <reference types="node" /> -import { Readable, Writable } from 'stream'; -import { EmitterAugmentation1 } from './events'; -export type WriteCallback = (error: Error | null | undefined) => void; -export interface IntermediateObjectReadable<T> extends Readable { - read(size?: number): any & T; -} -export type ObjectReadable<T> = { - read(size?: number): T; -} & EmitterAugmentation1<'data', T> & IntermediateObjectReadable<T>; -export interface IntermediateObjectWritable<T> extends Writable { - _write(chunk: any & T, encoding: string, callback: Function): void; - write(chunk: any & T, cb?: WriteCallback): boolean; - write(chunk: any & T, encoding?: any, cb?: WriteCallback): boolean; - setDefaultEncoding(encoding: string): this; - end(): ReturnType<Writable['end']> extends Writable ? this : void; - end(chunk: any & T, cb?: Function): ReturnType<Writable['end']> extends Writable ? this : void; - end(chunk: any & T, encoding?: any, cb?: Function): ReturnType<Writable['end']> extends Writable ? this : void; -} -export interface ObjectWritable<T> extends IntermediateObjectWritable<T> { - _write(chunk: T, encoding: string, callback: Function): void; - write(chunk: T, cb?: Function): boolean; - write(chunk: T, encoding?: any, cb?: Function): boolean; - setDefaultEncoding(encoding: string): this; - end(): ReturnType<Writable['end']> extends Writable ? this : void; - end(chunk: T, cb?: Function): ReturnType<Writable['end']> extends Writable ? this : void; - end(chunk: T, encoding?: any, cb?: Function): ReturnType<Writable['end']> extends Writable ? this : void; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.js deleted file mode 100644 index b947656..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=object-stream.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.js.map deleted file mode 100644 index fe8b624..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/object-stream.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-stream.js","sourceRoot":"","sources":["../../src/object-stream.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.d.ts deleted file mode 100644 index 3da17d6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { StatusObject } from './call-interface'; -import { Metadata } from './metadata'; -import { Status } from './constants'; -import { LoadBalancer } from './load-balancer'; -import { SubchannelInterface } from './subchannel-interface'; -export declare enum PickResultType { - COMPLETE = 0, - QUEUE = 1, - TRANSIENT_FAILURE = 2, - DROP = 3 -} -export interface PickResult { - pickResultType: PickResultType; - /** - * The subchannel to use as the transport for the call. Only meaningful if - * `pickResultType` is COMPLETE. If null, indicates that the call should be - * dropped. - */ - subchannel: SubchannelInterface | null; - /** - * The status object to end the call with. Populated if and only if - * `pickResultType` is TRANSIENT_FAILURE. - */ - status: StatusObject | null; - onCallStarted: (() => void) | null; - onCallEnded: ((statusCode: Status) => void) | null; -} -export interface CompletePickResult extends PickResult { - pickResultType: PickResultType.COMPLETE; - subchannel: SubchannelInterface | null; - status: null; - onCallStarted: (() => void) | null; - onCallEnded: ((statusCode: Status) => void) | null; -} -export interface QueuePickResult extends PickResult { - pickResultType: PickResultType.QUEUE; - subchannel: null; - status: null; - onCallStarted: null; - onCallEnded: null; -} -export interface TransientFailurePickResult extends PickResult { - pickResultType: PickResultType.TRANSIENT_FAILURE; - subchannel: null; - status: StatusObject; - onCallStarted: null; - onCallEnded: null; -} -export interface DropCallPickResult extends PickResult { - pickResultType: PickResultType.DROP; - subchannel: null; - status: StatusObject; - onCallStarted: null; - onCallEnded: null; -} -export interface PickArgs { - metadata: Metadata; - extraPickInfo: { - [key: string]: string; - }; -} -/** - * A proxy object representing the momentary state of a load balancer. Picks - * subchannels or returns other information based on that state. Should be - * replaced every time the load balancer changes state. - */ -export interface Picker { - pick(pickArgs: PickArgs): PickResult; -} -/** - * A standard picker representing a load balancer in the TRANSIENT_FAILURE - * state. Always responds to every pick request with an UNAVAILABLE status. - */ -export declare class UnavailablePicker implements Picker { - private status; - constructor(status?: Partial<StatusObject>); - pick(pickArgs: PickArgs): TransientFailurePickResult; -} -/** - * A standard picker representing a load balancer in the IDLE or CONNECTING - * state. Always responds to every pick request with a QUEUE pick result - * indicating that the pick should be tried again with the next `Picker`. Also - * reports back to the load balancer that a connection should be established - * once any pick is attempted. - */ -export declare class QueuePicker { - private loadBalancer; - private calledExitIdle; - constructor(loadBalancer: LoadBalancer); - pick(pickArgs: PickArgs): QueuePickResult; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.js deleted file mode 100644 index 2ae80a2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueuePicker = exports.UnavailablePicker = exports.PickResultType = void 0; -const metadata_1 = require("./metadata"); -const constants_1 = require("./constants"); -var PickResultType; -(function (PickResultType) { - PickResultType[PickResultType["COMPLETE"] = 0] = "COMPLETE"; - PickResultType[PickResultType["QUEUE"] = 1] = "QUEUE"; - PickResultType[PickResultType["TRANSIENT_FAILURE"] = 2] = "TRANSIENT_FAILURE"; - PickResultType[PickResultType["DROP"] = 3] = "DROP"; -})(PickResultType || (exports.PickResultType = PickResultType = {})); -/** - * A standard picker representing a load balancer in the TRANSIENT_FAILURE - * state. Always responds to every pick request with an UNAVAILABLE status. - */ -class UnavailablePicker { - constructor(status) { - this.status = Object.assign({ code: constants_1.Status.UNAVAILABLE, details: 'No connection established', metadata: new metadata_1.Metadata() }, status); - } - pick(pickArgs) { - return { - pickResultType: PickResultType.TRANSIENT_FAILURE, - subchannel: null, - status: this.status, - onCallStarted: null, - onCallEnded: null, - }; - } -} -exports.UnavailablePicker = UnavailablePicker; -/** - * A standard picker representing a load balancer in the IDLE or CONNECTING - * state. Always responds to every pick request with a QUEUE pick result - * indicating that the pick should be tried again with the next `Picker`. Also - * reports back to the load balancer that a connection should be established - * once any pick is attempted. - */ -class QueuePicker { - // Constructed with a load balancer. Calls exitIdle on it the first time pick is called - constructor(loadBalancer) { - this.loadBalancer = loadBalancer; - this.calledExitIdle = false; - } - pick(pickArgs) { - if (!this.calledExitIdle) { - process.nextTick(() => { - this.loadBalancer.exitIdle(); - }); - this.calledExitIdle = true; - } - return { - pickResultType: PickResultType.QUEUE, - subchannel: null, - status: null, - onCallStarted: null, - onCallEnded: null, - }; - } -} -exports.QueuePicker = QueuePicker; -//# sourceMappingURL=picker.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.js.map deleted file mode 100644 index 2d630d3..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/picker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"picker.js","sourceRoot":"","sources":["../../src/picker.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,yCAAsC;AACtC,2CAAqC;AAIrC,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,2DAAQ,CAAA;IACR,qDAAK,CAAA;IACL,6EAAiB,CAAA;IACjB,mDAAI,CAAA;AACN,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB;AAiED;;;GAGG;AACH,MAAa,iBAAiB;IAE5B,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,mBACT,IAAI,EAAE,kBAAM,CAAC,WAAW,EACxB,OAAO,EAAE,2BAA2B,EACpC,QAAQ,EAAE,IAAI,mBAAQ,EAAE,IACrB,MAAM,CACV,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,QAAkB;QACrB,OAAO;YACL,cAAc,EAAE,cAAc,CAAC,iBAAiB;YAChD,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,aAAa,EAAE,IAAI;YACnB,WAAW,EAAE,IAAI;SAClB,CAAC;IACJ,CAAC;CACF;AAnBD,8CAmBC;AAED;;;;;;GAMG;AACH,MAAa,WAAW;IAEtB,uFAAuF;IACvF,YAAoB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;QAFtC,mBAAc,GAAG,KAAK,CAAC;IAEkB,CAAC;IAElD,IAAI,CAAC,QAAkB;QACrB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YACzB,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;gBACpB,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;YAC/B,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC7B,CAAC;QACD,OAAO;YACL,cAAc,EAAE,cAAc,CAAC,KAAK;YACpC,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,IAAI;YACZ,aAAa,EAAE,IAAI;YACnB,WAAW,EAAE,IAAI;SAClB,CAAC;IACJ,CAAC;CACF;AApBD,kCAoBC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.d.ts deleted file mode 100644 index 138f7f1..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * The default TCP port to connect to if not explicitly specified in the target. - */ -export declare const DEFAULT_PORT = 443; -/** - * Set up the DNS resolver class by registering it as the handler for the - * "dns:" prefix and as the default resolver. - */ -export declare function setup(): void; -export interface DnsUrl { - host: string; - port?: string; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.js deleted file mode 100644 index cfff3e5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +++ /dev/null @@ -1,328 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setup = exports.DEFAULT_PORT = void 0; -const resolver_1 = require("./resolver"); -const dns = require("dns"); -const util = require("util"); -const service_config_1 = require("./service-config"); -const constants_1 = require("./constants"); -const metadata_1 = require("./metadata"); -const logging = require("./logging"); -const constants_2 = require("./constants"); -const uri_parser_1 = require("./uri-parser"); -const net_1 = require("net"); -const backoff_timeout_1 = require("./backoff-timeout"); -const TRACER_NAME = 'dns_resolver'; -function trace(text) { - logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text); -} -/** - * The default TCP port to connect to if not explicitly specified in the target. - */ -exports.DEFAULT_PORT = 443; -const DEFAULT_MIN_TIME_BETWEEN_RESOLUTIONS_MS = 30000; -const resolveTxtPromise = util.promisify(dns.resolveTxt); -const dnsLookupPromise = util.promisify(dns.lookup); -/** - * Merge any number of arrays into a single alternating array - * @param arrays - */ -function mergeArrays(...arrays) { - const result = []; - for (let i = 0; i < - Math.max.apply(null, arrays.map(array => array.length)); i++) { - for (const array of arrays) { - if (i < array.length) { - result.push(array[i]); - } - } - } - return result; -} -/** - * Resolver implementation that handles DNS names and IP addresses. - */ -class DnsResolver { - constructor(target, listener, channelOptions) { - var _a, _b, _c; - this.target = target; - this.listener = listener; - this.pendingLookupPromise = null; - this.pendingTxtPromise = null; - this.latestLookupResult = null; - this.latestServiceConfig = null; - this.latestServiceConfigError = null; - this.continueResolving = false; - this.isNextResolutionTimerRunning = false; - this.isServiceConfigEnabled = true; - this.returnedIpResult = false; - trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); - const hostPort = (0, uri_parser_1.splitHostPort)(target.path); - if (hostPort === null) { - this.ipResult = null; - this.dnsHostname = null; - this.port = null; - } - else { - if ((0, net_1.isIPv4)(hostPort.host) || (0, net_1.isIPv6)(hostPort.host)) { - this.ipResult = [ - { - host: hostPort.host, - port: (_a = hostPort.port) !== null && _a !== void 0 ? _a : exports.DEFAULT_PORT, - }, - ]; - this.dnsHostname = null; - this.port = null; - } - else { - this.ipResult = null; - this.dnsHostname = hostPort.host; - this.port = (_b = hostPort.port) !== null && _b !== void 0 ? _b : exports.DEFAULT_PORT; - } - } - this.percentage = Math.random() * 100; - if (channelOptions['grpc.service_config_disable_resolution'] === 1) { - this.isServiceConfigEnabled = false; - } - this.defaultResolutionError = { - code: constants_1.Status.UNAVAILABLE, - details: `Name resolution failed for target ${(0, uri_parser_1.uriToString)(this.target)}`, - metadata: new metadata_1.Metadata(), - }; - const backoffOptions = { - initialDelay: channelOptions['grpc.initial_reconnect_backoff_ms'], - maxDelay: channelOptions['grpc.max_reconnect_backoff_ms'], - }; - this.backoff = new backoff_timeout_1.BackoffTimeout(() => { - if (this.continueResolving) { - this.startResolutionWithBackoff(); - } - }, backoffOptions); - this.backoff.unref(); - this.minTimeBetweenResolutionsMs = - (_c = channelOptions['grpc.dns_min_time_between_resolutions_ms']) !== null && _c !== void 0 ? _c : DEFAULT_MIN_TIME_BETWEEN_RESOLUTIONS_MS; - this.nextResolutionTimer = setTimeout(() => { }, 0); - clearTimeout(this.nextResolutionTimer); - } - /** - * If the target is an IP address, just provide that address as a result. - * Otherwise, initiate A, AAAA, and TXT lookups - */ - startResolution() { - if (this.ipResult !== null) { - if (!this.returnedIpResult) { - trace('Returning IP address for target ' + (0, uri_parser_1.uriToString)(this.target)); - setImmediate(() => { - this.listener.onSuccessfulResolution(this.ipResult, null, null, null, {}); - }); - this.returnedIpResult = true; - } - this.backoff.stop(); - this.backoff.reset(); - this.stopNextResolutionTimer(); - return; - } - if (this.dnsHostname === null) { - trace('Failed to parse DNS address ' + (0, uri_parser_1.uriToString)(this.target)); - setImmediate(() => { - this.listener.onError({ - code: constants_1.Status.UNAVAILABLE, - details: `Failed to parse DNS address ${(0, uri_parser_1.uriToString)(this.target)}`, - metadata: new metadata_1.Metadata(), - }); - }); - this.stopNextResolutionTimer(); - } - else { - if (this.pendingLookupPromise !== null) { - return; - } - trace('Looking up DNS hostname ' + this.dnsHostname); - /* We clear out latestLookupResult here to ensure that it contains the - * latest result since the last time we started resolving. That way, the - * TXT resolution handler can use it, but only if it finishes second. We - * don't clear out any previous service config results because it's - * better to use a service config that's slightly out of date than to - * revert to an effectively blank one. */ - this.latestLookupResult = null; - const hostname = this.dnsHostname; - /* We lookup both address families here and then split them up later - * because when looking up a single family, dns.lookup outputs an error - * if the name exists but there are no records for that family, and that - * error is indistinguishable from other kinds of errors */ - this.pendingLookupPromise = dnsLookupPromise(hostname, { all: true }); - this.pendingLookupPromise.then(addressList => { - if (this.pendingLookupPromise === null) { - return; - } - this.pendingLookupPromise = null; - this.backoff.reset(); - this.backoff.stop(); - const ip4Addresses = addressList.filter(addr => addr.family === 4); - const ip6Addresses = addressList.filter(addr => addr.family === 6); - this.latestLookupResult = mergeArrays(ip6Addresses, ip4Addresses).map(addr => ({ host: addr.address, port: +this.port })); - const allAddressesString = '[' + - this.latestLookupResult - .map(addr => addr.host + ':' + addr.port) - .join(',') + - ']'; - trace('Resolved addresses for target ' + - (0, uri_parser_1.uriToString)(this.target) + - ': ' + - allAddressesString); - if (this.latestLookupResult.length === 0) { - this.listener.onError(this.defaultResolutionError); - return; - } - /* If the TXT lookup has not yet finished, both of the last two - * arguments will be null, which is the equivalent of getting an - * empty TXT response. When the TXT lookup does finish, its handler - * can update the service config by using the same address list */ - this.listener.onSuccessfulResolution(this.latestLookupResult, this.latestServiceConfig, this.latestServiceConfigError, null, {}); - }, err => { - if (this.pendingLookupPromise === null) { - return; - } - trace('Resolution error for target ' + - (0, uri_parser_1.uriToString)(this.target) + - ': ' + - err.message); - this.pendingLookupPromise = null; - this.stopNextResolutionTimer(); - this.listener.onError(this.defaultResolutionError); - }); - /* If there already is a still-pending TXT resolution, we can just use - * that result when it comes in */ - if (this.isServiceConfigEnabled && this.pendingTxtPromise === null) { - /* We handle the TXT query promise differently than the others because - * the name resolution attempt as a whole is a success even if the TXT - * lookup fails */ - this.pendingTxtPromise = resolveTxtPromise(hostname); - this.pendingTxtPromise.then(txtRecord => { - if (this.pendingTxtPromise === null) { - return; - } - this.pendingTxtPromise = null; - try { - this.latestServiceConfig = (0, service_config_1.extractAndSelectServiceConfig)(txtRecord, this.percentage); - } - catch (err) { - this.latestServiceConfigError = { - code: constants_1.Status.UNAVAILABLE, - details: `Parsing service config failed with error ${err.message}`, - metadata: new metadata_1.Metadata(), - }; - } - if (this.latestLookupResult !== null) { - /* We rely here on the assumption that calling this function with - * identical parameters will be essentialy idempotent, and calling - * it with the same address list and a different service config - * should result in a fast and seamless switchover. */ - this.listener.onSuccessfulResolution(this.latestLookupResult, this.latestServiceConfig, this.latestServiceConfigError, null, {}); - } - }, err => { - /* If TXT lookup fails we should do nothing, which means that we - * continue to use the result of the most recent successful lookup, - * or the default null config object if there has never been a - * successful lookup. We do not set the latestServiceConfigError - * here because that is specifically used for response validation - * errors. We still need to handle this error so that it does not - * bubble up as an unhandled promise rejection. */ - }); - } - } - } - startNextResolutionTimer() { - var _a, _b; - clearTimeout(this.nextResolutionTimer); - this.nextResolutionTimer = (_b = (_a = setTimeout(() => { - this.stopNextResolutionTimer(); - if (this.continueResolving) { - this.startResolutionWithBackoff(); - } - }, this.minTimeBetweenResolutionsMs)).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - this.isNextResolutionTimerRunning = true; - } - stopNextResolutionTimer() { - clearTimeout(this.nextResolutionTimer); - this.isNextResolutionTimerRunning = false; - } - startResolutionWithBackoff() { - if (this.pendingLookupPromise === null) { - this.continueResolving = false; - this.backoff.runOnce(); - this.startNextResolutionTimer(); - this.startResolution(); - } - } - updateResolution() { - /* If there is a pending lookup, just let it finish. Otherwise, if the - * nextResolutionTimer or backoff timer is running, set the - * continueResolving flag to resolve when whichever of those timers - * fires. Otherwise, start resolving immediately. */ - if (this.pendingLookupPromise === null) { - if (this.isNextResolutionTimerRunning || this.backoff.isRunning()) { - if (this.isNextResolutionTimerRunning) { - trace('resolution update delayed by "min time between resolutions" rate limit'); - } - else { - trace('resolution update delayed by backoff timer until ' + this.backoff.getEndTime().toISOString()); - } - this.continueResolving = true; - } - else { - this.startResolutionWithBackoff(); - } - } - } - /** - * Reset the resolver to the same state it had when it was created. In-flight - * DNS requests cannot be cancelled, but they are discarded and their results - * will be ignored. - */ - destroy() { - this.continueResolving = false; - this.backoff.reset(); - this.backoff.stop(); - this.stopNextResolutionTimer(); - this.pendingLookupPromise = null; - this.pendingTxtPromise = null; - this.latestLookupResult = null; - this.latestServiceConfig = null; - this.latestServiceConfigError = null; - this.returnedIpResult = false; - } - /** - * Get the default authority for the given target. For IP targets, that is - * the IP address. For DNS targets, it is the hostname. - * @param target - */ - static getDefaultAuthority(target) { - return target.path; - } -} -/** - * Set up the DNS resolver class by registering it as the handler for the - * "dns:" prefix and as the default resolver. - */ -function setup() { - (0, resolver_1.registerResolver)('dns', DnsResolver); - (0, resolver_1.registerDefaultScheme)('dns'); -} -exports.setup = setup; -//# sourceMappingURL=resolver-dns.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.js.map deleted file mode 100644 index dda65e8..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-dns.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolver-dns.js","sourceRoot":"","sources":["../../src/resolver-dns.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAKoB;AACpB,2BAA2B;AAC3B,6BAA6B;AAC7B,qDAAgF;AAChF,2CAAqC;AAErC,yCAAsC;AACtC,qCAAqC;AACrC,2CAA2C;AAE3C,6CAAmE;AACnE,6BAAqC;AAErC,uDAAmE;AAEnE,MAAM,WAAW,GAAG,cAAc,CAAC;AAEnC,SAAS,KAAK,CAAC,IAAY;IACzB,OAAO,CAAC,KAAK,CAAC,wBAAY,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACvD,CAAC;AAED;;GAEG;AACU,QAAA,YAAY,GAAG,GAAG,CAAC;AAEhC,MAAM,uCAAuC,GAAG,KAAM,CAAC;AAEvD,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AACzD,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAEpD;;;GAGG;AACH,SAAS,WAAW,CAAI,GAAG,MAAa;IACtC,MAAM,MAAM,GAAQ,EAAE,CAAC;IACvB,KACE,IAAI,CAAC,GAAG,CAAC,EACT,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,KAAK,CACZ,IAAI,EACJ,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAClC,EACD,CAAC,EAAE,EACH,CAAC;QACD,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAI,CAA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C,mBAAmB,GAAG,IAAI,CAAC;QAChC,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC;QACrC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;IAChC,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,mBAAmB,CAAC,MAAe;QACxC,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;CACF;AAED;;;GAGG;AACH,SAAgB,KAAK;IACnB,IAAA,2BAAgB,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,IAAA,gCAAqB,EAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAHD,sBAGC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.d.ts deleted file mode 100644 index 2bec678..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function setup(): void; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.js deleted file mode 100644 index c9c8a5d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setup = void 0; -const net_1 = require("net"); -const constants_1 = require("./constants"); -const metadata_1 = require("./metadata"); -const resolver_1 = require("./resolver"); -const uri_parser_1 = require("./uri-parser"); -const logging = require("./logging"); -const TRACER_NAME = 'ip_resolver'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const IPV4_SCHEME = 'ipv4'; -const IPV6_SCHEME = 'ipv6'; -/** - * The default TCP port to connect to if not explicitly specified in the target. - */ -const DEFAULT_PORT = 443; -class IpResolver { - constructor(target, listener, channelOptions) { - var _a; - this.listener = listener; - this.addresses = []; - this.error = null; - this.hasReturnedResult = false; - trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); - const addresses = []; - if (!(target.scheme === IPV4_SCHEME || target.scheme === IPV6_SCHEME)) { - this.error = { - code: constants_1.Status.UNAVAILABLE, - details: `Unrecognized scheme ${target.scheme} in IP resolver`, - metadata: new metadata_1.Metadata(), - }; - return; - } - const pathList = target.path.split(','); - for (const path of pathList) { - const hostPort = (0, uri_parser_1.splitHostPort)(path); - if (hostPort === null) { - this.error = { - code: constants_1.Status.UNAVAILABLE, - details: `Failed to parse ${target.scheme} address ${path}`, - metadata: new metadata_1.Metadata(), - }; - return; - } - if ((target.scheme === IPV4_SCHEME && !(0, net_1.isIPv4)(hostPort.host)) || - (target.scheme === IPV6_SCHEME && !(0, net_1.isIPv6)(hostPort.host))) { - this.error = { - code: constants_1.Status.UNAVAILABLE, - details: `Failed to parse ${target.scheme} address ${path}`, - metadata: new metadata_1.Metadata(), - }; - return; - } - addresses.push({ - host: hostPort.host, - port: (_a = hostPort.port) !== null && _a !== void 0 ? _a : DEFAULT_PORT, - }); - } - this.addresses = addresses; - trace('Parsed ' + target.scheme + ' address list ' + this.addresses); - } - updateResolution() { - if (!this.hasReturnedResult) { - this.hasReturnedResult = true; - process.nextTick(() => { - if (this.error) { - this.listener.onError(this.error); - } - else { - this.listener.onSuccessfulResolution(this.addresses, null, null, null, {}); - } - }); - } - } - destroy() { - this.hasReturnedResult = false; - } - static getDefaultAuthority(target) { - return target.path.split(',')[0]; - } -} -function setup() { - (0, resolver_1.registerResolver)(IPV4_SCHEME, IpResolver); - (0, resolver_1.registerResolver)(IPV6_SCHEME, IpResolver); -} -exports.setup = setup; -//# sourceMappingURL=resolver-ip.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.js.map deleted file mode 100644 index 6a8cfa0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-ip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolver-ip.js","sourceRoot":"","sources":["../../src/resolver-ip.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,6BAAqC;AAGrC,2CAAmD;AACnD,yCAAsC;AACtC,yCAA0E;AAE1E,6CAAmE;AACnE,qCAAqC;AAErC,MAAM,WAAW,GAAG,aAAa,CAAC;AAElC,SAAS,KAAK,CAAC,IAAY;IACzB,OAAO,CAAC,KAAK,CAAC,wBAAY,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,WAAW,GAAG,MAAM,CAAC;AAC3B,MAAM,WAAW,GAAG,MAAM,CAAC;AAE3B;;GAEG;AACH,MAAM,YAAY,GAAG,GAAG,CAAC;AAEzB,MAAM,UAAU;IAId,YACE,MAAe,EACP,QAA0B,EAClC,cAA8B;;QADtB,aAAQ,GAAR,QAAQ,CAAkB;QAL5B,cAAS,GAAwB,EAAE,CAAC;QACpC,UAAK,GAAwB,IAAI,CAAC;QAClC,sBAAiB,GAAG,KAAK,CAAC;QAMhC,KAAK,CAAC,kCAAkC,GAAG,IAAA,wBAAW,EAAC,MAAM,CAAC,CAAC,CAAC;QAChE,MAAM,SAAS,GAAwB,EAAE,CAAC;QAC1C,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC,EAAE,CAAC;YACtE,IAAI,CAAC,KAAK,GAAG;gBACX,IAAI,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B,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IACvE,CAAC;IACD,gBAAgB;QACd,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC5B,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;YAC9B,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE;gBACpB,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;oBACf,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAClC,IAAI,CAAC,SAAS,EACd,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,EAAE,CACH,CAAC;gBACJ,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO;QACL,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,MAAe;QACxC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;CACF;AAED,SAAgB,KAAK;IACnB,IAAA,2BAAgB,EAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAC1C,IAAA,2BAAgB,EAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAC5C,CAAC;AAHD,sBAGC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.d.ts deleted file mode 100644 index 2bec678..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function setup(): void; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.js deleted file mode 100644 index 5937fce..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setup = void 0; -const resolver_1 = require("./resolver"); -class UdsResolver { - constructor(target, listener, channelOptions) { - this.listener = listener; - this.addresses = []; - this.hasReturnedResult = false; - let path; - if (target.authority === '') { - path = '/' + target.path; - } - else { - path = target.path; - } - this.addresses = [{ path }]; - } - updateResolution() { - if (!this.hasReturnedResult) { - this.hasReturnedResult = true; - process.nextTick(this.listener.onSuccessfulResolution, this.addresses, null, null, null, {}); - } - } - destroy() { - // This resolver owns no resources, so we do nothing here. - } - static getDefaultAuthority(target) { - return 'localhost'; - } -} -function setup() { - (0, resolver_1.registerResolver)('unix', UdsResolver); -} -exports.setup = setup; -//# sourceMappingURL=resolver-uds.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.js.map deleted file mode 100644 index ce7f3bd..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver-uds.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolver-uds.js","sourceRoot":"","sources":["../../src/resolver-uds.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,yCAA0E;AAK1E,MAAM,WAAW;IAGf,YACE,MAAe,EACP,QAA0B,EAClC,cAA8B;QADtB,aAAQ,GAAR,QAAQ,CAAkB;QAJ5B,cAAS,GAAwB,EAAE,CAAC;QACpC,sBAAiB,GAAG,KAAK,CAAC;QAMhC,IAAI,IAAY,CAAC;QACjB,IAAI,MAAM,CAAC,SAAS,KAAK,EAAE,EAAE,CAAC;YAC5B,IAAI,GAAG,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC;QAC3B,CAAC;aAAM,CAAC;YACN,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;QACD,IAAI,CAAC,SAAS,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9B,CAAC;IACD,gBAAgB;QACd,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC5B,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;YAC9B,OAAO,CAAC,QAAQ,CACd,IAAI,CAAC,QAAQ,CAAC,sBAAsB,EACpC,IAAI,CAAC,SAAS,EACd,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,EAAE,CACH,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO;QACL,0DAA0D;IAC5D,CAAC;IAED,MAAM,CAAC,mBAAmB,CAAC,MAAe;QACxC,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAED,SAAgB,KAAK;IACnB,IAAA,2BAAgB,EAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACxC,CAAC;AAFD,sBAEC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.d.ts deleted file mode 100644 index 35d2c74..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { MethodConfig, ServiceConfig } from './service-config'; -import { StatusObject } from './call-interface'; -import { SubchannelAddress } from './subchannel-address'; -import { GrpcUri } from './uri-parser'; -import { ChannelOptions } from './channel-options'; -import { Metadata } from './metadata'; -import { Status } from './constants'; -import { Filter, FilterFactory } from './filter'; -export interface CallConfig { - methodConfig: MethodConfig; - onCommitted?: () => void; - pickInformation: { - [key: string]: string; - }; - status: Status; - dynamicFilterFactories: FilterFactory<Filter>[]; -} -/** - * Selects a configuration for a method given the name and metadata. Defined in - * https://github.com/grpc/proposal/blob/master/A31-xds-timeout-support-and-config-selector.md#new-functionality-in-grpc - */ -export interface ConfigSelector { - (methodName: string, metadata: Metadata): CallConfig; -} -/** - * A listener object passed to the resolver's constructor that provides name - * resolution updates back to the resolver's owner. - */ -export interface ResolverListener { - /** - * Called whenever the resolver has new name resolution results to report - * @param addressList The new list of backend addresses - * @param serviceConfig The new service configuration corresponding to the - * `addressList`. Will be `null` if no service configuration was - * retrieved or if the service configuration was invalid - * @param serviceConfigError If non-`null`, indicates that the retrieved - * service configuration was invalid - */ - onSuccessfulResolution(addressList: SubchannelAddress[], serviceConfig: ServiceConfig | null, serviceConfigError: StatusObject | null, configSelector: ConfigSelector | null, attributes: { - [key: string]: unknown; - }): void; - /** - * Called whenever a name resolution attempt fails. - * @param error Describes how resolution failed - */ - onError(error: StatusObject): void; -} -/** - * A resolver class that handles one or more of the name syntax schemes defined - * in the [gRPC Name Resolution document](https://github.com/grpc/grpc/blob/master/doc/naming.md) - */ -export interface Resolver { - /** - * Indicates that the caller wants new name resolution data. Calling this - * function may eventually result in calling one of the `ResolverListener` - * functions, but that is not guaranteed. Those functions will never be - * called synchronously with the constructor or updateResolution. - */ - updateResolution(): void; - /** - * Discard all resources owned by the resolver. A later call to - * `updateResolution` should reinitialize those resources. No - * `ResolverListener` callbacks should be called after `destroy` is called - * until `updateResolution` is called again. - */ - destroy(): void; -} -export interface ResolverConstructor { - new (target: GrpcUri, listener: ResolverListener, channelOptions: ChannelOptions): Resolver; - /** - * Get the default authority for a target. This loosely corresponds to that - * target's hostname. Throws an error if this resolver class cannot parse the - * `target`. - * @param target - */ - getDefaultAuthority(target: GrpcUri): string; -} -/** - * Register a resolver class to handle target names prefixed with the `prefix` - * string. This prefix should correspond to a URI scheme name listed in the - * [gRPC Name Resolution document](https://github.com/grpc/grpc/blob/master/doc/naming.md) - * @param prefix - * @param resolverClass - */ -export declare function registerResolver(scheme: string, resolverClass: ResolverConstructor): void; -/** - * Register a default resolver to handle target names that do not start with - * any registered prefix. - * @param resolverClass - */ -export declare function registerDefaultScheme(scheme: string): void; -/** - * Create a name resolver for the specified target, if possible. Throws an - * error if no such name resolver can be created. - * @param target - * @param listener - */ -export declare function createResolver(target: GrpcUri, listener: ResolverListener, options: ChannelOptions): Resolver; -/** - * Get the default authority for the specified target, if possible. Throws an - * error if no registered name resolver can parse that target string. - * @param target - */ -export declare function getDefaultAuthority(target: GrpcUri): string; -export declare function mapUriDefaultScheme(target: GrpcUri): GrpcUri | null; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.js deleted file mode 100644 index 530cb83..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mapUriDefaultScheme = exports.getDefaultAuthority = exports.createResolver = exports.registerDefaultScheme = exports.registerResolver = void 0; -const uri_parser_1 = require("./uri-parser"); -const registeredResolvers = {}; -let defaultScheme = null; -/** - * Register a resolver class to handle target names prefixed with the `prefix` - * string. This prefix should correspond to a URI scheme name listed in the - * [gRPC Name Resolution document](https://github.com/grpc/grpc/blob/master/doc/naming.md) - * @param prefix - * @param resolverClass - */ -function registerResolver(scheme, resolverClass) { - registeredResolvers[scheme] = resolverClass; -} -exports.registerResolver = registerResolver; -/** - * Register a default resolver to handle target names that do not start with - * any registered prefix. - * @param resolverClass - */ -function registerDefaultScheme(scheme) { - defaultScheme = scheme; -} -exports.registerDefaultScheme = registerDefaultScheme; -/** - * Create a name resolver for the specified target, if possible. Throws an - * error if no such name resolver can be created. - * @param target - * @param listener - */ -function createResolver(target, listener, options) { - if (target.scheme !== undefined && target.scheme in registeredResolvers) { - return new registeredResolvers[target.scheme](target, listener, options); - } - else { - throw new Error(`No resolver could be created for target ${(0, uri_parser_1.uriToString)(target)}`); - } -} -exports.createResolver = createResolver; -/** - * Get the default authority for the specified target, if possible. Throws an - * error if no registered name resolver can parse that target string. - * @param target - */ -function getDefaultAuthority(target) { - if (target.scheme !== undefined && target.scheme in registeredResolvers) { - return registeredResolvers[target.scheme].getDefaultAuthority(target); - } - else { - throw new Error(`Invalid target ${(0, uri_parser_1.uriToString)(target)}`); - } -} -exports.getDefaultAuthority = getDefaultAuthority; -function mapUriDefaultScheme(target) { - if (target.scheme === undefined || !(target.scheme in registeredResolvers)) { - if (defaultScheme !== null) { - return { - scheme: defaultScheme, - authority: undefined, - path: (0, uri_parser_1.uriToString)(target), - }; - } - else { - return null; - } - } - return target; -} -exports.mapUriDefaultScheme = mapUriDefaultScheme; -//# sourceMappingURL=resolver.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.js.map deleted file mode 100644 index 93bb3bb..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolver.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolver.js","sourceRoot":"","sources":["../../src/resolver.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,6CAAoD;AAuFpD,MAAM,mBAAmB,GAA8C,EAAE,CAAC;AAC1E,IAA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,IAAI,EAAE,CAAC;YAC3B,OAAO;gBACL,MAAM,EAAE,aAAa;gBACrB,SAAS,EAAE,SAAS;gBACpB,IAAI,EAAE,IAAA,wBAAW,EAAC,MAAM,CAAC;aAC1B,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAbD,kDAaC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.d.ts deleted file mode 100644 index 6d98b81..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/// <reference types="node" /> -import { CallCredentials } from './call-credentials'; -import { Call, CallStreamOptions, InterceptingListener, MessageContext, StatusObject } from './call-interface'; -import { Status } from './constants'; -import { FilterStackFactory } from './filter-stack'; -import { InternalChannel } from './internal-channel'; -import { Metadata } from './metadata'; -export declare class ResolvingCall implements Call { - private readonly channel; - private readonly method; - private readonly filterStackFactory; - private credentials; - private callNumber; - private child; - private readPending; - private pendingMessage; - private pendingHalfClose; - private ended; - private readFilterPending; - private writeFilterPending; - private pendingChildStatus; - private metadata; - private listener; - private deadline; - private host; - private statusWatchers; - private deadlineTimer; - private filterStack; - constructor(channel: InternalChannel, method: string, options: CallStreamOptions, filterStackFactory: FilterStackFactory, credentials: CallCredentials, callNumber: number); - private trace; - private runDeadlineTimer; - private outputStatus; - private sendMessageOnChild; - getConfig(): void; - reportResolverError(status: StatusObject): void; - cancelWithStatus(status: Status, details: string): void; - getPeer(): string; - start(metadata: Metadata, listener: InterceptingListener): void; - sendMessageWithContext(context: MessageContext, message: Buffer): void; - startRead(): void; - halfClose(): void; - setCredentials(credentials: CallCredentials): void; - addStatusWatcher(watcher: (status: StatusObject) => void): void; - getCallNumber(): number; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.js deleted file mode 100644 index 061d4e6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.js +++ /dev/null @@ -1,273 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ResolvingCall = void 0; -const constants_1 = require("./constants"); -const deadline_1 = require("./deadline"); -const metadata_1 = require("./metadata"); -const logging = require("./logging"); -const control_plane_status_1 = require("./control-plane-status"); -const TRACER_NAME = 'resolving_call'; -class ResolvingCall { - constructor(channel, method, options, filterStackFactory, credentials, callNumber) { - this.channel = channel; - this.method = method; - this.filterStackFactory = filterStackFactory; - this.credentials = credentials; - this.callNumber = callNumber; - this.child = null; - this.readPending = false; - this.pendingMessage = null; - this.pendingHalfClose = false; - this.ended = false; - this.readFilterPending = false; - this.writeFilterPending = false; - this.pendingChildStatus = null; - this.metadata = null; - this.listener = null; - this.statusWatchers = []; - this.deadlineTimer = setTimeout(() => { }, 0); - this.filterStack = null; - this.deadline = options.deadline; - this.host = options.host; - if (options.parentCall) { - if (options.flags & constants_1.Propagate.CANCELLATION) { - options.parentCall.on('cancelled', () => { - this.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled by parent call'); - }); - } - if (options.flags & constants_1.Propagate.DEADLINE) { - this.trace('Propagating deadline from parent: ' + - options.parentCall.getDeadline()); - this.deadline = (0, deadline_1.minDeadline)(this.deadline, options.parentCall.getDeadline()); - } - } - this.trace('Created'); - this.runDeadlineTimer(); - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); - } - runDeadlineTimer() { - clearTimeout(this.deadlineTimer); - this.trace('Deadline: ' + (0, deadline_1.deadlineToString)(this.deadline)); - const timeout = (0, deadline_1.getRelativeTimeout)(this.deadline); - if (timeout !== Infinity) { - this.trace('Deadline will be reached in ' + timeout + 'ms'); - const handleDeadline = () => { - this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); - }; - if (timeout <= 0) { - process.nextTick(handleDeadline); - } - else { - this.deadlineTimer = setTimeout(handleDeadline, timeout); - } - } - } - outputStatus(status) { - if (!this.ended) { - this.ended = true; - if (!this.filterStack) { - this.filterStack = this.filterStackFactory.createFilter(); - } - clearTimeout(this.deadlineTimer); - const filteredStatus = this.filterStack.receiveTrailers(status); - this.trace('ended with status: code=' + - filteredStatus.code + - ' details="' + - filteredStatus.details + - '"'); - this.statusWatchers.forEach(watcher => watcher(filteredStatus)); - process.nextTick(() => { - var _a; - (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(filteredStatus); - }); - } - } - sendMessageOnChild(context, message) { - if (!this.child) { - throw new Error('sendMessageonChild called with child not populated'); - } - const child = this.child; - this.writeFilterPending = true; - this.filterStack.sendMessage(Promise.resolve({ message: message, flags: context.flags })).then(filteredMessage => { - this.writeFilterPending = false; - child.sendMessageWithContext(context, filteredMessage.message); - if (this.pendingHalfClose) { - child.halfClose(); - } - }, (status) => { - this.cancelWithStatus(status.code, status.details); - }); - } - getConfig() { - if (this.ended) { - return; - } - if (!this.metadata || !this.listener) { - throw new Error('getConfig called before start'); - } - const configResult = this.channel.getConfig(this.method, this.metadata); - if (configResult.type === 'NONE') { - this.channel.queueCallForConfig(this); - return; - } - else if (configResult.type === 'ERROR') { - if (this.metadata.getOptions().waitForReady) { - this.channel.queueCallForConfig(this); - } - else { - this.outputStatus(configResult.error); - } - return; - } - // configResult.type === 'SUCCESS' - const config = configResult.config; - if (config.status !== constants_1.Status.OK) { - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(config.status, 'Failed to route call to method ' + this.method); - this.outputStatus({ - code: code, - details: details, - metadata: new metadata_1.Metadata(), - }); - return; - } - if (config.methodConfig.timeout) { - const configDeadline = new Date(); - configDeadline.setSeconds(configDeadline.getSeconds() + config.methodConfig.timeout.seconds); - configDeadline.setMilliseconds(configDeadline.getMilliseconds() + - config.methodConfig.timeout.nanos / 1000000); - this.deadline = (0, deadline_1.minDeadline)(this.deadline, configDeadline); - this.runDeadlineTimer(); - } - this.filterStackFactory.push(config.dynamicFilterFactories); - this.filterStack = this.filterStackFactory.createFilter(); - this.filterStack.sendMetadata(Promise.resolve(this.metadata)).then(filteredMetadata => { - this.child = this.channel.createInnerCall(config, this.method, this.host, this.credentials, this.deadline); - this.trace('Created child [' + this.child.getCallNumber() + ']'); - this.child.start(filteredMetadata, { - onReceiveMetadata: metadata => { - this.trace('Received metadata'); - this.listener.onReceiveMetadata(this.filterStack.receiveMetadata(metadata)); - }, - onReceiveMessage: message => { - this.trace('Received message'); - this.readFilterPending = true; - this.filterStack.receiveMessage(message).then(filteredMesssage => { - this.trace('Finished filtering received message'); - this.readFilterPending = false; - this.listener.onReceiveMessage(filteredMesssage); - if (this.pendingChildStatus) { - this.outputStatus(this.pendingChildStatus); - } - }, (status) => { - this.cancelWithStatus(status.code, status.details); - }); - }, - onReceiveStatus: status => { - this.trace('Received status'); - if (this.readFilterPending) { - this.pendingChildStatus = status; - } - else { - this.outputStatus(status); - } - }, - }); - if (this.readPending) { - this.child.startRead(); - } - if (this.pendingMessage) { - this.sendMessageOnChild(this.pendingMessage.context, this.pendingMessage.message); - } - else if (this.pendingHalfClose) { - this.child.halfClose(); - } - }, (status) => { - this.outputStatus(status); - }); - } - reportResolverError(status) { - var _a; - if ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.getOptions().waitForReady) { - this.channel.queueCallForConfig(this); - } - else { - this.outputStatus(status); - } - } - cancelWithStatus(status, details) { - var _a; - this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); - (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status, details); - this.outputStatus({ - code: status, - details: details, - metadata: new metadata_1.Metadata(), - }); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.child) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.channel.getTarget(); - } - start(metadata, listener) { - this.trace('start called'); - this.metadata = metadata.clone(); - this.listener = listener; - this.getConfig(); - } - sendMessageWithContext(context, message) { - this.trace('write() called with message of length ' + message.length); - if (this.child) { - this.sendMessageOnChild(context, message); - } - else { - this.pendingMessage = { context, message }; - } - } - startRead() { - this.trace('startRead called'); - if (this.child) { - this.child.startRead(); - } - else { - this.readPending = true; - } - } - halfClose() { - this.trace('halfClose called'); - if (this.child && !this.writeFilterPending) { - this.child.halfClose(); - } - else { - this.pendingHalfClose = true; - } - } - setCredentials(credentials) { - this.credentials = this.credentials.compose(credentials); - } - addStatusWatcher(watcher) { - this.statusWatchers.push(watcher); - } - getCallNumber() { - return this.callNumber; - } -} -exports.ResolvingCall = ResolvingCall; -//# sourceMappingURL=resolving-call.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.js.map deleted file mode 100644 index 4fd2a73..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-call.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolving-call.js","sourceRoot":"","sources":["../../src/resolving-call.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAUH,2CAA8D;AAC9D,yCAKoB;AAGpB,yCAAsC;AACtC,qCAAqC;AACrC,iEAAwE;AAExE,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAErC,MAAa,aAAa;IAkBxB,YACmB,OAAwB,EACxB,MAAc,EAC/B,OAA0B,EAC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I,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC3D,CAAC;IAED,gBAAgB,CAAC,OAAuC;QACtD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AAlSD,sCAkSC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.d.ts deleted file mode 100644 index 1f697fb..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { ChannelControlHelper, LoadBalancer, LoadBalancingConfig } from './load-balancer'; -import { ServiceConfig } from './service-config'; -import { ConfigSelector } from './resolver'; -import { StatusObject } from './call-interface'; -import { SubchannelAddress } from './subchannel-address'; -import { GrpcUri } from './uri-parser'; -import { ChannelOptions } from './channel-options'; -export interface ResolutionCallback { - (serviceConfig: ServiceConfig, configSelector: ConfigSelector): void; -} -export interface ResolutionFailureCallback { - (status: StatusObject): void; -} -export declare class ResolvingLoadBalancer implements LoadBalancer { - private readonly target; - private readonly channelControlHelper; - private readonly onSuccessfulResolution; - private readonly onFailedResolution; - /** - * The resolver class constructed for the target address. - */ - private readonly innerResolver; - private readonly childLoadBalancer; - private latestChildState; - private latestChildPicker; - /** - * This resolving load balancer's current connectivity state. - */ - private currentState; - private readonly defaultServiceConfig; - /** - * The service config object from the last successful resolution, if - * available. A value of null indicates that we have not yet received a valid - * service config from the resolver. - */ - private previousServiceConfig; - /** - * The backoff timer for handling name resolution failures. - */ - private readonly backoffTimeout; - /** - * Indicates whether we should attempt to resolve again after the backoff - * timer runs out. - */ - private continueResolving; - /** - * Wrapper class that behaves like a `LoadBalancer` and also handles name - * resolution internally. - * @param target The address of the backend to connect to. - * @param channelControlHelper `ChannelControlHelper` instance provided by - * this load balancer's owner. - * @param defaultServiceConfig The default service configuration to be used - * if none is provided by the name resolver. A `null` value indicates - * that the default behavior should be the default unconfigured behavior. - * In practice, that means using the "pick first" load balancer - * implmentation - */ - constructor(target: GrpcUri, channelControlHelper: ChannelControlHelper, channelOptions: ChannelOptions, onSuccessfulResolution: ResolutionCallback, onFailedResolution: ResolutionFailureCallback); - private updateResolution; - private updateState; - private handleResolutionFailure; - exitIdle(): void; - updateAddressList(addressList: SubchannelAddress[], lbConfig: LoadBalancingConfig | null): never; - resetBackoff(): void; - destroy(): void; - getTypeName(): string; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js deleted file mode 100644 index 6867faf..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +++ /dev/null @@ -1,304 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ResolvingLoadBalancer = void 0; -const load_balancer_1 = require("./load-balancer"); -const service_config_1 = require("./service-config"); -const connectivity_state_1 = require("./connectivity-state"); -const resolver_1 = require("./resolver"); -const picker_1 = require("./picker"); -const backoff_timeout_1 = require("./backoff-timeout"); -const constants_1 = require("./constants"); -const metadata_1 = require("./metadata"); -const logging = require("./logging"); -const constants_2 = require("./constants"); -const uri_parser_1 = require("./uri-parser"); -const load_balancer_child_handler_1 = require("./load-balancer-child-handler"); -const TRACER_NAME = 'resolving_load_balancer'; -function trace(text) { - logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text); -} -/** - * Name match levels in order from most to least specific. This is the order in - * which searches will be performed. - */ -const NAME_MATCH_LEVEL_ORDER = [ - 'SERVICE_AND_METHOD', - 'SERVICE', - 'EMPTY', -]; -function hasMatchingName(service, method, methodConfig, matchLevel) { - for (const name of methodConfig.name) { - switch (matchLevel) { - case 'EMPTY': - if (!name.service && !name.method) { - return true; - } - break; - case 'SERVICE': - if (name.service === service && !name.method) { - return true; - } - break; - case 'SERVICE_AND_METHOD': - if (name.service === service && name.method === method) { - return true; - } - } - } - return false; -} -function findMatchingConfig(service, method, methodConfigs, matchLevel) { - for (const config of methodConfigs) { - if (hasMatchingName(service, method, config, matchLevel)) { - return config; - } - } - return null; -} -function getDefaultConfigSelector(serviceConfig) { - return function defaultConfigSelector(methodName, metadata) { - var _a, _b; - const splitName = methodName.split('/').filter(x => x.length > 0); - const service = (_a = splitName[0]) !== null && _a !== void 0 ? _a : ''; - const method = (_b = splitName[1]) !== null && _b !== void 0 ? _b : ''; - if (serviceConfig && serviceConfig.methodConfig) { - /* Check for the following in order, and return the first method - * config that matches: - * 1. A name that exactly matches the service and method - * 2. A name with no method set that matches the service - * 3. An empty name - */ - for (const matchLevel of NAME_MATCH_LEVEL_ORDER) { - const matchingConfig = findMatchingConfig(service, method, serviceConfig.methodConfig, matchLevel); - if (matchingConfig) { - return { - methodConfig: matchingConfig, - pickInformation: {}, - status: constants_1.Status.OK, - dynamicFilterFactories: [], - }; - } - } - } - return { - methodConfig: { name: [] }, - pickInformation: {}, - status: constants_1.Status.OK, - dynamicFilterFactories: [], - }; - }; -} -class ResolvingLoadBalancer { - /** - * Wrapper class that behaves like a `LoadBalancer` and also handles name - * resolution internally. - * @param target The address of the backend to connect to. - * @param channelControlHelper `ChannelControlHelper` instance provided by - * this load balancer's owner. - * @param defaultServiceConfig The default service configuration to be used - * if none is provided by the name resolver. A `null` value indicates - * that the default behavior should be the default unconfigured behavior. - * In practice, that means using the "pick first" load balancer - * implmentation - */ - constructor(target, channelControlHelper, channelOptions, onSuccessfulResolution, onFailedResolution) { - this.target = target; - this.channelControlHelper = channelControlHelper; - this.onSuccessfulResolution = onSuccessfulResolution; - this.onFailedResolution = onFailedResolution; - this.latestChildState = connectivity_state_1.ConnectivityState.IDLE; - this.latestChildPicker = new picker_1.QueuePicker(this); - /** - * This resolving load balancer's current connectivity state. - */ - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - /** - * The service config object from the last successful resolution, if - * available. A value of null indicates that we have not yet received a valid - * service config from the resolver. - */ - this.previousServiceConfig = null; - /** - * Indicates whether we should attempt to resolve again after the backoff - * timer runs out. - */ - this.continueResolving = false; - if (channelOptions['grpc.service_config']) { - this.defaultServiceConfig = (0, service_config_1.validateServiceConfig)(JSON.parse(channelOptions['grpc.service_config'])); - } - else { - this.defaultServiceConfig = { - loadBalancingConfig: [], - methodConfig: [], - }; - } - this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this)); - this.childLoadBalancer = new load_balancer_child_handler_1.ChildLoadBalancerHandler({ - createSubchannel: channelControlHelper.createSubchannel.bind(channelControlHelper), - requestReresolution: () => { - /* If the backoffTimeout is running, we're still backing off from - * making resolve requests, so we shouldn't make another one here. - * In that case, the backoff timer callback will call - * updateResolution */ - if (this.backoffTimeout.isRunning()) { - trace('requestReresolution delayed by backoff timer until ' + this.backoffTimeout.getEndTime().toISOString()); - this.continueResolving = true; - } - else { - this.updateResolution(); - } - }, - updateState: (newState, picker) => { - this.latestChildState = newState; - this.latestChildPicker = picker; - this.updateState(newState, picker); - }, - addChannelzChild: channelControlHelper.addChannelzChild.bind(channelControlHelper), - removeChannelzChild: channelControlHelper.removeChannelzChild.bind(channelControlHelper), - }); - this.innerResolver = (0, resolver_1.createResolver)(target, { - onSuccessfulResolution: (addressList, serviceConfig, serviceConfigError, configSelector, attributes) => { - var _a; - this.backoffTimeout.stop(); - this.backoffTimeout.reset(); - let workingServiceConfig = null; - /* This first group of conditionals implements the algorithm described - * in https://github.com/grpc/proposal/blob/master/A21-service-config-error-handling.md - * in the section called "Behavior on receiving a new gRPC Config". - */ - if (serviceConfig === null) { - // Step 4 and 5 - if (serviceConfigError === null) { - // Step 5 - this.previousServiceConfig = null; - workingServiceConfig = this.defaultServiceConfig; - } - else { - // Step 4 - if (this.previousServiceConfig === null) { - // Step 4.ii - this.handleResolutionFailure(serviceConfigError); - } - else { - // Step 4.i - workingServiceConfig = this.previousServiceConfig; - } - } - } - else { - // Step 3 - workingServiceConfig = serviceConfig; - this.previousServiceConfig = serviceConfig; - } - const workingConfigList = (_a = workingServiceConfig === null || workingServiceConfig === void 0 ? void 0 : workingServiceConfig.loadBalancingConfig) !== null && _a !== void 0 ? _a : []; - const loadBalancingConfig = (0, load_balancer_1.getFirstUsableConfig)(workingConfigList, true); - if (loadBalancingConfig === null) { - // There were load balancing configs but none are supported. This counts as a resolution failure - this.handleResolutionFailure({ - code: constants_1.Status.UNAVAILABLE, - details: 'All load balancer options in service config are not compatible', - metadata: new metadata_1.Metadata(), - }); - return; - } - this.childLoadBalancer.updateAddressList(addressList, loadBalancingConfig, attributes); - const finalServiceConfig = workingServiceConfig !== null && workingServiceConfig !== void 0 ? workingServiceConfig : this.defaultServiceConfig; - this.onSuccessfulResolution(finalServiceConfig, configSelector !== null && configSelector !== void 0 ? configSelector : getDefaultConfigSelector(finalServiceConfig)); - }, - onError: (error) => { - this.handleResolutionFailure(error); - }, - }, channelOptions); - const backoffOptions = { - initialDelay: channelOptions['grpc.initial_reconnect_backoff_ms'], - maxDelay: channelOptions['grpc.max_reconnect_backoff_ms'], - }; - this.backoffTimeout = new backoff_timeout_1.BackoffTimeout(() => { - if (this.continueResolving) { - this.updateResolution(); - this.continueResolving = false; - } - else { - this.updateState(this.latestChildState, this.latestChildPicker); - } - }, backoffOptions); - this.backoffTimeout.unref(); - } - updateResolution() { - this.innerResolver.updateResolution(); - if (this.currentState === connectivity_state_1.ConnectivityState.IDLE) { - this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this)); - } - this.backoffTimeout.runOnce(); - } - updateState(connectivityState, picker) { - trace((0, uri_parser_1.uriToString)(this.target) + - ' ' + - connectivity_state_1.ConnectivityState[this.currentState] + - ' -> ' + - connectivity_state_1.ConnectivityState[connectivityState]); - // Ensure that this.exitIdle() is called by the picker - if (connectivityState === connectivity_state_1.ConnectivityState.IDLE) { - picker = new picker_1.QueuePicker(this); - } - this.currentState = connectivityState; - this.channelControlHelper.updateState(connectivityState, picker); - } - handleResolutionFailure(error) { - if (this.latestChildState === connectivity_state_1.ConnectivityState.IDLE) { - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(error)); - this.onFailedResolution(error); - } - } - exitIdle() { - if (this.currentState === connectivity_state_1.ConnectivityState.IDLE || - this.currentState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - if (this.backoffTimeout.isRunning()) { - this.continueResolving = true; - } - else { - this.updateResolution(); - } - } - this.childLoadBalancer.exitIdle(); - } - updateAddressList(addressList, lbConfig) { - throw new Error('updateAddressList not supported on ResolvingLoadBalancer'); - } - resetBackoff() { - this.backoffTimeout.reset(); - this.childLoadBalancer.resetBackoff(); - } - destroy() { - this.childLoadBalancer.destroy(); - this.innerResolver.destroy(); - this.backoffTimeout.reset(); - this.backoffTimeout.stop(); - this.latestChildState = connectivity_state_1.ConnectivityState.IDLE; - this.latestChildPicker = new picker_1.QueuePicker(this); - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - this.previousServiceConfig = null; - this.continueResolving = false; - } - getTypeName() { - return 'resolving_load_balancer'; - } -} -exports.ResolvingLoadBalancer = ResolvingLoadBalancer; -//# sourceMappingURL=resolving-load-balancer.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js.map deleted file mode 100644 index 863c3f9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolving-load-balancer.js","sourceRoot":"","sources":["../../src/resolving-load-balancer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,mDAKyB;AACzB,qDAI0B;AAC1B,6DAAyD;AACzD,yCAAsE;AAEtE,qCAAkE;AAClE,uDAAmE;AACnE,2CAAqC;AAErC,yCAAsC;AACtC,qCAAqC;AACrC,2CAA2C;AAE3C,6CAAoD;AACpD,+EAAyE;AAGzE,MAAM,WAAW,GAAG,yBAAyB,CAAC;AAE9C,SAAS,KAAK,CAAC,IAAY;IACzB,OAAO,CAAC,KAAK,CAAC,wBAAY,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACvD,CAAC;AAID;;;GAGG;AACH,MAAM,sBAAsB,GAAqB;IAC/C,oBAAoB;IACpB,SAAS;IACT,OAAO;CACR,CAAC;AAEF,SAAS,eAAe,CACtB,OAAe,EACf,MAAc,EACd,YAA0B,EAC1B,UAA0B;IAE1B,KAAK,MAAM,IAAI,IAAI,YAAY,CAAC,IAAI,EAAE,CAAC;QACrC,QAAQ,UAAU,EAAE,CAAC;YACnB,KAAK,OAAO;gBACV,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;oBAClC,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,MAAM;YACR,KAAK,SAAS;gBACZ,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;oBAC7C,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,MAAM;YACR,KAAK,oBAAoB;gBACvB,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;oBACvD,OAAO,IAAI,CAAC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AAC;QAC3B,IAAI,CAAC,gBAAgB,GAAG,sCAAiB,CAAC,IAAI,CAAC;QAC/C,IAAI,CAAC,iBAAiB,GAAG,IAAI,oBAAW,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,YAAY,GAAG,sCAAiB,CAAC,IAAI,CAAC;QAC3C,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC;QAClC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;IACjC,CAAC;IAED,WAAW;QACT,OAAO,yBAAyB,CAAC;IACnC,CAAC;CACF;AAzPD,sDAyPC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.d.ts deleted file mode 100644 index cc80bd0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -/// <reference types="node" /> -import { CallCredentials } from './call-credentials'; -import { Status } from './constants'; -import { Deadline } from './deadline'; -import { Metadata } from './metadata'; -import { CallConfig } from './resolver'; -import { Call, InterceptingListener, MessageContext } from './call-interface'; -import { InternalChannel } from './internal-channel'; -export declare class RetryThrottler { - private readonly maxTokens; - private readonly tokenRatio; - private tokens; - constructor(maxTokens: number, tokenRatio: number, previousRetryThrottler?: RetryThrottler); - addCallSucceeded(): void; - addCallFailed(): void; - canRetryCall(): boolean; -} -export declare class MessageBufferTracker { - private totalLimit; - private limitPerCall; - private totalAllocated; - private allocatedPerCall; - constructor(totalLimit: number, limitPerCall: number); - allocate(size: number, callId: number): boolean; - free(size: number, callId: number): void; - freeAll(callId: number): void; -} -export declare class RetryingCall implements Call { - private readonly channel; - private readonly callConfig; - private readonly methodName; - private readonly host; - private readonly credentials; - private readonly deadline; - private readonly callNumber; - private readonly bufferTracker; - private readonly retryThrottler?; - private state; - private listener; - private initialMetadata; - private underlyingCalls; - private writeBuffer; - /** - * The offset of message indices in the writeBuffer. For example, if - * writeBufferOffset is 10, message 10 is in writeBuffer[0] and message 15 - * is in writeBuffer[5]. - */ - private writeBufferOffset; - /** - * Tracks whether a read has been started, so that we know whether to start - * reads on new child calls. This only matters for the first read, because - * once a message comes in the child call becomes committed and there will - * be no new child calls. - */ - private readStarted; - private transparentRetryUsed; - /** - * Number of attempts so far - */ - private attempts; - private hedgingTimer; - private committedCallIndex; - private initialRetryBackoffSec; - private nextRetryBackoffSec; - constructor(channel: InternalChannel, callConfig: CallConfig, methodName: string, host: string, credentials: CallCredentials, deadline: Deadline, callNumber: number, bufferTracker: MessageBufferTracker, retryThrottler?: RetryThrottler | undefined); - getCallNumber(): number; - private trace; - private reportStatus; - cancelWithStatus(status: Status, details: string): void; - getPeer(): string; - private getBufferEntry; - private getNextBufferIndex; - private clearSentMessages; - private commitCall; - private commitCallWithMostMessages; - private isStatusCodeInList; - private getNextRetryBackoffMs; - private maybeRetryCall; - private countActiveCalls; - private handleProcessedStatus; - private getPushback; - private handleChildStatus; - private maybeStartHedgingAttempt; - private maybeStartHedgingTimer; - private startNewAttempt; - start(metadata: Metadata, listener: InterceptingListener): void; - private handleChildWriteCompleted; - private sendNextChildMessage; - sendMessageWithContext(context: MessageContext, message: Buffer): void; - startRead(): void; - halfClose(): void; - setCredentials(newCredentials: CallCredentials): void; - getMethod(): string; - getHost(): string; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.js deleted file mode 100644 index 6db6ce9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.js +++ /dev/null @@ -1,639 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RetryingCall = exports.MessageBufferTracker = exports.RetryThrottler = void 0; -const constants_1 = require("./constants"); -const metadata_1 = require("./metadata"); -const logging = require("./logging"); -const TRACER_NAME = 'retrying_call'; -class RetryThrottler { - constructor(maxTokens, tokenRatio, previousRetryThrottler) { - this.maxTokens = maxTokens; - this.tokenRatio = tokenRatio; - if (previousRetryThrottler) { - /* When carrying over tokens from a previous config, rescale them to the - * new max value */ - this.tokens = - previousRetryThrottler.tokens * - (maxTokens / previousRetryThrottler.maxTokens); - } - else { - this.tokens = maxTokens; - } - } - addCallSucceeded() { - this.tokens = Math.max(this.tokens + this.tokenRatio, this.maxTokens); - } - addCallFailed() { - this.tokens = Math.min(this.tokens - 1, 0); - } - canRetryCall() { - return this.tokens > this.maxTokens / 2; - } -} -exports.RetryThrottler = RetryThrottler; -class MessageBufferTracker { - constructor(totalLimit, limitPerCall) { - this.totalLimit = totalLimit; - this.limitPerCall = limitPerCall; - this.totalAllocated = 0; - this.allocatedPerCall = new Map(); - } - allocate(size, callId) { - var _a; - const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; - if (this.limitPerCall - currentPerCall < size || - this.totalLimit - this.totalAllocated < size) { - return false; - } - this.allocatedPerCall.set(callId, currentPerCall + size); - this.totalAllocated += size; - return true; - } - free(size, callId) { - var _a; - if (this.totalAllocated < size) { - throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size} > total allocated ${this.totalAllocated}`); - } - this.totalAllocated -= size; - const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; - if (currentPerCall < size) { - throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size} > allocated for call ${currentPerCall}`); - } - this.allocatedPerCall.set(callId, currentPerCall - size); - } - freeAll(callId) { - var _a; - const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; - if (this.totalAllocated < currentPerCall) { - throw new Error(`Invalid buffer allocation state: call ${callId} allocated ${currentPerCall} > total allocated ${this.totalAllocated}`); - } - this.totalAllocated -= currentPerCall; - this.allocatedPerCall.delete(callId); - } -} -exports.MessageBufferTracker = MessageBufferTracker; -const PREVIONS_RPC_ATTEMPTS_METADATA_KEY = 'grpc-previous-rpc-attempts'; -class RetryingCall { - constructor(channel, callConfig, methodName, host, credentials, deadline, callNumber, bufferTracker, retryThrottler) { - this.channel = channel; - this.callConfig = callConfig; - this.methodName = methodName; - this.host = host; - this.credentials = credentials; - this.deadline = deadline; - this.callNumber = callNumber; - this.bufferTracker = bufferTracker; - this.retryThrottler = retryThrottler; - this.listener = null; - this.initialMetadata = null; - this.underlyingCalls = []; - this.writeBuffer = []; - /** - * The offset of message indices in the writeBuffer. For example, if - * writeBufferOffset is 10, message 10 is in writeBuffer[0] and message 15 - * is in writeBuffer[5]. - */ - this.writeBufferOffset = 0; - /** - * Tracks whether a read has been started, so that we know whether to start - * reads on new child calls. This only matters for the first read, because - * once a message comes in the child call becomes committed and there will - * be no new child calls. - */ - this.readStarted = false; - this.transparentRetryUsed = false; - /** - * Number of attempts so far - */ - this.attempts = 0; - this.hedgingTimer = null; - this.committedCallIndex = null; - this.initialRetryBackoffSec = 0; - this.nextRetryBackoffSec = 0; - if (callConfig.methodConfig.retryPolicy) { - this.state = 'RETRY'; - const retryPolicy = callConfig.methodConfig.retryPolicy; - this.nextRetryBackoffSec = this.initialRetryBackoffSec = Number(retryPolicy.initialBackoff.substring(0, retryPolicy.initialBackoff.length - 1)); - } - else if (callConfig.methodConfig.hedgingPolicy) { - this.state = 'HEDGING'; - } - else { - this.state = 'TRANSPARENT_ONLY'; - } - } - getCallNumber() { - return this.callNumber; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); - } - reportStatus(statusObject) { - this.trace('ended with status: code=' + - statusObject.code + - ' details="' + - statusObject.details + - '"'); - this.bufferTracker.freeAll(this.callNumber); - this.writeBufferOffset = this.writeBufferOffset + this.writeBuffer.length; - this.writeBuffer = []; - process.nextTick(() => { - var _a; - // Explicitly construct status object to remove progress field - (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus({ - code: statusObject.code, - details: statusObject.details, - metadata: statusObject.metadata, - }); - }); - } - cancelWithStatus(status, details) { - this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); - this.reportStatus({ code: status, details, metadata: new metadata_1.Metadata() }); - for (const { call } of this.underlyingCalls) { - call.cancelWithStatus(status, details); - } - } - getPeer() { - if (this.committedCallIndex !== null) { - return this.underlyingCalls[this.committedCallIndex].call.getPeer(); - } - else { - return 'unknown'; - } - } - getBufferEntry(messageIndex) { - var _a; - return ((_a = this.writeBuffer[messageIndex - this.writeBufferOffset]) !== null && _a !== void 0 ? _a : { - entryType: 'FREED', - allocated: false, - }); - } - getNextBufferIndex() { - return this.writeBufferOffset + this.writeBuffer.length; - } - clearSentMessages() { - if (this.state !== 'COMMITTED') { - return; - } - const earliestNeededMessageIndex = this.underlyingCalls[this.committedCallIndex].nextMessageToSend; - for (let messageIndex = this.writeBufferOffset; messageIndex < earliestNeededMessageIndex; messageIndex++) { - const bufferEntry = this.getBufferEntry(messageIndex); - if (bufferEntry.allocated) { - this.bufferTracker.free(bufferEntry.message.message.length, this.callNumber); - } - } - this.writeBuffer = this.writeBuffer.slice(earliestNeededMessageIndex - this.writeBufferOffset); - this.writeBufferOffset = earliestNeededMessageIndex; - } - commitCall(index) { - if (this.state === 'COMMITTED') { - return; - } - if (this.underlyingCalls[index].state === 'COMPLETED') { - return; - } - this.trace('Committing call [' + - this.underlyingCalls[index].call.getCallNumber() + - '] at index ' + - index); - this.state = 'COMMITTED'; - this.committedCallIndex = index; - for (let i = 0; i < this.underlyingCalls.length; i++) { - if (i === index) { - continue; - } - if (this.underlyingCalls[i].state === 'COMPLETED') { - continue; - } - this.underlyingCalls[i].state = 'COMPLETED'; - this.underlyingCalls[i].call.cancelWithStatus(constants_1.Status.CANCELLED, 'Discarded in favor of other hedged attempt'); - } - this.clearSentMessages(); - } - commitCallWithMostMessages() { - if (this.state === 'COMMITTED') { - return; - } - let mostMessages = -1; - let callWithMostMessages = -1; - for (const [index, childCall] of this.underlyingCalls.entries()) { - if (childCall.state === 'ACTIVE' && - childCall.nextMessageToSend > mostMessages) { - mostMessages = childCall.nextMessageToSend; - callWithMostMessages = index; - } - } - if (callWithMostMessages === -1) { - /* There are no active calls, disable retries to force the next call that - * is started to be committed. */ - this.state = 'TRANSPARENT_ONLY'; - } - else { - this.commitCall(callWithMostMessages); - } - } - isStatusCodeInList(list, code) { - return list.some(value => value === code || - value.toString().toLowerCase() === constants_1.Status[code].toLowerCase()); - } - getNextRetryBackoffMs() { - var _a; - const retryPolicy = (_a = this.callConfig) === null || _a === void 0 ? void 0 : _a.methodConfig.retryPolicy; - if (!retryPolicy) { - return 0; - } - const nextBackoffMs = Math.random() * this.nextRetryBackoffSec * 1000; - const maxBackoffSec = Number(retryPolicy.maxBackoff.substring(0, retryPolicy.maxBackoff.length - 1)); - this.nextRetryBackoffSec = Math.min(this.nextRetryBackoffSec * retryPolicy.backoffMultiplier, maxBackoffSec); - return nextBackoffMs; - } - maybeRetryCall(pushback, callback) { - if (this.state !== 'RETRY') { - callback(false); - return; - } - const retryPolicy = this.callConfig.methodConfig.retryPolicy; - if (this.attempts >= Math.min(retryPolicy.maxAttempts, 5)) { - callback(false); - return; - } - let retryDelayMs; - if (pushback === null) { - retryDelayMs = this.getNextRetryBackoffMs(); - } - else if (pushback < 0) { - this.state = 'TRANSPARENT_ONLY'; - callback(false); - return; - } - else { - retryDelayMs = pushback; - this.nextRetryBackoffSec = this.initialRetryBackoffSec; - } - setTimeout(() => { - var _a, _b; - if (this.state !== 'RETRY') { - callback(false); - return; - } - if ((_b = (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.canRetryCall()) !== null && _b !== void 0 ? _b : true) { - callback(true); - this.attempts += 1; - this.startNewAttempt(); - } - }, retryDelayMs); - } - countActiveCalls() { - let count = 0; - for (const call of this.underlyingCalls) { - if ((call === null || call === void 0 ? void 0 : call.state) === 'ACTIVE') { - count += 1; - } - } - return count; - } - handleProcessedStatus(status, callIndex, pushback) { - var _a, _b, _c; - switch (this.state) { - case 'COMMITTED': - case 'TRANSPARENT_ONLY': - this.commitCall(callIndex); - this.reportStatus(status); - break; - case 'HEDGING': - if (this.isStatusCodeInList((_a = this.callConfig.methodConfig.hedgingPolicy.nonFatalStatusCodes) !== null && _a !== void 0 ? _a : [], status.code)) { - (_b = this.retryThrottler) === null || _b === void 0 ? void 0 : _b.addCallFailed(); - let delayMs; - if (pushback === null) { - delayMs = 0; - } - else if (pushback < 0) { - this.state = 'TRANSPARENT_ONLY'; - this.commitCall(callIndex); - this.reportStatus(status); - return; - } - else { - delayMs = pushback; - } - setTimeout(() => { - this.maybeStartHedgingAttempt(); - // If after trying to start a call there are no active calls, this was the last one - if (this.countActiveCalls() === 0) { - this.commitCall(callIndex); - this.reportStatus(status); - } - }, delayMs); - } - else { - this.commitCall(callIndex); - this.reportStatus(status); - } - break; - case 'RETRY': - if (this.isStatusCodeInList(this.callConfig.methodConfig.retryPolicy.retryableStatusCodes, status.code)) { - (_c = this.retryThrottler) === null || _c === void 0 ? void 0 : _c.addCallFailed(); - this.maybeRetryCall(pushback, retried => { - if (!retried) { - this.commitCall(callIndex); - this.reportStatus(status); - } - }); - } - else { - this.commitCall(callIndex); - this.reportStatus(status); - } - break; - } - } - getPushback(metadata) { - const mdValue = metadata.get('grpc-retry-pushback-ms'); - if (mdValue.length === 0) { - return null; - } - try { - return parseInt(mdValue[0]); - } - catch (e) { - return -1; - } - } - handleChildStatus(status, callIndex) { - var _a; - if (this.underlyingCalls[callIndex].state === 'COMPLETED') { - return; - } - this.trace('state=' + - this.state + - ' handling status with progress ' + - status.progress + - ' from child [' + - this.underlyingCalls[callIndex].call.getCallNumber() + - '] in state ' + - this.underlyingCalls[callIndex].state); - this.underlyingCalls[callIndex].state = 'COMPLETED'; - if (status.code === constants_1.Status.OK) { - (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.addCallSucceeded(); - this.commitCall(callIndex); - this.reportStatus(status); - return; - } - if (this.state === 'COMMITTED') { - this.reportStatus(status); - return; - } - const pushback = this.getPushback(status.metadata); - switch (status.progress) { - case 'NOT_STARTED': - // RPC never leaves the client, always safe to retry - this.startNewAttempt(); - break; - case 'REFUSED': - // RPC reaches the server library, but not the server application logic - if (this.transparentRetryUsed) { - this.handleProcessedStatus(status, callIndex, pushback); - } - else { - this.transparentRetryUsed = true; - this.startNewAttempt(); - } - break; - case 'DROP': - this.commitCall(callIndex); - this.reportStatus(status); - break; - case 'PROCESSED': - this.handleProcessedStatus(status, callIndex, pushback); - break; - } - } - maybeStartHedgingAttempt() { - if (this.state !== 'HEDGING') { - return; - } - if (!this.callConfig.methodConfig.hedgingPolicy) { - return; - } - const hedgingPolicy = this.callConfig.methodConfig.hedgingPolicy; - if (this.attempts >= Math.min(hedgingPolicy.maxAttempts, 5)) { - return; - } - this.attempts += 1; - this.startNewAttempt(); - this.maybeStartHedgingTimer(); - } - maybeStartHedgingTimer() { - var _a, _b, _c; - if (this.hedgingTimer) { - clearTimeout(this.hedgingTimer); - } - if (this.state !== 'HEDGING') { - return; - } - if (!this.callConfig.methodConfig.hedgingPolicy) { - return; - } - const hedgingPolicy = this.callConfig.methodConfig.hedgingPolicy; - if (this.attempts >= Math.min(hedgingPolicy.maxAttempts, 5)) { - return; - } - const hedgingDelayString = (_a = hedgingPolicy.hedgingDelay) !== null && _a !== void 0 ? _a : '0s'; - const hedgingDelaySec = Number(hedgingDelayString.substring(0, hedgingDelayString.length - 1)); - this.hedgingTimer = setTimeout(() => { - this.maybeStartHedgingAttempt(); - }, hedgingDelaySec * 1000); - (_c = (_b = this.hedgingTimer).unref) === null || _c === void 0 ? void 0 : _c.call(_b); - } - startNewAttempt() { - const child = this.channel.createLoadBalancingCall(this.callConfig, this.methodName, this.host, this.credentials, this.deadline); - this.trace('Created child call [' + - child.getCallNumber() + - '] for attempt ' + - this.attempts); - const index = this.underlyingCalls.length; - this.underlyingCalls.push({ - state: 'ACTIVE', - call: child, - nextMessageToSend: 0, - }); - const previousAttempts = this.attempts - 1; - const initialMetadata = this.initialMetadata.clone(); - if (previousAttempts > 0) { - initialMetadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); - } - let receivedMetadata = false; - child.start(initialMetadata, { - onReceiveMetadata: metadata => { - this.trace('Received metadata from child [' + child.getCallNumber() + ']'); - this.commitCall(index); - receivedMetadata = true; - if (previousAttempts > 0) { - metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); - } - if (this.underlyingCalls[index].state === 'ACTIVE') { - this.listener.onReceiveMetadata(metadata); - } - }, - onReceiveMessage: message => { - this.trace('Received message from child [' + child.getCallNumber() + ']'); - this.commitCall(index); - if (this.underlyingCalls[index].state === 'ACTIVE') { - this.listener.onReceiveMessage(message); - } - }, - onReceiveStatus: status => { - this.trace('Received status from child [' + child.getCallNumber() + ']'); - if (!receivedMetadata && previousAttempts > 0) { - status.metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); - } - this.handleChildStatus(status, index); - }, - }); - this.sendNextChildMessage(index); - if (this.readStarted) { - child.startRead(); - } - } - start(metadata, listener) { - this.trace('start called'); - this.listener = listener; - this.initialMetadata = metadata; - this.attempts += 1; - this.startNewAttempt(); - this.maybeStartHedgingTimer(); - } - handleChildWriteCompleted(childIndex) { - var _a, _b; - const childCall = this.underlyingCalls[childIndex]; - const messageIndex = childCall.nextMessageToSend; - (_b = (_a = this.getBufferEntry(messageIndex)).callback) === null || _b === void 0 ? void 0 : _b.call(_a); - this.clearSentMessages(); - childCall.nextMessageToSend += 1; - this.sendNextChildMessage(childIndex); - } - sendNextChildMessage(childIndex) { - const childCall = this.underlyingCalls[childIndex]; - if (childCall.state === 'COMPLETED') { - return; - } - if (this.getBufferEntry(childCall.nextMessageToSend)) { - const bufferEntry = this.getBufferEntry(childCall.nextMessageToSend); - switch (bufferEntry.entryType) { - case 'MESSAGE': - childCall.call.sendMessageWithContext({ - callback: error => { - // Ignore error - this.handleChildWriteCompleted(childIndex); - }, - }, bufferEntry.message.message); - break; - case 'HALF_CLOSE': - childCall.nextMessageToSend += 1; - childCall.call.halfClose(); - break; - case 'FREED': - // Should not be possible - break; - } - } - } - sendMessageWithContext(context, message) { - var _a; - this.trace('write() called with message of length ' + message.length); - const writeObj = { - message, - flags: context.flags, - }; - const messageIndex = this.getNextBufferIndex(); - const bufferEntry = { - entryType: 'MESSAGE', - message: writeObj, - allocated: this.bufferTracker.allocate(message.length, this.callNumber), - }; - this.writeBuffer.push(bufferEntry); - if (bufferEntry.allocated) { - (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context); - for (const [callIndex, call] of this.underlyingCalls.entries()) { - if (call.state === 'ACTIVE' && - call.nextMessageToSend === messageIndex) { - call.call.sendMessageWithContext({ - callback: error => { - // Ignore error - this.handleChildWriteCompleted(callIndex); - }, - }, message); - } - } - } - else { - this.commitCallWithMostMessages(); - // commitCallWithMostMessages can fail if we are between ping attempts - if (this.committedCallIndex === null) { - return; - } - const call = this.underlyingCalls[this.committedCallIndex]; - bufferEntry.callback = context.callback; - if (call.state === 'ACTIVE' && call.nextMessageToSend === messageIndex) { - call.call.sendMessageWithContext({ - callback: error => { - // Ignore error - this.handleChildWriteCompleted(this.committedCallIndex); - }, - }, message); - } - } - } - startRead() { - this.trace('startRead called'); - this.readStarted = true; - for (const underlyingCall of this.underlyingCalls) { - if ((underlyingCall === null || underlyingCall === void 0 ? void 0 : underlyingCall.state) === 'ACTIVE') { - underlyingCall.call.startRead(); - } - } - } - halfClose() { - this.trace('halfClose called'); - const halfCloseIndex = this.getNextBufferIndex(); - this.writeBuffer.push({ - entryType: 'HALF_CLOSE', - allocated: false, - }); - for (const call of this.underlyingCalls) { - if ((call === null || call === void 0 ? void 0 : call.state) === 'ACTIVE' && - call.nextMessageToSend === halfCloseIndex) { - call.nextMessageToSend += 1; - call.call.halfClose(); - } - } - } - setCredentials(newCredentials) { - throw new Error('Method not implemented.'); - } - getMethod() { - return this.methodName; - } - getHost() { - return this.host; - } -} -exports.RetryingCall = RetryingCall; -//# sourceMappingURL=retrying-call.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.js.map deleted file mode 100644 index 0ff9673..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/retrying-call.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retrying-call.js","sourceRoot":"","sources":["../../src/retrying-call.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,2CAAmD;AAEnD,yCAAsC;AAEtC,qCAAqC;AAerC,MAAM,WAAW,GAAG,eAAe,CAAC;AAEpC,MAAa,cAAc;IAEzB,YACmB,SAAiB,EACjB,UAAkB,EACnC,sBAAuC;QAFtB,cAAS,GAAT,SAAS,CAAQ;QACjB,eAAU,GAAV,UAAU,CAAQ;QAGnC,IAAI,sBAAsB,EAAE,CAAC;YAC3B;+BACmB;YACnB,IAAI,CAAC,MAAM;gBACT,sBAAsB,CAAC,MAAM;oBAC7B,CAAC,SAAS,GAAG,sBAAsB,CAAC,SAAS,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACxE,CAAC;IAED,aAAa;QACX,IAAI,CAAC,MAAM,GAAG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AAK,CAAC,kBAAkB,CAAC,CAAC;QAC/B,MAAM,cAAc,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACjD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;YACpB,SAAS,EAAE,YAAY;YACvB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QACH,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACxC,IACE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,MAAK,QAAQ;gBACxB,IAAI,CAAC,iBAAiB,KAAK,cAAc,EACzC,CAAC;gBACD,IAAI,CAAC,iBAAiB,IAAI,CAAC,CAAC;gBAC5B,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,CAAC,cAA+B;QAC5C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IACD,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF;AAxoBD,oCAwoBC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.d.ts deleted file mode 100644 index b923fd5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -/// <reference types="node" /> -/// <reference types="node" /> -/// <reference types="node" /> -/// <reference types="node" /> -/// <reference types="node" /> -import { EventEmitter } from 'events'; -import * as http2 from 'http2'; -import { Duplex, Readable, Writable } from 'stream'; -import { Deserialize, Serialize } from './make-client'; -import { Metadata } from './metadata'; -import { ObjectReadable, ObjectWritable } from './object-stream'; -import { ChannelOptions } from './channel-options'; -import { StatusObject, PartialStatusObject } from './call-interface'; -import { Deadline } from './deadline'; -export type ServerStatusResponse = Partial<StatusObject>; -export type ServerErrorResponse = ServerStatusResponse & Error; -export type ServerSurfaceCall = { - cancelled: boolean; - readonly metadata: Metadata; - getPeer(): string; - sendMetadata(responseMetadata: Metadata): void; - getDeadline(): Deadline; - getPath(): string; -} & EventEmitter; -export type ServerUnaryCall<RequestType, ResponseType> = ServerSurfaceCall & { - request: RequestType; -}; -export type ServerReadableStream<RequestType, ResponseType> = ServerSurfaceCall & ObjectReadable<RequestType>; -export type ServerWritableStream<RequestType, ResponseType> = ServerSurfaceCall & ObjectWritable<ResponseType> & { - request: RequestType; - end: (metadata?: Metadata) => void; -}; -export type ServerDuplexStream<RequestType, ResponseType> = ServerSurfaceCall & ObjectReadable<RequestType> & ObjectWritable<ResponseType> & { - end: (metadata?: Metadata) => void; -}; -export declare class ServerUnaryCallImpl<RequestType, ResponseType> extends EventEmitter implements ServerUnaryCall<RequestType, ResponseType> { - private call; - metadata: Metadata; - request: RequestType; - cancelled: boolean; - constructor(call: Http2ServerCallStream<RequestType, ResponseType>, metadata: Metadata, request: RequestType); - getPeer(): string; - sendMetadata(responseMetadata: Metadata): void; - getDeadline(): Deadline; - getPath(): string; -} -export declare class ServerReadableStreamImpl<RequestType, ResponseType> extends Readable implements ServerReadableStream<RequestType, ResponseType> { - private call; - metadata: Metadata; - deserialize: Deserialize<RequestType>; - cancelled: boolean; - constructor(call: Http2ServerCallStream<RequestType, ResponseType>, metadata: Metadata, deserialize: Deserialize<RequestType>, encoding: string); - _read(size: number): void; - getPeer(): string; - sendMetadata(responseMetadata: Metadata): void; - getDeadline(): Deadline; - getPath(): string; -} -export declare class ServerWritableStreamImpl<RequestType, ResponseType> extends Writable implements ServerWritableStream<RequestType, ResponseType> { - private call; - metadata: Metadata; - serialize: Serialize<ResponseType>; - request: RequestType; - cancelled: boolean; - private trailingMetadata; - constructor(call: Http2ServerCallStream<RequestType, ResponseType>, metadata: Metadata, serialize: Serialize<ResponseType>, request: RequestType); - getPeer(): string; - sendMetadata(responseMetadata: Metadata): void; - getDeadline(): Deadline; - getPath(): string; - _write(chunk: ResponseType, encoding: string, callback: (...args: any[]) => void): void; - _final(callback: Function): void; - end(metadata?: any): this; -} -export declare class ServerDuplexStreamImpl<RequestType, ResponseType> extends Duplex implements ServerDuplexStream<RequestType, ResponseType> { - private call; - metadata: Metadata; - serialize: Serialize<ResponseType>; - deserialize: Deserialize<RequestType>; - cancelled: boolean; - private trailingMetadata; - constructor(call: Http2ServerCallStream<RequestType, ResponseType>, metadata: Metadata, serialize: Serialize<ResponseType>, deserialize: Deserialize<RequestType>, encoding: string); - getPeer(): string; - sendMetadata(responseMetadata: Metadata): void; - getDeadline(): Deadline; - getPath(): string; - end(metadata?: any): this; -} -export type sendUnaryData<ResponseType> = (error: ServerErrorResponse | ServerStatusResponse | null, value?: ResponseType | null, trailer?: Metadata, flags?: number) => void; -export type handleUnaryCall<RequestType, ResponseType> = (call: ServerUnaryCall<RequestType, ResponseType>, callback: sendUnaryData<ResponseType>) => void; -export type handleClientStreamingCall<RequestType, ResponseType> = (call: ServerReadableStream<RequestType, ResponseType>, callback: sendUnaryData<ResponseType>) => void; -export type handleServerStreamingCall<RequestType, ResponseType> = (call: ServerWritableStream<RequestType, ResponseType>) => void; -export type handleBidiStreamingCall<RequestType, ResponseType> = (call: ServerDuplexStream<RequestType, ResponseType>) => void; -export type HandleCall<RequestType, ResponseType> = handleUnaryCall<RequestType, ResponseType> | handleClientStreamingCall<RequestType, ResponseType> | handleServerStreamingCall<RequestType, ResponseType> | handleBidiStreamingCall<RequestType, ResponseType>; -export interface UnaryHandler<RequestType, ResponseType> { - func: handleUnaryCall<RequestType, ResponseType>; - serialize: Serialize<ResponseType>; - deserialize: Deserialize<RequestType>; - type: HandlerType; - path: string; -} -export interface ClientStreamingHandler<RequestType, ResponseType> { - func: handleClientStreamingCall<RequestType, ResponseType>; - serialize: Serialize<ResponseType>; - deserialize: Deserialize<RequestType>; - type: HandlerType; - path: string; -} -export interface ServerStreamingHandler<RequestType, ResponseType> { - func: handleServerStreamingCall<RequestType, ResponseType>; - serialize: Serialize<ResponseType>; - deserialize: Deserialize<RequestType>; - type: HandlerType; - path: string; -} -export interface BidiStreamingHandler<RequestType, ResponseType> { - func: handleBidiStreamingCall<RequestType, ResponseType>; - serialize: Serialize<ResponseType>; - deserialize: Deserialize<RequestType>; - type: HandlerType; - path: string; -} -export type Handler<RequestType, ResponseType> = UnaryHandler<RequestType, ResponseType> | ClientStreamingHandler<RequestType, ResponseType> | ServerStreamingHandler<RequestType, ResponseType> | BidiStreamingHandler<RequestType, ResponseType>; -export type HandlerType = 'bidi' | 'clientStream' | 'serverStream' | 'unary'; -export declare class Http2ServerCallStream<RequestType, ResponseType> extends EventEmitter { - private stream; - private handler; - cancelled: boolean; - deadlineTimer: NodeJS.Timeout | null; - private statusSent; - private deadline; - private wantTrailers; - private metadataSent; - private canPush; - private isPushPending; - private bufferedMessages; - private messagesToPush; - private maxSendMessageSize; - private maxReceiveMessageSize; - constructor(stream: http2.ServerHttp2Stream, handler: Handler<RequestType, ResponseType>, options: ChannelOptions); - private checkCancelled; - private getDecompressedMessage; - sendMetadata(customMetadata?: Metadata): void; - receiveMetadata(headers: http2.IncomingHttpHeaders): Metadata; - receiveUnaryMessage(encoding: string): Promise<RequestType>; - private deserializeMessageWithInternalError; - serializeMessage(value: ResponseType): Buffer; - deserializeMessage(bytes: Buffer): RequestType; - sendUnaryMessage(err: ServerErrorResponse | ServerStatusResponse | null, value?: ResponseType | null, metadata?: Metadata | null, flags?: number): Promise<void>; - sendStatus(statusObj: PartialStatusObject): void; - sendError(error: ServerErrorResponse | ServerStatusResponse): void; - write(chunk: Buffer): boolean | undefined; - resume(): void; - setupSurfaceCall(call: ServerSurfaceCall): void; - setupReadable(readable: ServerReadableStream<RequestType, ResponseType> | ServerDuplexStream<RequestType, ResponseType>, encoding: string): void; - consumeUnpushedMessages(readable: ServerReadableStream<RequestType, ResponseType> | ServerDuplexStream<RequestType, ResponseType>): boolean; - private pushOrBufferMessage; - private pushMessage; - getPeer(): string; - getDeadline(): Deadline; - getPath(): string; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.js deleted file mode 100644 index 05ca531..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.js +++ /dev/null @@ -1,695 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Http2ServerCallStream = exports.ServerDuplexStreamImpl = exports.ServerWritableStreamImpl = exports.ServerReadableStreamImpl = exports.ServerUnaryCallImpl = void 0; -const events_1 = require("events"); -const http2 = require("http2"); -const stream_1 = require("stream"); -const zlib = require("zlib"); -const constants_1 = require("./constants"); -const metadata_1 = require("./metadata"); -const stream_decoder_1 = require("./stream-decoder"); -const logging = require("./logging"); -const error_1 = require("./error"); -const TRACER_NAME = 'server_call'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const GRPC_ACCEPT_ENCODING_HEADER = 'grpc-accept-encoding'; -const GRPC_ENCODING_HEADER = 'grpc-encoding'; -const GRPC_MESSAGE_HEADER = 'grpc-message'; -const GRPC_STATUS_HEADER = 'grpc-status'; -const GRPC_TIMEOUT_HEADER = 'grpc-timeout'; -const DEADLINE_REGEX = /(\d{1,8})\s*([HMSmun])/; -const deadlineUnitsToMs = { - H: 3600000, - M: 60000, - S: 1000, - m: 1, - u: 0.001, - n: 0.000001, -}; -const defaultCompressionHeaders = { - // TODO(cjihrig): Remove these encoding headers from the default response - // once compression is integrated. - [GRPC_ACCEPT_ENCODING_HEADER]: 'identity,deflate,gzip', - [GRPC_ENCODING_HEADER]: 'identity', -}; -const defaultResponseHeaders = { - [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_OK, - [http2.constants.HTTP2_HEADER_CONTENT_TYPE]: 'application/grpc+proto', -}; -const defaultResponseOptions = { - waitForTrailers: true, -}; -class ServerUnaryCallImpl extends events_1.EventEmitter { - constructor(call, metadata, request) { - super(); - this.call = call; - this.metadata = metadata; - this.request = request; - this.cancelled = false; - this.call.setupSurfaceCall(this); - } - getPeer() { - return this.call.getPeer(); - } - sendMetadata(responseMetadata) { - this.call.sendMetadata(responseMetadata); - } - getDeadline() { - return this.call.getDeadline(); - } - getPath() { - return this.call.getPath(); - } -} -exports.ServerUnaryCallImpl = ServerUnaryCallImpl; -class ServerReadableStreamImpl extends stream_1.Readable { - constructor(call, metadata, deserialize, encoding) { - super({ objectMode: true }); - this.call = call; - this.metadata = metadata; - this.deserialize = deserialize; - this.cancelled = false; - this.call.setupSurfaceCall(this); - this.call.setupReadable(this, encoding); - } - _read(size) { - if (!this.call.consumeUnpushedMessages(this)) { - return; - } - this.call.resume(); - } - getPeer() { - return this.call.getPeer(); - } - sendMetadata(responseMetadata) { - this.call.sendMetadata(responseMetadata); - } - getDeadline() { - return this.call.getDeadline(); - } - getPath() { - return this.call.getPath(); - } -} -exports.ServerReadableStreamImpl = ServerReadableStreamImpl; -class ServerWritableStreamImpl extends stream_1.Writable { - constructor(call, metadata, serialize, request) { - super({ objectMode: true }); - this.call = call; - this.metadata = metadata; - this.serialize = serialize; - this.request = request; - this.cancelled = false; - this.trailingMetadata = new metadata_1.Metadata(); - this.call.setupSurfaceCall(this); - this.on('error', err => { - this.call.sendError(err); - this.end(); - }); - } - getPeer() { - return this.call.getPeer(); - } - sendMetadata(responseMetadata) { - this.call.sendMetadata(responseMetadata); - } - getDeadline() { - return this.call.getDeadline(); - } - getPath() { - return this.call.getPath(); - } - _write(chunk, encoding, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - callback) { - try { - const response = this.call.serializeMessage(chunk); - if (!this.call.write(response)) { - this.call.once('drain', callback); - return; - } - } - catch (err) { - this.emit('error', { - details: (0, error_1.getErrorMessage)(err), - code: constants_1.Status.INTERNAL, - }); - } - callback(); - } - _final(callback) { - this.call.sendStatus({ - code: constants_1.Status.OK, - details: 'OK', - metadata: this.trailingMetadata, - }); - callback(null); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - end(metadata) { - if (metadata) { - this.trailingMetadata = metadata; - } - return super.end(); - } -} -exports.ServerWritableStreamImpl = ServerWritableStreamImpl; -class ServerDuplexStreamImpl extends stream_1.Duplex { - constructor(call, metadata, serialize, deserialize, encoding) { - super({ objectMode: true }); - this.call = call; - this.metadata = metadata; - this.serialize = serialize; - this.deserialize = deserialize; - this.cancelled = false; - this.trailingMetadata = new metadata_1.Metadata(); - this.call.setupSurfaceCall(this); - this.call.setupReadable(this, encoding); - this.on('error', err => { - this.call.sendError(err); - this.end(); - }); - } - getPeer() { - return this.call.getPeer(); - } - sendMetadata(responseMetadata) { - this.call.sendMetadata(responseMetadata); - } - getDeadline() { - return this.call.getDeadline(); - } - getPath() { - return this.call.getPath(); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - end(metadata) { - if (metadata) { - this.trailingMetadata = metadata; - } - return super.end(); - } -} -exports.ServerDuplexStreamImpl = ServerDuplexStreamImpl; -ServerDuplexStreamImpl.prototype._read = - ServerReadableStreamImpl.prototype._read; -ServerDuplexStreamImpl.prototype._write = - ServerWritableStreamImpl.prototype._write; -ServerDuplexStreamImpl.prototype._final = - ServerWritableStreamImpl.prototype._final; -// Internal class that wraps the HTTP2 request. -class Http2ServerCallStream extends events_1.EventEmitter { - constructor(stream, handler, options) { - super(); - this.stream = stream; - this.handler = handler; - this.cancelled = false; - this.deadlineTimer = null; - this.statusSent = false; - this.deadline = Infinity; - this.wantTrailers = false; - this.metadataSent = false; - this.canPush = false; - this.isPushPending = false; - this.bufferedMessages = []; - this.messagesToPush = []; - this.maxSendMessageSize = constants_1.DEFAULT_MAX_SEND_MESSAGE_LENGTH; - this.maxReceiveMessageSize = constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; - this.stream.once('error', (err) => { - /* We need an error handler to avoid uncaught error event exceptions, but - * there is nothing we can reasonably do here. Any error event should - * have a corresponding close event, which handles emitting the cancelled - * event. And the stream is now in a bad state, so we can't reasonably - * expect to be able to send an error over it. */ - }); - this.stream.once('close', () => { - var _a; - trace('Request to method ' + - ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + - ' stream closed with rstCode ' + - this.stream.rstCode); - if (!this.statusSent) { - this.cancelled = true; - this.emit('cancelled', 'cancelled'); - this.emit('streamEnd', false); - this.sendStatus({ - code: constants_1.Status.CANCELLED, - details: 'Cancelled by client', - metadata: null, - }); - if (this.deadlineTimer) - clearTimeout(this.deadlineTimer); - } - }); - this.stream.on('drain', () => { - this.emit('drain'); - }); - if ('grpc.max_send_message_length' in options) { - this.maxSendMessageSize = options['grpc.max_send_message_length']; - } - if ('grpc.max_receive_message_length' in options) { - this.maxReceiveMessageSize = options['grpc.max_receive_message_length']; - } - } - checkCancelled() { - /* In some cases the stream can become destroyed before the close event - * fires. That creates a race condition that this check works around */ - if (this.stream.destroyed || this.stream.closed) { - this.cancelled = true; - } - return this.cancelled; - } - getDecompressedMessage(message, encoding) { - const messageContents = message.subarray(5); - if (encoding === 'identity') { - return messageContents; - } - else if (encoding === 'deflate' || encoding === 'gzip') { - let decompresser; - if (encoding === 'deflate') { - decompresser = zlib.createInflate(); - } - else { - decompresser = zlib.createGunzip(); - } - return new Promise((resolve, reject) => { - let totalLength = 0; - const messageParts = []; - decompresser.on('data', (chunk) => { - messageParts.push(chunk); - totalLength += chunk.byteLength; - if (this.maxReceiveMessageSize !== -1 && totalLength > this.maxReceiveMessageSize) { - decompresser.destroy(); - reject({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Received message that decompresses to a size larger than ${this.maxReceiveMessageSize}` - }); - } - }); - decompresser.on('end', () => { - resolve(Buffer.concat(messageParts)); - }); - decompresser.write(messageContents); - decompresser.end(); - }); - } - else { - return Promise.reject({ - code: constants_1.Status.UNIMPLEMENTED, - details: `Received message compressed with unsupported encoding "${encoding}"`, - }); - } - } - sendMetadata(customMetadata) { - if (this.checkCancelled()) { - return; - } - if (this.metadataSent) { - return; - } - this.metadataSent = true; - const custom = customMetadata ? customMetadata.toHttp2Headers() : null; - // TODO(cjihrig): Include compression headers. - const headers = Object.assign(Object.assign(Object.assign({}, defaultResponseHeaders), defaultCompressionHeaders), custom); - this.stream.respond(headers, defaultResponseOptions); - } - receiveMetadata(headers) { - const metadata = metadata_1.Metadata.fromHttp2Headers(headers); - if (logging.isTracerEnabled(TRACER_NAME)) { - trace('Request to ' + - this.handler.path + - ' received headers ' + - JSON.stringify(metadata.toJSON())); - } - // TODO(cjihrig): Receive compression metadata. - const timeoutHeader = metadata.get(GRPC_TIMEOUT_HEADER); - if (timeoutHeader.length > 0) { - const match = timeoutHeader[0].toString().match(DEADLINE_REGEX); - if (match === null) { - const err = new Error('Invalid deadline'); - err.code = constants_1.Status.OUT_OF_RANGE; - this.sendError(err); - return metadata; - } - const timeout = (+match[1] * deadlineUnitsToMs[match[2]]) | 0; - const now = new Date(); - this.deadline = now.setMilliseconds(now.getMilliseconds() + timeout); - this.deadlineTimer = setTimeout(handleExpiredDeadline, timeout, this); - metadata.remove(GRPC_TIMEOUT_HEADER); - } - // Remove several headers that should not be propagated to the application - metadata.remove(http2.constants.HTTP2_HEADER_ACCEPT_ENCODING); - metadata.remove(http2.constants.HTTP2_HEADER_TE); - metadata.remove(http2.constants.HTTP2_HEADER_CONTENT_TYPE); - metadata.remove('grpc-accept-encoding'); - return metadata; - } - receiveUnaryMessage(encoding) { - return new Promise((resolve, reject) => { - const { stream } = this; - let receivedLength = 0; - // eslint-disable-next-line @typescript-eslint/no-this-alias - const call = this; - const body = []; - const limit = this.maxReceiveMessageSize; - this.stream.on('data', onData); - this.stream.on('end', onEnd); - this.stream.on('error', onEnd); - function onData(chunk) { - receivedLength += chunk.byteLength; - if (limit !== -1 && receivedLength > limit) { - stream.removeListener('data', onData); - stream.removeListener('end', onEnd); - stream.removeListener('error', onEnd); - reject({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Received message larger than max (${receivedLength} vs. ${limit})`, - }); - return; - } - body.push(chunk); - } - function onEnd(err) { - stream.removeListener('data', onData); - stream.removeListener('end', onEnd); - stream.removeListener('error', onEnd); - if (err !== undefined) { - reject({ code: constants_1.Status.INTERNAL, details: err.message }); - return; - } - if (receivedLength === 0) { - reject({ - code: constants_1.Status.INTERNAL, - details: 'received empty unary message', - }); - return; - } - call.emit('receiveMessage'); - const requestBytes = Buffer.concat(body, receivedLength); - const compressed = requestBytes.readUInt8(0) === 1; - const compressedMessageEncoding = compressed ? encoding : 'identity'; - const decompressedMessage = call.getDecompressedMessage(requestBytes, compressedMessageEncoding); - if (Buffer.isBuffer(decompressedMessage)) { - resolve(call.deserializeMessageWithInternalError(decompressedMessage)); - return; - } - decompressedMessage.then(decompressed => resolve(call.deserializeMessageWithInternalError(decompressed)), (err) => reject(err.code - ? err - : { - code: constants_1.Status.INTERNAL, - details: `Received "grpc-encoding" header "${encoding}" but ${encoding} decompression failed`, - })); - } - }); - } - async deserializeMessageWithInternalError(buffer) { - try { - return this.deserializeMessage(buffer); - } - catch (err) { - throw { - details: (0, error_1.getErrorMessage)(err), - code: constants_1.Status.INTERNAL, - }; - } - } - serializeMessage(value) { - const messageBuffer = this.handler.serialize(value); - // TODO(cjihrig): Call compression aware serializeMessage(). - const byteLength = messageBuffer.byteLength; - const output = Buffer.allocUnsafe(byteLength + 5); - output.writeUInt8(0, 0); - output.writeUInt32BE(byteLength, 1); - messageBuffer.copy(output, 5); - return output; - } - deserializeMessage(bytes) { - return this.handler.deserialize(bytes); - } - async sendUnaryMessage(err, value, metadata, flags) { - if (this.checkCancelled()) { - return; - } - if (metadata === undefined) { - metadata = null; - } - if (err) { - if (!Object.prototype.hasOwnProperty.call(err, 'metadata') && metadata) { - err.metadata = metadata; - } - this.sendError(err); - return; - } - try { - const response = this.serializeMessage(value); - this.write(response); - this.sendStatus({ code: constants_1.Status.OK, details: 'OK', metadata }); - } - catch (err) { - this.sendError({ - details: (0, error_1.getErrorMessage)(err), - code: constants_1.Status.INTERNAL, - }); - } - } - sendStatus(statusObj) { - var _a, _b; - this.emit('callEnd', statusObj.code); - this.emit('streamEnd', statusObj.code === constants_1.Status.OK); - if (this.checkCancelled()) { - return; - } - trace('Request to method ' + - ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + - ' ended with status code: ' + - constants_1.Status[statusObj.code] + - ' details: ' + - statusObj.details); - if (this.deadlineTimer) - clearTimeout(this.deadlineTimer); - if (this.stream.headersSent) { - if (!this.wantTrailers) { - this.wantTrailers = true; - this.stream.once('wantTrailers', () => { - var _a; - const trailersToSend = Object.assign({ [GRPC_STATUS_HEADER]: statusObj.code, [GRPC_MESSAGE_HEADER]: encodeURI(statusObj.details) }, (_a = statusObj.metadata) === null || _a === void 0 ? void 0 : _a.toHttp2Headers()); - this.stream.sendTrailers(trailersToSend); - this.statusSent = true; - }); - this.stream.end(); - } - } - else { - // Trailers-only response - const trailersToSend = Object.assign(Object.assign({ [GRPC_STATUS_HEADER]: statusObj.code, [GRPC_MESSAGE_HEADER]: encodeURI(statusObj.details) }, defaultResponseHeaders), (_b = statusObj.metadata) === null || _b === void 0 ? void 0 : _b.toHttp2Headers()); - this.stream.respond(trailersToSend, { endStream: true }); - this.statusSent = true; - } - } - sendError(error) { - const status = { - code: constants_1.Status.UNKNOWN, - details: 'message' in error ? error.message : 'Unknown Error', - metadata: 'metadata' in error && error.metadata !== undefined - ? error.metadata - : null, - }; - if ('code' in error && - typeof error.code === 'number' && - Number.isInteger(error.code)) { - status.code = error.code; - if ('details' in error && typeof error.details === 'string') { - status.details = error.details; - } - } - this.sendStatus(status); - } - write(chunk) { - if (this.checkCancelled()) { - return; - } - if (this.maxSendMessageSize !== -1 && - chunk.length > this.maxSendMessageSize) { - this.sendError({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Sent message larger than max (${chunk.length} vs. ${this.maxSendMessageSize})`, - }); - return; - } - this.sendMetadata(); - this.emit('sendMessage'); - return this.stream.write(chunk); - } - resume() { - this.stream.resume(); - } - setupSurfaceCall(call) { - this.once('cancelled', reason => { - call.cancelled = true; - call.emit('cancelled', reason); - }); - this.once('callEnd', status => call.emit('callEnd', status)); - } - setupReadable(readable, encoding) { - const decoder = new stream_decoder_1.StreamDecoder(this.maxReceiveMessageSize); - let readsDone = false; - let pendingMessageProcessing = false; - let pushedEnd = false; - const maybePushEnd = async () => { - if (!pushedEnd && readsDone && !pendingMessageProcessing) { - pushedEnd = true; - await this.pushOrBufferMessage(readable, null); - } - }; - this.stream.on('data', async (data) => { - let messages; - try { - messages = decoder.write(data); - } - catch (e) { - this.sendError({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: e.message - }); - return; - } - pendingMessageProcessing = true; - this.stream.pause(); - for (const message of messages) { - this.emit('receiveMessage'); - const compressed = message.readUInt8(0) === 1; - const compressedMessageEncoding = compressed ? encoding : 'identity'; - let decompressedMessage; - try { - decompressedMessage = await this.getDecompressedMessage(message, compressedMessageEncoding); - } - catch (e) { - this.sendError(e); - return; - } - // Encountered an error with decompression; it'll already have been propogated back - // Just return early - if (!decompressedMessage) - return; - await this.pushOrBufferMessage(readable, decompressedMessage); - } - pendingMessageProcessing = false; - this.stream.resume(); - await maybePushEnd(); - }); - this.stream.once('end', async () => { - readsDone = true; - await maybePushEnd(); - }); - } - consumeUnpushedMessages(readable) { - this.canPush = true; - while (this.messagesToPush.length > 0) { - const nextMessage = this.messagesToPush.shift(); - const canPush = readable.push(nextMessage); - if (nextMessage === null || canPush === false) { - this.canPush = false; - break; - } - } - return this.canPush; - } - async pushOrBufferMessage(readable, messageBytes) { - if (this.isPushPending) { - this.bufferedMessages.push(messageBytes); - } - else { - await this.pushMessage(readable, messageBytes); - } - } - async pushMessage(readable, messageBytes) { - if (messageBytes === null) { - trace('Received end of stream'); - if (this.canPush) { - readable.push(null); - } - else { - this.messagesToPush.push(null); - } - return; - } - trace('Received message of length ' + messageBytes.length); - this.isPushPending = true; - try { - const deserialized = await this.deserializeMessage(messageBytes); - if (this.canPush) { - if (!readable.push(deserialized)) { - this.canPush = false; - this.stream.pause(); - } - } - else { - this.messagesToPush.push(deserialized); - } - } - catch (error) { - // Ignore any remaining messages when errors occur. - this.bufferedMessages.length = 0; - let code = (0, error_1.getErrorCode)(error); - if (code === null || code < constants_1.Status.OK || code > constants_1.Status.UNAUTHENTICATED) { - code = constants_1.Status.INTERNAL; - } - readable.emit('error', { - details: (0, error_1.getErrorMessage)(error), - code: code, - }); - } - this.isPushPending = false; - if (this.bufferedMessages.length > 0) { - await this.pushMessage(readable, this.bufferedMessages.shift()); - } - } - getPeer() { - var _a; - const socket = (_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket; - if (socket === null || socket === void 0 ? void 0 : socket.remoteAddress) { - if (socket.remotePort) { - return `${socket.remoteAddress}:${socket.remotePort}`; - } - else { - return socket.remoteAddress; - } - } - else { - return 'unknown'; - } - } - getDeadline() { - return this.deadline; - } - getPath() { - return this.handler.path; - } -} -exports.Http2ServerCallStream = Http2ServerCallStream; -function handleExpiredDeadline(call) { - const err = new Error('Deadline exceeded'); - err.code = constants_1.Status.DEADLINE_EXCEEDED; - call.sendError(err); - call.cancelled = true; - call.emit('cancelled', 'deadline'); -} -//# sourceMappingURL=server-call.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.js.map deleted file mode 100644 index 59a1804..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-call.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server-call.js","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,CAAC;IACtB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AACrC,CAAC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.d.ts deleted file mode 100644 index ab98e65..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// <reference types="node" /> -/// <reference types="node" /> -import { SecureServerOptions } from 'http2'; -export interface KeyCertPair { - private_key: Buffer; - cert_chain: Buffer; -} -export declare abstract class ServerCredentials { - abstract _isSecure(): boolean; - abstract _getSettings(): SecureServerOptions | null; - static createInsecure(): ServerCredentials; - static createSsl(rootCerts: Buffer | null, keyCertPairs: KeyCertPair[], checkClientCertificate?: boolean): ServerCredentials; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.js deleted file mode 100644 index f1d3f96..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ServerCredentials = void 0; -const tls_helpers_1 = require("./tls-helpers"); -class ServerCredentials { - static createInsecure() { - return new InsecureServerCredentials(); - } - static createSsl(rootCerts, keyCertPairs, checkClientCertificate = false) { - if (rootCerts !== null && !Buffer.isBuffer(rootCerts)) { - throw new TypeError('rootCerts must be null or a Buffer'); - } - if (!Array.isArray(keyCertPairs)) { - throw new TypeError('keyCertPairs must be an array'); - } - if (typeof checkClientCertificate !== 'boolean') { - throw new TypeError('checkClientCertificate must be a boolean'); - } - const cert = []; - const key = []; - for (let i = 0; i < keyCertPairs.length; i++) { - const pair = keyCertPairs[i]; - if (pair === null || typeof pair !== 'object') { - throw new TypeError(`keyCertPair[${i}] must be an object`); - } - if (!Buffer.isBuffer(pair.private_key)) { - throw new TypeError(`keyCertPair[${i}].private_key must be a Buffer`); - } - if (!Buffer.isBuffer(pair.cert_chain)) { - throw new TypeError(`keyCertPair[${i}].cert_chain must be a Buffer`); - } - cert.push(pair.cert_chain); - key.push(pair.private_key); - } - return new SecureServerCredentials({ - ca: rootCerts || (0, tls_helpers_1.getDefaultRootsData)() || undefined, - cert, - key, - requestCert: checkClientCertificate, - ciphers: tls_helpers_1.CIPHER_SUITES, - }); - } -} -exports.ServerCredentials = ServerCredentials; -class InsecureServerCredentials extends ServerCredentials { - _isSecure() { - return false; - } - _getSettings() { - return null; - } -} -class SecureServerCredentials extends ServerCredentials { - constructor(options) { - super(); - this.options = options; - } - _isSecure() { - return true; - } - _getSettings() { - return this.options; - } -} -//# sourceMappingURL=server-credentials.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.js.map deleted file mode 100644 index 41d4226..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server-credentials.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server-credentials.js","sourceRoot":"","sources":["../../src/server-credentials.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,+CAAmE;AAOnE,MAAsB,iBAAiB;IAIrC,MAAM,CAAC,cAAc;QACnB,OAAO,IAAI,yBAAyB,EAAE,CAAC;IACzC,CAAC;IAED,MAAM,CAAC,SAAS,CACd,SAAwB,EACxB,YAA2B,EAC3B,s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CAAC;QAED,OAAO,IAAI,uBAAuB,CAAC;YACjC,EAAE,EAAE,SAAS,IAAI,IAAA,iCAAmB,GAAE,IAAI,SAAS;YACnD,IAAI;YACJ,GAAG;YACH,WAAW,EAAE,sBAAsB;YACnC,OAAO,EAAE,2BAAa;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AAvDD,8CAuDC;AAED,MAAM,yBAA0B,SAAQ,iBAAiB;IACvD,SAAS;QACP,OAAO,KAAK,CAAC;IACf,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,MAAM,uBAAwB,SAAQ,iBAAiB;IAGrD,YAAY,OAA4B;QACtC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/server.d.ts deleted file mode 100644 index b360fd9..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Deserialize, Serialize, ServiceDefinition } from './make-client'; -import { HandleCall } from './server-call'; -import { ServerCredentials } from './server-credentials'; -import { ChannelOptions } from './channel-options'; -import { ServerRef } from './channelz'; -export type UntypedHandleCall = HandleCall<any, any>; -export interface UntypedServiceImplementation { - [name: string]: UntypedHandleCall; -} -export declare class Server { - private http2ServerList; - private handlers; - private sessions; - private started; - private shutdown; - private options; - private serverAddressString; - private readonly channelzEnabled; - private channelzRef; - private channelzTrace; - private callTracker; - private listenerChildrenTracker; - private sessionChildrenTracker; - private readonly maxConnectionAgeMs; - private readonly maxConnectionAgeGraceMs; - private readonly keepaliveTimeMs; - private readonly keepaliveTimeoutMs; - constructor(options?: ChannelOptions); - private getChannelzInfo; - private getChannelzSessionInfoGetter; - private trace; - addProtoService(): never; - addService(service: ServiceDefinition, implementation: UntypedServiceImplementation): void; - removeService(service: ServiceDefinition): void; - bind(port: string, creds: ServerCredentials): never; - bindAsync(port: string, creds: ServerCredentials, callback: (error: Error | null, port: number) => void): void; - forceShutdown(): void; - register<RequestType, ResponseType>(name: string, handler: HandleCall<RequestType, ResponseType>, serialize: Serialize<ResponseType>, deserialize: Deserialize<RequestType>, type: string): boolean; - unregister(name: string): boolean; - start(): void; - tryShutdown(callback: (error?: Error) => void): void; - addHttp2Port(): never; - /** - * Get the channelz reference object for this server. The returned value is - * garbage if channelz is disabled for this server. - * @returns - */ - getChannelzRef(): ServerRef; - private _verifyContentType; - private _retrieveHandler; - private _respondWithError; - private _channelzHandler; - private _streamHandler; - private _runHandlerForCall; - private _setupHandlers; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/server.js deleted file mode 100644 index a6c80ff..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server.js +++ /dev/null @@ -1,892 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Server = void 0; -const http2 = require("http2"); -const constants_1 = require("./constants"); -const server_call_1 = require("./server-call"); -const server_credentials_1 = require("./server-credentials"); -const resolver_1 = require("./resolver"); -const logging = require("./logging"); -const subchannel_address_1 = require("./subchannel-address"); -const uri_parser_1 = require("./uri-parser"); -const channelz_1 = require("./channelz"); -const UNLIMITED_CONNECTION_AGE_MS = ~(1 << 31); -const KEEPALIVE_MAX_TIME_MS = ~(1 << 31); -const KEEPALIVE_TIMEOUT_MS = 20000; -const { HTTP2_HEADER_PATH } = http2.constants; -const TRACER_NAME = 'server'; -function noop() { } -function getUnimplementedStatusResponse(methodName) { - return { - code: constants_1.Status.UNIMPLEMENTED, - details: `The server does not implement the method ${methodName}`, - }; -} -function getDefaultHandler(handlerType, methodName) { - const unimplementedStatusResponse = getUnimplementedStatusResponse(methodName); - switch (handlerType) { - case 'unary': - return (call, callback) => { - callback(unimplementedStatusResponse, null); - }; - case 'clientStream': - return (call, callback) => { - callback(unimplementedStatusResponse, null); - }; - case 'serverStream': - return (call) => { - call.emit('error', unimplementedStatusResponse); - }; - case 'bidi': - return (call) => { - call.emit('error', unimplementedStatusResponse); - }; - default: - throw new Error(`Invalid handlerType ${handlerType}`); - } -} -class Server { - constructor(options) { - var _a, _b, _c, _d; - this.http2ServerList = []; - this.handlers = new Map(); - this.sessions = new Map(); - this.started = false; - this.shutdown = false; - this.serverAddressString = 'null'; - // Channelz Info - this.channelzEnabled = true; - this.channelzTrace = new channelz_1.ChannelzTrace(); - this.callTracker = new channelz_1.ChannelzCallTracker(); - this.listenerChildrenTracker = new channelz_1.ChannelzChildrenTracker(); - this.sessionChildrenTracker = new channelz_1.ChannelzChildrenTracker(); - this.options = options !== null && options !== void 0 ? options : {}; - if (this.options['grpc.enable_channelz'] === 0) { - this.channelzEnabled = false; - } - this.channelzRef = (0, channelz_1.registerChannelzServer)(() => this.getChannelzInfo(), this.channelzEnabled); - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Server created'); - } - this.maxConnectionAgeMs = - (_a = this.options['grpc.max_connection_age_ms']) !== null && _a !== void 0 ? _a : UNLIMITED_CONNECTION_AGE_MS; - this.maxConnectionAgeGraceMs = - (_b = this.options['grpc.max_connection_age_grace_ms']) !== null && _b !== void 0 ? _b : UNLIMITED_CONNECTION_AGE_MS; - this.keepaliveTimeMs = - (_c = this.options['grpc.keepalive_time_ms']) !== null && _c !== void 0 ? _c : KEEPALIVE_MAX_TIME_MS; - this.keepaliveTimeoutMs = - (_d = this.options['grpc.keepalive_timeout_ms']) !== null && _d !== void 0 ? _d : KEEPALIVE_TIMEOUT_MS; - this.trace('Server constructed'); - } - getChannelzInfo() { - return { - trace: this.channelzTrace, - callTracker: this.callTracker, - listenerChildren: this.listenerChildrenTracker.getChildLists(), - sessionChildren: this.sessionChildrenTracker.getChildLists(), - }; - } - getChannelzSessionInfoGetter(session) { - return () => { - var _a, _b, _c; - const sessionInfo = this.sessions.get(session); - const sessionSocket = session.socket; - const remoteAddress = sessionSocket.remoteAddress - ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.remoteAddress, sessionSocket.remotePort) - : null; - const localAddress = sessionSocket.localAddress - ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.localAddress, sessionSocket.localPort) - : null; - let tlsInfo; - if (session.encrypted) { - const tlsSocket = sessionSocket; - const cipherInfo = tlsSocket.getCipher(); - const certificate = tlsSocket.getCertificate(); - const peerCertificate = tlsSocket.getPeerCertificate(); - tlsInfo = { - cipherSuiteStandardName: (_a = cipherInfo.standardName) !== null && _a !== void 0 ? _a : null, - cipherSuiteOtherName: cipherInfo.standardName - ? null - : cipherInfo.name, - localCertificate: certificate && 'raw' in certificate ? certificate.raw : null, - remoteCertificate: peerCertificate && 'raw' in peerCertificate - ? peerCertificate.raw - : null, - }; - } - else { - tlsInfo = null; - } - const socketInfo = { - remoteAddress: remoteAddress, - localAddress: localAddress, - security: tlsInfo, - remoteName: null, - streamsStarted: sessionInfo.streamTracker.callsStarted, - streamsSucceeded: sessionInfo.streamTracker.callsSucceeded, - streamsFailed: sessionInfo.streamTracker.callsFailed, - messagesSent: sessionInfo.messagesSent, - messagesReceived: sessionInfo.messagesReceived, - keepAlivesSent: 0, - lastLocalStreamCreatedTimestamp: null, - lastRemoteStreamCreatedTimestamp: sessionInfo.streamTracker.lastCallStartedTimestamp, - lastMessageSentTimestamp: sessionInfo.lastMessageSentTimestamp, - lastMessageReceivedTimestamp: sessionInfo.lastMessageReceivedTimestamp, - localFlowControlWindow: (_b = session.state.localWindowSize) !== null && _b !== void 0 ? _b : null, - remoteFlowControlWindow: (_c = session.state.remoteWindowSize) !== null && _c !== void 0 ? _c : null, - }; - return socketInfo; - }; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + this.channelzRef.id + ') ' + text); - } - addProtoService() { - throw new Error('Not implemented. Use addService() instead'); - } - addService(service, implementation) { - if (service === null || - typeof service !== 'object' || - implementation === null || - typeof implementation !== 'object') { - throw new Error('addService() requires two objects as arguments'); - } - const serviceKeys = Object.keys(service); - if (serviceKeys.length === 0) { - throw new Error('Cannot add an empty service to a server'); - } - serviceKeys.forEach(name => { - const attrs = service[name]; - let methodType; - if (attrs.requestStream) { - if (attrs.responseStream) { - methodType = 'bidi'; - } - else { - methodType = 'clientStream'; - } - } - else { - if (attrs.responseStream) { - methodType = 'serverStream'; - } - else { - methodType = 'unary'; - } - } - let implFn = implementation[name]; - let impl; - if (implFn === undefined && typeof attrs.originalName === 'string') { - implFn = implementation[attrs.originalName]; - } - if (implFn !== undefined) { - impl = implFn.bind(implementation); - } - else { - impl = getDefaultHandler(methodType, name); - } - const success = this.register(attrs.path, impl, attrs.responseSerialize, attrs.requestDeserialize, methodType); - if (success === false) { - throw new Error(`Method handler for ${attrs.path} already provided.`); - } - }); - } - removeService(service) { - if (service === null || typeof service !== 'object') { - throw new Error('removeService() requires object as argument'); - } - const serviceKeys = Object.keys(service); - serviceKeys.forEach(name => { - const attrs = service[name]; - this.unregister(attrs.path); - }); - } - bind(port, creds) { - throw new Error('Not implemented. Use bindAsync() instead'); - } - bindAsync(port, creds, callback) { - if (this.started === true) { - throw new Error('server is already started'); - } - if (this.shutdown) { - throw new Error('bindAsync called after shutdown'); - } - if (typeof port !== 'string') { - throw new TypeError('port must be a string'); - } - if (creds === null || !(creds instanceof server_credentials_1.ServerCredentials)) { - throw new TypeError('creds must be a ServerCredentials object'); - } - if (typeof callback !== 'function') { - throw new TypeError('callback must be a function'); - } - const initialPortUri = (0, uri_parser_1.parseUri)(port); - if (initialPortUri === null) { - throw new Error(`Could not parse port "${port}"`); - } - const portUri = (0, resolver_1.mapUriDefaultScheme)(initialPortUri); - if (portUri === null) { - throw new Error(`Could not get a default scheme for port "${port}"`); - } - const serverOptions = { - maxSendHeaderBlockLength: Number.MAX_SAFE_INTEGER, - }; - if ('grpc-node.max_session_memory' in this.options) { - serverOptions.maxSessionMemory = - this.options['grpc-node.max_session_memory']; - } - else { - /* By default, set a very large max session memory limit, to effectively - * disable enforcement of the limit. Some testing indicates that Node's - * behavior degrades badly when this limit is reached, so we solve that - * by disabling the check entirely. */ - serverOptions.maxSessionMemory = Number.MAX_SAFE_INTEGER; - } - if ('grpc.max_concurrent_streams' in this.options) { - serverOptions.settings = { - maxConcurrentStreams: this.options['grpc.max_concurrent_streams'], - }; - } - const deferredCallback = (error, port) => { - process.nextTick(() => callback(error, port)); - }; - const setupServer = () => { - let http2Server; - if (creds._isSecure()) { - const secureServerOptions = Object.assign(serverOptions, creds._getSettings()); - secureServerOptions.enableTrace = - this.options['grpc-node.tls_enable_trace'] === 1; - http2Server = http2.createSecureServer(secureServerOptions); - http2Server.on('secureConnection', (socket) => { - /* These errors need to be handled by the user of Http2SecureServer, - * according to https://github.com/nodejs/node/issues/35824 */ - socket.on('error', (e) => { - this.trace('An incoming TLS connection closed with error: ' + e.message); - }); - }); - } - else { - http2Server = http2.createServer(serverOptions); - } - http2Server.setTimeout(0, noop); - this._setupHandlers(http2Server); - return http2Server; - }; - const bindSpecificPort = (addressList, portNum, previousCount) => { - if (addressList.length === 0) { - return Promise.resolve({ port: portNum, count: previousCount }); - } - return Promise.all(addressList.map(address => { - this.trace('Attempting to bind ' + (0, subchannel_address_1.subchannelAddressToString)(address)); - let addr; - if ((0, subchannel_address_1.isTcpSubchannelAddress)(address)) { - addr = { - host: address.host, - port: portNum, - }; - } - else { - addr = address; - } - const http2Server = setupServer(); - return new Promise((resolve, reject) => { - const onError = (err) => { - this.trace('Failed to bind ' + - (0, subchannel_address_1.subchannelAddressToString)(address) + - ' with error ' + - err.message); - resolve(err); - }; - http2Server.once('error', onError); - http2Server.listen(addr, () => { - if (this.shutdown) { - http2Server.close(); - resolve(new Error('bindAsync failed because server is shutdown')); - return; - } - const boundAddress = http2Server.address(); - let boundSubchannelAddress; - if (typeof boundAddress === 'string') { - boundSubchannelAddress = { - path: boundAddress, - }; - } - else { - boundSubchannelAddress = { - host: boundAddress.address, - port: boundAddress.port, - }; - } - const channelzRef = (0, channelz_1.registerChannelzSocket)((0, subchannel_address_1.subchannelAddressToString)(boundSubchannelAddress), () => { - return { - localAddress: boundSubchannelAddress, - remoteAddress: null, - security: null, - remoteName: null, - streamsStarted: 0, - streamsSucceeded: 0, - streamsFailed: 0, - messagesSent: 0, - messagesReceived: 0, - keepAlivesSent: 0, - lastLocalStreamCreatedTimestamp: null, - lastRemoteStreamCreatedTimestamp: null, - lastMessageSentTimestamp: null, - lastMessageReceivedTimestamp: null, - localFlowControlWindow: null, - remoteFlowControlWindow: null, - }; - }, this.channelzEnabled); - if (this.channelzEnabled) { - this.listenerChildrenTracker.refChild(channelzRef); - } - this.http2ServerList.push({ - server: http2Server, - channelzRef: channelzRef, - }); - this.trace('Successfully bound ' + - (0, subchannel_address_1.subchannelAddressToString)(boundSubchannelAddress)); - resolve('port' in boundSubchannelAddress - ? boundSubchannelAddress.port - : portNum); - http2Server.removeListener('error', onError); - }); - }); - })).then(results => { - let count = 0; - for (const result of results) { - if (typeof result === 'number') { - count += 1; - if (result !== portNum) { - throw new Error('Invalid state: multiple port numbers added from single address'); - } - } - } - return { - port: portNum, - count: count + previousCount, - }; - }); - }; - const bindWildcardPort = (addressList) => { - if (addressList.length === 0) { - return Promise.resolve({ port: 0, count: 0 }); - } - const address = addressList[0]; - const http2Server = setupServer(); - return new Promise((resolve, reject) => { - const onError = (err) => { - this.trace('Failed to bind ' + - (0, subchannel_address_1.subchannelAddressToString)(address) + - ' with error ' + - err.message); - resolve(bindWildcardPort(addressList.slice(1))); - }; - http2Server.once('error', onError); - http2Server.listen(address, () => { - if (this.shutdown) { - http2Server.close(); - resolve({ port: 0, count: 0 }); - return; - } - const boundAddress = http2Server.address(); - const boundSubchannelAddress = { - host: boundAddress.address, - port: boundAddress.port, - }; - const channelzRef = (0, channelz_1.registerChannelzSocket)((0, subchannel_address_1.subchannelAddressToString)(boundSubchannelAddress), () => { - return { - localAddress: boundSubchannelAddress, - remoteAddress: null, - security: null, - remoteName: null, - streamsStarted: 0, - streamsSucceeded: 0, - streamsFailed: 0, - messagesSent: 0, - messagesReceived: 0, - keepAlivesSent: 0, - lastLocalStreamCreatedTimestamp: null, - lastRemoteStreamCreatedTimestamp: null, - lastMessageSentTimestamp: null, - lastMessageReceivedTimestamp: null, - localFlowControlWindow: null, - remoteFlowControlWindow: null, - }; - }, this.channelzEnabled); - if (this.channelzEnabled) { - this.listenerChildrenTracker.refChild(channelzRef); - } - this.http2ServerList.push({ - server: http2Server, - channelzRef: channelzRef, - }); - this.trace('Successfully bound ' + - (0, subchannel_address_1.subchannelAddressToString)(boundSubchannelAddress)); - resolve(bindSpecificPort(addressList.slice(1), boundAddress.port, 1)); - http2Server.removeListener('error', onError); - }); - }); - }; - const resolverListener = { - onSuccessfulResolution: (addressList, serviceConfig, serviceConfigError) => { - // We only want one resolution result. Discard all future results - resolverListener.onSuccessfulResolution = () => { }; - if (this.shutdown) { - deferredCallback(new Error(`bindAsync failed because server is shutdown`), 0); - } - if (addressList.length === 0) { - deferredCallback(new Error(`No addresses resolved for port ${port}`), 0); - return; - } - let bindResultPromise; - if ((0, subchannel_address_1.isTcpSubchannelAddress)(addressList[0])) { - if (addressList[0].port === 0) { - bindResultPromise = bindWildcardPort(addressList); - } - else { - bindResultPromise = bindSpecificPort(addressList, addressList[0].port, 0); - } - } - else { - // Use an arbitrary non-zero port for non-TCP addresses - bindResultPromise = bindSpecificPort(addressList, 1, 0); - } - bindResultPromise.then(bindResult => { - if (bindResult.count === 0) { - const errorString = `No address added out of total ${addressList.length} resolved`; - logging.log(constants_1.LogVerbosity.ERROR, errorString); - deferredCallback(new Error(errorString), 0); - } - else { - if (bindResult.count < addressList.length) { - logging.log(constants_1.LogVerbosity.INFO, `WARNING Only ${bindResult.count} addresses added out of total ${addressList.length} resolved`); - } - deferredCallback(null, bindResult.port); - } - }, error => { - const errorString = `No address added out of total ${addressList.length} resolved`; - logging.log(constants_1.LogVerbosity.ERROR, errorString); - deferredCallback(new Error(errorString), 0); - }); - }, - onError: error => { - deferredCallback(new Error(error.details), 0); - }, - }; - const resolver = (0, resolver_1.createResolver)(portUri, resolverListener, this.options); - resolver.updateResolution(); - } - forceShutdown() { - // Close the server if it is still running. - for (const { server: http2Server, channelzRef: ref } of this - .http2ServerList) { - if (http2Server.listening) { - http2Server.close(() => { - if (this.channelzEnabled) { - this.listenerChildrenTracker.unrefChild(ref); - (0, channelz_1.unregisterChannelzRef)(ref); - } - }); - } - } - this.started = false; - this.shutdown = true; - // Always destroy any available sessions. It's possible that one or more - // tryShutdown() calls are in progress. Don't wait on them to finish. - this.sessions.forEach((channelzInfo, session) => { - // Cast NGHTTP2_CANCEL to any because TypeScript doesn't seem to - // recognize destroy(code) as a valid signature. - // eslint-disable-next-line @typescript-eslint/no-explicit-any - session.destroy(http2.constants.NGHTTP2_CANCEL); - }); - this.sessions.clear(); - if (this.channelzEnabled) { - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - } - } - register(name, handler, serialize, deserialize, type) { - if (this.handlers.has(name)) { - return false; - } - this.handlers.set(name, { - func: handler, - serialize, - deserialize, - type, - path: name, - }); - return true; - } - unregister(name) { - return this.handlers.delete(name); - } - start() { - if (this.http2ServerList.length === 0 || - this.http2ServerList.every(({ server: http2Server }) => http2Server.listening !== true)) { - throw new Error('server must be bound in order to start'); - } - if (this.started === true) { - throw new Error('server is already started'); - } - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Starting'); - } - this.started = true; - } - tryShutdown(callback) { - const wrappedCallback = (error) => { - if (this.channelzEnabled) { - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - } - callback(error); - }; - let pendingChecks = 0; - function maybeCallback() { - pendingChecks--; - if (pendingChecks === 0) { - wrappedCallback(); - } - } - // Close the server if necessary. - this.started = false; - this.shutdown = true; - for (const { server: http2Server, channelzRef: ref } of this - .http2ServerList) { - if (http2Server.listening) { - pendingChecks++; - http2Server.close(() => { - if (this.channelzEnabled) { - this.listenerChildrenTracker.unrefChild(ref); - (0, channelz_1.unregisterChannelzRef)(ref); - } - maybeCallback(); - }); - } - } - this.sessions.forEach((channelzInfo, session) => { - if (!session.closed) { - pendingChecks += 1; - session.close(maybeCallback); - } - }); - if (pendingChecks === 0) { - wrappedCallback(); - } - } - addHttp2Port() { - throw new Error('Not yet implemented'); - } - /** - * Get the channelz reference object for this server. The returned value is - * garbage if channelz is disabled for this server. - * @returns - */ - getChannelzRef() { - return this.channelzRef; - } - _verifyContentType(stream, headers) { - const contentType = headers[http2.constants.HTTP2_HEADER_CONTENT_TYPE]; - if (typeof contentType !== 'string' || - !contentType.startsWith('application/grpc')) { - stream.respond({ - [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE, - }, { endStream: true }); - return false; - } - return true; - } - _retrieveHandler(path) { - this.trace('Received call to method ' + - path + - ' at address ' + - this.serverAddressString); - const handler = this.handlers.get(path); - if (handler === undefined) { - this.trace('No handler registered for method ' + - path + - '. Sending UNIMPLEMENTED status.'); - return null; - } - return handler; - } - _respondWithError(err, stream, channelzSessionInfo = null) { - const call = new server_call_1.Http2ServerCallStream(stream, null, this.options); - if (err.code === undefined) { - err.code = constants_1.Status.INTERNAL; - } - if (this.channelzEnabled) { - this.callTracker.addCallFailed(); - channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); - } - call.sendError(err); - } - _channelzHandler(stream, headers) { - const channelzSessionInfo = this.sessions.get(stream.session); - this.callTracker.addCallStarted(); - channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallStarted(); - if (!this._verifyContentType(stream, headers)) { - this.callTracker.addCallFailed(); - channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); - return; - } - const path = headers[HTTP2_HEADER_PATH]; - const handler = this._retrieveHandler(path); - if (!handler) { - this._respondWithError(getUnimplementedStatusResponse(path), stream, channelzSessionInfo); - return; - } - const call = new server_call_1.Http2ServerCallStream(stream, handler, this.options); - call.once('callEnd', (code) => { - if (code === constants_1.Status.OK) { - this.callTracker.addCallSucceeded(); - } - else { - this.callTracker.addCallFailed(); - } - }); - if (channelzSessionInfo) { - call.once('streamEnd', (success) => { - if (success) { - channelzSessionInfo.streamTracker.addCallSucceeded(); - } - else { - channelzSessionInfo.streamTracker.addCallFailed(); - } - }); - call.on('sendMessage', () => { - channelzSessionInfo.messagesSent += 1; - channelzSessionInfo.lastMessageSentTimestamp = new Date(); - }); - call.on('receiveMessage', () => { - channelzSessionInfo.messagesReceived += 1; - channelzSessionInfo.lastMessageReceivedTimestamp = new Date(); - }); - } - if (!this._runHandlerForCall(call, handler, headers)) { - this.callTracker.addCallFailed(); - channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); - call.sendError({ - code: constants_1.Status.INTERNAL, - details: `Unknown handler type: ${handler.type}`, - }); - } - } - _streamHandler(stream, headers) { - if (this._verifyContentType(stream, headers) !== true) { - return; - } - const path = headers[HTTP2_HEADER_PATH]; - const handler = this._retrieveHandler(path); - if (!handler) { - this._respondWithError(getUnimplementedStatusResponse(path), stream, null); - return; - } - const call = new server_call_1.Http2ServerCallStream(stream, handler, this.options); - if (!this._runHandlerForCall(call, handler, headers)) { - call.sendError({ - code: constants_1.Status.INTERNAL, - details: `Unknown handler type: ${handler.type}`, - }); - } - } - _runHandlerForCall(call, handler, headers) { - var _a; - const metadata = call.receiveMetadata(headers); - const encoding = (_a = metadata.get('grpc-encoding')[0]) !== null && _a !== void 0 ? _a : 'identity'; - metadata.remove('grpc-encoding'); - const { type } = handler; - if (type === 'unary') { - handleUnary(call, handler, metadata, encoding); - } - else if (type === 'clientStream') { - handleClientStreaming(call, handler, metadata, encoding); - } - else if (type === 'serverStream') { - handleServerStreaming(call, handler, metadata, encoding); - } - else if (type === 'bidi') { - handleBidiStreaming(call, handler, metadata, encoding); - } - else { - return false; - } - return true; - } - _setupHandlers(http2Server) { - if (http2Server === null) { - return; - } - const serverAddress = http2Server.address(); - let serverAddressString = 'null'; - if (serverAddress) { - if (typeof serverAddress === 'string') { - serverAddressString = serverAddress; - } - else { - serverAddressString = serverAddress.address + ':' + serverAddress.port; - } - } - this.serverAddressString = serverAddressString; - const handler = this.channelzEnabled - ? this._channelzHandler - : this._streamHandler; - http2Server.on('stream', handler.bind(this)); - http2Server.on('session', session => { - var _a, _b, _c, _d, _e; - if (!this.started) { - session.destroy(); - return; - } - const channelzRef = (0, channelz_1.registerChannelzSocket)((_a = session.socket.remoteAddress) !== null && _a !== void 0 ? _a : 'unknown', this.getChannelzSessionInfoGetter(session), this.channelzEnabled); - const channelzSessionInfo = { - ref: channelzRef, - streamTracker: new channelz_1.ChannelzCallTracker(), - messagesSent: 0, - messagesReceived: 0, - lastMessageSentTimestamp: null, - lastMessageReceivedTimestamp: null, - }; - this.sessions.set(session, channelzSessionInfo); - const clientAddress = session.socket.remoteAddress; - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Connection established by client ' + clientAddress); - this.sessionChildrenTracker.refChild(channelzRef); - } - let connectionAgeTimer = null; - let connectionAgeGraceTimer = null; - let sessionClosedByServer = false; - if (this.maxConnectionAgeMs !== UNLIMITED_CONNECTION_AGE_MS) { - // Apply a random jitter within a +/-10% range - const jitterMagnitude = this.maxConnectionAgeMs / 10; - const jitter = Math.random() * jitterMagnitude * 2 - jitterMagnitude; - connectionAgeTimer = (_c = (_b = setTimeout(() => { - var _a, _b; - sessionClosedByServer = true; - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by max connection age from ' + clientAddress); - } - try { - session.goaway(http2.constants.NGHTTP2_NO_ERROR, ~(1 << 31), Buffer.from('max_age')); - } - catch (e) { - // The goaway can't be sent because the session is already closed - session.destroy(); - return; - } - session.close(); - /* Allow a grace period after sending the GOAWAY before forcibly - * closing the connection. */ - if (this.maxConnectionAgeGraceMs !== UNLIMITED_CONNECTION_AGE_MS) { - connectionAgeGraceTimer = (_b = (_a = setTimeout(() => { - session.destroy(); - }, this.maxConnectionAgeGraceMs)).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - }, this.maxConnectionAgeMs + jitter)).unref) === null || _c === void 0 ? void 0 : _c.call(_b); - } - const keeapliveTimeTimer = (_e = (_d = setInterval(() => { - var _a, _b; - const timeoutTImer = (_b = (_a = setTimeout(() => { - sessionClosedByServer = true; - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by keepalive timeout from ' + clientAddress); - } - session.close(); - }, this.keepaliveTimeoutMs)).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - try { - session.ping((err, duration, payload) => { - clearTimeout(timeoutTImer); - }); - } - catch (e) { - // The ping can't be sent because the session is already closed - session.destroy(); - } - }, this.keepaliveTimeMs)).unref) === null || _e === void 0 ? void 0 : _e.call(_d); - session.on('close', () => { - if (this.channelzEnabled) { - if (!sessionClosedByServer) { - this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by client ' + clientAddress); - } - this.sessionChildrenTracker.unrefChild(channelzRef); - (0, channelz_1.unregisterChannelzRef)(channelzRef); - } - if (connectionAgeTimer) { - clearTimeout(connectionAgeTimer); - } - if (connectionAgeGraceTimer) { - clearTimeout(connectionAgeGraceTimer); - } - if (keeapliveTimeTimer) { - clearTimeout(keeapliveTimeTimer); - } - this.sessions.delete(session); - }); - }); - } -} -exports.Server = Server; -async function handleUnary(call, handler, metadata, encoding) { - try { - const request = await call.receiveUnaryMessage(encoding); - if (request === undefined || call.cancelled) { - return; - } - const emitter = new server_call_1.ServerUnaryCallImpl(call, metadata, request); - handler.func(emitter, (err, value, trailer, flags) => { - call.sendUnaryMessage(err, value, trailer, flags); - }); - } - catch (err) { - call.sendError(err); - } -} -function handleClientStreaming(call, handler, metadata, encoding) { - const stream = new server_call_1.ServerReadableStreamImpl(call, metadata, handler.deserialize, encoding); - function respond(err, value, trailer, flags) { - stream.destroy(); - call.sendUnaryMessage(err, value, trailer, flags); - } - if (call.cancelled) { - return; - } - stream.on('error', respond); - handler.func(stream, respond); -} -async function handleServerStreaming(call, handler, metadata, encoding) { - try { - const request = await call.receiveUnaryMessage(encoding); - if (request === undefined || call.cancelled) { - return; - } - const stream = new server_call_1.ServerWritableStreamImpl(call, metadata, handler.serialize, request); - handler.func(stream); - } - catch (err) { - call.sendError(err); - } -} -function handleBidiStreaming(call, handler, metadata, encoding) { - const stream = new server_call_1.ServerDuplexStreamImpl(call, metadata, handler.serialize, handler.deserialize, encoding); - if (call.cancelled) { - return; - } - handler.func(stream); -} -//# sourceMappingURL=server.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/server.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/server.js.map deleted file mode 100644 index 85ddc5b..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+BAA+B;AAI/B,2CAAmD;AAGnD,+CAoBuB;AACvB,6DAAyD;AAEzD,yCAIoB;AACpB,qCAAqC;AACrC,6DAM8B;AAC9B,6CAAwC;AACxC,yCAYoB;AAGpB,MAAM,2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O,CAAC,CAAC;IAC5B,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAChC,CAAC;AAED,KAAK,UAAU,qBAAqB,CAClC,IAAsD,EACtD,OAA0D,EAC1D,QAAkB,EAClB,QAAgB;IAEhB,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAEzD,IAAI,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YAC5C,OAAO;QACT,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,sCAAwB,CACzC,IAAI,EACJ,QAAQ,EACR,OAAO,CAAC,SAAS,EACjB,OAAO,CACR,CAAC;QAEF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,SAAS,CAAC,GAA0B,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC;AAED,SAAS,mBAAmB,CAC1B,IAAsD,EACtD,OAAwD,EACxD,QAAkB,EAClB,QAAgB;IAEhB,MAAM,MAAM,GAAG,IAAI,oCAAsB,CACvC,IAAI,EACJ,QAAQ,EACR,OAAO,CAAC,SAAS,EACjB,OAAO,CAAC,WAAW,EACnB,QAAQ,CACT,CAAC;IAEF,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QACnB,OAAO;IACT,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvB,CAAC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.d.ts deleted file mode 100644 index 4006426..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Status } from './constants'; -import { Duration } from './duration'; -import { LoadBalancingConfig } from './load-balancer'; -export interface MethodConfigName { - service?: string; - method?: string; -} -export interface RetryPolicy { - maxAttempts: number; - initialBackoff: string; - maxBackoff: string; - backoffMultiplier: number; - retryableStatusCodes: (Status | string)[]; -} -export interface HedgingPolicy { - maxAttempts: number; - hedgingDelay?: string; - nonFatalStatusCodes?: (Status | string)[]; -} -export interface MethodConfig { - name: MethodConfigName[]; - waitForReady?: boolean; - timeout?: Duration; - maxRequestBytes?: number; - maxResponseBytes?: number; - retryPolicy?: RetryPolicy; - hedgingPolicy?: HedgingPolicy; -} -export interface RetryThrottling { - maxTokens: number; - tokenRatio: number; -} -export interface ServiceConfig { - loadBalancingPolicy?: string; - loadBalancingConfig: LoadBalancingConfig[]; - methodConfig: MethodConfig[]; - retryThrottling?: RetryThrottling; -} -export interface ServiceConfigCanaryConfig { - clientLanguage?: string[]; - percentage?: number; - clientHostname?: string[]; - serviceConfig: ServiceConfig; -} -export declare function validateRetryThrottling(obj: any): RetryThrottling; -export declare function validateServiceConfig(obj: any): ServiceConfig; -/** - * Find the "grpc_config" record among the TXT records, parse its value as JSON, validate its contents, - * and select a service config with selection fields that all match this client. Most of these steps - * can fail with an error; the caller must handle any errors thrown this way. - * @param txtRecord The TXT record array that is output from a successful call to dns.resolveTxt - * @param percentage A number chosen from the range [0, 100) that is used to select which config to use - * @return The service configuration to use, given the percentage value, or null if the service config - * data has a valid format but none of the options match the current client. - */ -export declare function extractAndSelectServiceConfig(txtRecord: string[][], percentage: number): ServiceConfig | null; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.js deleted file mode 100644 index 165585c..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.js +++ /dev/null @@ -1,417 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extractAndSelectServiceConfig = exports.validateServiceConfig = exports.validateRetryThrottling = void 0; -/* This file implements gRFC A2 and the service config spec: - * https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md - * https://github.com/grpc/grpc/blob/master/doc/service_config.md. Each - * function here takes an object with unknown structure and returns its - * specific object type if the input has the right structure, and throws an - * error otherwise. */ -/* The any type is purposely used here. All functions validate their input at - * runtime */ -/* eslint-disable @typescript-eslint/no-explicit-any */ -const os = require("os"); -const constants_1 = require("./constants"); -const load_balancer_1 = require("./load-balancer"); -/** - * Recognizes a number with up to 9 digits after the decimal point, followed by - * an "s", representing a number of seconds. - */ -const DURATION_REGEX = /^\d+(\.\d{1,9})?s$/; -/** - * Client language name used for determining whether this client matches a - * `ServiceConfigCanaryConfig`'s `clientLanguage` list. - */ -const CLIENT_LANGUAGE_STRING = 'node'; -function validateName(obj) { - // In this context, and unset field and '' are considered the same - if ('service' in obj && obj.service !== '') { - if (typeof obj.service !== 'string') { - throw new Error(`Invalid method config name: invalid service: expected type string, got ${typeof obj.service}`); - } - if ('method' in obj && obj.method !== '') { - if (typeof obj.method !== 'string') { - throw new Error(`Invalid method config name: invalid method: expected type string, got ${typeof obj.service}`); - } - return { - service: obj.service, - method: obj.method, - }; - } - else { - return { - service: obj.service, - }; - } - } - else { - if ('method' in obj && obj.method !== undefined) { - throw new Error(`Invalid method config name: method set with empty or unset service`); - } - return {}; - } -} -function validateRetryPolicy(obj) { - if (!('maxAttempts' in obj) || - !Number.isInteger(obj.maxAttempts) || - obj.maxAttempts < 2) { - throw new Error('Invalid method config retry policy: maxAttempts must be an integer at least 2'); - } - if (!('initialBackoff' in obj) || - typeof obj.initialBackoff !== 'string' || - !DURATION_REGEX.test(obj.initialBackoff)) { - throw new Error('Invalid method config retry policy: initialBackoff must be a string consisting of a positive integer followed by s'); - } - if (!('maxBackoff' in obj) || - typeof obj.maxBackoff !== 'string' || - !DURATION_REGEX.test(obj.maxBackoff)) { - throw new Error('Invalid method config retry policy: maxBackoff must be a string consisting of a positive integer followed by s'); - } - if (!('backoffMultiplier' in obj) || - typeof obj.backoffMultiplier !== 'number' || - obj.backoffMultiplier <= 0) { - throw new Error('Invalid method config retry policy: backoffMultiplier must be a number greater than 0'); - } - if (!('retryableStatusCodes' in obj && Array.isArray(obj.retryableStatusCodes))) { - throw new Error('Invalid method config retry policy: retryableStatusCodes is required'); - } - if (obj.retryableStatusCodes.length === 0) { - throw new Error('Invalid method config retry policy: retryableStatusCodes must be non-empty'); - } - for (const value of obj.retryableStatusCodes) { - if (typeof value === 'number') { - if (!Object.values(constants_1.Status).includes(value)) { - throw new Error('Invalid method config retry policy: retryableStatusCodes value not in status code range'); - } - } - else if (typeof value === 'string') { - if (!Object.values(constants_1.Status).includes(value.toUpperCase())) { - throw new Error('Invalid method config retry policy: retryableStatusCodes value not a status code name'); - } - } - else { - throw new Error('Invalid method config retry policy: retryableStatusCodes value must be a string or number'); - } - } - return { - maxAttempts: obj.maxAttempts, - initialBackoff: obj.initialBackoff, - maxBackoff: obj.maxBackoff, - backoffMultiplier: obj.backoffMultiplier, - retryableStatusCodes: obj.retryableStatusCodes, - }; -} -function validateHedgingPolicy(obj) { - if (!('maxAttempts' in obj) || - !Number.isInteger(obj.maxAttempts) || - obj.maxAttempts < 2) { - throw new Error('Invalid method config hedging policy: maxAttempts must be an integer at least 2'); - } - if ('hedgingDelay' in obj && - (typeof obj.hedgingDelay !== 'string' || - !DURATION_REGEX.test(obj.hedgingDelay))) { - throw new Error('Invalid method config hedging policy: hedgingDelay must be a string consisting of a positive integer followed by s'); - } - if ('nonFatalStatusCodes' in obj && Array.isArray(obj.nonFatalStatusCodes)) { - for (const value of obj.nonFatalStatusCodes) { - if (typeof value === 'number') { - if (!Object.values(constants_1.Status).includes(value)) { - throw new Error('Invlid method config hedging policy: nonFatalStatusCodes value not in status code range'); - } - } - else if (typeof value === 'string') { - if (!Object.values(constants_1.Status).includes(value.toUpperCase())) { - throw new Error('Invlid method config hedging policy: nonFatalStatusCodes value not a status code name'); - } - } - else { - throw new Error('Invlid method config hedging policy: nonFatalStatusCodes value must be a string or number'); - } - } - } - const result = { - maxAttempts: obj.maxAttempts, - }; - if (obj.hedgingDelay) { - result.hedgingDelay = obj.hedgingDelay; - } - if (obj.nonFatalStatusCodes) { - result.nonFatalStatusCodes = obj.nonFatalStatusCodes; - } - return result; -} -function validateMethodConfig(obj) { - var _a; - const result = { - name: [], - }; - if (!('name' in obj) || !Array.isArray(obj.name)) { - throw new Error('Invalid method config: invalid name array'); - } - for (const name of obj.name) { - result.name.push(validateName(name)); - } - if ('waitForReady' in obj) { - if (typeof obj.waitForReady !== 'boolean') { - throw new Error('Invalid method config: invalid waitForReady'); - } - result.waitForReady = obj.waitForReady; - } - if ('timeout' in obj) { - if (typeof obj.timeout === 'object') { - if (!('seconds' in obj.timeout) || - !(typeof obj.timeout.seconds === 'number')) { - throw new Error('Invalid method config: invalid timeout.seconds'); - } - if (!('nanos' in obj.timeout) || - !(typeof obj.timeout.nanos === 'number')) { - throw new Error('Invalid method config: invalid timeout.nanos'); - } - result.timeout = obj.timeout; - } - else if (typeof obj.timeout === 'string' && - DURATION_REGEX.test(obj.timeout)) { - const timeoutParts = obj.timeout - .substring(0, obj.timeout.length - 1) - .split('.'); - result.timeout = { - seconds: timeoutParts[0] | 0, - nanos: ((_a = timeoutParts[1]) !== null && _a !== void 0 ? _a : 0) | 0, - }; - } - else { - throw new Error('Invalid method config: invalid timeout'); - } - } - if ('maxRequestBytes' in obj) { - if (typeof obj.maxRequestBytes !== 'number') { - throw new Error('Invalid method config: invalid maxRequestBytes'); - } - result.maxRequestBytes = obj.maxRequestBytes; - } - if ('maxResponseBytes' in obj) { - if (typeof obj.maxResponseBytes !== 'number') { - throw new Error('Invalid method config: invalid maxRequestBytes'); - } - result.maxResponseBytes = obj.maxResponseBytes; - } - if ('retryPolicy' in obj) { - if ('hedgingPolicy' in obj) { - throw new Error('Invalid method config: retryPolicy and hedgingPolicy cannot both be specified'); - } - else { - result.retryPolicy = validateRetryPolicy(obj.retryPolicy); - } - } - else if ('hedgingPolicy' in obj) { - result.hedgingPolicy = validateHedgingPolicy(obj.hedgingPolicy); - } - return result; -} -function validateRetryThrottling(obj) { - if (!('maxTokens' in obj) || - typeof obj.maxTokens !== 'number' || - obj.maxTokens <= 0 || - obj.maxTokens > 1000) { - throw new Error('Invalid retryThrottling: maxTokens must be a number in (0, 1000]'); - } - if (!('tokenRatio' in obj) || - typeof obj.tokenRatio !== 'number' || - obj.tokenRatio <= 0) { - throw new Error('Invalid retryThrottling: tokenRatio must be a number greater than 0'); - } - return { - maxTokens: +obj.maxTokens.toFixed(3), - tokenRatio: +obj.tokenRatio.toFixed(3), - }; -} -exports.validateRetryThrottling = validateRetryThrottling; -function validateServiceConfig(obj) { - const result = { - loadBalancingConfig: [], - methodConfig: [], - }; - if ('loadBalancingPolicy' in obj) { - if (typeof obj.loadBalancingPolicy === 'string') { - result.loadBalancingPolicy = obj.loadBalancingPolicy; - } - else { - throw new Error('Invalid service config: invalid loadBalancingPolicy'); - } - } - if ('loadBalancingConfig' in obj) { - if (Array.isArray(obj.loadBalancingConfig)) { - for (const config of obj.loadBalancingConfig) { - result.loadBalancingConfig.push((0, load_balancer_1.validateLoadBalancingConfig)(config)); - } - } - else { - throw new Error('Invalid service config: invalid loadBalancingConfig'); - } - } - if ('methodConfig' in obj) { - if (Array.isArray(obj.methodConfig)) { - for (const methodConfig of obj.methodConfig) { - result.methodConfig.push(validateMethodConfig(methodConfig)); - } - } - } - if ('retryThrottling' in obj) { - result.retryThrottling = validateRetryThrottling(obj.retryThrottling); - } - // Validate method name uniqueness - const seenMethodNames = []; - for (const methodConfig of result.methodConfig) { - for (const name of methodConfig.name) { - for (const seenName of seenMethodNames) { - if (name.service === seenName.service && - name.method === seenName.method) { - throw new Error(`Invalid service config: duplicate name ${name.service}/${name.method}`); - } - } - seenMethodNames.push(name); - } - } - return result; -} -exports.validateServiceConfig = validateServiceConfig; -function validateCanaryConfig(obj) { - if (!('serviceConfig' in obj)) { - throw new Error('Invalid service config choice: missing service config'); - } - const result = { - serviceConfig: validateServiceConfig(obj.serviceConfig), - }; - if ('clientLanguage' in obj) { - if (Array.isArray(obj.clientLanguage)) { - result.clientLanguage = []; - for (const lang of obj.clientLanguage) { - if (typeof lang === 'string') { - result.clientLanguage.push(lang); - } - else { - throw new Error('Invalid service config choice: invalid clientLanguage'); - } - } - } - else { - throw new Error('Invalid service config choice: invalid clientLanguage'); - } - } - if ('clientHostname' in obj) { - if (Array.isArray(obj.clientHostname)) { - result.clientHostname = []; - for (const lang of obj.clientHostname) { - if (typeof lang === 'string') { - result.clientHostname.push(lang); - } - else { - throw new Error('Invalid service config choice: invalid clientHostname'); - } - } - } - else { - throw new Error('Invalid service config choice: invalid clientHostname'); - } - } - if ('percentage' in obj) { - if (typeof obj.percentage === 'number' && - 0 <= obj.percentage && - obj.percentage <= 100) { - result.percentage = obj.percentage; - } - else { - throw new Error('Invalid service config choice: invalid percentage'); - } - } - // Validate that no unexpected fields are present - const allowedFields = [ - 'clientLanguage', - 'percentage', - 'clientHostname', - 'serviceConfig', - ]; - for (const field in obj) { - if (!allowedFields.includes(field)) { - throw new Error(`Invalid service config choice: unexpected field ${field}`); - } - } - return result; -} -function validateAndSelectCanaryConfig(obj, percentage) { - if (!Array.isArray(obj)) { - throw new Error('Invalid service config list'); - } - for (const config of obj) { - const validatedConfig = validateCanaryConfig(config); - /* For each field, we check if it is present, then only discard the - * config if the field value does not match the current client */ - if (typeof validatedConfig.percentage === 'number' && - percentage > validatedConfig.percentage) { - continue; - } - if (Array.isArray(validatedConfig.clientHostname)) { - let hostnameMatched = false; - for (const hostname of validatedConfig.clientHostname) { - if (hostname === os.hostname()) { - hostnameMatched = true; - } - } - if (!hostnameMatched) { - continue; - } - } - if (Array.isArray(validatedConfig.clientLanguage)) { - let languageMatched = false; - for (const language of validatedConfig.clientLanguage) { - if (language === CLIENT_LANGUAGE_STRING) { - languageMatched = true; - } - } - if (!languageMatched) { - continue; - } - } - return validatedConfig.serviceConfig; - } - throw new Error('No matching service config found'); -} -/** - * Find the "grpc_config" record among the TXT records, parse its value as JSON, validate its contents, - * and select a service config with selection fields that all match this client. Most of these steps - * can fail with an error; the caller must handle any errors thrown this way. - * @param txtRecord The TXT record array that is output from a successful call to dns.resolveTxt - * @param percentage A number chosen from the range [0, 100) that is used to select which config to use - * @return The service configuration to use, given the percentage value, or null if the service config - * data has a valid format but none of the options match the current client. - */ -function extractAndSelectServiceConfig(txtRecord, percentage) { - for (const record of txtRecord) { - if (record.length > 0 && record[0].startsWith('grpc_config=')) { - /* Treat the list of strings in this record as a single string and remove - * "grpc_config=" from the beginning. The rest should be a JSON string */ - const recordString = record.join('').substring('grpc_config='.length); - const recordJson = JSON.parse(recordString); - return validateAndSelectCanaryConfig(recordJson, percentage); - } - } - return null; -} -exports.extractAndSelectServiceConfig = extractAndSelectServiceConfig; -//# sourceMappingURL=service-config.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.js.map deleted file mode 100644 index 803e488..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/service-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"service-config.js","sourceRoot":"","sources":["../../src/service-config.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH;;;;;sBAKsB;AAEtB;aACa;AACb,uDAAuD;AAEvD,yBAAyB;AACzB,2CAAqC;AAErC,mDAGyB;AAkDzB;;;GAGG;AACH,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAE5C;;;GAGG;AACH,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAEtC,S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BACrB,SAAS;YACX,CAAC;QACH,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,CAAC;YAClD,IAAI,eAAe,GAAG,KAAK,CAAC;YAC5B,KAAK,MAAM,QAAQ,IAAI,eAAe,CAAC,cAAc,EAAE,CAAC;gBACtD,IAAI,QAAQ,KAAK,sBAAsB,EAAE,CAAC;oBACxC,eAAe,GAAG,IAAI,CAAC;gBACzB,CAAC;YACH,CAAC;YACD,IAAI,CAAC,eAAe,EAAE,CAAC;gBACrB,SAAS;YACX,CAAC;QACH,CAAC;QACD,OAAO,eAAe,CAAC,aAAa,CAAC;IACvC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;AACtD,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,6BAA6B,CAC3C,SAAqB,EACrB,UAAkB;IAElB,KAAK,MAAM,MAAM,IAAI,SAAS,EAAE,CAAC;QAC/B,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YAC9D;qFACyE;YACzE,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YACtE,MAAM,UAAU,GAAQ,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;YACjD,OAAO,6BAA6B,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAdD,sEAcC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.d.ts deleted file mode 100644 index 5628226..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { StatusObject } from './call-interface'; -import { Status } from './constants'; -import { Metadata } from './metadata'; -/** - * A builder for gRPC status objects. - */ -export declare class StatusBuilder { - private code; - private details; - private metadata; - constructor(); - /** - * Adds a status code to the builder. - */ - withCode(code: Status): this; - /** - * Adds details to the builder. - */ - withDetails(details: string): this; - /** - * Adds metadata to the builder. - */ - withMetadata(metadata: Metadata): this; - /** - * Builds the status object. - */ - build(): Partial<StatusObject>; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.js deleted file mode 100644 index 7426e54..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StatusBuilder = void 0; -/** - * A builder for gRPC status objects. - */ -class StatusBuilder { - constructor() { - this.code = null; - this.details = null; - this.metadata = null; - } - /** - * Adds a status code to the builder. - */ - withCode(code) { - this.code = code; - return this; - } - /** - * Adds details to the builder. - */ - withDetails(details) { - this.details = details; - return this; - } - /** - * Adds metadata to the builder. - */ - withMetadata(metadata) { - this.metadata = metadata; - return this; - } - /** - * Builds the status object. - */ - build() { - const status = {}; - if (this.code !== null) { - status.code = this.code; - } - if (this.details !== null) { - status.details = this.details; - } - if (this.metadata !== null) { - status.metadata = this.metadata; - } - return status; - } -} -exports.StatusBuilder = StatusBuilder; -//# sourceMappingURL=status-builder.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.js.map deleted file mode 100644 index 33277b2..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/status-builder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"status-builder.js","sourceRoot":"","sources":["../../src/status-builder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAMH;;GAEG;AACH,MAAa,aAAa;IAKxB;QACE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,IAAY;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,OAAe;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,QAAkB;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,KAAK;QACH,MAAM,MAAM,GAA0B,EAAE,CAAC;QAEzC,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAC1B,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YAC1B,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAChC,CAAC;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;YAC3B,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAClC,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAvDD,sCAuDC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.d.ts deleted file mode 100644 index 28fef54..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// <reference types="node" /> -export declare class StreamDecoder { - private maxReadMessageLength; - private readState; - private readCompressFlag; - private readPartialSize; - private readSizeRemaining; - private readMessageSize; - private readPartialMessage; - private readMessageRemaining; - constructor(maxReadMessageLength: number); - write(data: Buffer): Buffer[]; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.js deleted file mode 100644 index b3857c0..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StreamDecoder = void 0; -var ReadState; -(function (ReadState) { - ReadState[ReadState["NO_DATA"] = 0] = "NO_DATA"; - ReadState[ReadState["READING_SIZE"] = 1] = "READING_SIZE"; - ReadState[ReadState["READING_MESSAGE"] = 2] = "READING_MESSAGE"; -})(ReadState || (ReadState = {})); -class StreamDecoder { - constructor(maxReadMessageLength) { - this.maxReadMessageLength = maxReadMessageLength; - this.readState = ReadState.NO_DATA; - this.readCompressFlag = Buffer.alloc(1); - this.readPartialSize = Buffer.alloc(4); - this.readSizeRemaining = 4; - this.readMessageSize = 0; - this.readPartialMessage = []; - this.readMessageRemaining = 0; - } - write(data) { - let readHead = 0; - let toRead; - const result = []; - while (readHead < data.length) { - switch (this.readState) { - case ReadState.NO_DATA: - this.readCompressFlag = data.slice(readHead, readHead + 1); - readHead += 1; - this.readState = ReadState.READING_SIZE; - this.readPartialSize.fill(0); - this.readSizeRemaining = 4; - this.readMessageSize = 0; - this.readMessageRemaining = 0; - this.readPartialMessage = []; - break; - case ReadState.READING_SIZE: - toRead = Math.min(data.length - readHead, this.readSizeRemaining); - data.copy(this.readPartialSize, 4 - this.readSizeRemaining, readHead, readHead + toRead); - this.readSizeRemaining -= toRead; - readHead += toRead; - // readSizeRemaining >=0 here - if (this.readSizeRemaining === 0) { - this.readMessageSize = this.readPartialSize.readUInt32BE(0); - if (this.maxReadMessageLength !== -1 && this.readMessageSize > this.maxReadMessageLength) { - throw new Error(`Received message larger than max (${this.readMessageSize} vs ${this.maxReadMessageLength})`); - } - this.readMessageRemaining = this.readMessageSize; - if (this.readMessageRemaining > 0) { - this.readState = ReadState.READING_MESSAGE; - } - else { - const message = Buffer.concat([this.readCompressFlag, this.readPartialSize], 5); - this.readState = ReadState.NO_DATA; - result.push(message); - } - } - break; - case ReadState.READING_MESSAGE: - toRead = Math.min(data.length - readHead, this.readMessageRemaining); - this.readPartialMessage.push(data.slice(readHead, readHead + toRead)); - this.readMessageRemaining -= toRead; - readHead += toRead; - // readMessageRemaining >=0 here - if (this.readMessageRemaining === 0) { - // At this point, we have read a full message - const framedMessageBuffers = [ - this.readCompressFlag, - this.readPartialSize, - ].concat(this.readPartialMessage); - const framedMessage = Buffer.concat(framedMessageBuffers, this.readMessageSize + 5); - this.readState = ReadState.NO_DATA; - result.push(framedMessage); - } - break; - default: - throw new Error('Unexpected read state'); - } - } - return result; - } -} -exports.StreamDecoder = StreamDecoder; -//# sourceMappingURL=stream-decoder.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.js.map deleted file mode 100644 index fc6498a..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/stream-decoder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stream-decoder.js","sourceRoot":"","sources":["../../src/stream-decoder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,IAAK,SAIJ;AAJD,WAAK,SAAS;IACZ,+CAAO,CAAA;IACP,yDAAY,CAAA;IACZ,+DAAe,CAAA;AACjB,CAAC,EAJI,SAAS,KAAT,SAAS,QAIb;AAED,MAAa,aAAa;IASxB,YAAoB,oBAA4B;QAA5B,yBAAoB,GAApB,oBAAoB,CAAQ;QARxC,cAAS,GAAc,SAAS,CAAC,OAAO,CAAC;QACzC,qBAAgB,GAAW,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3C,oBAAe,GAAW,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1C,sBAAiB,GAAG,CAAC,CAAC;QACtB,oBAAe,GAAG,CAAC,CAAC;QACpB,uBAAkB,GAAa,EAAE,CAAC;QAClC,yBAAoB,GAAG,CAAC,CAAC;IAEkB,CAAC;IAEpD,KAAK,CAAC,IAAY;QAChB,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,IAAI,MAAc,CAAC;QACnB,MAAM,MAAM,GAAa,EAAE,CAAC;QAE5B,OAAO,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC9B,QAAQ,IAAI,CAAC,SAAS,EAAE,CAAC;gBACvB,KAAK,SAAS,CAAC,OAAO;oBACpB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC;oBAC3D,QAAQ,IAAI,CAAC,CAAC;oBACd,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC;oBACxC,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/src/subchannel-address.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts deleted file mode 100644 index 8e94e10..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export interface TcpSubchannelAddress { - port: number; - host: string; -} -export interface IpcSubchannelAddress { - path: string; -} -/** - * This represents a single backend address to connect to. This interface is a - * subset of net.SocketConnectOpts, i.e. the options described at - * https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener. - * Those are in turn a subset of the options that can be passed to http2.connect. - */ -export type SubchannelAddress = TcpSubchannelAddress | IpcSubchannelAddress; -export declare function isTcpSubchannelAddress(address: SubchannelAddress): address is TcpSubchannelAddress; -export declare function subchannelAddressEqual(address1?: SubchannelAddress, address2?: SubchannelAddress): boolean; -export declare function subchannelAddressToString(address: SubchannelAddress): string; -export declare function stringToSubchannelAddress(addressString: string, port?: number): SubchannelAddress; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.js deleted file mode 100644 index 4cf660d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.stringToSubchannelAddress = exports.subchannelAddressToString = exports.subchannelAddressEqual = exports.isTcpSubchannelAddress = void 0; -const net_1 = require("net"); -function isTcpSubchannelAddress(address) { - return 'port' in address; -} -exports.isTcpSubchannelAddress = isTcpSubchannelAddress; -function subchannelAddressEqual(address1, address2) { - if (!address1 && !address2) { - return true; - } - if (!address1 || !address2) { - return false; - } - if (isTcpSubchannelAddress(address1)) { - return (isTcpSubchannelAddress(address2) && - address1.host === address2.host && - address1.port === address2.port); - } - else { - return !isTcpSubchannelAddress(address2) && address1.path === address2.path; - } -} -exports.subchannelAddressEqual = subchannelAddressEqual; -function subchannelAddressToString(address) { - if (isTcpSubchannelAddress(address)) { - return address.host + ':' + address.port; - } - else { - return address.path; - } -} -exports.subchannelAddressToString = subchannelAddressToString; -const DEFAULT_PORT = 443; -function stringToSubchannelAddress(addressString, port) { - if ((0, net_1.isIP)(addressString)) { - return { - host: addressString, - port: port !== null && port !== void 0 ? port : DEFAULT_PORT, - }; - } - else { - return { - path: addressString, - }; - } -} -exports.stringToSubchannelAddress = stringToSubchannelAddress; -//# sourceMappingURL=subchannel-address.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.js.map deleted file mode 100644 index 5ca14aa..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-address.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subchannel-address.js","sourceRoot":"","sources":["../../src/subchannel-address.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,6BAA2B;AAmB3B,SAAgB,sBAAsB,CACpC,OAA0B;IAE1B,OAAO,MAAM,IAAI,OAAO,CAAC;AAC3B,CAAC;AAJD,wDAIC;AAED,SAAgB,sBAAsB,CACpC,QAA4B,EAC5B,QAA4B;IAE5B,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC3B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,sBAAsB,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrC,OAAO,CACL,sBAAsB,CAAC,QAAQ,CAAC;YAChC,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI;YAC/B,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAChC,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC;IAC9E,CAAC;AACH,CAAC;AAnBD,wDAmBC;AAED,SAAgB,yBAAyB,CAAC,OAA0B;IAClE,IAAI,sBAAsB,CAAC,OAAO,CAAC,EAAE,CAAC;QACpC,OAAO,OAAO,CAAC,IAAI,GAAG,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAC3C,CAAC;SAAM,CAAC;QACN,OAAO,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;AACH,CAAC;AAND,8DAMC;AAED,MAAM,YAAY,GAAG,GAAG,CAAC;AAEzB,SAAgB,yBAAyB,CACvC,aAAqB,EACrB,IAAa;IAEb,IAAI,IAAA,UAAI,EAAC,aAAa,CAAC,EAAE,CAAC;QACxB,OAAO;YACL,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,YAAY;SAC3B,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,IAAI,EAAE,aAAa;SACpB,CAAC;IACJ,CAAC;AACH,CAAC;AAdD,8DAcC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.d.ts deleted file mode 100644 index 1a6bb17..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -/// <reference types="node" /> -/// <reference types="node" /> -import * as http2 from 'http2'; -import { Status } from './constants'; -import { InterceptingListener, MessageContext, StatusObject } from './call-interface'; -import { CallEventTracker, Transport } from './transport'; -export interface SubchannelCall { - cancelWithStatus(status: Status, details: string): void; - getPeer(): string; - sendMessageWithContext(context: MessageContext, message: Buffer): void; - startRead(): void; - halfClose(): void; - getCallNumber(): number; -} -export interface StatusObjectWithRstCode extends StatusObject { - rstCode?: number; -} -export interface SubchannelCallInterceptingListener extends InterceptingListener { - onReceiveStatus(status: StatusObjectWithRstCode): void; -} -export declare class Http2SubchannelCall implements SubchannelCall { - private readonly http2Stream; - private readonly callEventTracker; - private readonly listener; - private readonly transport; - private readonly callId; - private decoder; - private isReadFilterPending; - private isPushPending; - private canPush; - /** - * Indicates that an 'end' event has come from the http2 stream, so there - * will be no more data events. - */ - private readsClosed; - private statusOutput; - private unpushedReadMessages; - private mappedStatusCode; - private finalStatus; - private internalError; - constructor(http2Stream: http2.ClientHttp2Stream, callEventTracker: CallEventTracker, listener: SubchannelCallInterceptingListener, transport: Transport, callId: number); - onDisconnect(): void; - private outputStatus; - private trace; - /** - * On first call, emits a 'status' event with the given StatusObject. - * Subsequent calls are no-ops. - * @param status The status of the call. - */ - private endCall; - private maybeOutputStatus; - private push; - private tryPush; - private handleTrailers; - private destroyHttp2Stream; - cancelWithStatus(status: Status, details: string): void; - getStatus(): StatusObject | null; - getPeer(): string; - getCallNumber(): number; - startRead(): void; - sendMessageWithContext(context: MessageContext, message: Buffer): void; - halfClose(): void; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.js deleted file mode 100644 index d19e0c4..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +++ /dev/null @@ -1,470 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Http2SubchannelCall = void 0; -const http2 = require("http2"); -const os = require("os"); -const constants_1 = require("./constants"); -const metadata_1 = require("./metadata"); -const stream_decoder_1 = require("./stream-decoder"); -const logging = require("./logging"); -const constants_2 = require("./constants"); -const TRACER_NAME = 'subchannel_call'; -/** - * Should do approximately the same thing as util.getSystemErrorName but the - * TypeScript types don't have that function for some reason so I just made my - * own. - * @param errno - */ -function getSystemErrorName(errno) { - for (const [name, num] of Object.entries(os.constants.errno)) { - if (num === errno) { - return name; - } - } - return 'Unknown system error ' + errno; -} -class Http2SubchannelCall { - constructor(http2Stream, callEventTracker, listener, transport, callId) { - var _a; - this.http2Stream = http2Stream; - this.callEventTracker = callEventTracker; - this.listener = listener; - this.transport = transport; - this.callId = callId; - this.isReadFilterPending = false; - this.isPushPending = false; - this.canPush = false; - /** - * Indicates that an 'end' event has come from the http2 stream, so there - * will be no more data events. - */ - this.readsClosed = false; - this.statusOutput = false; - this.unpushedReadMessages = []; - // Status code mapped from :status. To be used if grpc-status is not received - this.mappedStatusCode = constants_1.Status.UNKNOWN; - // This is populated (non-null) if and only if the call has ended - this.finalStatus = null; - this.internalError = null; - const maxReceiveMessageLength = (_a = transport.getOptions()['grpc.max_receive_message_length']) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; - this.decoder = new stream_decoder_1.StreamDecoder(maxReceiveMessageLength); - http2Stream.on('response', (headers, flags) => { - let headersString = ''; - for (const header of Object.keys(headers)) { - headersString += '\t\t' + header + ': ' + headers[header] + '\n'; - } - this.trace('Received server headers:\n' + headersString); - switch (headers[':status']) { - // TODO(murgatroid99): handle 100 and 101 - case 400: - this.mappedStatusCode = constants_1.Status.INTERNAL; - break; - case 401: - this.mappedStatusCode = constants_1.Status.UNAUTHENTICATED; - break; - case 403: - this.mappedStatusCode = constants_1.Status.PERMISSION_DENIED; - break; - case 404: - this.mappedStatusCode = constants_1.Status.UNIMPLEMENTED; - break; - case 429: - case 502: - case 503: - case 504: - this.mappedStatusCode = constants_1.Status.UNAVAILABLE; - break; - default: - this.mappedStatusCode = constants_1.Status.UNKNOWN; - } - if (flags & http2.constants.NGHTTP2_FLAG_END_STREAM) { - this.handleTrailers(headers); - } - else { - let metadata; - try { - metadata = metadata_1.Metadata.fromHttp2Headers(headers); - } - catch (error) { - this.endCall({ - code: constants_1.Status.UNKNOWN, - details: error.message, - metadata: new metadata_1.Metadata(), - }); - return; - } - this.listener.onReceiveMetadata(metadata); - } - }); - http2Stream.on('trailers', (headers) => { - this.handleTrailers(headers); - }); - http2Stream.on('data', (data) => { - /* If the status has already been output, allow the http2 stream to - * drain without processing the data. */ - if (this.statusOutput) { - return; - } - this.trace('receive HTTP/2 data frame of length ' + data.length); - let messages; - try { - messages = this.decoder.write(data); - } - catch (e) { - this.cancelWithStatus(constants_1.Status.RESOURCE_EXHAUSTED, e.message); - return; - } - for (const message of messages) { - this.trace('parsed message of length ' + message.length); - this.callEventTracker.addMessageReceived(); - this.tryPush(message); - } - }); - http2Stream.on('end', () => { - this.readsClosed = true; - this.maybeOutputStatus(); - }); - http2Stream.on('close', () => { - /* Use process.next tick to ensure that this code happens after any - * "error" event that may be emitted at about the same time, so that - * we can bubble up the error message from that event. */ - process.nextTick(() => { - var _a; - this.trace('HTTP/2 stream closed with code ' + http2Stream.rstCode); - /* If we have a final status with an OK status code, that means that - * we have received all of the messages and we have processed the - * trailers and the call completed successfully, so it doesn't matter - * how the stream ends after that */ - if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) { - return; - } - let code; - let details = ''; - switch (http2Stream.rstCode) { - case http2.constants.NGHTTP2_NO_ERROR: - /* If we get a NO_ERROR code and we already have a status, the - * stream completed properly and we just haven't fully processed - * it yet */ - if (this.finalStatus !== null) { - return; - } - code = constants_1.Status.INTERNAL; - details = `Received RST_STREAM with code ${http2Stream.rstCode}`; - break; - case http2.constants.NGHTTP2_REFUSED_STREAM: - code = constants_1.Status.UNAVAILABLE; - details = 'Stream refused by server'; - break; - case http2.constants.NGHTTP2_CANCEL: - code = constants_1.Status.CANCELLED; - details = 'Call cancelled'; - break; - case http2.constants.NGHTTP2_ENHANCE_YOUR_CALM: - code = constants_1.Status.RESOURCE_EXHAUSTED; - details = 'Bandwidth exhausted or memory limit exceeded'; - break; - case http2.constants.NGHTTP2_INADEQUATE_SECURITY: - code = constants_1.Status.PERMISSION_DENIED; - details = 'Protocol not secure enough'; - break; - case http2.constants.NGHTTP2_INTERNAL_ERROR: - code = constants_1.Status.INTERNAL; - if (this.internalError === null) { - /* This error code was previously handled in the default case, and - * there are several instances of it online, so I wanted to - * preserve the original error message so that people find existing - * information in searches, but also include the more recognizable - * "Internal server error" message. */ - details = `Received RST_STREAM with code ${http2Stream.rstCode} (Internal server error)`; - } - else { - if (this.internalError.code === 'ECONNRESET' || - this.internalError.code === 'ETIMEDOUT') { - code = constants_1.Status.UNAVAILABLE; - details = this.internalError.message; - } - else { - /* The "Received RST_STREAM with code ..." error is preserved - * here for continuity with errors reported online, but the - * error message at the end will probably be more relevant in - * most cases. */ - details = `Received RST_STREAM with code ${http2Stream.rstCode} triggered by internal client error: ${this.internalError.message}`; - } - } - break; - default: - code = constants_1.Status.INTERNAL; - details = `Received RST_STREAM with code ${http2Stream.rstCode}`; - } - // This is a no-op if trailers were received at all. - // This is OK, because status codes emitted here correspond to more - // catastrophic issues that prevent us from receiving trailers in the - // first place. - this.endCall({ - code, - details, - metadata: new metadata_1.Metadata(), - rstCode: http2Stream.rstCode, - }); - }); - }); - http2Stream.on('error', (err) => { - /* We need an error handler here to stop "Uncaught Error" exceptions - * from bubbling up. However, errors here should all correspond to - * "close" events, where we will handle the error more granularly */ - /* Specifically looking for stream errors that were *not* constructed - * from a RST_STREAM response here: - * https://github.com/nodejs/node/blob/8b8620d580314050175983402dfddf2674e8e22a/lib/internal/http2/core.js#L2267 - */ - if (err.code !== 'ERR_HTTP2_STREAM_ERROR') { - this.trace('Node error event: message=' + - err.message + - ' code=' + - err.code + - ' errno=' + - getSystemErrorName(err.errno) + - ' syscall=' + - err.syscall); - this.internalError = err; - } - this.callEventTracker.onStreamEnd(false); - }); - } - onDisconnect() { - this.endCall({ - code: constants_1.Status.UNAVAILABLE, - details: 'Connection dropped', - metadata: new metadata_1.Metadata(), - }); - } - outputStatus() { - /* Precondition: this.finalStatus !== null */ - if (!this.statusOutput) { - this.statusOutput = true; - this.trace('ended with status: code=' + - this.finalStatus.code + - ' details="' + - this.finalStatus.details + - '"'); - this.callEventTracker.onCallEnd(this.finalStatus); - /* We delay the actual action of bubbling up the status to insulate the - * cleanup code in this class from any errors that may be thrown in the - * upper layers as a result of bubbling up the status. In particular, - * if the status is not OK, the "error" event may be emitted - * synchronously at the top level, which will result in a thrown error if - * the user does not handle that event. */ - process.nextTick(() => { - this.listener.onReceiveStatus(this.finalStatus); - }); - /* Leave the http2 stream in flowing state to drain incoming messages, to - * ensure that the stream closure completes. The call stream already does - * not push more messages after the status is output, so the messages go - * nowhere either way. */ - this.http2Stream.resume(); - } - } - trace(text) { - logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callId + '] ' + text); - } - /** - * On first call, emits a 'status' event with the given StatusObject. - * Subsequent calls are no-ops. - * @param status The status of the call. - */ - endCall(status) { - /* If the status is OK and a new status comes in (e.g. from a - * deserialization failure), that new status takes priority */ - if (this.finalStatus === null || this.finalStatus.code === constants_1.Status.OK) { - this.finalStatus = status; - this.maybeOutputStatus(); - } - this.destroyHttp2Stream(); - } - maybeOutputStatus() { - if (this.finalStatus !== null) { - /* The combination check of readsClosed and that the two message buffer - * arrays are empty checks that there all incoming data has been fully - * processed */ - if (this.finalStatus.code !== constants_1.Status.OK || - (this.readsClosed && - this.unpushedReadMessages.length === 0 && - !this.isReadFilterPending && - !this.isPushPending)) { - this.outputStatus(); - } - } - } - push(message) { - this.trace('pushing to reader message of length ' + - (message instanceof Buffer ? message.length : null)); - this.canPush = false; - this.isPushPending = true; - process.nextTick(() => { - this.isPushPending = false; - /* If we have already output the status any later messages should be - * ignored, and can cause out-of-order operation errors higher up in the - * stack. Checking as late as possible here to avoid any race conditions. - */ - if (this.statusOutput) { - return; - } - this.listener.onReceiveMessage(message); - this.maybeOutputStatus(); - }); - } - tryPush(messageBytes) { - if (this.canPush) { - this.http2Stream.pause(); - this.push(messageBytes); - } - else { - this.trace('unpushedReadMessages.push message of length ' + messageBytes.length); - this.unpushedReadMessages.push(messageBytes); - } - } - handleTrailers(headers) { - this.callEventTracker.onStreamEnd(true); - let headersString = ''; - for (const header of Object.keys(headers)) { - headersString += '\t\t' + header + ': ' + headers[header] + '\n'; - } - this.trace('Received server trailers:\n' + headersString); - let metadata; - try { - metadata = metadata_1.Metadata.fromHttp2Headers(headers); - } - catch (e) { - metadata = new metadata_1.Metadata(); - } - const metadataMap = metadata.getMap(); - let code = this.mappedStatusCode; - if (code === constants_1.Status.UNKNOWN && - typeof metadataMap['grpc-status'] === 'string') { - const receivedStatus = Number(metadataMap['grpc-status']); - if (receivedStatus in constants_1.Status) { - code = receivedStatus; - this.trace('received status code ' + receivedStatus + ' from server'); - } - metadata.remove('grpc-status'); - } - let details = ''; - if (typeof metadataMap['grpc-message'] === 'string') { - try { - details = decodeURI(metadataMap['grpc-message']); - } - catch (e) { - details = metadataMap['grpc-message']; - } - metadata.remove('grpc-message'); - this.trace('received status details string "' + details + '" from server'); - } - const status = { code, details, metadata }; - // This is a no-op if the call was already ended when handling headers. - this.endCall(status); - } - destroyHttp2Stream() { - var _a; - // The http2 stream could already have been destroyed if cancelWithStatus - // is called in response to an internal http2 error. - if (!this.http2Stream.destroyed) { - /* If the call has ended with an OK status, communicate that when closing - * the stream, partly to avoid a situation in which we detect an error - * RST_STREAM as a result after we have the status */ - let code; - if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) { - code = http2.constants.NGHTTP2_NO_ERROR; - } - else { - code = http2.constants.NGHTTP2_CANCEL; - } - this.trace('close http2 stream with code ' + code); - this.http2Stream.close(code); - } - } - cancelWithStatus(status, details) { - this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); - this.endCall({ code: status, details, metadata: new metadata_1.Metadata() }); - } - getStatus() { - return this.finalStatus; - } - getPeer() { - return this.transport.getPeerName(); - } - getCallNumber() { - return this.callId; - } - startRead() { - /* If the stream has ended with an error, we should not emit any more - * messages and we should communicate that the stream has ended */ - if (this.finalStatus !== null && this.finalStatus.code !== constants_1.Status.OK) { - this.readsClosed = true; - this.maybeOutputStatus(); - return; - } - this.canPush = true; - if (this.unpushedReadMessages.length > 0) { - const nextMessage = this.unpushedReadMessages.shift(); - this.push(nextMessage); - return; - } - /* Only resume reading from the http2Stream if we don't have any pending - * messages to emit */ - this.http2Stream.resume(); - } - sendMessageWithContext(context, message) { - this.trace('write() called with message of length ' + message.length); - const cb = (error) => { - /* nextTick here ensures that no stream action can be taken in the call - * stack of the write callback, in order to hopefully work around - * https://github.com/nodejs/node/issues/49147 */ - process.nextTick(() => { - var _a; - let code = constants_1.Status.UNAVAILABLE; - if ((error === null || error === void 0 ? void 0 : error.code) === - 'ERR_STREAM_WRITE_AFTER_END') { - code = constants_1.Status.INTERNAL; - } - if (error) { - this.cancelWithStatus(code, `Write error: ${error.message}`); - } - (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context); - }); - }; - this.trace('sending data chunk of length ' + message.length); - this.callEventTracker.addMessageSent(); - try { - this.http2Stream.write(message, cb); - } - catch (error) { - this.endCall({ - code: constants_1.Status.UNAVAILABLE, - details: `Write failed with error ${error.message}`, - metadata: new metadata_1.Metadata(), - }); - } - } - halfClose() { - this.trace('end() called'); - this.trace('calling end() on HTTP/2 stream'); - this.http2Stream.end(); - } -} -exports.Http2SubchannelCall = Http2SubchannelCall; -//# sourceMappingURL=subchannel-call.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.js.map deleted file mode 100644 index d0983c7..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-call.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subchannel-call.js","sourceRoot":"","sources":["../../src/subchannel-call.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+BAA+B;AAC/B,yBAAyB;AAEzB,2CAAyE;AACzE,yCAAsC;AACtC,qDAAiD;AACjD,qCAAqC;AACrC,2CAA2C;AAS3C,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAiBtC;;;;;GAKG;AACH,SAAS,kBAAkB,CAAC,KAAa;IACvC,KAAK,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,KAAK,KAAK,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,uBAAuB,GAAG,KAAK,CAAC;AACzC,CAAC;AAoBD,MAAa,mBAAmB;IAwB9B,YACmB,WAAoC,EACpC,gBAAkC,EAClC,QAA4C,EAC5C,SAAoB,EACpB,MAAc;;QAJd,gBAAW,GAAX,WAAW,CAAyB;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,aAAQ,GAAR,QAAQ,CAAoC;QAC5C,cAAS,GAAT,SAAS,CAAW;QACpB,WAAM,GAAN,MAAM,CAAQ;QA1BzB,wBAAmB,GAAG,KAAK,CAAC;QAC5B,kBAAa,GAAG,KAAK,CAAC;QACtB,YAAO,GAAG,KAAK,CAAC;QACxB;;;WAGG;QACK,gBAAW,GAAG,KAAK,CAAC;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,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC;QACvC,IAAI,CAAC;YACH,IAAI,CAAC,WAAY,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACvC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC;gBACX,IAAI,EAAE,kBAAM,CAAC,WAAW;gBACxB,OAAO,EAAE,2BAA4B,KAAe,CAAC,OAAO,EAAE;gBAC9D,QAAQ,EAAE,IAAI,mBAAQ,EAAE;aACzB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,SAAS;QACP,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAC7C,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;IACzB,CAAC;CACF;AA/cD,kDA+cC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.d.ts deleted file mode 100644 index 9c13f53..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { SubchannelRef } from './channelz'; -import { ConnectivityState } from './connectivity-state'; -import { Subchannel } from './subchannel'; -export type ConnectivityStateListener = (subchannel: SubchannelInterface, previousState: ConnectivityState, newState: ConnectivityState, keepaliveTime: number, errorMessage?: string) => void; -/** - * This is an interface for load balancing policies to use to interact with - * subchannels. This allows load balancing policies to wrap and unwrap - * subchannels. - * - * Any load balancing policy that wraps subchannels must unwrap the subchannel - * in the picker, so that other load balancing policies consistently have - * access to their own wrapper objects. - */ -export interface SubchannelInterface { - getConnectivityState(): ConnectivityState; - addConnectivityStateListener(listener: ConnectivityStateListener): void; - removeConnectivityStateListener(listener: ConnectivityStateListener): void; - startConnecting(): void; - getAddress(): string; - throttleKeepalive(newKeepaliveTime: number): void; - ref(): void; - unref(): void; - getChannelzRef(): SubchannelRef; - /** - * If this is a wrapper, return the wrapped subchannel, otherwise return this - */ - getRealSubchannel(): Subchannel; - /** - * Returns true if this and other both proxy the same underlying subchannel. - * Can be used instead of directly accessing getRealSubchannel to allow mocks - * to avoid implementing getRealSubchannel - */ - realSubchannelEquals(other: SubchannelInterface): boolean; -} -export declare abstract class BaseSubchannelWrapper implements SubchannelInterface { - protected child: SubchannelInterface; - constructor(child: SubchannelInterface); - getConnectivityState(): ConnectivityState; - addConnectivityStateListener(listener: ConnectivityStateListener): void; - removeConnectivityStateListener(listener: ConnectivityStateListener): void; - startConnecting(): void; - getAddress(): string; - throttleKeepalive(newKeepaliveTime: number): void; - ref(): void; - unref(): void; - getChannelzRef(): SubchannelRef; - getRealSubchannel(): Subchannel; - realSubchannelEquals(other: SubchannelInterface): boolean; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js deleted file mode 100644 index 2446a01..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BaseSubchannelWrapper = void 0; -class BaseSubchannelWrapper { - constructor(child) { - this.child = child; - } - getConnectivityState() { - return this.child.getConnectivityState(); - } - addConnectivityStateListener(listener) { - this.child.addConnectivityStateListener(listener); - } - removeConnectivityStateListener(listener) { - this.child.removeConnectivityStateListener(listener); - } - startConnecting() { - this.child.startConnecting(); - } - getAddress() { - return this.child.getAddress(); - } - throttleKeepalive(newKeepaliveTime) { - this.child.throttleKeepalive(newKeepaliveTime); - } - ref() { - this.child.ref(); - } - unref() { - this.child.unref(); - } - getChannelzRef() { - return this.child.getChannelzRef(); - } - getRealSubchannel() { - return this.child.getRealSubchannel(); - } - realSubchannelEquals(other) { - return this.getRealSubchannel() === other.getRealSubchannel(); - } -} -exports.BaseSubchannelWrapper = BaseSubchannelWrapper; -//# sourceMappingURL=subchannel-interface.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js.map deleted file mode 100644 index f36ecd5..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subchannel-interface.js","sourceRoot":"","sources":["../../src/subchannel-interface.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AA6CH,MAAsB,qBAAqB;IACzC,YAAsB,KAA0B;QAA1B,UAAK,GAAL,KAAK,CAAqB;IAAG,CAAC;IAEpD,oBAAoB;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,oBAAoB,EAAE,CAAC;IAC3C,CAAC;IACD,4BAA4B,CAAC,QAAmC;QAC9D,IAAI,CAAC,KAAK,CAAC,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IACD,+BAA+B,CAAC,QAAmC;QACjE,IAAI,CAAC,KAAK,CAAC,+BAA+B,CAAC,QAAQ,CAAC,CAAC;IACvD,CAAC;IACD,eAAe;QACb,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC;IAC/B,CAAC;IACD,UAAU;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC;IACD,iBAAiB,CAAC,gBAAwB;QACxC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACjD,CAAC;IACD,GAAG;QACD,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;IACnB,CAAC;IACD,KAAK;QACH,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;IACD,cAAc;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC;IACrC,CAAC;IACD,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,CAAC;IACxC,CAAC;IACD,oBAAoB,CAAC,KAA0B;QAC7C,OAAO,IAAI,CAAC,iBAAiB,EAAE,KAAK,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAChE,CAAC;CACF;AApCD,sDAoCC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.d.ts deleted file mode 100644 index 9c00300..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { ChannelOptions } from './channel-options'; -import { Subchannel } from './subchannel'; -import { SubchannelAddress } from './subchannel-address'; -import { ChannelCredentials } from './channel-credentials'; -import { GrpcUri } from './uri-parser'; -export declare class SubchannelPool { - private pool; - /** - * A timer of a task performing a periodic subchannel cleanup. - */ - private cleanupTimer; - /** - * A pool of subchannels use for making connections. Subchannels with the - * exact same parameters will be reused. - */ - constructor(); - /** - * Unrefs all unused subchannels and cancels the cleanup task if all - * subchannels have been unrefed. - */ - unrefUnusedSubchannels(): void; - /** - * Ensures that the cleanup task is spawned. - */ - ensureCleanupTask(): void; - /** - * Get a subchannel if one already exists with exactly matching parameters. - * Otherwise, create and save a subchannel with those parameters. - * @param channelTarget - * @param subchannelTarget - * @param channelArguments - * @param channelCredentials - */ - getOrCreateSubchannel(channelTargetUri: GrpcUri, subchannelTarget: SubchannelAddress, channelArguments: ChannelOptions, channelCredentials: ChannelCredentials): Subchannel; -} -/** - * Get either the global subchannel pool, or a new subchannel pool. - * @param global - */ -export declare function getSubchannelPool(global: boolean): SubchannelPool; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js deleted file mode 100644 index 9061607..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSubchannelPool = exports.SubchannelPool = void 0; -const channel_options_1 = require("./channel-options"); -const subchannel_1 = require("./subchannel"); -const subchannel_address_1 = require("./subchannel-address"); -const uri_parser_1 = require("./uri-parser"); -const transport_1 = require("./transport"); -// 10 seconds in milliseconds. This value is arbitrary. -/** - * The amount of time in between checks for dropping subchannels that have no - * other references - */ -const REF_CHECK_INTERVAL = 10000; -class SubchannelPool { - /** - * A pool of subchannels use for making connections. Subchannels with the - * exact same parameters will be reused. - */ - constructor() { - this.pool = Object.create(null); - /** - * A timer of a task performing a periodic subchannel cleanup. - */ - this.cleanupTimer = null; - } - /** - * Unrefs all unused subchannels and cancels the cleanup task if all - * subchannels have been unrefed. - */ - unrefUnusedSubchannels() { - let allSubchannelsUnrefed = true; - /* These objects are created with Object.create(null), so they do not - * have a prototype, which means that for (... in ...) loops over them - * do not need to be filtered */ - // eslint-disable-disable-next-line:forin - for (const channelTarget in this.pool) { - const subchannelObjArray = this.pool[channelTarget]; - const refedSubchannels = subchannelObjArray.filter(value => !value.subchannel.unrefIfOneRef()); - if (refedSubchannels.length > 0) { - allSubchannelsUnrefed = false; - } - /* For each subchannel in the pool, try to unref it if it has - * exactly one ref (which is the ref from the pool itself). If that - * does happen, remove the subchannel from the pool */ - this.pool[channelTarget] = refedSubchannels; - } - /* Currently we do not delete keys with empty values. If that results - * in significant memory usage we should change it. */ - // Cancel the cleanup task if all subchannels have been unrefed. - if (allSubchannelsUnrefed && this.cleanupTimer !== null) { - clearInterval(this.cleanupTimer); - this.cleanupTimer = null; - } - } - /** - * Ensures that the cleanup task is spawned. - */ - ensureCleanupTask() { - var _a, _b; - if (this.cleanupTimer === null) { - this.cleanupTimer = setInterval(() => { - this.unrefUnusedSubchannels(); - }, REF_CHECK_INTERVAL); - // Unref because this timer should not keep the event loop running. - // Call unref only if it exists to address electron/electron#21162 - (_b = (_a = this.cleanupTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - } - /** - * Get a subchannel if one already exists with exactly matching parameters. - * Otherwise, create and save a subchannel with those parameters. - * @param channelTarget - * @param subchannelTarget - * @param channelArguments - * @param channelCredentials - */ - getOrCreateSubchannel(channelTargetUri, subchannelTarget, channelArguments, channelCredentials) { - this.ensureCleanupTask(); - const channelTarget = (0, uri_parser_1.uriToString)(channelTargetUri); - if (channelTarget in this.pool) { - const subchannelObjArray = this.pool[channelTarget]; - for (const subchannelObj of subchannelObjArray) { - if ((0, subchannel_address_1.subchannelAddressEqual)(subchannelTarget, subchannelObj.subchannelAddress) && - (0, channel_options_1.channelOptionsEqual)(channelArguments, subchannelObj.channelArguments) && - channelCredentials._equals(subchannelObj.channelCredentials)) { - return subchannelObj.subchannel; - } - } - } - // If we get here, no matching subchannel was found - const subchannel = new subchannel_1.Subchannel(channelTargetUri, subchannelTarget, channelArguments, channelCredentials, new transport_1.Http2SubchannelConnector(channelTargetUri)); - if (!(channelTarget in this.pool)) { - this.pool[channelTarget] = []; - } - this.pool[channelTarget].push({ - subchannelAddress: subchannelTarget, - channelArguments, - channelCredentials, - subchannel, - }); - subchannel.ref(); - return subchannel; - } -} -exports.SubchannelPool = SubchannelPool; -const globalSubchannelPool = new SubchannelPool(); -/** - * Get either the global subchannel pool, or a new subchannel pool. - * @param global - */ -function getSubchannelPool(global) { - if (global) { - return globalSubchannelPool; - } - else { - return new SubchannelPool(); - } -} -exports.getSubchannelPool = getSubchannelPool; -//# sourceMappingURL=subchannel-pool.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js.map deleted file mode 100644 index dfb1ebf..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subchannel-pool.js","sourceRoot":"","sources":["../../src/subchannel-pool.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,uDAAwE;AACxE,6CAA0C;AAC1C,6DAG8B;AAE9B,6CAAoD;AACpD,2CAAuD;AAEvD,uDAAuD;AACvD;;;GAGG;AACH,MAAM,kBAAkB,GAAG,KAAM,CAAC;AAElC,MAAa,cAAc;IAezB;;;OAGG;IACH;QAlBQ,SAAI,GAOR,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAExB;;WAEG;QACK,iBAAY,GAA0B,IAAI,CAAC;IAMpC,CAAC;IAEhB;;;OAGG;IACH,sBAAsB;QACpB,IAAI,qBAAqB,GAAG,IAAI,CAAC;QAEjC;;wCAEgC;QAChC,yCAAyC;QACzC,KAAK,MAAM,aAAa,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACtC,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAEpD,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,MAAM,CAChD,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC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B,EAChB,aAAa,CAAC,gBAAgB,CAC/B;oBACD,kBAAkB,CAAC,OAAO,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAC5D,CAAC;oBACD,OAAO,aAAa,CAAC,UAAU,CAAC;gBAClC,CAAC;YACH,CAAC;QACH,CAAC;QACD,mDAAmD;QACnD,MAAM,UAAU,GAAG,IAAI,uBAAU,CAC/B,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,IAAI,oCAAwB,CAAC,gBAAgB,CAAC,CAC/C,CAAC;QACF,IAAI,CAAC,CAAC,aAAa,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QAChC,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC;YAC5B,iBAAiB,EAAE,gBAAgB;YACnC,gBAAgB;YAChB,kBAAkB;YAClB,UAAU;SACX,CAAC,CAAC;QACH,UAAU,CAAC,GAAG,EAAE,CAAC;QACjB,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AA/HD,wCA+HC;AAED,MAAM,oBAAoB,GAAG,IAAI,cAAc,EAAE,CAAC;AAElD;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,MAAe;IAC/C,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,oBAAoB,CAAC;IAC9B,CAAC;SAAM,CAAC;QACN,OAAO,IAAI,cAAc,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC;AAND,8CAMC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.d.ts deleted file mode 100644 index f042583..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { ChannelCredentials } from './channel-credentials'; -import { Metadata } from './metadata'; -import { ChannelOptions } from './channel-options'; -import { ConnectivityState } from './connectivity-state'; -import { GrpcUri } from './uri-parser'; -import { SubchannelAddress } from './subchannel-address'; -import { SubchannelRef } from './channelz'; -import { ConnectivityStateListener, SubchannelInterface } from './subchannel-interface'; -import { SubchannelCallInterceptingListener } from './subchannel-call'; -import { SubchannelCall } from './subchannel-call'; -import { SubchannelConnector } from './transport'; -export declare class Subchannel { - private channelTarget; - private subchannelAddress; - private options; - private credentials; - private connector; - /** - * The subchannel's current connectivity state. Invariant: `session` === `null` - * if and only if `connectivityState` is IDLE or TRANSIENT_FAILURE. - */ - private connectivityState; - /** - * The underlying http2 session used to make requests. - */ - private transport; - /** - * Indicates that the subchannel should transition from TRANSIENT_FAILURE to - * CONNECTING instead of IDLE when the backoff timeout ends. - */ - private continueConnecting; - /** - * A list of listener functions that will be called whenever the connectivity - * state changes. Will be modified by `addConnectivityStateListener` and - * `removeConnectivityStateListener` - */ - private stateListeners; - private backoffTimeout; - private keepaliveTime; - /** - * Tracks channels and subchannel pools with references to this subchannel - */ - private refcount; - /** - * A string representation of the subchannel address, for logging/tracing - */ - private subchannelAddressString; - private readonly channelzEnabled; - private channelzRef; - private channelzTrace; - private callTracker; - private childrenTracker; - private streamTracker; - /** - * A class representing a connection to a single backend. - * @param channelTarget The target string for the channel as a whole - * @param subchannelAddress The address for the backend that this subchannel - * will connect to - * @param options The channel options, plus any specific subchannel options - * for this subchannel - * @param credentials The channel credentials used to establish this - * connection - */ - constructor(channelTarget: GrpcUri, subchannelAddress: SubchannelAddress, options: ChannelOptions, credentials: ChannelCredentials, connector: SubchannelConnector); - private getChannelzInfo; - private trace; - private refTrace; - private handleBackoffTimer; - /** - * Start a backoff timer with the current nextBackoff timeout - */ - private startBackoff; - private stopBackoff; - private startConnectingInternal; - /** - * Initiate a state transition from any element of oldStates to the new - * state. If the current connectivityState is not in oldStates, do nothing. - * @param oldStates The set of states to transition from - * @param newState The state to transition to - * @returns True if the state changed, false otherwise - */ - private transitionToState; - ref(): void; - unref(): void; - unrefIfOneRef(): boolean; - createCall(metadata: Metadata, host: string, method: string, listener: SubchannelCallInterceptingListener): SubchannelCall; - /** - * If the subchannel is currently IDLE, start connecting and switch to the - * CONNECTING state. If the subchannel is current in TRANSIENT_FAILURE, - * the next time it would transition to IDLE, start connecting again instead. - * Otherwise, do nothing. - */ - startConnecting(): void; - /** - * Get the subchannel's current connectivity state. - */ - getConnectivityState(): ConnectivityState; - /** - * Add a listener function to be called whenever the subchannel's - * connectivity state changes. - * @param listener - */ - addConnectivityStateListener(listener: ConnectivityStateListener): void; - /** - * Remove a listener previously added with `addConnectivityStateListener` - * @param listener A reference to a function previously passed to - * `addConnectivityStateListener` - */ - removeConnectivityStateListener(listener: ConnectivityStateListener): void; - /** - * Reset the backoff timeout, and immediately start connecting if in backoff. - */ - resetBackoff(): void; - getAddress(): string; - getChannelzRef(): SubchannelRef; - getRealSubchannel(): this; - realSubchannelEquals(other: SubchannelInterface): boolean; - throttleKeepalive(newKeepaliveTime: number): void; -} diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.js deleted file mode 100644 index b638ce6..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.js +++ /dev/null @@ -1,353 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Subchannel = void 0; -const connectivity_state_1 = require("./connectivity-state"); -const backoff_timeout_1 = require("./backoff-timeout"); -const logging = require("./logging"); -const constants_1 = require("./constants"); -const uri_parser_1 = require("./uri-parser"); -const subchannel_address_1 = require("./subchannel-address"); -const channelz_1 = require("./channelz"); -const TRACER_NAME = 'subchannel'; -/* setInterval and setTimeout only accept signed 32 bit integers. JS doesn't - * have a constant for the max signed 32 bit integer, so this is a simple way - * to calculate it */ -const KEEPALIVE_MAX_TIME_MS = ~(1 << 31); -class Subchannel { - /** - * A class representing a connection to a single backend. - * @param channelTarget The target string for the channel as a whole - * @param subchannelAddress The address for the backend that this subchannel - * will connect to - * @param options The channel options, plus any specific subchannel options - * for this subchannel - * @param credentials The channel credentials used to establish this - * connection - */ - constructor(channelTarget, subchannelAddress, options, credentials, connector) { - var _a; - this.channelTarget = channelTarget; - this.subchannelAddress = subchannelAddress; - this.options = options; - this.credentials = credentials; - this.connector = connector; - /** - * The subchannel's current connectivity state. Invariant: `session` === `null` - * if and only if `connectivityState` is IDLE or TRANSIENT_FAILURE. - */ - this.connectivityState = connectivity_state_1.ConnectivityState.IDLE; - /** - * The underlying http2 session used to make requests. - */ - this.transport = null; - /** - * Indicates that the subchannel should transition from TRANSIENT_FAILURE to - * CONNECTING instead of IDLE when the backoff timeout ends. - */ - this.continueConnecting = false; - /** - * A list of listener functions that will be called whenever the connectivity - * state changes. Will be modified by `addConnectivityStateListener` and - * `removeConnectivityStateListener` - */ - this.stateListeners = new Set(); - /** - * Tracks channels and subchannel pools with references to this subchannel - */ - this.refcount = 0; - // Channelz info - this.channelzEnabled = true; - this.callTracker = new channelz_1.ChannelzCallTracker(); - this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); - // Channelz socket info - this.streamTracker = new channelz_1.ChannelzCallTracker(); - const backoffOptions = { - initialDelay: options['grpc.initial_reconnect_backoff_ms'], - maxDelay: options['grpc.max_reconnect_backoff_ms'], - }; - this.backoffTimeout = new backoff_timeout_1.BackoffTimeout(() => { - this.handleBackoffTimer(); - }, backoffOptions); - this.backoffTimeout.unref(); - this.subchannelAddressString = (0, subchannel_address_1.subchannelAddressToString)(subchannelAddress); - this.keepaliveTime = (_a = options['grpc.keepalive_time_ms']) !== null && _a !== void 0 ? _a : -1; - if (options['grpc.enable_channelz'] === 0) { - this.channelzEnabled = false; - } - this.channelzTrace = new channelz_1.ChannelzTrace(); - this.channelzRef = (0, channelz_1.registerChannelzSubchannel)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled); - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Subchannel created'); - } - this.trace('Subchannel constructed with options ' + - JSON.stringify(options, undefined, 2)); - } - getChannelzInfo() { - return { - state: this.connectivityState, - trace: this.channelzTrace, - callTracker: this.callTracker, - children: this.childrenTracker.getChildLists(), - target: this.subchannelAddressString, - }; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - refTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, 'subchannel_refcount', '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - handleBackoffTimer() { - if (this.continueConnecting) { - this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.CONNECTING); - } - else { - this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.IDLE); - } - } - /** - * Start a backoff timer with the current nextBackoff timeout - */ - startBackoff() { - this.backoffTimeout.runOnce(); - } - stopBackoff() { - this.backoffTimeout.stop(); - this.backoffTimeout.reset(); - } - startConnectingInternal() { - let options = this.options; - if (options['grpc.keepalive_time_ms']) { - const adjustedKeepaliveTime = Math.min(this.keepaliveTime, KEEPALIVE_MAX_TIME_MS); - options = Object.assign(Object.assign({}, options), { 'grpc.keepalive_time_ms': adjustedKeepaliveTime }); - } - this.connector - .connect(this.subchannelAddress, this.credentials, options) - .then(transport => { - if (this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING], connectivity_state_1.ConnectivityState.READY)) { - this.transport = transport; - if (this.channelzEnabled) { - this.childrenTracker.refChild(transport.getChannelzRef()); - } - transport.addDisconnectListener(tooManyPings => { - this.transitionToState([connectivity_state_1.ConnectivityState.READY], connectivity_state_1.ConnectivityState.IDLE); - if (tooManyPings && this.keepaliveTime > 0) { - this.keepaliveTime *= 2; - logging.log(constants_1.LogVerbosity.ERROR, `Connection to ${(0, uri_parser_1.uriToString)(this.channelTarget)} at ${this.subchannelAddressString} rejected by server because of excess pings. Increasing ping interval to ${this.keepaliveTime} ms`); - } - }); - } - else { - /* If we can't transition from CONNECTING to READY here, we will - * not be using this transport, so release its resources. */ - transport.shutdown(); - } - }, error => { - this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING], connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, `${error}`); - }); - } - /** - * Initiate a state transition from any element of oldStates to the new - * state. If the current connectivityState is not in oldStates, do nothing. - * @param oldStates The set of states to transition from - * @param newState The state to transition to - * @returns True if the state changed, false otherwise - */ - transitionToState(oldStates, newState, errorMessage) { - var _a, _b; - if (oldStates.indexOf(this.connectivityState) === -1) { - return false; - } - this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Connectivity state change to ' + connectivity_state_1.ConnectivityState[newState]); - } - const previousState = this.connectivityState; - this.connectivityState = newState; - switch (newState) { - case connectivity_state_1.ConnectivityState.READY: - this.stopBackoff(); - break; - case connectivity_state_1.ConnectivityState.CONNECTING: - this.startBackoff(); - this.startConnectingInternal(); - this.continueConnecting = false; - break; - case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE: - if (this.channelzEnabled && this.transport) { - this.childrenTracker.unrefChild(this.transport.getChannelzRef()); - } - (_a = this.transport) === null || _a === void 0 ? void 0 : _a.shutdown(); - this.transport = null; - /* If the backoff timer has already ended by the time we get to the - * TRANSIENT_FAILURE state, we want to immediately transition out of - * TRANSIENT_FAILURE as though the backoff timer is ending right now */ - if (!this.backoffTimeout.isRunning()) { - process.nextTick(() => { - this.handleBackoffTimer(); - }); - } - break; - case connectivity_state_1.ConnectivityState.IDLE: - if (this.channelzEnabled && this.transport) { - this.childrenTracker.unrefChild(this.transport.getChannelzRef()); - } - (_b = this.transport) === null || _b === void 0 ? void 0 : _b.shutdown(); - this.transport = null; - break; - default: - throw new Error(`Invalid state: unknown ConnectivityState ${newState}`); - } - for (const listener of this.stateListeners) { - listener(this, previousState, newState, this.keepaliveTime, errorMessage); - } - return true; - } - ref() { - this.refTrace('refcount ' + this.refcount + ' -> ' + (this.refcount + 1)); - this.refcount += 1; - } - unref() { - this.refTrace('refcount ' + this.refcount + ' -> ' + (this.refcount - 1)); - this.refcount -= 1; - if (this.refcount === 0) { - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Shutting down'); - } - if (this.channelzEnabled) { - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - } - process.nextTick(() => { - this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING, connectivity_state_1.ConnectivityState.READY], connectivity_state_1.ConnectivityState.IDLE); - }); - } - } - unrefIfOneRef() { - if (this.refcount === 1) { - this.unref(); - return true; - } - return false; - } - createCall(metadata, host, method, listener) { - if (!this.transport) { - throw new Error('Cannot create call, subchannel not READY'); - } - let statsTracker; - if (this.channelzEnabled) { - this.callTracker.addCallStarted(); - this.streamTracker.addCallStarted(); - statsTracker = { - onCallEnd: status => { - if (status.code === constants_1.Status.OK) { - this.callTracker.addCallSucceeded(); - } - else { - this.callTracker.addCallFailed(); - } - }, - }; - } - else { - statsTracker = {}; - } - return this.transport.createCall(metadata, host, method, listener, statsTracker); - } - /** - * If the subchannel is currently IDLE, start connecting and switch to the - * CONNECTING state. If the subchannel is current in TRANSIENT_FAILURE, - * the next time it would transition to IDLE, start connecting again instead. - * Otherwise, do nothing. - */ - startConnecting() { - process.nextTick(() => { - /* First, try to transition from IDLE to connecting. If that doesn't happen - * because the state is not currently IDLE, check if it is - * TRANSIENT_FAILURE, and if so indicate that it should go back to - * connecting after the backoff timer ends. Otherwise do nothing */ - if (!this.transitionToState([connectivity_state_1.ConnectivityState.IDLE], connectivity_state_1.ConnectivityState.CONNECTING)) { - if (this.connectivityState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - this.continueConnecting = true; - } - } - }); - } - /** - * Get the subchannel's current connectivity state. - */ - getConnectivityState() { - return this.connectivityState; - } - /** - * Add a listener function to be called whenever the subchannel's - * connectivity state changes. - * @param listener - */ - addConnectivityStateListener(listener) { - this.stateListeners.add(listener); - } - /** - * Remove a listener previously added with `addConnectivityStateListener` - * @param listener A reference to a function previously passed to - * `addConnectivityStateListener` - */ - removeConnectivityStateListener(listener) { - this.stateListeners.delete(listener); - } - /** - * Reset the backoff timeout, and immediately start connecting if in backoff. - */ - resetBackoff() { - process.nextTick(() => { - this.backoffTimeout.reset(); - this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.CONNECTING); - }); - } - getAddress() { - return this.subchannelAddressString; - } - getChannelzRef() { - return this.channelzRef; - } - getRealSubchannel() { - return this; - } - realSubchannelEquals(other) { - return other.getRealSubchannel() === this; - } - throttleKeepalive(newKeepaliveTime) { - if (newKeepaliveTime > this.keepaliveTime) { - this.keepaliveTime = newKeepaliveTime; - } - } -} -exports.Subchannel = Subchannel; -//# sourceMappingURL=subchannel.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.js.map deleted file mode 100644 index 0c91945..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/subchannel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subchannel.js","sourceRoot":"","sources":["../../src/subchannel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAKH,6DAAyD;AACzD,uDAAmE;AACnE,qCAAqC;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AC,aAAa,EAAE,CAAC;YAC1C,IAAI,CAAC,aAAa,GAAG,gBAAgB,CAAC;QACxC,CAAC;IACH,CAAC;CACF;AA5aD,gCA4aC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.d.ts deleted file mode 100644 index 54f2dba..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// <reference types="node" /> -export declare const CIPHER_SUITES: string | undefined; -export declare function getDefaultRootsData(): Buffer | null; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.js deleted file mode 100644 index d118344..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDefaultRootsData = exports.CIPHER_SUITES = void 0; -const fs = require("fs"); -exports.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES; -const DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH; -let defaultRootsData = null; -function getDefaultRootsData() { - if (DEFAULT_ROOTS_FILE_PATH) { - if (defaultRootsData === null) { - defaultRootsData = fs.readFileSync(DEFAULT_ROOTS_FILE_PATH); - } - return defaultRootsData; - } - return null; -} -exports.getDefaultRootsData = getDefaultRootsData; -//# sourceMappingURL=tls-helpers.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.js.map deleted file mode 100644 index 0e08214..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/tls-helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tls-helpers.js","sourceRoot":"","sources":["../../src/tls-helpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yBAAyB;AAEZ,QAAA,aAAa,GACxB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAErC,MAAM,uBAAuB,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;AAE7E,IAAI,gBAAgB,GAAkB,IAAI,CAAC;AAE3C,SAAgB,mBAAmB;IACjC,IAAI,uBAAuB,EAAE,CAAC;QAC5B,IAAI,gBAAgB,KAAK,IAAI,EAAE,CAAC;YAC9B,gBAAgB,GAAG,EAAE,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AARD,kDAQC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.d.ts deleted file mode 100644 index 1869dbb..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.d.ts +++ /dev/null @@ -1,134 +0,0 @@ -/// <reference types="node" /> -import * as http2 from 'http2'; -import { StatusObject } from './call-interface'; -import { ChannelCredentials } from './channel-credentials'; -import { ChannelOptions } from './channel-options'; -import { SocketRef } from './channelz'; -import { SubchannelAddress } from './subchannel-address'; -import { GrpcUri } from './uri-parser'; -import { Http2SubchannelCall, SubchannelCall, SubchannelCallInterceptingListener } from './subchannel-call'; -import { Metadata } from './metadata'; -export interface CallEventTracker { - addMessageSent(): void; - addMessageReceived(): void; - onCallEnd(status: StatusObject): void; - onStreamEnd(success: boolean): void; -} -export interface TransportDisconnectListener { - (tooManyPings: boolean): void; -} -export interface Transport { - getChannelzRef(): SocketRef; - getPeerName(): string; - getOptions(): ChannelOptions; - createCall(metadata: Metadata, host: string, method: string, listener: SubchannelCallInterceptingListener, subchannelCallStatsTracker: Partial<CallEventTracker>): SubchannelCall; - addDisconnectListener(listener: TransportDisconnectListener): void; - shutdown(): void; -} -declare class Http2Transport implements Transport { - private session; - private options; - /** - * Name of the remote server, if it is not the same as the subchannel - * address, i.e. if connecting through an HTTP CONNECT proxy. - */ - private remoteName; - /** - * The amount of time in between sending pings - */ - private keepaliveTimeMs; - /** - * The amount of time to wait for an acknowledgement after sending a ping - */ - private keepaliveTimeoutMs; - /** - * Timer reference for timeout that indicates when to send the next ping - */ - private keepaliveTimerId; - /** - * Indicates that the keepalive timer ran out while there were no active - * calls, and a ping should be sent the next time a call starts. - */ - private pendingSendKeepalivePing; - /** - * Timer reference tracking when the most recent ping will be considered lost - */ - private keepaliveTimeoutId; - /** - * Indicates whether keepalive pings should be sent without any active calls - */ - private keepaliveWithoutCalls; - private userAgent; - private activeCalls; - private subchannelAddressString; - private disconnectListeners; - private disconnectHandled; - private channelzRef; - private readonly channelzEnabled; - private streamTracker; - private keepalivesSent; - private messagesSent; - private messagesReceived; - private lastMessageSentTimestamp; - private lastMessageReceivedTimestamp; - constructor(session: http2.ClientHttp2Session, subchannelAddress: SubchannelAddress, options: ChannelOptions, - /** - * Name of the remote server, if it is not the same as the subchannel - * address, i.e. if connecting through an HTTP CONNECT proxy. - */ - remoteName: string | null); - private getChannelzInfo; - private trace; - private keepaliveTrace; - private flowControlTrace; - private internalsTrace; - /** - * Indicate to the owner of this object that this transport should no longer - * be used. That happens if the connection drops, or if the server sends a - * GOAWAY. - * @param tooManyPings If true, this was triggered by a GOAWAY with data - * indicating that the session was closed becaues the client sent too many - * pings. - * @returns - */ - private reportDisconnectToOwner; - /** - * Handle connection drops, but not GOAWAYs. - */ - private handleDisconnect; - addDisconnectListener(listener: TransportDisconnectListener): void; - private clearKeepaliveTimer; - private clearKeepaliveTimeout; - private canSendPing; - private maybeSendPing; - /** - * Starts the keepalive ping timer if appropriate. If the timer already ran - * out while there were no active requests, instead send a ping immediately. - * If the ping timer is already running or a ping is currently in flight, - * instead do nothing and wait for them to resolve. - */ - private maybeStartKeepalivePingTimer; - private stopKeepalivePings; - private removeActiveCall; - private addActiveCall; - createCall(metadata: Metadata, host: string, method: string, listener: SubchannelCallInterceptingListener, subchannelCallStatsTracker: Partial<CallEventTracker>): Http2SubchannelCall; - getChannelzRef(): SocketRef; - getPeerName(): string; - getOptions(): ChannelOptions; - shutdown(): void; -} -export interface SubchannelConnector { - connect(address: SubchannelAddress, credentials: ChannelCredentials, options: ChannelOptions): Promise<Transport>; - shutdown(): void; -} -export declare class Http2SubchannelConnector implements SubchannelConnector { - private channelTarget; - private session; - private isShutdown; - constructor(channelTarget: GrpcUri); - private trace; - private createSession; - connect(address: SubchannelAddress, credentials: ChannelCredentials, options: ChannelOptions): Promise<Http2Transport>; - shutdown(): void; -} -export {}; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.js deleted file mode 100644 index 01af3ab..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.js +++ /dev/null @@ -1,644 +0,0 @@ -"use strict"; -/* - * Copyright 2023 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Http2SubchannelConnector = void 0; -const http2 = require("http2"); -const tls_1 = require("tls"); -const channelz_1 = require("./channelz"); -const constants_1 = require("./constants"); -const http_proxy_1 = require("./http_proxy"); -const logging = require("./logging"); -const resolver_1 = require("./resolver"); -const subchannel_address_1 = require("./subchannel-address"); -const uri_parser_1 = require("./uri-parser"); -const net = require("net"); -const subchannel_call_1 = require("./subchannel-call"); -const call_number_1 = require("./call-number"); -const TRACER_NAME = 'transport'; -const FLOW_CONTROL_TRACER_NAME = 'transport_flowctrl'; -const clientVersion = require('../../package.json').version; -const { HTTP2_HEADER_AUTHORITY, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_TE, HTTP2_HEADER_USER_AGENT, } = http2.constants; -const KEEPALIVE_TIMEOUT_MS = 20000; -const tooManyPingsData = Buffer.from('too_many_pings', 'ascii'); -class Http2Transport { - constructor(session, subchannelAddress, options, - /** - * Name of the remote server, if it is not the same as the subchannel - * address, i.e. if connecting through an HTTP CONNECT proxy. - */ - remoteName) { - this.session = session; - this.options = options; - this.remoteName = remoteName; - /** - * The amount of time in between sending pings - */ - this.keepaliveTimeMs = -1; - /** - * The amount of time to wait for an acknowledgement after sending a ping - */ - this.keepaliveTimeoutMs = KEEPALIVE_TIMEOUT_MS; - /** - * Timer reference for timeout that indicates when to send the next ping - */ - this.keepaliveTimerId = null; - /** - * Indicates that the keepalive timer ran out while there were no active - * calls, and a ping should be sent the next time a call starts. - */ - this.pendingSendKeepalivePing = false; - /** - * Timer reference tracking when the most recent ping will be considered lost - */ - this.keepaliveTimeoutId = null; - /** - * Indicates whether keepalive pings should be sent without any active calls - */ - this.keepaliveWithoutCalls = false; - this.activeCalls = new Set(); - this.disconnectListeners = []; - this.disconnectHandled = false; - this.channelzEnabled = true; - this.streamTracker = new channelz_1.ChannelzCallTracker(); - this.keepalivesSent = 0; - this.messagesSent = 0; - this.messagesReceived = 0; - this.lastMessageSentTimestamp = null; - this.lastMessageReceivedTimestamp = null; - /* Populate subchannelAddressString and channelzRef before doing anything - * else, because they are used in the trace methods. */ - this.subchannelAddressString = (0, subchannel_address_1.subchannelAddressToString)(subchannelAddress); - if (options['grpc.enable_channelz'] === 0) { - this.channelzEnabled = false; - } - this.channelzRef = (0, channelz_1.registerChannelzSocket)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled); - // Build user-agent string. - this.userAgent = [ - options['grpc.primary_user_agent'], - `grpc-node-js/${clientVersion}`, - options['grpc.secondary_user_agent'], - ] - .filter(e => e) - .join(' '); // remove falsey values first - if ('grpc.keepalive_time_ms' in options) { - this.keepaliveTimeMs = options['grpc.keepalive_time_ms']; - } - if ('grpc.keepalive_timeout_ms' in options) { - this.keepaliveTimeoutMs = options['grpc.keepalive_timeout_ms']; - } - if ('grpc.keepalive_permit_without_calls' in options) { - this.keepaliveWithoutCalls = - options['grpc.keepalive_permit_without_calls'] === 1; - } - else { - this.keepaliveWithoutCalls = false; - } - session.once('close', () => { - this.trace('session closed'); - this.stopKeepalivePings(); - this.handleDisconnect(); - }); - session.once('goaway', (errorCode, lastStreamID, opaqueData) => { - let tooManyPings = false; - /* See the last paragraph of - * https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md#basic-keepalive */ - if (errorCode === http2.constants.NGHTTP2_ENHANCE_YOUR_CALM && - opaqueData && - opaqueData.equals(tooManyPingsData)) { - tooManyPings = true; - } - this.trace('connection closed by GOAWAY with code ' + errorCode + ' and data ' + (opaqueData === null || opaqueData === void 0 ? void 0 : opaqueData.toString())); - this.reportDisconnectToOwner(tooManyPings); - }); - session.once('error', error => { - /* Do nothing here. Any error should also trigger a close event, which is - * where we want to handle that. */ - this.trace('connection closed with error ' + error.message); - }); - if (logging.isTracerEnabled(TRACER_NAME)) { - session.on('remoteSettings', (settings) => { - this.trace('new settings received' + - (this.session !== session ? ' on the old connection' : '') + - ': ' + - JSON.stringify(settings)); - }); - session.on('localSettings', (settings) => { - this.trace('local settings acknowledged by remote' + - (this.session !== session ? ' on the old connection' : '') + - ': ' + - JSON.stringify(settings)); - }); - } - /* Start the keepalive timer last, because this can trigger trace logs, - * which should only happen after everything else is set up. */ - if (this.keepaliveWithoutCalls) { - this.maybeStartKeepalivePingTimer(); - } - } - getChannelzInfo() { - var _a, _b, _c; - const sessionSocket = this.session.socket; - const remoteAddress = sessionSocket.remoteAddress - ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.remoteAddress, sessionSocket.remotePort) - : null; - const localAddress = sessionSocket.localAddress - ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.localAddress, sessionSocket.localPort) - : null; - let tlsInfo; - if (this.session.encrypted) { - const tlsSocket = sessionSocket; - const cipherInfo = tlsSocket.getCipher(); - const certificate = tlsSocket.getCertificate(); - const peerCertificate = tlsSocket.getPeerCertificate(); - tlsInfo = { - cipherSuiteStandardName: (_a = cipherInfo.standardName) !== null && _a !== void 0 ? _a : null, - cipherSuiteOtherName: cipherInfo.standardName ? null : cipherInfo.name, - localCertificate: certificate && 'raw' in certificate ? certificate.raw : null, - remoteCertificate: peerCertificate && 'raw' in peerCertificate - ? peerCertificate.raw - : null, - }; - } - else { - tlsInfo = null; - } - const socketInfo = { - remoteAddress: remoteAddress, - localAddress: localAddress, - security: tlsInfo, - remoteName: this.remoteName, - streamsStarted: this.streamTracker.callsStarted, - streamsSucceeded: this.streamTracker.callsSucceeded, - streamsFailed: this.streamTracker.callsFailed, - messagesSent: this.messagesSent, - messagesReceived: this.messagesReceived, - keepAlivesSent: this.keepalivesSent, - lastLocalStreamCreatedTimestamp: this.streamTracker.lastCallStartedTimestamp, - lastRemoteStreamCreatedTimestamp: null, - lastMessageSentTimestamp: this.lastMessageSentTimestamp, - lastMessageReceivedTimestamp: this.lastMessageReceivedTimestamp, - localFlowControlWindow: (_b = this.session.state.localWindowSize) !== null && _b !== void 0 ? _b : null, - remoteFlowControlWindow: (_c = this.session.state.remoteWindowSize) !== null && _c !== void 0 ? _c : null, - }; - return socketInfo; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - keepaliveTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, 'keepalive', '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - flowControlTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, FLOW_CONTROL_TRACER_NAME, '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - internalsTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, 'transport_internals', '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - /** - * Indicate to the owner of this object that this transport should no longer - * be used. That happens if the connection drops, or if the server sends a - * GOAWAY. - * @param tooManyPings If true, this was triggered by a GOAWAY with data - * indicating that the session was closed becaues the client sent too many - * pings. - * @returns - */ - reportDisconnectToOwner(tooManyPings) { - if (this.disconnectHandled) { - return; - } - this.disconnectHandled = true; - this.disconnectListeners.forEach(listener => listener(tooManyPings)); - } - /** - * Handle connection drops, but not GOAWAYs. - */ - handleDisconnect() { - this.reportDisconnectToOwner(false); - /* Give calls an event loop cycle to finish naturally before reporting the - * disconnnection to them. */ - setImmediate(() => { - for (const call of this.activeCalls) { - call.onDisconnect(); - } - }); - } - addDisconnectListener(listener) { - this.disconnectListeners.push(listener); - } - clearKeepaliveTimer() { - if (!this.keepaliveTimerId) { - return; - } - clearTimeout(this.keepaliveTimerId); - this.keepaliveTimerId = null; - } - clearKeepaliveTimeout() { - if (!this.keepaliveTimeoutId) { - return; - } - clearTimeout(this.keepaliveTimeoutId); - this.keepaliveTimeoutId = null; - } - canSendPing() { - return (this.keepaliveTimeMs > 0 && - (this.keepaliveWithoutCalls || this.activeCalls.size > 0)); - } - maybeSendPing() { - var _a, _b; - this.clearKeepaliveTimer(); - if (!this.canSendPing()) { - this.pendingSendKeepalivePing = true; - return; - } - if (this.channelzEnabled) { - this.keepalivesSent += 1; - } - this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); - if (!this.keepaliveTimeoutId) { - this.keepaliveTimeoutId = setTimeout(() => { - this.keepaliveTrace('Ping timeout passed without response'); - this.handleDisconnect(); - }, this.keepaliveTimeoutMs); - (_b = (_a = this.keepaliveTimeoutId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - try { - this.session.ping((err, duration, payload) => { - if (err) { - this.keepaliveTrace('Ping failed with error ' + err.message); - this.handleDisconnect(); - } - this.keepaliveTrace('Received ping response'); - this.clearKeepaliveTimeout(); - this.maybeStartKeepalivePingTimer(); - }); - } - catch (e) { - /* If we fail to send a ping, the connection is no longer functional, so - * we should discard it. */ - this.handleDisconnect(); - } - } - /** - * Starts the keepalive ping timer if appropriate. If the timer already ran - * out while there were no active requests, instead send a ping immediately. - * If the ping timer is already running or a ping is currently in flight, - * instead do nothing and wait for them to resolve. - */ - maybeStartKeepalivePingTimer() { - var _a, _b; - if (!this.canSendPing()) { - return; - } - if (this.pendingSendKeepalivePing) { - this.pendingSendKeepalivePing = false; - this.maybeSendPing(); - } - else if (!this.keepaliveTimerId && !this.keepaliveTimeoutId) { - this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); - this.keepaliveTimerId = (_b = (_a = setTimeout(() => { - this.maybeSendPing(); - }, this.keepaliveTimeMs)).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - /* Otherwise, there is already either a keepalive timer or a ping pending, - * wait for those to resolve. */ - } - stopKeepalivePings() { - if (this.keepaliveTimerId) { - clearTimeout(this.keepaliveTimerId); - this.keepaliveTimerId = null; - } - this.clearKeepaliveTimeout(); - } - removeActiveCall(call) { - this.activeCalls.delete(call); - if (this.activeCalls.size === 0) { - this.session.unref(); - } - } - addActiveCall(call) { - this.activeCalls.add(call); - if (this.activeCalls.size === 1) { - this.session.ref(); - if (!this.keepaliveWithoutCalls) { - this.maybeStartKeepalivePingTimer(); - } - } - } - createCall(metadata, host, method, listener, subchannelCallStatsTracker) { - const headers = metadata.toHttp2Headers(); - headers[HTTP2_HEADER_AUTHORITY] = host; - headers[HTTP2_HEADER_USER_AGENT] = this.userAgent; - headers[HTTP2_HEADER_CONTENT_TYPE] = 'application/grpc'; - headers[HTTP2_HEADER_METHOD] = 'POST'; - headers[HTTP2_HEADER_PATH] = method; - headers[HTTP2_HEADER_TE] = 'trailers'; - let http2Stream; - /* In theory, if an error is thrown by session.request because session has - * become unusable (e.g. because it has received a goaway), this subchannel - * should soon see the corresponding close or goaway event anyway and leave - * READY. But we have seen reports that this does not happen - * (https://github.com/googleapis/nodejs-firestore/issues/1023#issuecomment-653204096) - * so for defense in depth, we just discard the session when we see an - * error here. - */ - try { - http2Stream = this.session.request(headers); - } - catch (e) { - this.handleDisconnect(); - throw e; - } - this.flowControlTrace('local window size: ' + - this.session.state.localWindowSize + - ' remote window size: ' + - this.session.state.remoteWindowSize); - this.internalsTrace('session.closed=' + - this.session.closed + - ' session.destroyed=' + - this.session.destroyed + - ' session.socket.destroyed=' + - this.session.socket.destroyed); - let eventTracker; - // eslint-disable-next-line prefer-const - let call; - if (this.channelzEnabled) { - this.streamTracker.addCallStarted(); - eventTracker = { - addMessageSent: () => { - var _a; - this.messagesSent += 1; - this.lastMessageSentTimestamp = new Date(); - (_a = subchannelCallStatsTracker.addMessageSent) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); - }, - addMessageReceived: () => { - var _a; - this.messagesReceived += 1; - this.lastMessageReceivedTimestamp = new Date(); - (_a = subchannelCallStatsTracker.addMessageReceived) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); - }, - onCallEnd: status => { - var _a; - (_a = subchannelCallStatsTracker.onCallEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, status); - this.removeActiveCall(call); - }, - onStreamEnd: success => { - var _a; - if (success) { - this.streamTracker.addCallSucceeded(); - } - else { - this.streamTracker.addCallFailed(); - } - (_a = subchannelCallStatsTracker.onStreamEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, success); - }, - }; - } - else { - eventTracker = { - addMessageSent: () => { - var _a; - (_a = subchannelCallStatsTracker.addMessageSent) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); - }, - addMessageReceived: () => { - var _a; - (_a = subchannelCallStatsTracker.addMessageReceived) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); - }, - onCallEnd: status => { - var _a; - (_a = subchannelCallStatsTracker.onCallEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, status); - this.removeActiveCall(call); - }, - onStreamEnd: success => { - var _a; - (_a = subchannelCallStatsTracker.onStreamEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, success); - }, - }; - } - call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, (0, call_number_1.getNextCallNumber)()); - this.addActiveCall(call); - return call; - } - getChannelzRef() { - return this.channelzRef; - } - getPeerName() { - return this.subchannelAddressString; - } - getOptions() { - return this.options; - } - shutdown() { - this.session.close(); - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - } -} -class Http2SubchannelConnector { - constructor(channelTarget) { - this.channelTarget = channelTarget; - this.session = null; - this.isShutdown = false; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, (0, uri_parser_1.uriToString)(this.channelTarget) + ' ' + text); - } - createSession(address, credentials, options, proxyConnectionResult) { - if (this.isShutdown) { - return Promise.reject(); - } - return new Promise((resolve, reject) => { - var _a, _b, _c; - let remoteName; - if (proxyConnectionResult.realTarget) { - remoteName = (0, uri_parser_1.uriToString)(proxyConnectionResult.realTarget); - this.trace('creating HTTP/2 session through proxy to ' + - (0, uri_parser_1.uriToString)(proxyConnectionResult.realTarget)); - } - else { - remoteName = null; - this.trace('creating HTTP/2 session to ' + (0, subchannel_address_1.subchannelAddressToString)(address)); - } - const targetAuthority = (0, resolver_1.getDefaultAuthority)((_a = proxyConnectionResult.realTarget) !== null && _a !== void 0 ? _a : this.channelTarget); - let connectionOptions = credentials._getConnectionOptions() || {}; - connectionOptions.maxSendHeaderBlockLength = Number.MAX_SAFE_INTEGER; - if ('grpc-node.max_session_memory' in options) { - connectionOptions.maxSessionMemory = - options['grpc-node.max_session_memory']; - } - else { - /* By default, set a very large max session memory limit, to effectively - * disable enforcement of the limit. Some testing indicates that Node's - * behavior degrades badly when this limit is reached, so we solve that - * by disabling the check entirely. */ - connectionOptions.maxSessionMemory = Number.MAX_SAFE_INTEGER; - } - let addressScheme = 'http://'; - if ('secureContext' in connectionOptions) { - addressScheme = 'https://'; - // If provided, the value of grpc.ssl_target_name_override should be used - // to override the target hostname when checking server identity. - // This option is used for testing only. - if (options['grpc.ssl_target_name_override']) { - const sslTargetNameOverride = options['grpc.ssl_target_name_override']; - connectionOptions.checkServerIdentity = (host, cert) => { - return (0, tls_1.checkServerIdentity)(sslTargetNameOverride, cert); - }; - connectionOptions.servername = sslTargetNameOverride; - } - else { - const authorityHostname = (_c = (_b = (0, uri_parser_1.splitHostPort)(targetAuthority)) === null || _b === void 0 ? void 0 : _b.host) !== null && _c !== void 0 ? _c : 'localhost'; - // We want to always set servername to support SNI - connectionOptions.servername = authorityHostname; - } - if (proxyConnectionResult.socket) { - /* This is part of the workaround for - * https://github.com/nodejs/node/issues/32922. Without that bug, - * proxyConnectionResult.socket would always be a plaintext socket and - * this would say - * connectionOptions.socket = proxyConnectionResult.socket; */ - connectionOptions.createConnection = (authority, option) => { - return proxyConnectionResult.socket; - }; - } - } - else { - /* In all but the most recent versions of Node, http2.connect does not use - * the options when establishing plaintext connections, so we need to - * establish that connection explicitly. */ - connectionOptions.createConnection = (authority, option) => { - if (proxyConnectionResult.socket) { - return proxyConnectionResult.socket; - } - else { - /* net.NetConnectOpts is declared in a way that is more restrictive - * than what net.connect will actually accept, so we use the type - * assertion to work around that. */ - return net.connect(address); - } - }; - } - connectionOptions = Object.assign(Object.assign(Object.assign({}, connectionOptions), address), { enableTrace: options['grpc-node.tls_enable_trace'] === 1 }); - /* http2.connect uses the options here: - * https://github.com/nodejs/node/blob/70c32a6d190e2b5d7b9ff9d5b6a459d14e8b7d59/lib/internal/http2/core.js#L3028-L3036 - * The spread operator overides earlier values with later ones, so any port - * or host values in the options will be used rather than any values extracted - * from the first argument. In addition, the path overrides the host and port, - * as documented for plaintext connections here: - * https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener - * and for TLS connections here: - * https://nodejs.org/api/tls.html#tls_tls_connect_options_callback. In - * earlier versions of Node, http2.connect passes these options to - * tls.connect but not net.connect, so in the insecure case we still need - * to set the createConnection option above to create the connection - * explicitly. We cannot do that in the TLS case because http2.connect - * passes necessary additional options to tls.connect. - * The first argument just needs to be parseable as a URL and the scheme - * determines whether the connection will be established over TLS or not. - */ - const session = http2.connect(addressScheme + targetAuthority, connectionOptions); - this.session = session; - let errorMessage = 'Failed to connect'; - session.unref(); - session.once('connect', () => { - session.removeAllListeners(); - resolve(new Http2Transport(session, address, options, remoteName)); - this.session = null; - }); - session.once('close', () => { - this.session = null; - // Leave time for error event to happen before rejecting - setImmediate(() => { - reject(`${errorMessage} (${new Date().toISOString()})`); - }); - }); - session.once('error', error => { - errorMessage = error.message; - this.trace('connection failed with error ' + errorMessage); - }); - }); - } - connect(address, credentials, options) { - var _a, _b; - if (this.isShutdown) { - return Promise.reject(); - } - /* Pass connection options through to the proxy so that it's able to - * upgrade it's connection to support tls if needed. - * This is a workaround for https://github.com/nodejs/node/issues/32922 - * See https://github.com/grpc/grpc-node/pull/1369 for more info. */ - const connectionOptions = credentials._getConnectionOptions() || {}; - if ('secureContext' in connectionOptions) { - connectionOptions.ALPNProtocols = ['h2']; - // If provided, the value of grpc.ssl_target_name_override should be used - // to override the target hostname when checking server identity. - // This option is used for testing only. - if (options['grpc.ssl_target_name_override']) { - const sslTargetNameOverride = options['grpc.ssl_target_name_override']; - connectionOptions.checkServerIdentity = (host, cert) => { - return (0, tls_1.checkServerIdentity)(sslTargetNameOverride, cert); - }; - connectionOptions.servername = sslTargetNameOverride; - } - else { - if ('grpc.http_connect_target' in options) { - /* This is more or less how servername will be set in createSession - * if a connection is successfully established through the proxy. - * If the proxy is not used, these connectionOptions are discarded - * anyway */ - const targetPath = (0, resolver_1.getDefaultAuthority)((_a = (0, uri_parser_1.parseUri)(options['grpc.http_connect_target'])) !== null && _a !== void 0 ? _a : { - path: 'localhost', - }); - const hostPort = (0, uri_parser_1.splitHostPort)(targetPath); - connectionOptions.servername = (_b = hostPort === null || hostPort === void 0 ? void 0 : hostPort.host) !== null && _b !== void 0 ? _b : targetPath; - } - } - if (options['grpc-node.tls_enable_trace']) { - connectionOptions.enableTrace = true; - } - } - return (0, http_proxy_1.getProxiedConnection)(address, options, connectionOptions).then(result => this.createSession(address, credentials, options, result)); - } - shutdown() { - var _a; - this.isShutdown = true; - (_a = this.session) === null || _a === void 0 ? void 0 : _a.close(); - this.session = null; - } -} -exports.Http2SubchannelConnector = Http2SubchannelConnector; -//# sourceMappingURL=transport.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.js.map deleted file mode 100644 index 7c9bb90..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/transport.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,+BAA+B;AAC/B,6BAMa;AAIb,yCAOoB;AACpB,2CAA2C;AAC3C,6CAA2E;AAC3E,qCAAqC;AACrC,yCAAiD;AACjD,6DAI8B;AAC9B,6CAA6E;AAC7E,2BAA2B;AAC3B,uDAI2B;AAE3B,+CAAkD;AAElD,MAAM,WAAW,GAAG,WAAW,CAAC;AAChC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAEtD,M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AC,UAAU,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,mCAAI,UAAU,CAAC;gBAC9D,CAAC;YACH,CAAC;YACD,IAAI,OAAO,CAAC,4BAA4B,CAAC,EAAE,CAAC;gBAC1C,iBAAiB,CAAC,WAAW,GAAG,IAAI,CAAC;YACvC,CAAC;QACH,CAAC;QAED,OAAO,IAAA,iCAAoB,EAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,IAAI,CACnE,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,CACpE,CAAC;IACJ,CAAC;IAED,QAAQ;;QACN,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,MAAA,IAAI,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;CACF;AA7MD,4DA6MC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.d.ts deleted file mode 100644 index c4d71aa..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export interface GrpcUri { - scheme?: string; - authority?: string; - path: string; -} -export declare function parseUri(uriString: string): GrpcUri | null; -export interface HostPort { - host: string; - port?: number; -} -export declare function splitHostPort(path: string): HostPort | null; -export declare function uriToString(uri: GrpcUri): string; diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.js b/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.js deleted file mode 100644 index 0a85d6d..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; -/* - * Copyright 2020 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.uriToString = exports.splitHostPort = exports.parseUri = void 0; -/* - * The groups correspond to URI parts as follows: - * 1. scheme - * 2. authority - * 3. path - */ -const URI_REGEX = /^(?:([A-Za-z0-9+.-]+):)?(?:\/\/([^/]*)\/)?(.+)$/; -function parseUri(uriString) { - const parsedUri = URI_REGEX.exec(uriString); - if (parsedUri === null) { - return null; - } - return { - scheme: parsedUri[1], - authority: parsedUri[2], - path: parsedUri[3], - }; -} -exports.parseUri = parseUri; -const NUMBER_REGEX = /^\d+$/; -function splitHostPort(path) { - if (path.startsWith('[')) { - const hostEnd = path.indexOf(']'); - if (hostEnd === -1) { - return null; - } - const host = path.substring(1, hostEnd); - /* Only an IPv6 address should be in bracketed notation, and an IPv6 - * address should have at least one colon */ - if (host.indexOf(':') === -1) { - return null; - } - if (path.length > hostEnd + 1) { - if (path[hostEnd + 1] === ':') { - const portString = path.substring(hostEnd + 2); - if (NUMBER_REGEX.test(portString)) { - return { - host: host, - port: +portString, - }; - } - else { - return null; - } - } - else { - return null; - } - } - else { - return { - host, - }; - } - } - else { - const splitPath = path.split(':'); - /* Exactly one colon means that this is host:port. Zero colons means that - * there is no port. And multiple colons means that this is a bare IPv6 - * address with no port */ - if (splitPath.length === 2) { - if (NUMBER_REGEX.test(splitPath[1])) { - return { - host: splitPath[0], - port: +splitPath[1], - }; - } - else { - return null; - } - } - else { - return { - host: path, - }; - } - } -} -exports.splitHostPort = splitHostPort; -function uriToString(uri) { - let result = ''; - if (uri.scheme !== undefined) { - result += uri.scheme + ':'; - } - if (uri.authority !== undefined) { - result += '//' + uri.authority + '/'; - } - result += uri.path; - return result; -} -exports.uriToString = uriToString; -//# sourceMappingURL=uri-parser.js.map
\ No newline at end of file diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.js.map b/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.js.map deleted file mode 100644 index 884dbf1..0000000 --- a/frontend-old/node_modules/@grpc/grpc-js/build/src/uri-parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uri-parser.js","sourceRoot":"","sources":["../../src/uri-parser.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAQH;;;;;GAKG;AACH,MAAM,SAAS,GAAG,iDAAiD,CAAC;AAEpE,SAAgB,QAAQ,CAAC,SAAiB;IACxC,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5C,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO;QACL,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;QACvB,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;KACnB,CAAC;AACJ,CAAC;AAVD,4BAUC;AAOD,MAAM,YAAY,GAAG,OAAO,CAAC;AAE7B,SAAgB,aAAa,CAAC,IAAY;IACxC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,OAAO,KAAK,CAAC,CAAC,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QACxC;oDAC4C;QAC5C,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAC7B,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