@berachain/config 0.2.8-beta.0 → 0.2.8
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/dist/bepolia.cjs +1 -7
- package/dist/bepolia.mjs +1 -7
- package/dist/chunk-2GCBWNKH.mjs +1 -0
- package/dist/chunk-2OLL4MUY.cjs +1 -0
- package/dist/chunk-2RLHVELA.mjs +2 -0
- package/dist/chunk-5YLBFOPA.mjs +1 -0
- package/dist/chunk-6CZTBBJT.cjs +2 -0
- package/dist/chunk-DUO7UEQD.cjs +1 -0
- package/dist/chunk-HJ25KNL4.cjs +1 -0
- package/dist/chunk-HLFO7V5I.cjs +1 -0
- package/dist/chunk-ITASDGG4.cjs +1 -0
- package/dist/chunk-MS6UGFXI.mjs +1 -0
- package/dist/chunk-MW34QRNX.cjs +1 -0
- package/dist/chunk-N45AQAIZ.mjs +1 -0
- package/dist/chunk-O243TIHY.mjs +1 -0
- package/dist/chunk-QHBQ2EN5.mjs +1 -0
- package/dist/chunk-QYM6VRYU.mjs +1 -0
- package/dist/chunk-WMZLZQ6E.mjs +1 -0
- package/dist/chunk-X5MTSC5T.cjs +1 -0
- package/dist/chunk-YLWSSHG6.cjs +1 -0
- package/dist/index.cjs +1 -10
- package/dist/index.mjs +1 -10
- package/dist/internal/header-sources.cjs +13 -409
- package/dist/internal/header-sources.d.ts +11 -1
- package/dist/internal/header-sources.d.ts.map +1 -1
- package/dist/internal/header-sources.mjs +13 -409
- package/dist/internal/index.cjs +1 -37
- package/dist/internal/index.mjs +1 -37
- package/dist/internal/maintenance.cjs +1 -24
- package/dist/internal/maintenance.mjs +1 -24
- package/dist/internal/nextjs/index.cjs +1 -83
- package/dist/internal/nextjs/index.mjs +1 -83
- package/dist/internal/nextjs/utils/index.cjs +1 -40
- package/dist/internal/nextjs/utils/index.mjs +1 -40
- package/dist/internal/sentry/index.cjs +1 -10
- package/dist/internal/sentry/index.mjs +1 -10
- package/dist/internal/sentry/sentry.client.config.cjs +1 -65
- package/dist/internal/sentry/sentry.client.config.mjs +1 -65
- package/dist/internal/tailwind/index.cjs +1 -237
- package/dist/internal/tailwind/index.mjs +1 -237
- package/dist/internal/wagmi/index.cjs +1 -57
- package/dist/internal/wagmi/index.mjs +1 -57
- package/dist/mainnet.cjs +1 -8
- package/dist/mainnet.mjs +1 -8
- package/dist/sentry.edge.config-AU3IBVBN.cjs +1 -0
- package/dist/sentry.edge.config-PXSVFOH6.mjs +1 -0
- package/dist/sentry.server.config-IOCQ5KDF.cjs +1 -0
- package/dist/sentry.server.config-NEPRXZ2E.mjs +1 -0
- package/package.json +1 -1
- package/dist/chunk-4AMLYLHZ.cjs +0 -144
- package/dist/chunk-4DGMTEOQ.mjs +0 -144
- package/dist/chunk-AU3LYJAB.cjs +0 -75
- package/dist/chunk-B2BTOQVP.cjs +0 -25
- package/dist/chunk-EYYJ2UZT.cjs +0 -10
- package/dist/chunk-F5UIDRP6.mjs +0 -77
- package/dist/chunk-G446M2AV.cjs +0 -135
- package/dist/chunk-GFHZDTK3.mjs +0 -135
- package/dist/chunk-KJXYSGNH.mjs +0 -10
- package/dist/chunk-LALEUPWL.mjs +0 -8
- package/dist/chunk-MNIORAK3.cjs +0 -148
- package/dist/chunk-NF5WIUL6.cjs +0 -77
- package/dist/chunk-OWAB24JG.mjs +0 -25
- package/dist/chunk-UKXTPLZ5.mjs +0 -148
- package/dist/chunk-VWRKCGMU.mjs +0 -75
- package/dist/chunk-XA5DMTFW.mjs +0 -75
- package/dist/chunk-YT7WZDGI.cjs +0 -8
- package/dist/chunk-ZTYHPIUW.cjs +0 -75
- package/dist/sentry.edge.config-3Y5ABKSB.cjs +0 -22
- package/dist/sentry.edge.config-SIWSKDGR.mjs +0 -22
- package/dist/sentry.server.config-HY6I2WQ5.mjs +0 -22
- package/dist/sentry.server.config-ZXGUVYT6.cjs +0 -22
package/dist/chunk-XA5DMTFW.mjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
// src/internal/sentry/index.ts
|
|
2
|
-
import * as Sentry from "@sentry/nextjs";
|
|
3
|
-
async function registerSentry(opt = {}) {
|
|
4
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
5
|
-
const { initSentryEdge } = await import("./sentry.edge.config-SIWSKDGR.mjs");
|
|
6
|
-
initSentryEdge(Sentry, opt);
|
|
7
|
-
} else if (process.env.NEXT_RUNTIME === "nodejs") {
|
|
8
|
-
const { initSentryServer } = await import("./sentry.server.config-HY6I2WQ5.mjs");
|
|
9
|
-
initSentryServer(Sentry, opt);
|
|
10
|
-
} else {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function withSentryConfig2(config) {
|
|
14
|
-
const _config = {
|
|
15
|
-
...config,
|
|
16
|
-
env: {
|
|
17
|
-
...config.env,
|
|
18
|
-
// This is needed for sentry to know the environment.
|
|
19
|
-
VERCEL_TARGET_ENV: process.env.VERCEL_TARGET_ENV
|
|
20
|
-
},
|
|
21
|
-
webpack: (wpConfig, args) => {
|
|
22
|
-
if (args.isServer && !args.dev && process.env.UPLOAD_SOURCEMAPS === "true") {
|
|
23
|
-
wpConfig.devtool = "source-map";
|
|
24
|
-
}
|
|
25
|
-
return config.webpack?.(wpConfig, args) ?? wpConfig;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
return Sentry.withSentryConfig(_config, {
|
|
29
|
-
// For all available options, see:
|
|
30
|
-
// https://github.com/getsentry/sentry-webpack-plugin#options
|
|
31
|
-
// Suppresses source map uploading logs during build
|
|
32
|
-
// silent: process.env.NODE_ENV === "development",
|
|
33
|
-
org: process.env.SENTRY_ORG,
|
|
34
|
-
project: process.env.SENTRY_PROJECT,
|
|
35
|
-
telemetry: false,
|
|
36
|
-
reactComponentAnnotation: {
|
|
37
|
-
enabled: process.env.UPLOAD_SOURCEMAPS === "true"
|
|
38
|
-
},
|
|
39
|
-
// For all available options, see:
|
|
40
|
-
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
|
41
|
-
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
|
42
|
-
widenClientFileUpload: process.env.UPLOAD_SOURCEMAPS === "true",
|
|
43
|
-
sourcemaps: {
|
|
44
|
-
disable: process.env.UPLOAD_SOURCEMAPS !== "true"
|
|
45
|
-
// deleteSourcemapsAfterUpload: true,
|
|
46
|
-
},
|
|
47
|
-
debug: process.env.UPLOAD_SOURCEMAPS === "true",
|
|
48
|
-
// sourcemaps: {
|
|
49
|
-
// disable: false,
|
|
50
|
-
// // disable: !["production", "staging"].includes(
|
|
51
|
-
// // process.env.VERCEL_TARGET_ENV ?? "",
|
|
52
|
-
// // ),
|
|
53
|
-
// assets,
|
|
54
|
-
// // deleteSourcemapsAfterUpload: true,
|
|
55
|
-
// },
|
|
56
|
-
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
|
|
57
|
-
tunnelRoute: "/monitoring-tunnel"
|
|
58
|
-
// Hides source maps from generated client bundles
|
|
59
|
-
// hideSourceMaps: true,
|
|
60
|
-
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
|
61
|
-
// disableLogger: true,
|
|
62
|
-
// Enables automatic instrumentation of Vercel Cron Monitors.
|
|
63
|
-
// See the following for more information:
|
|
64
|
-
// https://docs.sentry.io/product/crons/
|
|
65
|
-
// https://vercel.com/docs/cron-jobs
|
|
66
|
-
// automaticVercelMonitors: true,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
var onRequestError = Sentry.captureRequestError;
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
registerSentry,
|
|
73
|
-
withSentryConfig2 as withSentryConfig,
|
|
74
|
-
onRequestError
|
|
75
|
-
};
|
package/dist/chunk-YT7WZDGI.cjs
DELETED
package/dist/chunk-ZTYHPIUW.cjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; }// src/internal/sentry/index.ts
|
|
2
|
-
var _nextjs = require('@sentry/nextjs'); var Sentry = _interopRequireWildcard(_nextjs);
|
|
3
|
-
async function registerSentry(opt = {}) {
|
|
4
|
-
if (process.env.NEXT_RUNTIME === "edge") {
|
|
5
|
-
const { initSentryEdge } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.edge.config-3Y5ABKSB.cjs")));
|
|
6
|
-
initSentryEdge(Sentry, opt);
|
|
7
|
-
} else if (process.env.NEXT_RUNTIME === "nodejs") {
|
|
8
|
-
const { initSentryServer } = await Promise.resolve().then(() => _interopRequireWildcard(require("./sentry.server.config-ZXGUVYT6.cjs")));
|
|
9
|
-
initSentryServer(Sentry, opt);
|
|
10
|
-
} else {
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function withSentryConfig2(config) {
|
|
14
|
-
const _config = {
|
|
15
|
-
...config,
|
|
16
|
-
env: {
|
|
17
|
-
...config.env,
|
|
18
|
-
// This is needed for sentry to know the environment.
|
|
19
|
-
VERCEL_TARGET_ENV: process.env.VERCEL_TARGET_ENV
|
|
20
|
-
},
|
|
21
|
-
webpack: (wpConfig, args) => {
|
|
22
|
-
if (args.isServer && !args.dev && process.env.UPLOAD_SOURCEMAPS === "true") {
|
|
23
|
-
wpConfig.devtool = "source-map";
|
|
24
|
-
}
|
|
25
|
-
return _nullishCoalesce(_optionalChain([config, 'access', _ => _.webpack, 'optionalCall', _2 => _2(wpConfig, args)]), () => ( wpConfig));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
return Sentry.withSentryConfig(_config, {
|
|
29
|
-
// For all available options, see:
|
|
30
|
-
// https://github.com/getsentry/sentry-webpack-plugin#options
|
|
31
|
-
// Suppresses source map uploading logs during build
|
|
32
|
-
// silent: process.env.NODE_ENV === "development",
|
|
33
|
-
org: process.env.SENTRY_ORG,
|
|
34
|
-
project: process.env.SENTRY_PROJECT,
|
|
35
|
-
telemetry: false,
|
|
36
|
-
reactComponentAnnotation: {
|
|
37
|
-
enabled: process.env.UPLOAD_SOURCEMAPS === "true"
|
|
38
|
-
},
|
|
39
|
-
// For all available options, see:
|
|
40
|
-
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
|
41
|
-
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
|
42
|
-
widenClientFileUpload: process.env.UPLOAD_SOURCEMAPS === "true",
|
|
43
|
-
sourcemaps: {
|
|
44
|
-
disable: process.env.UPLOAD_SOURCEMAPS !== "true"
|
|
45
|
-
// deleteSourcemapsAfterUpload: true,
|
|
46
|
-
},
|
|
47
|
-
debug: process.env.UPLOAD_SOURCEMAPS === "true",
|
|
48
|
-
// sourcemaps: {
|
|
49
|
-
// disable: false,
|
|
50
|
-
// // disable: !["production", "staging"].includes(
|
|
51
|
-
// // process.env.VERCEL_TARGET_ENV ?? "",
|
|
52
|
-
// // ),
|
|
53
|
-
// assets,
|
|
54
|
-
// // deleteSourcemapsAfterUpload: true,
|
|
55
|
-
// },
|
|
56
|
-
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
|
|
57
|
-
tunnelRoute: "/monitoring-tunnel"
|
|
58
|
-
// Hides source maps from generated client bundles
|
|
59
|
-
// hideSourceMaps: true,
|
|
60
|
-
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
|
61
|
-
// disableLogger: true,
|
|
62
|
-
// Enables automatic instrumentation of Vercel Cron Monitors.
|
|
63
|
-
// See the following for more information:
|
|
64
|
-
// https://docs.sentry.io/product/crons/
|
|
65
|
-
// https://vercel.com/docs/cron-jobs
|
|
66
|
-
// automaticVercelMonitors: true,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
var onRequestError = Sentry.captureRequestError;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
exports.registerSentry = registerSentry; exports.withSentryConfig = withSentryConfig2; exports.onRequestError = onRequestError;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkB2BTOQVPcjs = require('./chunk-B2BTOQVP.cjs');
|
|
5
|
-
require('./chunk-AU3LYJAB.cjs');
|
|
6
|
-
require('./chunk-EYYJ2UZT.cjs');
|
|
7
|
-
|
|
8
|
-
// src/internal/sentry/sentry.edge.config.ts
|
|
9
|
-
function initSentryEdge(Sentry, opt = {}) {
|
|
10
|
-
return Sentry.init({
|
|
11
|
-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
12
|
-
// Adjust this value in production, or use tracesSampler for greater control
|
|
13
|
-
tracesSampleRate: _chunkB2BTOQVPcjs.tracesSampleRate,
|
|
14
|
-
environment: _chunkB2BTOQVPcjs.sentryEnvironment,
|
|
15
|
-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
16
|
-
debug: false,
|
|
17
|
-
...opt
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
exports.initSentryEdge = initSentryEdge;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sentryEnvironment,
|
|
3
|
-
tracesSampleRate
|
|
4
|
-
} from "./chunk-OWAB24JG.mjs";
|
|
5
|
-
import "./chunk-VWRKCGMU.mjs";
|
|
6
|
-
import "./chunk-KJXYSGNH.mjs";
|
|
7
|
-
|
|
8
|
-
// src/internal/sentry/sentry.edge.config.ts
|
|
9
|
-
function initSentryEdge(Sentry, opt = {}) {
|
|
10
|
-
return Sentry.init({
|
|
11
|
-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
12
|
-
// Adjust this value in production, or use tracesSampler for greater control
|
|
13
|
-
tracesSampleRate,
|
|
14
|
-
environment: sentryEnvironment,
|
|
15
|
-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
16
|
-
debug: false,
|
|
17
|
-
...opt
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
initSentryEdge
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sentryEnvironment,
|
|
3
|
-
tracesSampleRate
|
|
4
|
-
} from "./chunk-OWAB24JG.mjs";
|
|
5
|
-
import "./chunk-VWRKCGMU.mjs";
|
|
6
|
-
import "./chunk-KJXYSGNH.mjs";
|
|
7
|
-
|
|
8
|
-
// src/internal/sentry/sentry.server.config.ts
|
|
9
|
-
function initSentryServer(Sentry, opt = {}) {
|
|
10
|
-
return Sentry.init({
|
|
11
|
-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
12
|
-
// Adjust this value in production, or use tracesSampler for greater control
|
|
13
|
-
tracesSampleRate,
|
|
14
|
-
environment: sentryEnvironment,
|
|
15
|
-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
16
|
-
debug: false,
|
|
17
|
-
...opt
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
initSentryServer
|
|
22
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkB2BTOQVPcjs = require('./chunk-B2BTOQVP.cjs');
|
|
5
|
-
require('./chunk-AU3LYJAB.cjs');
|
|
6
|
-
require('./chunk-EYYJ2UZT.cjs');
|
|
7
|
-
|
|
8
|
-
// src/internal/sentry/sentry.server.config.ts
|
|
9
|
-
function initSentryServer(Sentry, opt = {}) {
|
|
10
|
-
return Sentry.init({
|
|
11
|
-
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
12
|
-
// Adjust this value in production, or use tracesSampler for greater control
|
|
13
|
-
tracesSampleRate: _chunkB2BTOQVPcjs.tracesSampleRate,
|
|
14
|
-
environment: _chunkB2BTOQVPcjs.sentryEnvironment,
|
|
15
|
-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
16
|
-
debug: false,
|
|
17
|
-
...opt
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
exports.initSentryServer = initSentryServer;
|