feat: init
This commit is contained in:
21
node_modules/@nuxt/schema/LICENSE
generated
vendored
Normal file
21
node_modules/@nuxt/schema/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016-present - Nuxt Team
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
119
node_modules/@nuxt/schema/README.md
generated
vendored
Normal file
119
node_modules/@nuxt/schema/README.md
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
[](https://nuxt.com)
|
||||
|
||||
# Nuxt
|
||||
|
||||
<p>
|
||||
<a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/v/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Version"></a>
|
||||
<a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/dm/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Downloads"></a>
|
||||
<a href="https://github.com/nuxt/nuxt/blob/main/LICENSE"><img src="https://img.shields.io/github/license/nuxt/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="License"></a>
|
||||
<a href="https://nuxt.com/modules"><img src="https://img.shields.io/badge/dynamic/json?url=https://nuxt.com/api/v1/modules&query=$.stats.modules&label=Modules&style=flat&colorA=18181B&colorB=28CF8D" alt="Modules"></a>
|
||||
<a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt%20Docs-18181B?logo=nuxt" alt="Website"></a>
|
||||
<a href="https://chat.nuxt.dev"><img src="https://img.shields.io/badge/Nuxt%20Discord-18181B?logo=discord" alt="Discord"></a>
|
||||
<a href="https://securityscorecards.dev/"><img src="https://api.securityscorecards.dev/projects/github.com/nuxt/nuxt/badge" alt="Nuxt openssf scorecard score"></a>
|
||||
<a href="https://deepwiki.com/nuxt/nuxt"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
|
||||
</p>
|
||||
|
||||
Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.
|
||||
|
||||
It provides a number of features that make it easy to build fast, SEO-friendly, and scalable web applications, including:
|
||||
- Server-side rendering, static site generation, hybrid rendering and edge-side rendering
|
||||
- Automatic routing with code-splitting and pre-fetching
|
||||
- Data fetching and state management
|
||||
- Search engine optimization and defining meta tags
|
||||
- Auto imports of components, composables and utils
|
||||
- TypeScript with zero configuration
|
||||
- Go full-stack with our server/ directory
|
||||
- Extensible with [300+ modules](https://nuxt.com/modules)
|
||||
- Deployment to a variety of [hosting platforms](https://nuxt.com/deploy)
|
||||
- ...[and much more](https://nuxt.com) 🚀
|
||||
|
||||
### Table of Contents
|
||||
|
||||
- 🚀 [Getting Started](#getting-started)
|
||||
- 💻 [Vue Development](#vue-development)
|
||||
- 📖 [Documentation](#documentation)
|
||||
- 🧩 [Modules](#modules)
|
||||
- ❤️ [Contribute](#contribute)
|
||||
- 🏠 [Local Development](#local-development)
|
||||
- 🛟 [Professional Support](#professional-support)
|
||||
- 🔗 [Follow Us](#follow-us)
|
||||
- ⚖️ [License](#license)
|
||||
|
||||
---
|
||||
|
||||
## <a name="getting-started">🚀 Getting Started</a>
|
||||
|
||||
Use the following command to create a new starter project. This will create a starter project with all the necessary files and dependencies:
|
||||
|
||||
```bash
|
||||
npm create nuxt@latest <my-project>
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
> Discover also [nuxt.new](https://nuxt.new): Open a Nuxt starter on CodeSandbox, StackBlitz or locally to get up and running in a few seconds.
|
||||
|
||||
## <a name="vue-development">💻 Vue Development</a>
|
||||
|
||||
Simple, intuitive and powerful, Nuxt lets you write Vue components in a way that makes sense. Every repetitive task is automated, so you can focus on writing your full-stack Vue application with confidence.
|
||||
|
||||
Example of an `app.vue`:
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
useSeoMeta({
|
||||
title: 'Meet Nuxt',
|
||||
description: 'The Intuitive Vue Framework.',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div id="app">
|
||||
<AppHeader />
|
||||
<NuxtPage />
|
||||
<AppFooter />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
#app {
|
||||
background-color: #020420;
|
||||
color: #00DC82;
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
## <a name="documentation">📖 Documentation</a>
|
||||
|
||||
We highly recommend you take a look at the [Nuxt documentation](https://nuxt.com/docs) to level up. It’s a great resource for learning more about the framework. It covers everything from getting started to advanced topics.
|
||||
|
||||
## <a name="modules">🧩 Modules</a>
|
||||
|
||||
Discover our [list of modules](https://nuxt.com/modules) to supercharge your Nuxt project, created by the Nuxt team and community.
|
||||
|
||||
## <a name="contribute">❤️ Contribute</a>
|
||||
|
||||
We invite you to contribute and help improve Nuxt 💚
|
||||
|
||||
Here are a few ways you can get involved:
|
||||
- **Reporting Bugs:** If you come across any bugs or issues, please check out the [reporting bugs guide](https://nuxt.com/docs/4.x/community/reporting-bugs) to learn how to submit a bug report.
|
||||
- **Suggestions:** Have ideas to enhance Nuxt? We'd love to hear them! Check out the [contribution guide](https://nuxt.com/docs/4.x/community/contribution) to share your suggestions.
|
||||
- **Questions:** If you have questions or need assistance, the [getting help guide](https://nuxt.com/docs/4.x/community/getting-help) provides resources to help you out.
|
||||
|
||||
## <a name="local-development">🏠 Local Development</a>
|
||||
|
||||
Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/docs/4.x/community/framework-contribution#setup) to contribute to the framework and documentation.
|
||||
|
||||
## <a name="professional-support">🛟 Professional Support</a>
|
||||
|
||||
- Technical audit & consulting: [Nuxt Experts](https://nuxt.com/enterprise/support)
|
||||
- Custom development & more: [Nuxt Agencies Partners](https://nuxt.com/enterprise/agencies)
|
||||
|
||||
## <a name="follow-us">🔗 Follow Us</a>
|
||||
|
||||
<p valign="center">
|
||||
<a href="https://go.nuxt.com/discord"><img width="20" src="https://github.com/nuxt/nuxt/blob/main/.github/assets/discord.svg" alt="Discord"></a> <a href="https://go.nuxt.com/x"><img width="20" src="https://github.com/nuxt/nuxt/blob/main/.github/assets/twitter.svg" alt="Twitter"></a> <a href="https://go.nuxt.com/github"><img width="20" src="https://github.com/nuxt/nuxt/blob/main/.github/assets/github.svg" alt="GitHub"></a> <a href="https://go.nuxt.com/bluesky"><img width="20" src="https://github.com/nuxt/nuxt/blob/main/.github/assets/bluesky.svg" alt="Bluesky"></a>
|
||||
</p>
|
||||
|
||||
## <a name="license">⚖️ License</a>
|
||||
|
||||
[MIT](https://github.com/nuxt/nuxt/blob/main/LICENSE)
|
||||
1
node_modules/@nuxt/schema/builder-env.d.ts
generated
vendored
Normal file
1
node_modules/@nuxt/schema/builder-env.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './dist/builder-env.mts'
|
||||
3957
node_modules/@nuxt/schema/dist/THIRD-PARTY-LICENSES.md
generated
vendored
Normal file
3957
node_modules/@nuxt/schema/dist/THIRD-PARTY-LICENSES.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1688
node_modules/@nuxt/schema/dist/_chunks/libs/@babel/parser.d.mts
generated
vendored
Normal file
1688
node_modules/@nuxt/schema/dist/_chunks/libs/@babel/parser.d.mts
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
82
node_modules/@nuxt/schema/dist/_chunks/libs/@jridgewell/trace-mapping.d.mts
generated
vendored
Normal file
82
node_modules/@nuxt/schema/dist/_chunks/libs/@jridgewell/trace-mapping.d.mts
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
//#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts
|
||||
type GeneratedColumn = number;
|
||||
type SourcesIndex = number;
|
||||
type SourceLine = number;
|
||||
type SourceColumn = number;
|
||||
type NamesIndex = number;
|
||||
type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/types/types.d.mts
|
||||
interface SourceMapV3 {
|
||||
file?: string | null;
|
||||
names: string[];
|
||||
sourceRoot?: string;
|
||||
sources: (string | null)[];
|
||||
sourcesContent?: (string | null)[];
|
||||
version: 3;
|
||||
ignoreList?: number[];
|
||||
}
|
||||
interface EncodedSourceMap extends SourceMapV3 {
|
||||
mappings: string;
|
||||
}
|
||||
interface DecodedSourceMap extends SourceMapV3 {
|
||||
mappings: SourceMapSegment[][];
|
||||
}
|
||||
interface Section {
|
||||
offset: {
|
||||
line: number;
|
||||
column: number;
|
||||
};
|
||||
map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap;
|
||||
}
|
||||
interface SectionedSourceMap {
|
||||
file?: string | null;
|
||||
sections: Section[];
|
||||
version: 3;
|
||||
}
|
||||
type XInput = {
|
||||
x_google_ignoreList?: SourceMapV3['ignoreList'];
|
||||
};
|
||||
type EncodedSourceMapXInput = EncodedSourceMap & XInput;
|
||||
type DecodedSourceMapXInput = DecodedSourceMap & XInput;
|
||||
type SectionedSourceMapXInput = Omit<SectionedSourceMap, 'sections'> & {
|
||||
sections: SectionXInput[];
|
||||
};
|
||||
type SectionXInput = Omit<Section, 'map'> & {
|
||||
map: SectionedSourceMapInput;
|
||||
};
|
||||
type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap;
|
||||
type SectionedSourceMapInput = SourceMapInput | SectionedSourceMapXInput;
|
||||
declare abstract class SourceMap {
|
||||
version: SourceMapV3['version'];
|
||||
file: SourceMapV3['file'];
|
||||
names: SourceMapV3['names'];
|
||||
sourceRoot: SourceMapV3['sourceRoot'];
|
||||
sources: SourceMapV3['sources'];
|
||||
sourcesContent: SourceMapV3['sourcesContent'];
|
||||
resolvedSources: SourceMapV3['sources'];
|
||||
ignoreList: SourceMapV3['ignoreList'];
|
||||
}
|
||||
type Ro<T> = T extends Array<infer V> ? V[] | Readonly<V[]> | RoArray<V> | Readonly<RoArray<V>> : T extends object ? T | Readonly<T> | RoObject<T> | Readonly<RoObject<T>> : T;
|
||||
type RoArray<T> = Ro<T>[];
|
||||
type RoObject<T> = { [K in keyof T]: T[K] | Ro<T[K]> };
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts
|
||||
declare class TraceMap implements SourceMap {
|
||||
version: SourceMapV3['version'];
|
||||
file: SourceMapV3['file'];
|
||||
names: SourceMapV3['names'];
|
||||
sourceRoot: SourceMapV3['sourceRoot'];
|
||||
sources: SourceMapV3['sources'];
|
||||
sourcesContent: SourceMapV3['sourcesContent'];
|
||||
ignoreList: SourceMapV3['ignoreList'];
|
||||
resolvedSources: string[];
|
||||
private _encoded;
|
||||
private _decoded;
|
||||
private _decodedMemo;
|
||||
private _bySources;
|
||||
private _bySourceMemos;
|
||||
constructor(map: Ro<SourceMapInput>, mapUrl?: string | null);
|
||||
}
|
||||
//#endregion
|
||||
export { SectionedSourceMapInput as t };
|
||||
525
node_modules/@nuxt/schema/dist/_chunks/libs/@types/estree.d.mts
generated
vendored
Normal file
525
node_modules/@nuxt/schema/dist/_chunks/libs/@types/estree.d.mts
generated
vendored
Normal file
@@ -0,0 +1,525 @@
|
||||
//#region ../../node_modules/.pnpm/@types+estree@1.0.8/node_modules/@types/estree/index.d.ts
|
||||
// This definition file follows a somewhat unusual format. ESTree allows
|
||||
// runtime type checks based on the `type` parameter. In order to explain this
|
||||
// to typescript we want to use discriminated union types:
|
||||
// https://github.com/Microsoft/TypeScript/pull/9163
|
||||
//
|
||||
// For ESTree this is a bit tricky because the high level interfaces like
|
||||
// Node or Function are pulling double duty. We want to pass common fields down
|
||||
// to the interfaces that extend them (like Identifier or
|
||||
// ArrowFunctionExpression), but you can't extend a type union or enforce
|
||||
// common fields on them. So we've split the high level interfaces into two
|
||||
// types, a base type which passes down inherited fields, and a type union of
|
||||
// all types which extend the base type. Only the type union is exported, and
|
||||
// the union is how other types refer to the collection of inheriting types.
|
||||
//
|
||||
// This makes the definitions file here somewhat more difficult to maintain,
|
||||
// but it has the notable advantage of making ESTree much easier to use as
|
||||
// an end user.
|
||||
interface BaseNodeWithoutComments {
|
||||
// Every leaf interface that extends BaseNode must specify a type property.
|
||||
// The type property should be a string literal. For example, Identifier
|
||||
// has: `type: "Identifier"`
|
||||
type: string;
|
||||
loc?: SourceLocation | null | undefined;
|
||||
range?: [number, number] | undefined;
|
||||
}
|
||||
interface BaseNode extends BaseNodeWithoutComments {
|
||||
leadingComments?: Comment[] | undefined;
|
||||
trailingComments?: Comment[] | undefined;
|
||||
}
|
||||
interface NodeMap {
|
||||
AssignmentProperty: AssignmentProperty;
|
||||
CatchClause: CatchClause;
|
||||
Class: Class;
|
||||
ClassBody: ClassBody;
|
||||
Expression: Expression;
|
||||
Function: Function;
|
||||
Identifier: Identifier;
|
||||
Literal: Literal;
|
||||
MethodDefinition: MethodDefinition;
|
||||
ModuleDeclaration: ModuleDeclaration;
|
||||
ModuleSpecifier: ModuleSpecifier;
|
||||
Pattern: Pattern;
|
||||
PrivateIdentifier: PrivateIdentifier;
|
||||
Program: Program;
|
||||
Property: Property;
|
||||
PropertyDefinition: PropertyDefinition;
|
||||
SpreadElement: SpreadElement;
|
||||
Statement: Statement;
|
||||
Super: Super;
|
||||
SwitchCase: SwitchCase;
|
||||
TemplateElement: TemplateElement;
|
||||
VariableDeclarator: VariableDeclarator;
|
||||
}
|
||||
type Node = NodeMap[keyof NodeMap];
|
||||
interface Comment extends BaseNodeWithoutComments {
|
||||
type: "Line" | "Block";
|
||||
value: string;
|
||||
}
|
||||
interface SourceLocation {
|
||||
source?: string | null | undefined;
|
||||
start: Position;
|
||||
end: Position;
|
||||
}
|
||||
interface Position {
|
||||
/** >= 1 */
|
||||
line: number;
|
||||
/** >= 0 */
|
||||
column: number;
|
||||
}
|
||||
interface Program extends BaseNode {
|
||||
type: "Program";
|
||||
sourceType: "script" | "module";
|
||||
body: Array<Directive | Statement | ModuleDeclaration>;
|
||||
comments?: Comment[] | undefined;
|
||||
}
|
||||
interface Directive extends BaseNode {
|
||||
type: "ExpressionStatement";
|
||||
expression: Literal;
|
||||
directive: string;
|
||||
}
|
||||
interface BaseFunction extends BaseNode {
|
||||
params: Pattern[];
|
||||
generator?: boolean | undefined;
|
||||
async?: boolean | undefined; // The body is either BlockStatement or Expression because arrow functions
|
||||
// can have a body that's either. FunctionDeclarations and
|
||||
// FunctionExpressions have only BlockStatement bodies.
|
||||
body: BlockStatement | Expression;
|
||||
}
|
||||
type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;
|
||||
type Statement = ExpressionStatement | BlockStatement | StaticBlock | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | Declaration;
|
||||
interface BaseStatement extends BaseNode {}
|
||||
interface EmptyStatement extends BaseStatement {
|
||||
type: "EmptyStatement";
|
||||
}
|
||||
interface BlockStatement extends BaseStatement {
|
||||
type: "BlockStatement";
|
||||
body: Statement[];
|
||||
innerComments?: Comment[] | undefined;
|
||||
}
|
||||
interface StaticBlock extends Omit<BlockStatement, "type"> {
|
||||
type: "StaticBlock";
|
||||
}
|
||||
interface ExpressionStatement extends BaseStatement {
|
||||
type: "ExpressionStatement";
|
||||
expression: Expression;
|
||||
}
|
||||
interface IfStatement extends BaseStatement {
|
||||
type: "IfStatement";
|
||||
test: Expression;
|
||||
consequent: Statement;
|
||||
alternate?: Statement | null | undefined;
|
||||
}
|
||||
interface LabeledStatement extends BaseStatement {
|
||||
type: "LabeledStatement";
|
||||
label: Identifier;
|
||||
body: Statement;
|
||||
}
|
||||
interface BreakStatement extends BaseStatement {
|
||||
type: "BreakStatement";
|
||||
label?: Identifier | null | undefined;
|
||||
}
|
||||
interface ContinueStatement extends BaseStatement {
|
||||
type: "ContinueStatement";
|
||||
label?: Identifier | null | undefined;
|
||||
}
|
||||
interface WithStatement extends BaseStatement {
|
||||
type: "WithStatement";
|
||||
object: Expression;
|
||||
body: Statement;
|
||||
}
|
||||
interface SwitchStatement extends BaseStatement {
|
||||
type: "SwitchStatement";
|
||||
discriminant: Expression;
|
||||
cases: SwitchCase[];
|
||||
}
|
||||
interface ReturnStatement extends BaseStatement {
|
||||
type: "ReturnStatement";
|
||||
argument?: Expression | null | undefined;
|
||||
}
|
||||
interface ThrowStatement extends BaseStatement {
|
||||
type: "ThrowStatement";
|
||||
argument: Expression;
|
||||
}
|
||||
interface TryStatement extends BaseStatement {
|
||||
type: "TryStatement";
|
||||
block: BlockStatement;
|
||||
handler?: CatchClause | null | undefined;
|
||||
finalizer?: BlockStatement | null | undefined;
|
||||
}
|
||||
interface WhileStatement extends BaseStatement {
|
||||
type: "WhileStatement";
|
||||
test: Expression;
|
||||
body: Statement;
|
||||
}
|
||||
interface DoWhileStatement extends BaseStatement {
|
||||
type: "DoWhileStatement";
|
||||
body: Statement;
|
||||
test: Expression;
|
||||
}
|
||||
interface ForStatement extends BaseStatement {
|
||||
type: "ForStatement";
|
||||
init?: VariableDeclaration | Expression | null | undefined;
|
||||
test?: Expression | null | undefined;
|
||||
update?: Expression | null | undefined;
|
||||
body: Statement;
|
||||
}
|
||||
interface BaseForXStatement extends BaseStatement {
|
||||
left: VariableDeclaration | Pattern;
|
||||
right: Expression;
|
||||
body: Statement;
|
||||
}
|
||||
interface ForInStatement extends BaseForXStatement {
|
||||
type: "ForInStatement";
|
||||
}
|
||||
interface DebuggerStatement extends BaseStatement {
|
||||
type: "DebuggerStatement";
|
||||
}
|
||||
type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
|
||||
interface BaseDeclaration extends BaseStatement {}
|
||||
interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration {
|
||||
type: "FunctionDeclaration";
|
||||
/** It is null when a function declaration is a part of the `export default function` statement */
|
||||
id: Identifier | null;
|
||||
body: BlockStatement;
|
||||
}
|
||||
interface FunctionDeclaration extends MaybeNamedFunctionDeclaration {
|
||||
id: Identifier;
|
||||
}
|
||||
interface VariableDeclaration extends BaseDeclaration {
|
||||
type: "VariableDeclaration";
|
||||
declarations: VariableDeclarator[];
|
||||
kind: "var" | "let" | "const" | "using" | "await using";
|
||||
}
|
||||
interface VariableDeclarator extends BaseNode {
|
||||
type: "VariableDeclarator";
|
||||
id: Pattern;
|
||||
init?: Expression | null | undefined;
|
||||
}
|
||||
interface ExpressionMap {
|
||||
ArrayExpression: ArrayExpression;
|
||||
ArrowFunctionExpression: ArrowFunctionExpression;
|
||||
AssignmentExpression: AssignmentExpression;
|
||||
AwaitExpression: AwaitExpression;
|
||||
BinaryExpression: BinaryExpression;
|
||||
CallExpression: CallExpression;
|
||||
ChainExpression: ChainExpression;
|
||||
ClassExpression: ClassExpression;
|
||||
ConditionalExpression: ConditionalExpression;
|
||||
FunctionExpression: FunctionExpression;
|
||||
Identifier: Identifier;
|
||||
ImportExpression: ImportExpression;
|
||||
Literal: Literal;
|
||||
LogicalExpression: LogicalExpression;
|
||||
MemberExpression: MemberExpression;
|
||||
MetaProperty: MetaProperty;
|
||||
NewExpression: NewExpression;
|
||||
ObjectExpression: ObjectExpression;
|
||||
SequenceExpression: SequenceExpression;
|
||||
TaggedTemplateExpression: TaggedTemplateExpression;
|
||||
TemplateLiteral: TemplateLiteral;
|
||||
ThisExpression: ThisExpression;
|
||||
UnaryExpression: UnaryExpression;
|
||||
UpdateExpression: UpdateExpression;
|
||||
YieldExpression: YieldExpression;
|
||||
}
|
||||
type Expression = ExpressionMap[keyof ExpressionMap];
|
||||
interface BaseExpression extends BaseNode {}
|
||||
type ChainElement = SimpleCallExpression | MemberExpression;
|
||||
interface ChainExpression extends BaseExpression {
|
||||
type: "ChainExpression";
|
||||
expression: ChainElement;
|
||||
}
|
||||
interface ThisExpression extends BaseExpression {
|
||||
type: "ThisExpression";
|
||||
}
|
||||
interface ArrayExpression extends BaseExpression {
|
||||
type: "ArrayExpression";
|
||||
elements: Array<Expression | SpreadElement | null>;
|
||||
}
|
||||
interface ObjectExpression extends BaseExpression {
|
||||
type: "ObjectExpression";
|
||||
properties: Array<Property | SpreadElement>;
|
||||
}
|
||||
interface PrivateIdentifier extends BaseNode {
|
||||
type: "PrivateIdentifier";
|
||||
name: string;
|
||||
}
|
||||
interface Property extends BaseNode {
|
||||
type: "Property";
|
||||
key: Expression | PrivateIdentifier;
|
||||
value: Expression | Pattern; // Could be an AssignmentProperty
|
||||
kind: "init" | "get" | "set";
|
||||
method: boolean;
|
||||
shorthand: boolean;
|
||||
computed: boolean;
|
||||
}
|
||||
interface PropertyDefinition extends BaseNode {
|
||||
type: "PropertyDefinition";
|
||||
key: Expression | PrivateIdentifier;
|
||||
value?: Expression | null | undefined;
|
||||
computed: boolean;
|
||||
static: boolean;
|
||||
}
|
||||
interface FunctionExpression extends BaseFunction, BaseExpression {
|
||||
id?: Identifier | null | undefined;
|
||||
type: "FunctionExpression";
|
||||
body: BlockStatement;
|
||||
}
|
||||
interface SequenceExpression extends BaseExpression {
|
||||
type: "SequenceExpression";
|
||||
expressions: Expression[];
|
||||
}
|
||||
interface UnaryExpression extends BaseExpression {
|
||||
type: "UnaryExpression";
|
||||
operator: UnaryOperator;
|
||||
prefix: true;
|
||||
argument: Expression;
|
||||
}
|
||||
interface BinaryExpression extends BaseExpression {
|
||||
type: "BinaryExpression";
|
||||
operator: BinaryOperator;
|
||||
left: Expression | PrivateIdentifier;
|
||||
right: Expression;
|
||||
}
|
||||
interface AssignmentExpression extends BaseExpression {
|
||||
type: "AssignmentExpression";
|
||||
operator: AssignmentOperator;
|
||||
left: Pattern | MemberExpression;
|
||||
right: Expression;
|
||||
}
|
||||
interface UpdateExpression extends BaseExpression {
|
||||
type: "UpdateExpression";
|
||||
operator: UpdateOperator;
|
||||
argument: Expression;
|
||||
prefix: boolean;
|
||||
}
|
||||
interface LogicalExpression extends BaseExpression {
|
||||
type: "LogicalExpression";
|
||||
operator: LogicalOperator;
|
||||
left: Expression;
|
||||
right: Expression;
|
||||
}
|
||||
interface ConditionalExpression extends BaseExpression {
|
||||
type: "ConditionalExpression";
|
||||
test: Expression;
|
||||
alternate: Expression;
|
||||
consequent: Expression;
|
||||
}
|
||||
interface BaseCallExpression extends BaseExpression {
|
||||
callee: Expression | Super;
|
||||
arguments: Array<Expression | SpreadElement>;
|
||||
}
|
||||
type CallExpression = SimpleCallExpression | NewExpression;
|
||||
interface SimpleCallExpression extends BaseCallExpression {
|
||||
type: "CallExpression";
|
||||
optional: boolean;
|
||||
}
|
||||
interface NewExpression extends BaseCallExpression {
|
||||
type: "NewExpression";
|
||||
}
|
||||
interface MemberExpression extends BaseExpression, BasePattern {
|
||||
type: "MemberExpression";
|
||||
object: Expression | Super;
|
||||
property: Expression | PrivateIdentifier;
|
||||
computed: boolean;
|
||||
optional: boolean;
|
||||
}
|
||||
type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression;
|
||||
interface BasePattern extends BaseNode {}
|
||||
interface SwitchCase extends BaseNode {
|
||||
type: "SwitchCase";
|
||||
test?: Expression | null | undefined;
|
||||
consequent: Statement[];
|
||||
}
|
||||
interface CatchClause extends BaseNode {
|
||||
type: "CatchClause";
|
||||
param: Pattern | null;
|
||||
body: BlockStatement;
|
||||
}
|
||||
interface Identifier extends BaseNode, BaseExpression, BasePattern {
|
||||
type: "Identifier";
|
||||
name: string;
|
||||
}
|
||||
type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral;
|
||||
interface SimpleLiteral extends BaseNode, BaseExpression {
|
||||
type: "Literal";
|
||||
value: string | boolean | number | null;
|
||||
raw?: string | undefined;
|
||||
}
|
||||
interface RegExpLiteral extends BaseNode, BaseExpression {
|
||||
type: "Literal";
|
||||
value?: RegExp | null | undefined;
|
||||
regex: {
|
||||
pattern: string;
|
||||
flags: string;
|
||||
};
|
||||
raw?: string | undefined;
|
||||
}
|
||||
interface BigIntLiteral extends BaseNode, BaseExpression {
|
||||
type: "Literal";
|
||||
value?: bigint | null | undefined;
|
||||
bigint: string;
|
||||
raw?: string | undefined;
|
||||
}
|
||||
type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
|
||||
type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "in" | "instanceof";
|
||||
type LogicalOperator = "||" | "&&" | "??";
|
||||
type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
|
||||
type UpdateOperator = "++" | "--";
|
||||
interface ForOfStatement extends BaseForXStatement {
|
||||
type: "ForOfStatement";
|
||||
await: boolean;
|
||||
}
|
||||
interface Super extends BaseNode {
|
||||
type: "Super";
|
||||
}
|
||||
interface SpreadElement extends BaseNode {
|
||||
type: "SpreadElement";
|
||||
argument: Expression;
|
||||
}
|
||||
interface ArrowFunctionExpression extends BaseExpression, BaseFunction {
|
||||
type: "ArrowFunctionExpression";
|
||||
expression: boolean;
|
||||
body: BlockStatement | Expression;
|
||||
}
|
||||
interface YieldExpression extends BaseExpression {
|
||||
type: "YieldExpression";
|
||||
argument?: Expression | null | undefined;
|
||||
delegate: boolean;
|
||||
}
|
||||
interface TemplateLiteral extends BaseExpression {
|
||||
type: "TemplateLiteral";
|
||||
quasis: TemplateElement[];
|
||||
expressions: Expression[];
|
||||
}
|
||||
interface TaggedTemplateExpression extends BaseExpression {
|
||||
type: "TaggedTemplateExpression";
|
||||
tag: Expression;
|
||||
quasi: TemplateLiteral;
|
||||
}
|
||||
interface TemplateElement extends BaseNode {
|
||||
type: "TemplateElement";
|
||||
tail: boolean;
|
||||
value: {
|
||||
/** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */cooked?: string | null | undefined;
|
||||
raw: string;
|
||||
};
|
||||
}
|
||||
interface AssignmentProperty extends Property {
|
||||
value: Pattern;
|
||||
kind: "init";
|
||||
method: boolean; // false
|
||||
}
|
||||
interface ObjectPattern extends BasePattern {
|
||||
type: "ObjectPattern";
|
||||
properties: Array<AssignmentProperty | RestElement>;
|
||||
}
|
||||
interface ArrayPattern extends BasePattern {
|
||||
type: "ArrayPattern";
|
||||
elements: Array<Pattern | null>;
|
||||
}
|
||||
interface RestElement extends BasePattern {
|
||||
type: "RestElement";
|
||||
argument: Pattern;
|
||||
}
|
||||
interface AssignmentPattern extends BasePattern {
|
||||
type: "AssignmentPattern";
|
||||
left: Pattern;
|
||||
right: Expression;
|
||||
}
|
||||
type Class = ClassDeclaration | ClassExpression;
|
||||
interface BaseClass extends BaseNode {
|
||||
superClass?: Expression | null | undefined;
|
||||
body: ClassBody;
|
||||
}
|
||||
interface ClassBody extends BaseNode {
|
||||
type: "ClassBody";
|
||||
body: Array<MethodDefinition | PropertyDefinition | StaticBlock>;
|
||||
}
|
||||
interface MethodDefinition extends BaseNode {
|
||||
type: "MethodDefinition";
|
||||
key: Expression | PrivateIdentifier;
|
||||
value: FunctionExpression;
|
||||
kind: "constructor" | "method" | "get" | "set";
|
||||
computed: boolean;
|
||||
static: boolean;
|
||||
}
|
||||
interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration {
|
||||
type: "ClassDeclaration";
|
||||
/** It is null when a class declaration is a part of the `export default class` statement */
|
||||
id: Identifier | null;
|
||||
}
|
||||
interface ClassDeclaration extends MaybeNamedClassDeclaration {
|
||||
id: Identifier;
|
||||
}
|
||||
interface ClassExpression extends BaseClass, BaseExpression {
|
||||
type: "ClassExpression";
|
||||
id?: Identifier | null | undefined;
|
||||
}
|
||||
interface MetaProperty extends BaseExpression {
|
||||
type: "MetaProperty";
|
||||
meta: Identifier;
|
||||
property: Identifier;
|
||||
}
|
||||
type ModuleDeclaration = ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration;
|
||||
interface BaseModuleDeclaration extends BaseNode {}
|
||||
type ModuleSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier;
|
||||
interface BaseModuleSpecifier extends BaseNode {
|
||||
local: Identifier;
|
||||
}
|
||||
interface ImportDeclaration extends BaseModuleDeclaration {
|
||||
type: "ImportDeclaration";
|
||||
specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
|
||||
attributes: ImportAttribute[];
|
||||
source: Literal;
|
||||
}
|
||||
interface ImportSpecifier extends BaseModuleSpecifier {
|
||||
type: "ImportSpecifier";
|
||||
imported: Identifier | Literal;
|
||||
}
|
||||
interface ImportAttribute extends BaseNode {
|
||||
type: "ImportAttribute";
|
||||
key: Identifier | Literal;
|
||||
value: Literal;
|
||||
}
|
||||
interface ImportExpression extends BaseExpression {
|
||||
type: "ImportExpression";
|
||||
source: Expression;
|
||||
options?: Expression | null | undefined;
|
||||
}
|
||||
interface ImportDefaultSpecifier extends BaseModuleSpecifier {
|
||||
type: "ImportDefaultSpecifier";
|
||||
}
|
||||
interface ImportNamespaceSpecifier extends BaseModuleSpecifier {
|
||||
type: "ImportNamespaceSpecifier";
|
||||
}
|
||||
interface ExportNamedDeclaration extends BaseModuleDeclaration {
|
||||
type: "ExportNamedDeclaration";
|
||||
declaration?: Declaration | null | undefined;
|
||||
specifiers: ExportSpecifier[];
|
||||
attributes: ImportAttribute[];
|
||||
source?: Literal | null | undefined;
|
||||
}
|
||||
interface ExportSpecifier extends Omit<BaseModuleSpecifier, "local"> {
|
||||
type: "ExportSpecifier";
|
||||
local: Identifier | Literal;
|
||||
exported: Identifier | Literal;
|
||||
}
|
||||
interface ExportDefaultDeclaration extends BaseModuleDeclaration {
|
||||
type: "ExportDefaultDeclaration";
|
||||
declaration: MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | Expression;
|
||||
}
|
||||
interface ExportAllDeclaration extends BaseModuleDeclaration {
|
||||
type: "ExportAllDeclaration";
|
||||
exported: Identifier | Literal | null;
|
||||
attributes: ImportAttribute[];
|
||||
source: Literal;
|
||||
}
|
||||
interface AwaitExpression extends BaseExpression {
|
||||
type: "AwaitExpression";
|
||||
argument: Expression;
|
||||
}
|
||||
//#endregion
|
||||
export { Program as i, Expression as n, Node as r, BaseNode as t };
|
||||
123
node_modules/@nuxt/schema/dist/_chunks/libs/@types/pug.d.mts
generated
vendored
Normal file
123
node_modules/@nuxt/schema/dist/_chunks/libs/@types/pug.d.mts
generated
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
//#region ../../node_modules/.pnpm/@types+pug@2.0.10/node_modules/@types/pug/index.d.ts
|
||||
/**
|
||||
* Table of Contents
|
||||
*
|
||||
* - Options https://pugjs.org/api/reference.html#options
|
||||
* - Methods https://pugjs.org/api/reference.html#methods
|
||||
*
|
||||
* The order of contents is according to pugjs API document.
|
||||
*/
|
||||
declare module "pug" {
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Options https://pugjs.org/api/reference.html#options ///
|
||||
////////////////////////////////////////////////////////////
|
||||
export interface Options {
|
||||
/** The name of the file being compiled. Used in exceptions, and required for relative includes and extends. Defaults to 'Pug'. */
|
||||
filename?: string | undefined;
|
||||
/** The root directory of all absolute inclusion. */
|
||||
basedir?: string | undefined;
|
||||
/** If the doctype is not specified as part of the template, you can specify it here. It is sometimes useful to get self-closing tags and remove mirroring of boolean attributes; see doctype documentation for more information. */
|
||||
doctype?: string | undefined;
|
||||
/** Adds whitespace to the resulting HTML to make it easier for a human to read using ' ' as indentation. If a string is specified, that will be used as indentation instead (e.g. '\t'). Defaults to false. */
|
||||
pretty?: boolean | string | undefined;
|
||||
/** Hash table of custom filters. Defaults to undefined. */
|
||||
filters?: any;
|
||||
/** Use a self namespace to hold the locals. It will speed up the compilation, but instead of writing variable you will have to write self.variable to access a property of the locals object. Defaults to false. */
|
||||
self?: boolean | undefined;
|
||||
/** If set to true, the tokens and function body are logged to stdout. */
|
||||
debug?: boolean | undefined;
|
||||
/** If set to true, the function source will be included in the compiled template for better error messages (sometimes useful in development). It is enabled by default unless used with Express in production mode. */
|
||||
compileDebug?: boolean | undefined;
|
||||
/** Add a list of global names to make accessible in templates. */
|
||||
globals?: string[] | undefined;
|
||||
/** If set to true, compiled functions are cached. filename must be set as the cache key. Only applies to render functions. Defaults to false. */
|
||||
cache?: boolean | undefined;
|
||||
/** Inline runtime functions instead of require-ing them from a shared version. For compileClient functions, the default is true so that one does not have to include the runtime. For all other compilation or rendering types, the default is false. */
|
||||
inlineRuntimeFunctions?: boolean | undefined;
|
||||
/** The name of the template function. Only applies to compileClient functions. Defaults to 'template'. */
|
||||
name?: string | undefined;
|
||||
} ////////////////////////////////////////////////////////////
|
||||
/// Methods https://pugjs.org/api/reference.html#methods ///
|
||||
////////////////////////////////////////////////////////////
|
||||
/**
|
||||
* Compile a Pug template to a function which can be rendered multiple times with different locals.
|
||||
*/
|
||||
export function compile(template: string, options?: Options): compileTemplate;
|
||||
/**
|
||||
* Compile a Pug template from a file to a function which can be rendered multiple times with different locals.
|
||||
*/
|
||||
export function compileFile(path: string, options?: Options): compileTemplate;
|
||||
/**
|
||||
* Compile a Pug template to a string of JavaScript that can be used client side along with the Pug runtime.
|
||||
*/
|
||||
export function compileClient(template: string, options?: Options): string;
|
||||
/**
|
||||
* Compile a Pug template to an object of the form:
|
||||
* {
|
||||
* 'body': 'function (locals) {...}',
|
||||
* 'dependencies': ['filename.pug']
|
||||
* }
|
||||
* that can be used client side along with the Pug runtime.
|
||||
* You should only use this method if you need dependencies to implement something like watching for changes to the Pug files.
|
||||
*/
|
||||
export function compileClientWithDependenciesTracked(template: string, options?: Options): {
|
||||
body: string;
|
||||
dependencies: string[];
|
||||
};
|
||||
/**
|
||||
* Compile a Pug template file to a string of JavaScript that can be used client side along with the Pug runtime.
|
||||
*/
|
||||
export function compileFileClient(path: string, options?: Options): string;
|
||||
/**
|
||||
* Compile a Pug template and render it without locals to html string.
|
||||
*/
|
||||
export function render(template: string): string;
|
||||
/**
|
||||
* Compile a Pug template and render it with locals to html string.
|
||||
* @param {(Options & LocalsObject)} options Pug Options and rendering locals
|
||||
*/
|
||||
export function render(template: string, options: Options & LocalsObject): string;
|
||||
/**
|
||||
* Compile a Pug template and render it without locals to html string.
|
||||
* @param {((err: Error | null, html: string) => void)} callback Node.js-style callback receiving the rendered results. This callback is called synchronously.
|
||||
*/
|
||||
export function render(template: string, callback: (err: Error | null, html: string) => void): void;
|
||||
/**
|
||||
* Compile a Pug template and render it with locals to html string.
|
||||
* @param {(Options & LocalsObject)} options Pug Options and rendering locals
|
||||
* @param {((err: Error | null, html: string) => void)} callback Node.js-style callback receiving the rendered results. This callback is called synchronously.
|
||||
*/
|
||||
export function render(template: string, options: Options & LocalsObject, callback: (err: Error | null, html: string) => void): void;
|
||||
/**
|
||||
* Compile a Pug template from a file and render it without locals to html string.
|
||||
*/
|
||||
export function renderFile(path: string): string;
|
||||
/**
|
||||
* Compile a Pug template from a file and render it with locals to html string.
|
||||
* @param {(Options & LocalsObject)} options Pug Options and rendering locals
|
||||
*/
|
||||
export function renderFile(path: string, options: Options & LocalsObject): string;
|
||||
/**
|
||||
* Compile a Pug template from a file and render it without locals to html string.
|
||||
* @param {((err: Error | null, html: string) => void)} callback Node.js-style callback receiving the rendered results. This callback is called synchronously.
|
||||
*/
|
||||
export function renderFile(path: string, callback: (err: Error | null, html: string) => void): void;
|
||||
/**
|
||||
* Compile a Pug template from a file and render it with locals to html string.
|
||||
* @param {(Options & LocalsObject)} options Pug Options and rendering locals
|
||||
* @param {((err: Error | null, html: string) => void)} callback Node.js-style callback receiving the rendered results. This callback is called synchronously.
|
||||
*/
|
||||
export function renderFile(path: string, options: Options & LocalsObject, callback: (err: Error | null, html: string) => void): void; ///////////////////
|
||||
/// Types ///
|
||||
///////////////////
|
||||
/**
|
||||
* A function that can be use to render html string of compiled template.
|
||||
*/
|
||||
export type compileTemplate = (locals?: LocalsObject) => string;
|
||||
/**
|
||||
* An object that can have multiple properties of any type.
|
||||
*/
|
||||
export interface LocalsObject {
|
||||
[propName: string]: any;
|
||||
}
|
||||
}
|
||||
24173
node_modules/@nuxt/schema/dist/_chunks/libs/@unhead/vue.d.mts
generated
vendored
Normal file
24173
node_modules/@nuxt/schema/dist/_chunks/libs/@unhead/vue.d.mts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
17167
node_modules/@nuxt/schema/dist/_chunks/libs/@vitejs/plugin-vue-jsx.d.mts
generated
vendored
Normal file
17167
node_modules/@nuxt/schema/dist/_chunks/libs/@vitejs/plugin-vue-jsx.d.mts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
89
node_modules/@nuxt/schema/dist/_chunks/libs/@vitejs/plugin-vue.d.mts
generated
vendored
Normal file
89
node_modules/@nuxt/schema/dist/_chunks/libs/@vitejs/plugin-vue.d.mts
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
import { n as parse } from "../@babel/parser.mjs";
|
||||
import { C as BindingMetadata, E as CompilerOptions, F as walkIdentifiers, M as generateCodeFrame, N as isInDestructureAssignment, P as isStaticProperty, T as CompilerError, j as extractIdentifiers } from "../@unhead/vue.mjs";
|
||||
import { A as invalidateTypeCache, C as compileStyle, D as extractRuntimeEmits, E as errorMessages, F as rewriteDefault, I as rewriteDefaultAST, L as shouldTransformRef, M as parseCache, N as registerTS, O as extractRuntimeProps, P as resolveTypeElements, R as version, S as compileScript, T as compileTemplate, V as MagicString, _ as ScriptCompileContext, a as SFCBlock, b as TemplateCompiler, c as SFCParseResult, d as SFCStyleBlock, f as SFCStyleCompileOptions, g as SFCTemplateCompileResults, h as SFCTemplateCompileOptions, i as SFCAsyncStyleCompileOptions, j as parse$1, k as inferRuntimeType, l as SFCScriptBlock, m as SFCTemplateBlock, n as AssetURLOptions, o as SFCDescriptor, p as SFCStyleCompileResults, r as AssetURLTagConfig, s as SFCParseOptions, u as SFCScriptCompileOptions, v as SimpleTypeResolveContext, w as compileStyleAsync, x as TypeResolveContext, y as SimpleTypeResolveOptions, z as walk } from "./plugin-vue-jsx.mjs";
|
||||
|
||||
//#region ../../node_modules/.pnpm/vue@3.5.27_typescript@5.9.3/node_modules/vue/compiler-sfc/index.d.mts
|
||||
declare namespace index_d_exports {
|
||||
export { AssetURLOptions, AssetURLTagConfig, BindingMetadata, CompilerError, CompilerOptions, MagicString, SFCAsyncStyleCompileOptions, SFCBlock, SFCDescriptor, SFCParseOptions, SFCParseResult, SFCScriptBlock, SFCScriptCompileOptions, SFCStyleBlock, SFCStyleCompileOptions, SFCStyleCompileResults, SFCTemplateBlock, SFCTemplateCompileOptions, SFCTemplateCompileResults, ScriptCompileContext, SimpleTypeResolveContext, SimpleTypeResolveOptions, TemplateCompiler, TypeResolveContext, parse as babelParse, compileScript, compileStyle, compileStyleAsync, compileTemplate, errorMessages, extractIdentifiers, extractRuntimeEmits, extractRuntimeProps, generateCodeFrame, inferRuntimeType, invalidateTypeCache, isInDestructureAssignment, isStaticProperty, parse$1 as parse, parseCache, registerTS, resolveTypeElements, rewriteDefault, rewriteDefaultAST, shouldTransformRef, version, walk, walkIdentifiers };
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/@vitejs+plugin-vue@6.0.4_vite@7.3.1_@types+node@24.10.11_jiti@2.6.1_terser@5.44.1_yaml@_ac9e2a922bb63677ceeba3834af69115/node_modules/@vitejs/plugin-vue/dist/index.d.mts
|
||||
//#endregion
|
||||
//#region src/index.d.ts
|
||||
interface Options {
|
||||
include?: string | RegExp | (string | RegExp)[];
|
||||
exclude?: string | RegExp | (string | RegExp)[];
|
||||
/**
|
||||
* In Vite, this option follows Vite's config.
|
||||
*/
|
||||
isProduction?: boolean;
|
||||
script?: Partial<Omit<SFCScriptCompileOptions, 'id' | 'isProd' | 'inlineTemplate' | 'templateOptions' | 'sourceMap' | 'genDefaultAs' | 'customElement' | 'defineModel' | 'propsDestructure'>> & {
|
||||
/**
|
||||
* @deprecated defineModel is now a stable feature and always enabled if
|
||||
* using Vue 3.4 or above.
|
||||
*/
|
||||
defineModel?: boolean;
|
||||
/**
|
||||
* @deprecated moved to `features.propsDestructure`.
|
||||
*/
|
||||
propsDestructure?: boolean;
|
||||
};
|
||||
template?: Partial<Omit<SFCTemplateCompileOptions, 'id' | 'source' | 'ast' | 'filename' | 'scoped' | 'slotted' | 'isProd' | 'inMap' | 'ssr' | 'ssrCssVars' | 'preprocessLang'>>;
|
||||
style?: Partial<Omit<SFCStyleCompileOptions, 'filename' | 'id' | 'isProd' | 'source' | 'scoped' | 'cssDevSourcemap' | 'postcssOptions' | 'map' | 'postcssPlugins' | 'preprocessCustomRequire' | 'preprocessLang' | 'preprocessOptions'>>;
|
||||
/**
|
||||
* Use custom compiler-sfc instance. Can be used to force a specific version.
|
||||
*/
|
||||
compiler?: typeof index_d_exports;
|
||||
/**
|
||||
* Requires @vitejs/plugin-vue@^5.1.0
|
||||
*/
|
||||
features?: {
|
||||
/**
|
||||
* Enable reactive destructure for `defineProps`.
|
||||
* - Available in Vue 3.4 and later.
|
||||
* - **default:** `false` in Vue 3.4 (**experimental**), `true` in Vue 3.5+
|
||||
*/
|
||||
propsDestructure?: boolean;
|
||||
/**
|
||||
* Transform Vue SFCs into custom elements.
|
||||
* - `true`: all `*.vue` imports are converted into custom elements
|
||||
* - `string | RegExp`: matched files are converted into custom elements
|
||||
* - **default:** /\.ce\.vue$/
|
||||
*/
|
||||
customElement?: boolean | string | RegExp | (string | RegExp)[];
|
||||
/**
|
||||
* Set to `false` to disable Options API support and allow related code in
|
||||
* Vue core to be dropped via dead-code elimination in production builds,
|
||||
* resulting in smaller bundles.
|
||||
* - **default:** `true`
|
||||
*/
|
||||
optionsAPI?: boolean;
|
||||
/**
|
||||
* Set to `true` to enable devtools support in production builds.
|
||||
* Results in slightly larger bundles.
|
||||
* - **default:** `false`
|
||||
*/
|
||||
prodDevtools?: boolean;
|
||||
/**
|
||||
* Set to `true` to enable detailed information for hydration mismatch
|
||||
* errors in production builds. Results in slightly larger bundles.
|
||||
* - **default:** `false`
|
||||
*/
|
||||
prodHydrationMismatchDetails?: boolean;
|
||||
/**
|
||||
* Customize the component ID generation strategy.
|
||||
* - `'filepath'`: hash the file path (relative to the project root)
|
||||
* - `'filepath-source'`: hash the file path and the source code
|
||||
* - `function`: custom function that takes the file path, source code,
|
||||
* whether in production mode, and the default hash function as arguments
|
||||
* - **default:** `'filepath'` in development, `'filepath-source'` in production
|
||||
*/
|
||||
componentIdGenerator?: 'filepath' | 'filepath-source' | ((filepath: string, source: string, isProduction: boolean | undefined, getHash: (text: string) => string) => string);
|
||||
};
|
||||
/**
|
||||
* @deprecated moved to `features.customElement`.
|
||||
*/
|
||||
customElement?: boolean | string | RegExp | (string | RegExp)[];
|
||||
}
|
||||
//#endregion
|
||||
export { Options as t };
|
||||
56
node_modules/@nuxt/schema/dist/_chunks/libs/@volar/language-core.d.mts
generated
vendored
Normal file
56
node_modules/@nuxt/schema/dist/_chunks/libs/@volar/language-core.d.mts
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
//#region ../../node_modules/.pnpm/@volar+language-core@2.4.27/node_modules/@volar/language-core/lib/types.d.ts
|
||||
/**
|
||||
* CodeInformation is a configuration object attached to each CodeMapping (between source code and generated code,
|
||||
* e.g. between the template code in a .vue file and the type-checkable TS code generated from it) that
|
||||
* determines what code/language features are expected to be available for the mapping.
|
||||
*
|
||||
* Due to the dynamic nature of code generation and the fact that, for example, things like Code Actions
|
||||
* and auto-complete shouldn't be triggerable on certain "in-between" regions of generated code, we need
|
||||
* a way to shut off certain features in certain regions, while leaving them enabled in others.
|
||||
*/
|
||||
interface CodeInformation {
|
||||
/** virtual code is expected to support verification, where verification includes:
|
||||
*
|
||||
* - diagnostics (syntactic, semantic, and others, such as those generated by the TypeScript language service on generated TS code)
|
||||
* - code actions (refactorings, quick fixes,etc.)
|
||||
*/
|
||||
verification?: boolean | {
|
||||
/**
|
||||
* when present, `shouldReport` callback is invoked to determine whether a diagnostic
|
||||
* raised in the generated code should be propagated back to the original source code.
|
||||
* Note that when this callback is present, diagnostic processing (e.g. typechecking) will
|
||||
* still be performed, but the results will not be reported back to the original source code. */
|
||||
shouldReport?(source: string | undefined, code: string | number | undefined): boolean;
|
||||
};
|
||||
/** virtual code is expected to support assisted completion */
|
||||
completion?: boolean | {
|
||||
isAdditional?: boolean;
|
||||
onlyImport?: boolean;
|
||||
};
|
||||
/** virtual code is expected correctly reflect semantic of the source code. Specifically this controls the following langauge features:
|
||||
*
|
||||
* - hover
|
||||
* - inlay hints
|
||||
* - code lens
|
||||
* - semantic tokens
|
||||
* - others
|
||||
*
|
||||
* Note that semantic diagnostics (e.g. TS type-checking) are covered by the `verification` property above.
|
||||
*/
|
||||
semantic?: boolean | {
|
||||
shouldHighlight?(): boolean;
|
||||
};
|
||||
/** virtual code is expected correctly reflect reference relationships of the source code */
|
||||
navigation?: boolean | {
|
||||
shouldHighlight?(): boolean;
|
||||
shouldRename?(): boolean;
|
||||
resolveRenameNewName?(newName: string): string;
|
||||
resolveRenameEditText?(newText: string): string;
|
||||
};
|
||||
/** virtual code is expected correctly reflect the structural information of the source code */
|
||||
structure?: boolean;
|
||||
/** virtual code is expected correctly reflect the format information of the source code */
|
||||
format?: boolean;
|
||||
}
|
||||
//#endregion
|
||||
export { CodeInformation as t };
|
||||
10
node_modules/@nuxt/schema/dist/_chunks/libs/@volar/source-map.d.mts
generated
vendored
Normal file
10
node_modules/@nuxt/schema/dist/_chunks/libs/@volar/source-map.d.mts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
//#region ../../node_modules/.pnpm/@volar+source-map@2.4.27/node_modules/@volar/source-map/lib/sourceMap.d.ts
|
||||
interface Mapping<Data = unknown> {
|
||||
sourceOffsets: number[];
|
||||
generatedOffsets: number[];
|
||||
lengths: number[];
|
||||
generatedLengths?: number[];
|
||||
data: Data;
|
||||
}
|
||||
//#endregion
|
||||
export { Mapping as t };
|
||||
194
node_modules/@nuxt/schema/dist/_chunks/libs/@vue/language-core.d.mts
generated
vendored
Normal file
194
node_modules/@nuxt/schema/dist/_chunks/libs/@vue/language-core.d.mts
generated
vendored
Normal file
@@ -0,0 +1,194 @@
|
||||
import { E as CompilerOptions, S as compiler_dom_d_exports, T as CompilerError, k as RootNode, w as CodegenResult } from "../@unhead/vue.mjs";
|
||||
import { B as typescript_d_exports, c as SFCParseResult } from "../@vitejs/plugin-vue-jsx.mjs";
|
||||
import { t as Mapping } from "../@volar/source-map.mjs";
|
||||
import { t as CodeInformation } from "../@volar/language-core.mjs";
|
||||
import "@vue/shared";
|
||||
|
||||
//#region ../../node_modules/.pnpm/muggle-string@0.4.1/node_modules/muggle-string/out/types.d.ts
|
||||
declare const NO_DATA_SYMBOL: unique symbol;
|
||||
type Segment<T = typeof NO_DATA_SYMBOL> = string | (T extends typeof NO_DATA_SYMBOL ? [text: string, source: string | undefined, sourceOffset: number] : [text: string, source: string | undefined, sourceOffset: number, data: T]);
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/@vue+language-core@3.2.4/node_modules/@vue/language-core/lib/virtualCode/embeddedCodes.d.ts
|
||||
declare class VueEmbeddedCode {
|
||||
id: string;
|
||||
lang: string;
|
||||
content: Code[];
|
||||
parentCodeId?: string;
|
||||
linkedCodeMappings: Mapping[];
|
||||
embeddedCodes: VueEmbeddedCode[];
|
||||
constructor(id: string, lang: string, content: Code[]);
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/@vue+language-core@3.2.4/node_modules/@vue/language-core/lib/types.d.ts
|
||||
type RawVueCompilerOptions = Partial<Omit<VueCompilerOptions, 'target' | 'plugins'>> & {
|
||||
strictTemplates?: boolean;
|
||||
target?: 'auto' | 3 | 3.3 | 3.5 | 3.6 | 99 | number;
|
||||
plugins?: RawPlugin[];
|
||||
};
|
||||
type RawPlugin = string | (Record<string, any> & {
|
||||
name: string;
|
||||
});
|
||||
interface VueCodeInformation extends CodeInformation {
|
||||
__importCompletion?: boolean;
|
||||
__shorthandExpression?: 'html' | 'js';
|
||||
__combineToken?: symbol;
|
||||
__linkedToken?: symbol;
|
||||
}
|
||||
type Code = Segment<VueCodeInformation>;
|
||||
interface VueCompilerOptions {
|
||||
target: number;
|
||||
lib: string;
|
||||
typesRoot: string;
|
||||
extensions: string[];
|
||||
vitePressExtensions: string[];
|
||||
petiteVueExtensions: string[];
|
||||
jsxSlots: boolean;
|
||||
strictVModel: boolean;
|
||||
strictCssModules: boolean;
|
||||
checkUnknownProps: boolean;
|
||||
checkUnknownEvents: boolean;
|
||||
checkUnknownDirectives: boolean;
|
||||
checkUnknownComponents: boolean;
|
||||
inferComponentDollarEl: boolean;
|
||||
inferComponentDollarRefs: boolean;
|
||||
inferTemplateDollarAttrs: boolean;
|
||||
inferTemplateDollarEl: boolean;
|
||||
inferTemplateDollarRefs: boolean;
|
||||
inferTemplateDollarSlots: boolean;
|
||||
skipTemplateCodegen: boolean;
|
||||
fallthroughAttributes: boolean;
|
||||
resolveStyleImports: boolean;
|
||||
resolveStyleClassNames: boolean | 'scoped';
|
||||
fallthroughComponentNames: string[];
|
||||
dataAttributes: string[];
|
||||
htmlAttributes: string[];
|
||||
optionsWrapper: [string, string] | [];
|
||||
macros: {
|
||||
defineProps: string[];
|
||||
defineSlots: string[];
|
||||
defineEmits: string[];
|
||||
defineExpose: string[];
|
||||
defineModel: string[];
|
||||
defineOptions: string[];
|
||||
withDefaults: string[];
|
||||
};
|
||||
composables: {
|
||||
useAttrs: string[];
|
||||
useCssModule: string[];
|
||||
useSlots: string[];
|
||||
useTemplateRef: string[];
|
||||
};
|
||||
plugins: VueLanguagePlugin[];
|
||||
experimentalModelPropName: Record<string, Record<string, boolean | Record<string, string> | Record<string, string>[]>>;
|
||||
}
|
||||
declare const validVersions: readonly [2, 2.1, 2.2];
|
||||
interface VueLanguagePluginReturn {
|
||||
version: typeof validVersions[number];
|
||||
name?: string;
|
||||
order?: number;
|
||||
requiredCompilerOptions?: string[];
|
||||
getLanguageId?(fileName: string): string | undefined;
|
||||
isValidFile?(fileName: string, languageId: string): boolean;
|
||||
parseSFC?(fileName: string, content: string): SFCParseResult | undefined;
|
||||
parseSFC2?(fileName: string, languageId: string, content: string): SFCParseResult | undefined;
|
||||
updateSFC?(oldResult: SFCParseResult, textChange: {
|
||||
start: number;
|
||||
end: number;
|
||||
newText: string;
|
||||
}): SFCParseResult | undefined;
|
||||
resolveTemplateCompilerOptions?(options: CompilerOptions): CompilerOptions;
|
||||
compileSFCScript?(lang: string, script: string): undefined | undefined;
|
||||
compileSFCTemplate?(lang: string, template: string, options: CompilerOptions): CodegenResult | undefined;
|
||||
compileSFCStyle?(lang: string, style: string): Pick<Sfc['styles'][number], 'imports' | 'bindings' | 'classNames'> | undefined;
|
||||
updateSFCTemplate?(oldResult: CodegenResult, textChange: {
|
||||
start: number;
|
||||
end: number;
|
||||
newText: string;
|
||||
}): CodegenResult | undefined;
|
||||
getEmbeddedCodes?(fileName: string, sfc: Sfc): {
|
||||
id: string;
|
||||
lang: string;
|
||||
}[];
|
||||
resolveEmbeddedCode?(fileName: string, sfc: Sfc, embeddedFile: VueEmbeddedCode): void;
|
||||
}
|
||||
type VueLanguagePlugin<T extends Record<string, any> = {}> = (ctx: {
|
||||
modules: {
|
||||
typescript: typeof typescript_d_exports;
|
||||
'@vue/compiler-dom': typeof compiler_dom_d_exports;
|
||||
};
|
||||
compilerOptions: undefined;
|
||||
vueCompilerOptions: VueCompilerOptions;
|
||||
config: T;
|
||||
}) => VueLanguagePluginReturn | VueLanguagePluginReturn[];
|
||||
interface SfcBlock {
|
||||
name: string;
|
||||
start: number;
|
||||
end: number;
|
||||
startTagEnd: number;
|
||||
endTagStart: number;
|
||||
lang: string;
|
||||
content: string;
|
||||
attrs: Record<string, string | true>;
|
||||
}
|
||||
type SfcBlockAttr = true | {
|
||||
text: string;
|
||||
offset: number;
|
||||
quotes: boolean;
|
||||
};
|
||||
interface Sfc {
|
||||
content: string;
|
||||
comments: string[];
|
||||
template: (SfcBlock & {
|
||||
ast: RootNode | undefined;
|
||||
errors: CompilerError[];
|
||||
warnings: CompilerError[];
|
||||
}) | undefined;
|
||||
script: (SfcBlock & {
|
||||
src: SfcBlockAttr | undefined;
|
||||
ast: undefined;
|
||||
}) | undefined;
|
||||
scriptSetup: (SfcBlock & {
|
||||
generic: SfcBlockAttr | undefined;
|
||||
ast: undefined;
|
||||
}) | undefined;
|
||||
styles: readonly (SfcBlock & {
|
||||
src: SfcBlockAttr | undefined;
|
||||
module: SfcBlockAttr | undefined;
|
||||
scoped: boolean;
|
||||
imports: {
|
||||
text: string;
|
||||
offset: number;
|
||||
}[];
|
||||
bindings: {
|
||||
text: string;
|
||||
offset: number;
|
||||
}[];
|
||||
classNames: {
|
||||
text: string;
|
||||
offset: number;
|
||||
}[];
|
||||
})[];
|
||||
customBlocks: readonly (SfcBlock & {
|
||||
type: string;
|
||||
})[];
|
||||
}
|
||||
declare module '@vue/compiler-sfc' {
|
||||
interface SFCBlock {
|
||||
__src?: SfcBlockAttr;
|
||||
}
|
||||
interface SFCScriptBlock {
|
||||
__generic?: SfcBlockAttr;
|
||||
}
|
||||
interface SFCStyleBlock {
|
||||
__module?: SfcBlockAttr;
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/@vue+language-core@3.2.4/node_modules/@vue/language-core/lib/utils/parseSfc.d.ts
|
||||
declare module '@vue/compiler-sfc' {
|
||||
interface SFCDescriptor {
|
||||
comments: string[];
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
export { RawVueCompilerOptions as t };
|
||||
83
node_modules/@nuxt/schema/dist/_chunks/libs/autoprefixer.d.mts
generated
vendored
Normal file
83
node_modules/@nuxt/schema/dist/_chunks/libs/autoprefixer.d.mts
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
//#region ../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/index.d.ts
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
BROWSERSLIST?: string;
|
||||
BROWSERSLIST_CONFIG?: string;
|
||||
BROWSERSLIST_DANGEROUS_EXTEND?: string;
|
||||
BROWSERSLIST_DISABLE_CACHE?: string;
|
||||
BROWSERSLIST_ENV?: string;
|
||||
BROWSERSLIST_IGNORE_OLD_DATA?: string;
|
||||
BROWSERSLIST_STATS?: string;
|
||||
BROWSERSLIST_ROOT_PATH?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/autoprefixer@10.4.24_postcss@8.5.6/node_modules/autoprefixer/lib/autoprefixer.d.ts
|
||||
declare function autoprefixer<T extends string[]>(...args: [...T, autoprefixer.Options]): Plugin & autoprefixer.ExportedAPI;
|
||||
declare function autoprefixer(browsers: string[], options?: autoprefixer.Options): Plugin & autoprefixer.ExportedAPI;
|
||||
declare function autoprefixer(options?: autoprefixer.Options): Plugin & autoprefixer.ExportedAPI;
|
||||
declare namespace autoprefixer {
|
||||
type GridValue = 'autoplace' | 'no-autoplace';
|
||||
interface Options {
|
||||
/** environment for `Browserslist` */
|
||||
env?: string;
|
||||
/** should Autoprefixer use Visual Cascade, if CSS is uncompressed */
|
||||
cascade?: boolean;
|
||||
/** should Autoprefixer add prefixes. */
|
||||
add?: boolean;
|
||||
/** should Autoprefixer [remove outdated] prefixes */
|
||||
remove?: boolean;
|
||||
/** should Autoprefixer add prefixes for @supports parameters. */
|
||||
supports?: boolean;
|
||||
/** should Autoprefixer add prefixes for flexbox properties */
|
||||
flexbox?: boolean | 'no-2009';
|
||||
/** should Autoprefixer add IE 10-11 prefixes for Grid Layout properties */
|
||||
grid?: boolean | GridValue;
|
||||
/** custom usage statistics for > 10% in my stats browsers query */
|
||||
stats?: Stats$1;
|
||||
/**
|
||||
* list of queries for target browsers.
|
||||
* Try to not use it.
|
||||
* The best practice is to use `.browserslistrc` config or `browserslist` key in `package.json`
|
||||
* to share target browsers with Babel, ESLint and Stylelint
|
||||
*/
|
||||
overrideBrowserslist?: string | string[];
|
||||
/** do not raise error on unknown browser version in `Browserslist` config. */
|
||||
ignoreUnknownVersions?: boolean;
|
||||
}
|
||||
interface ExportedAPI {
|
||||
/** Autoprefixer data */
|
||||
data: {
|
||||
browsers: {
|
||||
[browser: string]: object | undefined;
|
||||
};
|
||||
prefixes: {
|
||||
[prefixName: string]: object | undefined;
|
||||
};
|
||||
};
|
||||
/** Autoprefixer default browsers */
|
||||
defaults: string[];
|
||||
/** Inspect with default Autoprefixer */
|
||||
info(options?: {
|
||||
from?: string;
|
||||
}): string;
|
||||
options: Options;
|
||||
browsers: string | string[];
|
||||
}
|
||||
/** Autoprefixer data */
|
||||
let data: ExportedAPI['data'];
|
||||
/** Autoprefixer default browsers */
|
||||
let defaults: ExportedAPI['defaults'];
|
||||
/** Inspect with default Autoprefixer */
|
||||
let info: ExportedAPI['info'];
|
||||
let postcss: true;
|
||||
}
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
AUTOPREFIXER_GRID?: autoprefixer.GridValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
145
node_modules/@nuxt/schema/dist/_chunks/libs/c12.d.mts
generated
vendored
Normal file
145
node_modules/@nuxt/schema/dist/_chunks/libs/c12.d.mts
generated
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
import { Stats } from "node:fs";
|
||||
import { EventEmitter } from "node:events";
|
||||
import { Readable } from "node:stream";
|
||||
|
||||
//#region ../../node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.ts
|
||||
type AWF = {
|
||||
stabilityThreshold: number;
|
||||
pollInterval: number;
|
||||
};
|
||||
type BasicOpts = {
|
||||
persistent: boolean;
|
||||
ignoreInitial: boolean;
|
||||
followSymlinks: boolean;
|
||||
cwd?: string;
|
||||
usePolling: boolean;
|
||||
interval: number;
|
||||
binaryInterval: number;
|
||||
alwaysStat?: boolean;
|
||||
depth?: number;
|
||||
ignorePermissionErrors: boolean;
|
||||
atomic: boolean | number;
|
||||
};
|
||||
type ChokidarOptions = Partial<BasicOpts & {
|
||||
ignored: Matcher | Matcher[];
|
||||
awaitWriteFinish: boolean | Partial<AWF>;
|
||||
}>;
|
||||
type MatchFunction = (val: string, stats?: Stats) => boolean;
|
||||
interface MatcherObject {
|
||||
path: string;
|
||||
recursive?: boolean;
|
||||
}
|
||||
type Matcher = string | RegExp | MatchFunction | MatcherObject;
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.d.mts
|
||||
interface TemplateInfo {
|
||||
name: string;
|
||||
tar: string;
|
||||
version?: string;
|
||||
subdir?: string;
|
||||
url?: string;
|
||||
defaultDir?: string;
|
||||
headers?: Record<string, string | undefined>;
|
||||
source?: never;
|
||||
dir?: never;
|
||||
[key: string]: any;
|
||||
}
|
||||
type TemplateProvider = (input: string, options: {
|
||||
auth?: string;
|
||||
}) => TemplateInfo | Promise<TemplateInfo> | null;
|
||||
interface DownloadTemplateOptions {
|
||||
provider?: string;
|
||||
force?: boolean;
|
||||
forceClean?: boolean;
|
||||
offline?: boolean;
|
||||
preferOffline?: boolean;
|
||||
providers?: Record<string, TemplateProvider>;
|
||||
dir?: string;
|
||||
registry?: false | string;
|
||||
cwd?: string;
|
||||
auth?: string;
|
||||
install?: boolean;
|
||||
silent?: boolean;
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.d.mts
|
||||
//#region src/dotenv.d.ts
|
||||
interface DotenvOptions {
|
||||
/**
|
||||
* The project root directory (either absolute or relative to the current working directory).
|
||||
*
|
||||
* Defaults to `options.cwd` in `loadConfig` context, or `process.cwd()` when used as standalone.
|
||||
*/
|
||||
cwd?: string;
|
||||
/**
|
||||
* What file or files to look in for environment variables (either absolute or relative
|
||||
* to the current working directory). For example, `.env`.
|
||||
* With the array type, the order enforce the env loading priority (last one overrides).
|
||||
*/
|
||||
fileName?: string | string[];
|
||||
/**
|
||||
* Whether to interpolate variables within .env.
|
||||
*
|
||||
* @example
|
||||
* ```env
|
||||
* BASE_DIR="/test"
|
||||
* # resolves to "/test/further"
|
||||
* ANOTHER_DIR="${BASE_DIR}/further"
|
||||
* ```
|
||||
*/
|
||||
interpolate?: boolean;
|
||||
/**
|
||||
* An object describing environment variables (key, value pairs).
|
||||
*/
|
||||
env?: NodeJS.ProcessEnv;
|
||||
}
|
||||
declare global {
|
||||
var __c12_dotenv_vars__: Map<Record<string, any>, Set<string>>;
|
||||
} //#endregion
|
||||
//#region src/types.d.ts
|
||||
interface ConfigLayerMeta {
|
||||
name?: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
type UserInputConfig = Record<string, any>;
|
||||
interface SourceOptions<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
|
||||
/** Custom meta for layer */
|
||||
meta?: MT;
|
||||
/** Layer config overrides */
|
||||
overrides?: T;
|
||||
[key: string]: any;
|
||||
/**
|
||||
* Options for cloning remote sources
|
||||
*
|
||||
* @see https://giget.unjs.io
|
||||
*/
|
||||
giget?: DownloadTemplateOptions;
|
||||
/**
|
||||
* Install dependencies after cloning
|
||||
*
|
||||
* @see https://nypm.unjs.io
|
||||
*/
|
||||
install?: boolean;
|
||||
/**
|
||||
* Token for cloning private sources
|
||||
*
|
||||
* @see https://giget.unjs.io#providing-token-for-private-repositories
|
||||
*/
|
||||
auth?: string;
|
||||
}
|
||||
interface ConfigLayer<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
|
||||
config: T | null;
|
||||
source?: string;
|
||||
sourceOptions?: SourceOptions<T, MT>;
|
||||
meta?: MT;
|
||||
cwd?: string;
|
||||
configFile?: string;
|
||||
}
|
||||
interface ResolvedConfig<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> extends ConfigLayer<T, MT> {
|
||||
config: T;
|
||||
layers?: ConfigLayer<T, MT>[];
|
||||
cwd?: string;
|
||||
_configFile?: string;
|
||||
}
|
||||
//#endregion
|
||||
export { ChokidarOptions as i, ResolvedConfig as n, SourceOptions as r, DotenvOptions as t };
|
||||
47
node_modules/@nuxt/schema/dist/_chunks/libs/compatx.d.mts
generated
vendored
Normal file
47
node_modules/@nuxt/schema/dist/_chunks/libs/compatx.d.mts
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
//#region ../../node_modules/.pnpm/compatx@0.2.0/node_modules/compatx/dist/index.d.mts
|
||||
/**
|
||||
* Known platform names
|
||||
*/
|
||||
declare const platforms: readonly ["aws", "azure", "cloudflare", "deno", "firebase", "netlify", "vercel"];
|
||||
/**
|
||||
* Known platform name
|
||||
*/
|
||||
type PlatformName = (typeof platforms)[number] | (string & {});
|
||||
/**
|
||||
* Normalize the compatibility dates from input config and defaults.
|
||||
*/
|
||||
type Year = `${number}${number}${number}${number}`;
|
||||
type Month = `${"0" | "1"}${number}`;
|
||||
type Day = `${"0" | "1" | "2" | "3"}${number}`;
|
||||
/**
|
||||
* Typed date string in `YYYY-MM-DD` format
|
||||
*
|
||||
* Empty string is used to represent an "unspecified" date.
|
||||
*
|
||||
* "latest" is used to represent the latest date available (date of today).
|
||||
*/
|
||||
type DateString = "" | "latest" | `${Year}-${Month}-${Day}`;
|
||||
/**
|
||||
* Last known compatibility dates for platforms
|
||||
*
|
||||
* @example
|
||||
* {
|
||||
* "default": "2024-01-01",
|
||||
* "cloudflare": "2024-03-01",
|
||||
* }
|
||||
*/
|
||||
type CompatibilityDates = {
|
||||
/**
|
||||
* Default compatibility date for all unspecified platforms (required)
|
||||
*/
|
||||
default: DateString;
|
||||
} & Partial<Record<PlatformName, DateString>>;
|
||||
/**
|
||||
* Last known compatibility date for the used platform
|
||||
*/
|
||||
type CompatibilityDateSpec = DateString | Partial<CompatibilityDates>;
|
||||
/**
|
||||
* Get compatibility updates applicable for the user given platform and date range.
|
||||
*/
|
||||
//#endregion
|
||||
export { CompatibilityDateSpec as t };
|
||||
9
node_modules/@nuxt/schema/dist/_chunks/libs/css-minimizer-webpack-plugin.d.mts
generated
vendored
Normal file
9
node_modules/@nuxt/schema/dist/_chunks/libs/css-minimizer-webpack-plugin.d.mts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import "child_process";
|
||||
import "buffer";
|
||||
import "http";
|
||||
import "https";
|
||||
import "inspector";
|
||||
import "net";
|
||||
import "url";
|
||||
import "vm";
|
||||
import "worker_threads";
|
||||
16
node_modules/@nuxt/schema/dist/_chunks/libs/esbuild-loader.d.mts
generated
vendored
Normal file
16
node_modules/@nuxt/schema/dist/_chunks/libs/esbuild-loader.d.mts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { G as TransformOptions, K as transform } from "./@vitejs/plugin-vue-jsx.mjs";
|
||||
|
||||
//#region ../../node_modules/.pnpm/esbuild-loader@4.4.2_webpack@5.104.1_esbuild@0.27.3_/node_modules/esbuild-loader/dist/index.d.cts
|
||||
type Implementation = {
|
||||
transform: typeof transform;
|
||||
};
|
||||
type Except<ObjectType, Properties> = { [Key in keyof ObjectType as (Key extends Properties ? never : Key)]: ObjectType[Key] };
|
||||
type LoaderOptions = Except<TransformOptions, 'sourcemap' | 'sourcefile'> & {
|
||||
/** Pass a custom esbuild implementation */implementation?: Implementation;
|
||||
/**
|
||||
* Path to tsconfig.json file
|
||||
*/
|
||||
tsconfig?: string;
|
||||
};
|
||||
//#endregion
|
||||
export { LoaderOptions as t };
|
||||
44
node_modules/@nuxt/schema/dist/_chunks/libs/h3.d.mts
generated
vendored
Normal file
44
node_modules/@nuxt/schema/dist/_chunks/libs/h3.d.mts
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
import { IncomingMessage, ServerResponse } from "node:http";
|
||||
import { Readable } from "node:stream";
|
||||
|
||||
//#region ../../node_modules/.pnpm/h3@1.15.5/node_modules/h3/dist/index.d.ts
|
||||
type HTTPMethod = "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE";
|
||||
interface H3CorsOptions {
|
||||
origin?: "*" | "null" | (string | RegExp)[] | ((origin: string) => boolean);
|
||||
methods?: "*" | HTTPMethod[];
|
||||
allowHeaders?: "*" | string[];
|
||||
exposeHeaders?: "*" | string[];
|
||||
credentials?: boolean;
|
||||
maxAge?: string | false;
|
||||
preflight?: {
|
||||
statusCode?: number;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Handle CORS for the incoming request.
|
||||
*
|
||||
* If the incoming request is a CORS preflight request, it will append the CORS preflight headers and send a 204 response.
|
||||
*
|
||||
* If return value is `true`, the request is handled and no further action is needed.
|
||||
*
|
||||
* @example
|
||||
* const app = createApp();
|
||||
* const router = createRouter();
|
||||
* router.use('/',
|
||||
* defineEventHandler(async (event) => {
|
||||
* const didHandleCors = handleCors(event, {
|
||||
* origin: '*',
|
||||
* preflight: {
|
||||
* statusCode: 204,
|
||||
* },
|
||||
* methods: '*',
|
||||
* });
|
||||
* if (didHandleCors) {
|
||||
* return;
|
||||
* }
|
||||
* // Your code here
|
||||
* })
|
||||
* );
|
||||
*/
|
||||
//#endregion
|
||||
export { H3CorsOptions as t };
|
||||
1
node_modules/@nuxt/schema/dist/_chunks/libs/mini-css-extract-plugin.d.mts
generated
vendored
Normal file
1
node_modules/@nuxt/schema/dist/_chunks/libs/mini-css-extract-plugin.d.mts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { };
|
||||
57
node_modules/@nuxt/schema/dist/_chunks/libs/mlly.d.mts
generated
vendored
Normal file
57
node_modules/@nuxt/schema/dist/_chunks/libs/mlly.d.mts
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
//#region ../../node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.d.ts
|
||||
/**
|
||||
* Represents a general structure for ECMAScript module exports.
|
||||
*/
|
||||
interface ESMExport {
|
||||
/**
|
||||
* Optional explicit type for complex scenarios, often used internally.
|
||||
* @optional
|
||||
*/
|
||||
_type?: "declaration" | "named" | "default" | "star";
|
||||
/**
|
||||
* The type of export (declaration, named, default or star).
|
||||
*/
|
||||
type: "declaration" | "named" | "default" | "star";
|
||||
/**
|
||||
* The specific type of declaration being exported, if applicable.
|
||||
* @optional
|
||||
*/
|
||||
declarationType?: "let" | "var" | "const" | "enum" | "const enum" | "class" | "function" | "async function";
|
||||
/**
|
||||
* The full code snippet of the export statement.
|
||||
*/
|
||||
code: string;
|
||||
/**
|
||||
* The starting position (index) of the export declaration in the source code.
|
||||
*/
|
||||
start: number;
|
||||
/**
|
||||
* The end position (index) of the export declaration in the source code.
|
||||
*/
|
||||
end: number;
|
||||
/**
|
||||
* The name of the variable, function or class being exported, if given explicitly.
|
||||
* @optional
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The name used for default exports when a specific identifier isn't given.
|
||||
* @optional
|
||||
*/
|
||||
defaultName?: string;
|
||||
/**
|
||||
* An array of names to export, applicable to named and destructured exports.
|
||||
*/
|
||||
names: string[];
|
||||
/**
|
||||
* The module specifier, if any, from which exports are being re-exported.
|
||||
* @optional
|
||||
*/
|
||||
specifier?: string;
|
||||
}
|
||||
/**
|
||||
* Represents a declaration export within an ECMAScript module.
|
||||
* Extends {@link ESMExport}.
|
||||
*/
|
||||
//#endregion
|
||||
export { ESMExport as t };
|
||||
864
node_modules/@nuxt/schema/dist/_chunks/libs/ofetch.d.mts
generated
vendored
Normal file
864
node_modules/@nuxt/schema/dist/_chunks/libs/ofetch.d.mts
generated
vendored
Normal file
@@ -0,0 +1,864 @@
|
||||
/// <reference types="node" />
|
||||
import { EventEmitter } from "node:events";
|
||||
import { IpcNetConnectOpts, Socket, TcpNetConnectOpts } from "node:net";
|
||||
import { Duplex, Readable, Writable } from "node:stream";
|
||||
import { ConnectionOptions, TLSSocket } from "node:tls";
|
||||
import { URL as URL$1, URLSearchParams } from "node:url";
|
||||
import { Blob as Blob$1, File } from "node:buffer";
|
||||
import "node:stream/web";
|
||||
import "node:dns";
|
||||
import "node:worker_threads";
|
||||
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/utility.d.ts
|
||||
type AutocompletePrimitiveBaseType<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : never;
|
||||
type Autocomplete<T> = T | (AutocompletePrimitiveBaseType<T> & Record<never, never>);
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/header.d.ts
|
||||
/**
|
||||
* The header type declaration of `undici`.
|
||||
*/
|
||||
type IncomingHttpHeaders = Record<string, string | string[] | undefined>;
|
||||
type HeaderNames = Autocomplete<'Accept' | 'Accept-CH' | 'Accept-Charset' | 'Accept-Encoding' | 'Accept-Language' | 'Accept-Patch' | 'Accept-Post' | 'Accept-Ranges' | 'Access-Control-Allow-Credentials' | 'Access-Control-Allow-Headers' | 'Access-Control-Allow-Methods' | 'Access-Control-Allow-Origin' | 'Access-Control-Expose-Headers' | 'Access-Control-Max-Age' | 'Access-Control-Request-Headers' | 'Access-Control-Request-Method' | 'Age' | 'Allow' | 'Alt-Svc' | 'Alt-Used' | 'Authorization' | 'Cache-Control' | 'Clear-Site-Data' | 'Connection' | 'Content-Disposition' | 'Content-Encoding' | 'Content-Language' | 'Content-Length' | 'Content-Location' | 'Content-Range' | 'Content-Security-Policy' | 'Content-Security-Policy-Report-Only' | 'Content-Type' | 'Cookie' | 'Cross-Origin-Embedder-Policy' | 'Cross-Origin-Opener-Policy' | 'Cross-Origin-Resource-Policy' | 'Date' | 'Device-Memory' | 'ETag' | 'Expect' | 'Expect-CT' | 'Expires' | 'Forwarded' | 'From' | 'Host' | 'If-Match' | 'If-Modified-Since' | 'If-None-Match' | 'If-Range' | 'If-Unmodified-Since' | 'Keep-Alive' | 'Last-Modified' | 'Link' | 'Location' | 'Max-Forwards' | 'Origin' | 'Permissions-Policy' | 'Priority' | 'Proxy-Authenticate' | 'Proxy-Authorization' | 'Range' | 'Referer' | 'Referrer-Policy' | 'Retry-After' | 'Sec-Fetch-Dest' | 'Sec-Fetch-Mode' | 'Sec-Fetch-Site' | 'Sec-Fetch-User' | 'Sec-Purpose' | 'Sec-WebSocket-Accept' | 'Server' | 'Server-Timing' | 'Service-Worker-Navigation-Preload' | 'Set-Cookie' | 'SourceMap' | 'Strict-Transport-Security' | 'TE' | 'Timing-Allow-Origin' | 'Trailer' | 'Transfer-Encoding' | 'Upgrade' | 'Upgrade-Insecure-Requests' | 'User-Agent' | 'Vary' | 'Via' | 'WWW-Authenticate' | 'X-Content-Type-Options' | 'X-Frame-Options'>;
|
||||
type IANARegisteredMimeType = Autocomplete<'audio/aac' | 'video/x-msvideo' | 'image/avif' | 'video/av1' | 'application/octet-stream' | 'image/bmp' | 'text/css' | 'text/csv' | 'application/vnd.ms-fontobject' | 'application/epub+zip' | 'image/gif' | 'application/gzip' | 'text/html' | 'image/x-icon' | 'text/calendar' | 'image/jpeg' | 'text/javascript' | 'application/json' | 'application/ld+json' | 'audio/x-midi' | 'audio/mpeg' | 'video/mp4' | 'video/mpeg' | 'audio/ogg' | 'video/ogg' | 'application/ogg' | 'audio/opus' | 'font/otf' | 'application/pdf' | 'image/png' | 'application/rtf' | 'image/svg+xml' | 'image/tiff' | 'video/mp2t' | 'font/ttf' | 'text/plain' | 'application/wasm' | 'video/webm' | 'audio/webm' | 'image/webp' | 'font/woff' | 'font/woff2' | 'application/xhtml+xml' | 'application/xml' | 'application/zip' | 'video/3gpp' | 'video/3gpp2' | 'model/gltf+json' | 'model/gltf-binary'>;
|
||||
type KnownHeaderValues = {
|
||||
'content-type': IANARegisteredMimeType;
|
||||
};
|
||||
type HeaderRecord = { [K in HeaderNames | Lowercase<HeaderNames>]?: Lowercase<K> extends keyof KnownHeaderValues ? KnownHeaderValues[Lowercase<K>] : string };
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/readable.d.ts
|
||||
declare class BodyReadable extends Readable {
|
||||
constructor(opts: {
|
||||
resume: (this: Readable, size: number) => void | null;
|
||||
abort: () => void | null;
|
||||
contentType?: string;
|
||||
contentLength?: number;
|
||||
highWaterMark?: number;
|
||||
});
|
||||
/** Consumes and returns the body as a string
|
||||
* https://fetch.spec.whatwg.org/#dom-body-text
|
||||
*/
|
||||
text(): Promise<string>;
|
||||
/** Consumes and returns the body as a JavaScript Object
|
||||
* https://fetch.spec.whatwg.org/#dom-body-json
|
||||
*/
|
||||
json(): Promise<unknown>;
|
||||
/** Consumes and returns the body as a Blob
|
||||
* https://fetch.spec.whatwg.org/#dom-body-blob
|
||||
*/
|
||||
blob(): Promise<Blob$1>;
|
||||
/** Consumes and returns the body as an Uint8Array
|
||||
* https://fetch.spec.whatwg.org/#dom-body-bytes
|
||||
*/
|
||||
bytes(): Promise<Uint8Array>;
|
||||
/** Consumes and returns the body as an ArrayBuffer
|
||||
* https://fetch.spec.whatwg.org/#dom-body-arraybuffer
|
||||
*/
|
||||
arrayBuffer(): Promise<ArrayBuffer>;
|
||||
/** Not implemented
|
||||
*
|
||||
* https://fetch.spec.whatwg.org/#dom-body-formdata
|
||||
*/
|
||||
formData(): Promise<never>;
|
||||
/** Returns true if the body is not null and the body has been consumed
|
||||
*
|
||||
* Otherwise, returns false
|
||||
*
|
||||
* https://fetch.spec.whatwg.org/#dom-body-bodyused
|
||||
*/
|
||||
readonly bodyUsed: boolean;
|
||||
/**
|
||||
* If body is null, it should return null as the body
|
||||
*
|
||||
* If body is not null, should return the body as a ReadableStream
|
||||
*
|
||||
* https://fetch.spec.whatwg.org/#dom-body-body
|
||||
*/
|
||||
readonly body: never | undefined;
|
||||
/** Dumps the response body by reading `limit` number of bytes.
|
||||
* @param opts.limit Number of bytes to read (optional) - Default: 131072
|
||||
* @param opts.signal AbortSignal to cancel the operation (optional)
|
||||
*/
|
||||
dump(opts?: {
|
||||
limit: number;
|
||||
signal?: AbortSignal;
|
||||
}): Promise<void>;
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/fetch.d.ts
|
||||
type BodyInit = ArrayBuffer | AsyncIterable<Uint8Array> | Blob$1 | FormData | Iterable<Uint8Array> | NodeJS.ArrayBufferView | URLSearchParams | null | string;
|
||||
interface SpecIterator<T, TReturn = any, TNext = undefined> {
|
||||
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
||||
}
|
||||
interface SpecIterableIterator<T> extends SpecIterator<T> {
|
||||
[Symbol.iterator](): SpecIterableIterator<T>;
|
||||
}
|
||||
interface SpecIterable<T> {
|
||||
[Symbol.iterator](): SpecIterator<T>;
|
||||
}
|
||||
type HeadersInit$1 = [string, string][] | HeaderRecord | Headers$1;
|
||||
declare class Headers$1 implements SpecIterable<[string, string]> {
|
||||
constructor(init?: HeadersInit$1);
|
||||
readonly append: (name: string, value: string) => void;
|
||||
readonly delete: (name: string) => void;
|
||||
readonly get: (name: string) => string | null;
|
||||
readonly has: (name: string) => boolean;
|
||||
readonly set: (name: string, value: string) => void;
|
||||
readonly getSetCookie: () => string[];
|
||||
readonly forEach: (callbackfn: (value: string, key: string, iterable: Headers$1) => void, thisArg?: unknown) => void;
|
||||
readonly keys: () => SpecIterableIterator<string>;
|
||||
readonly values: () => SpecIterableIterator<string>;
|
||||
readonly entries: () => SpecIterableIterator<[string, string]>;
|
||||
readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]>;
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/formdata.d.ts
|
||||
/**
|
||||
* A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
|
||||
*/
|
||||
declare type FormDataEntryValue = string | File;
|
||||
/**
|
||||
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using fetch().
|
||||
*/
|
||||
declare class FormData {
|
||||
/**
|
||||
* Appends a new value onto an existing key inside a FormData object,
|
||||
* or adds the key if it does not already exist.
|
||||
*
|
||||
* The difference between `set()` and `append()` is that if the specified key already exists, `set()` will overwrite all existing values with the new one, whereas `append()` will append the new value onto the end of the existing set of values.
|
||||
*
|
||||
* @param name The name of the field whose data is contained in `value`.
|
||||
* @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
|
||||
or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
|
||||
* @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
|
||||
*/
|
||||
append(name: string, value: unknown, fileName?: string): void;
|
||||
/**
|
||||
* Set a new value for an existing key inside FormData,
|
||||
* or add the new field if it does not already exist.
|
||||
*
|
||||
* @param name The name of the field whose data is contained in `value`.
|
||||
* @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
|
||||
or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
|
||||
* @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
|
||||
*
|
||||
*/
|
||||
set(name: string, value: unknown, fileName?: string): void;
|
||||
/**
|
||||
* Returns the first value associated with a given key from within a `FormData` object.
|
||||
* If you expect multiple values and want all of them, use the `getAll()` method instead.
|
||||
*
|
||||
* @param {string} name A name of the value you want to retrieve.
|
||||
*
|
||||
* @returns A `FormDataEntryValue` containing the value. If the key doesn't exist, the method returns null.
|
||||
*/
|
||||
get(name: string): FormDataEntryValue | null;
|
||||
/**
|
||||
* Returns all the values associated with a given key from within a `FormData` object.
|
||||
*
|
||||
* @param {string} name A name of the value you want to retrieve.
|
||||
*
|
||||
* @returns An array of `FormDataEntryValue` whose key matches the value passed in the `name` parameter. If the key doesn't exist, the method returns an empty list.
|
||||
*/
|
||||
getAll(name: string): FormDataEntryValue[];
|
||||
/**
|
||||
* Returns a boolean stating whether a `FormData` object contains a certain key.
|
||||
*
|
||||
* @param name A string representing the name of the key you want to test for.
|
||||
*
|
||||
* @return A boolean value.
|
||||
*/
|
||||
has(name: string): boolean;
|
||||
/**
|
||||
* Deletes a key and its value(s) from a `FormData` object.
|
||||
*
|
||||
* @param name The name of the key you want to delete.
|
||||
*/
|
||||
delete(name: string): void;
|
||||
/**
|
||||
* Executes given callback function for each field of the FormData instance
|
||||
*/
|
||||
forEach: (callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData) => void, thisArg?: unknown) => void;
|
||||
/**
|
||||
* Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all keys contained in this `FormData` object.
|
||||
* Each key is a `string`.
|
||||
*/
|
||||
keys: () => SpecIterableIterator<string>;
|
||||
/**
|
||||
* Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all values contained in this object `FormData` object.
|
||||
* Each value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
|
||||
*/
|
||||
values: () => SpecIterableIterator<FormDataEntryValue>;
|
||||
/**
|
||||
* Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through the `FormData` key/value pairs.
|
||||
* The key of each pair is a string; the value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
|
||||
*/
|
||||
entries: () => SpecIterableIterator<[string, FormDataEntryValue]>;
|
||||
/**
|
||||
* An alias for FormData#entries()
|
||||
*/
|
||||
[Symbol.iterator]: () => SpecIterableIterator<[string, FormDataEntryValue]>;
|
||||
readonly [Symbol.toStringTag]: string;
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/connector.d.ts
|
||||
declare function buildConnector(options?: buildConnector.BuildOptions): buildConnector.connector;
|
||||
declare namespace buildConnector {
|
||||
export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {
|
||||
allowH2?: boolean;
|
||||
maxCachedSessions?: number | null;
|
||||
socketPath?: string | null;
|
||||
timeout?: number | null;
|
||||
port?: number;
|
||||
keepAlive?: boolean | null;
|
||||
keepAliveInitialDelay?: number | null;
|
||||
};
|
||||
export interface Options {
|
||||
hostname: string;
|
||||
host?: string;
|
||||
protocol: string;
|
||||
port: string;
|
||||
servername?: string;
|
||||
localAddress?: string | null;
|
||||
httpSocket?: Socket;
|
||||
}
|
||||
export type Callback = (...args: CallbackArgs) => void;
|
||||
type CallbackArgs = [null, Socket | TLSSocket] | [Error, null];
|
||||
export interface connector {
|
||||
(options: buildConnector.Options, callback: buildConnector.Callback): void;
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/client-stats.d.ts
|
||||
declare class ClientStats {
|
||||
constructor(pool: Client);
|
||||
/** If socket has open connection. */
|
||||
connected: boolean;
|
||||
/** Number of open socket connections in this client that do not have an active request. */
|
||||
pending: number;
|
||||
/** Number of currently active requests of this client. */
|
||||
running: number;
|
||||
/** Number of active, pending, or queued requests of this client. */
|
||||
size: number;
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/client.d.ts
|
||||
type ClientConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>;
|
||||
/**
|
||||
* A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
|
||||
*/
|
||||
declare class Client extends Dispatcher {
|
||||
constructor(url: string | URL$1, options?: Client.Options);
|
||||
/** Property to get and set the pipelining factor. */
|
||||
pipelining: number;
|
||||
/** `true` after `client.close()` has been called. */
|
||||
closed: boolean;
|
||||
/** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
|
||||
destroyed: boolean;
|
||||
/** Aggregate stats for a Client. */
|
||||
readonly stats: ClientStats; // Override dispatcher APIs.
|
||||
override connect(options: ClientConnectOptions): Promise<Dispatcher.ConnectData>;
|
||||
override connect(options: ClientConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void;
|
||||
}
|
||||
declare namespace Client {
|
||||
export interface OptionsInterceptors {
|
||||
Client: readonly Dispatcher.DispatchInterceptor[];
|
||||
}
|
||||
export interface Options {
|
||||
/** TODO */
|
||||
interceptors?: OptionsInterceptors;
|
||||
/** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */
|
||||
maxHeaderSize?: number;
|
||||
/** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
|
||||
headersTimeout?: number;
|
||||
/** @deprecated unsupported socketTimeout, use headersTimeout & bodyTimeout instead */
|
||||
socketTimeout?: never;
|
||||
/** @deprecated unsupported requestTimeout, use headersTimeout & bodyTimeout instead */
|
||||
requestTimeout?: never;
|
||||
/** TODO */
|
||||
connectTimeout?: number;
|
||||
/** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */
|
||||
bodyTimeout?: number;
|
||||
/** @deprecated unsupported idleTimeout, use keepAliveTimeout instead */
|
||||
idleTimeout?: never;
|
||||
/** @deprecated unsupported keepAlive, use pipelining=0 instead */
|
||||
keepAlive?: never;
|
||||
/** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */
|
||||
keepAliveTimeout?: number;
|
||||
/** @deprecated unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead */
|
||||
maxKeepAliveTimeout?: never;
|
||||
/** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */
|
||||
keepAliveMaxTimeout?: number;
|
||||
/** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */
|
||||
keepAliveTimeoutThreshold?: number;
|
||||
/** TODO */
|
||||
socketPath?: string;
|
||||
/** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */
|
||||
pipelining?: number;
|
||||
/** @deprecated use the connect option instead */
|
||||
tls?: never;
|
||||
/** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */
|
||||
strictContentLength?: boolean;
|
||||
/** TODO */
|
||||
maxCachedSessions?: number;
|
||||
/** TODO */
|
||||
connect?: Partial<buildConnector.BuildOptions> | buildConnector.connector;
|
||||
/** TODO */
|
||||
maxRequestsPerClient?: number;
|
||||
/** TODO */
|
||||
localAddress?: string;
|
||||
/** Max response body size in bytes, -1 is disabled */
|
||||
maxResponseSize?: number;
|
||||
/** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
|
||||
autoSelectFamily?: boolean;
|
||||
/** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
|
||||
autoSelectFamilyAttemptTimeout?: number;
|
||||
/**
|
||||
* @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
|
||||
* @default false
|
||||
*/
|
||||
allowH2?: boolean;
|
||||
/**
|
||||
* @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
|
||||
* @default 100
|
||||
*/
|
||||
maxConcurrentStreams?: number;
|
||||
/**
|
||||
* @description Sets the HTTP/2 stream-level flow-control window size (SETTINGS_INITIAL_WINDOW_SIZE).
|
||||
* @default 262144
|
||||
*/
|
||||
initialWindowSize?: number;
|
||||
/**
|
||||
* @description Sets the HTTP/2 connection-level flow-control window size (ClientHttp2Session.setLocalWindowSize).
|
||||
* @default 524288
|
||||
*/
|
||||
connectionWindowSize?: number;
|
||||
}
|
||||
export interface SocketInfo {
|
||||
localAddress?: string;
|
||||
localPort?: number;
|
||||
remoteAddress?: string;
|
||||
remotePort?: number;
|
||||
remoteFamily?: string;
|
||||
timeout?: number;
|
||||
bytesWritten?: number;
|
||||
bytesRead?: number;
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/errors.d.ts
|
||||
declare namespace Errors {
|
||||
export class UndiciError extends Error {
|
||||
name: string;
|
||||
code: string;
|
||||
}
|
||||
/** Connect timeout error. */
|
||||
export class ConnectTimeoutError extends UndiciError {
|
||||
name: 'ConnectTimeoutError';
|
||||
code: 'UND_ERR_CONNECT_TIMEOUT';
|
||||
}
|
||||
/** A header exceeds the `headersTimeout` option. */
|
||||
export class HeadersTimeoutError extends UndiciError {
|
||||
name: 'HeadersTimeoutError';
|
||||
code: 'UND_ERR_HEADERS_TIMEOUT';
|
||||
}
|
||||
/** Headers overflow error. */
|
||||
export class HeadersOverflowError extends UndiciError {
|
||||
name: 'HeadersOverflowError';
|
||||
code: 'UND_ERR_HEADERS_OVERFLOW';
|
||||
}
|
||||
/** A body exceeds the `bodyTimeout` option. */
|
||||
export class BodyTimeoutError extends UndiciError {
|
||||
name: 'BodyTimeoutError';
|
||||
code: 'UND_ERR_BODY_TIMEOUT';
|
||||
}
|
||||
export class ResponseError extends UndiciError {
|
||||
constructor(message: string, code: number, options: {
|
||||
headers?: IncomingHttpHeaders | string[] | null;
|
||||
body?: null | Record<string, any> | string;
|
||||
});
|
||||
name: 'ResponseError';
|
||||
code: 'UND_ERR_RESPONSE';
|
||||
statusCode: number;
|
||||
body: null | Record<string, any> | string;
|
||||
headers: IncomingHttpHeaders | string[] | null;
|
||||
}
|
||||
/** Passed an invalid argument. */
|
||||
export class InvalidArgumentError extends UndiciError {
|
||||
name: 'InvalidArgumentError';
|
||||
code: 'UND_ERR_INVALID_ARG';
|
||||
}
|
||||
/** Returned an invalid value. */
|
||||
export class InvalidReturnValueError extends UndiciError {
|
||||
name: 'InvalidReturnValueError';
|
||||
code: 'UND_ERR_INVALID_RETURN_VALUE';
|
||||
}
|
||||
/** The request has been aborted by the user. */
|
||||
export class RequestAbortedError extends UndiciError {
|
||||
name: 'AbortError';
|
||||
code: 'UND_ERR_ABORTED';
|
||||
}
|
||||
/** Expected error with reason. */
|
||||
export class InformationalError extends UndiciError {
|
||||
name: 'InformationalError';
|
||||
code: 'UND_ERR_INFO';
|
||||
}
|
||||
/** Request body length does not match content-length header. */
|
||||
export class RequestContentLengthMismatchError extends UndiciError {
|
||||
name: 'RequestContentLengthMismatchError';
|
||||
code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH';
|
||||
}
|
||||
/** Response body length does not match content-length header. */
|
||||
export class ResponseContentLengthMismatchError extends UndiciError {
|
||||
name: 'ResponseContentLengthMismatchError';
|
||||
code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH';
|
||||
}
|
||||
/** Trying to use a destroyed client. */
|
||||
export class ClientDestroyedError extends UndiciError {
|
||||
name: 'ClientDestroyedError';
|
||||
code: 'UND_ERR_DESTROYED';
|
||||
}
|
||||
/** Trying to use a closed client. */
|
||||
export class ClientClosedError extends UndiciError {
|
||||
name: 'ClientClosedError';
|
||||
code: 'UND_ERR_CLOSED';
|
||||
}
|
||||
/** There is an error with the socket. */
|
||||
export class SocketError extends UndiciError {
|
||||
name: 'SocketError';
|
||||
code: 'UND_ERR_SOCKET';
|
||||
socket: Client.SocketInfo | null;
|
||||
}
|
||||
/** Encountered unsupported functionality. */
|
||||
export class NotSupportedError extends UndiciError {
|
||||
name: 'NotSupportedError';
|
||||
code: 'UND_ERR_NOT_SUPPORTED';
|
||||
}
|
||||
/** No upstream has been added to the BalancedPool. */
|
||||
export class BalancedPoolMissingUpstreamError extends UndiciError {
|
||||
name: 'MissingUpstreamError';
|
||||
code: 'UND_ERR_BPL_MISSING_UPSTREAM';
|
||||
}
|
||||
export class HTTPParserError extends UndiciError {
|
||||
name: 'HTTPParserError';
|
||||
code: string;
|
||||
}
|
||||
/** The response exceed the length allowed. */
|
||||
export class ResponseExceededMaxSizeError extends UndiciError {
|
||||
name: 'ResponseExceededMaxSizeError';
|
||||
code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE';
|
||||
}
|
||||
export class RequestRetryError extends UndiciError {
|
||||
constructor(message: string, statusCode: number, headers?: IncomingHttpHeaders | string[] | null, body?: null | Record<string, any> | string);
|
||||
name: 'RequestRetryError';
|
||||
code: 'UND_ERR_REQ_RETRY';
|
||||
statusCode: number;
|
||||
data: {
|
||||
count: number;
|
||||
};
|
||||
headers: Record<string, string | string[]>;
|
||||
}
|
||||
export class SecureProxyConnectionError extends UndiciError {
|
||||
constructor(cause?: Error, message?: string, options?: Record<any, any>);
|
||||
name: 'SecureProxyConnectionError';
|
||||
code: 'UND_ERR_PRX_TLS';
|
||||
}
|
||||
class MaxOriginsReachedError extends UndiciError {
|
||||
name: 'MaxOriginsReachedError';
|
||||
code: 'UND_ERR_MAX_ORIGINS_REACHED';
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/dispatcher.d.ts
|
||||
type AbortSignal$1 = unknown;
|
||||
type UndiciHeaders = Record<string, string | string[]> | IncomingHttpHeaders | string[] | Iterable<[string, string | string[] | undefined]> | null;
|
||||
/** Dispatcher is the core API used to dispatch requests. */
|
||||
declare class Dispatcher extends EventEmitter {
|
||||
/** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */
|
||||
dispatch(options: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean;
|
||||
/** Starts two-way communications with the requested resource. */
|
||||
connect<TOpaque = null>(options: Dispatcher.ConnectOptions<TOpaque>, callback: (err: Error | null, data: Dispatcher.ConnectData<TOpaque>) => void): void;
|
||||
connect<TOpaque = null>(options: Dispatcher.ConnectOptions<TOpaque>): Promise<Dispatcher.ConnectData<TOpaque>>;
|
||||
/** Compose a chain of dispatchers */
|
||||
compose(dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher;
|
||||
compose(...dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher;
|
||||
/** Performs an HTTP request. */
|
||||
request<TOpaque = null>(options: Dispatcher.RequestOptions<TOpaque>, callback: (err: Error | null, data: Dispatcher.ResponseData<TOpaque>) => void): void;
|
||||
request<TOpaque = null>(options: Dispatcher.RequestOptions<TOpaque>): Promise<Dispatcher.ResponseData<TOpaque>>;
|
||||
/** For easy use with `stream.pipeline`. */
|
||||
pipeline<TOpaque = null>(options: Dispatcher.PipelineOptions<TOpaque>, handler: Dispatcher.PipelineHandler<TOpaque>): Duplex;
|
||||
/** A faster version of `Dispatcher.request`. */
|
||||
stream<TOpaque = null>(options: Dispatcher.RequestOptions<TOpaque>, factory: Dispatcher.StreamFactory<TOpaque>, callback: (err: Error | null, data: Dispatcher.StreamData<TOpaque>) => void): void;
|
||||
stream<TOpaque = null>(options: Dispatcher.RequestOptions<TOpaque>, factory: Dispatcher.StreamFactory<TOpaque>): Promise<Dispatcher.StreamData<TOpaque>>;
|
||||
/** Upgrade to a different protocol. */
|
||||
upgrade(options: Dispatcher.UpgradeOptions, callback: (err: Error | null, data: Dispatcher.UpgradeData) => void): void;
|
||||
upgrade(options: Dispatcher.UpgradeOptions): Promise<Dispatcher.UpgradeData>;
|
||||
/** Closes the client and gracefully waits for enqueued requests to complete before invoking the callback (or returning a promise if no callback is provided). */
|
||||
close(callback: () => void): void;
|
||||
close(): Promise<void>;
|
||||
/** Destroy the client abruptly with the given err. All the pending and running requests will be asynchronously aborted and error. Waits until socket is closed before invoking the callback (or returning a promise if no callback is provided). Since this operation is asynchronously dispatched there might still be some progress on dispatched requests. */
|
||||
destroy(err: Error | null, callback: () => void): void;
|
||||
destroy(callback: () => void): void;
|
||||
destroy(err: Error | null): Promise<void>;
|
||||
destroy(): Promise<void>;
|
||||
on(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
|
||||
on(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
on(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
on(eventName: 'drain', callback: (origin: URL$1) => void): this;
|
||||
once(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
|
||||
once(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
once(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
once(eventName: 'drain', callback: (origin: URL$1) => void): this;
|
||||
off(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
|
||||
off(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
off(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
off(eventName: 'drain', callback: (origin: URL$1) => void): this;
|
||||
addListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
|
||||
addListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
addListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
addListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
|
||||
removeListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
|
||||
removeListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
removeListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
removeListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
|
||||
prependListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
|
||||
prependListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
prependListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
prependListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
|
||||
prependOnceListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
|
||||
prependOnceListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
prependOnceListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
||||
prependOnceListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
|
||||
listeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
|
||||
listeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
|
||||
listeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
|
||||
listeners(eventName: 'drain'): ((origin: URL$1) => void)[];
|
||||
rawListeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
|
||||
rawListeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
|
||||
rawListeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
|
||||
rawListeners(eventName: 'drain'): ((origin: URL$1) => void)[];
|
||||
emit(eventName: 'connect', origin: URL$1, targets: readonly Dispatcher[]): boolean;
|
||||
emit(eventName: 'disconnect', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
|
||||
emit(eventName: 'connectionError', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
|
||||
emit(eventName: 'drain', origin: URL$1): boolean;
|
||||
}
|
||||
declare namespace Dispatcher {
|
||||
export interface ComposedDispatcher extends Dispatcher {}
|
||||
export type Dispatch = Dispatcher['dispatch'];
|
||||
export type DispatcherComposeInterceptor = (dispatch: Dispatch) => Dispatch;
|
||||
export interface DispatchOptions {
|
||||
origin?: string | URL$1;
|
||||
path: string;
|
||||
method: HttpMethod;
|
||||
/** Default: `null` */
|
||||
body?: string | Buffer | Uint8Array | Readable | null | FormData;
|
||||
/** Default: `null` */
|
||||
headers?: UndiciHeaders;
|
||||
/** Query string params to be embedded in the request URL. Default: `null` */
|
||||
query?: Record<string, any>;
|
||||
/** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */
|
||||
idempotent?: boolean;
|
||||
/** Whether the response is expected to take a long time and would end up blocking the pipeline. When this is set to `true` further pipelining will be avoided on the same connection until headers have been received. Defaults to `method !== 'HEAD'`. */
|
||||
blocking?: boolean;
|
||||
/** Upgrade the request. Should be used to specify the kind of upgrade i.e. `'Websocket'`. Default: `method === 'CONNECT' || null`. */
|
||||
upgrade?: boolean | string | null;
|
||||
/** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers. Defaults to 300 seconds. */
|
||||
headersTimeout?: number | null;
|
||||
/** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use 0 to disable it entirely. Defaults to 300 seconds. */
|
||||
bodyTimeout?: number | null;
|
||||
/** Whether the request should stablish a keep-alive or not. Default `false` */
|
||||
reset?: boolean;
|
||||
/** Whether Undici should throw an error upon receiving a 4xx or 5xx response from the server. Defaults to false */
|
||||
throwOnError?: boolean;
|
||||
/** For H2, it appends the expect: 100-continue header, and halts the request body until a 100-continue is received from the remote server */
|
||||
expectContinue?: boolean;
|
||||
}
|
||||
export interface ConnectOptions<TOpaque = null> {
|
||||
origin: string | URL$1;
|
||||
path: string;
|
||||
/** Default: `null` */
|
||||
headers?: UndiciHeaders;
|
||||
/** Default: `null` */
|
||||
signal?: AbortSignal$1 | EventEmitter | null;
|
||||
/** This argument parameter is passed through to `ConnectData` */
|
||||
opaque?: TOpaque;
|
||||
/** Default: false */
|
||||
redirectionLimitReached?: boolean;
|
||||
/** Default: `null` */
|
||||
responseHeaders?: 'raw' | null;
|
||||
}
|
||||
export interface RequestOptions<TOpaque = null> extends DispatchOptions {
|
||||
/** Default: `null` */
|
||||
opaque?: TOpaque;
|
||||
/** Default: `null` */
|
||||
signal?: AbortSignal$1 | EventEmitter | null;
|
||||
/** Default: false */
|
||||
redirectionLimitReached?: boolean;
|
||||
/** Default: `null` */
|
||||
onInfo?: (info: {
|
||||
statusCode: number;
|
||||
headers: Record<string, string | string[]>;
|
||||
}) => void;
|
||||
/** Default: `null` */
|
||||
responseHeaders?: 'raw' | null;
|
||||
/** Default: `64 KiB` */
|
||||
highWaterMark?: number;
|
||||
}
|
||||
export interface PipelineOptions<TOpaque = null> extends RequestOptions<TOpaque> {
|
||||
/** `true` if the `handler` will return an object stream. Default: `false` */
|
||||
objectMode?: boolean;
|
||||
}
|
||||
export interface UpgradeOptions {
|
||||
path: string;
|
||||
/** Default: `'GET'` */
|
||||
method?: string;
|
||||
/** Default: `null` */
|
||||
headers?: UndiciHeaders;
|
||||
/** A string of comma separated protocols, in descending preference order. Default: `'Websocket'` */
|
||||
protocol?: string;
|
||||
/** Default: `null` */
|
||||
signal?: AbortSignal$1 | EventEmitter | null;
|
||||
/** Default: false */
|
||||
redirectionLimitReached?: boolean;
|
||||
/** Default: `null` */
|
||||
responseHeaders?: 'raw' | null;
|
||||
}
|
||||
export interface ConnectData<TOpaque = null> {
|
||||
statusCode: number;
|
||||
headers: IncomingHttpHeaders;
|
||||
socket: Duplex;
|
||||
opaque: TOpaque;
|
||||
}
|
||||
export interface ResponseData<TOpaque = null> {
|
||||
statusCode: number;
|
||||
headers: IncomingHttpHeaders;
|
||||
body: BodyReadable & BodyMixin;
|
||||
trailers: Record<string, string>;
|
||||
opaque: TOpaque;
|
||||
context: object;
|
||||
}
|
||||
export interface PipelineHandlerData<TOpaque = null> {
|
||||
statusCode: number;
|
||||
headers: IncomingHttpHeaders;
|
||||
opaque: TOpaque;
|
||||
body: BodyReadable;
|
||||
context: object;
|
||||
}
|
||||
export interface StreamData<TOpaque = null> {
|
||||
opaque: TOpaque;
|
||||
trailers: Record<string, string>;
|
||||
}
|
||||
export interface UpgradeData<TOpaque = null> {
|
||||
headers: IncomingHttpHeaders;
|
||||
socket: Duplex;
|
||||
opaque: TOpaque;
|
||||
}
|
||||
export interface StreamFactoryData<TOpaque = null> {
|
||||
statusCode: number;
|
||||
headers: IncomingHttpHeaders;
|
||||
opaque: TOpaque;
|
||||
context: object;
|
||||
}
|
||||
export type StreamFactory<TOpaque = null> = (data: StreamFactoryData<TOpaque>) => Writable;
|
||||
export interface DispatchController {
|
||||
get aborted(): boolean;
|
||||
get paused(): boolean;
|
||||
get reason(): Error | null;
|
||||
abort(reason: Error): void;
|
||||
pause(): void;
|
||||
resume(): void;
|
||||
}
|
||||
export interface DispatchHandler {
|
||||
onRequestStart?(controller: DispatchController, context: any): void;
|
||||
onRequestUpgrade?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, socket: Duplex): void;
|
||||
onResponseStart?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, statusMessage?: string): void;
|
||||
onResponseData?(controller: DispatchController, chunk: Buffer): void;
|
||||
onResponseEnd?(controller: DispatchController, trailers: IncomingHttpHeaders): void;
|
||||
onResponseError?(controller: DispatchController, error: Error): void;
|
||||
/** Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails. */
|
||||
/** @deprecated */
|
||||
onConnect?(abort: (err?: Error) => void): void;
|
||||
/** Invoked when an error has occurred. */
|
||||
/** @deprecated */
|
||||
onError?(err: Error): void;
|
||||
/** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
|
||||
/** @deprecated */
|
||||
onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void;
|
||||
/** Invoked when response is received, before headers have been read. **/
|
||||
/** @deprecated */
|
||||
onResponseStarted?(): void;
|
||||
/** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */
|
||||
/** @deprecated */
|
||||
onHeaders?(statusCode: number, headers: Buffer[], resume: () => void, statusText: string): boolean;
|
||||
/** Invoked when response payload data is received. */
|
||||
/** @deprecated */
|
||||
onData?(chunk: Buffer): boolean;
|
||||
/** Invoked when response payload and trailers have been received and the request has completed. */
|
||||
/** @deprecated */
|
||||
onComplete?(trailers: string[] | null): void;
|
||||
/** Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests */
|
||||
/** @deprecated */
|
||||
onBodySent?(chunkSize: number, totalBytesSent: number): void;
|
||||
}
|
||||
export type PipelineHandler<TOpaque = null> = (data: PipelineHandlerData<TOpaque>) => Readable;
|
||||
export type HttpMethod = Autocomplete<'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'>;
|
||||
/**
|
||||
* @link https://fetch.spec.whatwg.org/#body-mixin
|
||||
*/
|
||||
interface BodyMixin {
|
||||
readonly body?: never;
|
||||
readonly bodyUsed: boolean;
|
||||
arrayBuffer(): Promise<ArrayBuffer>;
|
||||
blob(): Promise<Blob$1>;
|
||||
bytes(): Promise<Uint8Array>;
|
||||
formData(): Promise<never>;
|
||||
json(): Promise<unknown>;
|
||||
text(): Promise<string>;
|
||||
}
|
||||
export interface DispatchInterceptor {
|
||||
(dispatch: Dispatch): Dispatch;
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/undici@7.19.1/node_modules/undici/types/mock-interceptor.d.ts
|
||||
/** The scope associated with a mock dispatch. */
|
||||
declare class MockScope<TData extends object = object> {
|
||||
constructor(mockDispatch: MockInterceptor.MockDispatch<TData>);
|
||||
/** Delay a reply by a set amount of time in ms. */
|
||||
delay(waitInMs: number): MockScope<TData>;
|
||||
/** Persist the defined mock data for the associated reply. It will return the defined mock data indefinitely. */
|
||||
persist(): MockScope<TData>;
|
||||
/** Define a reply for a set amount of matching requests. */
|
||||
times(repeatTimes: number): MockScope<TData>;
|
||||
}
|
||||
/** The interceptor for a Mock. */
|
||||
declare class MockInterceptor {
|
||||
constructor(options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[]);
|
||||
/** Mock an undici request with the defined reply. */
|
||||
reply<TData extends object = object>(replyOptionsCallback: MockInterceptor.MockReplyOptionsCallback<TData>): MockScope<TData>;
|
||||
reply<TData extends object = object>(statusCode: number, data?: TData | Buffer | string | MockInterceptor.MockResponseDataHandler<TData>, responseOptions?: MockInterceptor.MockResponseOptions): MockScope<TData>;
|
||||
/** Mock an undici request by throwing the defined reply error. */
|
||||
replyWithError<TError extends Error = Error>(error: TError): MockScope;
|
||||
/** Set default reply headers on the interceptor for subsequent mocked replies. */
|
||||
defaultReplyHeaders(headers: IncomingHttpHeaders): MockInterceptor;
|
||||
/** Set default reply trailers on the interceptor for subsequent mocked replies. */
|
||||
defaultReplyTrailers(trailers: Record<string, string>): MockInterceptor;
|
||||
/** Set automatically calculated content-length header on subsequent mocked replies. */
|
||||
replyContentLength(): MockInterceptor;
|
||||
}
|
||||
declare namespace MockInterceptor {
|
||||
/** MockInterceptor options. */
|
||||
export interface Options {
|
||||
/** Path to intercept on. */
|
||||
path: string | RegExp | ((path: string) => boolean);
|
||||
/** Method to intercept on. Defaults to GET. */
|
||||
method?: string | RegExp | ((method: string) => boolean);
|
||||
/** Body to intercept on. */
|
||||
body?: string | RegExp | ((body: string) => boolean);
|
||||
/** Headers to intercept on. */
|
||||
headers?: Record<string, string | RegExp | ((body: string) => boolean)> | ((headers: Record<string, string>) => boolean);
|
||||
/** Query params to intercept on */
|
||||
query?: Record<string, any>;
|
||||
}
|
||||
export interface MockDispatch<TData extends object = object, TError extends Error = Error> extends Options {
|
||||
times: number | null;
|
||||
persist: boolean;
|
||||
consumed: boolean;
|
||||
data: MockDispatchData<TData, TError>;
|
||||
}
|
||||
export interface MockDispatchData<TData extends object = object, TError extends Error = Error> extends MockResponseOptions {
|
||||
error: TError | null;
|
||||
statusCode?: number;
|
||||
data?: TData | string;
|
||||
}
|
||||
export interface MockResponseOptions {
|
||||
headers?: IncomingHttpHeaders;
|
||||
trailers?: Record<string, string>;
|
||||
}
|
||||
export interface MockResponseCallbackOptions {
|
||||
path: string;
|
||||
method: string;
|
||||
headers?: Headers$1 | Record<string, string>;
|
||||
origin?: string;
|
||||
body?: BodyInit | Dispatcher.DispatchOptions['body'] | null;
|
||||
}
|
||||
export type MockResponseDataHandler<TData extends object = object> = (opts: MockResponseCallbackOptions) => TData | Buffer | string;
|
||||
export type MockReplyOptionsCallback<TData extends object = object> = (opts: MockResponseCallbackOptions) => {
|
||||
statusCode: number;
|
||||
data?: TData | Buffer | string;
|
||||
responseOptions?: MockResponseOptions;
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.BbrTaNPp.d.mts
|
||||
interface FetchOptions<R extends ResponseType = ResponseType, T = any> extends Omit<RequestInit, "body">, FetchHooks<T, R> {
|
||||
baseURL?: string;
|
||||
body?: RequestInit["body"] | Record<string, any>;
|
||||
ignoreResponseError?: boolean;
|
||||
/**
|
||||
* @deprecated use query instead.
|
||||
*/
|
||||
params?: Record<string, any>;
|
||||
query?: Record<string, any>;
|
||||
parseResponse?: (responseText: string) => any;
|
||||
responseType?: R;
|
||||
/**
|
||||
* @experimental Set to "half" to enable duplex streaming.
|
||||
* Will be automatically set to "half" when using a ReadableStream as body.
|
||||
* @see https://fetch.spec.whatwg.org/#enumdef-requestduplex
|
||||
*/
|
||||
duplex?: "half" | undefined;
|
||||
/**
|
||||
* Only supported in Node.js >= 18 using undici
|
||||
*
|
||||
* @see https://undici.nodejs.org/#/docs/api/Dispatcher
|
||||
*/
|
||||
dispatcher?: InstanceType<typeof Dispatcher>;
|
||||
/**
|
||||
* Only supported older Node.js versions using node-fetch-native polyfill.
|
||||
*/
|
||||
agent?: unknown;
|
||||
/** timeout in milliseconds */
|
||||
timeout?: number;
|
||||
retry?: number | false;
|
||||
/** Delay between retries in milliseconds. */
|
||||
retryDelay?: number | ((context: FetchContext<T, R>) => number);
|
||||
/** Default is [408, 409, 425, 429, 500, 502, 503, 504] */
|
||||
retryStatusCodes?: number[];
|
||||
}
|
||||
interface ResolvedFetchOptions<R extends ResponseType = ResponseType, T = any> extends FetchOptions<R, T> {
|
||||
headers: Headers;
|
||||
}
|
||||
interface FetchContext<T = any, R extends ResponseType = ResponseType> {
|
||||
request: FetchRequest;
|
||||
options: ResolvedFetchOptions<R>;
|
||||
response?: FetchResponse<T>;
|
||||
error?: Error;
|
||||
}
|
||||
type MaybePromise<T> = T | Promise<T>;
|
||||
type MaybeArray<T> = T | T[];
|
||||
type FetchHook<C extends FetchContext = FetchContext> = (context: C) => MaybePromise<void>;
|
||||
interface FetchHooks<T = any, R extends ResponseType = ResponseType> {
|
||||
onRequest?: MaybeArray<FetchHook<FetchContext<T, R>>>;
|
||||
onRequestError?: MaybeArray<FetchHook<FetchContext<T, R> & {
|
||||
error: Error;
|
||||
}>>;
|
||||
onResponse?: MaybeArray<FetchHook<FetchContext<T, R> & {
|
||||
response: FetchResponse<T>;
|
||||
}>>;
|
||||
onResponseError?: MaybeArray<FetchHook<FetchContext<T, R> & {
|
||||
response: FetchResponse<T>;
|
||||
}>>;
|
||||
}
|
||||
interface ResponseMap {
|
||||
blob: Blob;
|
||||
text: string;
|
||||
arrayBuffer: ArrayBuffer;
|
||||
stream: ReadableStream<Uint8Array>;
|
||||
}
|
||||
type ResponseType = keyof ResponseMap | "json";
|
||||
interface FetchResponse<T> extends Response {
|
||||
_data?: T;
|
||||
}
|
||||
type FetchRequest = RequestInfo;
|
||||
//#endregion
|
||||
export { FetchOptions as t };
|
||||
1
node_modules/@nuxt/schema/dist/_chunks/libs/open.d.mts
generated
vendored
Normal file
1
node_modules/@nuxt/schema/dist/_chunks/libs/open.d.mts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import "child_process";
|
||||
422
node_modules/@nuxt/schema/dist/_chunks/libs/oxc-transform.d.mts
generated
vendored
Normal file
422
node_modules/@nuxt/schema/dist/_chunks/libs/oxc-transform.d.mts
generated
vendored
Normal file
@@ -0,0 +1,422 @@
|
||||
//#region ../../node_modules/.pnpm/oxc-transform@0.112.0/node_modules/oxc-transform/index.d.ts
|
||||
interface CompilerAssumptions {
|
||||
ignoreFunctionLength?: boolean;
|
||||
noDocumentAll?: boolean;
|
||||
objectRestNoSymbols?: boolean;
|
||||
pureGetters?: boolean;
|
||||
/**
|
||||
* When using public class fields, assume that they don't shadow any getter in the current class,
|
||||
* in its subclasses or in its superclass. Thus, it's safe to assign them rather than using
|
||||
* `Object.defineProperty`.
|
||||
*
|
||||
* For example:
|
||||
*
|
||||
* Input:
|
||||
* ```js
|
||||
* class Test {
|
||||
* field = 2;
|
||||
*
|
||||
* static staticField = 3;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* When `set_public_class_fields` is `true`, the output will be:
|
||||
* ```js
|
||||
* class Test {
|
||||
* constructor() {
|
||||
* this.field = 2;
|
||||
* }
|
||||
* }
|
||||
* Test.staticField = 3;
|
||||
* ```
|
||||
*
|
||||
* Otherwise, the output will be:
|
||||
* ```js
|
||||
* import _defineProperty from "@oxc-project/runtime/helpers/defineProperty";
|
||||
* class Test {
|
||||
* constructor() {
|
||||
* _defineProperty(this, "field", 2);
|
||||
* }
|
||||
* }
|
||||
* _defineProperty(Test, "staticField", 3);
|
||||
* ```
|
||||
*
|
||||
* NOTE: For TypeScript, if you wanted behavior is equivalent to `useDefineForClassFields: false`, you should
|
||||
* set both `set_public_class_fields` and [`crate::TypeScriptOptions::remove_class_fields_without_initializer`]
|
||||
* to `true`.
|
||||
*/
|
||||
setPublicClassFields?: boolean;
|
||||
}
|
||||
interface DecoratorOptions {
|
||||
/**
|
||||
* Enables experimental support for decorators, which is a version of decorators that predates the TC39 standardization process.
|
||||
*
|
||||
* Decorators are a language feature which hasn’t yet been fully ratified into the JavaScript specification.
|
||||
* This means that the implementation version in TypeScript may differ from the implementation in JavaScript when it it decided by TC39.
|
||||
*
|
||||
* @see https://www.typescriptlang.org/tsconfig/#experimentalDecorators
|
||||
* @default false
|
||||
*/
|
||||
legacy?: boolean;
|
||||
/**
|
||||
* Enables emitting decorator metadata.
|
||||
*
|
||||
* This option the same as [emitDecoratorMetadata](https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata)
|
||||
* in TypeScript, and it only works when `legacy` is true.
|
||||
*
|
||||
* @see https://www.typescriptlang.org/tsconfig/#emitDecoratorMetadata
|
||||
* @default false
|
||||
*/
|
||||
emitDecoratorMetadata?: boolean;
|
||||
}
|
||||
declare const enum HelperMode {
|
||||
/**
|
||||
* Runtime mode (default): Helper functions are imported from a runtime package.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* ```js
|
||||
* import helperName from "@oxc-project/runtime/helpers/helperName";
|
||||
* helperName(...arguments);
|
||||
* ```
|
||||
*/
|
||||
Runtime = 'Runtime',
|
||||
/**
|
||||
* External mode: Helper functions are accessed from a global `babelHelpers` object.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* ```js
|
||||
* babelHelpers.helperName(...arguments);
|
||||
* ```
|
||||
*/
|
||||
External = 'External'
|
||||
}
|
||||
interface Helpers {
|
||||
mode?: HelperMode;
|
||||
}
|
||||
interface IsolatedDeclarationsOptions {
|
||||
/**
|
||||
* Do not emit declarations for code that has an @internal annotation in its JSDoc comment.
|
||||
* This is an internal compiler option; use at your own risk, because the compiler does not check that the result is valid.
|
||||
*
|
||||
* Default: `false`
|
||||
*
|
||||
* See <https://www.typescriptlang.org/tsconfig/#stripInternal>
|
||||
*/
|
||||
stripInternal?: boolean;
|
||||
sourcemap?: boolean;
|
||||
}
|
||||
/**
|
||||
* Configure how TSX and JSX are transformed.
|
||||
*
|
||||
* @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx}
|
||||
*/
|
||||
interface JsxOptions {
|
||||
/**
|
||||
* Decides which runtime to use.
|
||||
*
|
||||
* - 'automatic' - auto-import the correct JSX factories
|
||||
* - 'classic' - no auto-import
|
||||
*
|
||||
* @default 'automatic'
|
||||
*/
|
||||
runtime?: 'classic' | 'automatic';
|
||||
/**
|
||||
* Emit development-specific information, such as `__source` and `__self`.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
development?: boolean;
|
||||
/**
|
||||
* Toggles whether or not to throw an error if an XML namespaced tag name
|
||||
* is used.
|
||||
*
|
||||
* Though the JSX spec allows this, it is disabled by default since React's
|
||||
* JSX does not currently have support for it.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
throwIfNamespace?: boolean;
|
||||
/**
|
||||
* Mark JSX elements and top-level React method calls as pure for tree shaking.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
pure?: boolean;
|
||||
/**
|
||||
* Replaces the import source when importing functions.
|
||||
*
|
||||
* @default 'react'
|
||||
*/
|
||||
importSource?: string;
|
||||
/**
|
||||
* Replace the function used when compiling JSX expressions. It should be a
|
||||
* qualified name (e.g. `React.createElement`) or an identifier (e.g.
|
||||
* `createElement`).
|
||||
*
|
||||
* Only used for `classic` {@link runtime}.
|
||||
*
|
||||
* @default 'React.createElement'
|
||||
*/
|
||||
pragma?: string;
|
||||
/**
|
||||
* Replace the component used when compiling JSX fragments. It should be a
|
||||
* valid JSX tag name.
|
||||
*
|
||||
* Only used for `classic` {@link runtime}.
|
||||
*
|
||||
* @default 'React.Fragment'
|
||||
*/
|
||||
pragmaFrag?: string;
|
||||
/**
|
||||
* Enable React Fast Refresh .
|
||||
*
|
||||
* Conforms to the implementation in {@link https://github.com/facebook/react/tree/v18.3.1/packages/react-refresh}
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
refresh?: boolean | ReactRefreshOptions;
|
||||
}
|
||||
interface PluginsOptions {
|
||||
styledComponents?: StyledComponentsOptions;
|
||||
taggedTemplateEscape?: boolean;
|
||||
}
|
||||
interface ReactRefreshOptions {
|
||||
/**
|
||||
* Specify the identifier of the refresh registration variable.
|
||||
*
|
||||
* @default `$RefreshReg$`.
|
||||
*/
|
||||
refreshReg?: string;
|
||||
/**
|
||||
* Specify the identifier of the refresh signature variable.
|
||||
*
|
||||
* @default `$RefreshSig$`.
|
||||
*/
|
||||
refreshSig?: string;
|
||||
emitFullSignatures?: boolean;
|
||||
}
|
||||
/**
|
||||
* Configure how styled-components are transformed.
|
||||
*
|
||||
* @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins#styled-components}
|
||||
*/
|
||||
interface StyledComponentsOptions {
|
||||
/**
|
||||
* Enhances the attached CSS class name on each component with richer output to help
|
||||
* identify your components in the DOM without React DevTools.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
displayName?: boolean;
|
||||
/**
|
||||
* Controls whether the `displayName` of a component will be prefixed with the filename
|
||||
* to make the component name as unique as possible.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
fileName?: boolean;
|
||||
/**
|
||||
* Adds a unique identifier to every styled component to avoid checksum mismatches
|
||||
* due to different class generation on the client and server during server-side rendering.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
ssr?: boolean;
|
||||
/**
|
||||
* Transpiles styled-components tagged template literals to a smaller representation
|
||||
* than what Babel normally creates, helping to reduce bundle size.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
transpileTemplateLiterals?: boolean;
|
||||
/**
|
||||
* Minifies CSS content by removing all whitespace and comments from your CSS,
|
||||
* keeping valuable bytes out of your bundles.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
minify?: boolean;
|
||||
/**
|
||||
* Enables transformation of JSX `css` prop when using styled-components.
|
||||
*
|
||||
* **Note: This feature is not yet implemented in oxc.**
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
cssProp?: boolean;
|
||||
/**
|
||||
* Enables "pure annotation" to aid dead code elimination by bundlers.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
pure?: boolean;
|
||||
/**
|
||||
* Adds a namespace prefix to component identifiers to ensure class names are unique.
|
||||
*
|
||||
* Example: With `namespace: "my-app"`, generates `componentId: "my-app__sc-3rfj0a-1"`
|
||||
*/
|
||||
namespace?: string;
|
||||
/**
|
||||
* List of file names that are considered meaningless for component naming purposes.
|
||||
*
|
||||
* When the `fileName` option is enabled and a component is in a file with a name
|
||||
* from this list, the directory name will be used instead of the file name for
|
||||
* the component's display name.
|
||||
*
|
||||
* @default `["index"]`
|
||||
*/
|
||||
meaninglessFileNames?: Array<string>;
|
||||
/**
|
||||
* Import paths to be considered as styled-components imports at the top level.
|
||||
*
|
||||
* **Note: This feature is not yet implemented in oxc.**
|
||||
*/
|
||||
topLevelImportPaths?: Array<string>;
|
||||
}
|
||||
/**
|
||||
* Options for transforming a JavaScript or TypeScript file.
|
||||
*
|
||||
* @see {@link transform}
|
||||
*/
|
||||
interface TransformOptions {
|
||||
/** Treat the source text as `js`, `jsx`, `ts`, `tsx`, or `dts`. */
|
||||
lang?: 'js' | 'jsx' | 'ts' | 'tsx' | 'dts';
|
||||
/** Treat the source text as `script` or `module` code. */
|
||||
sourceType?: 'script' | 'module' | 'commonjs' | 'unambiguous' | undefined;
|
||||
/**
|
||||
* The current working directory. Used to resolve relative paths in other
|
||||
* options.
|
||||
*/
|
||||
cwd?: string;
|
||||
/**
|
||||
* Enable source map generation.
|
||||
*
|
||||
* When `true`, the `sourceMap` field of transform result objects will be populated.
|
||||
*
|
||||
* @default false
|
||||
*
|
||||
* @see {@link SourceMap}
|
||||
*/
|
||||
sourcemap?: boolean;
|
||||
/** Set assumptions in order to produce smaller output. */
|
||||
assumptions?: CompilerAssumptions;
|
||||
/**
|
||||
* Configure how TypeScript is transformed.
|
||||
* @see {@link https://oxc.rs/docs/guide/usage/transformer/typescript}
|
||||
*/
|
||||
typescript?: TypeScriptOptions;
|
||||
/**
|
||||
* Configure how TSX and JSX are transformed.
|
||||
* @see {@link https://oxc.rs/docs/guide/usage/transformer/jsx}
|
||||
*/
|
||||
jsx?: 'preserve' | JsxOptions;
|
||||
/**
|
||||
* Sets the target environment for the generated JavaScript.
|
||||
*
|
||||
* The lowest target is `es2015`.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* * `'es2015'`
|
||||
* * `['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']`
|
||||
*
|
||||
* @default `esnext` (No transformation)
|
||||
*
|
||||
* @see {@link https://oxc.rs/docs/guide/usage/transformer/lowering#target}
|
||||
*/
|
||||
target?: string | Array<string>;
|
||||
/** Behaviour for runtime helpers. */
|
||||
helpers?: Helpers;
|
||||
/**
|
||||
* Define Plugin
|
||||
* @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#define}
|
||||
*/
|
||||
define?: Record<string, string>;
|
||||
/**
|
||||
* Inject Plugin
|
||||
* @see {@link https://oxc.rs/docs/guide/usage/transformer/global-variable-replacement#inject}
|
||||
*/
|
||||
inject?: Record<string, string | [string, string]>;
|
||||
/** Decorator plugin */
|
||||
decorator?: DecoratorOptions;
|
||||
/**
|
||||
* Third-party plugins to use.
|
||||
* @see {@link https://oxc.rs/docs/guide/usage/transformer/plugins}
|
||||
*/
|
||||
plugins?: PluginsOptions;
|
||||
}
|
||||
interface TypeScriptOptions {
|
||||
jsxPragma?: string;
|
||||
jsxPragmaFrag?: string;
|
||||
onlyRemoveTypeImports?: boolean;
|
||||
allowNamespaces?: boolean;
|
||||
/**
|
||||
* When enabled, type-only class fields are only removed if they are prefixed with the declare modifier:
|
||||
*
|
||||
* @deprecated
|
||||
*
|
||||
* Allowing `declare` fields is built-in support in Oxc without any option. If you want to remove class fields
|
||||
* without initializer, you can use `remove_class_fields_without_initializer: true` instead.
|
||||
*/
|
||||
allowDeclareFields?: boolean;
|
||||
/**
|
||||
* When enabled, class fields without initializers are removed.
|
||||
*
|
||||
* For example:
|
||||
* ```ts
|
||||
* class Foo {
|
||||
* x: number;
|
||||
* y: number = 0;
|
||||
* }
|
||||
* ```
|
||||
* // transform into
|
||||
* ```js
|
||||
* class Foo {
|
||||
* x: number;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* The option is used to align with the behavior of TypeScript's `useDefineForClassFields: false` option.
|
||||
* When you want to enable this, you also need to set [`crate::CompilerAssumptions::set_public_class_fields`]
|
||||
* to `true`. The `set_public_class_fields: true` + `remove_class_fields_without_initializer: true` is
|
||||
* equivalent to `useDefineForClassFields: false` in TypeScript.
|
||||
*
|
||||
* When `set_public_class_fields` is true and class-properties plugin is enabled, the above example transforms into:
|
||||
*
|
||||
* ```js
|
||||
* class Foo {
|
||||
* constructor() {
|
||||
* this.y = 0;
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* Defaults to `false`.
|
||||
*/
|
||||
removeClassFieldsWithoutInitializer?: boolean;
|
||||
/**
|
||||
* Also generate a `.d.ts` declaration file for TypeScript files.
|
||||
*
|
||||
* The source file must be compliant with all
|
||||
* [`isolatedDeclarations`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-5.html#isolated-declarations)
|
||||
* requirements.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
declaration?: IsolatedDeclarationsOptions;
|
||||
/**
|
||||
* Rewrite or remove TypeScript import/export declaration extensions.
|
||||
*
|
||||
* - When set to `rewrite`, it will change `.ts`, `.mts`, `.cts` extensions to `.js`, `.mjs`, `.cjs` respectively.
|
||||
* - When set to `remove`, it will remove `.ts`/`.mts`/`.cts`/`.tsx` extension entirely.
|
||||
* - When set to `true`, it's equivalent to `rewrite`.
|
||||
* - When set to `false` or omitted, no changes will be made to the extensions.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
rewriteImportExtensions?: 'rewrite' | 'remove' | boolean;
|
||||
}
|
||||
//#endregion
|
||||
export { TransformOptions as t };
|
||||
90
node_modules/@nuxt/schema/dist/_chunks/libs/rollup-plugin-visualizer.d.mts
generated
vendored
Normal file
90
node_modules/@nuxt/schema/dist/_chunks/libs/rollup-plugin-visualizer.d.mts
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
//#region ../../node_modules/.pnpm/rollup-plugin-visualizer@6.0.5_rolldown@1.0.0-rc.3_rollup@4.57.1/node_modules/rollup-plugin-visualizer/dist/plugin/template-types.d.ts
|
||||
type TemplateType = "sunburst" | "treemap" | "network" | "raw-data" | "list" | "flamegraph";
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/rollup-plugin-visualizer@6.0.5_rolldown@1.0.0-rc.3_rollup@4.57.1/node_modules/rollup-plugin-visualizer/dist/shared/create-filter.d.ts
|
||||
type Filter = {
|
||||
bundle?: string | null | undefined;
|
||||
file?: string | null | undefined;
|
||||
};
|
||||
//#endregion
|
||||
//#region ../../node_modules/.pnpm/rollup-plugin-visualizer@6.0.5_rolldown@1.0.0-rc.3_rollup@4.57.1/node_modules/rollup-plugin-visualizer/dist/plugin/index.d.ts
|
||||
interface PluginVisualizerOptions {
|
||||
/**
|
||||
* The path to the template file to use. Or just a name of a file.
|
||||
*
|
||||
* @default "stats.html"
|
||||
*/
|
||||
filename?: string;
|
||||
/**
|
||||
* If plugin should emit json file with visualizer data. It can be used with plugin CLI
|
||||
*
|
||||
* @default false
|
||||
* @deprecated use template 'raw-data'
|
||||
*/
|
||||
json?: boolean;
|
||||
/**
|
||||
* HTML <title> value in generated file. Ignored when `json` is true.
|
||||
*
|
||||
* @default "Rollup Visualizer"
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* If plugin should open browser with generated file. Ignored when `json` or `emitFile` is true.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
open?: boolean;
|
||||
openOptions?: OpenOptions;
|
||||
/**
|
||||
* Which diagram to generate. 'sunburst' or 'treemap' can help find big dependencies or if they are repeated.
|
||||
* 'network' can answer you why something was included.
|
||||
* 'flamegraph' will be familar to tools that you know already.
|
||||
*
|
||||
* @default 'treemap'
|
||||
*/
|
||||
template?: TemplateType;
|
||||
/**
|
||||
* If plugin should also calculate sizes of gzipped files.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
gzipSize?: boolean;
|
||||
/**
|
||||
* If plugin should also calculate sizes of brotlied files.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
brotliSize?: boolean;
|
||||
/**
|
||||
* If plugin should use sourcemap to calculate sizes of modules. By idea it will present more accurate results.
|
||||
* `gzipSize` and `brotliSize` does not make much sense with this option.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
sourcemap?: boolean;
|
||||
/**
|
||||
* Absolute path where project is located. It is used to cut prefix from file's paths.
|
||||
*
|
||||
* @default process.cwd()
|
||||
*/
|
||||
projectRoot?: string | RegExp;
|
||||
/**
|
||||
* Use rollup .emitFile API to generate files. Could be usefull if you want to output to configured by rollup output dir.
|
||||
* When this set to true, filename options must be filename and not a path.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
emitFile?: boolean;
|
||||
/**
|
||||
* A valid picomatch pattern, or array of patterns. If options.include is omitted or has zero length, filter will return true by
|
||||
* default. Otherwise, an ID must match one or more of the picomatch patterns, and must not match any of the options.exclude patterns.
|
||||
*/
|
||||
include?: Filter | Filter[];
|
||||
/**
|
||||
* A valid picomatch pattern, or array of patterns. If options.include is omitted or has zero length, filter will return true by
|
||||
* default. Otherwise, an ID must match one or more of the picomatch patterns, and must not match any of the options.exclude patterns.
|
||||
*/
|
||||
exclude?: Filter | Filter[];
|
||||
}
|
||||
//#endregion
|
||||
export { PluginVisualizerOptions as t };
|
||||
15
node_modules/@nuxt/schema/dist/_chunks/libs/scule.d.mts
generated
vendored
Normal file
15
node_modules/@nuxt/schema/dist/_chunks/libs/scule.d.mts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
//#region ../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.d.ts
|
||||
type Splitter = "-" | "_" | "/" | ".";
|
||||
type FirstOfString<S extends string> = S extends `${infer F}${string}` ? F : never;
|
||||
type RemoveFirstOfString<S extends string> = S extends `${string}${infer R}` ? R : never;
|
||||
type IsUpper<S extends string> = S extends Uppercase<S> ? true : false;
|
||||
type IsLower<S extends string> = S extends Lowercase<S> ? true : false;
|
||||
type SameLetterCase<X extends string, Y extends string> = IsUpper<X> extends IsUpper<Y> ? true : IsLower<X> extends IsLower<Y> ? true : false;
|
||||
type JoinLowercaseWords<T extends readonly string[], Joiner extends string, Accumulator extends string = ""> = T extends readonly [infer F extends string, ...infer R extends string[]] ? Accumulator extends "" ? JoinLowercaseWords<R, Joiner, `${Accumulator}${Lowercase<F>}`> : JoinLowercaseWords<R, Joiner, `${Accumulator}${Joiner}${Lowercase<F>}`> : Accumulator;
|
||||
type LastOfArray<T extends any[]> = T extends [...any, infer R] ? R : never;
|
||||
type RemoveLastOfArray<T extends any[]> = T extends [...infer F, any] ? F : never;
|
||||
type SplitByCase<T, Separator extends string = Splitter, Accumulator extends unknown[] = []> = string extends Separator ? string[] : T extends `${infer F}${infer R}` ? [LastOfArray<Accumulator>] extends [never] ? SplitByCase<R, Separator, [F]> : LastOfArray<Accumulator> extends string ? R extends "" ? SplitByCase<R, Separator, [...RemoveLastOfArray<Accumulator>, `${LastOfArray<Accumulator>}${F}`]> : SameLetterCase<F, FirstOfString<R>> extends true ? F extends Separator ? FirstOfString<R> extends Separator ? SplitByCase<R, Separator, [...Accumulator, ""]> : IsUpper<FirstOfString<R>> extends true ? SplitByCase<RemoveFirstOfString<R>, Separator, [...Accumulator, FirstOfString<R>]> : SplitByCase<R, Separator, [...Accumulator, ""]> : SplitByCase<R, Separator, [...RemoveLastOfArray<Accumulator>, `${LastOfArray<Accumulator>}${F}`]> : IsLower<F> extends true ? SplitByCase<RemoveFirstOfString<R>, Separator, [...RemoveLastOfArray<Accumulator>, `${LastOfArray<Accumulator>}${F}`, FirstOfString<R>]> : SplitByCase<R, Separator, [...Accumulator, F]> : never : Accumulator extends [] ? T extends "" ? [] : string[] : Accumulator;
|
||||
type JoinByCase<T, Joiner extends string> = string extends T ? string : string[] extends T ? string : T extends string ? SplitByCase<T> extends readonly string[] ? JoinLowercaseWords<SplitByCase<T>, Joiner> : never : T extends readonly string[] ? JoinLowercaseWords<T, Joiner> : never;
|
||||
type SnakeCase<T extends string | readonly string[]> = JoinByCase<T, "_">;
|
||||
//#endregion
|
||||
export { SnakeCase as t };
|
||||
26
node_modules/@nuxt/schema/dist/_chunks/libs/unctx.d.mts
generated
vendored
Normal file
26
node_modules/@nuxt/schema/dist/_chunks/libs/unctx.d.mts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
//#region ../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/transform.d.ts
|
||||
interface TransformerOptions {
|
||||
/**
|
||||
* The function names to be transformed.
|
||||
*
|
||||
* @default ['withAsyncContext']
|
||||
*/
|
||||
asyncFunctions?: string[];
|
||||
/**
|
||||
* @default 'unctx'
|
||||
*/
|
||||
helperModule?: string;
|
||||
/**
|
||||
* @default 'executeAsync'
|
||||
*/
|
||||
helperName?: string;
|
||||
/**
|
||||
* Whether to transform properties of an object defined with a helper function. For example,
|
||||
* to transform key `middleware` within the object defined with function `defineMeta`, you would pass:
|
||||
* `{ defineMeta: ['middleware'] }`.
|
||||
* @default {}
|
||||
*/
|
||||
objectDefinitions?: Record<string, string[]>;
|
||||
}
|
||||
//#endregion
|
||||
export { TransformerOptions as t };
|
||||
386
node_modules/@nuxt/schema/dist/_chunks/libs/unimport.d.mts
generated
vendored
Normal file
386
node_modules/@nuxt/schema/dist/_chunks/libs/unimport.d.mts
generated
vendored
Normal file
@@ -0,0 +1,386 @@
|
||||
import { V as MagicString } from "./@vitejs/plugin-vue-jsx.mjs";
|
||||
import { t as ESMExport } from "./mlly.mjs";
|
||||
|
||||
//#region ../../node_modules/.pnpm/unimport@5.6.0/node_modules/unimport/dist/shared/unimport.C0UbTDPO.d.mts
|
||||
declare const builtinPresets: {
|
||||
'@vue/composition-api': InlinePreset;
|
||||
'@vueuse/core': () => Preset;
|
||||
'@vueuse/head': InlinePreset;
|
||||
pinia: InlinePreset;
|
||||
preact: InlinePreset;
|
||||
quasar: InlinePreset;
|
||||
react: InlinePreset;
|
||||
'react-router': InlinePreset;
|
||||
'react-router-dom': InlinePreset;
|
||||
svelte: InlinePreset;
|
||||
'svelte/animate': InlinePreset;
|
||||
'svelte/easing': InlinePreset;
|
||||
'svelte/motion': InlinePreset;
|
||||
'svelte/store': InlinePreset;
|
||||
'svelte/transition': InlinePreset;
|
||||
'vee-validate': InlinePreset;
|
||||
vitepress: InlinePreset;
|
||||
'vue-demi': InlinePreset;
|
||||
'vue-i18n': InlinePreset;
|
||||
'vue-router': InlinePreset;
|
||||
'vue-router-composables': InlinePreset;
|
||||
vue: InlinePreset;
|
||||
'vue/macros': InlinePreset;
|
||||
vuex: InlinePreset;
|
||||
vitest: InlinePreset;
|
||||
'uni-app': InlinePreset;
|
||||
'solid-js': InlinePreset;
|
||||
'solid-app-router': InlinePreset;
|
||||
rxjs: InlinePreset;
|
||||
'date-fns': InlinePreset;
|
||||
};
|
||||
type BuiltinPresetName = keyof typeof builtinPresets;
|
||||
type ModuleId = string;
|
||||
type ImportName = string;
|
||||
interface ImportCommon {
|
||||
/** Module specifier to import from */
|
||||
from: ModuleId;
|
||||
/**
|
||||
* Priority of the import, if multiple imports have the same name, the one with the highest priority will be used
|
||||
* @default 1
|
||||
*/
|
||||
priority?: number;
|
||||
/** If this import is disabled */
|
||||
disabled?: boolean;
|
||||
/** Won't output import in declaration file if true */
|
||||
dtsDisabled?: boolean;
|
||||
/** Import declaration type like const / var / enum */
|
||||
declarationType?: ESMExport['declarationType'];
|
||||
/**
|
||||
* Metadata of the import
|
||||
*/
|
||||
meta?: {
|
||||
/** Short description of the import */description?: string; /** URL to the documentation */
|
||||
docsUrl?: string; /** Additional metadata */
|
||||
[key: string]: any;
|
||||
};
|
||||
/**
|
||||
* If this import is a pure type import
|
||||
*/
|
||||
type?: boolean;
|
||||
/**
|
||||
* Using this as the from when generating type declarations
|
||||
*/
|
||||
typeFrom?: ModuleId;
|
||||
}
|
||||
interface Import extends ImportCommon {
|
||||
/** Import name to be detected */
|
||||
name: ImportName;
|
||||
/** Import as this name */
|
||||
as?: ImportName;
|
||||
/**
|
||||
* With properties
|
||||
*
|
||||
* Ignored for CJS imports.
|
||||
*/
|
||||
with?: Record<string, string>;
|
||||
}
|
||||
type PresetImport = Omit<Import, 'from'> | ImportName | [name: ImportName, as?: ImportName, from?: ModuleId];
|
||||
interface InlinePreset extends ImportCommon {
|
||||
imports: (PresetImport | InlinePreset)[];
|
||||
}
|
||||
/**
|
||||
* Auto extract exports from a package for auto import
|
||||
*/
|
||||
interface PackagePreset {
|
||||
/**
|
||||
* Name of the package
|
||||
*/
|
||||
package: string;
|
||||
/**
|
||||
* Path of the importer
|
||||
* @default process.cwd()
|
||||
*/
|
||||
url?: string;
|
||||
/**
|
||||
* RegExp, string, or custom function to exclude names of the extracted imports
|
||||
*/
|
||||
ignore?: (string | RegExp | ((name: string) => boolean))[];
|
||||
/**
|
||||
* Use local cache if exits
|
||||
* @default true
|
||||
*/
|
||||
cache?: boolean;
|
||||
}
|
||||
type Preset = InlinePreset | PackagePreset;
|
||||
interface UnimportContext {
|
||||
readonly version: string;
|
||||
options: Partial<UnimportOptions>;
|
||||
staticImports: Import[];
|
||||
dynamicImports: Import[];
|
||||
addons: Addon[];
|
||||
getImports: () => Promise<Import[]>;
|
||||
getImportMap: () => Promise<Map<string, Import>>;
|
||||
getMetadata: () => UnimportMeta | undefined;
|
||||
modifyDynamicImports: (fn: (imports: Import[]) => Thenable<void | Import[]>) => Promise<void>;
|
||||
clearDynamicImports: () => void;
|
||||
replaceImports: (imports: UnimportOptions['imports']) => Promise<Import[]>;
|
||||
invalidate: () => void;
|
||||
resolveId: (id: string, parentId?: string) => Thenable<string | null | undefined | void>;
|
||||
}
|
||||
interface DetectImportResult {
|
||||
s: MagicString;
|
||||
strippedCode: string;
|
||||
isCJSContext: boolean;
|
||||
matchedImports: Import[];
|
||||
firstOccurrence: number;
|
||||
}
|
||||
interface Unimport {
|
||||
readonly version: string;
|
||||
init: () => Promise<void>;
|
||||
clearDynamicImports: UnimportContext['clearDynamicImports'];
|
||||
getImportMap: UnimportContext['getImportMap'];
|
||||
getImports: UnimportContext['getImports'];
|
||||
getInternalContext: () => UnimportContext;
|
||||
getMetadata: UnimportContext['getMetadata'];
|
||||
modifyDynamicImports: UnimportContext['modifyDynamicImports'];
|
||||
generateTypeDeclarations: (options?: TypeDeclarationOptions) => Promise<string>;
|
||||
/**
|
||||
* Get un-imported usages from code
|
||||
*/
|
||||
detectImports: (code: string | MagicString) => Promise<DetectImportResult>;
|
||||
/**
|
||||
* Insert missing imports statements to code
|
||||
*/
|
||||
injectImports: (code: string | MagicString, id?: string, options?: InjectImportsOptions) => Promise<ImportInjectionResult>;
|
||||
scanImportsFromDir: (dir?: (string | ScanDir)[], options?: ScanDirExportsOptions) => Promise<Import[]>;
|
||||
scanImportsFromFile: (file: string, includeTypes?: boolean) => Promise<Import[]>;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
toExports: (filepath?: string, includeTypes?: boolean) => Promise<string>;
|
||||
}
|
||||
interface InjectionUsageRecord {
|
||||
import: Import;
|
||||
count: number;
|
||||
moduleIds: string[];
|
||||
}
|
||||
interface UnimportMeta {
|
||||
injectionUsage: Record<string, InjectionUsageRecord>;
|
||||
}
|
||||
interface AddonsOptions {
|
||||
addons?: Addon[];
|
||||
/**
|
||||
* Enable auto import inside for Vue's <template>
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
vueTemplate?: boolean;
|
||||
/**
|
||||
* Enable auto import directives for Vue's SFC.
|
||||
*
|
||||
* Library authors should include `meta.vueDirective: true` in the import metadata.
|
||||
*
|
||||
* When using a local directives folder, provide the `isDirective`
|
||||
* callback to check if the import is a Vue directive.
|
||||
*/
|
||||
vueDirectives?: true | AddonVueDirectivesOptions;
|
||||
}
|
||||
interface AddonVueDirectivesOptions {
|
||||
/**
|
||||
* Checks if the import is a Vue directive.
|
||||
*
|
||||
* **NOTES**:
|
||||
* - imports from a library should include `meta.vueDirective: true`.
|
||||
* - this callback is only invoked for local directives (only when meta.vueDirective is not set).
|
||||
*
|
||||
* @param from The path of the import normalized.
|
||||
* @param importEntry The import entry.
|
||||
*/
|
||||
isDirective?: (from: string, importEntry: Import) => boolean;
|
||||
}
|
||||
interface UnimportOptions extends Pick<InjectImportsOptions, 'injectAtEnd' | 'mergeExisting' | 'parser'> {
|
||||
/**
|
||||
* Auto import items
|
||||
*/
|
||||
imports: Import[];
|
||||
/**
|
||||
* Auto import preset
|
||||
*/
|
||||
presets: (Preset | BuiltinPresetName)[];
|
||||
/**
|
||||
* Custom warning function
|
||||
* @default console.warn
|
||||
*/
|
||||
warn: (msg: string) => void;
|
||||
/**
|
||||
* Custom debug log function
|
||||
* @default console.log
|
||||
*/
|
||||
debugLog: (msg: string) => void;
|
||||
/**
|
||||
* Unimport Addons.
|
||||
* To use built-in addons, use:
|
||||
* ```js
|
||||
* addons: {
|
||||
* addons: [<custom-addons-here>] // if you want to use also custom addons
|
||||
* vueTemplate: true,
|
||||
* vueDirectives: [<the-directives-here>]
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* Built-in addons:
|
||||
* - vueDirectives: enable auto import directives for Vue's SFC
|
||||
* - vueTemplate: enable auto import inside for Vue's <template>
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
addons: AddonsOptions | Addon[];
|
||||
/**
|
||||
* Name of virtual modules that exposed all the registed auto-imports
|
||||
* @default []
|
||||
*/
|
||||
virtualImports: string[];
|
||||
/**
|
||||
* Directories to scan for auto import
|
||||
* @default []
|
||||
*/
|
||||
dirs?: (string | ScanDir)[];
|
||||
/**
|
||||
* Options for scanning directories for auto import
|
||||
*/
|
||||
dirsScanOptions?: ScanDirExportsOptions;
|
||||
/**
|
||||
* Custom resolver to auto import id
|
||||
*/
|
||||
resolveId?: (id: string, importee?: string) => Thenable<string | void>;
|
||||
/**
|
||||
* Custom magic comments to be opt-out for auto import, per file/module
|
||||
*
|
||||
* @default ['@unimport-disable', '@imports-disable']
|
||||
*/
|
||||
commentsDisable?: string[];
|
||||
/**
|
||||
* Custom magic comments to debug auto import, printed to console
|
||||
*
|
||||
* @default ['@unimport-debug', '@imports-debug']
|
||||
*/
|
||||
commentsDebug?: string[];
|
||||
/**
|
||||
* Collect meta data for each auto import. Accessible via `ctx.meta`
|
||||
*/
|
||||
collectMeta?: boolean;
|
||||
}
|
||||
type PathFromResolver = (_import: Import) => string | undefined;
|
||||
interface ScanDirExportsOptions {
|
||||
/**
|
||||
* Glob patterns for matching files
|
||||
*
|
||||
* @default ['*.{ts,js,mjs,cjs,mts,cts,tsx,jsx}']
|
||||
*/
|
||||
filePatterns?: string[];
|
||||
/**
|
||||
* Custom function to filter scanned files
|
||||
*/
|
||||
fileFilter?: (file: string) => boolean;
|
||||
/**
|
||||
* Register type exports
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
types?: boolean;
|
||||
/**
|
||||
* Current working directory
|
||||
*
|
||||
* @default process.cwd()
|
||||
*/
|
||||
cwd?: string;
|
||||
}
|
||||
interface ScanDir {
|
||||
/**
|
||||
* Path pattern of the directory
|
||||
*/
|
||||
glob: string;
|
||||
/**
|
||||
* Register type exports
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
types?: boolean;
|
||||
}
|
||||
interface TypeDeclarationOptions {
|
||||
/**
|
||||
* Custom resolver for path of the import
|
||||
*/
|
||||
resolvePath?: PathFromResolver;
|
||||
/**
|
||||
* Append `export {}` to the end of the file
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
exportHelper?: boolean;
|
||||
/**
|
||||
* Auto-import for type exports
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
typeReExports?: boolean;
|
||||
}
|
||||
interface InjectImportsOptions {
|
||||
/**
|
||||
* Merge the existing imports
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
mergeExisting?: boolean;
|
||||
/**
|
||||
* If the module should be auto imported
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
autoImport?: boolean;
|
||||
/**
|
||||
* If the module should be transformed for virtual modules.
|
||||
* Only available when `virtualImports` is set.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
transformVirtualImports?: boolean;
|
||||
/**
|
||||
* Parser to use for parsing the code
|
||||
*
|
||||
* Note that `acorn` only takes valid JS Code, should usually only be used after transformationa and transpilation
|
||||
*
|
||||
* @default 'regex'
|
||||
*/
|
||||
parser?: 'acorn' | 'regex';
|
||||
/**
|
||||
* Inject the imports at the end of other imports
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
injectAtEnd?: boolean;
|
||||
}
|
||||
type Thenable<T> = Promise<T> | T;
|
||||
interface Addon {
|
||||
name?: string;
|
||||
transform?: (this: UnimportContext, code: MagicString, id: string | undefined) => Thenable<MagicString>;
|
||||
declaration?: (this: UnimportContext, dts: string, options: TypeDeclarationOptions) => Thenable<string>;
|
||||
matchImports?: (this: UnimportContext, identifiers: Set<string>, matched: Import[]) => Thenable<Import[] | void>;
|
||||
/**
|
||||
* Extend or modify the imports list before injecting
|
||||
*/
|
||||
extendImports?: (this: UnimportContext, imports: Import[]) => Import[] | void;
|
||||
/**
|
||||
* Resolve imports before injecting
|
||||
*/
|
||||
injectImportsResolved?: (this: UnimportContext, imports: Import[], code: MagicString, id?: string) => Import[] | void;
|
||||
/**
|
||||
* Modify the injection code before injecting
|
||||
*/
|
||||
injectImportsStringified?: (this: UnimportContext, injection: string, imports: Import[], code: MagicString, id?: string) => string | void;
|
||||
}
|
||||
interface MagicStringResult {
|
||||
s: MagicString;
|
||||
code: string;
|
||||
}
|
||||
interface ImportInjectionResult extends MagicStringResult {
|
||||
imports: Import[];
|
||||
}
|
||||
//#endregion
|
||||
export { type UnimportOptions as i, type InlinePreset as n, type Unimport as r, type Import as t };
|
||||
44
node_modules/@nuxt/schema/dist/_chunks/libs/untyped.d.mts
generated
vendored
Normal file
44
node_modules/@nuxt/schema/dist/_chunks/libs/untyped.d.mts
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
//#region ../../node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.kR35CG5k.d.mts
|
||||
type JSValue = string | number | bigint | boolean | symbol | Function | Array<any> | undefined | object | null;
|
||||
type JSType = "string" | "number" | "bigint" | "boolean" | "symbol" | "function" | "object" | "any" | "array";
|
||||
type ResolveFn = (value: unknown, get: (key: string) => Promise<unknown>) => JSValue | Promise<JSValue>;
|
||||
interface TypeDescriptor {
|
||||
/** Used internally to handle schema types */
|
||||
type?: JSType | JSType[];
|
||||
/** Fully resolved correct TypeScript type for generated TS declarations */
|
||||
tsType?: string;
|
||||
/** Human-readable type description for use in generated documentation */
|
||||
markdownType?: string;
|
||||
items?: TypeDescriptor | TypeDescriptor[];
|
||||
}
|
||||
interface FunctionArg extends TypeDescriptor {
|
||||
name?: string;
|
||||
default?: JSValue;
|
||||
optional?: boolean;
|
||||
}
|
||||
interface Schema extends TypeDescriptor {
|
||||
id?: string;
|
||||
default?: JSValue;
|
||||
resolve?: ResolveFn;
|
||||
properties?: {
|
||||
[key: string]: Schema;
|
||||
};
|
||||
required?: string[];
|
||||
title?: string;
|
||||
description?: string;
|
||||
$schema?: string;
|
||||
tags?: string[];
|
||||
args?: FunctionArg[];
|
||||
returns?: TypeDescriptor;
|
||||
}
|
||||
interface InputObject {
|
||||
$schema?: Schema;
|
||||
$resolve?: ResolveFn;
|
||||
$default?: any;
|
||||
[key: string]: JSValue | InputObject;
|
||||
}
|
||||
type SchemaDefinition = {
|
||||
[x: string]: JSValue | InputObject;
|
||||
};
|
||||
//#endregion
|
||||
export { Schema as n, SchemaDefinition as r, InputObject as t };
|
||||
24
node_modules/@nuxt/schema/dist/_chunks/libs/vue-bundle-renderer.d.mts
generated
vendored
Normal file
24
node_modules/@nuxt/schema/dist/_chunks/libs/vue-bundle-renderer.d.mts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
//#region ../../node_modules/.pnpm/vue-bundle-renderer@2.2.0/node_modules/vue-bundle-renderer/dist/shared/vue-bundle-renderer.lFgxeLN7.d.ts
|
||||
interface ResourceMeta {
|
||||
src?: string;
|
||||
file: string;
|
||||
css?: string[];
|
||||
assets?: string[];
|
||||
isEntry?: boolean;
|
||||
name?: string;
|
||||
names?: string[];
|
||||
isDynamicEntry?: boolean;
|
||||
sideEffects?: boolean;
|
||||
imports?: string[];
|
||||
dynamicImports?: string[];
|
||||
module?: boolean;
|
||||
prefetch?: boolean;
|
||||
preload?: boolean;
|
||||
resourceType?: 'audio' | 'document' | 'embed' | 'fetch' | 'font' | 'image' | 'object' | 'script' | 'style' | 'track' | 'worker' | 'video';
|
||||
mimeType?: string;
|
||||
}
|
||||
interface Manifest {
|
||||
[key: string]: ResourceMeta;
|
||||
}
|
||||
//#endregion
|
||||
export { Manifest as t };
|
||||
32
node_modules/@nuxt/schema/dist/_chunks/libs/vue-loader.d.mts
generated
vendored
Normal file
32
node_modules/@nuxt/schema/dist/_chunks/libs/vue-loader.d.mts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { E as CompilerOptions } from "./@unhead/vue.mjs";
|
||||
import { b as TemplateCompiler, h as SFCTemplateCompileOptions, u as SFCScriptCompileOptions } from "./@vitejs/plugin-vue-jsx.mjs";
|
||||
|
||||
//#region ../../node_modules/.pnpm/vue-loader@17.4.2_@vue+compiler-sfc@3.5.27_vue@3.5.27_typescript@5.9.3__webpack@5.104.1_esbuild@0.27.3_/node_modules/vue-loader/dist/index.d.ts
|
||||
interface VueLoaderOptions {
|
||||
babelParserPlugins?: SFCScriptCompileOptions['babelParserPlugins'];
|
||||
transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls'];
|
||||
compiler?: TemplateCompiler | string;
|
||||
compilerOptions?: CompilerOptions;
|
||||
/**
|
||||
* TODO remove in 3.4
|
||||
* @deprecated
|
||||
*/
|
||||
reactivityTransform?: boolean;
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
propsDestructure?: boolean;
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
defineModel?: boolean;
|
||||
customElement?: boolean | RegExp;
|
||||
hotReload?: boolean;
|
||||
exposeFilename?: boolean;
|
||||
appendExtension?: boolean;
|
||||
enableTsInTemplate?: boolean;
|
||||
experimentalInlineMatchResource?: boolean;
|
||||
isServerBuild?: boolean;
|
||||
}
|
||||
//#endregion
|
||||
export { VueLoaderOptions as t };
|
||||
1413
node_modules/@nuxt/schema/dist/_chunks/libs/vue-router.d.mts
generated
vendored
Normal file
1413
node_modules/@nuxt/schema/dist/_chunks/libs/vue-router.d.mts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
node_modules/@nuxt/schema/dist/_chunks/libs/webpack-dev-middleware.d.mts
generated
vendored
Normal file
2
node_modules/@nuxt/schema/dist/_chunks/libs/webpack-dev-middleware.d.mts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "http";
|
||||
import "fs";
|
||||
12
node_modules/@nuxt/schema/dist/_chunks/rolldown-runtime.mjs
generated
vendored
Normal file
12
node_modules/@nuxt/schema/dist/_chunks/rolldown-runtime.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import "node:module";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __exportAll = (all, no_symbols) => {
|
||||
let target = {};
|
||||
for (var name in all) __defProp(target, name, {
|
||||
get: all[name],
|
||||
enumerable: true
|
||||
});
|
||||
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
||||
return target;
|
||||
};
|
||||
export { __exportAll as t };
|
||||
301
node_modules/@nuxt/schema/dist/builder-env.d.mts
generated
vendored
Normal file
301
node_modules/@nuxt/schema/dist/builder-env.d.mts
generated
vendored
Normal file
@@ -0,0 +1,301 @@
|
||||
//#region src/types/builder-env/vite.d.ts
|
||||
/**
|
||||
* Reference: https://github.com/vitejs/vite/blob/main/packages/vite/types/importMeta.d.ts
|
||||
*/
|
||||
type ModuleNamespace = Record<string, any> & {
|
||||
[Symbol.toStringTag]: "Module";
|
||||
};
|
||||
interface ViteHot {
|
||||
readonly data: any;
|
||||
accept(): void;
|
||||
accept(cb: (mod: ModuleNamespace | undefined) => void): void;
|
||||
accept(dep: string, cb: (mod: ModuleNamespace | undefined) => void): void;
|
||||
accept(deps: readonly string[], cb: (mods: Array<ModuleNamespace | undefined>) => void): void;
|
||||
acceptExports(exportNames: string | readonly string[], cb?: (mod: ModuleNamespace | undefined) => void): void;
|
||||
dispose(cb: (data: any) => void): void;
|
||||
prune(cb: (data: any) => void): void;
|
||||
invalidate(message?: string): void;
|
||||
on(event: any, cb: (payload: any) => void): void;
|
||||
send(event: any, data?: any): void;
|
||||
}
|
||||
interface KnownAsTypeMap {
|
||||
raw: string;
|
||||
url: string;
|
||||
worker: Worker;
|
||||
}
|
||||
interface ImportGlobOptions<Eager extends boolean, AsType extends string> {
|
||||
/**
|
||||
* Import type for the import url.
|
||||
*/
|
||||
as?: AsType;
|
||||
/**
|
||||
* Import as static or dynamic
|
||||
*/
|
||||
eager?: Eager;
|
||||
/**
|
||||
* Import only the specific named export. Set to `default` to import the default export.
|
||||
*/
|
||||
import?: string;
|
||||
/**
|
||||
* Custom queries
|
||||
*/
|
||||
query?: string | Record<string, string | number | boolean>;
|
||||
/**
|
||||
* Search files also inside `node_modules/` and hidden directories (e.g. `.git/`). This might have impact on performance.
|
||||
*/
|
||||
exhaustive?: boolean;
|
||||
}
|
||||
interface ImportGlobFunction {
|
||||
/**
|
||||
* Import a list of files with a glob pattern.
|
||||
*
|
||||
* Overload 1: No generic provided, infer the type from `eager` and `as`
|
||||
*/
|
||||
<Eager extends boolean, As extends string, T = (As extends keyof KnownAsTypeMap ? KnownAsTypeMap[As] : unknown)>(glob: string | string[], options?: ImportGlobOptions<Eager, As>): (Eager extends true ? true : false) extends true ? Record<string, T> : Record<string, () => Promise<T>>;
|
||||
/**
|
||||
* Import a list of files with a glob pattern.
|
||||
*
|
||||
* Overload 2: Module generic provided, infer the type from `eager: false`
|
||||
*/
|
||||
<M>(glob: string | string[], options?: ImportGlobOptions<false, string>): Record<string, () => Promise<M>>;
|
||||
/**
|
||||
* Import a list of files with a glob pattern.
|
||||
*
|
||||
* Overload 3: Module generic provided, infer the type from `eager: true`
|
||||
*/
|
||||
<M>(glob: string | string[], options: ImportGlobOptions<true, string>): Record<string, M>;
|
||||
}
|
||||
interface ImportGlobEagerFunction {
|
||||
/**
|
||||
* Eagerly import a list of files with a glob pattern.
|
||||
*
|
||||
* Overload 1: No generic provided, infer the type from `as`
|
||||
*/
|
||||
<As extends string, T = (As extends keyof KnownAsTypeMap ? KnownAsTypeMap[As] : unknown)>(glob: string | string[], options?: Omit<ImportGlobOptions<boolean, As>, "eager">): Record<string, T>;
|
||||
/**
|
||||
* Eagerly import a list of files with a glob pattern.
|
||||
*
|
||||
* Overload 2: Module generic provided
|
||||
*/
|
||||
<M>(glob: string | string[], options?: Omit<ImportGlobOptions<boolean, string>, "eager">): Record<string, M>;
|
||||
}
|
||||
interface ViteImportMeta {
|
||||
/** Vite client HMR API - see https://vite.dev/guide/api-hmr */
|
||||
readonly hot?: ViteHot;
|
||||
/** vite glob import utility - https://vite.dev/guide/features.html#glob-import */
|
||||
glob: ImportGlobFunction;
|
||||
/**
|
||||
* @deprecated Use `import.meta.glob('*', { eager: true })` instead
|
||||
*/
|
||||
globEager: ImportGlobEagerFunction;
|
||||
}
|
||||
//#endregion
|
||||
//#region src/types/builder-env/webpack.d.ts
|
||||
/**
|
||||
* Reference: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/webpack-env/index.d.ts
|
||||
*/
|
||||
type WebpackModuleId = string | number;
|
||||
interface HotNotifierInfo {
|
||||
type: "self-declined" | "declined" | "unaccepted" | "accepted" | "disposed" | "accept-errored" | "self-accept-errored" | "self-accept-error-handler-errored";
|
||||
/**
|
||||
* The module in question.
|
||||
*/
|
||||
moduleId: number;
|
||||
/**
|
||||
* For errors: the module id owning the accept handler.
|
||||
*/
|
||||
dependencyId?: number | undefined;
|
||||
/**
|
||||
* For declined/accepted/unaccepted: the chain from where the update was propagated.
|
||||
*/
|
||||
chain?: number[] | undefined;
|
||||
/**
|
||||
* For declined: the module id of the declining parent
|
||||
*/
|
||||
parentId?: number | undefined;
|
||||
/**
|
||||
* For accepted: the modules that are outdated and will be disposed
|
||||
*/
|
||||
outdatedModules?: number[] | undefined;
|
||||
/**
|
||||
* For accepted: The location of accept handlers that will handle the update
|
||||
*/
|
||||
outdatedDependencies?: {
|
||||
[dependencyId: number]: number[];
|
||||
} | undefined;
|
||||
/**
|
||||
* For errors: the thrown error
|
||||
*/
|
||||
error?: Error | undefined;
|
||||
/**
|
||||
* For self-accept-error-handler-errored: the error thrown by the module
|
||||
* before the error handler tried to handle it.
|
||||
*/
|
||||
originalError?: Error | undefined;
|
||||
}
|
||||
interface AcceptOptions {
|
||||
/**
|
||||
* If true the update process continues even if some modules are not accepted (and would bubble to the entry point).
|
||||
*/
|
||||
ignoreUnaccepted?: boolean | undefined;
|
||||
/**
|
||||
* Ignore changes made to declined modules.
|
||||
*/
|
||||
ignoreDeclined?: boolean | undefined;
|
||||
/**
|
||||
* Ignore errors throw in accept handlers, error handlers and while reevaluating module.
|
||||
*/
|
||||
ignoreErrored?: boolean | undefined;
|
||||
/**
|
||||
* Notifier for declined modules.
|
||||
*/
|
||||
onDeclined?: ((info: HotNotifierInfo) => void) | undefined;
|
||||
/**
|
||||
* Notifier for unaccepted modules.
|
||||
*/
|
||||
onUnaccepted?: ((info: HotNotifierInfo) => void) | undefined;
|
||||
/**
|
||||
* Notifier for accepted modules.
|
||||
*/
|
||||
onAccepted?: ((info: HotNotifierInfo) => void) | undefined;
|
||||
/**
|
||||
* Notifier for disposed modules.
|
||||
*/
|
||||
onDisposed?: ((info: HotNotifierInfo) => void) | undefined;
|
||||
/**
|
||||
* Notifier for errors.
|
||||
*/
|
||||
onErrored?: ((info: HotNotifierInfo) => void) | undefined;
|
||||
/**
|
||||
* Indicates that apply() is automatically called by check function
|
||||
*/
|
||||
autoApply?: boolean | undefined;
|
||||
}
|
||||
interface WebpackHot {
|
||||
/**
|
||||
* Accept code updates for the specified dependencies. The callback is called when dependencies were replaced.
|
||||
* @param dependencies
|
||||
* @param callback
|
||||
* @param errorHandler
|
||||
*/
|
||||
accept(dependencies: string[], callback?: (updatedDependencies: WebpackModuleId[]) => void, errorHandler?: (err: Error) => void): void;
|
||||
/**
|
||||
* Accept code updates for the specified dependencies. The callback is called when dependencies were replaced.
|
||||
* @param dependency
|
||||
* @param callback
|
||||
* @param errorHandler
|
||||
*/
|
||||
accept(dependency: string, callback?: () => void, errorHandler?: (err: Error) => void): void;
|
||||
/**
|
||||
* Accept code updates for this module without notification of parents.
|
||||
* This should only be used if the module doesn’t export anything.
|
||||
* The errHandler can be used to handle errors that occur while loading the updated module.
|
||||
* @param errHandler
|
||||
*/
|
||||
accept(errHandler?: (err: Error) => void): void;
|
||||
/**
|
||||
* Do not accept updates for the specified dependencies. If any dependencies is updated, the code update fails with code "decline".
|
||||
*/
|
||||
decline(dependencies: string[]): void;
|
||||
/**
|
||||
* Do not accept updates for the specified dependencies. If any dependencies is updated, the code update fails with code "decline".
|
||||
*/
|
||||
decline(dependency: string): void;
|
||||
/**
|
||||
* Flag the current module as not update-able. If updated the update code would fail with code "decline".
|
||||
*/
|
||||
decline(): void;
|
||||
/**
|
||||
* Add a one time handler, which is executed when the current module code is replaced.
|
||||
* Here you should destroy/remove any persistent resource you have claimed/created.
|
||||
* If you want to transfer state to the new module, add it to data object.
|
||||
* The data will be available at module.hot.data on the new module.
|
||||
* @param callback
|
||||
*/
|
||||
dispose(callback: (data: any) => void): void;
|
||||
dispose(callback: <T>(data: T) => void): void;
|
||||
/**
|
||||
* Add a one time handler, which is executed when the current module code is replaced.
|
||||
* Here you should destroy/remove any persistent resource you have claimed/created.
|
||||
* If you want to transfer state to the new module, add it to data object.
|
||||
* The data will be available at module.hot.data on the new module.
|
||||
* @param callback
|
||||
*/
|
||||
addDisposeHandler(callback: (data: any) => void): void;
|
||||
addDisposeHandler<T>(callback: (data: T) => void): void;
|
||||
/**
|
||||
* Remove a handler.
|
||||
* This can useful to add a temporary dispose handler. You could i. e. replace code while in the middle of a multi-step async function.
|
||||
* @param callback
|
||||
*/
|
||||
removeDisposeHandler(callback: (data: any) => void): void;
|
||||
removeDisposeHandler<T>(callback: (data: T) => void): void;
|
||||
/**
|
||||
* Throws an exceptions if status() is not idle.
|
||||
* Check all currently loaded modules for updates and apply updates if found.
|
||||
* If no update was found, the callback is called with null.
|
||||
* If autoApply is truthy the callback will be called with all modules that were disposed.
|
||||
* apply() is automatically called with autoApply as options parameter.
|
||||
* If autoApply is not set the callback will be called with all modules that will be disposed on apply().
|
||||
* @param autoApply
|
||||
* @param callback
|
||||
*/
|
||||
check(autoApply: boolean, callback: (err: Error, outdatedModules: WebpackModuleId[]) => void): void;
|
||||
/**
|
||||
* Throws an exceptions if status() is not idle.
|
||||
* Check all currently loaded modules for updates and apply updates if found.
|
||||
* If no update was found, the callback is called with null.
|
||||
* The callback will be called with all modules that will be disposed on apply().
|
||||
* @param callback
|
||||
*/
|
||||
check(callback: (err: Error, outdatedModules: WebpackModuleId[]) => void): void;
|
||||
/**
|
||||
* If status() != "ready" it throws an error.
|
||||
* Continue the update process.
|
||||
* @param options
|
||||
* @param callback
|
||||
*/
|
||||
apply(options: AcceptOptions, callback: (err: Error, outdatedModules: WebpackModuleId[]) => void): void;
|
||||
/**
|
||||
* If status() != "ready" it throws an error.
|
||||
* Continue the update process.
|
||||
* @param callback
|
||||
*/
|
||||
apply(callback: (err: Error, outdatedModules: WebpackModuleId[]) => void): void;
|
||||
/**
|
||||
* Return one of idle, check, watch, watch-delay, prepare, ready, dispose, apply, abort or fail.
|
||||
*/
|
||||
status(): string;
|
||||
/** Register a callback on status change. */
|
||||
status(callback: (status: string) => void): void;
|
||||
/** Register a callback on status change. */
|
||||
addStatusHandler(callback: (status: string) => void): void;
|
||||
/**
|
||||
* Remove a registered status change handler.
|
||||
* @param callback
|
||||
*/
|
||||
removeStatusHandler(callback: (status: string) => void): void;
|
||||
active: boolean;
|
||||
data: any;
|
||||
}
|
||||
interface WebpackImportMeta {
|
||||
/** an alias for `module.hot` - see https://webpack.js.org/api/hot-module-replacement/ */
|
||||
webpackHot?: WebpackHot | undefined;
|
||||
/** the webpack major version as number */
|
||||
webpack?: number;
|
||||
}
|
||||
//#endregion
|
||||
//#region src/types/builder-env/index.d.ts
|
||||
type BundlerImportMeta = ViteImportMeta & WebpackImportMeta;
|
||||
//#endregion
|
||||
//#region src/builder-env.d.ts
|
||||
declare global {
|
||||
interface ImportMeta extends BundlerImportMeta {
|
||||
/** the `file:` url of the current file (similar to `__filename` but as file url) */
|
||||
url: string;
|
||||
readonly env: Record<string, string | boolean | undefined>;
|
||||
}
|
||||
}
|
||||
declare const builders: readonly ["vite", "webpack"];
|
||||
//#endregion
|
||||
export { builders };
|
||||
2
node_modules/@nuxt/schema/dist/builder-env.mjs
generated
vendored
Normal file
2
node_modules/@nuxt/schema/dist/builder-env.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
const builders = ["vite", "webpack"];
|
||||
export { builders };
|
||||
2888
node_modules/@nuxt/schema/dist/index.d.mts
generated
vendored
Normal file
2888
node_modules/@nuxt/schema/dist/index.d.mts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
958
node_modules/@nuxt/schema/dist/index.mjs
generated
vendored
Normal file
958
node_modules/@nuxt/schema/dist/index.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
70
node_modules/@nuxt/schema/node_modules/pathe/LICENSE
generated
vendored
Normal file
70
node_modules/@nuxt/schema/node_modules/pathe/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Pooya Parsa <pooya@pi0.io> - Daniel Roe <daniel@roe.dev>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
---
|
||||
|
||||
Copyright Joyent, Inc. and other Node contributors.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
persons to whom the Software is furnished to do so, subject to the
|
||||
following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
||||
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
---
|
||||
|
||||
Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2023-present Fabio Spampinato
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
73
node_modules/@nuxt/schema/node_modules/pathe/README.md
generated
vendored
Normal file
73
node_modules/@nuxt/schema/node_modules/pathe/README.md
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
# 🛣️ pathe
|
||||
|
||||
> Universal filesystem path utils
|
||||
|
||||
[![version][npm-v-src]][npm-v-href]
|
||||
[![downloads][npm-d-src]][npm-d-href]
|
||||
[![size][size-src]][size-href]
|
||||
|
||||
## ❓ Why
|
||||
|
||||
For [historical reasons](https://docs.microsoft.com/en-us/archive/blogs/larryosterman/why-is-the-dos-path-character), windows followed MS-DOS and used backslash for separating paths rather than slash used for macOS, Linux, and other Posix operating systems. Nowadays, [Windows](https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN) supports both Slash and Backslash for paths. [Node.js's built-in `path` module](https://nodejs.org/api/path.html) in the default operation of the path module varies based on the operating system on which a Node.js application is running. Specifically, when running on a Windows operating system, the path module will assume that Windows-style paths are being used. **This makes inconsistent code behavior between Windows and POSIX.**
|
||||
|
||||
Compared to popular [upath](https://github.com/anodynos/upath), pathe provides **identical exports** of Node.js with normalization on **all operations** and is written in modern **ESM/TypeScript** and has **no dependency on Node.js**!
|
||||
|
||||
This package is a drop-in replacement of the Node.js's [path module](https://nodejs.org/api/path.html) module and ensures paths are normalized with slash `/` and work in environments including Node.js.
|
||||
|
||||
## 💿 Usage
|
||||
|
||||
Install using npm or yarn:
|
||||
|
||||
```bash
|
||||
# npm
|
||||
npm i pathe
|
||||
|
||||
# yarn
|
||||
yarn add pathe
|
||||
|
||||
# pnpm
|
||||
pnpm i pathe
|
||||
```
|
||||
|
||||
Import:
|
||||
|
||||
```js
|
||||
// ESM / Typescript
|
||||
import { resolve, matchesGlob } from "pathe";
|
||||
|
||||
// CommonJS
|
||||
const { resolve, matchesGlob } = require("pathe");
|
||||
```
|
||||
|
||||
Read more about path utils from [Node.js documentation](https://nodejs.org/api/path.html) and rest assured behavior is consistently like POSIX regardless of your input paths format and running platform (the only exception is `delimiter` constant export, it will be set to `;` on windows platform).
|
||||
|
||||
### Extra utilities
|
||||
|
||||
Pathe exports some extra utilities that do not exist in standard Node.js [path module](https://nodejs.org/api/path.html).
|
||||
In order to use them, you can import from `pathe/utils` subpath:
|
||||
|
||||
```js
|
||||
import {
|
||||
filename,
|
||||
normalizeAliases,
|
||||
resolveAlias,
|
||||
reverseResolveAlias,
|
||||
} from "pathe/utils";
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Made with 💛 Published under the [MIT](./LICENSE) license.
|
||||
|
||||
Some code was used from the Node.js project. Glob supported is powered by [zeptomatch](https://github.com/fabiospampinato/zeptomatch).
|
||||
|
||||
<!-- Refs -->
|
||||
|
||||
[npm-v-src]: https://img.shields.io/npm/v/pathe?style=flat-square
|
||||
[npm-v-href]: https://npmjs.com/package/pathe
|
||||
[npm-d-src]: https://img.shields.io/npm/dm/pathe?style=flat-square
|
||||
[npm-d-href]: https://npmjs.com/package/pathe
|
||||
[github-actions-src]: https://img.shields.io/github/workflow/status/unjs/pathe/ci/main?style=flat-square
|
||||
[github-actions-href]: https://github.com/unjs/pathe/actions?query=workflow%3Aci
|
||||
[size-src]: https://packagephobia.now.sh/badge?p=pathe
|
||||
[size-href]: https://packagephobia.now.sh/result?p=pathe
|
||||
39
node_modules/@nuxt/schema/node_modules/pathe/dist/index.cjs
generated
vendored
Normal file
39
node_modules/@nuxt/schema/node_modules/pathe/dist/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
const _path = require('./shared/pathe.BSlhyZSM.cjs');
|
||||
|
||||
const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();
|
||||
const _platforms = { posix: void 0, win32: void 0 };
|
||||
const mix = (del = delimiter) => {
|
||||
return new Proxy(_path._path, {
|
||||
get(_, prop) {
|
||||
if (prop === "delimiter") return del;
|
||||
if (prop === "posix") return posix;
|
||||
if (prop === "win32") return win32;
|
||||
return _platforms[prop] || _path._path[prop];
|
||||
}
|
||||
});
|
||||
};
|
||||
const posix = /* @__PURE__ */ mix(":");
|
||||
const win32 = /* @__PURE__ */ mix(";");
|
||||
|
||||
exports.basename = _path.basename;
|
||||
exports.dirname = _path.dirname;
|
||||
exports.extname = _path.extname;
|
||||
exports.format = _path.format;
|
||||
exports.isAbsolute = _path.isAbsolute;
|
||||
exports.join = _path.join;
|
||||
exports.matchesGlob = _path.matchesGlob;
|
||||
exports.normalize = _path.normalize;
|
||||
exports.normalizeString = _path.normalizeString;
|
||||
exports.parse = _path.parse;
|
||||
exports.relative = _path.relative;
|
||||
exports.resolve = _path.resolve;
|
||||
exports.sep = _path.sep;
|
||||
exports.toNamespacedPath = _path.toNamespacedPath;
|
||||
exports.default = posix;
|
||||
exports.delimiter = delimiter;
|
||||
exports.posix = posix;
|
||||
exports.win32 = win32;
|
||||
47
node_modules/@nuxt/schema/node_modules/pathe/dist/index.d.cts
generated
vendored
Normal file
47
node_modules/@nuxt/schema/node_modules/pathe/dist/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
import * as path from 'node:path';
|
||||
import path__default from 'node:path';
|
||||
|
||||
/**
|
||||
* Constant for path separator.
|
||||
*
|
||||
* Always equals to `"/"`.
|
||||
*/
|
||||
declare const sep = "/";
|
||||
declare const normalize: typeof path__default.normalize;
|
||||
declare const join: typeof path__default.join;
|
||||
declare const resolve: typeof path__default.resolve;
|
||||
/**
|
||||
* Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
|
||||
*
|
||||
* @param path - The path to normalise.
|
||||
* @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.
|
||||
* @returns the normalised path string.
|
||||
*/
|
||||
declare function normalizeString(path: string, allowAboveRoot: boolean): string;
|
||||
declare const isAbsolute: typeof path__default.isAbsolute;
|
||||
declare const toNamespacedPath: typeof path__default.toNamespacedPath;
|
||||
declare const extname: typeof path__default.extname;
|
||||
declare const relative: typeof path__default.relative;
|
||||
declare const dirname: typeof path__default.dirname;
|
||||
declare const format: typeof path__default.format;
|
||||
declare const basename: typeof path__default.basename;
|
||||
declare const parse: typeof path__default.parse;
|
||||
/**
|
||||
* The `path.matchesGlob()` method determines if `path` matches the `pattern`.
|
||||
* @param path The path to glob-match against.
|
||||
* @param pattern The glob to check the path against.
|
||||
*/
|
||||
declare const matchesGlob: (path: string, pattern: string | string[]) => boolean;
|
||||
|
||||
type NodePath = typeof path;
|
||||
/**
|
||||
* The platform-specific file delimiter.
|
||||
*
|
||||
* Equals to `";"` in windows and `":"` in all other platforms.
|
||||
*/
|
||||
declare const delimiter: ";" | ":";
|
||||
declare const posix: NodePath["posix"];
|
||||
declare const win32: NodePath["win32"];
|
||||
declare const _default: NodePath;
|
||||
|
||||
export { basename, _default as default, delimiter, dirname, extname, format, isAbsolute, join, matchesGlob, normalize, normalizeString, parse, posix, relative, resolve, sep, toNamespacedPath, win32 };
|
||||
47
node_modules/@nuxt/schema/node_modules/pathe/dist/index.d.mts
generated
vendored
Normal file
47
node_modules/@nuxt/schema/node_modules/pathe/dist/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
import * as path from 'node:path';
|
||||
import path__default from 'node:path';
|
||||
|
||||
/**
|
||||
* Constant for path separator.
|
||||
*
|
||||
* Always equals to `"/"`.
|
||||
*/
|
||||
declare const sep = "/";
|
||||
declare const normalize: typeof path__default.normalize;
|
||||
declare const join: typeof path__default.join;
|
||||
declare const resolve: typeof path__default.resolve;
|
||||
/**
|
||||
* Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
|
||||
*
|
||||
* @param path - The path to normalise.
|
||||
* @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.
|
||||
* @returns the normalised path string.
|
||||
*/
|
||||
declare function normalizeString(path: string, allowAboveRoot: boolean): string;
|
||||
declare const isAbsolute: typeof path__default.isAbsolute;
|
||||
declare const toNamespacedPath: typeof path__default.toNamespacedPath;
|
||||
declare const extname: typeof path__default.extname;
|
||||
declare const relative: typeof path__default.relative;
|
||||
declare const dirname: typeof path__default.dirname;
|
||||
declare const format: typeof path__default.format;
|
||||
declare const basename: typeof path__default.basename;
|
||||
declare const parse: typeof path__default.parse;
|
||||
/**
|
||||
* The `path.matchesGlob()` method determines if `path` matches the `pattern`.
|
||||
* @param path The path to glob-match against.
|
||||
* @param pattern The glob to check the path against.
|
||||
*/
|
||||
declare const matchesGlob: (path: string, pattern: string | string[]) => boolean;
|
||||
|
||||
type NodePath = typeof path;
|
||||
/**
|
||||
* The platform-specific file delimiter.
|
||||
*
|
||||
* Equals to `";"` in windows and `":"` in all other platforms.
|
||||
*/
|
||||
declare const delimiter: ";" | ":";
|
||||
declare const posix: NodePath["posix"];
|
||||
declare const win32: NodePath["win32"];
|
||||
declare const _default: NodePath;
|
||||
|
||||
export { basename, _default as default, delimiter, dirname, extname, format, isAbsolute, join, matchesGlob, normalize, normalizeString, parse, posix, relative, resolve, sep, toNamespacedPath, win32 };
|
||||
47
node_modules/@nuxt/schema/node_modules/pathe/dist/index.d.ts
generated
vendored
Normal file
47
node_modules/@nuxt/schema/node_modules/pathe/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
import * as path from 'node:path';
|
||||
import path__default from 'node:path';
|
||||
|
||||
/**
|
||||
* Constant for path separator.
|
||||
*
|
||||
* Always equals to `"/"`.
|
||||
*/
|
||||
declare const sep = "/";
|
||||
declare const normalize: typeof path__default.normalize;
|
||||
declare const join: typeof path__default.join;
|
||||
declare const resolve: typeof path__default.resolve;
|
||||
/**
|
||||
* Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
|
||||
*
|
||||
* @param path - The path to normalise.
|
||||
* @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.
|
||||
* @returns the normalised path string.
|
||||
*/
|
||||
declare function normalizeString(path: string, allowAboveRoot: boolean): string;
|
||||
declare const isAbsolute: typeof path__default.isAbsolute;
|
||||
declare const toNamespacedPath: typeof path__default.toNamespacedPath;
|
||||
declare const extname: typeof path__default.extname;
|
||||
declare const relative: typeof path__default.relative;
|
||||
declare const dirname: typeof path__default.dirname;
|
||||
declare const format: typeof path__default.format;
|
||||
declare const basename: typeof path__default.basename;
|
||||
declare const parse: typeof path__default.parse;
|
||||
/**
|
||||
* The `path.matchesGlob()` method determines if `path` matches the `pattern`.
|
||||
* @param path The path to glob-match against.
|
||||
* @param pattern The glob to check the path against.
|
||||
*/
|
||||
declare const matchesGlob: (path: string, pattern: string | string[]) => boolean;
|
||||
|
||||
type NodePath = typeof path;
|
||||
/**
|
||||
* The platform-specific file delimiter.
|
||||
*
|
||||
* Equals to `";"` in windows and `":"` in all other platforms.
|
||||
*/
|
||||
declare const delimiter: ";" | ":";
|
||||
declare const posix: NodePath["posix"];
|
||||
declare const win32: NodePath["win32"];
|
||||
declare const _default: NodePath;
|
||||
|
||||
export { basename, _default as default, delimiter, dirname, extname, format, isAbsolute, join, matchesGlob, normalize, normalizeString, parse, posix, relative, resolve, sep, toNamespacedPath, win32 };
|
||||
19
node_modules/@nuxt/schema/node_modules/pathe/dist/index.mjs
generated
vendored
Normal file
19
node_modules/@nuxt/schema/node_modules/pathe/dist/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { _ as _path } from './shared/pathe.M-eThtNZ.mjs';
|
||||
export { c as basename, d as dirname, e as extname, f as format, i as isAbsolute, j as join, m as matchesGlob, n as normalize, a as normalizeString, p as parse, b as relative, r as resolve, s as sep, t as toNamespacedPath } from './shared/pathe.M-eThtNZ.mjs';
|
||||
|
||||
const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();
|
||||
const _platforms = { posix: void 0, win32: void 0 };
|
||||
const mix = (del = delimiter) => {
|
||||
return new Proxy(_path, {
|
||||
get(_, prop) {
|
||||
if (prop === "delimiter") return del;
|
||||
if (prop === "posix") return posix;
|
||||
if (prop === "win32") return win32;
|
||||
return _platforms[prop] || _path[prop];
|
||||
}
|
||||
});
|
||||
};
|
||||
const posix = /* @__PURE__ */ mix(":");
|
||||
const win32 = /* @__PURE__ */ mix(";");
|
||||
|
||||
export { posix as default, delimiter, posix, win32 };
|
||||
266
node_modules/@nuxt/schema/node_modules/pathe/dist/shared/pathe.BSlhyZSM.cjs
generated
vendored
Normal file
266
node_modules/@nuxt/schema/node_modules/pathe/dist/shared/pathe.BSlhyZSM.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
249
node_modules/@nuxt/schema/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
generated
vendored
Normal file
249
node_modules/@nuxt/schema/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
82
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.cjs
generated
vendored
Normal file
82
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.cjs
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
'use strict';
|
||||
|
||||
const _path = require('./shared/pathe.BSlhyZSM.cjs');
|
||||
|
||||
const pathSeparators = /* @__PURE__ */ new Set(["/", "\\", void 0]);
|
||||
const normalizedAliasSymbol = Symbol.for("pathe:normalizedAlias");
|
||||
const SLASH_RE = /[/\\]/;
|
||||
function normalizeAliases(_aliases) {
|
||||
if (_aliases[normalizedAliasSymbol]) {
|
||||
return _aliases;
|
||||
}
|
||||
const aliases = Object.fromEntries(
|
||||
Object.entries(_aliases).sort(([a], [b]) => _compareAliases(a, b))
|
||||
);
|
||||
for (const key in aliases) {
|
||||
for (const alias in aliases) {
|
||||
if (alias === key || key.startsWith(alias)) {
|
||||
continue;
|
||||
}
|
||||
if (aliases[key]?.startsWith(alias) && pathSeparators.has(aliases[key][alias.length])) {
|
||||
aliases[key] = aliases[alias] + aliases[key].slice(alias.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
Object.defineProperty(aliases, normalizedAliasSymbol, {
|
||||
value: true,
|
||||
enumerable: false
|
||||
});
|
||||
return aliases;
|
||||
}
|
||||
function resolveAlias(path, aliases) {
|
||||
const _path$1 = _path.normalizeWindowsPath(path);
|
||||
aliases = normalizeAliases(aliases);
|
||||
for (const [alias, to] of Object.entries(aliases)) {
|
||||
if (!_path$1.startsWith(alias)) {
|
||||
continue;
|
||||
}
|
||||
const _alias = hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
||||
if (hasTrailingSlash(_path$1[_alias.length])) {
|
||||
return _path.join(to, _path$1.slice(alias.length));
|
||||
}
|
||||
}
|
||||
return _path$1;
|
||||
}
|
||||
function reverseResolveAlias(path, aliases) {
|
||||
const _path$1 = _path.normalizeWindowsPath(path);
|
||||
aliases = normalizeAliases(aliases);
|
||||
const matches = [];
|
||||
for (const [to, alias] of Object.entries(aliases)) {
|
||||
if (!_path$1.startsWith(alias)) {
|
||||
continue;
|
||||
}
|
||||
const _alias = hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
||||
if (hasTrailingSlash(_path$1[_alias.length])) {
|
||||
matches.push(_path.join(to, _path$1.slice(alias.length)));
|
||||
}
|
||||
}
|
||||
return matches.sort((a, b) => b.length - a.length);
|
||||
}
|
||||
function filename(path) {
|
||||
const base = path.split(SLASH_RE).pop();
|
||||
if (!base) {
|
||||
return void 0;
|
||||
}
|
||||
const separatorIndex = base.lastIndexOf(".");
|
||||
if (separatorIndex <= 0) {
|
||||
return base;
|
||||
}
|
||||
return base.slice(0, separatorIndex);
|
||||
}
|
||||
function _compareAliases(a, b) {
|
||||
return b.split("/").length - a.split("/").length;
|
||||
}
|
||||
function hasTrailingSlash(path = "/") {
|
||||
const lastChar = path[path.length - 1];
|
||||
return lastChar === "/" || lastChar === "\\";
|
||||
}
|
||||
|
||||
exports.filename = filename;
|
||||
exports.normalizeAliases = normalizeAliases;
|
||||
exports.resolveAlias = resolveAlias;
|
||||
exports.reverseResolveAlias = reverseResolveAlias;
|
||||
32
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.d.cts
generated
vendored
Normal file
32
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.d.cts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Normalises alias mappings, ensuring that more specific aliases are resolved before less specific ones.
|
||||
* This function also ensures that aliases do not resolve to themselves cyclically.
|
||||
*
|
||||
* @param _aliases - A set of alias mappings where each key is an alias and its value is the actual path it points to.
|
||||
* @returns a set of normalised alias mappings.
|
||||
*/
|
||||
declare function normalizeAliases(_aliases: Record<string, string>): Record<string, string>;
|
||||
/**
|
||||
* Resolves a path string to its alias if applicable, otherwise returns the original path.
|
||||
* This function normalises the path, resolves the alias and then joins it to the alias target if necessary.
|
||||
*
|
||||
* @param path - The path string to resolve.
|
||||
* @param aliases - A set of alias mappings to use for resolution.
|
||||
* @returns the resolved path as a string.
|
||||
*/
|
||||
declare function resolveAlias(path: string, aliases: Record<string, string>): string;
|
||||
/**
|
||||
* Resolves a path string to its possible alias.
|
||||
*
|
||||
* Returns an array of possible alias resolutions (could be empty), sorted by specificity (longest first).
|
||||
*/
|
||||
declare function reverseResolveAlias(path: string, aliases: Record<string, string>): string[];
|
||||
/**
|
||||
* Extracts the filename from a given path, excluding any directory paths and the file extension.
|
||||
*
|
||||
* @param path - The full path of the file from which to extract the filename.
|
||||
* @returns the filename without the extension, or `undefined` if the filename cannot be extracted.
|
||||
*/
|
||||
declare function filename(path: string): string | undefined;
|
||||
|
||||
export { filename, normalizeAliases, resolveAlias, reverseResolveAlias };
|
||||
32
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.d.mts
generated
vendored
Normal file
32
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.d.mts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Normalises alias mappings, ensuring that more specific aliases are resolved before less specific ones.
|
||||
* This function also ensures that aliases do not resolve to themselves cyclically.
|
||||
*
|
||||
* @param _aliases - A set of alias mappings where each key is an alias and its value is the actual path it points to.
|
||||
* @returns a set of normalised alias mappings.
|
||||
*/
|
||||
declare function normalizeAliases(_aliases: Record<string, string>): Record<string, string>;
|
||||
/**
|
||||
* Resolves a path string to its alias if applicable, otherwise returns the original path.
|
||||
* This function normalises the path, resolves the alias and then joins it to the alias target if necessary.
|
||||
*
|
||||
* @param path - The path string to resolve.
|
||||
* @param aliases - A set of alias mappings to use for resolution.
|
||||
* @returns the resolved path as a string.
|
||||
*/
|
||||
declare function resolveAlias(path: string, aliases: Record<string, string>): string;
|
||||
/**
|
||||
* Resolves a path string to its possible alias.
|
||||
*
|
||||
* Returns an array of possible alias resolutions (could be empty), sorted by specificity (longest first).
|
||||
*/
|
||||
declare function reverseResolveAlias(path: string, aliases: Record<string, string>): string[];
|
||||
/**
|
||||
* Extracts the filename from a given path, excluding any directory paths and the file extension.
|
||||
*
|
||||
* @param path - The full path of the file from which to extract the filename.
|
||||
* @returns the filename without the extension, or `undefined` if the filename cannot be extracted.
|
||||
*/
|
||||
declare function filename(path: string): string | undefined;
|
||||
|
||||
export { filename, normalizeAliases, resolveAlias, reverseResolveAlias };
|
||||
32
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.d.ts
generated
vendored
Normal file
32
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Normalises alias mappings, ensuring that more specific aliases are resolved before less specific ones.
|
||||
* This function also ensures that aliases do not resolve to themselves cyclically.
|
||||
*
|
||||
* @param _aliases - A set of alias mappings where each key is an alias and its value is the actual path it points to.
|
||||
* @returns a set of normalised alias mappings.
|
||||
*/
|
||||
declare function normalizeAliases(_aliases: Record<string, string>): Record<string, string>;
|
||||
/**
|
||||
* Resolves a path string to its alias if applicable, otherwise returns the original path.
|
||||
* This function normalises the path, resolves the alias and then joins it to the alias target if necessary.
|
||||
*
|
||||
* @param path - The path string to resolve.
|
||||
* @param aliases - A set of alias mappings to use for resolution.
|
||||
* @returns the resolved path as a string.
|
||||
*/
|
||||
declare function resolveAlias(path: string, aliases: Record<string, string>): string;
|
||||
/**
|
||||
* Resolves a path string to its possible alias.
|
||||
*
|
||||
* Returns an array of possible alias resolutions (could be empty), sorted by specificity (longest first).
|
||||
*/
|
||||
declare function reverseResolveAlias(path: string, aliases: Record<string, string>): string[];
|
||||
/**
|
||||
* Extracts the filename from a given path, excluding any directory paths and the file extension.
|
||||
*
|
||||
* @param path - The full path of the file from which to extract the filename.
|
||||
* @returns the filename without the extension, or `undefined` if the filename cannot be extracted.
|
||||
*/
|
||||
declare function filename(path: string): string | undefined;
|
||||
|
||||
export { filename, normalizeAliases, resolveAlias, reverseResolveAlias };
|
||||
77
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.mjs
generated
vendored
Normal file
77
node_modules/@nuxt/schema/node_modules/pathe/dist/utils.mjs
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
import { g as normalizeWindowsPath, j as join } from './shared/pathe.M-eThtNZ.mjs';
|
||||
|
||||
const pathSeparators = /* @__PURE__ */ new Set(["/", "\\", void 0]);
|
||||
const normalizedAliasSymbol = Symbol.for("pathe:normalizedAlias");
|
||||
const SLASH_RE = /[/\\]/;
|
||||
function normalizeAliases(_aliases) {
|
||||
if (_aliases[normalizedAliasSymbol]) {
|
||||
return _aliases;
|
||||
}
|
||||
const aliases = Object.fromEntries(
|
||||
Object.entries(_aliases).sort(([a], [b]) => _compareAliases(a, b))
|
||||
);
|
||||
for (const key in aliases) {
|
||||
for (const alias in aliases) {
|
||||
if (alias === key || key.startsWith(alias)) {
|
||||
continue;
|
||||
}
|
||||
if (aliases[key]?.startsWith(alias) && pathSeparators.has(aliases[key][alias.length])) {
|
||||
aliases[key] = aliases[alias] + aliases[key].slice(alias.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
Object.defineProperty(aliases, normalizedAliasSymbol, {
|
||||
value: true,
|
||||
enumerable: false
|
||||
});
|
||||
return aliases;
|
||||
}
|
||||
function resolveAlias(path, aliases) {
|
||||
const _path = normalizeWindowsPath(path);
|
||||
aliases = normalizeAliases(aliases);
|
||||
for (const [alias, to] of Object.entries(aliases)) {
|
||||
if (!_path.startsWith(alias)) {
|
||||
continue;
|
||||
}
|
||||
const _alias = hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
||||
if (hasTrailingSlash(_path[_alias.length])) {
|
||||
return join(to, _path.slice(alias.length));
|
||||
}
|
||||
}
|
||||
return _path;
|
||||
}
|
||||
function reverseResolveAlias(path, aliases) {
|
||||
const _path = normalizeWindowsPath(path);
|
||||
aliases = normalizeAliases(aliases);
|
||||
const matches = [];
|
||||
for (const [to, alias] of Object.entries(aliases)) {
|
||||
if (!_path.startsWith(alias)) {
|
||||
continue;
|
||||
}
|
||||
const _alias = hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
|
||||
if (hasTrailingSlash(_path[_alias.length])) {
|
||||
matches.push(join(to, _path.slice(alias.length)));
|
||||
}
|
||||
}
|
||||
return matches.sort((a, b) => b.length - a.length);
|
||||
}
|
||||
function filename(path) {
|
||||
const base = path.split(SLASH_RE).pop();
|
||||
if (!base) {
|
||||
return void 0;
|
||||
}
|
||||
const separatorIndex = base.lastIndexOf(".");
|
||||
if (separatorIndex <= 0) {
|
||||
return base;
|
||||
}
|
||||
return base.slice(0, separatorIndex);
|
||||
}
|
||||
function _compareAliases(a, b) {
|
||||
return b.split("/").length - a.split("/").length;
|
||||
}
|
||||
function hasTrailingSlash(path = "/") {
|
||||
const lastChar = path[path.length - 1];
|
||||
return lastChar === "/" || lastChar === "\\";
|
||||
}
|
||||
|
||||
export { filename, normalizeAliases, resolveAlias, reverseResolveAlias };
|
||||
61
node_modules/@nuxt/schema/node_modules/pathe/package.json
generated
vendored
Normal file
61
node_modules/@nuxt/schema/node_modules/pathe/package.json
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"name": "pathe",
|
||||
"version": "2.0.3",
|
||||
"description": "Universal filesystem path utils",
|
||||
"repository": "unjs/pathe",
|
||||
"license": "MIT",
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"default": "./dist/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.cts",
|
||||
"default": "./dist/index.cjs"
|
||||
}
|
||||
},
|
||||
"./utils": {
|
||||
"import": {
|
||||
"types": "./dist/utils.d.mts",
|
||||
"default": "./dist/utils.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/utils.d.cts",
|
||||
"default": "./dist/utils.cjs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist",
|
||||
"utils.d.ts"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.13.1",
|
||||
"@vitest/coverage-v8": "^3.0.5",
|
||||
"changelogen": "^0.5.7",
|
||||
"esbuild": "^0.25.0",
|
||||
"eslint": "^9.20.1",
|
||||
"eslint-config-unjs": "^0.4.2",
|
||||
"jiti": "^2.4.2",
|
||||
"prettier": "^3.5.0",
|
||||
"typescript": "^5.7.3",
|
||||
"unbuild": "^3.3.1",
|
||||
"vitest": "^3.0.5",
|
||||
"zeptomatch": "^2.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"dev": "vitest",
|
||||
"lint": "eslint . && prettier -c src test",
|
||||
"lint:fix": "eslint . --fix && prettier -w src test",
|
||||
"release": "pnpm test && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
|
||||
"test": "pnpm lint && vitest run --coverage",
|
||||
"test:types": "tsc --noEmit"
|
||||
}
|
||||
}
|
||||
1
node_modules/@nuxt/schema/node_modules/pathe/utils.d.ts
generated
vendored
Normal file
1
node_modules/@nuxt/schema/node_modules/pathe/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./dist/utils";
|
||||
79
node_modules/@nuxt/schema/package.json
generated
vendored
Normal file
79
node_modules/@nuxt/schema/package.json
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"name": "@nuxt/schema",
|
||||
"version": "4.3.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/nuxt/nuxt.git",
|
||||
"directory": "packages/schema"
|
||||
},
|
||||
"description": "Nuxt types and default configuration",
|
||||
"homepage": "https://nuxt.com",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"types": "./dist/index.d.mts",
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": "./dist/index.mjs",
|
||||
"./builder-env": "./dist/builder-env.mjs",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"schema",
|
||||
"builder-env.d.ts",
|
||||
"env.d.ts"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/pug": "2.0.10",
|
||||
"@types/webpack-bundle-analyzer": "4.7.0",
|
||||
"@types/webpack-hot-middleware": "2.25.12",
|
||||
"@unhead/vue": "2.1.3",
|
||||
"@vitejs/plugin-vue": "6.0.4",
|
||||
"@vitejs/plugin-vue-jsx": "5.1.4",
|
||||
"@vue/compiler-core": "3.5.27",
|
||||
"@vue/compiler-sfc": "3.5.27",
|
||||
"@vue/language-core": "3.2.4",
|
||||
"c12": "3.3.3",
|
||||
"chokidar": "5.0.0",
|
||||
"compatx": "0.2.0",
|
||||
"css-minimizer-webpack-plugin": "7.0.4",
|
||||
"esbuild": "0.27.3",
|
||||
"esbuild-loader": "4.4.2",
|
||||
"file-loader": "6.2.0",
|
||||
"h3": "1.15.5",
|
||||
"hookable": "5.5.3",
|
||||
"ignore": "7.0.5",
|
||||
"mini-css-extract-plugin": "2.10.0",
|
||||
"obuild": "0.4.27",
|
||||
"ofetch": "1.5.1",
|
||||
"oxc-transform": "0.112.0",
|
||||
"postcss": "8.5.6",
|
||||
"rollup-plugin-visualizer": "6.0.5",
|
||||
"sass-loader": "16.0.6",
|
||||
"scule": "1.3.0",
|
||||
"unctx": "2.5.0",
|
||||
"unimport": "5.6.0",
|
||||
"untyped": "2.0.0",
|
||||
"vite": "7.3.1",
|
||||
"vue": "3.5.27",
|
||||
"vue-bundle-renderer": "2.2.0",
|
||||
"vue-loader": "17.4.2",
|
||||
"vue-router": "4.6.4",
|
||||
"webpack": "5.104.1",
|
||||
"webpack-dev-middleware": "7.4.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/shared": "^3.5.27",
|
||||
"defu": "^6.1.4",
|
||||
"pathe": "^2.0.3",
|
||||
"pkg-types": "^2.3.0",
|
||||
"std-env": "^3.10.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^14.18.0 || >=16.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build:stub": "obuild --stub",
|
||||
"test:attw": "attw --pack"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user