northstar-eva-sdk 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/northstar-eva-sdk.js +2898 -0
- package/dist/cjs/package.json +3 -0
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ const sdk = NorthstarEva.create({ network: "localnet", wallet });
|
|
|
14
14
|
// OR keep your existing AnchorProvider + read-only wallet + custom RPC (see 0.2.0):
|
|
15
15
|
const sdk = NorthstarEva.create({ provider, erRpc: ER_RPC_URL, evaProgramId });
|
|
16
16
|
```
|
|
17
|
-
> Ships compiled JS + TypeScript types — works in any Node ≥18 project (JS or TS). The three Solana libs are **peer dependencies** (install them alongside). Prefer a single drop-in file instead? See `share/` (no npm). Publishing it yourself? See [PUBLISHING.md](PUBLISHING.md).
|
|
17
|
+
> Ships compiled JS + TypeScript types — works in any Node ≥18 project (JS or TS). **Dual ESM + CommonJS**: works with both `import { NorthstarEva } from "northstar-eva-sdk"` (ESM) and `const { NorthstarEva } = require("northstar-eva-sdk")` (CommonJS / NestJS backends). The three Solana libs are **peer dependencies** (install them alongside). Prefer a single drop-in file instead? See `share/` (no npm). Publishing it yourself? See [PUBLISHING.md](PUBLISHING.md).
|
|
18
18
|
|
|
19
19
|
## Construction — one SDK, three ways (NorthStar or not)
|
|
20
20
|
|