From 87337061055e9df199513053105ec059c3c01903 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Thu, 6 Oct 2022 17:27:38 +0530 Subject: [PATCH 1/4] Updating node --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d601526a..910b9218 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "engines": { - "node": ">=12.0.0" + "node": ">=14.0.0" }, "publishConfig": { "access": "public", From 94139b7680333dbe3041dbed218aecd5b4427014 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Thu, 6 Oct 2022 17:32:13 +0530 Subject: [PATCH 2/4] Updating node --- .nvmrc | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.nvmrc b/.nvmrc index dae199ae..958b5a36 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v12 +v14 diff --git a/README.md b/README.md index 1ab3de38..04b347e6 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ The `BaseProvider` implements the Ethereum JavaScript provider specification ([E ## Usage ```javascript -import { initializeProvider } from '@metamask/providers'; +import { initializeProvider } from "@metamask/providers"; // Create a stream to a remote provider: const metamaskStream = new LocalMessageDuplexStream({ - name: 'inpage', - target: 'contentscript', + name: "inpage", + target: "contentscript", }); // this will initialize the provider and set it as window.ethereum @@ -41,7 +41,7 @@ The maintainers of this package will neither fix nor take responsbility for bugs ### Setup -- Install [Node.js](https://nodejs.org) version 12 +- Install [Node.js](https://nodejs.org) version 14 - If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you. - Install [Yarn v1](https://yarnpkg.com/en/docs/install) - Run `yarn setup` to install dependencies and run any requried post-install scripts From ff74a323bfa482171dc7900bc4e8e478c4711fdd Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Thu, 6 Oct 2022 23:49:44 +0530 Subject: [PATCH 3/4] fix --- .github/workflows/build-test-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-test-lint.yml b/.github/workflows/build-test-lint.yml index 7832c3d1..8d16738e 100644 --- a/.github/workflows/build-test-lint.yml +++ b/.github/workflows/build-test-lint.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} From d9b5b69192339407d1f08e0889f2126a8bad46b0 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Thu, 6 Oct 2022 23:53:00 +0530 Subject: [PATCH 4/4] fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 04b347e6..db4bb839 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ The `BaseProvider` implements the Ethereum JavaScript provider specification ([E ## Usage ```javascript -import { initializeProvider } from "@metamask/providers"; +import { initializeProvider } from '@metamask/providers'; // Create a stream to a remote provider: const metamaskStream = new LocalMessageDuplexStream({ - name: "inpage", - target: "contentscript", + name: 'inpage', + target: 'contentscript', }); // this will initialize the provider and set it as window.ethereum