@berachain/config 0.2.7 → 0.2.8-beta.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.
Files changed (79) hide show
  1. package/dist/bepolia.cjs +7 -1
  2. package/dist/bepolia.d.ts +4 -0
  3. package/dist/bepolia.d.ts.map +1 -1
  4. package/dist/bepolia.mjs +7 -1
  5. package/dist/chunk-6OF46MO2.mjs +135 -0
  6. package/dist/chunk-AU3LYJAB.cjs +75 -0
  7. package/dist/chunk-B2BTOQVP.cjs +25 -0
  8. package/dist/chunk-CBAAKY4N.cjs +152 -0
  9. package/dist/chunk-DEP7BIPJ.cjs +151 -0
  10. package/dist/chunk-EYYJ2UZT.cjs +10 -0
  11. package/dist/chunk-F5UIDRP6.mjs +77 -0
  12. package/dist/chunk-FEDP4MQE.cjs +135 -0
  13. package/dist/chunk-GB6ZGTAF.mjs +152 -0
  14. package/dist/chunk-KJXYSGNH.mjs +10 -0
  15. package/dist/chunk-LALEUPWL.mjs +8 -0
  16. package/dist/chunk-NF5WIUL6.cjs +77 -0
  17. package/dist/chunk-OWAB24JG.mjs +25 -0
  18. package/dist/chunk-VWRKCGMU.mjs +75 -0
  19. package/dist/chunk-XA5DMTFW.mjs +75 -0
  20. package/dist/chunk-XHPQ7VX6.mjs +151 -0
  21. package/dist/chunk-YT7WZDGI.cjs +8 -0
  22. package/dist/chunk-ZTYHPIUW.cjs +75 -0
  23. package/dist/index.cjs +10 -1
  24. package/dist/index.mjs +10 -1
  25. package/dist/internal/header-sources.cjs +409 -13
  26. package/dist/internal/header-sources.mjs +409 -13
  27. package/dist/internal/index.cjs +37 -1
  28. package/dist/internal/index.d.ts +16 -0
  29. package/dist/internal/index.d.ts.map +1 -1
  30. package/dist/internal/index.mjs +37 -1
  31. package/dist/internal/maintenance.cjs +24 -1
  32. package/dist/internal/maintenance.mjs +24 -1
  33. package/dist/internal/nextjs/index.cjs +83 -1
  34. package/dist/internal/nextjs/index.mjs +83 -1
  35. package/dist/internal/nextjs/utils/index.cjs +40 -1
  36. package/dist/internal/nextjs/utils/index.mjs +40 -1
  37. package/dist/internal/sentry/index.cjs +10 -1
  38. package/dist/internal/sentry/index.mjs +10 -1
  39. package/dist/internal/sentry/sentry.client.config.cjs +65 -1
  40. package/dist/internal/sentry/sentry.client.config.mjs +65 -1
  41. package/dist/internal/tailwind/config.d.ts +1 -1
  42. package/dist/internal/tailwind/index.cjs +237 -1
  43. package/dist/internal/tailwind/index.d.ts +1 -1
  44. package/dist/internal/tailwind/index.mjs +237 -1
  45. package/dist/internal/wagmi/index.cjs +57 -1
  46. package/dist/internal/wagmi/index.mjs +57 -1
  47. package/dist/mainnet.cjs +8 -1
  48. package/dist/mainnet.d.ts +4 -0
  49. package/dist/mainnet.d.ts.map +1 -1
  50. package/dist/mainnet.mjs +8 -1
  51. package/dist/sentry.edge.config-3Y5ABKSB.cjs +22 -0
  52. package/dist/sentry.edge.config-SIWSKDGR.mjs +22 -0
  53. package/dist/sentry.server.config-HY6I2WQ5.mjs +22 -0
  54. package/dist/sentry.server.config-ZXGUVYT6.cjs +22 -0
  55. package/dist/types.d.ts +5 -0
  56. package/dist/types.d.ts.map +1 -1
  57. package/package.json +1 -1
  58. package/dist/chunk-2GCBWNKH.mjs +0 -1
  59. package/dist/chunk-2OLL4MUY.cjs +0 -1
  60. package/dist/chunk-2RLHVELA.mjs +0 -2
  61. package/dist/chunk-5YLBFOPA.mjs +0 -1
  62. package/dist/chunk-6CZTBBJT.cjs +0 -2
  63. package/dist/chunk-DUO7UEQD.cjs +0 -1
  64. package/dist/chunk-HJ25KNL4.cjs +0 -1
  65. package/dist/chunk-HLFO7V5I.cjs +0 -1
  66. package/dist/chunk-ITASDGG4.cjs +0 -1
  67. package/dist/chunk-MS6UGFXI.mjs +0 -1
  68. package/dist/chunk-MW34QRNX.cjs +0 -1
  69. package/dist/chunk-N45AQAIZ.mjs +0 -1
  70. package/dist/chunk-O243TIHY.mjs +0 -1
  71. package/dist/chunk-QHBQ2EN5.mjs +0 -1
  72. package/dist/chunk-QYM6VRYU.mjs +0 -1
  73. package/dist/chunk-WMZLZQ6E.mjs +0 -1
  74. package/dist/chunk-X5MTSC5T.cjs +0 -1
  75. package/dist/chunk-YLWSSHG6.cjs +0 -1
  76. package/dist/sentry.edge.config-AU3IBVBN.cjs +0 -1
  77. package/dist/sentry.edge.config-PXSVFOH6.mjs +0 -1
  78. package/dist/sentry.server.config-IOCQ5KDF.cjs +0 -1
  79. package/dist/sentry.server.config-NEPRXZ2E.mjs +0 -1
@@ -1 +1,83 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkYLWSSHG6cjs = require('../../chunk-YLWSSHG6.cjs');var _chunkX5MTSC5Tcjs = require('../../chunk-X5MTSC5T.cjs');require('../../chunk-MW34QRNX.cjs');require('../../chunk-HJ25KNL4.cjs');require('../../chunk-6CZTBBJT.cjs');require('../../chunk-2OLL4MUY.cjs');var _chunkITASDGG4cjs = require('../../chunk-ITASDGG4.cjs');var _dotenv = require('dotenv'); var _dotenv2 = _interopRequireDefault(_dotenv);_dotenv2.default.config({path:["../../.env.local","../../.env"]});function c(r,{withSentry:a=!0,withPostHogReverseProxy:o=!0,appName:s}){let t={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true",NEXT_PUBLIC_BERA_APP_NAME:s},turbopack:{rules:{"*.svg":{as:"*.js",loaders:["@svgr/webpack"]}}},experimental:{webpackBuildWorker:!0},typescript:{ignoreBuildErrors:!0},...r,images:{...r.images,remotePatterns:[..._chunkYLWSSHG6cjs.a]},async rewrites(){return o?[{source:"/ph/static/:path*",destination:`https://${_chunkX5MTSC5Tcjs.b.urls.postHog.region}-assets.i.posthog.com/static/:path*`},{source:"/ph/:path*",destination:`https://${_chunkX5MTSC5Tcjs.b.urls.postHog.region}.i.posthog.com/:path*`}]:[]}};return o&&(t.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH="/ph",t.skipTrailingSlashRedirect=!0),a?_chunkITASDGG4cjs.b.call(void 0, t):t}exports.withBeraConfig = c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+ var _chunkNF5WIUL6cjs = require('../../chunk-NF5WIUL6.cjs');
4
+
5
+
6
+ var _chunkFEDP4MQEcjs = require('../../chunk-FEDP4MQE.cjs');
7
+ require('../../chunk-CBAAKY4N.cjs');
8
+ require('../../chunk-DEP7BIPJ.cjs');
9
+ require('../../chunk-AU3LYJAB.cjs');
10
+ require('../../chunk-EYYJ2UZT.cjs');
11
+
12
+
13
+ var _chunkZTYHPIUWcjs = require('../../chunk-ZTYHPIUW.cjs');
14
+
15
+ // src/internal/nextjs/index.ts
16
+ var _dotenv = require('dotenv'); var _dotenv2 = _interopRequireDefault(_dotenv);
17
+ _dotenv2.default.config({ path: ["../../.env.local", "../../.env"] });
18
+ function withBeraConfig(config, {
19
+ withSentry = true,
20
+ withPostHogReverseProxy = true,
21
+ appName
22
+ }) {
23
+ const nextConfig = {
24
+ reactStrictMode: true,
25
+ trailingSlash: true,
26
+ pageExtensions: ["ts", "tsx"],
27
+ env: {
28
+ // this is used to check if component is running in nextjs inside the package folder
29
+ NEXT_PUBLIC_IS_NEXTJS: "true",
30
+ NEXT_PUBLIC_BERA_APP_NAME: appName
31
+ },
32
+ turbopack: {
33
+ rules: {
34
+ "*.svg": {
35
+ as: "*.js",
36
+ loaders: ["@svgr/webpack"]
37
+ }
38
+ }
39
+ },
40
+ experimental: {
41
+ webpackBuildWorker: true
42
+ // optimizePackageImports: [
43
+ // "@berachain/ui",
44
+ // "@berachain/shared-ui",
45
+ // "@berachain/berajs",
46
+ // "@berachain/wagmi",
47
+ // "@berachain/config",
48
+ // "@berachain/graphql",
49
+ // ],
50
+ },
51
+ /** We already do linting and typechecking as separate tasks in CI */
52
+ typescript: { ignoreBuildErrors: true },
53
+ ...config,
54
+ images: {
55
+ ...config.images,
56
+ remotePatterns: [..._chunkNF5WIUL6cjs.IMAGE_REMOTE_PATTERNS]
57
+ },
58
+ async rewrites() {
59
+ if (!withPostHogReverseProxy) {
60
+ return [];
61
+ }
62
+ return [
63
+ {
64
+ source: "/ph/static/:path*",
65
+ destination: `https://${_chunkFEDP4MQEcjs.appConfig.urls.postHog.region}-assets.i.posthog.com/static/:path*`
66
+ },
67
+ {
68
+ source: "/ph/:path*",
69
+ destination: `https://${_chunkFEDP4MQEcjs.appConfig.urls.postHog.region}.i.posthog.com/:path*`
70
+ }
71
+ ];
72
+ }
73
+ };
74
+ if (withPostHogReverseProxy) {
75
+ nextConfig.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH = "/ph";
76
+ nextConfig.skipTrailingSlashRedirect = true;
77
+ }
78
+ if (withSentry) return _chunkZTYHPIUWcjs.withSentryConfig.call(void 0, nextConfig);
79
+ return nextConfig;
80
+ }
81
+
82
+
83
+ exports.withBeraConfig = withBeraConfig;
@@ -1 +1,83 @@
1
- import{a as n}from"../../chunk-WMZLZQ6E.mjs";import{b as e}from"../../chunk-QHBQ2EN5.mjs";import"../../chunk-QYM6VRYU.mjs";import"../../chunk-2GCBWNKH.mjs";import"../../chunk-2RLHVELA.mjs";import"../../chunk-MS6UGFXI.mjs";import{b as i}from"../../chunk-5YLBFOPA.mjs";import p from"dotenv";p.config({path:["../../.env.local","../../.env"]});function c(r,{withSentry:a=!0,withPostHogReverseProxy:o=!0,appName:s}){let t={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true",NEXT_PUBLIC_BERA_APP_NAME:s},turbopack:{rules:{"*.svg":{as:"*.js",loaders:["@svgr/webpack"]}}},experimental:{webpackBuildWorker:!0},typescript:{ignoreBuildErrors:!0},...r,images:{...r.images,remotePatterns:[...n]},async rewrites(){return o?[{source:"/ph/static/:path*",destination:`https://${e.urls.postHog.region}-assets.i.posthog.com/static/:path*`},{source:"/ph/:path*",destination:`https://${e.urls.postHog.region}.i.posthog.com/:path*`}]:[]}};return o&&(t.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH="/ph",t.skipTrailingSlashRedirect=!0),a?i(t):t}export{c as withBeraConfig};
1
+ import {
2
+ IMAGE_REMOTE_PATTERNS
3
+ } from "../../chunk-F5UIDRP6.mjs";
4
+ import {
5
+ appConfig
6
+ } from "../../chunk-6OF46MO2.mjs";
7
+ import "../../chunk-GB6ZGTAF.mjs";
8
+ import "../../chunk-XHPQ7VX6.mjs";
9
+ import "../../chunk-VWRKCGMU.mjs";
10
+ import "../../chunk-KJXYSGNH.mjs";
11
+ import {
12
+ withSentryConfig
13
+ } from "../../chunk-XA5DMTFW.mjs";
14
+
15
+ // src/internal/nextjs/index.ts
16
+ import dotenv from "dotenv";
17
+ dotenv.config({ path: ["../../.env.local", "../../.env"] });
18
+ function withBeraConfig(config, {
19
+ withSentry = true,
20
+ withPostHogReverseProxy = true,
21
+ appName
22
+ }) {
23
+ const nextConfig = {
24
+ reactStrictMode: true,
25
+ trailingSlash: true,
26
+ pageExtensions: ["ts", "tsx"],
27
+ env: {
28
+ // this is used to check if component is running in nextjs inside the package folder
29
+ NEXT_PUBLIC_IS_NEXTJS: "true",
30
+ NEXT_PUBLIC_BERA_APP_NAME: appName
31
+ },
32
+ turbopack: {
33
+ rules: {
34
+ "*.svg": {
35
+ as: "*.js",
36
+ loaders: ["@svgr/webpack"]
37
+ }
38
+ }
39
+ },
40
+ experimental: {
41
+ webpackBuildWorker: true
42
+ // optimizePackageImports: [
43
+ // "@berachain/ui",
44
+ // "@berachain/shared-ui",
45
+ // "@berachain/berajs",
46
+ // "@berachain/wagmi",
47
+ // "@berachain/config",
48
+ // "@berachain/graphql",
49
+ // ],
50
+ },
51
+ /** We already do linting and typechecking as separate tasks in CI */
52
+ typescript: { ignoreBuildErrors: true },
53
+ ...config,
54
+ images: {
55
+ ...config.images,
56
+ remotePatterns: [...IMAGE_REMOTE_PATTERNS]
57
+ },
58
+ async rewrites() {
59
+ if (!withPostHogReverseProxy) {
60
+ return [];
61
+ }
62
+ return [
63
+ {
64
+ source: "/ph/static/:path*",
65
+ destination: `https://${appConfig.urls.postHog.region}-assets.i.posthog.com/static/:path*`
66
+ },
67
+ {
68
+ source: "/ph/:path*",
69
+ destination: `https://${appConfig.urls.postHog.region}.i.posthog.com/:path*`
70
+ }
71
+ ];
72
+ }
73
+ };
74
+ if (withPostHogReverseProxy) {
75
+ nextConfig.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH = "/ph";
76
+ nextConfig.skipTrailingSlashRedirect = true;
77
+ }
78
+ if (withSentry) return withSentryConfig(nextConfig);
79
+ return nextConfig;
80
+ }
81
+ export {
82
+ withBeraConfig
83
+ };
@@ -1 +1,40 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYLWSSHG6cjs = require('../../../chunk-YLWSSHG6.cjs');function a(t){let e=t.replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1");return e=e.replace(/\*\*/g,"___DOUBLE_STAR___"),e=e.replace(/\*/g,"[^/]+"),e=e.replace(/___DOUBLE_STAR___/g,".*"),e.startsWith("^")||(e=`^${e}`),e.endsWith("$")||(e=`${e}$`),new RegExp(e)}function o(t){return t.replace(/^https?:\/\//,"")}function c(t){try{if(!t)return!1;let e=new URL(t);for(let n of _chunkYLWSSHG6cjs.a){if(n.protocol&&e.protocol.replace(":","")!==n.protocol||o(e.hostname)!==o(n.hostname))continue;if(!n.pathname||a(n.pathname).test(e.pathname))return!0}return!1}catch (e2){return!1}}exports.isAllowedImageUrl = c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNF5WIUL6cjs = require('../../../chunk-NF5WIUL6.cjs');
4
+
5
+ // src/internal/nextjs/utils/index.ts
6
+ function globToRegExp(glob) {
7
+ let re = glob.replace(/([.+?^=!:${}()|[\]/\\])/g, "\\$1");
8
+ re = re.replace(/\*\*/g, "___DOUBLE_STAR___");
9
+ re = re.replace(/\*/g, "[^/]+");
10
+ re = re.replace(/___DOUBLE_STAR___/g, ".*");
11
+ if (!re.startsWith("^")) re = `^${re}`;
12
+ if (!re.endsWith("$")) re = `${re}$`;
13
+ return new RegExp(re);
14
+ }
15
+ function normalizeHostname(hostname) {
16
+ return hostname.replace(/^https?:\/\//, "");
17
+ }
18
+ function isAllowedImageUrl(urlString) {
19
+ try {
20
+ if (!urlString) return false;
21
+ const url = new URL(urlString);
22
+ for (const pattern of _chunkNF5WIUL6cjs.IMAGE_REMOTE_PATTERNS) {
23
+ if (pattern.protocol && url.protocol.replace(":", "") !== pattern.protocol)
24
+ continue;
25
+ if (normalizeHostname(url.hostname) !== normalizeHostname(pattern.hostname))
26
+ continue;
27
+ if (!pattern.pathname) return true;
28
+ const pathnameRegex = globToRegExp(pattern.pathname);
29
+ if (pathnameRegex.test(url.pathname)) {
30
+ return true;
31
+ }
32
+ }
33
+ return false;
34
+ } catch (e) {
35
+ return false;
36
+ }
37
+ }
38
+
39
+
40
+ exports.isAllowedImageUrl = isAllowedImageUrl;
@@ -1 +1,40 @@
1
- import{a as r}from"../../../chunk-WMZLZQ6E.mjs";function a(t){let e=t.replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1");return e=e.replace(/\*\*/g,"___DOUBLE_STAR___"),e=e.replace(/\*/g,"[^/]+"),e=e.replace(/___DOUBLE_STAR___/g,".*"),e.startsWith("^")||(e=`^${e}`),e.endsWith("$")||(e=`${e}$`),new RegExp(e)}function o(t){return t.replace(/^https?:\/\//,"")}function c(t){try{if(!t)return!1;let e=new URL(t);for(let n of r){if(n.protocol&&e.protocol.replace(":","")!==n.protocol||o(e.hostname)!==o(n.hostname))continue;if(!n.pathname||a(n.pathname).test(e.pathname))return!0}return!1}catch{return!1}}export{c as isAllowedImageUrl};
1
+ import {
2
+ IMAGE_REMOTE_PATTERNS
3
+ } from "../../../chunk-F5UIDRP6.mjs";
4
+
5
+ // src/internal/nextjs/utils/index.ts
6
+ function globToRegExp(glob) {
7
+ let re = glob.replace(/([.+?^=!:${}()|[\]/\\])/g, "\\$1");
8
+ re = re.replace(/\*\*/g, "___DOUBLE_STAR___");
9
+ re = re.replace(/\*/g, "[^/]+");
10
+ re = re.replace(/___DOUBLE_STAR___/g, ".*");
11
+ if (!re.startsWith("^")) re = `^${re}`;
12
+ if (!re.endsWith("$")) re = `${re}$`;
13
+ return new RegExp(re);
14
+ }
15
+ function normalizeHostname(hostname) {
16
+ return hostname.replace(/^https?:\/\//, "");
17
+ }
18
+ function isAllowedImageUrl(urlString) {
19
+ try {
20
+ if (!urlString) return false;
21
+ const url = new URL(urlString);
22
+ for (const pattern of IMAGE_REMOTE_PATTERNS) {
23
+ if (pattern.protocol && url.protocol.replace(":", "") !== pattern.protocol)
24
+ continue;
25
+ if (normalizeHostname(url.hostname) !== normalizeHostname(pattern.hostname))
26
+ continue;
27
+ if (!pattern.pathname) return true;
28
+ const pathnameRegex = globToRegExp(pattern.pathname);
29
+ if (pathnameRegex.test(url.pathname)) {
30
+ return true;
31
+ }
32
+ }
33
+ return false;
34
+ } catch {
35
+ return false;
36
+ }
37
+ }
38
+ export {
39
+ isAllowedImageUrl
40
+ };
@@ -1 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkITASDGG4cjs = require('../../chunk-ITASDGG4.cjs');exports.onRequestError = _chunkITASDGG4cjs.c; exports.registerSentry = _chunkITASDGG4cjs.a; exports.withSentryConfig = _chunkITASDGG4cjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkZTYHPIUWcjs = require('../../chunk-ZTYHPIUW.cjs');
6
+
7
+
8
+
9
+
10
+ exports.onRequestError = _chunkZTYHPIUWcjs.onRequestError; exports.registerSentry = _chunkZTYHPIUWcjs.registerSentry; exports.withSentryConfig = _chunkZTYHPIUWcjs.withSentryConfig;
@@ -1 +1,10 @@
1
- import{a,b,c}from"../../chunk-5YLBFOPA.mjs";export{c as onRequestError,a as registerSentry,b as withSentryConfig};
1
+ import {
2
+ onRequestError,
3
+ registerSentry,
4
+ withSentryConfig
5
+ } from "../../chunk-XA5DMTFW.mjs";
6
+ export {
7
+ onRequestError,
8
+ registerSentry,
9
+ withSentryConfig
10
+ };
@@ -1 +1,65 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkHLFO7V5Icjs = require('../../chunk-HLFO7V5I.cjs');require('../../chunk-6CZTBBJT.cjs');require('../../chunk-2OLL4MUY.cjs');_chunkHLFO7V5Icjs.d&&console.log("[@berachain/config] sentryDebug init",process.env.NEXT_PUBLIC_SENTRY_DSN);function s(r,n={}){return r.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tunnel:"/monitoring-tunnel",tracesSampleRate:_chunkHLFO7V5Icjs.b,debug:_chunkHLFO7V5Icjs.d,environment:_chunkHLFO7V5Icjs.a,...n,ignoreErrors:[..._nullishCoalesce(n.ignoreErrors, () => ([])),/Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,/'set' on proxy: trap returned falsish for property/,/Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,/chrome\.runtime\.sendMessage\(\) called from a webpage/,"Could not establish connection. Receiving end does not exist.","Attempting to use a disconnected port object",/The source .+ has not been authorized yet/,/No matching key\. session topic doesn't exist/,/Failed to connect to MetaMask/,"not found rainbowkit","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.","The provider is disconnected from all chains.","Cannot destructure property 'register' of 'undefined' as it is undefined.",/\.addListener is not a function/,"KeyRing is locked","The requested method has been rate limited.",/getDefaultChain[\s\S]*this\.getProvider\(\.\.\.\) is undefined/]})}exports.initSentryClient = s;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+
4
+
5
+ var _chunkB2BTOQVPcjs = require('../../chunk-B2BTOQVP.cjs');
6
+ require('../../chunk-AU3LYJAB.cjs');
7
+ require('../../chunk-EYYJ2UZT.cjs');
8
+
9
+ // src/internal/sentry/sentry.client.config.ts
10
+ if (_chunkB2BTOQVPcjs.sentryDebug) {
11
+ console.log(
12
+ "[@berachain/config] sentryDebug init",
13
+ process.env.NEXT_PUBLIC_SENTRY_DSN
14
+ );
15
+ }
16
+ function initSentryClient(Sentry, opt = {}) {
17
+ return Sentry.init({
18
+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
19
+ tunnel: "/monitoring-tunnel",
20
+ // Adjust this value in production, or use tracesSampler for greater control
21
+ tracesSampleRate: _chunkB2BTOQVPcjs.tracesSampleRate,
22
+ // Setting this option to true will print useful information to the console while you're setting up Sentry.
23
+ debug: _chunkB2BTOQVPcjs.sentryDebug,
24
+ environment: _chunkB2BTOQVPcjs.sentryEnvironment,
25
+ ...opt,
26
+ // You can remove this option if you're not planning to use the Sentry Session Replay feature:
27
+ // integrations: [],
28
+ ignoreErrors: [
29
+ ..._nullishCoalesce(opt.ignoreErrors, () => ( [])),
30
+ // Browser extension - window global injection conflicts (ethereum, tron, solana, etc.)
31
+ /Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,
32
+ // Browser extension - proxy trap conflicts (e.g. TronLink tronlinkParams)
33
+ /'set' on proxy: trap returned falsish for property/,
34
+ // Browser extension - property descriptor redefinition
35
+ /Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,
36
+ // Chrome extension messaging called from page context
37
+ /chrome\.runtime\.sendMessage\(\) called from a webpage/,
38
+ // Chrome extension port errors
39
+ "Could not establish connection. Receiving end does not exist.",
40
+ "Attempting to use a disconnected port object",
41
+ // WalletConnect authorization / session errors
42
+ /The source .+ has not been authorized yet/,
43
+ /No matching key\. session topic doesn't exist/,
44
+ // Wallet connection failures
45
+ /Failed to connect to MetaMask/,
46
+ "not found rainbowkit",
47
+ // WalletConnect
48
+ "Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.",
49
+ // wagmi
50
+ "The provider is disconnected from all chains.",
51
+ "Cannot destructure property 'register' of 'undefined' as it is undefined.",
52
+ // Browser extension - injected provider event API (e.g. window.<wallet>.addListener)
53
+ /\.addListener is not a function/,
54
+ // Wallet extension - locked keyring state (Keplr/MetaMask), not actionable by us
55
+ "KeyRing is locked",
56
+ // Wallet-injected provider rate limiting (extension, not our API)
57
+ "The requested method has been rate limited.",
58
+ // Wallet extension - provider race accessing getDefaultChain before init
59
+ /getDefaultChain[\s\S]*this\.getProvider\(\.\.\.\) is undefined/
60
+ ]
61
+ });
62
+ }
63
+
64
+
65
+ exports.initSentryClient = initSentryClient;
@@ -1 +1,65 @@
1
- import{a as t,b as o,d as e}from"../../chunk-N45AQAIZ.mjs";import"../../chunk-2RLHVELA.mjs";import"../../chunk-MS6UGFXI.mjs";e&&console.log("[@berachain/config] sentryDebug init",process.env.NEXT_PUBLIC_SENTRY_DSN);function s(r,n={}){return r.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tunnel:"/monitoring-tunnel",tracesSampleRate:o,debug:e,environment:t,...n,ignoreErrors:[...n.ignoreErrors??[],/Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,/'set' on proxy: trap returned falsish for property/,/Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,/chrome\.runtime\.sendMessage\(\) called from a webpage/,"Could not establish connection. Receiving end does not exist.","Attempting to use a disconnected port object",/The source .+ has not been authorized yet/,/No matching key\. session topic doesn't exist/,/Failed to connect to MetaMask/,"not found rainbowkit","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.","The provider is disconnected from all chains.","Cannot destructure property 'register' of 'undefined' as it is undefined.",/\.addListener is not a function/,"KeyRing is locked","The requested method has been rate limited.",/getDefaultChain[\s\S]*this\.getProvider\(\.\.\.\) is undefined/]})}export{s as initSentryClient};
1
+ import {
2
+ sentryDebug,
3
+ sentryEnvironment,
4
+ tracesSampleRate
5
+ } from "../../chunk-OWAB24JG.mjs";
6
+ import "../../chunk-VWRKCGMU.mjs";
7
+ import "../../chunk-KJXYSGNH.mjs";
8
+
9
+ // src/internal/sentry/sentry.client.config.ts
10
+ if (sentryDebug) {
11
+ console.log(
12
+ "[@berachain/config] sentryDebug init",
13
+ process.env.NEXT_PUBLIC_SENTRY_DSN
14
+ );
15
+ }
16
+ function initSentryClient(Sentry, opt = {}) {
17
+ return Sentry.init({
18
+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
19
+ tunnel: "/monitoring-tunnel",
20
+ // Adjust this value in production, or use tracesSampler for greater control
21
+ tracesSampleRate,
22
+ // Setting this option to true will print useful information to the console while you're setting up Sentry.
23
+ debug: sentryDebug,
24
+ environment: sentryEnvironment,
25
+ ...opt,
26
+ // You can remove this option if you're not planning to use the Sentry Session Replay feature:
27
+ // integrations: [],
28
+ ignoreErrors: [
29
+ ...opt.ignoreErrors ?? [],
30
+ // Browser extension - window global injection conflicts (ethereum, tron, solana, etc.)
31
+ /Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,
32
+ // Browser extension - proxy trap conflicts (e.g. TronLink tronlinkParams)
33
+ /'set' on proxy: trap returned falsish for property/,
34
+ // Browser extension - property descriptor redefinition
35
+ /Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,
36
+ // Chrome extension messaging called from page context
37
+ /chrome\.runtime\.sendMessage\(\) called from a webpage/,
38
+ // Chrome extension port errors
39
+ "Could not establish connection. Receiving end does not exist.",
40
+ "Attempting to use a disconnected port object",
41
+ // WalletConnect authorization / session errors
42
+ /The source .+ has not been authorized yet/,
43
+ /No matching key\. session topic doesn't exist/,
44
+ // Wallet connection failures
45
+ /Failed to connect to MetaMask/,
46
+ "not found rainbowkit",
47
+ // WalletConnect
48
+ "Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.",
49
+ // wagmi
50
+ "The provider is disconnected from all chains.",
51
+ "Cannot destructure property 'register' of 'undefined' as it is undefined.",
52
+ // Browser extension - injected provider event API (e.g. window.<wallet>.addListener)
53
+ /\.addListener is not a function/,
54
+ // Wallet extension - locked keyring state (Keplr/MetaMask), not actionable by us
55
+ "KeyRing is locked",
56
+ // Wallet-injected provider rate limiting (extension, not our API)
57
+ "The requested method has been rate limited.",
58
+ // Wallet extension - provider race accessing getDefaultChain before init
59
+ /getDefaultChain[\s\S]*this\.getProvider\(\.\.\.\) is undefined/
60
+ ]
61
+ });
62
+ }
63
+ export {
64
+ initSentryClient
65
+ };
@@ -164,7 +164,7 @@ export declare const configWithNoPlugins: {
164
164
  readonly beratrail: "#96532C";
165
165
  readonly berps: "#41D6E0";
166
166
  readonly bend: "#8C7FEB";
167
- readonly honey: "#EC8A19";
167
+ readonly honey: "#FF5600";
168
168
  readonly hub: "#FEDB71";
169
169
  };
170
170
  readonly border: {