This commit is contained in:
2025-06-04 10:03:22 +02:00
commit 785a2b6134
14182 changed files with 1764617 additions and 0 deletions

2
node_modules/jiti/dist/babel.d.ts generated vendored Normal file
View File

@ -0,0 +1,2 @@
import { TransformOptions, TRANSFORM_RESULT } from "./types";
export default function transform(opts: TransformOptions): TRANSFORM_RESULT;

227
node_modules/jiti/dist/babel.js generated vendored Normal file

File diff suppressed because one or more lines are too long

20
node_modules/jiti/dist/jiti.d.ts generated vendored Normal file
View File

@ -0,0 +1,20 @@
import { Module } from "module";
import { TransformOptions, JITIOptions, JITIImportOptions } from "./types";
export type { JITIOptions, TransformOptions } from "./types";
type Require = typeof require;
type Module = typeof module;
type ModuleCache = Record<string, Module>;
export type EvalModuleOptions = Partial<{
id: string;
filename: string;
ext: string;
cache: ModuleCache;
}>;
export interface JITI extends Require {
transform: (opts: TransformOptions) => string;
register: () => () => void;
evalModule: (source: string, options?: EvalModuleOptions) => unknown;
/** @experimental Behavior of `jiti.import` might change in the future. */
import: (id: string, importOptions: JITIImportOptions) => Promise<unknown>;
}
export default function createJITI(_filename: string, opts?: JITIOptions, parentModule?: Module, parentCache?: ModuleCache): JITI;

1
node_modules/jiti/dist/jiti.js generated vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import type { PluginObj } from "@babel/core";
export declare function TransformImportMetaPlugin(_ctx: any, opts: {
filename?: string;
}): PluginObj;

5
node_modules/jiti/dist/plugins/import-meta-env.d.ts generated vendored Normal file
View File

@ -0,0 +1,5 @@
/**
* Forked from https://github.com/iendeavor/import-meta-env/tree/main/packages/babel 0.4.2 (MIT License - Copyright (c) 2021 Ernest)
*/
import type { PluginObj } from "@babel/core";
export declare function importMetaEnvPlugin({ template, types }: any): PluginObj;

35
node_modules/jiti/dist/types.d.ts generated vendored Normal file
View File

@ -0,0 +1,35 @@
export type TransformOptions = {
source: string;
filename?: string;
ts?: boolean;
retainLines?: boolean;
legacy?: boolean;
[key: string]: any;
};
export type TRANSFORM_RESULT = {
code: string;
error?: any;
};
export type JITIOptions = {
transform?: (opts: TransformOptions) => TRANSFORM_RESULT;
debug?: boolean;
cache?: boolean | string;
sourceMaps?: boolean;
requireCache?: boolean;
v8cache?: boolean;
interopDefault?: boolean;
esmResolve?: boolean;
cacheVersion?: string;
onError?: (error: Error) => void;
legacy?: boolean;
extensions?: string[];
transformOptions?: Omit<TransformOptions, "source">;
alias?: Record<string, string>;
nativeModules?: string[];
transformModules?: string[];
experimentalBun?: boolean;
};
export interface JITIImportOptions {
/** @internal */
_import?: () => Promise<any>;
}

8
node_modules/jiti/dist/utils.d.ts generated vendored Normal file
View File

@ -0,0 +1,8 @@
import type { PackageJson } from "pkg-types";
export declare function getCacheDir(): string;
export declare function isDir(filename: string): boolean;
export declare function isWritable(filename: string): boolean;
export declare function md5(content: string, len?: number): string;
export declare function detectLegacySyntax(code: string): RegExpMatchArray | null;
export declare function isObject(val: any): boolean;
export declare function readNearestPackageJSON(path: string): PackageJson | undefined;