UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

27 lines (26 loc) 900 B
import { AbortError } from '../../../public/node/error.js'; import https from 'https'; declare class RequestClientError extends AbortError { statusCode: number; constructor(message: string, statusCode: number); } export declare class GraphQLClientError extends RequestClientError { errors?: any[]; constructor(message: string, statusCode: number, errors?: any[]); } /** * Removes the sensitive data from the headers and outputs them as a string. * @param headers - HTTP headers. * @returns A sanitized version of the headers as a string. */ export declare function sanitizedHeadersOutput(headers: { [key: string]: string; }): string; export declare function buildHeaders(token?: string): { [key: string]: string; }; /** * This utility function returns the https.Agent to use for a given service. */ export declare function httpsAgent(): Promise<https.Agent>; export {};