@zetachain/networks
Advanced tools
Comparing version 2.3.0-athens3 to 2.3.0
{ | ||
"name": "@zetachain/networks", | ||
"version": "2.3.0-athens3", | ||
"version": "2.3.0", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"main": "dist/src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"scripts": { | ||
@@ -18,3 +18,3 @@ "output": "npx ts-node scripts/output.ts", | ||
"author": "", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"devDependencies": { | ||
@@ -42,5 +42,4 @@ "@types/node": "^20.2.0", | ||
"files": [ | ||
"dist", | ||
"data" | ||
"dist" | ||
] | ||
} |
@@ -49,2 +49,26 @@ # ZetaChain Blockchain Networks Registry | ||
### In a Browser Environment | ||
`@zetachain/networks` is released as a CommonJS project to work out of the box | ||
with the current version of Hardhat. You can use it in a browser environment by | ||
using a bundler like [Vite](https://vitejs.dev). | ||
`vite.config.ts`: | ||
```ts | ||
import { defineConfig } from "vite"; | ||
export default defineConfig({ | ||
optimizeDeps: { | ||
include: ["@zetachain/networks"], | ||
}, | ||
}); | ||
``` | ||
You can now use `@zetachain/networks` in your browser environment: | ||
```ts | ||
import { getHardhatConfigNetworks } from "@zetachain/networks"; | ||
``` | ||
## Network List Validation | ||
@@ -51,0 +75,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
24577
16
606
1
95
2
1