403Webshell
Server IP : 159.203.156.69  /  Your IP : 216.73.216.37
Web Server : nginx/1.24.0
System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/tanviranik.com/node_modules/vinext/dist/server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/tanviranik.com/node_modules/vinext/dist/server/next-error-digest.js.map
{"version":3,"file":"next-error-digest.js","names":[],"sources":["../../src/server/next-error-digest.ts"],"sourcesContent":["/**\n * Helpers for parsing Next.js error `digest` strings shared across the App\n * Router execution paths (server actions, page renders, route handlers).\n *\n * Next.js encodes special control flow as thrown errors carrying a `digest`\n * field with one of these formats:\n *  - `NEXT_REDIRECT;<type>;<encodedUrl>;<status>` — `redirect()` / `permanentRedirect()`\n *  - `NEXT_NOT_FOUND` — `notFound()`\n *  - `NEXT_HTTP_ERROR_FALLBACK;<status>` — `forbidden()` / `unauthorized()` / etc.\n *\n * Each call site needs slightly different post-processing (URL resolution\n * against the request, 303-vs-307 status overrides for actions, etc.), so\n * these helpers only handle the parsing — callers shape the result.\n */\n\ntype NextRedirectDigest = {\n  status: number;\n  type: string | null;\n  url: string;\n};\n\ntype NextHttpErrorDigest = {\n  status: number;\n};\n\n/**\n * Pulls a stringified `digest` off an unknown thrown value, or returns null\n * when the value is not a digest-bearing error.\n */\nexport function getNextErrorDigest(error: unknown): string | null {\n  if (!error || typeof error !== \"object\" || !(\"digest\" in error)) {\n    return null;\n  }\n\n  return String(error.digest);\n}\n\n/**\n * Parses a `NEXT_REDIRECT;<type>;<encodedUrl>;<status>` digest. Returns null\n * when the digest is not a redirect digest or the encoded URL segment is\n * missing. The `url` is decoded with `decodeURIComponent`; the `status`\n * defaults to 307 when omitted; an omitted `type` is left as null so the\n * caller can apply the correct context-sensitive default.\n */\nexport function parseNextRedirectDigest(digest: string): NextRedirectDigest | null {\n  if (!digest.startsWith(\"NEXT_REDIRECT;\")) {\n    return null;\n  }\n\n  const parts = digest.split(\";\");\n  const encodedUrl = parts[2];\n  if (!encodedUrl) {\n    return null;\n  }\n\n  const type = parts[1];\n\n  return {\n    status: parts[3] ? parseInt(parts[3], 10) : 307,\n    type: type || null,\n    url: decodeURIComponent(encodedUrl),\n  };\n}\n\n/**\n * Parses a `NEXT_NOT_FOUND` or `NEXT_HTTP_ERROR_FALLBACK;<status>` digest.\n * Returns `{ status: 404 }` for `NEXT_NOT_FOUND` and the parsed status code\n * for the fallback form. Returns null otherwise.\n */\nexport function parseNextHttpErrorDigest(digest: string): NextHttpErrorDigest | null {\n  if (digest === \"NEXT_NOT_FOUND\") {\n    return { status: 404 };\n  }\n  if (digest.startsWith(\"NEXT_HTTP_ERROR_FALLBACK;\")) {\n    return { status: parseInt(digest.split(\";\")[1], 10) };\n  }\n  return null;\n}\n"],"mappings":";;;;;AA6BA,SAAgB,mBAAmB,OAA+B;CAChE,IAAI,CAAC,SAAS,OAAO,UAAU,YAAY,EAAE,YAAY,QACvD,OAAO;CAGT,OAAO,OAAO,MAAM,OAAO;;;;;;;;;AAU7B,SAAgB,wBAAwB,QAA2C;CACjF,IAAI,CAAC,OAAO,WAAW,iBAAiB,EACtC,OAAO;CAGT,MAAM,QAAQ,OAAO,MAAM,IAAI;CAC/B,MAAM,aAAa,MAAM;CACzB,IAAI,CAAC,YACH,OAAO;CAGT,MAAM,OAAO,MAAM;CAEnB,OAAO;EACL,QAAQ,MAAM,KAAK,SAAS,MAAM,IAAI,GAAG,GAAG;EAC5C,MAAM,QAAQ;EACd,KAAK,mBAAmB,WAAW;EACpC;;;;;;;AAQH,SAAgB,yBAAyB,QAA4C;CACnF,IAAI,WAAW,kBACb,OAAO,EAAE,QAAQ,KAAK;CAExB,IAAI,OAAO,WAAW,4BAA4B,EAChD,OAAO,EAAE,QAAQ,SAAS,OAAO,MAAM,IAAI,CAAC,IAAI,GAAG,EAAE;CAEvD,OAAO"}

Youez - 2016 - github.com/yon3zu
LinuXploit