unpeek 3.0.0 → 4.0.0

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 (68) hide show
  1. package/README.md +27 -13
  2. package/README.tr.md +37 -23
  3. package/dist/adapters/esbuild.cjs +5 -5
  4. package/dist/adapters/esbuild.d.cts +3 -1
  5. package/dist/adapters/esbuild.d.ts +2 -2
  6. package/dist/adapters/esbuild.js +5 -3
  7. package/dist/adapters/next/adapter.cjs +7 -6
  8. package/dist/adapters/next/adapter.d.cts +1 -1
  9. package/dist/adapters/next/adapter.d.ts +1 -1
  10. package/dist/adapters/next/adapter.js +6 -5
  11. package/dist/adapters/next/index.cjs +7 -6
  12. package/dist/adapters/next/index.js +6 -5
  13. package/dist/adapters/rollup.cjs +5 -5
  14. package/dist/adapters/rollup.d.cts +3 -1
  15. package/dist/adapters/rollup.d.ts +2 -2
  16. package/dist/adapters/rollup.js +5 -3
  17. package/dist/adapters/rspack.cjs +5 -4
  18. package/dist/adapters/rspack.d.cts +1 -1
  19. package/dist/adapters/rspack.d.ts +1 -1
  20. package/dist/adapters/rspack.js +3 -2
  21. package/dist/adapters/vite.cjs +5 -5
  22. package/dist/adapters/vite.d.cts +3 -1
  23. package/dist/adapters/vite.d.ts +2 -2
  24. package/dist/adapters/vite.js +5 -3
  25. package/dist/adapters/webpack.cjs +5 -5
  26. package/dist/adapters/webpack.d.cts +3 -1
  27. package/dist/adapters/webpack.d.ts +2 -2
  28. package/dist/adapters/webpack.js +5 -3
  29. package/dist/browser.cjs +3 -3
  30. package/dist/browser.d.cts +20 -17
  31. package/dist/browser.d.ts +20 -17
  32. package/dist/browser.js +2 -2
  33. package/dist/{chunk-BPRSCRUZ.js → chunk-2JU3V7HW.js} +6 -3
  34. package/dist/chunk-3LWXEJU6.cjs +1054 -0
  35. package/dist/{chunk-IZIWDJRF.js → chunk-4FNZNIBW.js} +2675 -651
  36. package/dist/chunk-7HXLHLLQ.cjs +503 -0
  37. package/dist/chunk-ADKRENAP.js +1054 -0
  38. package/dist/{chunk-FCF2EGPM.js → chunk-EN6QVR6P.js} +12 -3
  39. package/dist/chunk-HHC7BUCK.js +503 -0
  40. package/dist/{chunk-IAD5DV3D.cjs → chunk-KLYFNMKS.cjs} +2812 -788
  41. package/dist/{chunk-IEBVL5BT.cjs → chunk-URPPSTHZ.cjs} +12 -3
  42. package/dist/chunk-VG4Y26ZN.cjs +429 -0
  43. package/dist/{chunk-IICVBTR2.js → chunk-W77DAC3H.js} +22 -3
  44. package/dist/{chunk-ONM2CSTU.cjs → chunk-X6EETCO6.cjs} +64 -45
  45. package/dist/chunk-YCRMTXOE.js +429 -0
  46. package/dist/{chunk-6TDCSIRZ.cjs → chunk-ZG7BIAUI.cjs} +9 -6
  47. package/dist/cli/index.js +3693 -1141
  48. package/dist/{config-CfXY_iDD.d.ts → config-Y6JwVGwX.d.cts} +15 -1
  49. package/dist/{config-CfXY_iDD.d.cts → config-Y6JwVGwX.d.ts} +15 -1
  50. package/dist/config.cjs +3 -3
  51. package/dist/config.d.cts +1 -1
  52. package/dist/config.d.ts +1 -1
  53. package/dist/config.js +2 -2
  54. package/dist/{index-CjRTNPlj.d.cts → index-0O1WSfVP.d.ts} +7 -1
  55. package/dist/{index-Cm1IloVm.d.ts → index-COVHErnx.d.cts} +7 -1
  56. package/dist/index.cjs +65 -264
  57. package/dist/index.d.cts +4 -4
  58. package/dist/index.d.ts +4 -4
  59. package/dist/index.js +59 -258
  60. package/dist/plugins/unplugin.cjs +4 -3
  61. package/dist/plugins/unplugin.js +3 -2
  62. package/dist/{types-DYQIzGf6.d.cts → types-CMtZnV8C.d.ts} +3 -3
  63. package/dist/{types-ZHAFdOd3.d.ts → types-D93PuOOl.d.cts} +3 -3
  64. package/package.json +1 -1
  65. package/dist/chunk-APWMNVAZ.js +0 -764
  66. package/dist/chunk-DUK2SECY.js +0 -83
  67. package/dist/chunk-I6GXEHFR.cjs +0 -764
  68. package/dist/chunk-RXUY3MPH.cjs +0 -83
package/dist/index.js CHANGED
@@ -1,22 +1,27 @@
1
1
  import {
2
- SOURCE_MAP_COMMENT_REGEX,
3
- detectTargetFramework,
4
- findMonorepoRoots,
5
- hasNextServerSegment,
6
2
  isNext16OrAbove,
7
- protectProject,
8
- scanClientBundles
9
- } from "./chunk-APWMNVAZ.js";
3
+ protectProject
4
+ } from "./chunk-HHC7BUCK.js";
10
5
  import {
11
6
  defineConfig,
12
7
  loadUnpeekConfig
13
- } from "./chunk-IICVBTR2.js";
8
+ } from "./chunk-W77DAC3H.js";
14
9
  import {
15
10
  PRESETS
16
- } from "./chunk-FCF2EGPM.js";
11
+ } from "./chunk-EN6QVR6P.js";
12
+ import {
13
+ SOURCE_MAP_COMMENT_REGEX,
14
+ detectTargetFramework,
15
+ extractDebugId,
16
+ findMonorepoRoots,
17
+ hasNextServerSegment,
18
+ safeDecodeURIComponent,
19
+ scanClientBundles,
20
+ symbolicateStackTrace
21
+ } from "./chunk-ADKRENAP.js";
17
22
  import {
18
23
  transformJavaScript
19
- } from "./chunk-IZIWDJRF.js";
24
+ } from "./chunk-4FNZNIBW.js";
20
25
  import {
21
26
  UnpeekError,
22
27
  isUnpeekError
@@ -293,6 +298,7 @@ async function checkProject(options = {}) {
293
298
  file: rel
294
299
  });
295
300
  }
301
+ const vaultDir = path2.resolve(cwd, privateMapsDir);
296
302
  const clientFiles = scanClientBundles(resolvedOutDir, config);
297
303
  for (const filePath of clientFiles) {
298
304
  const rel = path2.relative(resolvedOutDir, filePath).replace(/\\/g, "/");
@@ -311,6 +317,49 @@ async function checkProject(options = {}) {
311
317
  file: rel
312
318
  });
313
319
  }
320
+ const jsDebugId = extractDebugId(content);
321
+ const decodedRel = safeDecodeURIComponent(rel);
322
+ const mapCandidates = [
323
+ path2.join(vaultDir, `${rel}.map`),
324
+ ...decodedRel !== rel ? [path2.join(vaultDir, `${decodedRel}.map`)] : []
325
+ ];
326
+ const vaultedMapPath = mapCandidates.find((p) => fs2.existsSync(p));
327
+ if (vaultedMapPath) {
328
+ try {
329
+ const mapJson = JSON.parse(fs2.readFileSync(vaultedMapPath, "utf8"));
330
+ const rawMapDebugId = typeof mapJson.debugId === "string" ? mapJson.debugId : typeof mapJson.debug_id === "string" ? mapJson.debug_id : void 0;
331
+ if (jsDebugId && rawMapDebugId && jsDebugId !== rawMapDebugId) {
332
+ violations.push({
333
+ rule: "debugid-mismatch",
334
+ severity: "error",
335
+ message: `debugId mismatch for "${rel}": JS has "${jsDebugId}" while vaulted map has "${rawMapDebugId}".`,
336
+ file: rel
337
+ });
338
+ } else if (jsDebugId && !rawMapDebugId) {
339
+ warnings.push({
340
+ rule: "debugid-mismatch",
341
+ severity: "warning",
342
+ message: `JS bundle "${rel}" has debugId "${jsDebugId}" but vaulted source map is missing debugId.`,
343
+ file: rel
344
+ });
345
+ } else if (!jsDebugId && rawMapDebugId) {
346
+ warnings.push({
347
+ rule: "debugid-mismatch",
348
+ severity: "warning",
349
+ message: `Vaulted source map for "${rel}" has debugId "${rawMapDebugId}" but JS bundle is missing //# debugId=.`,
350
+ file: rel
351
+ });
352
+ }
353
+ } catch {
354
+ }
355
+ } else if (jsDebugId) {
356
+ warnings.push({
357
+ rule: "debugid-mismatch",
358
+ severity: "warning",
359
+ message: `JS bundle "${rel}" has debugId "${jsDebugId}" but no vaulted source map found at "${rel}.map".`,
360
+ file: rel
361
+ });
362
+ }
314
363
  const evalHits = findEvalOrFunctionCalls(content);
315
364
  if (evalHits.length > 0) {
316
365
  const violation = {
@@ -326,7 +375,6 @@ async function checkProject(options = {}) {
326
375
  }
327
376
  }
328
377
  }
329
- const vaultDir = path2.resolve(cwd, privateMapsDir);
330
378
  const relVault = path2.relative(cwd, vaultDir).replace(/\\/g, "/");
331
379
  const ignoreEntry = relVault && !relVault.startsWith("..") ? `${relVault}/` : ".unpeek-maps/";
332
380
  const roots = findMonorepoRoots(cwd);
@@ -392,253 +440,6 @@ async function checkProject(options = {}) {
392
440
  warnings
393
441
  };
394
442
  }
395
-
396
- // src/core/vlq.ts
397
- import fs3 from "fs";
398
- import path3 from "path";
399
- var BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
400
- var BASE64_MAP = /* @__PURE__ */ new Map();
401
- for (let i = 0; i < BASE64_CHARS.length; i++) {
402
- BASE64_MAP.set(BASE64_CHARS[i], i);
403
- }
404
- var VLQ_BASE_SHIFT = 5;
405
- var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
406
- var VLQ_BASE_MASK = VLQ_BASE - 1;
407
- var VLQ_CONTINUATION_BIT = VLQ_BASE;
408
- function decodeVlq(segment, startIndex) {
409
- let result = 0;
410
- let shift = 0;
411
- let index = startIndex;
412
- while (index < segment.length) {
413
- const digit = BASE64_MAP.get(segment[index]);
414
- if (digit === void 0) {
415
- return null;
416
- }
417
- index++;
418
- const continuation = (digit & VLQ_CONTINUATION_BIT) !== 0;
419
- result += (digit & VLQ_BASE_MASK) << shift;
420
- shift += VLQ_BASE_SHIFT;
421
- if (!continuation) {
422
- const isNegative = (result & 1) === 1;
423
- const shifted = result >> 1;
424
- return {
425
- value: isNegative ? -shifted : shifted,
426
- nextIndex: index
427
- };
428
- }
429
- if (shift > 30) {
430
- return null;
431
- }
432
- }
433
- return null;
434
- }
435
- function decodeMappings(mappingsStr) {
436
- const mappings = [];
437
- let malformedCount = 0;
438
- if (!mappingsStr) {
439
- return { mappings, malformedCount };
440
- }
441
- let sourceIndex = 0;
442
- let originalLine = 0;
443
- let originalColumn = 0;
444
- let nameIndex = 0;
445
- const lines = mappingsStr.split(";");
446
- for (let genLine = 0; genLine < lines.length; genLine++) {
447
- const lineStr = lines[genLine];
448
- if (!lineStr) continue;
449
- let genCol = 0;
450
- const segments = lineStr.split(",");
451
- for (const seg of segments) {
452
- if (!seg) continue;
453
- const values = [];
454
- let idx = 0;
455
- let valid = true;
456
- while (idx < seg.length) {
457
- const decoded = decodeVlq(seg, idx);
458
- if (!decoded) {
459
- valid = false;
460
- break;
461
- }
462
- values.push(decoded.value);
463
- idx = decoded.nextIndex;
464
- }
465
- if (!valid || values.length !== 1 && values.length !== 4 && values.length !== 5) {
466
- malformedCount++;
467
- continue;
468
- }
469
- genCol += values[0];
470
- if (values.length >= 4) {
471
- sourceIndex += values[1];
472
- originalLine += values[2];
473
- originalColumn += values[3];
474
- const mapping = {
475
- generatedLine: genLine,
476
- generatedColumn: genCol,
477
- sourceIndex,
478
- originalLine,
479
- originalColumn
480
- };
481
- if (values.length === 5) {
482
- nameIndex += values[4];
483
- mapping.nameIndex = nameIndex;
484
- }
485
- mappings.push(mapping);
486
- }
487
- }
488
- }
489
- return { mappings, malformedCount };
490
- }
491
- function findMappingAt(mappings, line0, col0) {
492
- let lo = 0;
493
- let hi = mappings.length - 1;
494
- let best;
495
- while (lo <= hi) {
496
- const mid = lo + hi >> 1;
497
- const m = mappings[mid];
498
- if (m.generatedLine < line0 || m.generatedLine === line0 && m.generatedColumn <= col0) {
499
- if (m.generatedLine === line0) {
500
- best = m;
501
- }
502
- lo = mid + 1;
503
- } else {
504
- hi = mid - 1;
505
- }
506
- }
507
- return best;
508
- }
509
- function resolvePosition(map, line1Based, column1Based) {
510
- const { mappings, malformedCount } = decodeMappings(map.mappings);
511
- const match = findMappingAt(mappings, Math.max(0, line1Based - 1), Math.max(0, column1Based - 1));
512
- if (!match) {
513
- return { malformedCount };
514
- }
515
- const rawSource = map.sources[match.sourceIndex];
516
- const source = map.sourceRoot && rawSource && !rawSource.startsWith(map.sourceRoot) ? `${map.sourceRoot.replace(/\/$/, "")}/${rawSource.replace(/^\//, "")}` : rawSource;
517
- return {
518
- source,
519
- line: match.originalLine + 1,
520
- column: match.originalColumn + 1,
521
- name: match.nameIndex !== void 0 ? map.names[match.nameIndex] : void 0,
522
- malformedCount
523
- };
524
- }
525
- function collectMapFiles(mapsDir) {
526
- if (!fs3.existsSync(mapsDir)) return [];
527
- const results = [];
528
- const walk = (dir) => {
529
- let entries;
530
- try {
531
- entries = fs3.readdirSync(dir, { withFileTypes: true });
532
- } catch {
533
- return;
534
- }
535
- for (const entry of entries) {
536
- const fullPath = path3.join(dir, entry.name);
537
- if (entry.isDirectory()) {
538
- walk(fullPath);
539
- } else if (entry.isFile() && entry.name.endsWith(".map")) {
540
- results.push(fullPath);
541
- }
542
- }
543
- };
544
- walk(mapsDir);
545
- return results;
546
- }
547
- function findMatchingMapFile(fileRef, mapsDir, allMaps) {
548
- let cleanRef = fileRef.trim();
549
- try {
550
- if (/^https?:\/\//i.test(cleanRef)) {
551
- cleanRef = new URL(cleanRef).pathname;
552
- }
553
- } catch {
554
- }
555
- cleanRef = cleanRef.split("?")[0].split("#")[0].replace(/\\/g, "/").replace(/^\/+/, "");
556
- const targetMapName = `${path3.posix.basename(cleanRef)}.map`;
557
- const exactCandidate = path3.join(mapsDir, `${cleanRef}.map`);
558
- if (fs3.existsSync(exactCandidate)) {
559
- return exactCandidate;
560
- }
561
- for (const mapPath of allMaps) {
562
- const rel = path3.relative(mapsDir, mapPath).replace(/\\/g, "/");
563
- if (rel === `${cleanRef}.map` || rel.endsWith(`/${cleanRef}.map`) || cleanRef.endsWith(`/${rel.slice(0, -4)}`)) {
564
- return mapPath;
565
- }
566
- }
567
- return allMaps.find((m) => path3.basename(m) === targetMapName);
568
- }
569
- var STACK_FRAME_REGEX = /(?:at\s+(?:[^(]+\s+\()?|\@)([^\s()]+?):(\d+):(\d+)\)?/;
570
- async function symbolicateStackTrace(options) {
571
- const cwd = path3.resolve(options.cwd ?? process.cwd());
572
- const mapsDir = path3.resolve(cwd, options.mapsDir ?? ".unpeek-maps");
573
- const allMaps = collectMapFiles(mapsDir);
574
- const warnings = [];
575
- const mapCache = /* @__PURE__ */ new Map();
576
- if (allMaps.length === 0) {
577
- warnings.push(`No .map files found in "${mapsDir}".`);
578
- }
579
- const lines = options.stackTrace.split(/\r?\n/);
580
- const frames = [];
581
- const outputLines = [];
582
- for (const rawLine of lines) {
583
- const match = rawLine.match(STACK_FRAME_REGEX);
584
- if (!match) {
585
- frames.push({ raw: rawLine, resolved: false });
586
- outputLines.push(rawLine);
587
- continue;
588
- }
589
- const fileRef = match[1];
590
- const lineNum = Number(match[2]);
591
- const colNum = Number(match[3]);
592
- const mapPath = findMatchingMapFile(fileRef, mapsDir, allMaps);
593
- if (!mapPath) {
594
- frames.push({ raw: rawLine, file: fileRef, line: lineNum, column: colNum, resolved: false });
595
- outputLines.push(rawLine);
596
- continue;
597
- }
598
- let parsedMap = mapCache.get(mapPath);
599
- if (parsedMap === void 0) {
600
- try {
601
- parsedMap = JSON.parse(fs3.readFileSync(mapPath, "utf8"));
602
- } catch {
603
- parsedMap = null;
604
- warnings.push(`Failed to parse source map "${mapPath}".`);
605
- }
606
- mapCache.set(mapPath, parsedMap);
607
- }
608
- if (!parsedMap || typeof parsedMap.mappings !== "string" || !Array.isArray(parsedMap.sources)) {
609
- frames.push({ raw: rawLine, file: fileRef, line: lineNum, column: colNum, resolved: false });
610
- outputLines.push(rawLine);
611
- continue;
612
- }
613
- const pos = resolvePosition(parsedMap, lineNum, colNum);
614
- if (pos.malformedCount > 0) {
615
- warnings.push(`Skipped ${pos.malformedCount} malformed VLQ segment(s) in "${path3.basename(mapPath)}".`);
616
- }
617
- if (!pos.source || pos.line === void 0 || pos.column === void 0) {
618
- frames.push({ raw: rawLine, file: fileRef, line: lineNum, column: colNum, resolved: false });
619
- outputLines.push(rawLine);
620
- continue;
621
- }
622
- frames.push({
623
- raw: rawLine,
624
- file: fileRef,
625
- line: lineNum,
626
- column: colNum,
627
- originalSource: pos.source,
628
- originalLine: pos.line,
629
- originalColumn: pos.column,
630
- originalName: pos.name,
631
- resolved: true
632
- });
633
- const fnPrefix = pos.name ? `${pos.name} ` : "";
634
- outputLines.push(` at ${fnPrefix}(${pos.source}:${pos.line}:${pos.column})`);
635
- }
636
- return {
637
- stackTrace: outputLines.join("\n"),
638
- frames,
639
- warnings: Array.from(new Set(warnings))
640
- };
641
- }
642
443
  export {
643
444
  PRESETS,
644
445
  UnpeekError,
@@ -6,8 +6,9 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkRXUY3MPHcjs = require('../chunk-RXUY3MPH.cjs');
10
- require('../chunk-IAD5DV3D.cjs');
9
+ var _chunkVG4Y26ZNcjs = require('../chunk-VG4Y26ZN.cjs');
10
+ require('../chunk-3LWXEJU6.cjs');
11
+ require('../chunk-KLYFNMKS.cjs');
11
12
  require('../chunk-L6BOM5VS.cjs');
12
13
 
13
14
 
@@ -17,4 +18,4 @@ require('../chunk-L6BOM5VS.cjs');
17
18
 
18
19
 
19
20
 
20
- exports.default = _chunkRXUY3MPHcjs.unplugin_default; exports.esbuildPlugin = _chunkRXUY3MPHcjs.esbuildPlugin; exports.rollupPlugin = _chunkRXUY3MPHcjs.rollupPlugin; exports.rspackPlugin = _chunkRXUY3MPHcjs.rspackPlugin; exports.unpeekPlugin = _chunkRXUY3MPHcjs.unpeekPlugin; exports.vitePlugin = _chunkRXUY3MPHcjs.vitePlugin; exports.webpackPlugin = _chunkRXUY3MPHcjs.webpackPlugin;
21
+ exports.default = _chunkVG4Y26ZNcjs.unplugin_default; exports.esbuildPlugin = _chunkVG4Y26ZNcjs.esbuildPlugin; exports.rollupPlugin = _chunkVG4Y26ZNcjs.rollupPlugin; exports.rspackPlugin = _chunkVG4Y26ZNcjs.rspackPlugin; exports.unpeekPlugin = _chunkVG4Y26ZNcjs.unpeekPlugin; exports.vitePlugin = _chunkVG4Y26ZNcjs.vitePlugin; exports.webpackPlugin = _chunkVG4Y26ZNcjs.webpackPlugin;
@@ -6,8 +6,9 @@ import {
6
6
  unplugin_default,
7
7
  vitePlugin,
8
8
  webpackPlugin
9
- } from "../chunk-DUK2SECY.js";
10
- import "../chunk-IZIWDJRF.js";
9
+ } from "../chunk-YCRMTXOE.js";
10
+ import "../chunk-ADKRENAP.js";
11
+ import "../chunk-4FNZNIBW.js";
11
12
  import "../chunk-LA6J3BT3.js";
12
13
  export {
13
14
  unplugin_default as default,
@@ -1,4 +1,4 @@
1
- import { f as UnpeekFramework, h as UnpeekProfile, B as BaseProtectionOptions } from './config-CfXY_iDD.cjs';
1
+ import { f as UnpeekFramework, h as UnpeekProfile, B as BaseProtectionOptions } from './config-Y6JwVGwX.js';
2
2
 
3
3
  interface ProtectOptions extends BaseProtectionOptions {
4
4
  /** Target project root directory (defaults to process.cwd()) */
@@ -46,7 +46,7 @@ interface ProtectSummary {
46
46
  totalMangledSymbols: number;
47
47
  elapsedMs: number;
48
48
  seed?: number;
49
- tier?: 'Tier 1' | 'Tier 2';
49
+ tier?: 'Tier 1' | 'Tier 2' | 'Tier 3';
50
50
  aggressive?: boolean;
51
51
  dockerIgnoreMissing?: boolean;
52
52
  dryRun?: boolean;
@@ -75,7 +75,7 @@ interface CheckOptions {
75
75
  strictCsp?: boolean;
76
76
  }
77
77
  interface CheckViolation {
78
- rule: 'public-map' | 'sourcemap-comment' | 'ignore-missing' | 'gzip-budget' | 'eval-csp';
78
+ rule: 'public-map' | 'sourcemap-comment' | 'ignore-missing' | 'gzip-budget' | 'eval-csp' | 'debugid-mismatch';
79
79
  severity: 'error' | 'warning';
80
80
  message: string;
81
81
  file?: string;
@@ -1,4 +1,4 @@
1
- import { f as UnpeekFramework, h as UnpeekProfile, B as BaseProtectionOptions } from './config-CfXY_iDD.js';
1
+ import { f as UnpeekFramework, h as UnpeekProfile, B as BaseProtectionOptions } from './config-Y6JwVGwX.cjs';
2
2
 
3
3
  interface ProtectOptions extends BaseProtectionOptions {
4
4
  /** Target project root directory (defaults to process.cwd()) */
@@ -46,7 +46,7 @@ interface ProtectSummary {
46
46
  totalMangledSymbols: number;
47
47
  elapsedMs: number;
48
48
  seed?: number;
49
- tier?: 'Tier 1' | 'Tier 2';
49
+ tier?: 'Tier 1' | 'Tier 2' | 'Tier 3';
50
50
  aggressive?: boolean;
51
51
  dockerIgnoreMissing?: boolean;
52
52
  dryRun?: boolean;
@@ -75,7 +75,7 @@ interface CheckOptions {
75
75
  strictCsp?: boolean;
76
76
  }
77
77
  interface CheckViolation {
78
- rule: 'public-map' | 'sourcemap-comment' | 'ignore-missing' | 'gzip-budget' | 'eval-csp';
78
+ rule: 'public-map' | 'sourcemap-comment' | 'ignore-missing' | 'gzip-budget' | 'eval-csp' | 'debugid-mismatch';
79
79
  severity: 'error' | 'warning';
80
80
  message: string;
81
81
  file?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unpeek",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Zero-config, call-graph-aware polymorphic AST obfuscation and passive runtime anti-tamper with <2% CPU overhead.",
5
5
  "type": "module",
6
6
  "license": "MIT",