unpeek 4.0.0 → 4.0.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/README.md +7 -6
- package/README.tr.md +6 -5
- package/dist/adapters/esbuild.cjs +5 -5
- package/dist/adapters/esbuild.js +3 -3
- package/dist/adapters/next/adapter.cjs +5 -5
- package/dist/adapters/next/adapter.js +4 -4
- package/dist/adapters/next/index.cjs +5 -5
- package/dist/adapters/next/index.js +4 -4
- package/dist/adapters/rollup.cjs +5 -5
- package/dist/adapters/rollup.js +3 -3
- package/dist/adapters/rspack.cjs +5 -5
- package/dist/adapters/rspack.js +3 -3
- package/dist/adapters/vite.cjs +5 -5
- package/dist/adapters/vite.js +3 -3
- package/dist/adapters/webpack.cjs +5 -5
- package/dist/adapters/webpack.js +3 -3
- package/dist/browser.cjs +2 -2
- package/dist/browser.js +1 -1
- package/dist/{chunk-3LWXEJU6.cjs → chunk-3GDHYBVH.cjs} +56 -18
- package/dist/{chunk-YCRMTXOE.js → chunk-4G2HCME5.js} +2 -2
- package/dist/{chunk-2JU3V7HW.js → chunk-4SOS3LRV.js} +50 -9
- package/dist/{chunk-7HXLHLLQ.cjs → chunk-7ZEVJ4OR.cjs} +121 -29
- package/dist/{chunk-4FNZNIBW.js → chunk-LGTXAAZH.js} +686 -344
- package/dist/{chunk-KLYFNMKS.cjs → chunk-M46SFJE7.cjs} +813 -471
- package/dist/{chunk-ZG7BIAUI.cjs → chunk-NNAAPDUS.cjs} +58 -17
- package/dist/{chunk-VG4Y26ZN.cjs → chunk-OTA75YI6.cjs} +14 -14
- package/dist/{chunk-ADKRENAP.js → chunk-TYL32LUK.js} +46 -8
- package/dist/{chunk-HHC7BUCK.js → chunk-XYN5NYSD.js} +95 -3
- package/dist/cli/index.js +921 -372
- package/dist/index.cjs +184 -45
- package/dist/index.js +170 -31
- package/dist/plugins/unplugin.cjs +4 -4
- package/dist/plugins/unplugin.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,9 +63,9 @@ flowchart TD
|
|
|
63
63
|
1. **Call-Graph Hot-Path Exemption (`<2%` CPU Budget)**
|
|
64
64
|
Before modifying an AST node, [`detectHotPaths`](packages/unpeek/src/ast/index.ts) traverses the file call graph bidirectionally. Functions containing loops (`for`, `while`, `do-while`, `for-of`), array higher-order callbacks (`.map`, `.filter`, `.reduce`, `.forEach`), `requestAnimationFrame` tickers, React/UI render components (`useState`, `useEffect`, `createElement`), and all helper callees invoked from hot loops are flagged as hot paths. `unpeek` exempts hot loops and their callees from both opaque control-flow predicates and string vault rewriting, while protecting cold functions (such as license checks, request signers, and auth validators). V8 JIT optimization inside hot loops remains untouched.
|
|
65
65
|
2. **O(1) Const-Array & 64-Bit Salted String Vaults (`<15%` Gzip Budget)**
|
|
66
|
-
Cold string literals (`minStringLength >= 4`) are encoded with a seed-shuffled 92-character involutory ASCII permutation (`P[P[c]] = c`) or 64-bit call-site salted decoders (`computeCallSiteSalt64`) backed by a shared singleton `<1.2 KB` host-coupled WASM KDF (`env.g`/`env.m`, with a bit-identical non-linear Rivest + S-Box JS fallback).
|
|
66
|
+
Cold string literals (`minStringLength >= 4`) are encoded with a seed-shuffled 92-character involutory ASCII permutation (`P[P[c]] = c`) or 64-bit call-site salted decoders (`computeCallSiteSalt64`) backed by a shared singleton `<1.2 KB` host-coupled WASM KDF (`env.g`/`env.m`, with a bit-identical non-linear Rivest + S-Box JS fallback), alongside an in-place re-encrypting `Uint8Array` + `TextDecoder` Shader Vault across both Tier 2 (`recommended`) and Tier 3 (`strict` / `--aggressive`). In browser and `WorkerGlobalScope` contexts, async split chunks executing before entry shield initialization resolve cleanly without cache poisoning (`d = -1` removed), while bare non-browser VMs (`node:vm` without `window`/`document`/`self`) and active tampering fail closed without caching.
|
|
67
67
|
3. **Order-Independent `globalThis` Shield, Non-Linear MBA & Tier 3 Micro-VM v2**
|
|
68
|
-
Entry chunks inject an order-independent, `WorkerGlobalScope`-safe (`self`/`globalThis`) integrity IIFE using `Function.prototype.toString()` and `Reflect.apply` descriptor checks (`verifyCodeIntegrity`). Cold paths (`coldFlow: true`) receive `>=4`-variable semi-linear MBA + degree-3 Rivest $\mathbb{Z}_{2^{32}}$ QNR predicates (
|
|
68
|
+
Entry chunks inject an order-independent, `WorkerGlobalScope`-safe (`self`/`globalThis`) integrity IIFE using `Function.prototype.toString()` and `Reflect.apply` descriptor, signature, cross-call, and stack-trace `Proxy` trap checks (`verifyCodeIntegrity`). Cold paths (`coldFlow: true`) receive type-guarded `>=4`-variable semi-linear MBA + degree-3 Rivest $\mathbb{Z}_{2^{32}}$ QNR predicates across 4 modular residue families ($\pmod 4, \pmod 8, \pmod{16}$) with alias perturbation and neutral decoy bridges; Tier 3 / `--aggressive` priority-scores `@unpeek-critical` and critical submit/validation handlers into a `globalThis`-shared 43-opcode direct-threaded Micro-VM v2 (`$step` trampoline, inter-block `$f.ac` ratchet, non-zero per-opcode handler MBA offsets, `_uVm*` self-hashing, and zero `eval()`). The response on tamper is governed by `deterrentMode`:
|
|
69
69
|
- `passive` (default for both CLI `protect` and `unplugin`): Dispatches a tamper telemetry event (`unpeek:tamper`) to `self`/`globalThis` with zero console muting or audible breakage, enabling covert telemetry.
|
|
70
70
|
- `gradual` (opt-in via `--gradual` or `deterrentMode: 'gradual'`): Progressively corrupts internal runtime lookups and silences `console` output, neutralizing attackers without providing an immediate crash trace to patch.
|
|
71
71
|
4. **Multi-Pass Source Map Vault (`.unpeek-maps/`) & SHA-256 `debugId`**
|
|
@@ -103,14 +103,15 @@ npx unpeek protect
|
|
|
103
103
|
| :--- | :--- | :--- |
|
|
104
104
|
| `init [--dry-run] [--profile <name>]` | Automatically detect project framework, configure `postbuild` script, and create `.unpeek-maps/` vault | |
|
|
105
105
|
| `protect` | Protect production client bundles in-place (default command) | |
|
|
106
|
-
| `check` | Read-only CI gate for leaked maps, `sourceMappingURL` comments, ignore entries, Gzip budget, and `eval()` | |
|
|
106
|
+
| `check` | Read-only CI gate for leaked maps, `sourceMappingURL` comments, ignore entries, Gzip budget, and `eval()` (`--require-zero-eval` preserves pre-existing baseline/vendor `node_modules/` & `Function("return this")` warnings while failing on unattributed/injected calls) | |
|
|
107
107
|
| `symbolicate` | Resolve production stack traces locally using `.unpeek-maps/` (`--maps-dir`, `--trace`, `--file`) | |
|
|
108
108
|
| `--profile <name>` | Preset profile: `minimal`, `recommended`, or `strict` | |
|
|
109
109
|
| `--dry-run` | Compute transform & Gzip delta in memory without writing files | Disabled |
|
|
110
110
|
| `--max-gzip-delta <num>` | Fail if Gzip delta exceeds percentage (`protect` / `check`) | `15` (for `check`) |
|
|
111
|
+
| `--require-zero-eval` | Fail `check` if unattributed or post-protection `eval()` / `new Function()` calls exist | Disabled |
|
|
111
112
|
| `--out-dir <path>` | Explicit client output directory override (e.g., `dist/assets`, `.next/static/chunks`) | Auto-detected from project framework |
|
|
112
113
|
| `--seed <number>` | Deterministic 32-bit polymorphic build seed | Random per build |
|
|
113
|
-
| `--aggressive` | Enable Tier
|
|
114
|
+
| `--aggressive` | Enable Tier 3 aggressive protection (Micro-VM v2, singleton WASM KDF, salted vault & Shader Vault) | Disabled (Tier 1 default: <2% CPU, <15% Gzip) |
|
|
114
115
|
| `--passive` | Use passive deterrent mode (tamper telemetry event without console muting) | Default (`passive`) |
|
|
115
116
|
| `--gradual` | Use gradual deterrent mode (silences `console` and corrupts runtime state on tamper) | Disabled |
|
|
116
117
|
| `--detect-headless` | Treat `navigator.webdriver` / `HeadlessChrome` signals as tamper | Disabled |
|
|
@@ -160,7 +161,7 @@ export default defineConfig({
|
|
|
160
161
|
|
|
161
162
|
#### Next.js (`next.config.mjs`)
|
|
162
163
|
|
|
163
|
-
For **Next.js >= 16.2**, use the Build Adapter helper `withUnpeek` from `unpeek/next` (automatically wired by `npx unpeek init`):
|
|
164
|
+
For **Next.js >= 16.2**, use the Build Adapter helper `withUnpeek` from `unpeek/next` (automatically wired by `npx unpeek init`). `withUnpeek` / `createUnpeekNextAdapter` automatically injects a deterministic `outputHashSalt` during production builds to prevent Vercel immutable chunk hash collisions, selectively exempts `TURBOPACK.push` headers while encrypting module factory bodies, and falls back to `.vercel/output/static/_next/static` when `.next/static` is empty:
|
|
164
165
|
|
|
165
166
|
```js
|
|
166
167
|
import { withUnpeek } from 'unpeek/next';
|
|
@@ -519,7 +520,7 @@ powershell -File scripts/stage-release.ps1
|
|
|
519
520
|
|
|
520
521
|
- **Build / Transform Time:** `< 3000 ms`
|
|
521
522
|
- **Gzip Size Delta:** `< 15%` on Tier 1 & Tier 2 production application bundles
|
|
522
|
-
- **Runtime CPU Overhead:** `< 2.00%` on Tier 1 & Tier 2 hot paths (
|
|
523
|
+
- **Runtime CPU Overhead:** `< 2.00%` on Tier 1 & Tier 2 hot paths (paired interleaved multi-round interquartile mean)
|
|
523
524
|
- **Plaintext Leak Rate:** `0%` for string literals meeting `minStringLength`
|
|
524
525
|
|
|
525
526
|
## License
|
package/README.tr.md
CHANGED
|
@@ -63,9 +63,9 @@ flowchart TD
|
|
|
63
63
|
1. **Çağrı Grafiği (Call-Graph) Hot-Path Muafiyeti (`<%2` CPU Bütçesi)**
|
|
64
64
|
[`detectHotPaths`](packages/unpeek/src/ast/index.ts), tek bir AST düğümünü değiştirmeden önce dosyanın çağrı grafiğini çift yönlü tarar. Döngü içeren fonksiyonlar (`for`, `while`, `do-while`, `for-of`), dizi yüksek mertebe geri çağrıları (`.map`, `.filter`, `.reduce`, `.forEach`), `requestAnimationFrame` zamanlayıcıları, React/UI bileşenleri (`useState`, `useEffect`, `createElement`) ve sıcak döngülerden çağrılan tüm yardımcı fonksiyonlar sıcak yol (hot path) olarak işaretlenir. `unpeek` sıcak döngüleri ve yardımcılarını hem opak kontrol akışı korumalarından hem de metin kasası dönüşümünden muaf tutar; korumayı yalnızca soğuk fonksiyonlara (lisans doğrulama, istek imzalama, yetki kontrolü gibi) uygular. Sıcak döngülerdeki V8 JIT optimizasyonu doğal hızında çalışmayı sürdürür.
|
|
65
65
|
2. **O(1) Sabit-Dizi ve 64-Bit Tuzlu Metin Kasaları (`<%15` Gzip Bütçesi)**
|
|
66
|
-
Soğuk metin sabitleri (`minStringLength >= 4`), 92 karakterli kaçışsız involutory ASCII permütasyonu (`P[P[c]] = c`) veya paylaşımlı tekil `<1.2 KB` konak-bağlı WASM KDF (`env.g`/`env.m`, bit-özdeş non-lineer Rivest + S-Box JS yedeği ile) destekli 64-bit çağrı-noktası tuzlu çözücülerle (`computeCallSiteSalt64`) kodlanır.
|
|
66
|
+
Soğuk metin sabitleri (`minStringLength >= 4`), 92 karakterli kaçışsız involutory ASCII permütasyonu (`P[P[c]] = c`) veya paylaşımlı tekil `<1.2 KB` konak-bağlı WASM KDF (`env.g`/`env.m`, bit-özdeş non-lineer Rivest + S-Box JS yedeği ile) destekli 64-bit çağrı-noktası tuzlu çözücülerle (`computeCallSiteSalt64`) kodlanır; hem Tier 2 (`recommended`) hem Tier 3 (`strict` / `--aggressive`) modlarında yerinde yeniden şifrelenen `Uint8Array` + `TextDecoder` Shader Kasası uygulanır. Tarayıcı ve `WorkerGlobalScope` ortamlarında giriş kalkanından önce çalışan asenkron parçalar önbelleği zehirlemeden geçerli düz metni çözerken, çıplak tarayıcı-dışı VM bağlamları (`window`/`document`/`self` olmayan `node:vm`) ve aktif kurcalamalar önbelleğe yazmadan kapalı başarısız olur.
|
|
67
67
|
3. **Sıra-Bağımsız `globalThis` Kalkanı, Non-Lineer MBA ve Tier 3 Micro-VM v2**
|
|
68
|
-
Giriş paketleri, `WorkerGlobalScope` uyumlu (`self`/`globalThis`) sıra-bağımsız bir bütünlük IIFE'i enjekte eder ve [`verifyCodeIntegrity`](packages/unpeek/src/runtime/index.ts) ile `Function.prototype.toString()` + `Reflect.apply`
|
|
68
|
+
Giriş paketleri, `WorkerGlobalScope` uyumlu (`self`/`globalThis`) sıra-bağımsız bir bütünlük IIFE'i enjekte eder ve [`verifyCodeIntegrity`](packages/unpeek/src/runtime/index.ts) ile `Function.prototype.toString()` + `Reflect.apply` tanımlayıcı, imza, çapraz çağrı ve yığın izi `Proxy` tuzaklarını yakalar. Soğuk yollar (`coldFlow: true`), tip korumalı `>=4`-değişkenli yarı-lineer MBA + 4 modüler rezidü ailesi ($\pmod 4, \pmod 8, \pmod{16}$) üzerinde derece-3 Rivest $\mathbb{Z}_{2^{32}}$ QNR koşulları, alias tablosu karıştırması ve nötr tuzak köprüleri alır; Tier 3 / `--aggressive`, `@unpeek-critical` ve kritik form/doğrulama işleyicilerini öncelik sırasıyla `globalThis` üzerinde paylaşılan 43-komutlu direct-threaded Micro-VM v2 motoruna (`$step` trambolini, bloklar arası `$f.ac` çarkı, sıfır-olmayan opcode başına MBA sapmaları, `_uVm*` öz-karması ve sıfır `eval()`) taşır. Verilen tepki `deterrentMode` ile yönetilir:
|
|
69
69
|
- `passive` (hem CLI `protect` hem de `unplugin` varsayılanı): Konsol çıktısını susturmadan veya uygulamayı çökertmeden `self`/`globalThis` üzerine bir telemetri olayı (`unpeek:tamper`) iletir; tersine mühendislik girişimlerinin sessizce izlenmesini sağlar.
|
|
70
70
|
- `gradual` (`--gradual` veya `deterrentMode: 'gradual'` ile seçime bağlı): İç çalışma zamanı çözümlemelerini kademeli olarak bozar ve `console` çıktılarını susturur; saldırganların doğrudan yamayabileceği ani bir hata yığın izi üretmeden kodu işlevsizleştirir.
|
|
71
71
|
4. **Çok Geçişli Source Map Kasası (`.unpeek-maps/`) ve SHA-256 `debugId`**
|
|
@@ -103,14 +103,15 @@ npx unpeek protect
|
|
|
103
103
|
| :--- | :--- | :--- |
|
|
104
104
|
| `init [--dry-run] [--profile <ad>]` | Proje çerçevesini otomatik algılar, `postbuild` kancasını ve `.unpeek-maps/` kasasını yapılandırır | |
|
|
105
105
|
| `protect` | Üretim istemci paketlerini yerinde korur (varsayılan komut) | |
|
|
106
|
-
| `check` | Sızan `.map` dosyaları, `sourceMappingURL` yorumları, yoksayma kuralları, Gzip bütçesi ve `eval()` için salt okunur CI kapısı | |
|
|
106
|
+
| `check` | Sızan `.map` dosyaları, `sourceMappingURL` yorumları, yoksayma kuralları, Gzip bütçesi ve `eval()` için salt okunur CI kapısı (`--require-zero-eval` koruma öncesi taban çizgisi, `node_modules/` kaynak haritası ve `Function("return this")` kalıplarını uyarıda tutar) | |
|
|
107
107
|
| `symbolicate` | `.unpeek-maps/` kullanarak üretim yığın izlerini (stack traces) yerelde çözümler (`--maps-dir`, `--trace`, `--file`) | |
|
|
108
108
|
| `--profile <ad>` | Hazır koruma profili: `minimal`, `recommended` veya `strict` | |
|
|
109
109
|
| `--dry-run` | Dosyalara yazmadan bellek içinde dönüşüm ve Gzip farkını hesaplar | Kapalı |
|
|
110
110
|
| `--max-gzip-delta <sayı>` | Gzip artışı belirtilen yüzdeyi aşarsa hata verir (`protect` / `check`) | `15` (`check` için) |
|
|
111
|
+
| `--require-zero-eval` | Atfedilemeyen veya koruma sonrası eklenen `eval()` / `new Function()` çağrılarında `check` komutunu başarısız kılar | Kapalı |
|
|
111
112
|
| `--out-dir <yol>` | İstemci çıktı klasörünü açıkça belirtir (ör. `dist/assets`, `.next/static/chunks`) | Proje framework'ünden otomatik tespit |
|
|
112
113
|
| `--seed <sayı>` | Deterministik 32-bit polimorfik derleme tohumu (seed) | Derleme başına rastgele |
|
|
113
|
-
| `--aggressive` | Katman
|
|
114
|
+
| `--aggressive` | Katman 3 (Tier 3) agresif korumayı etkinleştirir (Micro-VM v2, tekil WASM KDF, tuzlu kasa ve Shader Kasası) | Varsayılan: kapalı (Tier 1 varsayılanı: <%2 CPU, <%15 Gzip) |
|
|
114
115
|
| `--passive` | Pasif caydırıcı modunu kullanır (konsol sessize alma olmadan yalnızca telemetri olayı) | Varsayılan (`passive`) |
|
|
115
116
|
| `--gradual` | Kademeli caydırıcı modunu kullanır (kurcalamada `console` çıktılarını susturur ve çalışma zamanını bozar) | Kapalı |
|
|
116
117
|
| `--detect-headless` | `navigator.webdriver` / `HeadlessChrome` sinyallerini kurcalama olarak işaretler | Kapalı |
|
|
@@ -160,7 +161,7 @@ export default defineConfig({
|
|
|
160
161
|
|
|
161
162
|
#### Next.js (`next.config.mjs`)
|
|
162
163
|
|
|
163
|
-
**Next.js >= 16.2** için `unpeek/next` alt yolundan `withUnpeek` Build Adapter yardımcısını kullanın (`npx unpeek init` tarafından otomatik bağlanır):
|
|
164
|
+
**Next.js >= 16.2** için `unpeek/next` alt yolundan `withUnpeek` Build Adapter yardımcısını kullanın (`npx unpeek init` tarafından otomatik bağlanır). `withUnpeek` / `createUnpeekNextAdapter` üretim derlemelerinde Vercel değişmez chunk hash çakışmalarını önlemek için deterministik `outputHashSalt` enjekte eder, `TURBOPACK.push` başlıklarını seçici olarak muaf tutarken modül fabrika gövdelerini şifreler ve `.next/static` boş olduğunda `.vercel/output/static/_next/static` çıktı dizinini otomatik algılar:
|
|
164
165
|
|
|
165
166
|
```js
|
|
166
167
|
import { withUnpeek } from 'unpeek/next';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkOTA75YI6cjs = require('../chunk-OTA75YI6.cjs');
|
|
4
|
+
require('../chunk-3GDHYBVH.cjs');
|
|
5
|
+
require('../chunk-M46SFJE7.cjs');
|
|
6
6
|
require('../chunk-L6BOM5VS.cjs');
|
|
7
7
|
|
|
8
8
|
// src/adapters/esbuild.ts
|
|
9
|
-
var esbuild_default =
|
|
9
|
+
var esbuild_default = _chunkOTA75YI6cjs.esbuildPlugin;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default = esbuild_default; exports.unpeekEsbuild =
|
|
13
|
+
exports.default = esbuild_default; exports.unpeekEsbuild = _chunkOTA75YI6cjs.esbuildPlugin;
|
package/dist/adapters/esbuild.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
esbuildPlugin
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4G2HCME5.js";
|
|
4
|
+
import "../chunk-TYL32LUK.js";
|
|
5
|
+
import "../chunk-LGTXAAZH.js";
|
|
6
6
|
import "../chunk-LA6J3BT3.js";
|
|
7
7
|
|
|
8
8
|
// src/adapters/esbuild.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNNAAPDUScjs = require('../../chunk-NNAAPDUS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7ZEVJ4ORcjs = require('../../chunk-7ZEVJ4OR.cjs');
|
|
7
7
|
require('../../chunk-X6EETCO6.cjs');
|
|
8
8
|
require('../../chunk-URPPSTHZ.cjs');
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-3GDHYBVH.cjs');
|
|
10
|
+
require('../../chunk-M46SFJE7.cjs');
|
|
11
11
|
require('../../chunk-L6BOM5VS.cjs');
|
|
12
12
|
|
|
13
13
|
// src/adapters/next/adapter.ts
|
|
14
14
|
var cachedAdapter;
|
|
15
15
|
function getAdapter() {
|
|
16
16
|
if (!cachedAdapter) {
|
|
17
|
-
cachedAdapter =
|
|
17
|
+
cachedAdapter = _chunkNNAAPDUScjs.createUnpeekNextAdapter.call(void 0, _chunk7ZEVJ4ORcjs.readUnpeekNextOptionsFromEnv.call(void 0, ));
|
|
18
18
|
}
|
|
19
19
|
return cachedAdapter;
|
|
20
20
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createUnpeekNextAdapter
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-4SOS3LRV.js";
|
|
4
4
|
import {
|
|
5
5
|
readUnpeekNextOptionsFromEnv
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-XYN5NYSD.js";
|
|
7
7
|
import "../../chunk-W77DAC3H.js";
|
|
8
8
|
import "../../chunk-EN6QVR6P.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-TYL32LUK.js";
|
|
10
|
+
import "../../chunk-LGTXAAZH.js";
|
|
11
11
|
import "../../chunk-LA6J3BT3.js";
|
|
12
12
|
|
|
13
13
|
// src/adapters/next/adapter.ts
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
5
|
+
var _chunkNNAAPDUScjs = require('../../chunk-NNAAPDUS.cjs');
|
|
6
|
+
require('../../chunk-7ZEVJ4OR.cjs');
|
|
7
7
|
require('../../chunk-X6EETCO6.cjs');
|
|
8
8
|
require('../../chunk-URPPSTHZ.cjs');
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-3GDHYBVH.cjs');
|
|
10
|
+
require('../../chunk-M46SFJE7.cjs');
|
|
11
11
|
require('../../chunk-L6BOM5VS.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.createUnpeekNextAdapter =
|
|
16
|
+
exports.createUnpeekNextAdapter = _chunkNNAAPDUScjs.createUnpeekNextAdapter; exports.getUnpeekAdapterPath = _chunkNNAAPDUScjs.getUnpeekAdapterPath; exports.withUnpeek = _chunkNNAAPDUScjs.withUnpeek;
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
createUnpeekNextAdapter,
|
|
3
3
|
getUnpeekAdapterPath,
|
|
4
4
|
withUnpeek
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-4SOS3LRV.js";
|
|
6
|
+
import "../../chunk-XYN5NYSD.js";
|
|
7
7
|
import "../../chunk-W77DAC3H.js";
|
|
8
8
|
import "../../chunk-EN6QVR6P.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-TYL32LUK.js";
|
|
10
|
+
import "../../chunk-LGTXAAZH.js";
|
|
11
11
|
import "../../chunk-LA6J3BT3.js";
|
|
12
12
|
export {
|
|
13
13
|
createUnpeekNextAdapter,
|
package/dist/adapters/rollup.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkOTA75YI6cjs = require('../chunk-OTA75YI6.cjs');
|
|
4
|
+
require('../chunk-3GDHYBVH.cjs');
|
|
5
|
+
require('../chunk-M46SFJE7.cjs');
|
|
6
6
|
require('../chunk-L6BOM5VS.cjs');
|
|
7
7
|
|
|
8
8
|
// src/adapters/rollup.ts
|
|
9
|
-
var rollup_default =
|
|
9
|
+
var rollup_default = _chunkOTA75YI6cjs.rollupPlugin;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default = rollup_default; exports.unpeekRollup =
|
|
13
|
+
exports.default = rollup_default; exports.unpeekRollup = _chunkOTA75YI6cjs.rollupPlugin;
|
package/dist/adapters/rollup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rollupPlugin
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4G2HCME5.js";
|
|
4
|
+
import "../chunk-TYL32LUK.js";
|
|
5
|
+
import "../chunk-LGTXAAZH.js";
|
|
6
6
|
import "../chunk-LA6J3BT3.js";
|
|
7
7
|
|
|
8
8
|
// src/adapters/rollup.ts
|
package/dist/adapters/rspack.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkOTA75YI6cjs = require('../chunk-OTA75YI6.cjs');
|
|
4
|
+
require('../chunk-3GDHYBVH.cjs');
|
|
5
|
+
require('../chunk-M46SFJE7.cjs');
|
|
6
6
|
require('../chunk-L6BOM5VS.cjs');
|
|
7
7
|
|
|
8
8
|
// src/adapters/rspack.ts
|
|
9
|
-
var rspack_default =
|
|
9
|
+
var rspack_default = _chunkOTA75YI6cjs.rspackPlugin;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default = rspack_default; exports.unpeekRspack =
|
|
13
|
+
exports.default = rspack_default; exports.unpeekRspack = _chunkOTA75YI6cjs.rspackPlugin;
|
package/dist/adapters/rspack.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rspackPlugin
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4G2HCME5.js";
|
|
4
|
+
import "../chunk-TYL32LUK.js";
|
|
5
|
+
import "../chunk-LGTXAAZH.js";
|
|
6
6
|
import "../chunk-LA6J3BT3.js";
|
|
7
7
|
|
|
8
8
|
// src/adapters/rspack.ts
|
package/dist/adapters/vite.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkOTA75YI6cjs = require('../chunk-OTA75YI6.cjs');
|
|
4
|
+
require('../chunk-3GDHYBVH.cjs');
|
|
5
|
+
require('../chunk-M46SFJE7.cjs');
|
|
6
6
|
require('../chunk-L6BOM5VS.cjs');
|
|
7
7
|
|
|
8
8
|
// src/adapters/vite.ts
|
|
9
|
-
var vite_default =
|
|
9
|
+
var vite_default = _chunkOTA75YI6cjs.vitePlugin;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default = vite_default; exports.unpeekVite =
|
|
13
|
+
exports.default = vite_default; exports.unpeekVite = _chunkOTA75YI6cjs.vitePlugin;
|
package/dist/adapters/vite.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
vitePlugin
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4G2HCME5.js";
|
|
4
|
+
import "../chunk-TYL32LUK.js";
|
|
5
|
+
import "../chunk-LGTXAAZH.js";
|
|
6
6
|
import "../chunk-LA6J3BT3.js";
|
|
7
7
|
|
|
8
8
|
// src/adapters/vite.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkOTA75YI6cjs = require('../chunk-OTA75YI6.cjs');
|
|
4
|
+
require('../chunk-3GDHYBVH.cjs');
|
|
5
|
+
require('../chunk-M46SFJE7.cjs');
|
|
6
6
|
require('../chunk-L6BOM5VS.cjs');
|
|
7
7
|
|
|
8
8
|
// src/adapters/webpack.ts
|
|
9
|
-
var webpack_default =
|
|
9
|
+
var webpack_default = _chunkOTA75YI6cjs.webpackPlugin;
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default = webpack_default; exports.unpeekWebpack =
|
|
13
|
+
exports.default = webpack_default; exports.unpeekWebpack = _chunkOTA75YI6cjs.webpackPlugin;
|
package/dist/adapters/webpack.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webpackPlugin
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-4G2HCME5.js";
|
|
4
|
+
import "../chunk-TYL32LUK.js";
|
|
5
|
+
import "../chunk-LGTXAAZH.js";
|
|
6
6
|
import "../chunk-LA6J3BT3.js";
|
|
7
7
|
|
|
8
8
|
// src/adapters/webpack.ts
|
package/dist/browser.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _chunkURPPSTHZcjs = require('./chunk-URPPSTHZ.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkM46SFJE7cjs = require('./chunk-M46SFJE7.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -25,4 +25,4 @@ var _chunkL6BOM5VScjs = require('./chunk-L6BOM5VS.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.PRESETS = _chunkURPPSTHZcjs.PRESETS; exports.UnpeekError = _chunkL6BOM5VScjs.UnpeekError; exports.computeFnv1aHash =
|
|
28
|
+
exports.PRESETS = _chunkURPPSTHZcjs.PRESETS; exports.UnpeekError = _chunkL6BOM5VScjs.UnpeekError; exports.computeFnv1aHash = _chunkM46SFJE7cjs.computeFnv1aHash; exports.computeIntegrityHash = _chunkM46SFJE7cjs.computeIntegrityHash; exports.createDeterrentSnippet = _chunkM46SFJE7cjs.createDeterrentSnippet; exports.detectHotPaths = _chunkM46SFJE7cjs.detectHotPaths; exports.generateRuntimeShield = _chunkM46SFJE7cjs.generateRuntimeShield; exports.isUnpeekError = _chunkL6BOM5VScjs.isUnpeekError; exports.transformJavaScript = _chunkM46SFJE7cjs.transformJavaScript; exports.verifyCodeIntegrity = _chunkM46SFJE7cjs.verifyCodeIntegrity;
|
package/dist/browser.js
CHANGED
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkL6BOM5VScjs = require('./chunk-L6BOM5VS.cjs');
|
|
4
4
|
|
|
5
|
-
// src/core/
|
|
5
|
+
// src/core/detector.ts
|
|
6
6
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
7
7
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
8
|
-
|
|
9
|
-
// src/core/detector.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
8
|
var SUPPORTED_EXTENSIONS = /* @__PURE__ */ new Set([".js", ".mjs", ".cjs"]);
|
|
13
9
|
var EXCLUDED_DIR_NAMES = /* @__PURE__ */ new Set([
|
|
14
10
|
"node_modules",
|
|
@@ -79,6 +75,28 @@ function hasNextServerSegment(fullPath, rootDir, serverDirPrefixes) {
|
|
|
79
75
|
}
|
|
80
76
|
return false;
|
|
81
77
|
}
|
|
78
|
+
function hasJsBundleFiles(dir) {
|
|
79
|
+
if (!_fs2.default.existsSync(dir)) return false;
|
|
80
|
+
let entries;
|
|
81
|
+
try {
|
|
82
|
+
entries = _fs2.default.readdirSync(dir, { withFileTypes: true });
|
|
83
|
+
} catch (e3) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
for (const entry of entries) {
|
|
87
|
+
if (entry.isDirectory()) {
|
|
88
|
+
if (EXCLUDED_DIR_NAMES.has(entry.name.toLowerCase())) {
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (hasJsBundleFiles(_path2.default.join(dir, entry.name))) {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
} else if (entry.isFile() && SUPPORTED_EXTENSIONS.has(_path2.default.extname(entry.name).toLowerCase())) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
82
100
|
function detectTargetFramework(cwd, explicitOutDir, explicitConfig) {
|
|
83
101
|
let config = explicitConfig;
|
|
84
102
|
let outDirOverride;
|
|
@@ -125,20 +143,22 @@ function detectTargetFramework(cwd, explicitOutDir, explicitConfig) {
|
|
|
125
143
|
} else if ("webpack" in allDeps || "react-scripts" in allDeps || "@rspack/core" in allDeps) {
|
|
126
144
|
framework = "webpack";
|
|
127
145
|
}
|
|
128
|
-
} catch (
|
|
146
|
+
} catch (e4) {
|
|
129
147
|
}
|
|
130
148
|
}
|
|
131
149
|
}
|
|
132
|
-
const
|
|
150
|
+
const nextStaticDir = _path2.default.join(rootDir, nextDist, "static");
|
|
151
|
+
const nextChunksDir = _path2.default.join(nextStaticDir, "chunks");
|
|
133
152
|
const nextExportChunksDir = _path2.default.join(rootDir, "out", "_next", "static", "chunks");
|
|
134
153
|
const nextExportDir = _path2.default.join(rootDir, "out");
|
|
135
154
|
const nextDistDir = _path2.default.join(rootDir, nextDist);
|
|
155
|
+
const vercelNextStaticDir = _path2.default.join(rootDir, ".vercel", "output", "static", "_next", "static");
|
|
136
156
|
const distAssetsDir = _path2.default.join(rootDir, viteOut, viteAssets);
|
|
137
157
|
const distDir = _path2.default.join(rootDir, viteOut);
|
|
138
158
|
const buildDir = _path2.default.join(rootDir, "build");
|
|
139
159
|
const publicDir = _path2.default.join(rootDir, "public");
|
|
140
160
|
if (!framework) {
|
|
141
|
-
if (_fs2.default.existsSync(nextChunksDir) || _fs2.default.existsSync(nextDistDir) || _fs2.default.existsSync(nextExportChunksDir) || discoveredNextDist !== void 0) {
|
|
161
|
+
if (_fs2.default.existsSync(nextChunksDir) || _fs2.default.existsSync(nextDistDir) || _fs2.default.existsSync(nextExportChunksDir) || _fs2.default.existsSync(vercelNextStaticDir) || discoveredNextDist !== void 0) {
|
|
142
162
|
framework = "nextjs";
|
|
143
163
|
} else if (_fs2.default.existsSync(distAssetsDir) || discoveredViteOut !== void 0) {
|
|
144
164
|
framework = "vite";
|
|
@@ -146,7 +166,7 @@ function detectTargetFramework(cwd, explicitOutDir, explicitConfig) {
|
|
|
146
166
|
framework = "webpack";
|
|
147
167
|
} else if (outDirOverride) {
|
|
148
168
|
const normExplicit = outDirOverride.replace(/\\/g, "/");
|
|
149
|
-
if (normExplicit.includes(nextDist) || normExplicit.includes(".next") || normExplicit.includes("out/_next")) {
|
|
169
|
+
if (normExplicit.includes(nextDist) || normExplicit.includes(".next") || normExplicit.includes("out/_next") || normExplicit.includes("_next/static")) {
|
|
150
170
|
framework = "nextjs";
|
|
151
171
|
} else if (normExplicit.includes(`${viteOut}/${viteAssets}`) || normExplicit.includes("dist/assets")) {
|
|
152
172
|
framework = "vite";
|
|
@@ -169,6 +189,12 @@ function detectTargetFramework(cwd, explicitOutDir, explicitConfig) {
|
|
|
169
189
|
if (framework === "nextjs") {
|
|
170
190
|
if (_fs2.default.existsSync(nextExportChunksDir)) {
|
|
171
191
|
outDir = nextExportChunksDir;
|
|
192
|
+
} else if (_fs2.default.existsSync(nextChunksDir) && hasJsBundleFiles(nextChunksDir)) {
|
|
193
|
+
outDir = nextChunksDir;
|
|
194
|
+
} else if (_fs2.default.existsSync(nextStaticDir) && hasJsBundleFiles(nextStaticDir)) {
|
|
195
|
+
outDir = nextStaticDir;
|
|
196
|
+
} else if (_fs2.default.existsSync(vercelNextStaticDir)) {
|
|
197
|
+
outDir = vercelNextStaticDir;
|
|
172
198
|
} else if (_fs2.default.existsSync(nextChunksDir)) {
|
|
173
199
|
outDir = nextChunksDir;
|
|
174
200
|
} else if (_fs2.default.existsSync(nextExportDir)) {
|
|
@@ -189,7 +215,15 @@ function detectTargetFramework(cwd, explicitOutDir, explicitConfig) {
|
|
|
189
215
|
outDir = distDir;
|
|
190
216
|
}
|
|
191
217
|
} else {
|
|
192
|
-
const candidates = [
|
|
218
|
+
const candidates = [
|
|
219
|
+
nextExportChunksDir,
|
|
220
|
+
nextChunksDir,
|
|
221
|
+
vercelNextStaticDir,
|
|
222
|
+
distAssetsDir,
|
|
223
|
+
distDir,
|
|
224
|
+
buildDir,
|
|
225
|
+
publicDir
|
|
226
|
+
];
|
|
193
227
|
const existing = candidates.find((candidate) => _fs2.default.existsSync(candidate));
|
|
194
228
|
outDir = _nullishCoalesce(existing, () => ( distDir));
|
|
195
229
|
}
|
|
@@ -219,7 +253,7 @@ function scanClientBundles(outDir, config) {
|
|
|
219
253
|
let entries;
|
|
220
254
|
try {
|
|
221
255
|
entries = _fs2.default.readdirSync(currentDir, { withFileTypes: true });
|
|
222
|
-
} catch (
|
|
256
|
+
} catch (e5) {
|
|
223
257
|
return;
|
|
224
258
|
}
|
|
225
259
|
for (const entry of entries) {
|
|
@@ -251,6 +285,8 @@ function scanClientBundles(outDir, config) {
|
|
|
251
285
|
}
|
|
252
286
|
|
|
253
287
|
// src/core/sourcemap-vault.ts
|
|
288
|
+
|
|
289
|
+
|
|
254
290
|
var SOURCE_MAP_COMMENT_REGEX = /[ \t]*(?:\/\/[#@]\s*sourceMappingURL=[^\r\n]*|\/\*[#@]\s*sourceMappingURL=[\s\S]*?\*\/)[ \t]*(?:\r?\n)?/g;
|
|
255
291
|
var DEBUG_ID_COMMENT_REGEX = /(?:\/\/[#@]\s*debugId=([^\s*]+)|\/\*[#@]\s*debugId=([^\s*]+)\s*\*\/)/;
|
|
256
292
|
var DEBUG_ID_LINE_REGEX = /[ \t]*(?:\/\/[#@]\s*debugId=[^\r\n]*|\/\*[#@]\s*debugId=[\s\S]*?\*\/)[ \t]*(?:\r?\n)?/g;
|
|
@@ -414,7 +450,7 @@ function relocateSourceMaps(outDir, cwd, keepPrivateMaps = true, privateMapsDir
|
|
|
414
450
|
let entries;
|
|
415
451
|
try {
|
|
416
452
|
entries = _fs2.default.readdirSync(currentDir, { withFileTypes: true });
|
|
417
|
-
} catch (
|
|
453
|
+
} catch (e6) {
|
|
418
454
|
return;
|
|
419
455
|
}
|
|
420
456
|
for (const entry of entries) {
|
|
@@ -838,11 +874,11 @@ function resolvePosition(map, line1Based, column1Based) {
|
|
|
838
874
|
function safeDecodeURIComponent(input) {
|
|
839
875
|
try {
|
|
840
876
|
return decodeURIComponent(input);
|
|
841
|
-
} catch (
|
|
877
|
+
} catch (e7) {
|
|
842
878
|
return input.replace(/%[0-9A-Fa-f]{2}/g, (seq) => {
|
|
843
879
|
try {
|
|
844
880
|
return decodeURIComponent(seq);
|
|
845
|
-
} catch (
|
|
881
|
+
} catch (e8) {
|
|
846
882
|
return seq;
|
|
847
883
|
}
|
|
848
884
|
});
|
|
@@ -855,7 +891,7 @@ function collectMapFiles(mapsDir) {
|
|
|
855
891
|
let entries;
|
|
856
892
|
try {
|
|
857
893
|
entries = _fs2.default.readdirSync(dir, { withFileTypes: true });
|
|
858
|
-
} catch (
|
|
894
|
+
} catch (e9) {
|
|
859
895
|
return;
|
|
860
896
|
}
|
|
861
897
|
for (const entry of entries) {
|
|
@@ -876,7 +912,7 @@ function normalizeFileRefCandidates(fileRef) {
|
|
|
876
912
|
if (/^(?:https?|file):\/\//i.test(cleanRef)) {
|
|
877
913
|
cleanRef = new URL(cleanRef).pathname;
|
|
878
914
|
}
|
|
879
|
-
} catch (
|
|
915
|
+
} catch (e10) {
|
|
880
916
|
}
|
|
881
917
|
cleanRef = cleanRef.split("?")[0].split("#")[0].replace(/\\/g, "/");
|
|
882
918
|
cleanRef = cleanRef.replace(/^\/+([A-Za-z]:\/)/, "$1").replace(/^\/+/, "");
|
|
@@ -980,7 +1016,7 @@ async function symbolicateStackTrace(options) {
|
|
|
980
1016
|
try {
|
|
981
1017
|
const rawJson = JSON.parse(_fs2.default.readFileSync(mapPath, "utf8"));
|
|
982
1018
|
parsedMap = Array.isArray(_optionalChain([rawJson, 'optionalAccess', _28 => _28.sections])) ? flattenSourceMapSections(rawJson) : rawJson;
|
|
983
|
-
} catch (
|
|
1019
|
+
} catch (e11) {
|
|
984
1020
|
parsedMap = null;
|
|
985
1021
|
warnings.push(`Failed to parse source map "${mapPath}".`);
|
|
986
1022
|
}
|
|
@@ -1051,4 +1087,6 @@ async function symbolicateStackTrace(options) {
|
|
|
1051
1087
|
|
|
1052
1088
|
|
|
1053
1089
|
|
|
1054
|
-
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
exports.isWorkerOrServiceWorkerFile = isWorkerOrServiceWorkerFile; exports.hasNextServerSegment = hasNextServerSegment; exports.hasJsBundleFiles = hasJsBundleFiles; exports.detectTargetFramework = detectTargetFramework; exports.scanClientBundles = scanClientBundles; exports.SOURCE_MAP_COMMENT_REGEX = SOURCE_MAP_COMMENT_REGEX; exports.extractDebugId = extractDebugId; exports.stripDebugIdComments = stripDebugIdComments; exports.replaceOrAppendDebugId = replaceOrAppendDebugId; exports.stripSourceMapComments = stripSourceMapComments; exports.findMonorepoRoots = findMonorepoRoots; exports.relocateSourceMaps = relocateSourceMaps; exports.flattenSourceMapSections = flattenSourceMapSections; exports.shiftSourceMapLines = shiftSourceMapLines; exports.computeDeterministicDebugId = computeDeterministicDebugId; exports.chainSourceMaps = chainSourceMaps; exports.resolvePosition = resolvePosition; exports.safeDecodeURIComponent = safeDecodeURIComponent; exports.symbolicateStackTrace = symbolicateStackTrace;
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
shiftSourceMapLines,
|
|
8
8
|
stripDebugIdComments,
|
|
9
9
|
stripSourceMapComments
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TYL32LUK.js";
|
|
11
11
|
import {
|
|
12
12
|
computeFnv1aHash,
|
|
13
13
|
deriveWindowKeySymbol,
|
|
14
14
|
generateRuntimeShield,
|
|
15
15
|
transformJavaScript
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LGTXAAZH.js";
|
|
17
17
|
|
|
18
18
|
// src/plugins/unplugin.ts
|
|
19
19
|
import fs from "fs";
|