@visulima/packem-rollup 1.0.0-alpha.19 → 1.0.0-alpha.20

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.
@@ -10,6 +10,7 @@ import { Options as Options$4 } from 'rollup-plugin-dts';
10
10
  import { NodePolyfillsOptions } from 'rollup-plugin-polyfill-node';
11
11
  import { PureAnnotationsOptions } from 'rollup-plugin-pure';
12
12
  import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
13
+ import { P as PailServerType } from './index.server.d-DhMawQMd.mjs';
13
14
  import { TransformOptions, Loader, BuildOptions } from 'esbuild';
14
15
  import { PackageJson } from '@visulima/package';
15
16
  import { BuildContext } from '@visulima/packem-share/types';
@@ -17,256 +18,6 @@ import { NapiResolveOptions } from 'oxc-resolver';
17
18
  import { TransformOptions as TransformOptions$1, JsxOptions } from 'oxc-transform';
18
19
  import { Options as Options$3 } from 'sucrase';
19
20
 
20
- type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
21
-
22
- /**
23
- Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
24
-
25
- @category Type
26
- */
27
- type Primitive =
28
- | null
29
- | undefined
30
- | string
31
- | number
32
- | boolean
33
- | symbol
34
- | bigint;
35
-
36
- declare global {
37
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
38
- interface SymbolConstructor {
39
- readonly observable: symbol;
40
- }
41
- }
42
-
43
- /**
44
- Allows creating a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union.
45
-
46
- Currently, when a union type of a primitive type is combined with literal types, TypeScript loses all information about the combined literals. Thus, when such type is used in an IDE with autocompletion, no suggestions are made for the declared literals.
47
-
48
- This type is a workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). It will be removed as soon as it's not needed anymore.
49
-
50
- @example
51
- ```
52
- import type {LiteralUnion} from 'type-fest';
53
-
54
- // Before
55
-
56
- type Pet = 'dog' | 'cat' | string;
57
-
58
- const pet: Pet = '';
59
- // Start typing in your TypeScript-enabled IDE.
60
- // You **will not** get auto-completion for `dog` and `cat` literals.
61
-
62
- // After
63
-
64
- type Pet2 = LiteralUnion<'dog' | 'cat', string>;
65
-
66
- const pet: Pet2 = '';
67
- // You **will** get auto-completion for `dog` and `cat` literals.
68
- ```
69
-
70
- @category Type
71
- */
72
- type LiteralUnion<
73
- LiteralType,
74
- BaseType extends Primitive,
75
- > = LiteralType | (BaseType & Record<never, never>);
76
-
77
- declare class InteractiveStreamHook {
78
- #private;
79
- static readonly DRAIN = true;
80
- constructor(stream: NodeJS.WriteStream);
81
- active(): void;
82
- erase(count: number): void;
83
- inactive(separateHistory?: boolean): void;
84
- renew(): void;
85
- write(message: string): void;
86
- }
87
-
88
- type StreamType = "stderr" | "stdout";
89
- declare class InteractiveManager {
90
- #private;
91
- constructor(stdout: InteractiveStreamHook, stderr: InteractiveStreamHook);
92
- get lastLength(): number;
93
- get outside(): number;
94
- get isHooked(): boolean;
95
- get isSuspended(): boolean;
96
- erase(stream: StreamType, count?: number): void;
97
- hook(): boolean;
98
- resume(stream: StreamType, eraseRowCount?: number): void;
99
- suspend(stream: StreamType, erase?: boolean): void;
100
- unhook(separateHistory?: boolean): boolean;
101
- update(stream: StreamType, rows: string[], from?: number): void;
102
- private _clear;
103
- }
104
-
105
- declare global {
106
- namespace VisulimaPail {
107
- interface CustomMeta<L> {
108
- }
109
- }
110
- }
111
- interface Meta<L> extends VisulimaPail.CustomMeta<L> {
112
- badge: string | undefined;
113
- context: any[] | undefined;
114
- date: Date | string;
115
- error: Error | undefined;
116
- groups: string[];
117
- label: string | undefined;
118
- message: Primitive | ReadonlyArray<unknown> | Record<PropertyKey, unknown>;
119
- prefix: string | undefined;
120
- repeated?: number | undefined;
121
- scope: string[] | undefined;
122
- suffix: string | undefined;
123
- traceError: Error | undefined;
124
- type: {
125
- level: ExtendedRfc5424LogLevels | L;
126
- name: string;
127
- };
128
- }
129
- type ExtendedRfc5424LogLevels = "alert" | "critical" | "debug" | "emergency" | "error" | "informational" | "notice" | "trace" | "warning";
130
- type DefaultLogTypes = "alert" | "await" | "complete" | "critical" | "debug" | "emergency" | "error" | "info" | "log" | "notice" | "pending" | "start" | "stop" | "success" | "trace" | "wait" | "warn" | "watch";
131
- interface LoggerFunction {
132
- (message: Message): void;
133
- (...message: any[]): void;
134
- }
135
- interface LoggerConfiguration<L extends string> {
136
- badge?: string;
137
- color?: AnsiColors | undefined;
138
- label: string;
139
- logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>;
140
- }
141
- type LoggerTypesConfig<T extends string, L extends string> = Record<T, Partial<LoggerConfiguration<L>>>;
142
- type ReadonlyMeta<L extends string> = Readonly<Meta<L>>;
143
- interface Reporter<L extends string> {
144
- log: (meta: ReadonlyMeta<L>) => void;
145
- }
146
- interface Processor<L extends string> {
147
- process: (meta: Meta<L>) => Meta<L>;
148
- }
149
- interface ConstructorOptions<T extends string, L extends string> {
150
- disabled?: boolean;
151
- logLevel?: LiteralUnion<ExtendedRfc5424LogLevels, L>;
152
- logLevels?: Partial<Record<ExtendedRfc5424LogLevels, number>> & Record<L, number>;
153
- messages?: {
154
- timerEnd?: string;
155
- timerStart?: string;
156
- };
157
- processors?: Processor<L>[];
158
- rawReporter?: Reporter<L>;
159
- reporters?: Reporter<L>[];
160
- scope?: string[] | string;
161
- throttle?: number;
162
- throttleMin?: number;
163
- types?: LoggerTypesConfig<T, L> & Partial<LoggerTypesConfig<DefaultLogTypes, L>>;
164
- }
165
- interface ServerConstructorOptions<T extends string, L extends string> extends ConstructorOptions<T, L> {
166
- interactive?: boolean;
167
- stderr: NodeJS.WriteStream;
168
- stdout: NodeJS.WriteStream;
169
- }
170
- type Message = {
171
- context?: any[] | undefined;
172
- message: any;
173
- prefix?: string;
174
- suffix?: string;
175
- };
176
-
177
- type Replacer = (number | string)[] | null | undefined | ((key: string, value: unknown) => string | number | boolean | null | object)
178
-
179
- interface StringifyOptions {
180
- bigint?: boolean,
181
- circularValue?: string | null | TypeErrorConstructor | ErrorConstructor,
182
- deterministic?: boolean | ((a: string, b: string) => number),
183
- maximumBreadth?: number,
184
- maximumDepth?: number,
185
- strict?: boolean,
186
- }
187
-
188
- declare function stringify(value: undefined | symbol | ((...args: unknown[]) => unknown), replacer?: Replacer, space?: string | number): undefined
189
- declare function stringify(value: string | number | unknown[] | null | boolean | object, replacer?: Replacer, space?: string | number): string
190
- declare function stringify(value: unknown, replacer?: ((key: string, value: unknown) => unknown) | (number | string)[] | null | undefined, space?: string | number): string | undefined
191
-
192
- declare namespace stringify {
193
- export function configure(options: StringifyOptions): typeof stringify
194
- }
195
-
196
- declare class PailBrowserImpl<T extends string = string, L extends string = string> {
197
- protected timersMap: Map<string, number>;
198
- protected countMap: Map<string, number>;
199
- protected seqTimers: Set<string>;
200
- protected readonly lastLog: {
201
- count?: number;
202
- object?: Meta<L>;
203
- serialized?: string;
204
- time?: Date;
205
- timeout?: ReturnType<typeof setTimeout>;
206
- };
207
- protected readonly logLevels: Record<string, number>;
208
- protected disabled: boolean;
209
- protected scopeName: string[];
210
- protected readonly types: LoggerTypesConfig<LiteralUnion<DefaultLogTypes, T>, L>;
211
- protected readonly longestLabel: string;
212
- protected readonly processors: Set<Processor<L>>;
213
- protected readonly generalLogLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>;
214
- protected reporters: Set<Reporter<L>>;
215
- protected readonly throttle: number;
216
- protected readonly throttleMin: number;
217
- protected readonly stringify: typeof stringify;
218
- protected groups: string[];
219
- protected readonly startTimerMessage: string;
220
- protected readonly endTimerMessage: string;
221
- protected rawReporter: Reporter<L>;
222
- constructor(options: ConstructorOptions<T, L>);
223
- wrapConsole(): void;
224
- restoreConsole(): void;
225
- wrapException(): void;
226
- disable(): void;
227
- enable(): void;
228
- isEnabled(): boolean;
229
- scope<N extends string = T>(...name: string[]): PailBrowserType<N, L>;
230
- unscope(): void;
231
- time(label?: string): void;
232
- timeLog(label?: string, ...data: unknown[]): void;
233
- timeEnd(label?: string): void;
234
- group(label?: string): void;
235
- groupEnd(): void;
236
- count(label?: string): void;
237
- countReset(label?: string): void;
238
- clear(): void;
239
- raw(message: string, ...arguments_: unknown[]): void;
240
- protected extendReporter(reporter: Reporter<L>): Reporter<L>;
241
- protected registerReporters(reporters: Reporter<L>[]): void;
242
- private _report;
243
- private registerProcessors;
244
- private _normalizeLogLevel;
245
- private _buildMeta;
246
- private _logger;
247
- }
248
- type PailBrowserType<T extends string = string, L extends string = string> = PailBrowserImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ConstructorOptions<TC, LC>) => PailBrowserType<TC, LC>);
249
-
250
- declare class PailServerImpl<T extends string = string, L extends string = string> extends PailBrowserImpl<T, L> {
251
- readonly options: ServerConstructorOptions<T, L>;
252
- protected readonly stdout: NodeJS.WriteStream;
253
- protected readonly stderr: NodeJS.WriteStream;
254
- protected interactiveManager: InteractiveManager | undefined;
255
- protected readonly interactive: boolean;
256
- constructor(options: ServerConstructorOptions<T, L>);
257
- scope<N extends string = T>(...name: string[]): PailServerType<N, L>;
258
- getInteractiveManager(): InteractiveManager | undefined;
259
- wrapStd(): void;
260
- restoreStd(): void;
261
- wrapAll(): void;
262
- restoreAll(): void;
263
- clear(): void;
264
- protected extendReporter(reporter: Reporter<L>): Reporter<L>;
265
- private _wrapStream;
266
- private _restoreStream;
267
- }
268
- type PailServerType<T extends string = string, L extends string = string> = PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>);
269
-
270
21
  interface CJSInteropOptions {
271
22
  addDefaultProperty?: boolean;
272
23
  }
@@ -4542,6 +4293,7 @@ interface PackemRollupOptions {
4542
4293
  jsxRemoveAttributes?: JSXRemoveAttributesPlugin | false;
4543
4294
  license?: LicenseOptions | false;
4544
4295
  metafile?: boolean;
4296
+ minifyHTMLLiterals?: MinifyHTMLLiteralsOptions | false;
4545
4297
  nativeModules?: NativeModulesOptions | false;
4546
4298
  output?: OutputOptions;
4547
4299
  oxc?: Omit<OXCTransformPluginConfig, "cwd" | "sourcemap" | "target"> | false;
@@ -4581,5 +4333,5 @@ type TransformerFn = ((config: EsbuildPluginConfig | InternalOXCTransformPluginC
4581
4333
  };
4582
4334
  type TransformerName = "esbuild" | "oxc" | "sucrase" | "swc";
4583
4335
 
4584
- export { patchTypescriptTypes as V, resolveTsconfigPathsPlugin as X, sucrasePlugin as a0, copyPlugin as b, cjsInteropPlugin as c, dataUriPlugin as d, debarrelPlugin as f, esmShimCjsSyntaxPlugin as g, requireCJSTransformerPlugin as h, isolatedDeclarationsPlugin as i, jsxRemoveAttributes as j, getShebang as k, license as l, makeExecutable as m, nativeModulesPlugin as n, removeShebangPlugin as o, sourcemapsPlugin as q, rawPlugin as r, shebangPlugin as s, urlPlugin as u };
4585
- export type { SucrasePluginConfig as $, EsbuildPluginConfig as A, Optimized as B, CJSInteropOptions as C, DataUriPluginOptions as D, EsmShimCjsSyntaxOptions as E, OptimizeDepsOptions as F, OptimizeDepsResult as G, Options$1 as H, IsolatedDeclarationsOptions as I, JSXRemoveAttributesPlugin as J, SwcPluginConfig as K, LicenseOptions as L, TsConfigResult as M, NativeModulesOptions as N, Options$2 as O, PailServerType as P, PatchTypesOptions as Q, RawLoaderOptions as R, ShebangOptions as S, TransformFunction as T, UrlOptions as U, TsconfigPathsPluginOptions as W, OxcResolveOptions as Y, InternalOXCTransformPluginConfig as Z, OXCTransformPluginConfig as _, CopyPluginOptions as a, DebarrelPluginOptions as e, SourcemapsPluginOptions as p, IsolatedDeclarationsResult as t, IsolatedDeclarationsTransformer as v, PackemRollupOptions as w, RollupPlugins as x, TransformerFn as y, TransformerName as z };
4336
+ export { sucrasePlugin as $, patchTypescriptTypes as Q, resolveTsconfigPathsPlugin as W, copyPlugin as b, cjsInteropPlugin as c, dataUriPlugin as d, debarrelPlugin as f, esmShimCjsSyntaxPlugin as g, requireCJSTransformerPlugin as h, isolatedDeclarationsPlugin as i, jsxRemoveAttributes as j, getShebang as k, license as l, makeExecutable as m, nativeModulesPlugin as n, removeShebangPlugin as o, sourcemapsPlugin as q, rawPlugin as r, shebangPlugin as s, urlPlugin as u };
4337
+ export type { Optimized as A, OptimizeDepsOptions as B, CJSInteropOptions as C, DataUriPluginOptions as D, EsmShimCjsSyntaxOptions as E, OptimizeDepsResult as F, Options$1 as G, SwcPluginConfig as H, IsolatedDeclarationsOptions as I, JSXRemoveAttributesPlugin as J, TsConfigResult as K, LicenseOptions as L, PatchTypesOptions as M, NativeModulesOptions as N, Options$2 as O, PackemRollupOptions as P, RawLoaderOptions as R, ShebangOptions as S, TransformFunction as T, UrlOptions as U, TsconfigPathsPluginOptions as V, OxcResolveOptions as X, InternalOXCTransformPluginConfig as Y, OXCTransformPluginConfig as Z, SucrasePluginConfig as _, CopyPluginOptions as a, DebarrelPluginOptions as e, SourcemapsPluginOptions as p, IsolatedDeclarationsResult as t, IsolatedDeclarationsTransformer as v, RollupPlugins as w, TransformerFn as x, TransformerName as y, EsbuildPluginConfig as z };
@@ -10,6 +10,7 @@ import { Options as Options$4 } from 'rollup-plugin-dts';
10
10
  import { NodePolyfillsOptions } from 'rollup-plugin-polyfill-node';
11
11
  import { PureAnnotationsOptions } from 'rollup-plugin-pure';
12
12
  import { PluginVisualizerOptions } from 'rollup-plugin-visualizer';
13
+ import { P as PailServerType } from './index.server.d-DhMawQMd.js';
13
14
  import { TransformOptions, Loader, BuildOptions } from 'esbuild';
14
15
  import { PackageJson } from '@visulima/package';
15
16
  import { BuildContext } from '@visulima/packem-share/types';
@@ -17,256 +18,6 @@ import { NapiResolveOptions } from 'oxc-resolver';
17
18
  import { TransformOptions as TransformOptions$1, JsxOptions } from 'oxc-transform';
18
19
  import { Options as Options$3 } from 'sucrase';
19
20
 
20
- type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
21
-
22
- /**
23
- Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
24
-
25
- @category Type
26
- */
27
- type Primitive =
28
- | null
29
- | undefined
30
- | string
31
- | number
32
- | boolean
33
- | symbol
34
- | bigint;
35
-
36
- declare global {
37
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
38
- interface SymbolConstructor {
39
- readonly observable: symbol;
40
- }
41
- }
42
-
43
- /**
44
- Allows creating a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union.
45
-
46
- Currently, when a union type of a primitive type is combined with literal types, TypeScript loses all information about the combined literals. Thus, when such type is used in an IDE with autocompletion, no suggestions are made for the declared literals.
47
-
48
- This type is a workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). It will be removed as soon as it's not needed anymore.
49
-
50
- @example
51
- ```
52
- import type {LiteralUnion} from 'type-fest';
53
-
54
- // Before
55
-
56
- type Pet = 'dog' | 'cat' | string;
57
-
58
- const pet: Pet = '';
59
- // Start typing in your TypeScript-enabled IDE.
60
- // You **will not** get auto-completion for `dog` and `cat` literals.
61
-
62
- // After
63
-
64
- type Pet2 = LiteralUnion<'dog' | 'cat', string>;
65
-
66
- const pet: Pet2 = '';
67
- // You **will** get auto-completion for `dog` and `cat` literals.
68
- ```
69
-
70
- @category Type
71
- */
72
- type LiteralUnion<
73
- LiteralType,
74
- BaseType extends Primitive,
75
- > = LiteralType | (BaseType & Record<never, never>);
76
-
77
- declare class InteractiveStreamHook {
78
- #private;
79
- static readonly DRAIN = true;
80
- constructor(stream: NodeJS.WriteStream);
81
- active(): void;
82
- erase(count: number): void;
83
- inactive(separateHistory?: boolean): void;
84
- renew(): void;
85
- write(message: string): void;
86
- }
87
-
88
- type StreamType = "stderr" | "stdout";
89
- declare class InteractiveManager {
90
- #private;
91
- constructor(stdout: InteractiveStreamHook, stderr: InteractiveStreamHook);
92
- get lastLength(): number;
93
- get outside(): number;
94
- get isHooked(): boolean;
95
- get isSuspended(): boolean;
96
- erase(stream: StreamType, count?: number): void;
97
- hook(): boolean;
98
- resume(stream: StreamType, eraseRowCount?: number): void;
99
- suspend(stream: StreamType, erase?: boolean): void;
100
- unhook(separateHistory?: boolean): boolean;
101
- update(stream: StreamType, rows: string[], from?: number): void;
102
- private _clear;
103
- }
104
-
105
- declare global {
106
- namespace VisulimaPail {
107
- interface CustomMeta<L> {
108
- }
109
- }
110
- }
111
- interface Meta<L> extends VisulimaPail.CustomMeta<L> {
112
- badge: string | undefined;
113
- context: any[] | undefined;
114
- date: Date | string;
115
- error: Error | undefined;
116
- groups: string[];
117
- label: string | undefined;
118
- message: Primitive | ReadonlyArray<unknown> | Record<PropertyKey, unknown>;
119
- prefix: string | undefined;
120
- repeated?: number | undefined;
121
- scope: string[] | undefined;
122
- suffix: string | undefined;
123
- traceError: Error | undefined;
124
- type: {
125
- level: ExtendedRfc5424LogLevels | L;
126
- name: string;
127
- };
128
- }
129
- type ExtendedRfc5424LogLevels = "alert" | "critical" | "debug" | "emergency" | "error" | "informational" | "notice" | "trace" | "warning";
130
- type DefaultLogTypes = "alert" | "await" | "complete" | "critical" | "debug" | "emergency" | "error" | "info" | "log" | "notice" | "pending" | "start" | "stop" | "success" | "trace" | "wait" | "warn" | "watch";
131
- interface LoggerFunction {
132
- (message: Message): void;
133
- (...message: any[]): void;
134
- }
135
- interface LoggerConfiguration<L extends string> {
136
- badge?: string;
137
- color?: AnsiColors | undefined;
138
- label: string;
139
- logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>;
140
- }
141
- type LoggerTypesConfig<T extends string, L extends string> = Record<T, Partial<LoggerConfiguration<L>>>;
142
- type ReadonlyMeta<L extends string> = Readonly<Meta<L>>;
143
- interface Reporter<L extends string> {
144
- log: (meta: ReadonlyMeta<L>) => void;
145
- }
146
- interface Processor<L extends string> {
147
- process: (meta: Meta<L>) => Meta<L>;
148
- }
149
- interface ConstructorOptions<T extends string, L extends string> {
150
- disabled?: boolean;
151
- logLevel?: LiteralUnion<ExtendedRfc5424LogLevels, L>;
152
- logLevels?: Partial<Record<ExtendedRfc5424LogLevels, number>> & Record<L, number>;
153
- messages?: {
154
- timerEnd?: string;
155
- timerStart?: string;
156
- };
157
- processors?: Processor<L>[];
158
- rawReporter?: Reporter<L>;
159
- reporters?: Reporter<L>[];
160
- scope?: string[] | string;
161
- throttle?: number;
162
- throttleMin?: number;
163
- types?: LoggerTypesConfig<T, L> & Partial<LoggerTypesConfig<DefaultLogTypes, L>>;
164
- }
165
- interface ServerConstructorOptions<T extends string, L extends string> extends ConstructorOptions<T, L> {
166
- interactive?: boolean;
167
- stderr: NodeJS.WriteStream;
168
- stdout: NodeJS.WriteStream;
169
- }
170
- type Message = {
171
- context?: any[] | undefined;
172
- message: any;
173
- prefix?: string;
174
- suffix?: string;
175
- };
176
-
177
- type Replacer = (number | string)[] | null | undefined | ((key: string, value: unknown) => string | number | boolean | null | object)
178
-
179
- interface StringifyOptions {
180
- bigint?: boolean,
181
- circularValue?: string | null | TypeErrorConstructor | ErrorConstructor,
182
- deterministic?: boolean | ((a: string, b: string) => number),
183
- maximumBreadth?: number,
184
- maximumDepth?: number,
185
- strict?: boolean,
186
- }
187
-
188
- declare function stringify(value: undefined | symbol | ((...args: unknown[]) => unknown), replacer?: Replacer, space?: string | number): undefined
189
- declare function stringify(value: string | number | unknown[] | null | boolean | object, replacer?: Replacer, space?: string | number): string
190
- declare function stringify(value: unknown, replacer?: ((key: string, value: unknown) => unknown) | (number | string)[] | null | undefined, space?: string | number): string | undefined
191
-
192
- declare namespace stringify {
193
- export function configure(options: StringifyOptions): typeof stringify
194
- }
195
-
196
- declare class PailBrowserImpl<T extends string = string, L extends string = string> {
197
- protected timersMap: Map<string, number>;
198
- protected countMap: Map<string, number>;
199
- protected seqTimers: Set<string>;
200
- protected readonly lastLog: {
201
- count?: number;
202
- object?: Meta<L>;
203
- serialized?: string;
204
- time?: Date;
205
- timeout?: ReturnType<typeof setTimeout>;
206
- };
207
- protected readonly logLevels: Record<string, number>;
208
- protected disabled: boolean;
209
- protected scopeName: string[];
210
- protected readonly types: LoggerTypesConfig<LiteralUnion<DefaultLogTypes, T>, L>;
211
- protected readonly longestLabel: string;
212
- protected readonly processors: Set<Processor<L>>;
213
- protected readonly generalLogLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>;
214
- protected reporters: Set<Reporter<L>>;
215
- protected readonly throttle: number;
216
- protected readonly throttleMin: number;
217
- protected readonly stringify: typeof stringify;
218
- protected groups: string[];
219
- protected readonly startTimerMessage: string;
220
- protected readonly endTimerMessage: string;
221
- protected rawReporter: Reporter<L>;
222
- constructor(options: ConstructorOptions<T, L>);
223
- wrapConsole(): void;
224
- restoreConsole(): void;
225
- wrapException(): void;
226
- disable(): void;
227
- enable(): void;
228
- isEnabled(): boolean;
229
- scope<N extends string = T>(...name: string[]): PailBrowserType<N, L>;
230
- unscope(): void;
231
- time(label?: string): void;
232
- timeLog(label?: string, ...data: unknown[]): void;
233
- timeEnd(label?: string): void;
234
- group(label?: string): void;
235
- groupEnd(): void;
236
- count(label?: string): void;
237
- countReset(label?: string): void;
238
- clear(): void;
239
- raw(message: string, ...arguments_: unknown[]): void;
240
- protected extendReporter(reporter: Reporter<L>): Reporter<L>;
241
- protected registerReporters(reporters: Reporter<L>[]): void;
242
- private _report;
243
- private registerProcessors;
244
- private _normalizeLogLevel;
245
- private _buildMeta;
246
- private _logger;
247
- }
248
- type PailBrowserType<T extends string = string, L extends string = string> = PailBrowserImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ConstructorOptions<TC, LC>) => PailBrowserType<TC, LC>);
249
-
250
- declare class PailServerImpl<T extends string = string, L extends string = string> extends PailBrowserImpl<T, L> {
251
- readonly options: ServerConstructorOptions<T, L>;
252
- protected readonly stdout: NodeJS.WriteStream;
253
- protected readonly stderr: NodeJS.WriteStream;
254
- protected interactiveManager: InteractiveManager | undefined;
255
- protected readonly interactive: boolean;
256
- constructor(options: ServerConstructorOptions<T, L>);
257
- scope<N extends string = T>(...name: string[]): PailServerType<N, L>;
258
- getInteractiveManager(): InteractiveManager | undefined;
259
- wrapStd(): void;
260
- restoreStd(): void;
261
- wrapAll(): void;
262
- restoreAll(): void;
263
- clear(): void;
264
- protected extendReporter(reporter: Reporter<L>): Reporter<L>;
265
- private _wrapStream;
266
- private _restoreStream;
267
- }
268
- type PailServerType<T extends string = string, L extends string = string> = PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>);
269
-
270
21
  interface CJSInteropOptions {
271
22
  addDefaultProperty?: boolean;
272
23
  }
@@ -4542,6 +4293,7 @@ interface PackemRollupOptions {
4542
4293
  jsxRemoveAttributes?: JSXRemoveAttributesPlugin | false;
4543
4294
  license?: LicenseOptions | false;
4544
4295
  metafile?: boolean;
4296
+ minifyHTMLLiterals?: MinifyHTMLLiteralsOptions | false;
4545
4297
  nativeModules?: NativeModulesOptions | false;
4546
4298
  output?: OutputOptions;
4547
4299
  oxc?: Omit<OXCTransformPluginConfig, "cwd" | "sourcemap" | "target"> | false;
@@ -4581,5 +4333,5 @@ type TransformerFn = ((config: EsbuildPluginConfig | InternalOXCTransformPluginC
4581
4333
  };
4582
4334
  type TransformerName = "esbuild" | "oxc" | "sucrase" | "swc";
4583
4335
 
4584
- export { patchTypescriptTypes as V, resolveTsconfigPathsPlugin as X, sucrasePlugin as a0, copyPlugin as b, cjsInteropPlugin as c, dataUriPlugin as d, debarrelPlugin as f, esmShimCjsSyntaxPlugin as g, requireCJSTransformerPlugin as h, isolatedDeclarationsPlugin as i, jsxRemoveAttributes as j, getShebang as k, license as l, makeExecutable as m, nativeModulesPlugin as n, removeShebangPlugin as o, sourcemapsPlugin as q, rawPlugin as r, shebangPlugin as s, urlPlugin as u };
4585
- export type { SucrasePluginConfig as $, EsbuildPluginConfig as A, Optimized as B, CJSInteropOptions as C, DataUriPluginOptions as D, EsmShimCjsSyntaxOptions as E, OptimizeDepsOptions as F, OptimizeDepsResult as G, Options$1 as H, IsolatedDeclarationsOptions as I, JSXRemoveAttributesPlugin as J, SwcPluginConfig as K, LicenseOptions as L, TsConfigResult as M, NativeModulesOptions as N, Options$2 as O, PailServerType as P, PatchTypesOptions as Q, RawLoaderOptions as R, ShebangOptions as S, TransformFunction as T, UrlOptions as U, TsconfigPathsPluginOptions as W, OxcResolveOptions as Y, InternalOXCTransformPluginConfig as Z, OXCTransformPluginConfig as _, CopyPluginOptions as a, DebarrelPluginOptions as e, SourcemapsPluginOptions as p, IsolatedDeclarationsResult as t, IsolatedDeclarationsTransformer as v, PackemRollupOptions as w, RollupPlugins as x, TransformerFn as y, TransformerName as z };
4336
+ export { sucrasePlugin as $, patchTypescriptTypes as Q, resolveTsconfigPathsPlugin as W, copyPlugin as b, cjsInteropPlugin as c, dataUriPlugin as d, debarrelPlugin as f, esmShimCjsSyntaxPlugin as g, requireCJSTransformerPlugin as h, isolatedDeclarationsPlugin as i, jsxRemoveAttributes as j, getShebang as k, license as l, makeExecutable as m, nativeModulesPlugin as n, removeShebangPlugin as o, sourcemapsPlugin as q, rawPlugin as r, shebangPlugin as s, urlPlugin as u };
4337
+ export type { Optimized as A, OptimizeDepsOptions as B, CJSInteropOptions as C, DataUriPluginOptions as D, EsmShimCjsSyntaxOptions as E, OptimizeDepsResult as F, Options$1 as G, SwcPluginConfig as H, IsolatedDeclarationsOptions as I, JSXRemoveAttributesPlugin as J, TsConfigResult as K, LicenseOptions as L, PatchTypesOptions as M, NativeModulesOptions as N, Options$2 as O, PackemRollupOptions as P, RawLoaderOptions as R, ShebangOptions as S, TransformFunction as T, UrlOptions as U, TsconfigPathsPluginOptions as V, OxcResolveOptions as X, InternalOXCTransformPluginConfig as Y, OXCTransformPluginConfig as Z, SucrasePluginConfig as _, CopyPluginOptions as a, DebarrelPluginOptions as e, SourcemapsPluginOptions as p, IsolatedDeclarationsResult as t, IsolatedDeclarationsTransformer as v, RollupPlugins as w, TransformerFn as x, TransformerName as y, EsbuildPluginConfig as z };
@@ -1,6 +1,6 @@
1
1
  export { b as browserslistToEsbuild } from '../../packem_shared/browserslist-to-esbuild-DY9HwYtp.mjs';
2
- import { y as TransformerFn } from '../../packem_shared/types-h27kdghe.mjs';
3
- export { A as EsbuildPluginConfig, F as OptimizeDepsOptions, G as OptimizeDepsResult, B as Optimized, H as Options } from '../../packem_shared/types-h27kdghe.mjs';
2
+ import { x as TransformerFn } from '../../packem_shared/types-BK7k04DQ.mjs';
3
+ export { z as EsbuildPluginConfig, B as OptimizeDepsOptions, F as OptimizeDepsResult, A as Optimized, G as Options } from '../../packem_shared/types-BK7k04DQ.mjs';
4
4
  import '@rollup/plugin-alias';
5
5
  import '@rollup/plugin-commonjs';
6
6
  import '@rollup/plugin-json';
@@ -13,6 +13,7 @@ import 'rollup-plugin-dts';
13
13
  import 'rollup-plugin-polyfill-node';
14
14
  import 'rollup-plugin-pure';
15
15
  import 'rollup-plugin-visualizer';
16
+ import '../../packem_shared/index.server.d-DhMawQMd.mjs';
16
17
  import 'esbuild';
17
18
  import '@visulima/package';
18
19
  import '@visulima/packem-share/types';
@@ -1,6 +1,6 @@
1
1
  export { b as browserslistToEsbuild } from '../../packem_shared/browserslist-to-esbuild-DY9HwYtp.js';
2
- import { y as TransformerFn } from '../../packem_shared/types-h27kdghe.js';
3
- export { A as EsbuildPluginConfig, F as OptimizeDepsOptions, G as OptimizeDepsResult, B as Optimized, H as Options } from '../../packem_shared/types-h27kdghe.js';
2
+ import { x as TransformerFn } from '../../packem_shared/types-DvaEike_.js';
3
+ export { z as EsbuildPluginConfig, B as OptimizeDepsOptions, F as OptimizeDepsResult, A as Optimized, G as Options } from '../../packem_shared/types-DvaEike_.js';
4
4
  import '@rollup/plugin-alias';
5
5
  import '@rollup/plugin-commonjs';
6
6
  import '@rollup/plugin-json';
@@ -13,6 +13,7 @@ import 'rollup-plugin-dts';
13
13
  import 'rollup-plugin-polyfill-node';
14
14
  import 'rollup-plugin-pure';
15
15
  import 'rollup-plugin-visualizer';
16
+ import '../../packem_shared/index.server.d-DhMawQMd.js';
16
17
  import 'esbuild';
17
18
  import '@visulima/package';
18
19
  import '@visulima/packem-share/types';