From 00379bc2208782c13b339a82bc3b45cef8bc7fb7 Mon Sep 17 00:00:00 2001 From: shanejonas Date: Mon, 3 May 2021 15:39:28 -0700 Subject: [PATCH] ix --- src/{extension-provider => }/MetaMaskInpageProvider.ts | 8 ++++---- src/index.ts | 2 +- src/initializeInpageProvider.ts | 2 +- src/shimWeb3.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename src/{extension-provider => }/MetaMaskInpageProvider.ts (98%) diff --git a/src/extension-provider/MetaMaskInpageProvider.ts b/src/MetaMaskInpageProvider.ts similarity index 98% rename from src/extension-provider/MetaMaskInpageProvider.ts rename to src/MetaMaskInpageProvider.ts index 64e406b1..3b3e7319 100644 --- a/src/extension-provider/MetaMaskInpageProvider.ts +++ b/src/MetaMaskInpageProvider.ts @@ -1,13 +1,13 @@ import { Duplex } from 'stream'; import { JsonRpcRequest, JsonRpcResponse } from 'json-rpc-engine'; import { ethErrors } from 'eth-rpc-errors'; -import sendSiteMetadata from '../siteMetadata'; -import messages from '../messages'; -import { EMITTED_NOTIFICATIONS, getRpcPromiseCallback, NOOP } from '../utils'; +import sendSiteMetadata from './siteMetadata'; +import messages from './messages'; +import { EMITTED_NOTIFICATIONS, getRpcPromiseCallback, NOOP } from './utils'; import BaseProvider, { BaseProviderOptions, UnvalidatedJsonRpcRequest, -} from '../BaseProvider'; +} from './BaseProvider'; export interface SendSyncJsonRpcRequest extends JsonRpcRequest { method: diff --git a/src/index.ts b/src/index.ts index 39f0bdf9..2a076485 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import MetaMaskInpageProvider from './extension-provider/MetaMaskInpageProvider'; +import MetaMaskInpageProvider from './MetaMaskInpageProvider'; import createMetaMaskExternalExtensionProvider from './extension-provider/createMetaMaskExternalExtensionProvider'; import BaseProvider from './BaseProvider'; import { diff --git a/src/initializeInpageProvider.ts b/src/initializeInpageProvider.ts index df5ba4be..b51210a2 100644 --- a/src/initializeInpageProvider.ts +++ b/src/initializeInpageProvider.ts @@ -1,7 +1,7 @@ import { Duplex } from 'stream'; import MetaMaskInpageProvider, { MetaMaskInpageProviderOptions, -} from './extension-provider/MetaMaskInpageProvider'; +} from './MetaMaskInpageProvider'; import shimWeb3 from './shimWeb3'; interface InitializeProviderOptions extends MetaMaskInpageProviderOptions { diff --git a/src/shimWeb3.ts b/src/shimWeb3.ts index d0f52167..5b9cf11d 100644 --- a/src/shimWeb3.ts +++ b/src/shimWeb3.ts @@ -1,4 +1,4 @@ -import MetaMaskInpageProvider from './extension-provider/MetaMaskInpageProvider'; +import MetaMaskInpageProvider from './MetaMaskInpageProvider'; import { ConsoleLike } from './utils'; /**