@berachain/config 0.1.18-beta.1 → 0.1.18

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.
Files changed (93) hide show
  1. package/dist/bepolia.cjs +1 -8
  2. package/dist/bepolia.mjs +1 -8
  3. package/dist/chunk-276AZYTL.cjs +1 -0
  4. package/dist/chunk-2HIIMZE4.cjs +1 -0
  5. package/dist/chunk-2OLL4MUY.cjs +1 -0
  6. package/dist/chunk-3KQLFIHT.cjs +2 -0
  7. package/dist/chunk-3WZ7JUD6.cjs +1 -0
  8. package/dist/chunk-4EBBM3AH.mjs +1 -0
  9. package/dist/chunk-4EBC3WWP.mjs +1 -0
  10. package/dist/chunk-4VDLQK6F.cjs +1 -0
  11. package/dist/chunk-BWV5APOW.cjs +1 -0
  12. package/dist/chunk-DL645PXT.mjs +1 -0
  13. package/dist/chunk-DUO7UEQD.cjs +1 -0
  14. package/dist/chunk-DVULZ7ID.cjs +1 -0
  15. package/dist/chunk-FVNATITS.mjs +1 -0
  16. package/dist/chunk-FZ23S6ID.mjs +1 -0
  17. package/dist/chunk-JYSZ2GU3.cjs +1 -0
  18. package/dist/chunk-JZXLCA2E.mjs +1 -0
  19. package/dist/chunk-LCQFSMRO.mjs +1 -0
  20. package/dist/chunk-MB5HZZ3S.mjs +1 -0
  21. package/dist/chunk-MS6UGFXI.mjs +1 -0
  22. package/dist/chunk-O243TIHY.mjs +1 -0
  23. package/dist/chunk-S2A3Z34I.mjs +2 -0
  24. package/dist/chunk-S5CMEFTY.cjs +1 -0
  25. package/dist/chunk-VPOS7FPU.cjs +1 -0
  26. package/dist/chunk-XO2H4NRK.mjs +1 -0
  27. package/dist/index.cjs +1 -11
  28. package/dist/index.mjs +1 -11
  29. package/dist/internal/edge-config/index.cjs +1 -37
  30. package/dist/internal/edge-config/index.d.cts +0 -30
  31. package/dist/internal/edge-config/index.d.ts +0 -30
  32. package/dist/internal/edge-config/index.mjs +1 -37
  33. package/dist/internal/flags/index.cjs +1 -199
  34. package/dist/internal/flags/index.mjs +1 -199
  35. package/dist/internal/header-sources.cjs +11 -283
  36. package/dist/internal/header-sources.mjs +11 -283
  37. package/dist/internal/index.cjs +1 -40
  38. package/dist/internal/index.d.cts +8 -2
  39. package/dist/internal/index.d.ts +8 -2
  40. package/dist/internal/index.mjs +1 -40
  41. package/dist/internal/maintenance.cjs +1 -26
  42. package/dist/internal/maintenance.mjs +1 -26
  43. package/dist/internal/nextjs/index.cjs +1 -85
  44. package/dist/internal/nextjs/index.mjs +1 -85
  45. package/dist/internal/nextjs/utils/index.cjs +1 -39
  46. package/dist/internal/nextjs/utils/index.mjs +1 -39
  47. package/dist/internal/sentry/index.cjs +1 -11
  48. package/dist/internal/sentry/index.mjs +1 -11
  49. package/dist/internal/sentry/sentry.client.config.cjs +1 -67
  50. package/dist/internal/sentry/sentry.client.config.mjs +1 -67
  51. package/dist/internal/tailwind/index.cjs +1 -239
  52. package/dist/internal/tailwind/index.mjs +1 -239
  53. package/dist/internal/tsup/index.cjs +1 -73
  54. package/dist/internal/tsup/index.mjs +1 -73
  55. package/dist/internal/wagmi/index.cjs +1 -60
  56. package/dist/internal/wagmi/index.mjs +1 -60
  57. package/dist/mainnet.cjs +1 -10
  58. package/dist/mainnet.d.cts +4 -1
  59. package/dist/mainnet.d.ts +4 -1
  60. package/dist/mainnet.mjs +1 -10
  61. package/dist/sentry.edge.config-DS2KE3CX.cjs +1 -0
  62. package/dist/sentry.edge.config-OEQTPQ2L.mjs +1 -0
  63. package/dist/sentry.server.config-KRS7OUMO.mjs +1 -0
  64. package/dist/sentry.server.config-RNY6FTJT.cjs +1 -0
  65. package/package.json +1 -1
  66. package/dist/chunk-2BJ55Y5U.cjs +0 -166
  67. package/dist/chunk-2JZ7QJEW.cjs +0 -84
  68. package/dist/chunk-2XYRGOX3.mjs +0 -64
  69. package/dist/chunk-3K6IUX3G.mjs +0 -25
  70. package/dist/chunk-4H4HDUCC.mjs +0 -179
  71. package/dist/chunk-6TL5ZQOM.cjs +0 -75
  72. package/dist/chunk-75ZPJI57.cjs +0 -9
  73. package/dist/chunk-7P6ASYW6.mjs +0 -9
  74. package/dist/chunk-ADH7F47T.cjs +0 -26
  75. package/dist/chunk-AP2XG6GJ.mjs +0 -84
  76. package/dist/chunk-BM46XQJA.mjs +0 -55
  77. package/dist/chunk-CAOMAWN5.mjs +0 -26
  78. package/dist/chunk-EYYJ2UZT.cjs +0 -10
  79. package/dist/chunk-FNTZIXS7.cjs +0 -179
  80. package/dist/chunk-FOUI63VD.mjs +0 -138
  81. package/dist/chunk-HJXRHQST.mjs +0 -166
  82. package/dist/chunk-KJXYSGNH.mjs +0 -10
  83. package/dist/chunk-LALEUPWL.mjs +0 -8
  84. package/dist/chunk-NQ3UKQHW.mjs +0 -75
  85. package/dist/chunk-NX4FI7G3.cjs +0 -64
  86. package/dist/chunk-ONKAV4AG.cjs +0 -25
  87. package/dist/chunk-REBIMTSJ.cjs +0 -138
  88. package/dist/chunk-WRTYGXJM.cjs +0 -55
  89. package/dist/chunk-YT7WZDGI.cjs +0 -8
  90. package/dist/sentry.edge.config-F4334LEP.cjs +0 -24
  91. package/dist/sentry.edge.config-JU55FF2U.mjs +0 -24
  92. package/dist/sentry.server.config-KFRT37Q3.cjs +0 -24
  93. package/dist/sentry.server.config-M77KFJ6J.mjs +0 -24
@@ -1,239 +1 @@
1
- import "../../chunk-7P6ASYW6.mjs";
2
-
3
- // src/internal/tailwind/index.ts
4
- import containerQueries from "@tailwindcss/container-queries";
5
- import typography from "@tailwindcss/typography";
6
- import animate from "tailwindcss-animate";
7
-
8
- // src/internal/tailwind/config.ts
9
- import colors from "tailwindcss/colors";
10
- import { fontFamily } from "tailwindcss/defaultTheme";
11
- var configWithNoPlugins = {
12
- darkMode: ["class"],
13
- safelist: ["dark", "light"],
14
- // These are relative to the project using the config
15
- content: [
16
- "src/**/*.{js,ts,jsx,tsx,mdx}",
17
- "../../packages/ui/src/*.{ts,tsx}",
18
- "../../packages/ui/src/**/*.{ts,tsx}",
19
- "../../packages/shared-ui/src/*.{ts,tsx}",
20
- "../../packages/shared-ui/src/**/*.{ts,tsx}"
21
- ],
22
- theme: {
23
- fontSize: {
24
- xs: ["0.75rem", { lineHeight: "1rem" }],
25
- md: ["1rem", { lineHeight: "1.5rem", fontWeight: "600" }],
26
- sm: ["0.875rem", { lineHeight: "1.5rem" }],
27
- xl: ["1.25rem", { lineHeight: "1.75rem" }],
28
- lg: ["1.125rem", { lineHeight: "2rem" }],
29
- "2xl": ["1.5rem", { lineHeight: "2rem" }],
30
- "3xl": ["2rem", { lineHeight: "3rem" }],
31
- "4xl": ["2.5rem", { lineHeight: "3rem" }],
32
- "5xl": ["3rem", { lineHeight: "1" }],
33
- "6xl": ["3.75rem", { lineHeight: "1" }],
34
- "7xl": ["4.5rem", { lineHeight: "1" }],
35
- "8xl": ["6rem", { lineHeight: "1" }],
36
- "9xl": ["8rem", { lineHeight: "1" }],
37
- /**
38
- * Typography sizes
39
- */
40
- h1: [
41
- "3rem",
42
- { lineHeight: "3.5rem", fontWeight: "700", letterSpacing: "-0.125rem" }
43
- ],
44
- h2: [
45
- "1.875rem",
46
- {
47
- lineHeight: "2.5rem",
48
- fontWeight: "600",
49
- letterSpacing: "-0.01406rem"
50
- }
51
- ],
52
- h3: ["1.5rem", { lineHeight: "2rem", fontWeight: "600" }],
53
- h4: [
54
- "1.25rem",
55
- {
56
- lineHeight: "1.5rem",
57
- fontWeight: "600",
58
- letterSpacing: "-0.0625rem"
59
- }
60
- ],
61
- base: ["0.875rem", { lineHeight: "1.25rem", fontWeight: "600" }],
62
- small: ["0.75rem", { lineHeight: "1rem", fontWeight: "500" }]
63
- },
64
- spacing: {
65
- 0: "0px",
66
- "2xs": "0.25rem",
67
- xs: "0.5rem",
68
- sm: "0.75rem",
69
- md: "1rem",
70
- base: "1.5rem",
71
- lg: "2rem",
72
- xl: "2.5rem",
73
- "2xl": "3rem",
74
- "3xl": "3.5rem",
75
- "4xl": "4rem",
76
- "5xl": "6rem",
77
- "6xl": "8rem"
78
- },
79
- borderRadius: {
80
- none: "0px",
81
- "2xs": "0.125rem",
82
- xs: "0.25rem",
83
- sm: "0.5rem",
84
- md: "0.75rem",
85
- lg: "1rem",
86
- xl: "1.5rem",
87
- "2xl": "2rem",
88
- full: "9999px"
89
- },
90
- aspectRatio: {
91
- auto: "auto",
92
- square: "1 / 1",
93
- video: "16 / 9",
94
- 1: "1",
95
- 2: "2",
96
- 3: "3",
97
- 4: "4",
98
- 5: "5",
99
- 6: "6",
100
- 7: "7",
101
- 8: "8",
102
- 9: "9",
103
- 10: "10",
104
- 11: "11",
105
- 12: "12",
106
- 13: "13",
107
- 14: "14",
108
- 15: "15",
109
- 16: "16"
110
- },
111
- container: {
112
- center: true,
113
- padding: {
114
- DEFAULT: "1rem",
115
- md: "2rem",
116
- lg: "4rem"
117
- },
118
- screens: {
119
- // xs: "360px",
120
- sm: "640px",
121
- md: "768px",
122
- lg: "1024px",
123
- xl: "1280px",
124
- "2xl": "1536px"
125
- }
126
- },
127
- colors: {
128
- hover: "hsl(var(--hover) / <alpha-value>)",
129
- background: {
130
- DEFAULT: "hsl(var(--background) / <alpha-value>)",
131
- secondary: "hsl(var(--background-secondary) / <alpha-value>)"
132
- },
133
- foreground: "hsl(var(--foreground) / <alpha-value>)",
134
- muted: {
135
- DEFAULT: "hsl(var(--muted) / <alpha-value>)",
136
- foreground: "hsl(var(--muted-foreground) / <alpha-value>)"
137
- },
138
- primary: {
139
- DEFAULT: "hsl(var(--primary) / <alpha-value>)",
140
- foreground: "hsl(var(--primary-foreground) / <alpha-value>)"
141
- },
142
- accent: {
143
- DEFAULT: "hsl(var(--accent) / <alpha-value>)",
144
- foreground: "hsl(var(--accent-foreground) / <alpha-value>)",
145
- faucet: "#326FE5",
146
- beratrail: "#96532C",
147
- berps: "#41D6E0",
148
- bend: "#8C7FEB",
149
- honey: "#EC8A19",
150
- hub: "#FEDB71"
151
- },
152
- border: {
153
- DEFAULT: "hsl(var(--border) / <alpha-value>)",
154
- hover: "hsl(var(--border-hover) / <alpha-value>)"
155
- },
156
- input: "hsl(var(--input) / <alpha-value>)",
157
- destructive: {
158
- DEFAULT: "hsl(var(--destructive) / <alpha-value>)",
159
- foreground: "hsl(var(--destructive-foreground) / <alpha-value>)"
160
- },
161
- warning: {
162
- DEFAULT: "hsl(var(--warning) / <alpha-value>)",
163
- foreground: "hsl(var(--warning-foreground) / <alpha-value>)"
164
- },
165
- info: {
166
- DEFAULT: "hsl(var(--info) / <alpha-value>)",
167
- foreground: "hsl(var(--info-foreground) / <alpha-value>)"
168
- },
169
- success: {
170
- DEFAULT: "hsl(var(--success) / <alpha-value>)",
171
- foreground: "hsl(var(--success-foreground) / <alpha-value>)"
172
- },
173
- ring: "hsl(var(--ring) / <alpha-value>)",
174
- white: colors.white,
175
- black: colors.black,
176
- inherit: colors.inherit,
177
- transparent: colors.transparent,
178
- current: colors.current
179
- },
180
- extend: {
181
- letterSpacing: {
182
- tight1: "-0.03125rem",
183
- tight2: "-0.0625rem"
184
- },
185
- minHeight: {
186
- minimum: "calc(100vh - 191px)",
187
- "screen-250": "calc(100vh - 214px)"
188
- },
189
- maxWidth: {
190
- "1280": "1280px"
191
- },
192
- borderColor: {
193
- DEFAULT: "hsl(var(--border) / <alpha-value>)"
194
- },
195
- padding: {
196
- start: "106px",
197
- "start-lg": "154px"
198
- },
199
- fontFamily: {
200
- sans: ["var(--font-sans)", ...fontFamily.sans],
201
- honey: ["var(--font-honey)", ...fontFamily.sans]
202
- },
203
- keyframes: {
204
- "fade-in": {
205
- from: {
206
- opacity: "0"
207
- },
208
- to: {
209
- opacity: "1"
210
- }
211
- },
212
- "accordion-down": {
213
- from: { height: "0" },
214
- to: { height: "var(--radix-accordion-content-height)" }
215
- },
216
- "accordion-up": {
217
- from: { height: "var(--radix-accordion-content-height)" },
218
- to: { height: "0" }
219
- }
220
- },
221
- animation: {
222
- "fade-in": "fade-in 0.5s linear forwards",
223
- "accordion-down": "accordion-down 0.2s ease-out",
224
- "accordion-up": "accordion-up 0.2s ease-out"
225
- }
226
- }
227
- }
228
- };
229
-
230
- // src/internal/tailwind/index.ts
231
- var config = {
232
- ...configWithNoPlugins,
233
- plugins: [animate, containerQueries, typography]
234
- };
235
- var tailwind_default = config;
236
- export {
237
- config,
238
- tailwind_default as default
239
- };
1
+ import"../../chunk-JZXLCA2E.mjs";import i from"@tailwindcss/container-queries";import t from"@tailwindcss/typography";import o from"tailwindcss-animate";import e from"tailwindcss/colors";import{fontFamily as r}from"tailwindcss/defaultTheme";var a={darkMode:["class"],safelist:["dark","light"],content:["src/**/*.{js,ts,jsx,tsx,mdx}","../../packages/ui/src/*.{ts,tsx}","../../packages/ui/src/**/*.{ts,tsx}","../../packages/shared-ui/src/*.{ts,tsx}","../../packages/shared-ui/src/**/*.{ts,tsx}"],theme:{fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],md:["1rem",{lineHeight:"1.5rem",fontWeight:"600"}],sm:["0.875rem",{lineHeight:"1.5rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],lg:["1.125rem",{lineHeight:"2rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["2rem",{lineHeight:"3rem"}],"4xl":["2.5rem",{lineHeight:"3rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}],h1:["3rem",{lineHeight:"3.5rem",fontWeight:"700",letterSpacing:"-0.125rem"}],h2:["1.875rem",{lineHeight:"2.5rem",fontWeight:"600",letterSpacing:"-0.01406rem"}],h3:["1.5rem",{lineHeight:"2rem",fontWeight:"600"}],h4:["1.25rem",{lineHeight:"1.5rem",fontWeight:"600",letterSpacing:"-0.0625rem"}],base:["0.875rem",{lineHeight:"1.25rem",fontWeight:"600"}],small:["0.75rem",{lineHeight:"1rem",fontWeight:"500"}]},spacing:{0:"0px","2xs":"0.25rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",base:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"6rem","6xl":"8rem"},borderRadius:{none:"0px","2xs":"0.125rem",xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem","2xl":"2rem",full:"9999px"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"},container:{center:!0,padding:{DEFAULT:"1rem",md:"2rem",lg:"4rem"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"}},colors:{hover:"hsl(var(--hover) / <alpha-value>)",background:{DEFAULT:"hsl(var(--background) / <alpha-value>)",secondary:"hsl(var(--background-secondary) / <alpha-value>)"},foreground:"hsl(var(--foreground) / <alpha-value>)",muted:{DEFAULT:"hsl(var(--muted) / <alpha-value>)",foreground:"hsl(var(--muted-foreground) / <alpha-value>)"},primary:{DEFAULT:"hsl(var(--primary) / <alpha-value>)",foreground:"hsl(var(--primary-foreground) / <alpha-value>)"},accent:{DEFAULT:"hsl(var(--accent) / <alpha-value>)",foreground:"hsl(var(--accent-foreground) / <alpha-value>)",faucet:"#326FE5",beratrail:"#96532C",berps:"#41D6E0",bend:"#8C7FEB",honey:"#EC8A19",hub:"#FEDB71"},border:{DEFAULT:"hsl(var(--border) / <alpha-value>)",hover:"hsl(var(--border-hover) / <alpha-value>)"},input:"hsl(var(--input) / <alpha-value>)",destructive:{DEFAULT:"hsl(var(--destructive) / <alpha-value>)",foreground:"hsl(var(--destructive-foreground) / <alpha-value>)"},warning:{DEFAULT:"hsl(var(--warning) / <alpha-value>)",foreground:"hsl(var(--warning-foreground) / <alpha-value>)"},info:{DEFAULT:"hsl(var(--info) / <alpha-value>)",foreground:"hsl(var(--info-foreground) / <alpha-value>)"},success:{DEFAULT:"hsl(var(--success) / <alpha-value>)",foreground:"hsl(var(--success-foreground) / <alpha-value>)"},ring:"hsl(var(--ring) / <alpha-value>)",white:e.white,black:e.black,inherit:e.inherit,transparent:e.transparent,current:e.current},extend:{letterSpacing:{tight1:"-0.03125rem",tight2:"-0.0625rem"},minHeight:{minimum:"calc(100vh - 191px)","screen-250":"calc(100vh - 214px)"},maxWidth:{1280:"1280px"},borderColor:{DEFAULT:"hsl(var(--border) / <alpha-value>)"},padding:{start:"106px","start-lg":"154px"},fontFamily:{sans:["var(--font-sans)",...r.sans],honey:["var(--font-honey)",...r.sans]},keyframes:{"fade-in":{from:{opacity:"0"},to:{opacity:"1"}},"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"fade-in":"fade-in 0.5s linear forwards","accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}}};var n={...a,plugins:[o,i,t]},p=n;export{n as config,p as default};
@@ -1,73 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('../../chunk-75ZPJI57.cjs');
2
-
3
- // src/internal/tsup/index.ts
4
- var _child_process = require('child_process');
5
- var _tsup = require('tsup');
6
- function applyDefaultConfig(userConfig, opts) {
7
- if (Array.isArray(userConfig)) {
8
- return userConfig.map((c) => applyDefaultConfig(c, opts));
9
- }
10
- const isPrepublish = process.argv.includes("--prepublish");
11
- const sourcemap = process.argv.includes("--sourcemap");
12
- const hasCjs = isPrepublish || process.argv.includes("--cjs");
13
- const hasEsm = isPrepublish || !hasCjs || process.argv.includes("--esm");
14
- const format = [];
15
- if (hasEsm) {
16
- format.push("esm");
17
- }
18
- if (hasCjs) {
19
- format.push("cjs");
20
- }
21
- const minify = isPrepublish || process.argv.includes("--minify");
22
- const isDeclarationOnly = typeof opts.dts === "object" && opts.dts.only;
23
- const defaultConfig = {
24
- format,
25
- clean: !opts.watch && // if we're only running check-types, we won't clean dist so that running processes are not interrupted
26
- !isDeclarationOnly,
27
- splitting: true,
28
- outExtension({ format: format2 }) {
29
- return { js: format2 === "esm" ? ".mjs" : ".cjs" };
30
- },
31
- outDir: "dist",
32
- skipNodeModulesBundle: true,
33
- noExternal: ["@berachain/utils"],
34
- minify,
35
- // Whether to minify the output
36
- sourcemap: process.env.UPLOAD_SOURCEMAPS === "true" || sourcemap,
37
- // Whether to generate sourcemaps
38
- // Whether to generate TypeScript declaration files.
39
- // Be careful and add this to turbo.json or some builds might fail when using turbo remote cache
40
- dts: process.env.VERCEL !== "1",
41
- async onSuccess() {
42
- _child_process.execSync.call(void 0,
43
- `find dist -name "*.cjs" -exec perl -pi -e 's/return await /return await /g' {} +`
44
- );
45
- },
46
- esbuildOptions: (esbuildOptions, o) => {
47
- esbuildOptions.jsx = "automatic";
48
- esbuildOptions.sourceRoot = "";
49
- _optionalChain([userConfig, 'access', _ => _.esbuildOptions, 'optionalCall', _2 => _2(esbuildOptions, o)]);
50
- }
51
- };
52
- return {
53
- ...defaultConfig,
54
- ...userConfig
55
- };
56
- }
57
- var beraTsupConfig = (config) => {
58
- return _tsup.defineConfig.call(void 0, async (opts) => {
59
- let userConfig;
60
- if (typeof config === "function") {
61
- userConfig = await config(opts);
62
- } else {
63
- userConfig = config;
64
- }
65
- if (Array.isArray(userConfig)) {
66
- return userConfig.map((c) => applyDefaultConfig(c, opts));
67
- }
68
- return applyDefaultConfig(userConfig, opts);
69
- });
70
- };
71
-
72
-
73
- exports.beraTsupConfig = beraTsupConfig;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('../../chunk-4VDLQK6F.cjs');var _child_process = require('child_process');var _tsup = require('tsup');function r(e,t){if(Array.isArray(e))return e.map(i=>r(i,t));let s=process.argv.includes("--prepublish"),n=process.argv.includes("--sourcemap"),a=s||process.argv.includes("--cjs"),p=s||!a||process.argv.includes("--esm"),o=[];p&&o.push("esm"),a&&o.push("cjs");let c=s||process.argv.includes("--minify"),u=typeof t.dts=="object"&&t.dts.only;return{...{format:o,clean:!t.watch&&!u,splitting:!0,outExtension({format:i}){return{js:i==="esm"?".mjs":".cjs"}},outDir:"dist",skipNodeModulesBundle:!0,noExternal:["@berachain/utils"],minify:c,sourcemap:process.env.UPLOAD_SOURCEMAPS==="true"||n,dts:process.env.VERCEL!=="1",async onSuccess(){_child_process.execSync.call(void 0, `find dist -name "*.cjs" -exec perl -pi -e 's/return await /return await /g' {} +`)},esbuildOptions:(i,m)=>{i.jsx="automatic",i.sourceRoot="",_optionalChain([e, 'access', _ => _.esbuildOptions, 'optionalCall', _2 => _2(i,m)])}},...e}}var j=e=>_tsup.defineConfig.call(void 0, async t=>{let s;return typeof e=="function"?s=await e(t):s=e,Array.isArray(s)?s.map(n=>r(n,t)):r(s,t)});exports.beraTsupConfig = j;
@@ -1,73 +1 @@
1
- import "../../chunk-7P6ASYW6.mjs";
2
-
3
- // src/internal/tsup/index.ts
4
- import { execSync } from "child_process";
5
- import { defineConfig } from "tsup";
6
- function applyDefaultConfig(userConfig, opts) {
7
- if (Array.isArray(userConfig)) {
8
- return userConfig.map((c) => applyDefaultConfig(c, opts));
9
- }
10
- const isPrepublish = process.argv.includes("--prepublish");
11
- const sourcemap = process.argv.includes("--sourcemap");
12
- const hasCjs = isPrepublish || process.argv.includes("--cjs");
13
- const hasEsm = isPrepublish || !hasCjs || process.argv.includes("--esm");
14
- const format = [];
15
- if (hasEsm) {
16
- format.push("esm");
17
- }
18
- if (hasCjs) {
19
- format.push("cjs");
20
- }
21
- const minify = isPrepublish || process.argv.includes("--minify");
22
- const isDeclarationOnly = typeof opts.dts === "object" && opts.dts.only;
23
- const defaultConfig = {
24
- format,
25
- clean: !opts.watch && // if we're only running check-types, we won't clean dist so that running processes are not interrupted
26
- !isDeclarationOnly,
27
- splitting: true,
28
- outExtension({ format: format2 }) {
29
- return { js: format2 === "esm" ? ".mjs" : ".cjs" };
30
- },
31
- outDir: "dist",
32
- skipNodeModulesBundle: true,
33
- noExternal: ["@berachain/utils"],
34
- minify,
35
- // Whether to minify the output
36
- sourcemap: process.env.UPLOAD_SOURCEMAPS === "true" || sourcemap,
37
- // Whether to generate sourcemaps
38
- // Whether to generate TypeScript declaration files.
39
- // Be careful and add this to turbo.json or some builds might fail when using turbo remote cache
40
- dts: process.env.VERCEL !== "1",
41
- async onSuccess() {
42
- execSync(
43
- `find dist -name "*.cjs" -exec perl -pi -e 's/returnawait /return await /g' {} +`
44
- );
45
- },
46
- esbuildOptions: (esbuildOptions, o) => {
47
- esbuildOptions.jsx = "automatic";
48
- esbuildOptions.sourceRoot = "";
49
- userConfig.esbuildOptions?.(esbuildOptions, o);
50
- }
51
- };
52
- return {
53
- ...defaultConfig,
54
- ...userConfig
55
- };
56
- }
57
- var beraTsupConfig = (config) => {
58
- return defineConfig(async (opts) => {
59
- let userConfig;
60
- if (typeof config === "function") {
61
- userConfig = await config(opts);
62
- } else {
63
- userConfig = config;
64
- }
65
- if (Array.isArray(userConfig)) {
66
- return userConfig.map((c) => applyDefaultConfig(c, opts));
67
- }
68
- return applyDefaultConfig(userConfig, opts);
69
- });
70
- };
71
- export {
72
- beraTsupConfig
73
- };
1
+ import"../../chunk-JZXLCA2E.mjs";import{execSync as l}from"child_process";import{defineConfig as O}from"tsup";function r(e,t){if(Array.isArray(e))return e.map(i=>r(i,t));let s=process.argv.includes("--prepublish"),n=process.argv.includes("--sourcemap"),a=s||process.argv.includes("--cjs"),p=s||!a||process.argv.includes("--esm"),o=[];p&&o.push("esm"),a&&o.push("cjs");let c=s||process.argv.includes("--minify"),u=typeof t.dts=="object"&&t.dts.only;return{...{format:o,clean:!t.watch&&!u,splitting:!0,outExtension({format:i}){return{js:i==="esm"?".mjs":".cjs"}},outDir:"dist",skipNodeModulesBundle:!0,noExternal:["@berachain/utils"],minify:c,sourcemap:process.env.UPLOAD_SOURCEMAPS==="true"||n,dts:process.env.VERCEL!=="1",async onSuccess(){l(`find dist -name "*.cjs" -exec perl -pi -e 's/returnawait /return await /g' {} +`)},esbuildOptions:(i,m)=>{i.jsx="automatic",i.sourceRoot="",e.esbuildOptions?.(i,m)}},...e}}var j=e=>O(async t=>{let s;return typeof e=="function"?s=await e(t):s=e,Array.isArray(s)?s.map(n=>r(n,t)):r(s,t)});export{j as beraTsupConfig};
@@ -1,60 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-REBIMTSJ.cjs');
2
- require('../../chunk-FNTZIXS7.cjs');
3
- require('../../chunk-2BJ55Y5U.cjs');
4
-
5
-
6
-
7
-
8
-
9
- var _chunkWRTYGXJMcjs = require('../../chunk-WRTYGXJM.cjs');
10
-
11
-
12
- var _chunkADH7F47Tcjs = require('../../chunk-ADH7F47T.cjs');
13
- require('../../chunk-EYYJ2UZT.cjs');
14
- require('../../chunk-75ZPJI57.cjs');
15
-
16
- // src/internal/wagmi/index.ts
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
- var _chains = require('viem/chains');
28
- var defaultChain = _chunkADH7F47Tcjs.defaultChainId === _chains.berachain.id ? _chains.berachain : _chains.berachainBepolia;
29
- var urls = [
30
- _chunkWRTYGXJMcjs.privateRcpUrl,
31
- _chunkWRTYGXJMcjs.jsonRpcUrl,
32
- _chunkWRTYGXJMcjs.alchemyJsonRpcUrl,
33
- _chunkWRTYGXJMcjs.publicJsonRpcUrl
34
- ].filter(Boolean);
35
- var externalChains = [
36
- _chains.mainnet,
37
- _chains.polygon,
38
- _chains.optimism,
39
- _chains.base,
40
- _chains.bsc,
41
- _chains.avalanche,
42
- _chains.arbitrum
43
- ];
44
- var chainIdToName = [
45
- ...externalChains,
46
- _chains.berachain,
47
- _chains.berachainBepolia
48
- ].reduce(
49
- (acc, chain) => {
50
- acc[chain.id] = chain.name;
51
- return acc;
52
- },
53
- {}
54
- );
55
-
56
-
57
-
58
-
59
-
60
- exports.chainIdToName = chainIdToName; exports.defaultChain = defaultChain; exports.externalChains = externalChains; exports.urls = urls;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-BWV5APOW.cjs');require('../../chunk-S5CMEFTY.cjs');require('../../chunk-2HIIMZE4.cjs');var _chunk276AZYTLcjs = require('../../chunk-276AZYTL.cjs');var _chunk3KQLFIHTcjs = require('../../chunk-3KQLFIHT.cjs');require('../../chunk-2OLL4MUY.cjs');require('../../chunk-4VDLQK6F.cjs');var _chains = require('viem/chains');var x=_chunk3KQLFIHTcjs.a===_chains.berachain.id?_chains.berachain:_chains.berachainBepolia,g= exports.urls =[_chunk276AZYTLcjs.g,_chunk276AZYTLcjs.e,_chunk276AZYTLcjs.f,_chunk276AZYTLcjs.d].filter(Boolean),b= exports.externalChains =[_chains.mainnet,_chains.polygon,_chains.optimism,_chains.base,_chains.bsc,_chains.avalanche,_chains.arbitrum],U= exports.chainIdToName =[...b,_chains.berachain,_chains.berachainBepolia].reduce((n,r)=>(n[r.id]=r.name,n),{});exports.chainIdToName = U; exports.defaultChain = x; exports.externalChains = b; exports.urls = g;
@@ -1,60 +1 @@
1
- import "../../chunk-FOUI63VD.mjs";
2
- import "../../chunk-4H4HDUCC.mjs";
3
- import "../../chunk-HJXRHQST.mjs";
4
- import {
5
- alchemyJsonRpcUrl,
6
- jsonRpcUrl,
7
- privateRcpUrl,
8
- publicJsonRpcUrl
9
- } from "../../chunk-BM46XQJA.mjs";
10
- import {
11
- defaultChainId
12
- } from "../../chunk-CAOMAWN5.mjs";
13
- import "../../chunk-KJXYSGNH.mjs";
14
- import "../../chunk-7P6ASYW6.mjs";
15
-
16
- // src/internal/wagmi/index.ts
17
- import {
18
- arbitrum,
19
- avalanche,
20
- base,
21
- berachain,
22
- berachainBepolia,
23
- bsc,
24
- mainnet,
25
- optimism,
26
- polygon
27
- } from "viem/chains";
28
- var defaultChain = defaultChainId === berachain.id ? berachain : berachainBepolia;
29
- var urls = [
30
- privateRcpUrl,
31
- jsonRpcUrl,
32
- alchemyJsonRpcUrl,
33
- publicJsonRpcUrl
34
- ].filter(Boolean);
35
- var externalChains = [
36
- mainnet,
37
- polygon,
38
- optimism,
39
- base,
40
- bsc,
41
- avalanche,
42
- arbitrum
43
- ];
44
- var chainIdToName = [
45
- ...externalChains,
46
- berachain,
47
- berachainBepolia
48
- ].reduce(
49
- (acc, chain) => {
50
- acc[chain.id] = chain.name;
51
- return acc;
52
- },
53
- {}
54
- );
55
- export {
56
- chainIdToName,
57
- defaultChain,
58
- externalChains,
59
- urls
60
- };
1
+ import"../../chunk-MB5HZZ3S.mjs";import"../../chunk-LCQFSMRO.mjs";import"../../chunk-4EBC3WWP.mjs";import{d as e,e as o,f as t,g as s}from"../../chunk-4EBBM3AH.mjs";import{a as i}from"../../chunk-S2A3Z34I.mjs";import"../../chunk-MS6UGFXI.mjs";import"../../chunk-JZXLCA2E.mjs";import{arbitrum as c,avalanche as l,base as h,berachain as a,berachainBepolia as p,bsc as d,mainnet as m,optimism as C,polygon as u}from"viem/chains";var x=i===a.id?a:p,g=[s,o,t,e].filter(Boolean),b=[m,u,C,h,d,l,c],U=[...b,a,p].reduce((n,r)=>(n[r.id]=r.name,n),{});export{U as chainIdToName,x as defaultChain,b as externalChains,g as urls};
package/dist/mainnet.cjs CHANGED
@@ -1,10 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunk2BJ55Y5Ucjs = require('./chunk-2BJ55Y5U.cjs');
4
- require('./chunk-WRTYGXJM.cjs');
5
- require('./chunk-ADH7F47T.cjs');
6
- require('./chunk-EYYJ2UZT.cjs');
7
- require('./chunk-75ZPJI57.cjs');
8
-
9
-
10
- exports.mainnet = _chunk2BJ55Y5Ucjs.mainnet;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2HIIMZE4cjs = require('./chunk-2HIIMZE4.cjs');require('./chunk-276AZYTL.cjs');require('./chunk-3KQLFIHT.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');exports.mainnet = _chunk2HIIMZE4cjs.a;
@@ -42,7 +42,10 @@ declare const mainnet: {
42
42
  readonly name: "Berachain Backend";
43
43
  readonly uri: string;
44
44
  };
45
- readonly beep: null;
45
+ readonly beep: {
46
+ uri: string;
47
+ name: string;
48
+ } | null;
46
49
  readonly bex: {
47
50
  readonly chainName: "BERACHAIN";
48
51
  readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
package/dist/mainnet.d.ts CHANGED
@@ -42,7 +42,10 @@ declare const mainnet: {
42
42
  readonly name: "Berachain Backend";
43
43
  readonly uri: string;
44
44
  };
45
- readonly beep: null;
45
+ readonly beep: {
46
+ uri: string;
47
+ name: string;
48
+ } | null;
46
49
  readonly bex: {
47
50
  readonly chainName: "BERACHAIN";
48
51
  readonly vault: "0x4Be03f781C497A489E3cB0287833452cA9B9E80B";
package/dist/mainnet.mjs CHANGED
@@ -1,10 +1 @@
1
- import {
2
- mainnet
3
- } from "./chunk-HJXRHQST.mjs";
4
- import "./chunk-BM46XQJA.mjs";
5
- import "./chunk-CAOMAWN5.mjs";
6
- import "./chunk-KJXYSGNH.mjs";
7
- import "./chunk-7P6ASYW6.mjs";
8
- export {
9
- mainnet
10
- };
1
+ import{a}from"./chunk-4EBC3WWP.mjs";import"./chunk-4EBBM3AH.mjs";import"./chunk-S2A3Z34I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";export{a as mainnet};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJYSZ2GU3cjs = require('./chunk-JYSZ2GU3.cjs');require('./chunk-276AZYTL.cjs');require('./chunk-3KQLFIHT.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');function p(t,r={}){return t.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:_chunkJYSZ2GU3cjs.b,environment:_chunkJYSZ2GU3cjs.a,debug:!1,...r})}exports.initSentryEdge = p;
@@ -0,0 +1 @@
1
+ import{a as e,b as n}from"./chunk-DL645PXT.mjs";import"./chunk-4EBBM3AH.mjs";import"./chunk-S2A3Z34I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";function p(t,r={}){return t.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:n,environment:e,debug:!1,...r})}export{p as initSentryEdge};
@@ -0,0 +1 @@
1
+ import{a as e,b as n}from"./chunk-DL645PXT.mjs";import"./chunk-4EBBM3AH.mjs";import"./chunk-S2A3Z34I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";function p(t,r={}){return t.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:n,environment:e,debug:!1,...r})}export{p as initSentryServer};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJYSZ2GU3cjs = require('./chunk-JYSZ2GU3.cjs');require('./chunk-276AZYTL.cjs');require('./chunk-3KQLFIHT.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');function p(t,r={}){return t.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tracesSampleRate:_chunkJYSZ2GU3cjs.b,environment:_chunkJYSZ2GU3cjs.a,debug:!1,...r})}exports.initSentryServer = p;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berachain/config",
3
- "version": "0.1.18-beta.1",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",