@utilix-tech/sdk 0.1.0
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/LICENSE +21 -0
- package/README.md +199 -0
- package/dist/api-8aZtWhSj.d.cts +308 -0
- package/dist/api-8aZtWhSj.d.ts +308 -0
- package/dist/chunk-2CJSLYWI.js +520 -0
- package/dist/chunk-3BAHSW4C.js +1385 -0
- package/dist/chunk-6YPV2AB5.js +1246 -0
- package/dist/chunk-BPVAB4P2.js +1126 -0
- package/dist/chunk-FL53T24A.js +257 -0
- package/dist/chunk-L6KCTHUW.js +1086 -0
- package/dist/chunk-MLKGABMK.js +7 -0
- package/dist/chunk-ROTPLW7T.js +265 -0
- package/dist/chunk-TSAGO3XP.js +1253 -0
- package/dist/chunk-UC656APA.js +1080 -0
- package/dist/chunk-W4UBLYFU.js +1219 -0
- package/dist/chunk-XST6X3HT.js +896 -0
- package/dist/chunk-XXYZLLHI.js +2227 -0
- package/dist/chunk-ZKL2VX2G.js +2215 -0
- package/dist/chunk-ZPQZEIXP.js +685 -0
- package/dist/code-QNrdLIR3.d.cts +327 -0
- package/dist/code-QNrdLIR3.d.ts +327 -0
- package/dist/color-tPwZCr9H.d.cts +229 -0
- package/dist/color-tPwZCr9H.d.ts +229 -0
- package/dist/css-Cf7AMGM-.d.cts +318 -0
- package/dist/css-Cf7AMGM-.d.ts +318 -0
- package/dist/data-rMjWNiOJ.d.cts +215 -0
- package/dist/data-rMjWNiOJ.d.ts +215 -0
- package/dist/encoding-7gmq-vkV.d.cts +108 -0
- package/dist/encoding-7gmq-vkV.d.ts +108 -0
- package/dist/generators-BGtRGpJZ.d.cts +118 -0
- package/dist/generators-BGtRGpJZ.d.ts +118 -0
- package/dist/hashing-CnetQFD_.d.cts +76 -0
- package/dist/hashing-CnetQFD_.d.ts +76 -0
- package/dist/index.cjs +15466 -0
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +20 -0
- package/dist/json-BjSoIS1h.d.cts +198 -0
- package/dist/json-BjSoIS1h.d.ts +198 -0
- package/dist/misc-DcVBManm.d.cts +201 -0
- package/dist/misc-DcVBManm.d.ts +201 -0
- package/dist/network-CNtmrDeN.d.cts +170 -0
- package/dist/network-CNtmrDeN.d.ts +170 -0
- package/dist/text-DqAjPtQ0.d.cts +319 -0
- package/dist/text-DqAjPtQ0.d.ts +319 -0
- package/dist/time-DbT8fjaF.d.cts +145 -0
- package/dist/time-DbT8fjaF.d.ts +145 -0
- package/dist/tools/api.cjs +1216 -0
- package/dist/tools/api.d.cts +1 -0
- package/dist/tools/api.d.ts +1 -0
- package/dist/tools/api.js +2 -0
- package/dist/tools/code.cjs +2212 -0
- package/dist/tools/code.d.cts +1 -0
- package/dist/tools/code.d.ts +1 -0
- package/dist/tools/code.js +2 -0
- package/dist/tools/color.cjs +1122 -0
- package/dist/tools/color.d.cts +1 -0
- package/dist/tools/color.d.ts +1 -0
- package/dist/tools/color.js +2 -0
- package/dist/tools/css.cjs +1242 -0
- package/dist/tools/css.d.cts +1 -0
- package/dist/tools/css.d.ts +1 -0
- package/dist/tools/css.js +2 -0
- package/dist/tools/data.cjs +1097 -0
- package/dist/tools/data.d.cts +1 -0
- package/dist/tools/data.d.ts +1 -0
- package/dist/tools/data.js +2 -0
- package/dist/tools/encoding.cjs +261 -0
- package/dist/tools/encoding.d.cts +1 -0
- package/dist/tools/encoding.d.ts +1 -0
- package/dist/tools/encoding.js +2 -0
- package/dist/tools/generators.cjs +521 -0
- package/dist/tools/generators.d.cts +1 -0
- package/dist/tools/generators.d.ts +1 -0
- package/dist/tools/generators.js +2 -0
- package/dist/tools/hashing.cjs +259 -0
- package/dist/tools/hashing.d.cts +1 -0
- package/dist/tools/hashing.d.ts +1 -0
- package/dist/tools/hashing.js +2 -0
- package/dist/tools/json.cjs +1270 -0
- package/dist/tools/json.d.cts +1 -0
- package/dist/tools/json.d.ts +1 -0
- package/dist/tools/json.js +2 -0
- package/dist/tools/misc.cjs +1082 -0
- package/dist/tools/misc.d.cts +1 -0
- package/dist/tools/misc.d.ts +1 -0
- package/dist/tools/misc.js +2 -0
- package/dist/tools/network.cjs +1381 -0
- package/dist/tools/network.d.cts +1 -0
- package/dist/tools/network.d.ts +1 -0
- package/dist/tools/network.js +2 -0
- package/dist/tools/text.cjs +2224 -0
- package/dist/tools/text.d.cts +1 -0
- package/dist/tools/text.d.ts +1 -0
- package/dist/tools/text.js +2 -0
- package/dist/tools/time.cjs +681 -0
- package/dist/tools/time.d.cts +1 -0
- package/dist/tools/time.d.ts +1 -0
- package/dist/tools/time.js +2 -0
- package/dist/tools/units.cjs +892 -0
- package/dist/tools/units.d.cts +1 -0
- package/dist/tools/units.d.ts +1 -0
- package/dist/tools/units.js +2 -0
- package/dist/units-6lwDYBvX.d.cts +302 -0
- package/dist/units-6lwDYBvX.d.ts +302 -0
- package/package.json +148 -0
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module code
|
|
3
|
+
* Tools covered:
|
|
4
|
+
* - regex-tester (testRegex, buildSegments)
|
|
5
|
+
* - regex-cheatsheet (testPattern, searchCheatsheet, CHEATSHEET)
|
|
6
|
+
* - sql-formatter (formatSql, minifySql, detectDialect, splitStatements)
|
|
7
|
+
* - html-formatter (formatHtml)
|
|
8
|
+
* - html-minifier (minifyHtml — two variants merged, removeHtmlComments,
|
|
9
|
+
* collapseWhitespace, removeEmptyAttributes,
|
|
10
|
+
* removeRedundantAttributes, getHtmlStats)
|
|
11
|
+
* - graphql-formatter (formatGql, minifyGql, detectOperationType)
|
|
12
|
+
* - git-builder (buildGitCommand, parseGitCommand, OPERATIONS)
|
|
13
|
+
* - docker-image-parser (parseDockerImage, buildDockerPull, buildDockerRun,
|
|
14
|
+
* isValidTag, normalizeRef)
|
|
15
|
+
* - js-minifier (minifyJs, removeJsComments, collapseJsWhitespace,
|
|
16
|
+
* removeConsoleCalls, getJsStats)
|
|
17
|
+
* - openapi-viewer (parseSpec, getEndpointsByTag, searchEndpoints, getMethodColor)
|
|
18
|
+
* - env-parser (parseEnv, envToJson, envToExport, validateEnvKey)
|
|
19
|
+
*/
|
|
20
|
+
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
21
|
+
declare const ALL_FLAGS: RegexFlag[];
|
|
22
|
+
interface RegexMatch {
|
|
23
|
+
fullMatch: string;
|
|
24
|
+
index: number;
|
|
25
|
+
groups: string[];
|
|
26
|
+
namedGroups: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
interface RegexSuccess {
|
|
29
|
+
ok: true;
|
|
30
|
+
matches: RegexMatch[];
|
|
31
|
+
matchCount: number;
|
|
32
|
+
segments: Segment[];
|
|
33
|
+
}
|
|
34
|
+
interface RegexError {
|
|
35
|
+
ok: false;
|
|
36
|
+
error: string;
|
|
37
|
+
}
|
|
38
|
+
type RegexResult = RegexSuccess | RegexError;
|
|
39
|
+
interface Segment {
|
|
40
|
+
text: string;
|
|
41
|
+
matched: boolean;
|
|
42
|
+
matchIndex: number;
|
|
43
|
+
}
|
|
44
|
+
declare function testRegex(pattern: string, flags: RegexFlag[], input: string): RegexResult;
|
|
45
|
+
interface CheatsheetEntry {
|
|
46
|
+
pattern: string;
|
|
47
|
+
description: string;
|
|
48
|
+
example: string;
|
|
49
|
+
category: string;
|
|
50
|
+
}
|
|
51
|
+
declare const CHEATSHEET: CheatsheetEntry[];
|
|
52
|
+
interface MatchResult {
|
|
53
|
+
value: string;
|
|
54
|
+
index: number;
|
|
55
|
+
groups?: Record<string, string>;
|
|
56
|
+
}
|
|
57
|
+
interface TestPatternResult {
|
|
58
|
+
matches: MatchResult[];
|
|
59
|
+
isValid: boolean;
|
|
60
|
+
error?: string;
|
|
61
|
+
}
|
|
62
|
+
declare function testPattern(pattern: string, flags: string, text: string): TestPatternResult;
|
|
63
|
+
declare function searchCheatsheet(query: string): CheatsheetEntry[];
|
|
64
|
+
type SqlDialect = 'generic' | 'mysql' | 'postgresql' | 'sqlite';
|
|
65
|
+
interface SqlFormatOptions {
|
|
66
|
+
indent: number;
|
|
67
|
+
uppercase: boolean;
|
|
68
|
+
linesBetweenQueries: number;
|
|
69
|
+
}
|
|
70
|
+
declare const SQL_DEFAULT_OPTIONS: SqlFormatOptions;
|
|
71
|
+
declare function formatSql(sql: string, options?: Partial<SqlFormatOptions>): string;
|
|
72
|
+
declare function minifySql(sql: string): string;
|
|
73
|
+
declare function detectDialect(sql: string): SqlDialect;
|
|
74
|
+
declare function splitStatements(sql: string): string[];
|
|
75
|
+
interface HtmlFormatResult {
|
|
76
|
+
output: string;
|
|
77
|
+
originalSize: number;
|
|
78
|
+
outputSize: number;
|
|
79
|
+
savings: number;
|
|
80
|
+
}
|
|
81
|
+
declare function formatHtml(input: string, indentSize?: number): HtmlFormatResult;
|
|
82
|
+
interface HtmlMinifyOptions {
|
|
83
|
+
removeComments?: boolean;
|
|
84
|
+
collapseWhitespace?: boolean;
|
|
85
|
+
removeEmptyAttributes?: boolean;
|
|
86
|
+
removeRedundantAttributes?: boolean;
|
|
87
|
+
minifyInlineCSS?: boolean;
|
|
88
|
+
minifyInlineJS?: boolean;
|
|
89
|
+
}
|
|
90
|
+
interface HtmlMinifyResult {
|
|
91
|
+
original: string;
|
|
92
|
+
minified: string;
|
|
93
|
+
originalSize: number;
|
|
94
|
+
minifiedSize: number;
|
|
95
|
+
savedBytes: number;
|
|
96
|
+
savedPercent: number;
|
|
97
|
+
}
|
|
98
|
+
declare function removeHtmlComments(html: string): string;
|
|
99
|
+
declare function collapseHtmlWhitespace(html: string): string;
|
|
100
|
+
declare function removeEmptyAttributes(html: string): string;
|
|
101
|
+
declare function removeRedundantAttributes(html: string): string;
|
|
102
|
+
declare function minifyHtml(html: string, options?: HtmlMinifyOptions): HtmlMinifyResult;
|
|
103
|
+
declare function getHtmlStats(html: string): {
|
|
104
|
+
tags: number;
|
|
105
|
+
attributes: number;
|
|
106
|
+
textNodes: number;
|
|
107
|
+
};
|
|
108
|
+
interface GqlFormatResult {
|
|
109
|
+
output: string;
|
|
110
|
+
valid: boolean;
|
|
111
|
+
error?: string;
|
|
112
|
+
}
|
|
113
|
+
declare function formatGql(input: string, indentSize?: number): GqlFormatResult;
|
|
114
|
+
declare function minifyGql(input: string): GqlFormatResult;
|
|
115
|
+
declare function detectOperationType(input: string): 'query' | 'mutation' | 'subscription' | 'fragment' | 'unknown';
|
|
116
|
+
type GitOperation = 'commit' | 'branch' | 'checkout' | 'merge' | 'rebase' | 'stash' | 'tag' | 'remote' | 'reset' | 'cherry-pick' | 'log' | 'diff' | 'clone' | 'push' | 'pull' | 'fetch';
|
|
117
|
+
interface GitCommandConfig {
|
|
118
|
+
operation: GitOperation;
|
|
119
|
+
options: Record<string, string | boolean | number>;
|
|
120
|
+
}
|
|
121
|
+
interface GitCommandResult {
|
|
122
|
+
command: string;
|
|
123
|
+
explanation: string;
|
|
124
|
+
flags: string[];
|
|
125
|
+
}
|
|
126
|
+
declare const OPERATIONS: Array<{
|
|
127
|
+
value: GitOperation;
|
|
128
|
+
label: string;
|
|
129
|
+
description: string;
|
|
130
|
+
options: Array<{
|
|
131
|
+
key: string;
|
|
132
|
+
label: string;
|
|
133
|
+
type: 'string' | 'boolean' | 'number';
|
|
134
|
+
flag: string;
|
|
135
|
+
default?: string | boolean | number;
|
|
136
|
+
required?: boolean;
|
|
137
|
+
}>;
|
|
138
|
+
}>;
|
|
139
|
+
declare function buildGitCommand(config: GitCommandConfig): GitCommandResult | {
|
|
140
|
+
error: string;
|
|
141
|
+
};
|
|
142
|
+
declare function parseGitCommand(command: string): GitCommandConfig | {
|
|
143
|
+
error: string;
|
|
144
|
+
};
|
|
145
|
+
interface DockerImageRef {
|
|
146
|
+
registry: string;
|
|
147
|
+
namespace: string;
|
|
148
|
+
repository: string;
|
|
149
|
+
tag: string;
|
|
150
|
+
digest: string;
|
|
151
|
+
isOfficial: boolean;
|
|
152
|
+
}
|
|
153
|
+
declare function parseDockerImage(ref: string): DockerImageRef | {
|
|
154
|
+
error: string;
|
|
155
|
+
};
|
|
156
|
+
declare function buildDockerPull(parsed: DockerImageRef): string;
|
|
157
|
+
declare function buildDockerRun(parsed: DockerImageRef, containerName?: string): string;
|
|
158
|
+
declare function isValidTag(tag: string): boolean;
|
|
159
|
+
declare function normalizeRef(ref: string): string;
|
|
160
|
+
interface JsMinifyOptions {
|
|
161
|
+
removeComments?: boolean;
|
|
162
|
+
collapseWhitespace?: boolean;
|
|
163
|
+
removeConsole?: boolean;
|
|
164
|
+
removeSemicolons?: boolean;
|
|
165
|
+
mangle?: boolean;
|
|
166
|
+
}
|
|
167
|
+
interface JsMinifyResult {
|
|
168
|
+
original: string;
|
|
169
|
+
minified: string;
|
|
170
|
+
originalSize: number;
|
|
171
|
+
minifiedSize: number;
|
|
172
|
+
savedBytes: number;
|
|
173
|
+
savedPercent: number;
|
|
174
|
+
}
|
|
175
|
+
declare function removeJsComments(code: string): string;
|
|
176
|
+
declare function collapseJsWhitespace(code: string): string;
|
|
177
|
+
declare function removeConsoleCalls(code: string): string;
|
|
178
|
+
declare function getJsStats(code: string): {
|
|
179
|
+
lines: number;
|
|
180
|
+
chars: number;
|
|
181
|
+
functions: number;
|
|
182
|
+
variables: number;
|
|
183
|
+
};
|
|
184
|
+
declare function minifyJs(code: string, options?: JsMinifyOptions): JsMinifyResult;
|
|
185
|
+
type SpecVersion = 'openapi-3' | 'swagger-2' | 'unknown';
|
|
186
|
+
interface ApiEndpoint {
|
|
187
|
+
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
188
|
+
path: string;
|
|
189
|
+
summary?: string;
|
|
190
|
+
description?: string;
|
|
191
|
+
tags: string[];
|
|
192
|
+
parameters: Array<{
|
|
193
|
+
name: string;
|
|
194
|
+
in: string;
|
|
195
|
+
required: boolean;
|
|
196
|
+
description?: string;
|
|
197
|
+
schema?: object;
|
|
198
|
+
}>;
|
|
199
|
+
requestBody?: {
|
|
200
|
+
required: boolean;
|
|
201
|
+
contentTypes: string[];
|
|
202
|
+
};
|
|
203
|
+
responses: Record<string, {
|
|
204
|
+
description: string;
|
|
205
|
+
contentTypes: string[];
|
|
206
|
+
}>;
|
|
207
|
+
deprecated: boolean;
|
|
208
|
+
}
|
|
209
|
+
interface ApiInfo {
|
|
210
|
+
title: string;
|
|
211
|
+
version: string;
|
|
212
|
+
description?: string;
|
|
213
|
+
baseUrl?: string;
|
|
214
|
+
}
|
|
215
|
+
interface ParsedSpec {
|
|
216
|
+
version: SpecVersion;
|
|
217
|
+
info: ApiInfo;
|
|
218
|
+
endpoints: ApiEndpoint[];
|
|
219
|
+
tags: string[];
|
|
220
|
+
schemas: string[];
|
|
221
|
+
}
|
|
222
|
+
declare function parseSpec(input: string): ParsedSpec | {
|
|
223
|
+
error: string;
|
|
224
|
+
};
|
|
225
|
+
declare function getEndpointsByTag(spec: ParsedSpec, tag: string): ApiEndpoint[];
|
|
226
|
+
declare function searchEndpoints(spec: ParsedSpec, query: string): ApiEndpoint[];
|
|
227
|
+
declare function getMethodColor(method: string): string;
|
|
228
|
+
interface EnvEntry {
|
|
229
|
+
key: string;
|
|
230
|
+
value: string;
|
|
231
|
+
line: number;
|
|
232
|
+
hasQuotes: boolean;
|
|
233
|
+
interpolated: boolean;
|
|
234
|
+
comment?: string;
|
|
235
|
+
}
|
|
236
|
+
interface EnvParseResult {
|
|
237
|
+
entries: EnvEntry[];
|
|
238
|
+
comments: Array<{
|
|
239
|
+
line: number;
|
|
240
|
+
text: string;
|
|
241
|
+
}>;
|
|
242
|
+
errors: Array<{
|
|
243
|
+
line: number;
|
|
244
|
+
message: string;
|
|
245
|
+
}>;
|
|
246
|
+
duplicates: string[];
|
|
247
|
+
}
|
|
248
|
+
declare function parseEnv(input: string): EnvParseResult;
|
|
249
|
+
declare function envToJson(input: string): string | {
|
|
250
|
+
error: string;
|
|
251
|
+
};
|
|
252
|
+
declare function envToExport(input: string): string;
|
|
253
|
+
declare function validateEnvKey(key: string): boolean;
|
|
254
|
+
|
|
255
|
+
declare const code_ALL_FLAGS: typeof ALL_FLAGS;
|
|
256
|
+
type code_ApiEndpoint = ApiEndpoint;
|
|
257
|
+
type code_ApiInfo = ApiInfo;
|
|
258
|
+
declare const code_CHEATSHEET: typeof CHEATSHEET;
|
|
259
|
+
type code_CheatsheetEntry = CheatsheetEntry;
|
|
260
|
+
type code_DockerImageRef = DockerImageRef;
|
|
261
|
+
type code_EnvEntry = EnvEntry;
|
|
262
|
+
type code_EnvParseResult = EnvParseResult;
|
|
263
|
+
type code_GitCommandConfig = GitCommandConfig;
|
|
264
|
+
type code_GitCommandResult = GitCommandResult;
|
|
265
|
+
type code_GitOperation = GitOperation;
|
|
266
|
+
type code_GqlFormatResult = GqlFormatResult;
|
|
267
|
+
type code_HtmlFormatResult = HtmlFormatResult;
|
|
268
|
+
type code_HtmlMinifyOptions = HtmlMinifyOptions;
|
|
269
|
+
type code_HtmlMinifyResult = HtmlMinifyResult;
|
|
270
|
+
type code_JsMinifyOptions = JsMinifyOptions;
|
|
271
|
+
type code_JsMinifyResult = JsMinifyResult;
|
|
272
|
+
type code_MatchResult = MatchResult;
|
|
273
|
+
declare const code_OPERATIONS: typeof OPERATIONS;
|
|
274
|
+
type code_ParsedSpec = ParsedSpec;
|
|
275
|
+
type code_RegexError = RegexError;
|
|
276
|
+
type code_RegexFlag = RegexFlag;
|
|
277
|
+
type code_RegexMatch = RegexMatch;
|
|
278
|
+
type code_RegexResult = RegexResult;
|
|
279
|
+
type code_RegexSuccess = RegexSuccess;
|
|
280
|
+
declare const code_SQL_DEFAULT_OPTIONS: typeof SQL_DEFAULT_OPTIONS;
|
|
281
|
+
type code_Segment = Segment;
|
|
282
|
+
type code_SpecVersion = SpecVersion;
|
|
283
|
+
type code_SqlDialect = SqlDialect;
|
|
284
|
+
type code_SqlFormatOptions = SqlFormatOptions;
|
|
285
|
+
type code_TestPatternResult = TestPatternResult;
|
|
286
|
+
declare const code_buildDockerPull: typeof buildDockerPull;
|
|
287
|
+
declare const code_buildDockerRun: typeof buildDockerRun;
|
|
288
|
+
declare const code_buildGitCommand: typeof buildGitCommand;
|
|
289
|
+
declare const code_collapseHtmlWhitespace: typeof collapseHtmlWhitespace;
|
|
290
|
+
declare const code_collapseJsWhitespace: typeof collapseJsWhitespace;
|
|
291
|
+
declare const code_detectDialect: typeof detectDialect;
|
|
292
|
+
declare const code_detectOperationType: typeof detectOperationType;
|
|
293
|
+
declare const code_envToExport: typeof envToExport;
|
|
294
|
+
declare const code_envToJson: typeof envToJson;
|
|
295
|
+
declare const code_formatGql: typeof formatGql;
|
|
296
|
+
declare const code_formatHtml: typeof formatHtml;
|
|
297
|
+
declare const code_formatSql: typeof formatSql;
|
|
298
|
+
declare const code_getEndpointsByTag: typeof getEndpointsByTag;
|
|
299
|
+
declare const code_getHtmlStats: typeof getHtmlStats;
|
|
300
|
+
declare const code_getJsStats: typeof getJsStats;
|
|
301
|
+
declare const code_getMethodColor: typeof getMethodColor;
|
|
302
|
+
declare const code_isValidTag: typeof isValidTag;
|
|
303
|
+
declare const code_minifyGql: typeof minifyGql;
|
|
304
|
+
declare const code_minifyHtml: typeof minifyHtml;
|
|
305
|
+
declare const code_minifyJs: typeof minifyJs;
|
|
306
|
+
declare const code_minifySql: typeof minifySql;
|
|
307
|
+
declare const code_normalizeRef: typeof normalizeRef;
|
|
308
|
+
declare const code_parseDockerImage: typeof parseDockerImage;
|
|
309
|
+
declare const code_parseEnv: typeof parseEnv;
|
|
310
|
+
declare const code_parseGitCommand: typeof parseGitCommand;
|
|
311
|
+
declare const code_parseSpec: typeof parseSpec;
|
|
312
|
+
declare const code_removeConsoleCalls: typeof removeConsoleCalls;
|
|
313
|
+
declare const code_removeEmptyAttributes: typeof removeEmptyAttributes;
|
|
314
|
+
declare const code_removeHtmlComments: typeof removeHtmlComments;
|
|
315
|
+
declare const code_removeJsComments: typeof removeJsComments;
|
|
316
|
+
declare const code_removeRedundantAttributes: typeof removeRedundantAttributes;
|
|
317
|
+
declare const code_searchCheatsheet: typeof searchCheatsheet;
|
|
318
|
+
declare const code_searchEndpoints: typeof searchEndpoints;
|
|
319
|
+
declare const code_splitStatements: typeof splitStatements;
|
|
320
|
+
declare const code_testPattern: typeof testPattern;
|
|
321
|
+
declare const code_testRegex: typeof testRegex;
|
|
322
|
+
declare const code_validateEnvKey: typeof validateEnvKey;
|
|
323
|
+
declare namespace code {
|
|
324
|
+
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_DockerImageRef as DockerImageRef, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, type code_MatchResult as MatchResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_envToExport as envToExport, code_envToJson as envToJson, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEnvKey as validateEnvKey };
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export { normalizeRef as $, ALL_FLAGS as A, envToExport as B, CHEATSHEET as C, type DockerImageRef as D, type EnvEntry as E, envToJson as F, type GitCommandConfig as G, type HtmlFormatResult as H, formatGql as I, type JsMinifyOptions as J, formatHtml as K, formatSql as L, type MatchResult as M, getEndpointsByTag as N, OPERATIONS as O, type ParsedSpec as P, getHtmlStats as Q, type RegexError as R, SQL_DEFAULT_OPTIONS as S, type TestPatternResult as T, getJsStats as U, getMethodColor as V, isValidTag as W, minifyGql as X, minifyHtml as Y, minifyJs as Z, minifySql as _, type ApiEndpoint as a, parseDockerImage as a0, parseEnv as a1, parseGitCommand as a2, parseSpec as a3, removeConsoleCalls as a4, removeEmptyAttributes as a5, removeHtmlComments as a6, removeJsComments as a7, removeRedundantAttributes as a8, searchCheatsheet as a9, searchEndpoints as aa, splitStatements as ab, testPattern as ac, testRegex as ad, validateEnvKey as ae, type ApiInfo as b, code as c, type CheatsheetEntry as d, type EnvParseResult as e, type GitCommandResult as f, type GitOperation as g, type GqlFormatResult as h, type HtmlMinifyOptions as i, type HtmlMinifyResult as j, type JsMinifyResult as k, type RegexFlag as l, type RegexMatch as m, type RegexResult as n, type RegexSuccess as o, type Segment as p, type SpecVersion as q, type SqlDialect as r, type SqlFormatOptions as s, buildDockerPull as t, buildDockerRun as u, buildGitCommand as v, collapseHtmlWhitespace as w, collapseJsWhitespace as x, detectDialect as y, detectOperationType as z };
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module code
|
|
3
|
+
* Tools covered:
|
|
4
|
+
* - regex-tester (testRegex, buildSegments)
|
|
5
|
+
* - regex-cheatsheet (testPattern, searchCheatsheet, CHEATSHEET)
|
|
6
|
+
* - sql-formatter (formatSql, minifySql, detectDialect, splitStatements)
|
|
7
|
+
* - html-formatter (formatHtml)
|
|
8
|
+
* - html-minifier (minifyHtml — two variants merged, removeHtmlComments,
|
|
9
|
+
* collapseWhitespace, removeEmptyAttributes,
|
|
10
|
+
* removeRedundantAttributes, getHtmlStats)
|
|
11
|
+
* - graphql-formatter (formatGql, minifyGql, detectOperationType)
|
|
12
|
+
* - git-builder (buildGitCommand, parseGitCommand, OPERATIONS)
|
|
13
|
+
* - docker-image-parser (parseDockerImage, buildDockerPull, buildDockerRun,
|
|
14
|
+
* isValidTag, normalizeRef)
|
|
15
|
+
* - js-minifier (minifyJs, removeJsComments, collapseJsWhitespace,
|
|
16
|
+
* removeConsoleCalls, getJsStats)
|
|
17
|
+
* - openapi-viewer (parseSpec, getEndpointsByTag, searchEndpoints, getMethodColor)
|
|
18
|
+
* - env-parser (parseEnv, envToJson, envToExport, validateEnvKey)
|
|
19
|
+
*/
|
|
20
|
+
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
21
|
+
declare const ALL_FLAGS: RegexFlag[];
|
|
22
|
+
interface RegexMatch {
|
|
23
|
+
fullMatch: string;
|
|
24
|
+
index: number;
|
|
25
|
+
groups: string[];
|
|
26
|
+
namedGroups: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
interface RegexSuccess {
|
|
29
|
+
ok: true;
|
|
30
|
+
matches: RegexMatch[];
|
|
31
|
+
matchCount: number;
|
|
32
|
+
segments: Segment[];
|
|
33
|
+
}
|
|
34
|
+
interface RegexError {
|
|
35
|
+
ok: false;
|
|
36
|
+
error: string;
|
|
37
|
+
}
|
|
38
|
+
type RegexResult = RegexSuccess | RegexError;
|
|
39
|
+
interface Segment {
|
|
40
|
+
text: string;
|
|
41
|
+
matched: boolean;
|
|
42
|
+
matchIndex: number;
|
|
43
|
+
}
|
|
44
|
+
declare function testRegex(pattern: string, flags: RegexFlag[], input: string): RegexResult;
|
|
45
|
+
interface CheatsheetEntry {
|
|
46
|
+
pattern: string;
|
|
47
|
+
description: string;
|
|
48
|
+
example: string;
|
|
49
|
+
category: string;
|
|
50
|
+
}
|
|
51
|
+
declare const CHEATSHEET: CheatsheetEntry[];
|
|
52
|
+
interface MatchResult {
|
|
53
|
+
value: string;
|
|
54
|
+
index: number;
|
|
55
|
+
groups?: Record<string, string>;
|
|
56
|
+
}
|
|
57
|
+
interface TestPatternResult {
|
|
58
|
+
matches: MatchResult[];
|
|
59
|
+
isValid: boolean;
|
|
60
|
+
error?: string;
|
|
61
|
+
}
|
|
62
|
+
declare function testPattern(pattern: string, flags: string, text: string): TestPatternResult;
|
|
63
|
+
declare function searchCheatsheet(query: string): CheatsheetEntry[];
|
|
64
|
+
type SqlDialect = 'generic' | 'mysql' | 'postgresql' | 'sqlite';
|
|
65
|
+
interface SqlFormatOptions {
|
|
66
|
+
indent: number;
|
|
67
|
+
uppercase: boolean;
|
|
68
|
+
linesBetweenQueries: number;
|
|
69
|
+
}
|
|
70
|
+
declare const SQL_DEFAULT_OPTIONS: SqlFormatOptions;
|
|
71
|
+
declare function formatSql(sql: string, options?: Partial<SqlFormatOptions>): string;
|
|
72
|
+
declare function minifySql(sql: string): string;
|
|
73
|
+
declare function detectDialect(sql: string): SqlDialect;
|
|
74
|
+
declare function splitStatements(sql: string): string[];
|
|
75
|
+
interface HtmlFormatResult {
|
|
76
|
+
output: string;
|
|
77
|
+
originalSize: number;
|
|
78
|
+
outputSize: number;
|
|
79
|
+
savings: number;
|
|
80
|
+
}
|
|
81
|
+
declare function formatHtml(input: string, indentSize?: number): HtmlFormatResult;
|
|
82
|
+
interface HtmlMinifyOptions {
|
|
83
|
+
removeComments?: boolean;
|
|
84
|
+
collapseWhitespace?: boolean;
|
|
85
|
+
removeEmptyAttributes?: boolean;
|
|
86
|
+
removeRedundantAttributes?: boolean;
|
|
87
|
+
minifyInlineCSS?: boolean;
|
|
88
|
+
minifyInlineJS?: boolean;
|
|
89
|
+
}
|
|
90
|
+
interface HtmlMinifyResult {
|
|
91
|
+
original: string;
|
|
92
|
+
minified: string;
|
|
93
|
+
originalSize: number;
|
|
94
|
+
minifiedSize: number;
|
|
95
|
+
savedBytes: number;
|
|
96
|
+
savedPercent: number;
|
|
97
|
+
}
|
|
98
|
+
declare function removeHtmlComments(html: string): string;
|
|
99
|
+
declare function collapseHtmlWhitespace(html: string): string;
|
|
100
|
+
declare function removeEmptyAttributes(html: string): string;
|
|
101
|
+
declare function removeRedundantAttributes(html: string): string;
|
|
102
|
+
declare function minifyHtml(html: string, options?: HtmlMinifyOptions): HtmlMinifyResult;
|
|
103
|
+
declare function getHtmlStats(html: string): {
|
|
104
|
+
tags: number;
|
|
105
|
+
attributes: number;
|
|
106
|
+
textNodes: number;
|
|
107
|
+
};
|
|
108
|
+
interface GqlFormatResult {
|
|
109
|
+
output: string;
|
|
110
|
+
valid: boolean;
|
|
111
|
+
error?: string;
|
|
112
|
+
}
|
|
113
|
+
declare function formatGql(input: string, indentSize?: number): GqlFormatResult;
|
|
114
|
+
declare function minifyGql(input: string): GqlFormatResult;
|
|
115
|
+
declare function detectOperationType(input: string): 'query' | 'mutation' | 'subscription' | 'fragment' | 'unknown';
|
|
116
|
+
type GitOperation = 'commit' | 'branch' | 'checkout' | 'merge' | 'rebase' | 'stash' | 'tag' | 'remote' | 'reset' | 'cherry-pick' | 'log' | 'diff' | 'clone' | 'push' | 'pull' | 'fetch';
|
|
117
|
+
interface GitCommandConfig {
|
|
118
|
+
operation: GitOperation;
|
|
119
|
+
options: Record<string, string | boolean | number>;
|
|
120
|
+
}
|
|
121
|
+
interface GitCommandResult {
|
|
122
|
+
command: string;
|
|
123
|
+
explanation: string;
|
|
124
|
+
flags: string[];
|
|
125
|
+
}
|
|
126
|
+
declare const OPERATIONS: Array<{
|
|
127
|
+
value: GitOperation;
|
|
128
|
+
label: string;
|
|
129
|
+
description: string;
|
|
130
|
+
options: Array<{
|
|
131
|
+
key: string;
|
|
132
|
+
label: string;
|
|
133
|
+
type: 'string' | 'boolean' | 'number';
|
|
134
|
+
flag: string;
|
|
135
|
+
default?: string | boolean | number;
|
|
136
|
+
required?: boolean;
|
|
137
|
+
}>;
|
|
138
|
+
}>;
|
|
139
|
+
declare function buildGitCommand(config: GitCommandConfig): GitCommandResult | {
|
|
140
|
+
error: string;
|
|
141
|
+
};
|
|
142
|
+
declare function parseGitCommand(command: string): GitCommandConfig | {
|
|
143
|
+
error: string;
|
|
144
|
+
};
|
|
145
|
+
interface DockerImageRef {
|
|
146
|
+
registry: string;
|
|
147
|
+
namespace: string;
|
|
148
|
+
repository: string;
|
|
149
|
+
tag: string;
|
|
150
|
+
digest: string;
|
|
151
|
+
isOfficial: boolean;
|
|
152
|
+
}
|
|
153
|
+
declare function parseDockerImage(ref: string): DockerImageRef | {
|
|
154
|
+
error: string;
|
|
155
|
+
};
|
|
156
|
+
declare function buildDockerPull(parsed: DockerImageRef): string;
|
|
157
|
+
declare function buildDockerRun(parsed: DockerImageRef, containerName?: string): string;
|
|
158
|
+
declare function isValidTag(tag: string): boolean;
|
|
159
|
+
declare function normalizeRef(ref: string): string;
|
|
160
|
+
interface JsMinifyOptions {
|
|
161
|
+
removeComments?: boolean;
|
|
162
|
+
collapseWhitespace?: boolean;
|
|
163
|
+
removeConsole?: boolean;
|
|
164
|
+
removeSemicolons?: boolean;
|
|
165
|
+
mangle?: boolean;
|
|
166
|
+
}
|
|
167
|
+
interface JsMinifyResult {
|
|
168
|
+
original: string;
|
|
169
|
+
minified: string;
|
|
170
|
+
originalSize: number;
|
|
171
|
+
minifiedSize: number;
|
|
172
|
+
savedBytes: number;
|
|
173
|
+
savedPercent: number;
|
|
174
|
+
}
|
|
175
|
+
declare function removeJsComments(code: string): string;
|
|
176
|
+
declare function collapseJsWhitespace(code: string): string;
|
|
177
|
+
declare function removeConsoleCalls(code: string): string;
|
|
178
|
+
declare function getJsStats(code: string): {
|
|
179
|
+
lines: number;
|
|
180
|
+
chars: number;
|
|
181
|
+
functions: number;
|
|
182
|
+
variables: number;
|
|
183
|
+
};
|
|
184
|
+
declare function minifyJs(code: string, options?: JsMinifyOptions): JsMinifyResult;
|
|
185
|
+
type SpecVersion = 'openapi-3' | 'swagger-2' | 'unknown';
|
|
186
|
+
interface ApiEndpoint {
|
|
187
|
+
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
188
|
+
path: string;
|
|
189
|
+
summary?: string;
|
|
190
|
+
description?: string;
|
|
191
|
+
tags: string[];
|
|
192
|
+
parameters: Array<{
|
|
193
|
+
name: string;
|
|
194
|
+
in: string;
|
|
195
|
+
required: boolean;
|
|
196
|
+
description?: string;
|
|
197
|
+
schema?: object;
|
|
198
|
+
}>;
|
|
199
|
+
requestBody?: {
|
|
200
|
+
required: boolean;
|
|
201
|
+
contentTypes: string[];
|
|
202
|
+
};
|
|
203
|
+
responses: Record<string, {
|
|
204
|
+
description: string;
|
|
205
|
+
contentTypes: string[];
|
|
206
|
+
}>;
|
|
207
|
+
deprecated: boolean;
|
|
208
|
+
}
|
|
209
|
+
interface ApiInfo {
|
|
210
|
+
title: string;
|
|
211
|
+
version: string;
|
|
212
|
+
description?: string;
|
|
213
|
+
baseUrl?: string;
|
|
214
|
+
}
|
|
215
|
+
interface ParsedSpec {
|
|
216
|
+
version: SpecVersion;
|
|
217
|
+
info: ApiInfo;
|
|
218
|
+
endpoints: ApiEndpoint[];
|
|
219
|
+
tags: string[];
|
|
220
|
+
schemas: string[];
|
|
221
|
+
}
|
|
222
|
+
declare function parseSpec(input: string): ParsedSpec | {
|
|
223
|
+
error: string;
|
|
224
|
+
};
|
|
225
|
+
declare function getEndpointsByTag(spec: ParsedSpec, tag: string): ApiEndpoint[];
|
|
226
|
+
declare function searchEndpoints(spec: ParsedSpec, query: string): ApiEndpoint[];
|
|
227
|
+
declare function getMethodColor(method: string): string;
|
|
228
|
+
interface EnvEntry {
|
|
229
|
+
key: string;
|
|
230
|
+
value: string;
|
|
231
|
+
line: number;
|
|
232
|
+
hasQuotes: boolean;
|
|
233
|
+
interpolated: boolean;
|
|
234
|
+
comment?: string;
|
|
235
|
+
}
|
|
236
|
+
interface EnvParseResult {
|
|
237
|
+
entries: EnvEntry[];
|
|
238
|
+
comments: Array<{
|
|
239
|
+
line: number;
|
|
240
|
+
text: string;
|
|
241
|
+
}>;
|
|
242
|
+
errors: Array<{
|
|
243
|
+
line: number;
|
|
244
|
+
message: string;
|
|
245
|
+
}>;
|
|
246
|
+
duplicates: string[];
|
|
247
|
+
}
|
|
248
|
+
declare function parseEnv(input: string): EnvParseResult;
|
|
249
|
+
declare function envToJson(input: string): string | {
|
|
250
|
+
error: string;
|
|
251
|
+
};
|
|
252
|
+
declare function envToExport(input: string): string;
|
|
253
|
+
declare function validateEnvKey(key: string): boolean;
|
|
254
|
+
|
|
255
|
+
declare const code_ALL_FLAGS: typeof ALL_FLAGS;
|
|
256
|
+
type code_ApiEndpoint = ApiEndpoint;
|
|
257
|
+
type code_ApiInfo = ApiInfo;
|
|
258
|
+
declare const code_CHEATSHEET: typeof CHEATSHEET;
|
|
259
|
+
type code_CheatsheetEntry = CheatsheetEntry;
|
|
260
|
+
type code_DockerImageRef = DockerImageRef;
|
|
261
|
+
type code_EnvEntry = EnvEntry;
|
|
262
|
+
type code_EnvParseResult = EnvParseResult;
|
|
263
|
+
type code_GitCommandConfig = GitCommandConfig;
|
|
264
|
+
type code_GitCommandResult = GitCommandResult;
|
|
265
|
+
type code_GitOperation = GitOperation;
|
|
266
|
+
type code_GqlFormatResult = GqlFormatResult;
|
|
267
|
+
type code_HtmlFormatResult = HtmlFormatResult;
|
|
268
|
+
type code_HtmlMinifyOptions = HtmlMinifyOptions;
|
|
269
|
+
type code_HtmlMinifyResult = HtmlMinifyResult;
|
|
270
|
+
type code_JsMinifyOptions = JsMinifyOptions;
|
|
271
|
+
type code_JsMinifyResult = JsMinifyResult;
|
|
272
|
+
type code_MatchResult = MatchResult;
|
|
273
|
+
declare const code_OPERATIONS: typeof OPERATIONS;
|
|
274
|
+
type code_ParsedSpec = ParsedSpec;
|
|
275
|
+
type code_RegexError = RegexError;
|
|
276
|
+
type code_RegexFlag = RegexFlag;
|
|
277
|
+
type code_RegexMatch = RegexMatch;
|
|
278
|
+
type code_RegexResult = RegexResult;
|
|
279
|
+
type code_RegexSuccess = RegexSuccess;
|
|
280
|
+
declare const code_SQL_DEFAULT_OPTIONS: typeof SQL_DEFAULT_OPTIONS;
|
|
281
|
+
type code_Segment = Segment;
|
|
282
|
+
type code_SpecVersion = SpecVersion;
|
|
283
|
+
type code_SqlDialect = SqlDialect;
|
|
284
|
+
type code_SqlFormatOptions = SqlFormatOptions;
|
|
285
|
+
type code_TestPatternResult = TestPatternResult;
|
|
286
|
+
declare const code_buildDockerPull: typeof buildDockerPull;
|
|
287
|
+
declare const code_buildDockerRun: typeof buildDockerRun;
|
|
288
|
+
declare const code_buildGitCommand: typeof buildGitCommand;
|
|
289
|
+
declare const code_collapseHtmlWhitespace: typeof collapseHtmlWhitespace;
|
|
290
|
+
declare const code_collapseJsWhitespace: typeof collapseJsWhitespace;
|
|
291
|
+
declare const code_detectDialect: typeof detectDialect;
|
|
292
|
+
declare const code_detectOperationType: typeof detectOperationType;
|
|
293
|
+
declare const code_envToExport: typeof envToExport;
|
|
294
|
+
declare const code_envToJson: typeof envToJson;
|
|
295
|
+
declare const code_formatGql: typeof formatGql;
|
|
296
|
+
declare const code_formatHtml: typeof formatHtml;
|
|
297
|
+
declare const code_formatSql: typeof formatSql;
|
|
298
|
+
declare const code_getEndpointsByTag: typeof getEndpointsByTag;
|
|
299
|
+
declare const code_getHtmlStats: typeof getHtmlStats;
|
|
300
|
+
declare const code_getJsStats: typeof getJsStats;
|
|
301
|
+
declare const code_getMethodColor: typeof getMethodColor;
|
|
302
|
+
declare const code_isValidTag: typeof isValidTag;
|
|
303
|
+
declare const code_minifyGql: typeof minifyGql;
|
|
304
|
+
declare const code_minifyHtml: typeof minifyHtml;
|
|
305
|
+
declare const code_minifyJs: typeof minifyJs;
|
|
306
|
+
declare const code_minifySql: typeof minifySql;
|
|
307
|
+
declare const code_normalizeRef: typeof normalizeRef;
|
|
308
|
+
declare const code_parseDockerImage: typeof parseDockerImage;
|
|
309
|
+
declare const code_parseEnv: typeof parseEnv;
|
|
310
|
+
declare const code_parseGitCommand: typeof parseGitCommand;
|
|
311
|
+
declare const code_parseSpec: typeof parseSpec;
|
|
312
|
+
declare const code_removeConsoleCalls: typeof removeConsoleCalls;
|
|
313
|
+
declare const code_removeEmptyAttributes: typeof removeEmptyAttributes;
|
|
314
|
+
declare const code_removeHtmlComments: typeof removeHtmlComments;
|
|
315
|
+
declare const code_removeJsComments: typeof removeJsComments;
|
|
316
|
+
declare const code_removeRedundantAttributes: typeof removeRedundantAttributes;
|
|
317
|
+
declare const code_searchCheatsheet: typeof searchCheatsheet;
|
|
318
|
+
declare const code_searchEndpoints: typeof searchEndpoints;
|
|
319
|
+
declare const code_splitStatements: typeof splitStatements;
|
|
320
|
+
declare const code_testPattern: typeof testPattern;
|
|
321
|
+
declare const code_testRegex: typeof testRegex;
|
|
322
|
+
declare const code_validateEnvKey: typeof validateEnvKey;
|
|
323
|
+
declare namespace code {
|
|
324
|
+
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_DockerImageRef as DockerImageRef, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, type code_MatchResult as MatchResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_envToExport as envToExport, code_envToJson as envToJson, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEnvKey as validateEnvKey };
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export { normalizeRef as $, ALL_FLAGS as A, envToExport as B, CHEATSHEET as C, type DockerImageRef as D, type EnvEntry as E, envToJson as F, type GitCommandConfig as G, type HtmlFormatResult as H, formatGql as I, type JsMinifyOptions as J, formatHtml as K, formatSql as L, type MatchResult as M, getEndpointsByTag as N, OPERATIONS as O, type ParsedSpec as P, getHtmlStats as Q, type RegexError as R, SQL_DEFAULT_OPTIONS as S, type TestPatternResult as T, getJsStats as U, getMethodColor as V, isValidTag as W, minifyGql as X, minifyHtml as Y, minifyJs as Z, minifySql as _, type ApiEndpoint as a, parseDockerImage as a0, parseEnv as a1, parseGitCommand as a2, parseSpec as a3, removeConsoleCalls as a4, removeEmptyAttributes as a5, removeHtmlComments as a6, removeJsComments as a7, removeRedundantAttributes as a8, searchCheatsheet as a9, searchEndpoints as aa, splitStatements as ab, testPattern as ac, testRegex as ad, validateEnvKey as ae, type ApiInfo as b, code as c, type CheatsheetEntry as d, type EnvParseResult as e, type GitCommandResult as f, type GitOperation as g, type GqlFormatResult as h, type HtmlMinifyOptions as i, type HtmlMinifyResult as j, type JsMinifyResult as k, type RegexFlag as l, type RegexMatch as m, type RegexResult as n, type RegexSuccess as o, type Segment as p, type SpecVersion as q, type SqlDialect as r, type SqlFormatOptions as s, buildDockerPull as t, buildDockerRun as u, buildGitCommand as v, collapseHtmlWhitespace as w, collapseJsWhitespace as x, detectDialect as y, detectOperationType as z };
|