diff --git a/.pnp.cjs b/.pnp.cjs index ab03eab..ec924fc 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -725,7 +725,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["npm:5.0.1", {\ "packageLocation": "./.yarn/cache/chalk-npm-5.0.1-6afcb94227-7b45300372.zip/node_modules/chalk/",\ "packageDependencies": [\ - ["chalk", "npm:5.0.1"]\ + ["chalk", "npm:5.0.1"],\ + ["#ansi-styles", [\ + "ansi-styles",\ + "npm:6.1.0"\ + ]],\ + ["#supports-color", [\ + "supports-color",\ + "npm:9.2.2"\ + ]]\ ],\ "linkType": "HARD"\ }]\ @@ -3227,6 +3235,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["has-flag", "npm:4.0.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:9.2.2", {\ + "packageLocation": "./.yarn/cache/supports-color-npm-9.2.2-d003069e84-976d848774.zip/node_modules/supports-color/",\ + "packageDependencies": [\ + ["supports-color", "npm:9.2.2"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["supports-preserve-symlinks-flag", [\ diff --git a/.vscode/launch.json b/.vscode/launch.json index ce95a9d..3a3dbdc 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,12 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "command": "yarn test", + "name": "Run Tests", + "request": "launch", + "type": "node-terminal" + }, { "type": "node", "request": "launch", diff --git a/.yarn/cache/supports-color-npm-9.2.2-d003069e84-976d848774.zip b/.yarn/cache/supports-color-npm-9.2.2-d003069e84-976d848774.zip new file mode 100644 index 0000000..a4c7d6d Binary files /dev/null and b/.yarn/cache/supports-color-npm-9.2.2-d003069e84-976d848774.zip differ diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index e60eb2e..1ac0fb0 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/.yarnrc.yml b/.yarnrc.yml index 3bc8552..ee51183 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,3 +1,9 @@ nodeLinker: pnp yarnPath: .yarn/releases/yarn-3.2.1.cjs + +packageExtensions: + chalk@5.0.1: + dependencies: + "#ansi-styles": npm:ansi-styles@6.1.0 + "#supports-color": npm:supports-color@9.2.2 \ No newline at end of file diff --git a/src/networks/index.test.ts b/src/networks/index.test.ts new file mode 100644 index 0000000..d9a7a3f --- /dev/null +++ b/src/networks/index.test.ts @@ -0,0 +1,7 @@ +import test from 'ava'; +import { getNetworks } from '.'; + +test('networks includes ethereum', async t => { + const networks = await getNetworks(); + t.truthy(networks.find(n => n.name === 'ethereum')); +}); \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 5f29976..ce2eea2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,6 +5,20 @@ __metadata: version: 6 cacheKey: 8 +"#ansi-styles@npm:ansi-styles@6.1.0, ansi-styles@npm:^6.0.0, ansi-styles@npm:^6.1.0": + version: 6.1.0 + resolution: "ansi-styles@npm:6.1.0" + checksum: 7a7f8528c07a9d20c3a92bccd2b6bc3bb4d26e5cb775c02826921477377bd495d615d61f710d56216344b6238d1d11ef2b0348e146c5b128715578bfb3217229 + languageName: node + linkType: hard + +"#supports-color@npm:supports-color@9.2.2": + version: 9.2.2 + resolution: "supports-color@npm:9.2.2" + checksum: 976d84877402fc38c1d43b1fde20b0a8dc0283273f21cfebe4ff7507d27543cdfbeec7db108a96b82d694465f06d64e8577562b05d0520b41710088e0a33cc50 + languageName: node + linkType: hard + "@babel/helper-validator-identifier@npm:^7.16.7": version: 7.16.7 resolution: "@babel/helper-validator-identifier@npm:7.16.7" @@ -97,7 +111,7 @@ __metadata: typescript: ^4.7.4 uuid: ^8.3.2 bin: - assets-helper: dist/cli.js + assets-helper: dist/index.js languageName: unknown linkType: soft @@ -290,13 +304,6 @@ __metadata: languageName: node linkType: hard -"ansi-styles@npm:^6.0.0, ansi-styles@npm:^6.1.0": - version: 6.1.0 - resolution: "ansi-styles@npm:6.1.0" - checksum: 7a7f8528c07a9d20c3a92bccd2b6bc3bb4d26e5cb775c02826921477377bd495d615d61f710d56216344b6238d1d11ef2b0348e146c5b128715578bfb3217229 - languageName: node - linkType: hard - "anymatch@npm:~3.1.2": version: 3.1.2 resolution: "anymatch@npm:3.1.2"