@utilix-tech/sdk 0.79.0 → 0.81.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/CHANGELOG.md +8 -0
- package/README.md +24 -4
- package/dist/{chunk-XT2BQWXT.js → chunk-FPFA4ZHC.js} +393 -1
- package/dist/{chunk-34C6GXCC.js → chunk-WUOZHCIC.js} +217 -1
- package/dist/{code-46xO9xFf.d.cts → code-B8yHwP3m.d.cts} +83 -2
- package/dist/{code-46xO9xFf.d.ts → code-B8yHwP3m.d.ts} +83 -2
- package/dist/index.cjs +608 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{json-CaiYsGDQ.d.cts → json-Ca6gZCNB.d.cts} +45 -2
- package/dist/{json-CaiYsGDQ.d.ts → json-Ca6gZCNB.d.ts} +45 -2
- package/dist/tools/code.cjs +392 -0
- package/dist/tools/code.d.cts +1 -1
- package/dist/tools/code.d.ts +1 -1
- package/dist/tools/code.js +1 -1
- package/dist/tools/json.cjs +216 -0
- package/dist/tools/json.d.cts +1 -1
- package/dist/tools/json.d.ts +1 -1
- package/dist/tools/json.js +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* - json-to-zod : jsonToZod
|
|
16
16
|
* - json-schema-to-typescript : jsonSchemaToTypescript
|
|
17
17
|
* - json-merge-patch : mergeJsonPatch, applyJsonMergePatch
|
|
18
|
+
* - json-patch : diffJsonPatch, applyJsonPatch, generateJsonPatch
|
|
18
19
|
*/
|
|
19
20
|
type ParseStatus = 'idle' | 'valid' | 'error';
|
|
20
21
|
interface JsonParseResult {
|
|
@@ -220,6 +221,43 @@ declare function mergeJsonPatch(target: unknown, patch: unknown): unknown;
|
|
|
220
221
|
declare function applyJsonMergePatch(targetJson: string, patchJson: string): MergePatchResult | {
|
|
221
222
|
error: string;
|
|
222
223
|
};
|
|
224
|
+
type JsonPatchOp = 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test';
|
|
225
|
+
interface JsonPatchOperation {
|
|
226
|
+
op: JsonPatchOp;
|
|
227
|
+
path: string;
|
|
228
|
+
value?: unknown;
|
|
229
|
+
from?: string;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Generates a minimal (naive, index-by-index for arrays) RFC 6902 JSON
|
|
233
|
+
* Patch document describing how to transform `a` into `b`. Object keys
|
|
234
|
+
* produce add/remove/replace; arrays are compared position by position,
|
|
235
|
+
* with removes emitted from the highest index down and adds appended at
|
|
236
|
+
* the end, so the resulting patch applies correctly in order. This is not
|
|
237
|
+
* a minimal-edit-distance diff (it won't detect a reordering as a move) —
|
|
238
|
+
* just a direct, deterministic structural comparison.
|
|
239
|
+
*/
|
|
240
|
+
declare function diffJsonPatch(a: unknown, b: unknown): JsonPatchOperation[];
|
|
241
|
+
/**
|
|
242
|
+
* Applies a sequence of RFC 6902 JSON Patch operations to a target
|
|
243
|
+
* document and returns the result, or an error naming the failing
|
|
244
|
+
* operation's index. Supports add, remove, replace, move, copy, and test.
|
|
245
|
+
* The input document is not mutated.
|
|
246
|
+
*/
|
|
247
|
+
declare function applyJsonPatch(target: unknown, operations: JsonPatchOperation[]): {
|
|
248
|
+
result: unknown;
|
|
249
|
+
} | {
|
|
250
|
+
error: string;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Convenience wrapper: diffs two JSON documents given as strings and
|
|
254
|
+
* returns the generated RFC 6902 patch, or a parse error.
|
|
255
|
+
*/
|
|
256
|
+
declare function generateJsonPatch(aJson: string, bJson: string): {
|
|
257
|
+
patch: JsonPatchOperation[];
|
|
258
|
+
} | {
|
|
259
|
+
error: string;
|
|
260
|
+
};
|
|
223
261
|
|
|
224
262
|
type json_ConvertOptions = ConvertOptions;
|
|
225
263
|
type json_CsvOptions = CsvOptions;
|
|
@@ -229,6 +267,8 @@ type json_GoField = GoField;
|
|
|
229
267
|
type json_GoStruct = GoStruct;
|
|
230
268
|
type json_JsonDiffResult = JsonDiffResult;
|
|
231
269
|
type json_JsonParseResult = JsonParseResult;
|
|
270
|
+
type json_JsonPatchOp = JsonPatchOp;
|
|
271
|
+
type json_JsonPatchOperation = JsonPatchOperation;
|
|
232
272
|
type json_JsonPathResult = JsonPathResult;
|
|
233
273
|
type json_JsonPointerResult = JsonPointerResult;
|
|
234
274
|
type json_JsonSchemaLike = JsonSchemaLike;
|
|
@@ -242,13 +282,16 @@ type json_ValidationError = ValidationError;
|
|
|
242
282
|
type json_ValidationResult = ValidationResult;
|
|
243
283
|
type json_ZodOptions = ZodOptions;
|
|
244
284
|
declare const json_applyJsonMergePatch: typeof applyJsonMergePatch;
|
|
285
|
+
declare const json_applyJsonPatch: typeof applyJsonPatch;
|
|
245
286
|
declare const json_csvToJson: typeof csvToJson;
|
|
246
287
|
declare const json_detectFormat: typeof detectFormat;
|
|
247
288
|
declare const json_diffJson: typeof diffJson;
|
|
289
|
+
declare const json_diffJsonPatch: typeof diffJsonPatch;
|
|
248
290
|
declare const json_evaluateJsonPath: typeof evaluateJsonPath;
|
|
249
291
|
declare const json_formatDiffLine: typeof formatDiffLine;
|
|
250
292
|
declare const json_formatJson: typeof formatJson;
|
|
251
293
|
declare const json_generateExample: typeof generateExample;
|
|
294
|
+
declare const json_generateJsonPatch: typeof generateJsonPatch;
|
|
252
295
|
declare const json_getJsonStats: typeof getJsonStats;
|
|
253
296
|
declare const json_inferGoType: typeof inferGoType;
|
|
254
297
|
declare const json_inferPythonType: typeof inferPythonType;
|
|
@@ -272,7 +315,7 @@ declare const json_validateJsonPath: typeof validateJsonPath;
|
|
|
272
315
|
declare const json_validateJsonString: typeof validateJsonString;
|
|
273
316
|
declare const json_yamlToJson: typeof yamlToJson;
|
|
274
317
|
declare namespace json {
|
|
275
|
-
export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_JsonSchemaLike as JsonSchemaLike, type json_JsonSchemaToTsOptions as JsonSchemaToTsOptions, type json_MergePatchResult as MergePatchResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_applyJsonMergePatch as applyJsonMergePatch, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonSchemaToTypescript as jsonSchemaToTypescript, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_mergeJsonPatch as mergeJsonPatch, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
|
|
318
|
+
export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPatchOp as JsonPatchOp, type json_JsonPatchOperation as JsonPatchOperation, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_JsonSchemaLike as JsonSchemaLike, type json_JsonSchemaToTsOptions as JsonSchemaToTsOptions, type json_MergePatchResult as MergePatchResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_applyJsonMergePatch as applyJsonMergePatch, json_applyJsonPatch as applyJsonPatch, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_diffJsonPatch as diffJsonPatch, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_generateJsonPatch as generateJsonPatch, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonSchemaToTypescript as jsonSchemaToTypescript, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_mergeJsonPatch as mergeJsonPatch, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
|
|
276
319
|
}
|
|
277
320
|
|
|
278
|
-
export {
|
|
321
|
+
export { validateJsonPath as $, getJsonStats as A, inferGoType as B, type ConvertOptions as C, type DiffNode as D, inferPythonType as E, inferType as F, type GoField as G, jsonSchemaToTypescript as H, jsonToCsv as I, type JsonDiffResult as J, jsonToGo as K, jsonToPython as L, type MergePatchResult as M, jsonToTypescript as N, jsonToYaml as O, type ParseStatus as P, jsonToZod as Q, mergeJsonPatch as R, minifyJson as S, parseJson as T, parseStructs as U, type ValidationError as V, resolveJsonPointer as W, toPascalCase as X, toSnakeCase as Y, type ZodOptions as Z, validateJson as _, type CsvOptions as a, validateJsonString as a0, yamlToJson as a1, type DiffType as b, type GoStruct as c, type JsonParseResult as d, type JsonPatchOp as e, type JsonPatchOperation as f, type JsonPathResult as g, type JsonPointerResult as h, type JsonSchemaLike as i, json as j, type JsonSchemaToTsOptions as k, type PythonClass as l, type PythonField as m, type PythonMode as n, type ValidationResult as o, applyJsonMergePatch as p, applyJsonPatch as q, csvToJson as r, detectFormat as s, diffJson as t, diffJsonPatch as u, evaluateJsonPath as v, formatDiffLine as w, formatJson as x, generateExample as y, generateJsonPatch as z };
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* - json-to-zod : jsonToZod
|
|
16
16
|
* - json-schema-to-typescript : jsonSchemaToTypescript
|
|
17
17
|
* - json-merge-patch : mergeJsonPatch, applyJsonMergePatch
|
|
18
|
+
* - json-patch : diffJsonPatch, applyJsonPatch, generateJsonPatch
|
|
18
19
|
*/
|
|
19
20
|
type ParseStatus = 'idle' | 'valid' | 'error';
|
|
20
21
|
interface JsonParseResult {
|
|
@@ -220,6 +221,43 @@ declare function mergeJsonPatch(target: unknown, patch: unknown): unknown;
|
|
|
220
221
|
declare function applyJsonMergePatch(targetJson: string, patchJson: string): MergePatchResult | {
|
|
221
222
|
error: string;
|
|
222
223
|
};
|
|
224
|
+
type JsonPatchOp = 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test';
|
|
225
|
+
interface JsonPatchOperation {
|
|
226
|
+
op: JsonPatchOp;
|
|
227
|
+
path: string;
|
|
228
|
+
value?: unknown;
|
|
229
|
+
from?: string;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Generates a minimal (naive, index-by-index for arrays) RFC 6902 JSON
|
|
233
|
+
* Patch document describing how to transform `a` into `b`. Object keys
|
|
234
|
+
* produce add/remove/replace; arrays are compared position by position,
|
|
235
|
+
* with removes emitted from the highest index down and adds appended at
|
|
236
|
+
* the end, so the resulting patch applies correctly in order. This is not
|
|
237
|
+
* a minimal-edit-distance diff (it won't detect a reordering as a move) —
|
|
238
|
+
* just a direct, deterministic structural comparison.
|
|
239
|
+
*/
|
|
240
|
+
declare function diffJsonPatch(a: unknown, b: unknown): JsonPatchOperation[];
|
|
241
|
+
/**
|
|
242
|
+
* Applies a sequence of RFC 6902 JSON Patch operations to a target
|
|
243
|
+
* document and returns the result, or an error naming the failing
|
|
244
|
+
* operation's index. Supports add, remove, replace, move, copy, and test.
|
|
245
|
+
* The input document is not mutated.
|
|
246
|
+
*/
|
|
247
|
+
declare function applyJsonPatch(target: unknown, operations: JsonPatchOperation[]): {
|
|
248
|
+
result: unknown;
|
|
249
|
+
} | {
|
|
250
|
+
error: string;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Convenience wrapper: diffs two JSON documents given as strings and
|
|
254
|
+
* returns the generated RFC 6902 patch, or a parse error.
|
|
255
|
+
*/
|
|
256
|
+
declare function generateJsonPatch(aJson: string, bJson: string): {
|
|
257
|
+
patch: JsonPatchOperation[];
|
|
258
|
+
} | {
|
|
259
|
+
error: string;
|
|
260
|
+
};
|
|
223
261
|
|
|
224
262
|
type json_ConvertOptions = ConvertOptions;
|
|
225
263
|
type json_CsvOptions = CsvOptions;
|
|
@@ -229,6 +267,8 @@ type json_GoField = GoField;
|
|
|
229
267
|
type json_GoStruct = GoStruct;
|
|
230
268
|
type json_JsonDiffResult = JsonDiffResult;
|
|
231
269
|
type json_JsonParseResult = JsonParseResult;
|
|
270
|
+
type json_JsonPatchOp = JsonPatchOp;
|
|
271
|
+
type json_JsonPatchOperation = JsonPatchOperation;
|
|
232
272
|
type json_JsonPathResult = JsonPathResult;
|
|
233
273
|
type json_JsonPointerResult = JsonPointerResult;
|
|
234
274
|
type json_JsonSchemaLike = JsonSchemaLike;
|
|
@@ -242,13 +282,16 @@ type json_ValidationError = ValidationError;
|
|
|
242
282
|
type json_ValidationResult = ValidationResult;
|
|
243
283
|
type json_ZodOptions = ZodOptions;
|
|
244
284
|
declare const json_applyJsonMergePatch: typeof applyJsonMergePatch;
|
|
285
|
+
declare const json_applyJsonPatch: typeof applyJsonPatch;
|
|
245
286
|
declare const json_csvToJson: typeof csvToJson;
|
|
246
287
|
declare const json_detectFormat: typeof detectFormat;
|
|
247
288
|
declare const json_diffJson: typeof diffJson;
|
|
289
|
+
declare const json_diffJsonPatch: typeof diffJsonPatch;
|
|
248
290
|
declare const json_evaluateJsonPath: typeof evaluateJsonPath;
|
|
249
291
|
declare const json_formatDiffLine: typeof formatDiffLine;
|
|
250
292
|
declare const json_formatJson: typeof formatJson;
|
|
251
293
|
declare const json_generateExample: typeof generateExample;
|
|
294
|
+
declare const json_generateJsonPatch: typeof generateJsonPatch;
|
|
252
295
|
declare const json_getJsonStats: typeof getJsonStats;
|
|
253
296
|
declare const json_inferGoType: typeof inferGoType;
|
|
254
297
|
declare const json_inferPythonType: typeof inferPythonType;
|
|
@@ -272,7 +315,7 @@ declare const json_validateJsonPath: typeof validateJsonPath;
|
|
|
272
315
|
declare const json_validateJsonString: typeof validateJsonString;
|
|
273
316
|
declare const json_yamlToJson: typeof yamlToJson;
|
|
274
317
|
declare namespace json {
|
|
275
|
-
export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_JsonSchemaLike as JsonSchemaLike, type json_JsonSchemaToTsOptions as JsonSchemaToTsOptions, type json_MergePatchResult as MergePatchResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_applyJsonMergePatch as applyJsonMergePatch, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonSchemaToTypescript as jsonSchemaToTypescript, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_mergeJsonPatch as mergeJsonPatch, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
|
|
318
|
+
export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPatchOp as JsonPatchOp, type json_JsonPatchOperation as JsonPatchOperation, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_JsonSchemaLike as JsonSchemaLike, type json_JsonSchemaToTsOptions as JsonSchemaToTsOptions, type json_MergePatchResult as MergePatchResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_applyJsonMergePatch as applyJsonMergePatch, json_applyJsonPatch as applyJsonPatch, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_diffJsonPatch as diffJsonPatch, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_generateJsonPatch as generateJsonPatch, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonSchemaToTypescript as jsonSchemaToTypescript, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_mergeJsonPatch as mergeJsonPatch, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
|
|
276
319
|
}
|
|
277
320
|
|
|
278
|
-
export {
|
|
321
|
+
export { validateJsonPath as $, getJsonStats as A, inferGoType as B, type ConvertOptions as C, type DiffNode as D, inferPythonType as E, inferType as F, type GoField as G, jsonSchemaToTypescript as H, jsonToCsv as I, type JsonDiffResult as J, jsonToGo as K, jsonToPython as L, type MergePatchResult as M, jsonToTypescript as N, jsonToYaml as O, type ParseStatus as P, jsonToZod as Q, mergeJsonPatch as R, minifyJson as S, parseJson as T, parseStructs as U, type ValidationError as V, resolveJsonPointer as W, toPascalCase as X, toSnakeCase as Y, type ZodOptions as Z, validateJson as _, type CsvOptions as a, validateJsonString as a0, yamlToJson as a1, type DiffType as b, type GoStruct as c, type JsonParseResult as d, type JsonPatchOp as e, type JsonPatchOperation as f, type JsonPathResult as g, type JsonPointerResult as h, type JsonSchemaLike as i, json as j, type JsonSchemaToTsOptions as k, type PythonClass as l, type PythonField as m, type PythonMode as n, type ValidationResult as o, applyJsonMergePatch as p, applyJsonPatch as q, csvToJson as r, detectFormat as s, diffJson as t, diffJsonPatch as u, evaluateJsonPath as v, formatDiffLine as w, formatJson as x, generateExample as y, generateJsonPatch as z };
|
package/dist/tools/code.cjs
CHANGED
|
@@ -3813,10 +3813,399 @@ function validateAria(html) {
|
|
|
3813
3813
|
valid: issues.every((i) => i.severity !== "error")
|
|
3814
3814
|
};
|
|
3815
3815
|
}
|
|
3816
|
+
var CONNECTION_STRING_RE = /^([a-zA-Z][a-zA-Z0-9+.-]*):\/\/(?:([^@/?#]*)@)?([^/?#]*)(?:\/([^?#]*))?(?:\?([^#]*))?$/;
|
|
3817
|
+
function _parseConnectionHost(segment) {
|
|
3818
|
+
const ipv6Match = segment.match(/^\[([^\]]+)\](?::(\d+))?$/);
|
|
3819
|
+
if (ipv6Match) {
|
|
3820
|
+
return { host: ipv6Match[1], port: ipv6Match[2] ? parseInt(ipv6Match[2], 10) : null };
|
|
3821
|
+
}
|
|
3822
|
+
const lastColon = segment.lastIndexOf(":");
|
|
3823
|
+
if (lastColon === -1) return { host: segment, port: null };
|
|
3824
|
+
const portPart = segment.slice(lastColon + 1);
|
|
3825
|
+
if (!/^\d+$/.test(portPart)) return { host: segment, port: null };
|
|
3826
|
+
return { host: segment.slice(0, lastColon), port: parseInt(portPart, 10) };
|
|
3827
|
+
}
|
|
3828
|
+
function parseConnectionString(input) {
|
|
3829
|
+
if (!input || typeof input !== "string" || !input.trim()) {
|
|
3830
|
+
return { error: "Connection string is empty" };
|
|
3831
|
+
}
|
|
3832
|
+
const trimmed = input.trim();
|
|
3833
|
+
const match = trimmed.match(CONNECTION_STRING_RE);
|
|
3834
|
+
if (!match) {
|
|
3835
|
+
return { error: "Not a valid scheme://[user[:password]@]host[,host2][/database][?params] connection string" };
|
|
3836
|
+
}
|
|
3837
|
+
const [, scheme, userinfo, hostPart, databasePart, queryPart] = match;
|
|
3838
|
+
let user = null;
|
|
3839
|
+
let password = null;
|
|
3840
|
+
if (userinfo) {
|
|
3841
|
+
const sepIndex = userinfo.indexOf(":");
|
|
3842
|
+
if (sepIndex === -1) {
|
|
3843
|
+
user = decodeURIComponent(userinfo);
|
|
3844
|
+
} else {
|
|
3845
|
+
user = decodeURIComponent(userinfo.slice(0, sepIndex));
|
|
3846
|
+
password = decodeURIComponent(userinfo.slice(sepIndex + 1));
|
|
3847
|
+
}
|
|
3848
|
+
}
|
|
3849
|
+
const hosts = hostPart ? hostPart.split(",").filter(Boolean).map(_parseConnectionHost) : [];
|
|
3850
|
+
const database = databasePart ? decodeURIComponent(databasePart) : null;
|
|
3851
|
+
const params = {};
|
|
3852
|
+
if (queryPart) {
|
|
3853
|
+
for (const pair of queryPart.split("&")) {
|
|
3854
|
+
if (!pair) continue;
|
|
3855
|
+
const eqIndex = pair.indexOf("=");
|
|
3856
|
+
const key = eqIndex === -1 ? pair : pair.slice(0, eqIndex);
|
|
3857
|
+
const value = eqIndex === -1 ? "" : pair.slice(eqIndex + 1);
|
|
3858
|
+
params[decodeURIComponent(key)] = decodeURIComponent(value);
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
return { scheme, user, password, hosts, database, params };
|
|
3862
|
+
}
|
|
3863
|
+
var KNOWN_LANGUAGE_TAGS = /* @__PURE__ */ new Set([
|
|
3864
|
+
"js",
|
|
3865
|
+
"jsx",
|
|
3866
|
+
"mjs",
|
|
3867
|
+
"cjs",
|
|
3868
|
+
"javascript",
|
|
3869
|
+
"ts",
|
|
3870
|
+
"tsx",
|
|
3871
|
+
"typescript",
|
|
3872
|
+
"json",
|
|
3873
|
+
"json5",
|
|
3874
|
+
"jsonc",
|
|
3875
|
+
"jsonl",
|
|
3876
|
+
"ndjson",
|
|
3877
|
+
"yaml",
|
|
3878
|
+
"yml",
|
|
3879
|
+
"toml",
|
|
3880
|
+
"ini",
|
|
3881
|
+
"cfg",
|
|
3882
|
+
"conf",
|
|
3883
|
+
"properties",
|
|
3884
|
+
"env",
|
|
3885
|
+
"dotenv",
|
|
3886
|
+
"html",
|
|
3887
|
+
"htm",
|
|
3888
|
+
"xml",
|
|
3889
|
+
"svg",
|
|
3890
|
+
"xhtml",
|
|
3891
|
+
"css",
|
|
3892
|
+
"scss",
|
|
3893
|
+
"sass",
|
|
3894
|
+
"less",
|
|
3895
|
+
"stylus",
|
|
3896
|
+
"styl",
|
|
3897
|
+
"markdown",
|
|
3898
|
+
"md",
|
|
3899
|
+
"mdx",
|
|
3900
|
+
"bash",
|
|
3901
|
+
"sh",
|
|
3902
|
+
"shell",
|
|
3903
|
+
"zsh",
|
|
3904
|
+
"fish",
|
|
3905
|
+
"console",
|
|
3906
|
+
"powershell",
|
|
3907
|
+
"ps1",
|
|
3908
|
+
"bat",
|
|
3909
|
+
"cmd",
|
|
3910
|
+
"python",
|
|
3911
|
+
"py",
|
|
3912
|
+
"py3",
|
|
3913
|
+
"ipynb",
|
|
3914
|
+
"ruby",
|
|
3915
|
+
"rb",
|
|
3916
|
+
"erb",
|
|
3917
|
+
"php",
|
|
3918
|
+
"java",
|
|
3919
|
+
"kotlin",
|
|
3920
|
+
"kt",
|
|
3921
|
+
"kts",
|
|
3922
|
+
"groovy",
|
|
3923
|
+
"gradle",
|
|
3924
|
+
"swift",
|
|
3925
|
+
"objectivec",
|
|
3926
|
+
"objc",
|
|
3927
|
+
"go",
|
|
3928
|
+
"golang",
|
|
3929
|
+
"rust",
|
|
3930
|
+
"rs",
|
|
3931
|
+
"c",
|
|
3932
|
+
"h",
|
|
3933
|
+
"cpp",
|
|
3934
|
+
"cc",
|
|
3935
|
+
"cxx",
|
|
3936
|
+
"hpp",
|
|
3937
|
+
"c++",
|
|
3938
|
+
"csharp",
|
|
3939
|
+
"cs",
|
|
3940
|
+
"fsharp",
|
|
3941
|
+
"fs",
|
|
3942
|
+
"perl",
|
|
3943
|
+
"pl",
|
|
3944
|
+
"lua",
|
|
3945
|
+
"r",
|
|
3946
|
+
"matlab",
|
|
3947
|
+
"m",
|
|
3948
|
+
"scala",
|
|
3949
|
+
"nim",
|
|
3950
|
+
"zig",
|
|
3951
|
+
"julia",
|
|
3952
|
+
"jl",
|
|
3953
|
+
"haskell",
|
|
3954
|
+
"hs",
|
|
3955
|
+
"elixir",
|
|
3956
|
+
"ex",
|
|
3957
|
+
"exs",
|
|
3958
|
+
"erlang",
|
|
3959
|
+
"erl",
|
|
3960
|
+
"clojure",
|
|
3961
|
+
"clj",
|
|
3962
|
+
"cljs",
|
|
3963
|
+
"dart",
|
|
3964
|
+
"ocaml",
|
|
3965
|
+
"ml",
|
|
3966
|
+
"sql",
|
|
3967
|
+
"mysql",
|
|
3968
|
+
"postgresql",
|
|
3969
|
+
"plsql",
|
|
3970
|
+
"sqlite",
|
|
3971
|
+
"graphql",
|
|
3972
|
+
"gql",
|
|
3973
|
+
"dockerfile",
|
|
3974
|
+
"docker",
|
|
3975
|
+
"makefile",
|
|
3976
|
+
"make",
|
|
3977
|
+
"cmake",
|
|
3978
|
+
"nginx",
|
|
3979
|
+
"apache",
|
|
3980
|
+
"diff",
|
|
3981
|
+
"patch",
|
|
3982
|
+
"git",
|
|
3983
|
+
"http",
|
|
3984
|
+
"proto",
|
|
3985
|
+
"protobuf",
|
|
3986
|
+
"csv",
|
|
3987
|
+
"tsv",
|
|
3988
|
+
"vim",
|
|
3989
|
+
"viml",
|
|
3990
|
+
"tex",
|
|
3991
|
+
"latex",
|
|
3992
|
+
"bibtex",
|
|
3993
|
+
"plaintext",
|
|
3994
|
+
"text",
|
|
3995
|
+
"txt",
|
|
3996
|
+
"nohighlight",
|
|
3997
|
+
"none",
|
|
3998
|
+
"asciidoc",
|
|
3999
|
+
"adoc",
|
|
4000
|
+
"rst",
|
|
4001
|
+
"vue",
|
|
4002
|
+
"svelte",
|
|
4003
|
+
"astro",
|
|
4004
|
+
"wasm",
|
|
4005
|
+
"wat",
|
|
4006
|
+
"handlebars",
|
|
4007
|
+
"hbs",
|
|
4008
|
+
"pug",
|
|
4009
|
+
"jade",
|
|
4010
|
+
"coffee",
|
|
4011
|
+
"coffeescript",
|
|
4012
|
+
"actionscript",
|
|
4013
|
+
"terraform",
|
|
4014
|
+
"tf",
|
|
4015
|
+
"hcl",
|
|
4016
|
+
"puppet",
|
|
4017
|
+
"ansible"
|
|
4018
|
+
]);
|
|
4019
|
+
function _parseFenceLine(line) {
|
|
4020
|
+
const match = line.match(/^( {0,3})(`{3,}|~{3,})(.*)$/);
|
|
4021
|
+
if (!match) return null;
|
|
4022
|
+
const [, indent, marker, rest] = match;
|
|
4023
|
+
const char = marker[0];
|
|
4024
|
+
if (char === "`" && rest.includes("`")) return null;
|
|
4025
|
+
return { indent: indent.length, char, length: marker.length, infoString: rest.trim() };
|
|
4026
|
+
}
|
|
4027
|
+
function _isClosingFence(line, fenceChar, fenceLength) {
|
|
4028
|
+
const match = line.match(/^ {0,3}(`+|~+)\s*$/);
|
|
4029
|
+
if (!match) return false;
|
|
4030
|
+
const marker = match[1];
|
|
4031
|
+
return marker[0] === fenceChar && marker.length >= fenceLength;
|
|
4032
|
+
}
|
|
4033
|
+
function validateFenceLanguageTags(markdown) {
|
|
4034
|
+
const lines = markdown.split("\n");
|
|
4035
|
+
const issues = [];
|
|
4036
|
+
let totalFences = 0;
|
|
4037
|
+
let open = null;
|
|
4038
|
+
for (let i = 0; i < lines.length; i++) {
|
|
4039
|
+
const lineNumber = i + 1;
|
|
4040
|
+
const line = lines[i];
|
|
4041
|
+
if (open) {
|
|
4042
|
+
if (_isClosingFence(line, open.char, open.length)) open = null;
|
|
4043
|
+
continue;
|
|
4044
|
+
}
|
|
4045
|
+
const fence = _parseFenceLine(line);
|
|
4046
|
+
if (!fence) continue;
|
|
4047
|
+
totalFences++;
|
|
4048
|
+
const tag = fence.infoString.split(/\s+/)[0] ?? "";
|
|
4049
|
+
open = { char: fence.char, length: fence.length };
|
|
4050
|
+
if (tag === "") {
|
|
4051
|
+
issues.push({ line: lineNumber, tag, issue: "missing" });
|
|
4052
|
+
continue;
|
|
4053
|
+
}
|
|
4054
|
+
const lower = tag.toLowerCase();
|
|
4055
|
+
if (!KNOWN_LANGUAGE_TAGS.has(lower)) {
|
|
4056
|
+
issues.push({ line: lineNumber, tag, issue: "unknown" });
|
|
4057
|
+
continue;
|
|
4058
|
+
}
|
|
4059
|
+
if (tag !== lower) {
|
|
4060
|
+
issues.push({ line: lineNumber, tag, issue: "inconsistent-case", suggestion: lower });
|
|
4061
|
+
}
|
|
4062
|
+
}
|
|
4063
|
+
return { totalFences, issues };
|
|
4064
|
+
}
|
|
4065
|
+
var _IDENT_START = /[A-Za-z_]/;
|
|
4066
|
+
var _IDENT_CHAR = /[A-Za-z0-9_]/;
|
|
4067
|
+
function _readIdentifier(sql, start) {
|
|
4068
|
+
let end = start;
|
|
4069
|
+
while (end < sql.length && _IDENT_CHAR.test(sql[end])) end++;
|
|
4070
|
+
return sql.slice(start, end);
|
|
4071
|
+
}
|
|
4072
|
+
function countSqlPlaceholders(sql) {
|
|
4073
|
+
const placeholders = [];
|
|
4074
|
+
let state = "normal";
|
|
4075
|
+
let i = 0;
|
|
4076
|
+
while (i < sql.length) {
|
|
4077
|
+
const ch = sql[i];
|
|
4078
|
+
const next = sql[i + 1];
|
|
4079
|
+
if (state === "single") {
|
|
4080
|
+
if (ch === "'" && next === "'") {
|
|
4081
|
+
i += 2;
|
|
4082
|
+
continue;
|
|
4083
|
+
}
|
|
4084
|
+
if (ch === "'") {
|
|
4085
|
+
state = "normal";
|
|
4086
|
+
i++;
|
|
4087
|
+
continue;
|
|
4088
|
+
}
|
|
4089
|
+
i++;
|
|
4090
|
+
continue;
|
|
4091
|
+
}
|
|
4092
|
+
if (state === "double") {
|
|
4093
|
+
if (ch === '"' && next === '"') {
|
|
4094
|
+
i += 2;
|
|
4095
|
+
continue;
|
|
4096
|
+
}
|
|
4097
|
+
if (ch === '"') {
|
|
4098
|
+
state = "normal";
|
|
4099
|
+
i++;
|
|
4100
|
+
continue;
|
|
4101
|
+
}
|
|
4102
|
+
i++;
|
|
4103
|
+
continue;
|
|
4104
|
+
}
|
|
4105
|
+
if (state === "line-comment") {
|
|
4106
|
+
if (ch === "\n") state = "normal";
|
|
4107
|
+
i++;
|
|
4108
|
+
continue;
|
|
4109
|
+
}
|
|
4110
|
+
if (state === "block-comment") {
|
|
4111
|
+
if (ch === "*" && next === "/") {
|
|
4112
|
+
state = "normal";
|
|
4113
|
+
i += 2;
|
|
4114
|
+
continue;
|
|
4115
|
+
}
|
|
4116
|
+
i++;
|
|
4117
|
+
continue;
|
|
4118
|
+
}
|
|
4119
|
+
if (ch === "'") {
|
|
4120
|
+
state = "single";
|
|
4121
|
+
i++;
|
|
4122
|
+
continue;
|
|
4123
|
+
}
|
|
4124
|
+
if (ch === '"') {
|
|
4125
|
+
state = "double";
|
|
4126
|
+
i++;
|
|
4127
|
+
continue;
|
|
4128
|
+
}
|
|
4129
|
+
if (ch === "-" && next === "-") {
|
|
4130
|
+
state = "line-comment";
|
|
4131
|
+
i += 2;
|
|
4132
|
+
continue;
|
|
4133
|
+
}
|
|
4134
|
+
if (ch === "/" && next === "*") {
|
|
4135
|
+
state = "block-comment";
|
|
4136
|
+
i += 2;
|
|
4137
|
+
continue;
|
|
4138
|
+
}
|
|
4139
|
+
if (ch === "?") {
|
|
4140
|
+
placeholders.push({ style: "anonymous", raw: "?", index: i });
|
|
4141
|
+
i++;
|
|
4142
|
+
continue;
|
|
4143
|
+
}
|
|
4144
|
+
if (ch === "$" && /[0-9]/.test(next ?? "")) {
|
|
4145
|
+
let end = i + 1;
|
|
4146
|
+
while (end < sql.length && /[0-9]/.test(sql[end])) end++;
|
|
4147
|
+
const raw = sql.slice(i, end);
|
|
4148
|
+
placeholders.push({ style: "numbered", raw, index: i, number: parseInt(raw.slice(1), 10) });
|
|
4149
|
+
i = end;
|
|
4150
|
+
continue;
|
|
4151
|
+
}
|
|
4152
|
+
if (ch === ":") {
|
|
4153
|
+
if (next === ":") {
|
|
4154
|
+
i += 2;
|
|
4155
|
+
continue;
|
|
4156
|
+
}
|
|
4157
|
+
if (next && _IDENT_START.test(next)) {
|
|
4158
|
+
const name = _readIdentifier(sql, i + 1);
|
|
4159
|
+
placeholders.push({ style: "named-colon", raw: `:${name}`, index: i, name });
|
|
4160
|
+
i += 1 + name.length;
|
|
4161
|
+
continue;
|
|
4162
|
+
}
|
|
4163
|
+
i++;
|
|
4164
|
+
continue;
|
|
4165
|
+
}
|
|
4166
|
+
if (ch === "@") {
|
|
4167
|
+
if (next === "@") {
|
|
4168
|
+
i += 2;
|
|
4169
|
+
continue;
|
|
4170
|
+
}
|
|
4171
|
+
if (next && _IDENT_START.test(next)) {
|
|
4172
|
+
const name = _readIdentifier(sql, i + 1);
|
|
4173
|
+
placeholders.push({ style: "named-at", raw: `@${name}`, index: i, name });
|
|
4174
|
+
i += 1 + name.length;
|
|
4175
|
+
continue;
|
|
4176
|
+
}
|
|
4177
|
+
i++;
|
|
4178
|
+
continue;
|
|
4179
|
+
}
|
|
4180
|
+
i++;
|
|
4181
|
+
}
|
|
4182
|
+
const counts = { anonymous: 0, numbered: 0, "named-colon": 0, "named-at": 0 };
|
|
4183
|
+
for (const p of placeholders) counts[p.style]++;
|
|
4184
|
+
const stylesUsed = ["anonymous", "numbered", "named-colon", "named-at"].filter((s) => counts[s] > 0);
|
|
4185
|
+
const numbers = placeholders.filter((p) => p.style === "numbered").map((p) => p.number);
|
|
4186
|
+
const maxNumber = numbers.length > 0 ? Math.max(...numbers) : 0;
|
|
4187
|
+
const seen = new Set(numbers);
|
|
4188
|
+
const numberedGaps = [];
|
|
4189
|
+
for (let n = 1; n < maxNumber; n++) {
|
|
4190
|
+
if (!seen.has(n)) numberedGaps.push(n);
|
|
4191
|
+
}
|
|
4192
|
+
const countedMap = /* @__PURE__ */ new Map();
|
|
4193
|
+
for (const n of numbers) countedMap.set(n, (countedMap.get(n) ?? 0) + 1);
|
|
4194
|
+
const numberedDuplicates = [...countedMap.entries()].filter(([, c]) => c > 1).map(([n]) => n).sort((a, b) => a - b);
|
|
4195
|
+
return {
|
|
4196
|
+
placeholders,
|
|
4197
|
+
counts,
|
|
4198
|
+
stylesUsed,
|
|
4199
|
+
mixedStyles: stylesUsed.length > 1,
|
|
4200
|
+
numberedGaps,
|
|
4201
|
+
numberedDuplicates
|
|
4202
|
+
};
|
|
4203
|
+
}
|
|
3816
4204
|
|
|
3817
4205
|
exports.ALL_FLAGS = ALL_FLAGS;
|
|
3818
4206
|
exports.CHEATSHEET = CHEATSHEET;
|
|
3819
4207
|
exports.DEFAULT_COMMIT_TYPES = DEFAULT_COMMIT_TYPES;
|
|
4208
|
+
exports.KNOWN_LANGUAGE_TAGS = KNOWN_LANGUAGE_TAGS;
|
|
3820
4209
|
exports.MIME_TABLE = MIME_TABLE;
|
|
3821
4210
|
exports.OPERATIONS = OPERATIONS;
|
|
3822
4211
|
exports.SQL_DEFAULT_OPTIONS = SQL_DEFAULT_OPTIONS;
|
|
@@ -3829,6 +4218,7 @@ exports.collapseHtmlWhitespace = collapseHtmlWhitespace;
|
|
|
3829
4218
|
exports.collapseJsWhitespace = collapseJsWhitespace;
|
|
3830
4219
|
exports.countProperties = countProperties;
|
|
3831
4220
|
exports.countRules = countRules;
|
|
4221
|
+
exports.countSqlPlaceholders = countSqlPlaceholders;
|
|
3832
4222
|
exports.detectDialect = detectDialect;
|
|
3833
4223
|
exports.detectOperationType = detectOperationType;
|
|
3834
4224
|
exports.detectRedos = detectRedos;
|
|
@@ -3854,6 +4244,7 @@ exports.minifyJs = minifyJs;
|
|
|
3854
4244
|
exports.minifySql = minifySql;
|
|
3855
4245
|
exports.normalizeRef = normalizeRef;
|
|
3856
4246
|
exports.parseCommitTrailers = parseCommitTrailers;
|
|
4247
|
+
exports.parseConnectionString = parseConnectionString;
|
|
3857
4248
|
exports.parseDockerImage = parseDockerImage;
|
|
3858
4249
|
exports.parseEnv = parseEnv;
|
|
3859
4250
|
exports.parseGitCommand = parseGitCommand;
|
|
@@ -3873,5 +4264,6 @@ exports.testRegex = testRegex;
|
|
|
3873
4264
|
exports.validateAria = validateAria;
|
|
3874
4265
|
exports.validateEditorConfig = validateEditorConfig;
|
|
3875
4266
|
exports.validateEnvKey = validateEnvKey;
|
|
4267
|
+
exports.validateFenceLanguageTags = validateFenceLanguageTags;
|
|
3876
4268
|
exports.validatePackageExports = validatePackageExports;
|
|
3877
4269
|
exports.validateTsconfig = validateTsconfig;
|
package/dist/tools/code.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, d as AriaIssue, e as AriaValidationResult, C as CHEATSHEET, f as CheatsheetEntry, g as CommitTrailer, h as CommitTrailerResult, i as
|
|
1
|
+
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, d as AriaIssue, e as AriaValidationResult, C as CHEATSHEET, f as CheatsheetEntry, g as CommitTrailer, h as CommitTrailerResult, i as ConnectionStringHost, j as ConnectionStringResult, k as ConventionalCommitFinding, l as ConventionalCommitFooter, m as ConventionalCommitOptions, n as ConventionalCommitParsed, o as ConventionalCommitResult, p as ConventionalCommitSeverity, q as CssResult, D as DEFAULT_COMMIT_TYPES, r as DependencyAuditDuplicate, s as DependencyAuditEntry, t as DependencyAuditIssue, u as DependencyAuditResult, v as DependencyRangeType, w as DependencySection, x as DockerImageRef, E as EditorConfigIssue, y as EditorConfigProperty, z as EditorConfigSection, B as EditorConfigValidationResult, F as EnvEntry, G as EnvParseResult, H as ExportsIssue, I as ExportsShape, J as ExportsValidationResult, K as FenceTagIssue, L as FenceTagIssueType, M as FenceValidationResult, N as GitCommandConfig, O as GitCommandResult, P as GitOperation, Q as GithubUrlInfo, R as GithubUrlType, S as GitignoreTestResult, T as GqlFormatResult, U as HtmlFormatResult, V as HtmlMinifyOptions, W as HtmlMinifyResult, X as JsMinifyOptions, Y as JsMinifyResult, Z as KNOWN_LANGUAGE_TAGS, _ as MIME_TABLE, $ as MarkdownFootnoteDefinition, a0 as MarkdownFootnoteReference, a1 as MarkdownFootnoteResult, a2 as MatchResult, a3 as MimeEntry, a4 as MimeLookupResult, a5 as OPERATIONS, a6 as ParsedSpec, a7 as PlaceholderStyle, a8 as RedosFinding, a9 as RedosResult, aa as RedosSeverity, ab as RegexBackreferenceInfo, ac as RegexError, ad as RegexFlag, ae as RegexGroupAnalysis, af as RegexGroupInfo, ag as RegexGroupIssue, ah as RegexMatch, ai as RegexResult, aj as RegexSuccess, ak as SQL_DEFAULT_OPTIONS, al as Segment, am as SpecVersion, an as SqlDialect, ao as SqlFormatOptions, ap as SqlPlaceholder, aq as SqlPlaceholderResult, ar as SvgSpriteResult, as as SvgSpriteSymbol, at as TestPatternResult, au as TsconfigIssue, av as TsconfigValidationResult, aw as analyzeRegexGroups, ax as auditDependencyRanges, ay as buildDockerPull, az as buildDockerRun, aA as buildGitCommand, aB as collapseHtmlWhitespace, aC as collapseJsWhitespace, aD as countProperties, aE as countRules, aF as countSqlPlaceholders, aG as detectDialect, aH as detectOperationType, aI as detectRedos, aJ as envToExport, aK as envToJson, aL as extractMarkdownFootnotes, aM as extractSvgSpriteSymbols, aN as formatCss, aO as formatGql, aP as formatHtml, aQ as formatSql, aR as getEndpointsByTag, aS as getHtmlStats, aT as getJsStats, aU as getMethodColor, aV as isValidTag, aW as lintConventionalCommit, aX as lookupMime, aY as minifyCss, aZ as minifyGql, a_ as minifyHtml, a$ as minifyJs, b0 as minifySql, b1 as normalizeRef, b2 as parseCommitTrailers, b3 as parseConnectionString, b4 as parseDockerImage, b5 as parseEnv, b6 as parseGitCommand, b7 as parseGithubUrl, b8 as parseSpec, b9 as removeConsoleCalls, ba as removeEmptyAttributes, bb as removeHtmlComments, bc as removeJsComments, bd as removeRedundantAttributes, be as searchCheatsheet, bf as searchEndpoints, bg as splitStatements, bh as testGitignorePatterns, bi as testPattern, bj as testRegex, bk as validateAria, bl as validateEditorConfig, bm as validateEnvKey, bn as validateFenceLanguageTags, bo as validatePackageExports, bp as validateTsconfig } from '../code-B8yHwP3m.cjs';
|
package/dist/tools/code.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, d as AriaIssue, e as AriaValidationResult, C as CHEATSHEET, f as CheatsheetEntry, g as CommitTrailer, h as CommitTrailerResult, i as
|
|
1
|
+
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, d as AriaIssue, e as AriaValidationResult, C as CHEATSHEET, f as CheatsheetEntry, g as CommitTrailer, h as CommitTrailerResult, i as ConnectionStringHost, j as ConnectionStringResult, k as ConventionalCommitFinding, l as ConventionalCommitFooter, m as ConventionalCommitOptions, n as ConventionalCommitParsed, o as ConventionalCommitResult, p as ConventionalCommitSeverity, q as CssResult, D as DEFAULT_COMMIT_TYPES, r as DependencyAuditDuplicate, s as DependencyAuditEntry, t as DependencyAuditIssue, u as DependencyAuditResult, v as DependencyRangeType, w as DependencySection, x as DockerImageRef, E as EditorConfigIssue, y as EditorConfigProperty, z as EditorConfigSection, B as EditorConfigValidationResult, F as EnvEntry, G as EnvParseResult, H as ExportsIssue, I as ExportsShape, J as ExportsValidationResult, K as FenceTagIssue, L as FenceTagIssueType, M as FenceValidationResult, N as GitCommandConfig, O as GitCommandResult, P as GitOperation, Q as GithubUrlInfo, R as GithubUrlType, S as GitignoreTestResult, T as GqlFormatResult, U as HtmlFormatResult, V as HtmlMinifyOptions, W as HtmlMinifyResult, X as JsMinifyOptions, Y as JsMinifyResult, Z as KNOWN_LANGUAGE_TAGS, _ as MIME_TABLE, $ as MarkdownFootnoteDefinition, a0 as MarkdownFootnoteReference, a1 as MarkdownFootnoteResult, a2 as MatchResult, a3 as MimeEntry, a4 as MimeLookupResult, a5 as OPERATIONS, a6 as ParsedSpec, a7 as PlaceholderStyle, a8 as RedosFinding, a9 as RedosResult, aa as RedosSeverity, ab as RegexBackreferenceInfo, ac as RegexError, ad as RegexFlag, ae as RegexGroupAnalysis, af as RegexGroupInfo, ag as RegexGroupIssue, ah as RegexMatch, ai as RegexResult, aj as RegexSuccess, ak as SQL_DEFAULT_OPTIONS, al as Segment, am as SpecVersion, an as SqlDialect, ao as SqlFormatOptions, ap as SqlPlaceholder, aq as SqlPlaceholderResult, ar as SvgSpriteResult, as as SvgSpriteSymbol, at as TestPatternResult, au as TsconfigIssue, av as TsconfigValidationResult, aw as analyzeRegexGroups, ax as auditDependencyRanges, ay as buildDockerPull, az as buildDockerRun, aA as buildGitCommand, aB as collapseHtmlWhitespace, aC as collapseJsWhitespace, aD as countProperties, aE as countRules, aF as countSqlPlaceholders, aG as detectDialect, aH as detectOperationType, aI as detectRedos, aJ as envToExport, aK as envToJson, aL as extractMarkdownFootnotes, aM as extractSvgSpriteSymbols, aN as formatCss, aO as formatGql, aP as formatHtml, aQ as formatSql, aR as getEndpointsByTag, aS as getHtmlStats, aT as getJsStats, aU as getMethodColor, aV as isValidTag, aW as lintConventionalCommit, aX as lookupMime, aY as minifyCss, aZ as minifyGql, a_ as minifyHtml, a$ as minifyJs, b0 as minifySql, b1 as normalizeRef, b2 as parseCommitTrailers, b3 as parseConnectionString, b4 as parseDockerImage, b5 as parseEnv, b6 as parseGitCommand, b7 as parseGithubUrl, b8 as parseSpec, b9 as removeConsoleCalls, ba as removeEmptyAttributes, bb as removeHtmlComments, bc as removeJsComments, bd as removeRedundantAttributes, be as searchCheatsheet, bf as searchEndpoints, bg as splitStatements, bh as testGitignorePatterns, bi as testPattern, bj as testRegex, bk as validateAria, bl as validateEditorConfig, bm as validateEnvKey, bn as validateFenceLanguageTags, bo as validatePackageExports, bp as validateTsconfig } from '../code-B8yHwP3m.js';
|
package/dist/tools/code.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractMarkdownFootnotes, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseCommitTrailers, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateAria, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig } from '../chunk-
|
|
1
|
+
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, KNOWN_LANGUAGE_TAGS, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, countSqlPlaceholders, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractMarkdownFootnotes, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseCommitTrailers, parseConnectionString, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateAria, validateEditorConfig, validateEnvKey, validateFenceLanguageTags, validatePackageExports, validateTsconfig } from '../chunk-FPFA4ZHC.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|