@ohlabs/configuration 1.3.0 → 1.4.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/chain-slugs.js CHANGED
@@ -1,12 +1,3 @@
1
- const CHAIN_SLUGS = Object.freeze({
2
- Arbitrum: 'arbitrum',
3
- B3: 'b3',
4
- Base: 'base',
5
- Blast: 'blast',
6
- BNB: 'bnb',
7
- Ethereum: 'ethereum',
8
- Monad: 'monad',
9
- Story: 'story'
10
- });
11
-
12
- module.exports = { CHAIN_SLUGS };
1
+ const CHAIN_SLUGS = Object.freeze(require("./chain-slugs.json"));
2
+
3
+ module.exports = { CHAIN_SLUGS };
@@ -0,0 +1,10 @@
1
+ {
2
+ "Arbitrum": "arbitrum",
3
+ "B3": "b3",
4
+ "Base": "base",
5
+ "Blast": "blast",
6
+ "BNB": "bnb",
7
+ "Ethereum": "ethereum",
8
+ "Monad": "monad",
9
+ "Story": "story"
10
+ }
@@ -0,0 +1,6 @@
1
+ import chainSlugs from "./chain-slugs.json" with { type: "json" };
2
+
3
+ const CHAIN_SLUGS = Object.freeze(chainSlugs);
4
+
5
+ export { CHAIN_SLUGS };
6
+ export default CHAIN_SLUGS;
package/chain.js CHANGED
@@ -1,2 +1,2 @@
1
- const chains = require("./chain-data.json");
1
+ const chains = Object.freeze(require("./chain-data.json"));
2
2
  exports.chains = chains;
package/chains.mjs CHANGED
@@ -1,3 +1,6 @@
1
- import chains from "./chain-data.json" with { type: "json" };
1
+ import chainData from "./chain-data.json" with { type: "json" };
2
+
3
+ const chains = Object.freeze(chainData);
4
+
2
5
  export { chains };
3
6
  export default chains;