⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
@types
/
node
/
ts4.8
/
Edit File: module.d.ts
/** * @since v0.3.7 */ declare module 'module' { import { URL } from 'node:url'; namespace Module { /** * The `module.syncBuiltinESMExports()` method updates all the live bindings for * builtin `ES Modules` to match the properties of the `CommonJS` exports. It * does not add or remove exported names from the `ES Modules`. * * ```js * const fs = require('node:fs'); * const assert = require('node:assert'); * const { syncBuiltinESMExports } = require('node:module'); * * fs.readFile = newAPI; * * delete fs.readFileSync; * * function newAPI() { * // ... * } * * fs.newAPI = newAPI; * * syncBuiltinESMExports(); * * import('node:fs').then((esmFS) => { * // It syncs the existing readFile property with the new value * assert.strictEqual(esmFS.readFile, newAPI); * // readFileSync has been deleted from the required fs * assert.strictEqual('readFileSync' in fs, false); * // syncBuiltinESMExports() does not remove readFileSync from esmFS * assert.strictEqual('readFileSync' in esmFS, true); * // syncBuiltinESMExports() does not add names * assert.strictEqual(esmFS.newAPI, undefined); * }); * ``` * @since v12.12.0 */ function syncBuiltinESMExports(): void; /** * `path` is the resolved path for the file for which a corresponding source map * should be fetched. * @since v13.7.0, v12.17.0 * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise. */ function findSourceMap(path: string, error?: Error): SourceMap; interface SourceMapPayload { file: string; version: number; sources: string[]; sourcesContent: string[]; names: string[]; mappings: string; sourceRoot: string; } interface SourceMapping { generatedLine: number; generatedColumn: number; originalSource: string; originalLine: number; originalColumn: number; } /** * @since v13.7.0, v12.17.0 */ class SourceMap { /** * Getter for the payload used to construct the `SourceMap` instance. */ readonly payload: SourceMapPayload; constructor(payload: SourceMapPayload); /** * Given a line number and column number in the generated source file, returns * an object representing the position in the original file. The object returned * consists of the following keys: */ findEntry(line: number, column: number): SourceMapping; } } interface Module extends NodeModule {} class Module { static runMain(): void; static wrap(code: string): string; static createRequire(path: string | URL): NodeRequire; static builtinModules: string[]; static isBuiltin(moduleName: string): boolean; static Module: typeof Module; constructor(id: string, parent?: Module); } global { interface ImportMeta { url: string; /** * @experimental * This feature is only available with the `--experimental-import-meta-resolve` * command flag enabled. * * Provides a module-relative resolution function scoped to each module, returning * the URL string. * * @param specified The module specifier to resolve relative to `parent`. * @param parent The absolute parent module URL to resolve from. If none * is specified, the value of `import.meta.url` is used as the default. */ resolve?(specified: string, parent?: string | URL): Promise<string>; } } export = Module; } declare module 'node:module' { import module = require('module'); export = module; }
Simpan