diff --git a/example/browser.js b/example/browser.js index cc4e82c..1f0a334 100644 --- a/example/browser.js +++ b/example/browser.js @@ -28,11 +28,9 @@ const notFoundImage = const provider = new StaticJsonRpcProvider( `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}` ); -const avt = new AvatarResolver(provider, - { apiKey: { - opensea: process.env.OPENSEA_KEY - }} - ); +const avt = new AvatarResolver(provider, { + apiKey: { opensea: process.env.OPENSEA_KEY }, +}); for (let ens of ensNames) { avt .getMetadata(ens) diff --git a/example/build.js b/example/build.js index 93213ca..0e423b6 100644 --- a/example/build.js +++ b/example/build.js @@ -9,7 +9,7 @@ require('esbuild') }, outfile: 'example/dist/index.js', define: { - "process": `{ + process: `{ "env": { "INFURA_KEY": '${process.env.INFURA_KEY}', "OPENSEA_KEY": '${process.env.OPENSEA_KEY}' diff --git a/example/node.js b/example/node.js index e25cd0c..b3c98d8 100644 --- a/example/node.js +++ b/example/node.js @@ -15,7 +15,7 @@ const IPFS = 'https://cf-ipfs.com'; const provider = new StaticJsonRpcProvider( `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}` ); -const avt = new AvatarResolver(provider, { ipfs: IPFS}); +const avt = new AvatarResolver(provider, { ipfs: IPFS, apiKey: { opensea: process.env.OPENSEA_KEY }}); avt .getMetadata(ensName) .then(metadata => { diff --git a/package.json b/package.json index e5ed1bd..18eb8ed 100644 --- a/package.json +++ b/package.json @@ -60,11 +60,9 @@ "@types/url-join": "^4.0.1", "dotenv": "^16.0.0", "esbuild": "^0.14.21", - "husky": "^7.0.4", "nock": "^13.2.2", "size-limit": "^7.0.5", "tsdx": "^0.14.1", - "tslib": "^2.3.1", "typescript": "^4.5.5" }, "dependencies": { diff --git a/yarn.lock b/yarn.lock index 3079c5a..011882f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3832,11 +3832,6 @@ humanize-duration@^3.15.3: resolved "https://registry.npmjs.org/humanize-duration/-/humanize-duration-3.27.1.tgz" integrity sha512-jCVkMl+EaM80rrMrAPl96SGG4NRac53UyI1o/yAzebDntEY6K6/Fj2HOjdPg8omTqIe5Y0wPBai2q5xXrIbarA== -husky@^7.0.4: - version "7.0.4" - resolved "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz" - integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ== - iconv-lite@0.4.24, iconv-lite@^0.4.24: version "0.4.24" resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" @@ -6760,7 +6755,7 @@ tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.3, tslib@^2.3.1: +tslib@^2.0.3: version "2.3.1" resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz" integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==