Skip to content

Commit 38549be

Browse files
authored
Replace @iarna/toml with smol-toml to make the JS client isomorphic (#89)
1 parent 71dc3f5 commit 38549be

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

clients/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
"prepublishOnly": "pnpm build"
4848
},
4949
"dependencies": {
50-
"@iarna/toml": "^2.2.5",
5150
"@solana-program/compute-budget": "^0.15.0",
5251
"@solana-program/system": "^0.12.0",
5352
"commander": "^13.0.0",
5453
"pako": "^2.1.0",
5554
"picocolors": "^1.1.1",
55+
"smol-toml": "^1.6.1",
5656
"yaml": "^2.7.0"
5757
},
5858
"devDependencies": {

clients/js/pnpm-lock.yaml

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/js/src/fetchMetadataContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { parse as parseToml } from '@iarna/toml';
21
import { Address, assertAccountsExist, GetAccountInfoApi, GetMultipleAccountsApi, Rpc } from '@solana/kit';
2+
import { parse as parseToml } from 'smol-toml';
33
import { parse as parseYaml } from 'yaml';
44

55
import { fetchAllMaybeMetadata, fetchMetadataFromSeeds, findMetadataPda, Format, SeedArgs } from './generated';

0 commit comments

Comments
 (0)