@berachain/config 0.1.24-beta.5 → 0.1.24-beta.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"dedupeCspSources.d.ts","sourceRoot":"","sources":["../../src/internal/dedupeCspSources.ts"],"names":[],"mappings":"AAkEA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAuB5D"}
1
+ {"version":3,"file":"dedupeCspSources.d.ts","sourceRoot":"","sources":["../../src/internal/dedupeCspSources.ts"],"names":[],"mappings":"AAoEA;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAuB5D"}
@@ -50,10 +50,10 @@ function covers(pattern, target) {
50
50
  if (!hostMatches(pattern.host, target.host)) {
51
51
  return false;
52
52
  }
53
- if (pattern.path === "/") {
54
- return true;
53
+ if (pattern.path.endsWith("/")) {
54
+ return target.path.startsWith(pattern.path);
55
55
  }
56
- return target.path === pattern.path || target.path.startsWith(pattern.path);
56
+ return target.path === pattern.path;
57
57
  }
58
58
  function dedupeCspSources(sources) {
59
59
  const parsed = sources.map((raw) => ({ raw, parsed: parseSource(raw) }));
@@ -50,10 +50,10 @@ function covers(pattern, target) {
50
50
  if (!hostMatches(pattern.host, target.host)) {
51
51
  return false;
52
52
  }
53
- if (pattern.path === "/") {
54
- return true;
53
+ if (pattern.path.endsWith("/")) {
54
+ return target.path.startsWith(pattern.path);
55
55
  }
56
- return target.path === pattern.path || target.path.startsWith(pattern.path);
56
+ return target.path === pattern.path;
57
57
  }
58
58
  function dedupeCspSources(sources) {
59
59
  const parsed = sources.map((raw) => ({ raw, parsed: parseSource(raw) }));
@@ -1,5 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
+ var _chunkZTYHPIUWcjs = require('../../chunk-ZTYHPIUW.cjs');
4
+
5
+
3
6
  var _chunkOA5M6XYFcjs = require('../../chunk-OA5M6XYF.cjs');
4
7
 
5
8
 
@@ -9,9 +12,6 @@ require('../../chunk-ZJEZCW5Z.cjs');
9
12
  require('../../chunk-AU3LYJAB.cjs');
10
13
  require('../../chunk-EYYJ2UZT.cjs');
11
14
 
12
-
13
- var _chunkZTYHPIUWcjs = require('../../chunk-ZTYHPIUW.cjs');
14
-
15
15
  // src/internal/nextjs/index.ts
16
16
  var _dotenv = require('dotenv'); var _dotenv2 = _interopRequireDefault(_dotenv);
17
17
  _dotenv2.default.config({ path: ["../../.env.local", "../../.env"] });
@@ -1,3 +1,6 @@
1
+ import {
2
+ withSentryConfig
3
+ } from "../../chunk-XA5DMTFW.mjs";
1
4
  import {
2
5
  IMAGE_REMOTE_PATTERNS
3
6
  } from "../../chunk-4WAGOEXT.mjs";
@@ -8,9 +11,6 @@ import "../../chunk-KPZI7IXR.mjs";
8
11
  import "../../chunk-5SH7AT43.mjs";
9
12
  import "../../chunk-VWRKCGMU.mjs";
10
13
  import "../../chunk-KJXYSGNH.mjs";
11
- import {
12
- withSentryConfig
13
- } from "../../chunk-XA5DMTFW.mjs";
14
14
 
15
15
  // src/internal/nextjs/index.ts
16
16
  import dotenv from "dotenv";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berachain/config",
3
- "version": "0.1.24-beta.5",
3
+ "version": "0.1.24-beta.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",