@nuxt/kit 4.3.1 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.d.mts +8 -18
- package/dist/index.mjs +307 -11
- package/package.json +8 -8
- package/dist/THIRD-PARTY-LICENSES.md +0 -1129
- package/dist/_chunks/libs/@oxc-project/types.d.mts +0 -1300
- package/dist/_chunks/libs/@rolldown/pluginutils.d.mts +0 -63
- package/dist/_chunks/libs/@rollup/plugin-commonjs.d.mts +0 -1345
- package/dist/_chunks/libs/@vercel/nft.d.mts +0 -114
- package/dist/_chunks/libs/chokidar.d.mts +0 -34
- package/dist/_chunks/libs/compatx.d.mts +0 -47
- package/dist/_chunks/libs/crossws.d.mts +0 -7
- package/dist/_chunks/libs/db0.d.mts +0 -8
- package/dist/_chunks/libs/esbuild.d.mts +0 -137
- package/dist/_chunks/libs/httpxy.d.mts +0 -79
- package/dist/_chunks/libs/ioredis.d.mts +0 -6
- package/dist/_chunks/libs/listhen.d.mts +0 -7
- package/dist/_chunks/libs/magic-string.d.mts +0 -220
- package/dist/_chunks/libs/nitro.d.mts +0 -9879
- package/dist/_chunks/libs/nitropack.d.mts +0 -3343
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import * as fs from "fs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@vercel+nft@1.2.0_rollup@4.57.1/node_modules/@vercel/nft/out/node-file-trace.d.ts
|
|
4
|
-
declare class Job {
|
|
5
|
-
ts: boolean;
|
|
6
|
-
base: string;
|
|
7
|
-
cwd: string;
|
|
8
|
-
conditions: string[];
|
|
9
|
-
exportsOnly: boolean;
|
|
10
|
-
paths: Record<string, string>;
|
|
11
|
-
ignoreFn: (path: string, parent?: string) => boolean;
|
|
12
|
-
log: boolean;
|
|
13
|
-
mixedModules: boolean;
|
|
14
|
-
analysis: {
|
|
15
|
-
emitGlobs?: boolean;
|
|
16
|
-
computeFileReferences?: boolean;
|
|
17
|
-
evaluatePureExpressions?: boolean;
|
|
18
|
-
};
|
|
19
|
-
private analysisCache;
|
|
20
|
-
fileList: Set<string>;
|
|
21
|
-
esmFileList: Set<string>;
|
|
22
|
-
processed: Set<string>;
|
|
23
|
-
warnings: Set<Error>;
|
|
24
|
-
reasons: NodeFileTraceReasons;
|
|
25
|
-
private cachedFileSystem;
|
|
26
|
-
private remappings;
|
|
27
|
-
constructor({
|
|
28
|
-
base,
|
|
29
|
-
processCwd,
|
|
30
|
-
exports,
|
|
31
|
-
conditions,
|
|
32
|
-
exportsOnly,
|
|
33
|
-
paths,
|
|
34
|
-
ignore,
|
|
35
|
-
log,
|
|
36
|
-
mixedModules,
|
|
37
|
-
ts,
|
|
38
|
-
analysis,
|
|
39
|
-
cache,
|
|
40
|
-
fileIOConcurrency
|
|
41
|
-
}: NodeFileTraceOptions);
|
|
42
|
-
addRemapping(path: string, dep: string): void;
|
|
43
|
-
readlink(path: string): Promise<string | null>;
|
|
44
|
-
isFile(path: string): Promise<boolean>;
|
|
45
|
-
isDir(path: string): Promise<boolean>;
|
|
46
|
-
stat(path: string): Promise<fs.Stats | null>;
|
|
47
|
-
private maybeEmitDep;
|
|
48
|
-
resolve(id: string, parent: string, job: Job, cjsResolve: boolean): Promise<string | string[]>;
|
|
49
|
-
readFile(path: string): Promise<Buffer | string | null>;
|
|
50
|
-
realpath(path: string, parent?: string, seen?: Set<unknown>): Promise<string>;
|
|
51
|
-
emitFile(path: string, reasonType: NodeFileTraceReasonType, parent?: string, isRealpath?: boolean): Promise<boolean>;
|
|
52
|
-
getPjsonBoundary(path: string): Promise<string | undefined>;
|
|
53
|
-
emitDependency(path: string, parent?: string): Promise<void>;
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region ../../node_modules/.pnpm/@vercel+nft@1.2.0_rollup@4.57.1/node_modules/@vercel/nft/out/types.d.ts
|
|
57
|
-
interface Stats {
|
|
58
|
-
isFile(): boolean;
|
|
59
|
-
isDirectory(): boolean;
|
|
60
|
-
isBlockDevice(): boolean;
|
|
61
|
-
isCharacterDevice(): boolean;
|
|
62
|
-
isSymbolicLink(): boolean;
|
|
63
|
-
isFIFO(): boolean;
|
|
64
|
-
isSocket(): boolean;
|
|
65
|
-
dev: number;
|
|
66
|
-
ino: number;
|
|
67
|
-
mode: number;
|
|
68
|
-
nlink: number;
|
|
69
|
-
uid: number;
|
|
70
|
-
gid: number;
|
|
71
|
-
rdev: number;
|
|
72
|
-
size: number;
|
|
73
|
-
blksize: number;
|
|
74
|
-
blocks: number;
|
|
75
|
-
atimeMs: number;
|
|
76
|
-
mtimeMs: number;
|
|
77
|
-
ctimeMs: number;
|
|
78
|
-
birthtimeMs: number;
|
|
79
|
-
atime: Date;
|
|
80
|
-
mtime: Date;
|
|
81
|
-
ctime: Date;
|
|
82
|
-
birthtime: Date;
|
|
83
|
-
}
|
|
84
|
-
interface NodeFileTraceOptions {
|
|
85
|
-
base?: string;
|
|
86
|
-
processCwd?: string;
|
|
87
|
-
exports?: string[];
|
|
88
|
-
conditions?: string[];
|
|
89
|
-
exportsOnly?: boolean;
|
|
90
|
-
ignore?: string | string[] | ((path: string) => boolean);
|
|
91
|
-
analysis?: boolean | {
|
|
92
|
-
emitGlobs?: boolean;
|
|
93
|
-
computeFileReferences?: boolean;
|
|
94
|
-
evaluatePureExpressions?: boolean;
|
|
95
|
-
};
|
|
96
|
-
cache?: any;
|
|
97
|
-
paths?: Record<string, string>;
|
|
98
|
-
ts?: boolean;
|
|
99
|
-
log?: boolean;
|
|
100
|
-
mixedModules?: boolean;
|
|
101
|
-
readFile?: (path: string) => Promise<Buffer | string | null>;
|
|
102
|
-
stat?: (path: string) => Promise<Stats | null>;
|
|
103
|
-
readlink?: (path: string) => Promise<string | null>;
|
|
104
|
-
resolve?: (id: string, parent: string, job: Job, cjsResolve: boolean) => Promise<string | string[]>;
|
|
105
|
-
fileIOConcurrency?: number;
|
|
106
|
-
}
|
|
107
|
-
type NodeFileTraceReasonType = 'initial' | 'resolve' | 'dependency' | 'asset' | 'sharedlib';
|
|
108
|
-
interface NodeFileTraceReasons extends Map<string, {
|
|
109
|
-
type: NodeFileTraceReasonType[];
|
|
110
|
-
ignored: boolean;
|
|
111
|
-
parents: Set<string>;
|
|
112
|
-
}> {}
|
|
113
|
-
//#endregion
|
|
114
|
-
export { NodeFileTraceOptions as t };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Stats } from "node:fs";
|
|
2
|
-
import { Readable } from "node:stream";
|
|
3
|
-
import { EventEmitter } from "node:events";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.ts
|
|
6
|
-
type AWF = {
|
|
7
|
-
stabilityThreshold: number;
|
|
8
|
-
pollInterval: number;
|
|
9
|
-
};
|
|
10
|
-
type BasicOpts = {
|
|
11
|
-
persistent: boolean;
|
|
12
|
-
ignoreInitial: boolean;
|
|
13
|
-
followSymlinks: boolean;
|
|
14
|
-
cwd?: string;
|
|
15
|
-
usePolling: boolean;
|
|
16
|
-
interval: number;
|
|
17
|
-
binaryInterval: number;
|
|
18
|
-
alwaysStat?: boolean;
|
|
19
|
-
depth?: number;
|
|
20
|
-
ignorePermissionErrors: boolean;
|
|
21
|
-
atomic: boolean | number;
|
|
22
|
-
};
|
|
23
|
-
type ChokidarOptions = Partial<BasicOpts & {
|
|
24
|
-
ignored: Matcher | Matcher[];
|
|
25
|
-
awaitWriteFinish: boolean | Partial<AWF>;
|
|
26
|
-
}>;
|
|
27
|
-
type MatchFunction = (val: string, stats?: Stats) => boolean;
|
|
28
|
-
interface MatcherObject {
|
|
29
|
-
path: string;
|
|
30
|
-
recursive?: boolean;
|
|
31
|
-
}
|
|
32
|
-
type Matcher = string | RegExp | MatchFunction | MatcherObject;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { ChokidarOptions as t };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/compatx@0.2.0/node_modules/compatx/dist/index.d.mts
|
|
2
|
-
/**
|
|
3
|
-
* Known platform names
|
|
4
|
-
*/
|
|
5
|
-
declare const platforms: readonly ["aws", "azure", "cloudflare", "deno", "firebase", "netlify", "vercel"];
|
|
6
|
-
/**
|
|
7
|
-
* Known platform name
|
|
8
|
-
*/
|
|
9
|
-
type PlatformName = (typeof platforms)[number] | (string & {});
|
|
10
|
-
/**
|
|
11
|
-
* Normalize the compatibility dates from input config and defaults.
|
|
12
|
-
*/
|
|
13
|
-
type Year = `${number}${number}${number}${number}`;
|
|
14
|
-
type Month = `${"0" | "1"}${number}`;
|
|
15
|
-
type Day = `${"0" | "1" | "2" | "3"}${number}`;
|
|
16
|
-
/**
|
|
17
|
-
* Typed date string in `YYYY-MM-DD` format
|
|
18
|
-
*
|
|
19
|
-
* Empty string is used to represent an "unspecified" date.
|
|
20
|
-
*
|
|
21
|
-
* "latest" is used to represent the latest date available (date of today).
|
|
22
|
-
*/
|
|
23
|
-
type DateString = "" | "latest" | `${Year}-${Month}-${Day}`;
|
|
24
|
-
/**
|
|
25
|
-
* Last known compatibility dates for platforms
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* {
|
|
29
|
-
* "default": "2024-01-01",
|
|
30
|
-
* "cloudflare": "2024-03-01",
|
|
31
|
-
* }
|
|
32
|
-
*/
|
|
33
|
-
type CompatibilityDates = {
|
|
34
|
-
/**
|
|
35
|
-
* Default compatibility date for all unspecified platforms (required)
|
|
36
|
-
*/
|
|
37
|
-
default: DateString;
|
|
38
|
-
} & Partial<Record<PlatformName, DateString>>;
|
|
39
|
-
/**
|
|
40
|
-
* Last known compatibility date for the used platform
|
|
41
|
-
*/
|
|
42
|
-
type CompatibilityDateSpec = DateString | Partial<CompatibilityDates>;
|
|
43
|
-
/**
|
|
44
|
-
* Get compatibility updates applicable for the user given platform and date range.
|
|
45
|
-
*/
|
|
46
|
-
//#endregion
|
|
47
|
-
export { CompatibilityDates as n, CompatibilityDateSpec as t };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "node:sqlite";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/db0@0.3.4/node_modules/db0/dist/index.d.mts
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region src/_connectors.d.ts
|
|
6
|
-
type ConnectorName = "better-sqlite3" | "bun-sqlite" | "bun" | "cloudflare-d1" | "cloudflare-hyperdrive-mysql" | "cloudflare-hyperdrive-postgresql" | "libsql-core" | "libsql-http" | "libsql-node" | "libsql" | "libsql-web" | "mysql2" | "node-sqlite" | "sqlite" | "pglite" | "planetscale" | "postgresql" | "sqlite3";
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ConnectorName as t };
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/esbuild@0.27.3/node_modules/esbuild/lib/main.d.ts
|
|
2
|
-
type Platform = 'browser' | 'node' | 'neutral';
|
|
3
|
-
type Format = 'iife' | 'cjs' | 'esm';
|
|
4
|
-
type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default' | 'empty' | 'file' | 'js' | 'json' | 'jsx' | 'local-css' | 'text' | 'ts' | 'tsx';
|
|
5
|
-
type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent';
|
|
6
|
-
type Charset = 'ascii' | 'utf8';
|
|
7
|
-
type Drop = 'console' | 'debugger';
|
|
8
|
-
type AbsPaths = 'code' | 'log' | 'metafile';
|
|
9
|
-
interface CommonOptions {
|
|
10
|
-
/** Documentation: https://esbuild.github.io/api/#sourcemap */
|
|
11
|
-
sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both';
|
|
12
|
-
/** Documentation: https://esbuild.github.io/api/#legal-comments */
|
|
13
|
-
legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
|
|
14
|
-
/** Documentation: https://esbuild.github.io/api/#source-root */
|
|
15
|
-
sourceRoot?: string;
|
|
16
|
-
/** Documentation: https://esbuild.github.io/api/#sources-content */
|
|
17
|
-
sourcesContent?: boolean;
|
|
18
|
-
/** Documentation: https://esbuild.github.io/api/#format */
|
|
19
|
-
format?: Format;
|
|
20
|
-
/** Documentation: https://esbuild.github.io/api/#global-name */
|
|
21
|
-
globalName?: string;
|
|
22
|
-
/** Documentation: https://esbuild.github.io/api/#target */
|
|
23
|
-
target?: string | string[];
|
|
24
|
-
/** Documentation: https://esbuild.github.io/api/#supported */
|
|
25
|
-
supported?: Record<string, boolean>;
|
|
26
|
-
/** Documentation: https://esbuild.github.io/api/#platform */
|
|
27
|
-
platform?: Platform;
|
|
28
|
-
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
|
29
|
-
mangleProps?: RegExp;
|
|
30
|
-
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
|
31
|
-
reserveProps?: RegExp;
|
|
32
|
-
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
|
33
|
-
mangleQuoted?: boolean;
|
|
34
|
-
/** Documentation: https://esbuild.github.io/api/#mangle-props */
|
|
35
|
-
mangleCache?: Record<string, string | false>;
|
|
36
|
-
/** Documentation: https://esbuild.github.io/api/#drop */
|
|
37
|
-
drop?: Drop[];
|
|
38
|
-
/** Documentation: https://esbuild.github.io/api/#drop-labels */
|
|
39
|
-
dropLabels?: string[];
|
|
40
|
-
/** Documentation: https://esbuild.github.io/api/#minify */
|
|
41
|
-
minify?: boolean;
|
|
42
|
-
/** Documentation: https://esbuild.github.io/api/#minify */
|
|
43
|
-
minifyWhitespace?: boolean;
|
|
44
|
-
/** Documentation: https://esbuild.github.io/api/#minify */
|
|
45
|
-
minifyIdentifiers?: boolean;
|
|
46
|
-
/** Documentation: https://esbuild.github.io/api/#minify */
|
|
47
|
-
minifySyntax?: boolean;
|
|
48
|
-
/** Documentation: https://esbuild.github.io/api/#line-limit */
|
|
49
|
-
lineLimit?: number;
|
|
50
|
-
/** Documentation: https://esbuild.github.io/api/#charset */
|
|
51
|
-
charset?: Charset;
|
|
52
|
-
/** Documentation: https://esbuild.github.io/api/#tree-shaking */
|
|
53
|
-
treeShaking?: boolean;
|
|
54
|
-
/** Documentation: https://esbuild.github.io/api/#ignore-annotations */
|
|
55
|
-
ignoreAnnotations?: boolean;
|
|
56
|
-
/** Documentation: https://esbuild.github.io/api/#jsx */
|
|
57
|
-
jsx?: 'transform' | 'preserve' | 'automatic';
|
|
58
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-factory */
|
|
59
|
-
jsxFactory?: string;
|
|
60
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-fragment */
|
|
61
|
-
jsxFragment?: string;
|
|
62
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-import-source */
|
|
63
|
-
jsxImportSource?: string;
|
|
64
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-development */
|
|
65
|
-
jsxDev?: boolean;
|
|
66
|
-
/** Documentation: https://esbuild.github.io/api/#jsx-side-effects */
|
|
67
|
-
jsxSideEffects?: boolean;
|
|
68
|
-
/** Documentation: https://esbuild.github.io/api/#define */
|
|
69
|
-
define?: {
|
|
70
|
-
[key: string]: string;
|
|
71
|
-
};
|
|
72
|
-
/** Documentation: https://esbuild.github.io/api/#pure */
|
|
73
|
-
pure?: string[];
|
|
74
|
-
/** Documentation: https://esbuild.github.io/api/#keep-names */
|
|
75
|
-
keepNames?: boolean;
|
|
76
|
-
/** Documentation: https://esbuild.github.io/api/#abs-paths */
|
|
77
|
-
absPaths?: AbsPaths[];
|
|
78
|
-
/** Documentation: https://esbuild.github.io/api/#color */
|
|
79
|
-
color?: boolean;
|
|
80
|
-
/** Documentation: https://esbuild.github.io/api/#log-level */
|
|
81
|
-
logLevel?: LogLevel;
|
|
82
|
-
/** Documentation: https://esbuild.github.io/api/#log-limit */
|
|
83
|
-
logLimit?: number;
|
|
84
|
-
/** Documentation: https://esbuild.github.io/api/#log-override */
|
|
85
|
-
logOverride?: Record<string, LogLevel>;
|
|
86
|
-
/** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
|
|
87
|
-
tsconfigRaw?: string | TsconfigRaw;
|
|
88
|
-
}
|
|
89
|
-
interface TsconfigRaw {
|
|
90
|
-
compilerOptions?: {
|
|
91
|
-
alwaysStrict?: boolean;
|
|
92
|
-
baseUrl?: string;
|
|
93
|
-
experimentalDecorators?: boolean;
|
|
94
|
-
importsNotUsedAsValues?: 'remove' | 'preserve' | 'error';
|
|
95
|
-
jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev';
|
|
96
|
-
jsxFactory?: string;
|
|
97
|
-
jsxFragmentFactory?: string;
|
|
98
|
-
jsxImportSource?: string;
|
|
99
|
-
paths?: Record<string, string[]>;
|
|
100
|
-
preserveValueImports?: boolean;
|
|
101
|
-
strict?: boolean;
|
|
102
|
-
target?: string;
|
|
103
|
-
useDefineForClassFields?: boolean;
|
|
104
|
-
verbatimModuleSyntax?: boolean;
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
interface TransformOptions extends CommonOptions {
|
|
108
|
-
/** Documentation: https://esbuild.github.io/api/#sourcefile */
|
|
109
|
-
sourcefile?: string;
|
|
110
|
-
/** Documentation: https://esbuild.github.io/api/#loader */
|
|
111
|
-
loader?: Loader;
|
|
112
|
-
/** Documentation: https://esbuild.github.io/api/#banner */
|
|
113
|
-
banner?: string;
|
|
114
|
-
/** Documentation: https://esbuild.github.io/api/#footer */
|
|
115
|
-
footer?: string;
|
|
116
|
-
}
|
|
117
|
-
// Note: These declarations exist to avoid type errors when you omit "dom" from
|
|
118
|
-
// "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
|
|
119
|
-
// global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
|
|
120
|
-
// with the browser DOM and is present in many non-browser JavaScript runtimes
|
|
121
|
-
// (e.g. node and deno). Declaring it here allows esbuild's API to be used in
|
|
122
|
-
// these scenarios.
|
|
123
|
-
//
|
|
124
|
-
// There's an open issue about getting this problem corrected (although these
|
|
125
|
-
// declarations will need to remain even if this is fixed for backward
|
|
126
|
-
// compatibility with older TypeScript versions):
|
|
127
|
-
//
|
|
128
|
-
// https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
|
|
129
|
-
//
|
|
130
|
-
declare global {
|
|
131
|
-
namespace WebAssembly {
|
|
132
|
-
interface Module {}
|
|
133
|
-
}
|
|
134
|
-
interface URL {}
|
|
135
|
-
}
|
|
136
|
-
//#endregion
|
|
137
|
-
export { TransformOptions as n, Loader as t };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import * as stream from "node:stream";
|
|
2
|
-
import { EventEmitter } from "node:events";
|
|
3
|
-
import "node:http";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/httpxy@0.1.7/node_modules/httpxy/dist/index.d.ts
|
|
6
|
-
interface ProxyTargetDetailed {
|
|
7
|
-
host: string;
|
|
8
|
-
port: number;
|
|
9
|
-
protocol?: string;
|
|
10
|
-
hostname?: string;
|
|
11
|
-
socketPath?: string;
|
|
12
|
-
key?: string;
|
|
13
|
-
passphrase?: string;
|
|
14
|
-
pfx?: Buffer | string;
|
|
15
|
-
cert?: string;
|
|
16
|
-
ca?: string;
|
|
17
|
-
ciphers?: string;
|
|
18
|
-
secureProtocol?: string;
|
|
19
|
-
}
|
|
20
|
-
type ProxyTarget = ProxyTargetUrl | ProxyTargetDetailed;
|
|
21
|
-
type ProxyTargetUrl = string | Partial<URL>;
|
|
22
|
-
interface ProxyServerOptions {
|
|
23
|
-
/** URL string to be parsed with the url module. */
|
|
24
|
-
target?: ProxyTarget;
|
|
25
|
-
/** URL string to be parsed with the url module. */
|
|
26
|
-
forward?: ProxyTargetUrl;
|
|
27
|
-
/** Object to be passed to http(s).request. */
|
|
28
|
-
agent?: any;
|
|
29
|
-
/** Object to be passed to https.createServer(). */
|
|
30
|
-
ssl?: any;
|
|
31
|
-
/** If you want to proxy websockets. */
|
|
32
|
-
ws?: boolean;
|
|
33
|
-
/** Adds x- forward headers. */
|
|
34
|
-
xfwd?: boolean;
|
|
35
|
-
/** Verify SSL certificate. */
|
|
36
|
-
secure?: boolean;
|
|
37
|
-
/** Explicitly specify if we are proxying to another proxy. */
|
|
38
|
-
toProxy?: boolean;
|
|
39
|
-
/** Specify whether you want to prepend the target's path to the proxy path. */
|
|
40
|
-
prependPath?: boolean;
|
|
41
|
-
/** Specify whether you want to ignore the proxy path of the incoming request. */
|
|
42
|
-
ignorePath?: boolean;
|
|
43
|
-
/** Local interface string to bind for outgoing connections. */
|
|
44
|
-
localAddress?: string;
|
|
45
|
-
/** Changes the origin of the host header to the target URL. */
|
|
46
|
-
changeOrigin?: boolean;
|
|
47
|
-
/** specify whether you want to keep letter case of response header key */
|
|
48
|
-
preserveHeaderKeyCase?: boolean;
|
|
49
|
-
/** Basic authentication i.e. 'user:password' to compute an Authorization header. */
|
|
50
|
-
auth?: string;
|
|
51
|
-
/** Rewrites the location hostname on (301 / 302 / 307 / 308) redirects, Default: null. */
|
|
52
|
-
hostRewrite?: string;
|
|
53
|
-
/** Rewrites the location host/ port on (301 / 302 / 307 / 308) redirects based on requested host/ port.Default: false. */
|
|
54
|
-
autoRewrite?: boolean;
|
|
55
|
-
/** Rewrites the location protocol on (301 / 302 / 307 / 308) redirects to 'http' or 'https'.Default: null. */
|
|
56
|
-
protocolRewrite?: string;
|
|
57
|
-
/** Rewrites domain of set-cookie headers. */
|
|
58
|
-
cookieDomainRewrite?: false | string | {
|
|
59
|
-
[oldDomain: string]: string;
|
|
60
|
-
};
|
|
61
|
-
/** Rewrites path of set-cookie headers. Default: false */
|
|
62
|
-
cookiePathRewrite?: false | string | {
|
|
63
|
-
[oldPath: string]: string;
|
|
64
|
-
};
|
|
65
|
-
/** Object with extra headers to be added to target requests. */
|
|
66
|
-
headers?: {
|
|
67
|
-
[header: string]: string;
|
|
68
|
-
};
|
|
69
|
-
/** Timeout (in milliseconds) when proxy receives no response from target. Default: 120000 (2 minutes) */
|
|
70
|
-
proxyTimeout?: number;
|
|
71
|
-
/** Timeout (in milliseconds) for incoming requests */
|
|
72
|
-
timeout?: number;
|
|
73
|
-
/** If set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the proxyRes event */
|
|
74
|
-
selfHandleResponse?: boolean;
|
|
75
|
-
/** Buffer */
|
|
76
|
-
buffer?: stream.Stream;
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
79
|
-
export { ProxyServerOptions as t };
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts
|
|
2
|
-
interface SourceMapOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Whether the mapping should be high-resolution.
|
|
5
|
-
* Hi-res mappings map every single character, meaning (for example) your devtools will always
|
|
6
|
-
* be able to pinpoint the exact location of function calls and so on.
|
|
7
|
-
* With lo-res mappings, devtools may only be able to identify the correct
|
|
8
|
-
* line - but they're quicker to generate and less bulky.
|
|
9
|
-
* You can also set `"boundary"` to generate a semi-hi-res mappings segmented per word boundary
|
|
10
|
-
* instead of per character, suitable for string semantics that are separated by words.
|
|
11
|
-
* If sourcemap locations have been specified with s.addSourceMapLocation(), they will be used here.
|
|
12
|
-
*/
|
|
13
|
-
hires?: boolean | 'boundary';
|
|
14
|
-
/**
|
|
15
|
-
* The filename where you plan to write the sourcemap.
|
|
16
|
-
*/
|
|
17
|
-
file?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The filename of the file containing the original source.
|
|
20
|
-
*/
|
|
21
|
-
source?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Whether to include the original content in the map's sourcesContent array.
|
|
24
|
-
*/
|
|
25
|
-
includeContent?: boolean;
|
|
26
|
-
}
|
|
27
|
-
type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
|
|
28
|
-
interface DecodedSourceMap {
|
|
29
|
-
file: string;
|
|
30
|
-
sources: string[];
|
|
31
|
-
sourcesContent?: string[];
|
|
32
|
-
names: string[];
|
|
33
|
-
mappings: SourceMapSegment[][];
|
|
34
|
-
x_google_ignoreList?: number[];
|
|
35
|
-
}
|
|
36
|
-
declare class SourceMap {
|
|
37
|
-
constructor(properties: DecodedSourceMap);
|
|
38
|
-
version: number;
|
|
39
|
-
file: string;
|
|
40
|
-
sources: string[];
|
|
41
|
-
sourcesContent?: string[];
|
|
42
|
-
names: string[];
|
|
43
|
-
mappings: string;
|
|
44
|
-
x_google_ignoreList?: number[];
|
|
45
|
-
debugId?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Returns the equivalent of `JSON.stringify(map)`
|
|
48
|
-
*/
|
|
49
|
-
toString(): string;
|
|
50
|
-
/**
|
|
51
|
-
* Returns a DataURI containing the sourcemap. Useful for doing this sort of thing:
|
|
52
|
-
* `generateMap(options?: SourceMapOptions): SourceMap;`
|
|
53
|
-
*/
|
|
54
|
-
toUrl(): string;
|
|
55
|
-
}
|
|
56
|
-
type ExclusionRange = [number, number];
|
|
57
|
-
interface MagicStringOptions {
|
|
58
|
-
filename?: string;
|
|
59
|
-
indentExclusionRanges?: ExclusionRange | Array<ExclusionRange>;
|
|
60
|
-
offset?: number;
|
|
61
|
-
}
|
|
62
|
-
interface IndentOptions {
|
|
63
|
-
exclude?: ExclusionRange | Array<ExclusionRange>;
|
|
64
|
-
indentStart?: boolean;
|
|
65
|
-
}
|
|
66
|
-
interface OverwriteOptions {
|
|
67
|
-
storeName?: boolean;
|
|
68
|
-
contentOnly?: boolean;
|
|
69
|
-
}
|
|
70
|
-
interface UpdateOptions {
|
|
71
|
-
storeName?: boolean;
|
|
72
|
-
overwrite?: boolean;
|
|
73
|
-
}
|
|
74
|
-
declare class MagicString {
|
|
75
|
-
constructor(str: string, options?: MagicStringOptions);
|
|
76
|
-
/**
|
|
77
|
-
* Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
|
|
78
|
-
*/
|
|
79
|
-
addSourcemapLocation(char: number): void;
|
|
80
|
-
/**
|
|
81
|
-
* Appends the specified content to the end of the string.
|
|
82
|
-
*/
|
|
83
|
-
append(content: string): this;
|
|
84
|
-
/**
|
|
85
|
-
* Appends the specified content at the index in the original string.
|
|
86
|
-
* If a range *ending* with index is subsequently moved, the insert will be moved with it.
|
|
87
|
-
* See also `s.prependLeft(...)`.
|
|
88
|
-
*/
|
|
89
|
-
appendLeft(index: number, content: string): this;
|
|
90
|
-
/**
|
|
91
|
-
* Appends the specified content at the index in the original string.
|
|
92
|
-
* If a range *starting* with index is subsequently moved, the insert will be moved with it.
|
|
93
|
-
* See also `s.prependRight(...)`.
|
|
94
|
-
*/
|
|
95
|
-
appendRight(index: number, content: string): this;
|
|
96
|
-
/**
|
|
97
|
-
* Does what you'd expect.
|
|
98
|
-
*/
|
|
99
|
-
clone(): this;
|
|
100
|
-
/**
|
|
101
|
-
* Generates a version 3 sourcemap.
|
|
102
|
-
*/
|
|
103
|
-
generateMap(options?: SourceMapOptions): SourceMap;
|
|
104
|
-
/**
|
|
105
|
-
* Generates a sourcemap object with raw mappings in array form, rather than encoded as a string.
|
|
106
|
-
* Useful if you need to manipulate the sourcemap further, but most of the time you will use `generateMap` instead.
|
|
107
|
-
*/
|
|
108
|
-
generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
|
|
109
|
-
getIndentString(): string;
|
|
110
|
-
/**
|
|
111
|
-
* Prefixes each line of the string with prefix.
|
|
112
|
-
* If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
|
|
113
|
-
*/
|
|
114
|
-
indent(options?: IndentOptions): this;
|
|
115
|
-
/**
|
|
116
|
-
* Prefixes each line of the string with prefix.
|
|
117
|
-
* If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
|
|
118
|
-
*
|
|
119
|
-
* The options argument can have an exclude property, which is an array of [start, end] character ranges.
|
|
120
|
-
* These ranges will be excluded from the indentation - useful for (e.g.) multiline strings.
|
|
121
|
-
*/
|
|
122
|
-
indent(indentStr?: string, options?: IndentOptions): this;
|
|
123
|
-
indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
|
|
124
|
-
/**
|
|
125
|
-
* Moves the characters from `start` and `end` to `index`.
|
|
126
|
-
*/
|
|
127
|
-
move(start: number, end: number, index: number): this;
|
|
128
|
-
/**
|
|
129
|
-
* Replaces the characters from `start` to `end` with `content`, along with the appended/prepended content in
|
|
130
|
-
* that range. The same restrictions as `s.remove()` apply.
|
|
131
|
-
*
|
|
132
|
-
* The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
|
|
133
|
-
* for later inclusion in a sourcemap's names array — and a contentOnly property which determines whether only
|
|
134
|
-
* the content is overwritten, or anything that was appended/prepended to the range as well.
|
|
135
|
-
*
|
|
136
|
-
* It may be preferred to use `s.update(...)` instead if you wish to avoid overwriting the appended/prepended content.
|
|
137
|
-
*/
|
|
138
|
-
overwrite(start: number, end: number, content: string, options?: boolean | OverwriteOptions): this;
|
|
139
|
-
/**
|
|
140
|
-
* Replaces the characters from `start` to `end` with `content`. The same restrictions as `s.remove()` apply.
|
|
141
|
-
*
|
|
142
|
-
* The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
|
|
143
|
-
* for later inclusion in a sourcemap's names array — and an overwrite property which determines whether only
|
|
144
|
-
* the content is overwritten, or anything that was appended/prepended to the range as well.
|
|
145
|
-
*/
|
|
146
|
-
update(start: number, end: number, content: string, options?: boolean | UpdateOptions): this;
|
|
147
|
-
/**
|
|
148
|
-
* Prepends the string with the specified content.
|
|
149
|
-
*/
|
|
150
|
-
prepend(content: string): this;
|
|
151
|
-
/**
|
|
152
|
-
* Same as `s.appendLeft(...)`, except that the inserted content will go *before* any previous appends or prepends at index
|
|
153
|
-
*/
|
|
154
|
-
prependLeft(index: number, content: string): this;
|
|
155
|
-
/**
|
|
156
|
-
* Same as `s.appendRight(...)`, except that the inserted content will go *before* any previous appends or prepends at `index`
|
|
157
|
-
*/
|
|
158
|
-
prependRight(index: number, content: string): this;
|
|
159
|
-
/**
|
|
160
|
-
* Removes the characters from `start` to `end` (of the original string, **not** the generated string).
|
|
161
|
-
* Removing the same content twice, or making removals that partially overlap, will cause an error.
|
|
162
|
-
*/
|
|
163
|
-
remove(start: number, end: number): this;
|
|
164
|
-
/**
|
|
165
|
-
* Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
|
|
166
|
-
*/
|
|
167
|
-
reset(start: number, end: number): this;
|
|
168
|
-
/**
|
|
169
|
-
* Returns the content of the generated string that corresponds to the slice between `start` and `end` of the original string.
|
|
170
|
-
* Throws error if the indices are for characters that were already removed.
|
|
171
|
-
*/
|
|
172
|
-
slice(start: number, end: number): string;
|
|
173
|
-
/**
|
|
174
|
-
* Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
|
|
175
|
-
*/
|
|
176
|
-
snip(start: number, end: number): this;
|
|
177
|
-
/**
|
|
178
|
-
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end.
|
|
179
|
-
*/
|
|
180
|
-
trim(charType?: string): this;
|
|
181
|
-
/**
|
|
182
|
-
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start.
|
|
183
|
-
*/
|
|
184
|
-
trimStart(charType?: string): this;
|
|
185
|
-
/**
|
|
186
|
-
* Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end.
|
|
187
|
-
*/
|
|
188
|
-
trimEnd(charType?: string): this;
|
|
189
|
-
/**
|
|
190
|
-
* Removes empty lines from the start and end.
|
|
191
|
-
*/
|
|
192
|
-
trimLines(): this;
|
|
193
|
-
/**
|
|
194
|
-
* String replacement with RegExp or string.
|
|
195
|
-
*/
|
|
196
|
-
replace(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): this;
|
|
197
|
-
/**
|
|
198
|
-
* Same as `s.replace`, but replace all matched strings instead of just one.
|
|
199
|
-
*/
|
|
200
|
-
replaceAll(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): this;
|
|
201
|
-
lastChar(): string;
|
|
202
|
-
lastLine(): string;
|
|
203
|
-
/**
|
|
204
|
-
* Returns true if the resulting source is empty (disregarding white space).
|
|
205
|
-
*/
|
|
206
|
-
isEmpty(): boolean;
|
|
207
|
-
length(): number;
|
|
208
|
-
/**
|
|
209
|
-
* Indicates if the string has been changed.
|
|
210
|
-
*/
|
|
211
|
-
hasChanged(): boolean;
|
|
212
|
-
original: string;
|
|
213
|
-
/**
|
|
214
|
-
* Returns the generated string.
|
|
215
|
-
*/
|
|
216
|
-
toString(): string;
|
|
217
|
-
offset: number;
|
|
218
|
-
}
|
|
219
|
-
//#endregion
|
|
220
|
-
export { MagicString as t };
|