Viewing File: /home/ubuntu/todaykat-frontend-base/node_modules/@solana/web3.js/src/fetch-impl.ts

import * as nodeFetch from 'node-fetch';

export * from 'node-fetch';
export default async function (
  input: nodeFetch.RequestInfo,
  init?: nodeFetch.RequestInit,
): Promise<nodeFetch.Response> {
  const processedInput =
    typeof input === 'string' && input.slice(0, 2) === '//'
      ? 'https:' + input
      : input;
  return await nodeFetch.default(processedInput, init);
}
Back to Directory File Manager