Skip to content

Commit 573d4ec

Browse files
committed
replacer and json features
1 parent e1dde03 commit 573d4ec

14 files changed

+755
-407
lines changed

__tests__/__snapshots__/array-newlines.json.test.ts.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
exports[`handles nested arrays with inlineArrayLimit 1`] = `
44
"{
5-
matrix: [[1, 2], [3, 4]]
5+
"matrix": [[1, 2], [3, 4]]
66
}"
77
`;
88

99
exports[`serializes arrays with newlines when length exceeds the inlineArrayLimit with space set 1`] = `
1010
"{
11-
numbers: [
11+
"numbers": [
1212
1,
1313
2,
1414
3,
@@ -20,10 +20,10 @@ exports[`serializes arrays with newlines when length exceeds the inlineArrayLimi
2020

2121
exports[`serializes arrays without newlines when length equals the inlineArrayLimit 1`] = `
2222
"{
23-
numbers: [1, 2, 3, 4, 5]
23+
"numbers": [1, 2, 3, 4, 5]
2424
}"
2525
`;
2626

27-
exports[`serializes arrays without newlines when length exceeds the inlineArrayLimit 1`] = `"{numbers: [1, 2, 3, 4, 5]}"`;
27+
exports[`serializes arrays without newlines when length exceeds the inlineArrayLimit 1`] = `"{"numbers": [1, 2, 3, 4, 5]}"`;
2828

29-
exports[`serializes arrays without newlines when length is below the inlineArrayLimit 1`] = `"{numbers: [1, 2, 3]}"`;
29+
exports[`serializes arrays without newlines when length is below the inlineArrayLimit 1`] = `"{"numbers": [1, 2, 3]}"`;

__tests__/__snapshots__/camel.assets.json.test.ts.snap

+54-54
Original file line numberDiff line numberDiff line change
@@ -2,90 +2,90 @@
22

33
exports[`assetlist 1`] = `
44
"{
5-
$schema: "../assetlist.schema.json",
6-
chainName: "comdex",
7-
assets: [
5+
"$schema": "../assetlist.schema.json",
6+
"chainName": "comdex",
7+
"assets": [
88
{
9-
description: "Native Token of Comdex Protocol",
10-
denomUnits: [
9+
"description": "Native Token of Comdex Protocol",
10+
"denomUnits": [
1111
{
12-
denom: "ucmdx",
13-
exponent: 0
12+
"denom": "ucmdx",
13+
"exponent": 0
1414
},
1515
{
16-
denom: "cmdx",
17-
exponent: 6
16+
"denom": "cmdx",
17+
"exponent": 6
1818
}
1919
],
20-
base: "ucmdx",
21-
name: "Comdex",
22-
display: "cmdx",
23-
symbol: "CMDX",
24-
logoURIs: {
25-
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.png",
26-
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg"
20+
"base": "ucmdx",
21+
"name": "Comdex",
22+
"display": "cmdx",
23+
"symbol": "CMDX",
24+
"logoURIs": {
25+
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.png",
26+
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg"
2727
},
28-
coingeckoId: "comdex",
29-
images: [
28+
"coingeckoId": "comdex",
29+
"images": [
3030
{
31-
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.png",
32-
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg"
31+
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.png",
32+
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg"
3333
}
3434
]
3535
},
3636
{
37-
description: "Governance Token of Harbor protocol on Comdex network",
38-
denomUnits: [
37+
"description": "Governance Token of Harbor protocol on Comdex network",
38+
"denomUnits": [
3939
{
40-
denom: "uharbor",
41-
exponent: 0
40+
"denom": "uharbor",
41+
"exponent": 0
4242
},
4343
{
44-
denom: "harbor",
45-
exponent: 6
44+
"denom": "harbor",
45+
"exponent": 6
4646
}
4747
],
48-
base: "uharbor",
49-
name: "Harbor",
50-
display: "harbor",
51-
symbol: "HARBOR",
52-
logoURIs: {
53-
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.png",
54-
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.svg"
48+
"base": "uharbor",
49+
"name": "Harbor",
50+
"display": "harbor",
51+
"symbol": "HARBOR",
52+
"logoURIs": {
53+
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.png",
54+
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.svg"
5555
},
56-
coingeckoId: "harbor-2",
57-
images: [
56+
"coingeckoId": "harbor-2",
57+
"images": [
5858
{
59-
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.png",
60-
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.svg"
59+
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.png",
60+
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/harbor.svg"
6161
}
6262
]
6363
},
6464
{
65-
description: "Stable Token of Harbor protocol on Comdex network",
66-
denomUnits: [
65+
"description": "Stable Token of Harbor protocol on Comdex network",
66+
"denomUnits": [
6767
{
68-
denom: "ucmst",
69-
exponent: 0
68+
"denom": "ucmst",
69+
"exponent": 0
7070
},
7171
{
72-
denom: "cmst",
73-
exponent: 6
72+
"denom": "cmst",
73+
"exponent": 6
7474
}
7575
],
76-
base: "ucmst",
77-
name: "CMST",
78-
display: "cmst",
79-
symbol: "CMST",
80-
logoURIs: {
81-
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.png",
82-
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.svg"
76+
"base": "ucmst",
77+
"name": "CMST",
78+
"display": "cmst",
79+
"symbol": "CMST",
80+
"logoURIs": {
81+
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.png",
82+
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.svg"
8383
},
84-
coingeckoId: "composite",
85-
images: [
84+
"coingeckoId": "composite",
85+
"images": [
8686
{
87-
png: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.png",
88-
svg: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.svg"
87+
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.png",
88+
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmst.svg"
8989
}
9090
]
9191
}

0 commit comments

Comments
 (0)