@berachain/config 0.1.24-beta.0 → 0.1.24-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.
- package/dist/{chunk-IDZZLN7P.mjs → chunk-TJPHIVC5.mjs} +0 -2
- package/dist/{chunk-BEG3S3AZ.cjs → chunk-ZG7CKYT4.cjs} +0 -2
- package/dist/internal/header-sources.cjs +8 -9
- package/dist/internal/header-sources.d.ts +2 -10
- package/dist/internal/header-sources.d.ts.map +1 -1
- package/dist/internal/header-sources.mjs +7 -8
- package/dist/internal/index.cjs +2 -2
- package/dist/internal/index.d.ts +0 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.mjs +1 -1
- package/dist/internal/nextjs/index.cjs +3 -3
- package/dist/internal/nextjs/index.mjs +1 -1
- package/dist/internal/wagmi/index.cjs +1 -1
- package/dist/internal/wagmi/index.mjs +1 -1
- package/package.json +1 -27
|
@@ -28,7 +28,6 @@ var _appConfig = {
|
|
|
28
28
|
*/
|
|
29
29
|
thirdweb: process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID ?? "fc597da15a06f1a6b42fae42112dd770",
|
|
30
30
|
postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",
|
|
31
|
-
cookie3SiteId: process.env.NEXT_PUBLIC_COOKIE3_SITE_ID,
|
|
32
31
|
enso: process.env.NEXT_PUBLIC_ENSO_API_KEY ?? "3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f"
|
|
33
32
|
},
|
|
34
33
|
private: {
|
|
@@ -116,7 +115,6 @@ var _appConfig = {
|
|
|
116
115
|
var isAnalyticsEnabled = process.env.NODE_ENV !== "development" || process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS !== "0" && Boolean(process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS);
|
|
117
116
|
var flags = {
|
|
118
117
|
isPosthogEnabled: _appConfig.apiKeys.public.postHogProjectKey && isAnalyticsEnabled,
|
|
119
|
-
isCookie3Enabled: _appConfig.apiKeys.public.cookie3SiteId && isAnalyticsEnabled,
|
|
120
118
|
/**
|
|
121
119
|
* Disallow SEO indexing for non-mainnet deployments
|
|
122
120
|
*/
|
|
@@ -28,7 +28,6 @@ var _appConfig = {
|
|
|
28
28
|
*/
|
|
29
29
|
thirdweb: _nullishCoalesce(process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID, () => ( "fc597da15a06f1a6b42fae42112dd770")),
|
|
30
30
|
postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax",
|
|
31
|
-
cookie3SiteId: process.env.NEXT_PUBLIC_COOKIE3_SITE_ID,
|
|
32
31
|
enso: _nullishCoalesce(process.env.NEXT_PUBLIC_ENSO_API_KEY, () => ( "3c1f3c7a-7ff7-4c5a-9a2b-79f50b5bfb4f"))
|
|
33
32
|
},
|
|
34
33
|
private: {
|
|
@@ -116,7 +115,6 @@ var _appConfig = {
|
|
|
116
115
|
var isAnalyticsEnabled = process.env.NODE_ENV !== "development" || process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS !== "0" && Boolean(process.env.NEXT_PUBLIC_DEVELOPMENT_ANALYTICS);
|
|
117
116
|
var flags = {
|
|
118
117
|
isPosthogEnabled: _appConfig.apiKeys.public.postHogProjectKey && isAnalyticsEnabled,
|
|
119
|
-
isCookie3Enabled: _appConfig.apiKeys.public.cookie3SiteId && isAnalyticsEnabled,
|
|
120
118
|
/**
|
|
121
119
|
* Disallow SEO indexing for non-mainnet deployments
|
|
122
120
|
*/
|
|
@@ -7,7 +7,7 @@ var _chunkONKAV4AGcjs = require('../chunk-ONKAV4AG.cjs');
|
|
|
7
7
|
var _chunkYT7WZDGIcjs = require('../chunk-YT7WZDGI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZG7CKYT4cjs = require('../chunk-ZG7CKYT4.cjs');
|
|
11
11
|
require('../chunk-MQOVN5NH.cjs');
|
|
12
12
|
require('../chunk-EPWUWEWI.cjs');
|
|
13
13
|
|
|
@@ -67,7 +67,7 @@ function getContentSecurityPolicy({
|
|
|
67
67
|
...args
|
|
68
68
|
}) {
|
|
69
69
|
const defaultSrc = [];
|
|
70
|
-
const config =
|
|
70
|
+
const config = _chunkZG7CKYT4cjs.chainConfigs[_chunkADH7F47Tcjs.defaultChainId];
|
|
71
71
|
const connectionSources = [
|
|
72
72
|
// csp reporting
|
|
73
73
|
"https://*.sentry.io/",
|
|
@@ -116,9 +116,6 @@ function getContentSecurityPolicy({
|
|
|
116
116
|
// VERCEL TOOLBAR
|
|
117
117
|
"https://vercel.live",
|
|
118
118
|
"wss://ws-us3.pusher.com",
|
|
119
|
-
// COOKIE3
|
|
120
|
-
"https://cdn.markfi.xyz/scripts/analytics/",
|
|
121
|
-
"https://a.markfi.xyz/",
|
|
122
119
|
// PYTH
|
|
123
120
|
"https://hermes.pyth.network/v2/",
|
|
124
121
|
// PORTO WALLET
|
|
@@ -208,7 +205,7 @@ function getContentSecurityPolicy({
|
|
|
208
205
|
base-uri 'self';
|
|
209
206
|
frame-src 'self' ${frameSources.join(" ")};
|
|
210
207
|
frame-ancestors 'self' https://*.posthog.com;
|
|
211
|
-
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o='
|
|
208
|
+
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${nonce}' https://*.posthog.com 'strict-dynamic' ${isDevelopment ? "'unsafe-eval'" : ""};
|
|
212
209
|
worker-src 'self' blob: data:;
|
|
213
210
|
font-src 'self' ${fontSources.join(" ")};
|
|
214
211
|
style-src 'self' ${styleSources.join(" ")} 'unsafe-inline';
|
|
@@ -237,11 +234,10 @@ var staticPictureSources = [
|
|
|
237
234
|
return true;
|
|
238
235
|
});
|
|
239
236
|
function cspMiddleware({
|
|
240
|
-
useDynamicCsp = true,
|
|
241
237
|
response
|
|
242
238
|
}) {
|
|
243
239
|
const sentryCspEndpoint = _optionalChain([getSentryKeys, 'call', _3 => _3(), 'optionalAccess', _4 => _4.cspEndpoint]);
|
|
244
|
-
const nonce =
|
|
240
|
+
const nonce = Buffer.from(crypto.randomUUID()).toString("base64");
|
|
245
241
|
const isDevelopment = process.env.NODE_ENV === "development";
|
|
246
242
|
const headers = [
|
|
247
243
|
{
|
|
@@ -260,7 +256,10 @@ function cspMiddleware({
|
|
|
260
256
|
key: "X-Content-Type-Options",
|
|
261
257
|
value: "nosniff"
|
|
262
258
|
},
|
|
263
|
-
|
|
259
|
+
{
|
|
260
|
+
key: "X-Nonce",
|
|
261
|
+
value: nonce
|
|
262
|
+
}
|
|
264
263
|
];
|
|
265
264
|
if (sentryCspEndpoint) {
|
|
266
265
|
headers.push({
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import type { NextRequest, NextResponse } from "next/server";
|
|
2
|
-
/** Builds the Content-Security-Policy header value. */
|
|
3
2
|
export declare function getContentSecurityPolicy({ isDevelopment, nonce, cspReporting, ...args }: {
|
|
4
3
|
isDevelopment: boolean;
|
|
5
|
-
|
|
6
|
-
* Per-request nonce for `script-src`. Required for dynamic CSP; omit it for
|
|
7
|
-
* static CSP (no per-request header), in which case the `'nonce-...'` token
|
|
8
|
-
* is dropped and scripts are gated by `'strict-dynamic'` plus the inlined
|
|
9
|
-
* sha256 hash instead.
|
|
10
|
-
*/
|
|
11
|
-
nonce?: string;
|
|
4
|
+
nonce: string;
|
|
12
5
|
frameSources?: string[];
|
|
13
6
|
fontSources?: string[];
|
|
14
7
|
pictureSources?: string[];
|
|
@@ -20,8 +13,7 @@ export declare function getContentSecurityPolicy({ isDevelopment, nonce, cspRepo
|
|
|
20
13
|
* Static picture sources that are used in static-monobera.
|
|
21
14
|
*/
|
|
22
15
|
export declare const staticPictureSources: string[];
|
|
23
|
-
export declare function cspMiddleware({
|
|
24
|
-
useDynamicCsp?: boolean;
|
|
16
|
+
export declare function cspMiddleware({ response, }: {
|
|
25
17
|
request: NextRequest;
|
|
26
18
|
response: NextResponse;
|
|
27
19
|
}): NextResponse<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-sources.d.ts","sourceRoot":"","sources":["../../src/internal/header-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAa7D,
|
|
1
|
+
{"version":3,"file":"header-sources.d.ts","sourceRoot":"","sources":["../../src/internal/header-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAa7D,wBAAgB,wBAAwB,CAAC,EACvC,aAAa,EACb,KAAK,EACL,YAAY,EACZ,GAAG,IAAI,EACR,EAAE;IACD,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,MAAM,CAsLT;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,EAWvC,CAAC;AAEH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,YAAY,CAAC;CACxB,yBA6CA"}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "../chunk-LALEUPWL.mjs";
|
|
8
8
|
import {
|
|
9
9
|
chainConfigs
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-TJPHIVC5.mjs";
|
|
11
11
|
import "../chunk-KPZI7IXR.mjs";
|
|
12
12
|
import "../chunk-4RBW7LA7.mjs";
|
|
13
13
|
import {
|
|
@@ -116,9 +116,6 @@ function getContentSecurityPolicy({
|
|
|
116
116
|
// VERCEL TOOLBAR
|
|
117
117
|
"https://vercel.live",
|
|
118
118
|
"wss://ws-us3.pusher.com",
|
|
119
|
-
// COOKIE3
|
|
120
|
-
"https://cdn.markfi.xyz/scripts/analytics/",
|
|
121
|
-
"https://a.markfi.xyz/",
|
|
122
119
|
// PYTH
|
|
123
120
|
"https://hermes.pyth.network/v2/",
|
|
124
121
|
// PORTO WALLET
|
|
@@ -208,7 +205,7 @@ function getContentSecurityPolicy({
|
|
|
208
205
|
base-uri 'self';
|
|
209
206
|
frame-src 'self' ${frameSources.join(" ")};
|
|
210
207
|
frame-ancestors 'self' https://*.posthog.com;
|
|
211
|
-
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o='
|
|
208
|
+
script-src 'self' 'sha256-k2HGvaYkGyYZxOwKGxgE1mr06tZEDcEXNZ5mdcldK0o=' 'nonce-${nonce}' https://*.posthog.com 'strict-dynamic' ${isDevelopment ? "'unsafe-eval'" : ""};
|
|
212
209
|
worker-src 'self' blob: data:;
|
|
213
210
|
font-src 'self' ${fontSources.join(" ")};
|
|
214
211
|
style-src 'self' ${styleSources.join(" ")} 'unsafe-inline';
|
|
@@ -237,11 +234,10 @@ var staticPictureSources = [
|
|
|
237
234
|
return true;
|
|
238
235
|
});
|
|
239
236
|
function cspMiddleware({
|
|
240
|
-
useDynamicCsp = true,
|
|
241
237
|
response
|
|
242
238
|
}) {
|
|
243
239
|
const sentryCspEndpoint = getSentryKeys()?.cspEndpoint;
|
|
244
|
-
const nonce =
|
|
240
|
+
const nonce = Buffer.from(crypto.randomUUID()).toString("base64");
|
|
245
241
|
const isDevelopment = process.env.NODE_ENV === "development";
|
|
246
242
|
const headers = [
|
|
247
243
|
{
|
|
@@ -260,7 +256,10 @@ function cspMiddleware({
|
|
|
260
256
|
key: "X-Content-Type-Options",
|
|
261
257
|
value: "nosniff"
|
|
262
258
|
},
|
|
263
|
-
|
|
259
|
+
{
|
|
260
|
+
key: "X-Nonce",
|
|
261
|
+
value: nonce
|
|
262
|
+
}
|
|
264
263
|
];
|
|
265
264
|
if (sentryCspEndpoint) {
|
|
266
265
|
headers.push({
|
package/dist/internal/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZG7CKYT4cjs = require('../chunk-ZG7CKYT4.cjs');
|
|
6
6
|
require('../chunk-MQOVN5NH.cjs');
|
|
7
7
|
require('../chunk-EPWUWEWI.cjs');
|
|
8
8
|
|
|
@@ -37,4 +37,4 @@ require('../chunk-75ZPJI57.cjs');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
exports.ChainId = _chunkEYYJ2UZTcjs.ChainId; exports.alchemyJsonRpcUrl = _chunkWRTYGXJMcjs.alchemyJsonRpcUrl; exports.appConfig =
|
|
40
|
+
exports.ChainId = _chunkEYYJ2UZTcjs.ChainId; exports.alchemyJsonRpcUrl = _chunkWRTYGXJMcjs.alchemyJsonRpcUrl; exports.appConfig = _chunkZG7CKYT4cjs.appConfig; exports.chainConfigs = _chunkZG7CKYT4cjs.chainConfigs; exports.chainId = _chunkADH7F47Tcjs.defaultChainId; exports.config = _chunkZG7CKYT4cjs.config; exports.currentDapp = _chunkADH7F47Tcjs.currentDapp; exports.defaultChainId = _chunkADH7F47Tcjs.defaultChainId; exports.getRpcUrls = _chunkWRTYGXJMcjs.getRpcUrls; exports.goldskyBaseUrl = _chunkWRTYGXJMcjs.goldskyBaseUrl; exports.imageBaseUrl = _chunkWRTYGXJMcjs.imageBaseUrl; exports.jsonRpcUrl = _chunkWRTYGXJMcjs.jsonRpcUrl; exports.privateRcpUrl = _chunkWRTYGXJMcjs.privateRcpUrl; exports.publicJsonRpcUrl = _chunkWRTYGXJMcjs.publicJsonRpcUrl;
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -310,7 +310,6 @@ export declare const chainConfigs: {
|
|
|
310
310
|
export declare const appConfig: {
|
|
311
311
|
readonly flags: {
|
|
312
312
|
readonly isPosthogEnabled: boolean;
|
|
313
|
-
readonly isCookie3Enabled: boolean | "";
|
|
314
313
|
/**
|
|
315
314
|
* Disallow SEO indexing for non-mainnet deployments
|
|
316
315
|
*/
|
|
@@ -325,7 +324,6 @@ export declare const appConfig: {
|
|
|
325
324
|
*/
|
|
326
325
|
readonly thirdweb: string;
|
|
327
326
|
readonly postHogProjectKey: "phc_waPF31wbuiBwbfIeiV0z3GPfg3KAHE1WPMk6UMn8Kax";
|
|
328
|
-
readonly cookie3SiteId: string;
|
|
329
327
|
readonly enso: string;
|
|
330
328
|
};
|
|
331
329
|
readonly private: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGnC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,CAAC;AAQrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGf,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGnC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,CAAC;AAQrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGf,CAAC;AAqIX,eAAO,MAAM,SAAS;;;QAPpB;;WAEG;;;;;;YApHC;;;eAGG;;;;;;YAUH;;;eAGG;0CACwD,MAAM;YACjE;;;;eAIG;2BAC+B,MAAM;8BACA,MAAM;YAC9C;;;;eAIG;mCACgD,MAAM;YACzD;;;;eAIG;iCAC4C,MAAM;gCACT,MAAM;4BACd,MAAM;gCACI,MAAM;2BAClB,MAAM;gCACI,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiCpD;;;WAGG;;QAEH;;;WAGG;;QAGH;;;WAGG;;;;;;;;;;CAoCG,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAET,CAAC"}
|
package/dist/internal/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var _chunk3NQ3NFWWcjs = require('../../chunk-3NQ3NFWW.cjs');
|
|
|
6
6
|
var _chunkOA5M6XYFcjs = require('../../chunk-OA5M6XYF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZG7CKYT4cjs = require('../../chunk-ZG7CKYT4.cjs');
|
|
10
10
|
require('../../chunk-MQOVN5NH.cjs');
|
|
11
11
|
require('../../chunk-EPWUWEWI.cjs');
|
|
12
12
|
require('../../chunk-WRTYGXJM.cjs');
|
|
@@ -64,11 +64,11 @@ function withBeraConfig(config, {
|
|
|
64
64
|
return [
|
|
65
65
|
{
|
|
66
66
|
source: "/ph/static/:path*",
|
|
67
|
-
destination: `https://${
|
|
67
|
+
destination: `https://${_chunkZG7CKYT4cjs.appConfig.urls.postHog.region}-assets.i.posthog.com/static/:path*`
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
source: "/ph/:path*",
|
|
71
|
-
destination: `https://${
|
|
71
|
+
destination: `https://${_chunkZG7CKYT4cjs.appConfig.urls.postHog.region}.i.posthog.com/:path*`
|
|
72
72
|
}
|
|
73
73
|
];
|
|
74
74
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-ZG7CKYT4.cjs');
|
|
2
2
|
require('../../chunk-MQOVN5NH.cjs');
|
|
3
3
|
require('../../chunk-EPWUWEWI.cjs');
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/config",
|
|
3
|
-
"version": "0.1.24-beta.
|
|
3
|
+
"version": "0.1.24-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -9,13 +9,11 @@
|
|
|
9
9
|
"author": "Berachain",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@flags-sdk/edge-config": "0.1.0",
|
|
13
12
|
"@sentry/nextjs": "10.47.0",
|
|
14
13
|
"@tailwindcss/aspect-ratio": "0.4.2",
|
|
15
14
|
"@tailwindcss/container-queries": "0.1.1",
|
|
16
15
|
"@tailwindcss/typography": "0.5.16",
|
|
17
16
|
"@types/node": "24.1.0",
|
|
18
|
-
"json-schema-to-typescript": "15.0.4",
|
|
19
17
|
"next": "16.2.6",
|
|
20
18
|
"tailwindcss": "3.4.17",
|
|
21
19
|
"tailwindcss-animate": "1.0.7",
|
|
@@ -25,32 +23,20 @@
|
|
|
25
23
|
"@berachain/utils": "^0.1.0"
|
|
26
24
|
},
|
|
27
25
|
"peerDependencies": {
|
|
28
|
-
"@flags-sdk/edge-config": "0.1.0",
|
|
29
26
|
"@sentry/nextjs": "^10.16",
|
|
30
27
|
"@tailwindcss/aspect-ratio": "~0.4.2",
|
|
31
28
|
"@tailwindcss/container-queries": "~0.4.1",
|
|
32
29
|
"@tailwindcss/typography": "~0.5.15",
|
|
33
|
-
"@vercel/edge-config": "1.4.3",
|
|
34
30
|
"dotenv": "16.6.1",
|
|
35
|
-
"flags": "4.0.6",
|
|
36
31
|
"next": "^16.1",
|
|
37
32
|
"tailwindcss-animate": "1.0.7",
|
|
38
33
|
"tsup": "^8.4.0",
|
|
39
34
|
"viem": "^2.41.2"
|
|
40
35
|
},
|
|
41
36
|
"peerDependenciesMeta": {
|
|
42
|
-
"@flags-sdk/edge-config": {
|
|
43
|
-
"optional": true
|
|
44
|
-
},
|
|
45
|
-
"@vercel/edge-config": {
|
|
46
|
-
"optional": true
|
|
47
|
-
},
|
|
48
37
|
"@sentry/nextjs": {
|
|
49
38
|
"optional": true
|
|
50
39
|
},
|
|
51
|
-
"flags": {
|
|
52
|
-
"optional": true
|
|
53
|
-
},
|
|
54
40
|
"dotenv": {
|
|
55
41
|
"optional": true
|
|
56
42
|
},
|
|
@@ -107,16 +93,6 @@
|
|
|
107
93
|
"require": "./dist/internal/nextjs/utils/index.cjs",
|
|
108
94
|
"default": "./dist/internal/nextjs/utils/index.mjs"
|
|
109
95
|
},
|
|
110
|
-
"./internal/edge-config": {
|
|
111
|
-
"types": "./dist/internal/edge-config/index.d.ts",
|
|
112
|
-
"require": "./dist/internal/edge-config/index.cjs",
|
|
113
|
-
"default": "./dist/internal/edge-config/index.mjs"
|
|
114
|
-
},
|
|
115
|
-
"./internal/flags": {
|
|
116
|
-
"types": "./dist/internal/flags/index.d.ts",
|
|
117
|
-
"require": "./dist/internal/flags/index.cjs",
|
|
118
|
-
"default": "./dist/internal/flags/index.mjs"
|
|
119
|
-
},
|
|
120
96
|
"./internal/tsup": {
|
|
121
97
|
"types": "./dist/internal/tsup/index.d.ts",
|
|
122
98
|
"require": "./dist/internal/tsup/index.cjs",
|
|
@@ -155,13 +131,11 @@
|
|
|
155
131
|
"./internal/postcss": "./postcss.json"
|
|
156
132
|
},
|
|
157
133
|
"scripts": {
|
|
158
|
-
"prebuild": "pnpm generate:edge-config",
|
|
159
134
|
"build": "tsup -- --cjs --esm",
|
|
160
135
|
"clean": "git clean -xdf dist .turbo node_modules",
|
|
161
136
|
"check-types": "pnpm turbo build",
|
|
162
137
|
"dev": "tsup --watch",
|
|
163
138
|
"lint": "biome lint",
|
|
164
|
-
"generate:edge-config": "pnpm dlx json-schema-to-typescript ./src/internal/edge-config/edgeConfig.schema.json -o src/internal/edge-config/edgeConfig.codegen.ts",
|
|
165
139
|
"test": "vitest",
|
|
166
140
|
"postbuild": "node ../../.scripts/commands.mjs postbuild:config"
|
|
167
141
|
}
|