@utilix-tech/sdk 0.66.0 → 0.68.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 +7 -0
- package/README.md +18 -4
- package/dist/{chunk-TTQ2FNUG.js → chunk-ACGCCOCK.js} +74 -1
- package/dist/{chunk-JPFHEZ4P.js → chunk-COL3IM7U.js} +141 -1
- package/dist/{code-CKI2Z_NM.d.cts → code-DB-5ZfG4.d.cts} +70 -2
- package/dist/{code-CKI2Z_NM.d.ts → code-DB-5ZfG4.d.ts} +70 -2
- package/dist/index.cjs +213 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{network-EHkPJFoe.d.cts → network-BmqYmfqY.d.cts} +46 -2
- package/dist/{network-EHkPJFoe.d.ts → network-BmqYmfqY.d.ts} +46 -2
- package/dist/tools/code.cjs +140 -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/network.cjs +73 -0
- package/dist/tools/network.d.cts +1 -1
- package/dist/tools/network.d.ts +1 -1
- package/dist/tools/network.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Full release notes for all Utilix surfaces (browser tools, REST API, SDKs, MCP server) live at [utilix.tech/changelog](https://utilix.tech/changelog). This file tracks just this package.
|
|
4
4
|
|
|
5
|
+
## 0.68.0
|
|
6
|
+
- Add `buildRobotsMetaTag`, `parseRobotsMetaTag` (robots-meta-tag-builder): build a `<meta name="robots" content="...">` tag from the same directive vocabulary as X-Robots-Tag, optionally scoped to a crawler via the name attribute, or parse an existing tag into the same shape.
|
|
7
|
+
- Add `extractSvgSpriteSymbols` (svg-sprite-symbol-extractor): parse an SVG sprite sheet's `<symbol>` definitions and list each one's id, viewBox, width, and height, alongside a ready-to-paste `<use href="#id"></use>` usage snippet.
|
|
8
|
+
|
|
9
|
+
## 0.67.0
|
|
10
|
+
- Add `analyzeRegexGroups` (regex-groups): parse a regex pattern's capture groups (numbered and named) and backreferences, flagging any backreference pointing at a group that doesn't exist or hasn't finished being defined yet at that point in the pattern.
|
|
11
|
+
|
|
5
12
|
## 0.66.0
|
|
6
13
|
- Add `buildXRobotsTag`, `parseXRobotsTag` (x-robots-tag-builder): build an X-Robots-Tag response header from flag directives (noindex, nofollow, etc.) plus max-snippet/max-image-preview/max-video-preview/unavailable_after value directives, optionally scoped to a crawler user-agent, or parse an existing header into the same shape.
|
|
7
14
|
- Add `lookupOpcode`, `listOpcodes` (websocket-opcode-reference): look up what a WebSocket frame opcode means per RFC 6455's 4-bit opcode space, or list every opcode.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @utilix-tech/sdk
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**686 developer utility functions for Node.js: runs locally, no API key required.**
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@utilix-tech/sdk)
|
|
6
6
|
[](https://www.npmjs.com/package/@utilix-tech/sdk)
|
|
@@ -676,6 +676,11 @@ parseMultipartFormData('--X\r\nContent-Disposition: form-data; name="a"\r\n\r\nh
|
|
|
676
676
|
// Extract the boundary parameter from a Content-Type header value
|
|
677
677
|
extractMultipartBoundary("multipart/form-data; boundary=----WebKitFormBoundaryABC123");
|
|
678
678
|
// "----WebKitFormBoundaryABC123"
|
|
679
|
+
|
|
680
|
+
// Build a <meta name="robots" content="..."> tag, the same directive vocabulary as X-Robots-Tag
|
|
681
|
+
import { buildRobotsMetaTag, parseRobotsMetaTag } from "@utilix-tech/sdk/network";
|
|
682
|
+
buildRobotsMetaTag({ flags: ["noindex", "nofollow"], name: "googlebot" });
|
|
683
|
+
// { content: "noindex, nofollow", name: "googlebot", tag: '<meta name="googlebot" content="noindex, nofollow">', directives: [...], notes: [...], warnings: [] }
|
|
679
684
|
```
|
|
680
685
|
|
|
681
686
|
---
|
|
@@ -725,7 +730,7 @@ generateCspHeader({ "default-src": ["'self'"], "script-src": ["'self'", "cdn.exa
|
|
|
725
730
|
```ts
|
|
726
731
|
import { formatSql, minifySql, testRegex, formatHtml, formatGql,
|
|
727
732
|
detectDialect, splitStatements, lookupMime, parseGithubUrl,
|
|
728
|
-
detectRedos, testGitignorePatterns, validateEditorConfig,
|
|
733
|
+
detectRedos, analyzeRegexGroups, testGitignorePatterns, validateEditorConfig,
|
|
729
734
|
validateTsconfig, validatePackageExports } from "@utilix-tech/sdk/code";
|
|
730
735
|
|
|
731
736
|
// SQL
|
|
@@ -763,6 +768,10 @@ parseGithubUrl("https://github.com/facebook/react/pull/1234");
|
|
|
763
768
|
detectRedos("(a+)+");
|
|
764
769
|
// { risk: "high", safe: false, findings: [{ type: "nested-quantifier", ... }] }
|
|
765
770
|
|
|
771
|
+
// Regex capture group & backreference visualizer
|
|
772
|
+
analyzeRegexGroups("(a)(b)\\3");
|
|
773
|
+
// { groups: [{ index: 1, ... }, { index: 2, ... }], issues: [{ severity: "error", message: "Backreference \\3 ... doesn't exist ..." }] }
|
|
774
|
+
|
|
766
775
|
// Test paths against a .gitignore file's patterns
|
|
767
776
|
testGitignorePatterns("node_modules/\n*.log", ["node_modules/foo.js", "debug.log", "src/index.js"]);
|
|
768
777
|
// [{ path: "node_modules/foo.js", ignored: true, matchedPattern: "node_modules/", matchedLine: 1 }, ...]
|
|
@@ -782,6 +791,11 @@ validatePackageExports(JSON.stringify({ exports: { import: "./index.mjs", requir
|
|
|
782
791
|
// Classify each package.json dependency's version range and flag wildcards, "latest", git/URL/file deps, and conflicting duplicates
|
|
783
792
|
auditDependencyRanges(JSON.stringify({ dependencies: { lodash: "^4.17.21", "left-pad": "*" } }));
|
|
784
793
|
// { totalDependencies: 2, dependencies: [{ name: "lodash", rangeType: "caret", issues: [] }, { name: "left-pad", rangeType: "wildcard", issues: [...] }], duplicates: [], issues: [...] }
|
|
794
|
+
|
|
795
|
+
// List an SVG sprite sheet's <symbol> definitions with id, viewBox, and a ready-to-paste <use> snippet
|
|
796
|
+
import { extractSvgSpriteSymbols } from "@utilix-tech/sdk/code";
|
|
797
|
+
extractSvgSpriteSymbols('<svg><symbol id="icon-home" viewBox="0 0 24 24"></symbol></svg>');
|
|
798
|
+
// { symbolCount: 1, symbols: [{ id: "icon-home", viewBox: "0 0 24 24", width: null, height: null, usageSnippet: '<svg><use href="#icon-home"></use></svg>' }], skippedCount: 0 }
|
|
785
799
|
```
|
|
786
800
|
|
|
787
801
|
---
|
|
@@ -939,9 +953,9 @@ inspectGifFrames(new Uint8Array(gifBytes));
|
|
|
939
953
|
| `@utilix-tech/sdk/generators` | UUID v4/v7, ULID, passwords, strength check, entropy estimator, fake data, CSP nonce generator |
|
|
940
954
|
| `@utilix-tech/sdk/time` | Date diff, timezone convert, cron parse, relative time |
|
|
941
955
|
| `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN validation, loan calculator, EMI calculator, compound/simple interest calculators, VAT/sales tax calculator, tip/bill split calculator, break-even point calculator, Rule of 72 calculator, savings goal calculator, ROI calculator, cash denomination/till calculator, payback period calculator, CD maturity calculator, debt-to-income ratio calculator, freelancer hourly rate calculator, debt snowball/avalanche payoff planner |
|
|
942
|
-
| `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand, Permissions-Policy header builder, Client Hints header builder/parser, Content-Disposition header builder/parser, X-Content-Type-Options header builder/risk assessor, sitemap.xml validator, sitemap index splitter, Prefer header builder/parser (RFC 7240), Retry-After header builder/parser (RFC 9110), Priority header builder/parser (RFC 9218), WebSocket close code reference/lookup, Strict-Transport-Security (HSTS) header builder/parser |
|
|
956
|
+
| `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand, Permissions-Policy header builder, Client Hints header builder/parser, Content-Disposition header builder/parser, X-Content-Type-Options header builder/risk assessor, sitemap.xml validator, sitemap index splitter, Prefer header builder/parser (RFC 7240), Retry-After header builder/parser (RFC 9110), Priority header builder/parser (RFC 9218), WebSocket close code reference/lookup, Strict-Transport-Security (HSTS) header builder/parser, X-Robots-Tag header builder/parser, WebSocket frame opcode reference/lookup, robots meta tag builder/parser |
|
|
943
957
|
| `@utilix-tech/sdk/api` | cURL build/parse, JWT decode/sign, JWKS parse, CORS headers, CSP header |
|
|
944
|
-
| `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format, MIME type lookup, GitHub URL parsing, regex ReDoS detector, Conventional Commits linter, package.json exports field validator, package.json dependency range auditor |
|
|
958
|
+
| `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format, MIME type lookup, GitHub URL parsing, regex ReDoS detector, Conventional Commits linter, package.json exports field validator, package.json dependency range auditor, regex capture group/backreference visualizer, SVG sprite symbol extractor |
|
|
945
959
|
| `@utilix-tech/sdk/color` | Hex/RGB/HSL/HSV/CMYK convert, palette generation, contrast check |
|
|
946
960
|
| `@utilix-tech/sdk/css` | CSS gradient, box-shadow, border-radius, keyframe animation generators |
|
|
947
961
|
| `@utilix-tech/sdk/misc` | SVG optimize/sanitize, file size format, Unicode inspector |
|
|
@@ -28,6 +28,7 @@ __export(network_exports, {
|
|
|
28
28
|
buildRangeHeader: () => buildRangeHeader,
|
|
29
29
|
buildReferrerPolicy: () => buildReferrerPolicy,
|
|
30
30
|
buildRetryAfterHeader: () => buildRetryAfterHeader,
|
|
31
|
+
buildRobotsMetaTag: () => buildRobotsMetaTag,
|
|
31
32
|
buildVaryHeader: () => buildVaryHeader,
|
|
32
33
|
buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
|
|
33
34
|
buildXRobotsTag: () => buildXRobotsTag,
|
|
@@ -65,6 +66,7 @@ __export(network_exports, {
|
|
|
65
66
|
parsePreferHeader: () => parsePreferHeader,
|
|
66
67
|
parsePriorityHeader: () => parsePriorityHeader,
|
|
67
68
|
parseRetryAfterHeader: () => parseRetryAfterHeader,
|
|
69
|
+
parseRobotsMetaTag: () => parseRobotsMetaTag,
|
|
68
70
|
parseUserAgent: () => parseUserAgent,
|
|
69
71
|
parseVaryHeader: () => parseVaryHeader,
|
|
70
72
|
parseXContentTypeOptionsHeader: () => parseXContentTypeOptionsHeader,
|
|
@@ -3407,5 +3409,76 @@ function lookupOpcode(opcode) {
|
|
|
3407
3409
|
}
|
|
3408
3410
|
return _describeOpcode(opcode);
|
|
3409
3411
|
}
|
|
3412
|
+
function buildRobotsMetaTag(options) {
|
|
3413
|
+
const built = buildXRobotsTag({
|
|
3414
|
+
flags: options?.flags,
|
|
3415
|
+
maxSnippet: options?.maxSnippet,
|
|
3416
|
+
maxImagePreview: options?.maxImagePreview,
|
|
3417
|
+
maxVideoPreview: options?.maxVideoPreview,
|
|
3418
|
+
unavailableAfter: options?.unavailableAfter
|
|
3419
|
+
});
|
|
3420
|
+
if ("error" in built) return built;
|
|
3421
|
+
const name = options?.name?.trim() || "robots";
|
|
3422
|
+
return {
|
|
3423
|
+
content: built.header,
|
|
3424
|
+
name,
|
|
3425
|
+
tag: `<meta name="${name}" content="${built.header}">`,
|
|
3426
|
+
directives: built.directives,
|
|
3427
|
+
notes: built.notes,
|
|
3428
|
+
warnings: built.warnings
|
|
3429
|
+
};
|
|
3430
|
+
}
|
|
3431
|
+
var _ROBOTS_META_TAG_REGEX = /<meta\b[^>]*>/i;
|
|
3432
|
+
var _ROBOTS_META_NAME_ATTR_REGEX = /\bname\s*=\s*["']([^"']*)["']/i;
|
|
3433
|
+
var _ROBOTS_META_CONTENT_ATTR_REGEX = /\bcontent\s*=\s*["']([^"']*)["']/i;
|
|
3434
|
+
function parseRobotsMetaTag(raw) {
|
|
3435
|
+
if (!raw || raw.trim() === "") return { error: "Input is empty" };
|
|
3436
|
+
const trimmed = raw.trim();
|
|
3437
|
+
let name = "robots";
|
|
3438
|
+
let content = trimmed;
|
|
3439
|
+
const tagMatch = trimmed.match(_ROBOTS_META_TAG_REGEX);
|
|
3440
|
+
if (tagMatch) {
|
|
3441
|
+
const nameMatch = tagMatch[0].match(_ROBOTS_META_NAME_ATTR_REGEX);
|
|
3442
|
+
const contentMatch = tagMatch[0].match(_ROBOTS_META_CONTENT_ATTR_REGEX);
|
|
3443
|
+
if (!contentMatch) return { error: "Meta tag is missing a content attribute" };
|
|
3444
|
+
if (nameMatch) name = nameMatch[1].trim() || "robots";
|
|
3445
|
+
content = contentMatch[1];
|
|
3446
|
+
}
|
|
3447
|
+
const tokens = content.split(",").map((t) => t.trim()).filter((t) => t !== "");
|
|
3448
|
+
if (tokens.length === 0) return { error: "No directives found" };
|
|
3449
|
+
const flags = [];
|
|
3450
|
+
let maxSnippet;
|
|
3451
|
+
let maxImagePreview;
|
|
3452
|
+
let maxVideoPreview;
|
|
3453
|
+
let unavailableAfter;
|
|
3454
|
+
for (const token of tokens) {
|
|
3455
|
+
const eq = token.indexOf(":");
|
|
3456
|
+
const directiveName = (eq === -1 ? token : token.slice(0, eq)).trim().toLowerCase();
|
|
3457
|
+
const value = eq === -1 ? "" : token.slice(eq + 1).trim();
|
|
3458
|
+
if (eq === -1) {
|
|
3459
|
+
if (!_isXRobotsTagFlag(directiveName)) return { error: `Unrecognized directive "${token}"` };
|
|
3460
|
+
flags.push(directiveName);
|
|
3461
|
+
continue;
|
|
3462
|
+
}
|
|
3463
|
+
if (directiveName === "max-snippet") {
|
|
3464
|
+
const n = Number(value);
|
|
3465
|
+
if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-snippet value "${value}" is not a valid integer >= -1` };
|
|
3466
|
+
maxSnippet = n;
|
|
3467
|
+
} else if (directiveName === "max-image-preview") {
|
|
3468
|
+
if (!["none", "standard", "large"].includes(value)) return { error: `max-image-preview value "${value}" must be one of "none", "standard", "large"` };
|
|
3469
|
+
maxImagePreview = value;
|
|
3470
|
+
} else if (directiveName === "max-video-preview") {
|
|
3471
|
+
const n = Number(value);
|
|
3472
|
+
if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-video-preview value "${value}" is not a valid integer >= -1` };
|
|
3473
|
+
maxVideoPreview = n;
|
|
3474
|
+
} else if (directiveName === "unavailable_after") {
|
|
3475
|
+
if (value === "" || Number.isNaN(Date.parse(value))) return { error: `unavailable_after value "${value}" is not a valid, parseable date` };
|
|
3476
|
+
unavailableAfter = value;
|
|
3477
|
+
} else {
|
|
3478
|
+
return { error: `Unrecognized directive "${token}"` };
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
|
|
3482
|
+
}
|
|
3410
3483
|
|
|
3411
|
-
export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
|
|
3484
|
+
export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
|
|
@@ -10,6 +10,7 @@ __export(code_exports, {
|
|
|
10
10
|
MIME_TABLE: () => MIME_TABLE,
|
|
11
11
|
OPERATIONS: () => OPERATIONS,
|
|
12
12
|
SQL_DEFAULT_OPTIONS: () => SQL_DEFAULT_OPTIONS,
|
|
13
|
+
analyzeRegexGroups: () => analyzeRegexGroups,
|
|
13
14
|
auditDependencyRanges: () => auditDependencyRanges,
|
|
14
15
|
buildDockerPull: () => buildDockerPull,
|
|
15
16
|
buildDockerRun: () => buildDockerRun,
|
|
@@ -23,6 +24,7 @@ __export(code_exports, {
|
|
|
23
24
|
detectRedos: () => detectRedos,
|
|
24
25
|
envToExport: () => envToExport,
|
|
25
26
|
envToJson: () => envToJson,
|
|
27
|
+
extractSvgSpriteSymbols: () => extractSvgSpriteSymbols,
|
|
26
28
|
formatCss: () => formatCss,
|
|
27
29
|
formatGql: () => formatGql,
|
|
28
30
|
formatHtml: () => formatHtml,
|
|
@@ -3485,5 +3487,143 @@ function auditDependencyRanges(packageJsonText) {
|
|
|
3485
3487
|
issues
|
|
3486
3488
|
};
|
|
3487
3489
|
}
|
|
3490
|
+
function analyzeRegexGroups(pattern) {
|
|
3491
|
+
let valid = true;
|
|
3492
|
+
let compileError;
|
|
3493
|
+
try {
|
|
3494
|
+
new RegExp(pattern);
|
|
3495
|
+
} catch (e) {
|
|
3496
|
+
valid = false;
|
|
3497
|
+
compileError = e instanceof Error ? e.message : String(e);
|
|
3498
|
+
}
|
|
3499
|
+
const groups = [];
|
|
3500
|
+
const openStack = [];
|
|
3501
|
+
const backreferences = [];
|
|
3502
|
+
const issues = [];
|
|
3503
|
+
let groupCount = 0;
|
|
3504
|
+
let inClass = false;
|
|
3505
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
3506
|
+
const ch = pattern[i];
|
|
3507
|
+
if (ch === "\\" && i + 1 < pattern.length) {
|
|
3508
|
+
const next = pattern[i + 1];
|
|
3509
|
+
if (!inClass && /[1-9]/.test(next)) {
|
|
3510
|
+
let j = i + 1;
|
|
3511
|
+
while (j < pattern.length && /[0-9]/.test(pattern[j])) j++;
|
|
3512
|
+
const raw = pattern.slice(i, j);
|
|
3513
|
+
const target = parseInt(pattern.slice(i + 1, j), 10);
|
|
3514
|
+
backreferences.push({ raw, target, start: i, resolved: false, definedBeforeUse: false });
|
|
3515
|
+
i = j - 1;
|
|
3516
|
+
continue;
|
|
3517
|
+
}
|
|
3518
|
+
if (!inClass && next === "k" && pattern[i + 2] === "<") {
|
|
3519
|
+
const close = pattern.indexOf(">", i + 3);
|
|
3520
|
+
if (close !== -1) {
|
|
3521
|
+
const name = pattern.slice(i + 3, close);
|
|
3522
|
+
const raw = pattern.slice(i, close + 1);
|
|
3523
|
+
backreferences.push({ raw, target: name, start: i, resolved: false, definedBeforeUse: false });
|
|
3524
|
+
i = close;
|
|
3525
|
+
continue;
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
i++;
|
|
3529
|
+
continue;
|
|
3530
|
+
}
|
|
3531
|
+
if (ch === "[" && !inClass) {
|
|
3532
|
+
inClass = true;
|
|
3533
|
+
continue;
|
|
3534
|
+
}
|
|
3535
|
+
if (ch === "]" && inClass) {
|
|
3536
|
+
inClass = false;
|
|
3537
|
+
continue;
|
|
3538
|
+
}
|
|
3539
|
+
if (inClass) continue;
|
|
3540
|
+
if (ch === "(") {
|
|
3541
|
+
if (pattern[i + 1] === "?") {
|
|
3542
|
+
const c2 = pattern[i + 2];
|
|
3543
|
+
if (c2 === ":" || c2 === "=" || c2 === "!") {
|
|
3544
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
3545
|
+
continue;
|
|
3546
|
+
}
|
|
3547
|
+
if (c2 === "<" && (pattern[i + 3] === "=" || pattern[i + 3] === "!")) {
|
|
3548
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
3549
|
+
continue;
|
|
3550
|
+
}
|
|
3551
|
+
if (c2 === "<") {
|
|
3552
|
+
const close = pattern.indexOf(">", i + 3);
|
|
3553
|
+
const name = close !== -1 ? pattern.slice(i + 3, close) : null;
|
|
3554
|
+
groupCount++;
|
|
3555
|
+
openStack.push({ index: groupCount, name, start: i });
|
|
3556
|
+
if (close !== -1) i = close;
|
|
3557
|
+
continue;
|
|
3558
|
+
}
|
|
3559
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
3560
|
+
continue;
|
|
3561
|
+
}
|
|
3562
|
+
groupCount++;
|
|
3563
|
+
openStack.push({ index: groupCount, name: null, start: i });
|
|
3564
|
+
continue;
|
|
3565
|
+
}
|
|
3566
|
+
if (ch === ")") {
|
|
3567
|
+
const open = openStack.pop();
|
|
3568
|
+
if (open && open.index !== -1) {
|
|
3569
|
+
groups.push({ index: open.index, name: open.name, start: open.start, end: i });
|
|
3570
|
+
}
|
|
3571
|
+
continue;
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
for (const open of openStack) {
|
|
3575
|
+
if (open.index !== -1) groups.push({ index: open.index, name: open.name, start: open.start, end: -1 });
|
|
3576
|
+
}
|
|
3577
|
+
groups.sort((a, b) => a.index - b.index);
|
|
3578
|
+
const byIndex = new Map(groups.map((g) => [g.index, g]));
|
|
3579
|
+
const byName = new Map(groups.filter((g) => g.name !== null).map((g) => [g.name, g]));
|
|
3580
|
+
for (const b of backreferences) {
|
|
3581
|
+
const g = typeof b.target === "number" ? byIndex.get(b.target) : byName.get(b.target);
|
|
3582
|
+
if (!g) {
|
|
3583
|
+
b.resolved = false;
|
|
3584
|
+
b.definedBeforeUse = false;
|
|
3585
|
+
const label = typeof b.target === "number" ? `group ${b.target}` : `named group "${b.target}"`;
|
|
3586
|
+
issues.push({ severity: "error", message: `Backreference ${b.raw} at position ${b.start} points to ${label}, which doesn't exist in this pattern.` });
|
|
3587
|
+
} else {
|
|
3588
|
+
b.resolved = true;
|
|
3589
|
+
b.definedBeforeUse = g.end !== -1 && g.end < b.start;
|
|
3590
|
+
if (!b.definedBeforeUse) {
|
|
3591
|
+
const label = `group ${g.index}${g.name ? ` ("${g.name}")` : ""}`;
|
|
3592
|
+
issues.push({ severity: "error", message: `Backreference ${b.raw} at position ${b.start} references ${label}, which hasn't finished being defined yet at that point in the pattern.` });
|
|
3593
|
+
}
|
|
3594
|
+
}
|
|
3595
|
+
}
|
|
3596
|
+
return { pattern, valid, ...compileError ? { compileError } : {}, groups, backreferences, issues };
|
|
3597
|
+
}
|
|
3598
|
+
var SVG_SYMBOL_TAG_REGEX = /<symbol\b([^>]*)>/gi;
|
|
3599
|
+
function extractSvgAttr(attrs, name) {
|
|
3600
|
+
const match = attrs.match(new RegExp(`\\s${name}\\s*=\\s*["']([^"']*)["']`, "i"));
|
|
3601
|
+
return match ? match[1] : null;
|
|
3602
|
+
}
|
|
3603
|
+
function extractSvgSpriteSymbols(svg) {
|
|
3604
|
+
const trimmed = svg.trim();
|
|
3605
|
+
if (!trimmed) return { error: "Empty input" };
|
|
3606
|
+
const symbols = [];
|
|
3607
|
+
let skippedCount = 0;
|
|
3608
|
+
for (const match of trimmed.matchAll(SVG_SYMBOL_TAG_REGEX)) {
|
|
3609
|
+
const attrs = match[1];
|
|
3610
|
+
const id = extractSvgAttr(attrs, "id");
|
|
3611
|
+
if (!id) {
|
|
3612
|
+
skippedCount++;
|
|
3613
|
+
continue;
|
|
3614
|
+
}
|
|
3615
|
+
symbols.push({
|
|
3616
|
+
id,
|
|
3617
|
+
viewBox: extractSvgAttr(attrs, "viewBox"),
|
|
3618
|
+
width: extractSvgAttr(attrs, "width"),
|
|
3619
|
+
height: extractSvgAttr(attrs, "height"),
|
|
3620
|
+
usageSnippet: `<svg><use href="#${id}"></use></svg>`
|
|
3621
|
+
});
|
|
3622
|
+
}
|
|
3623
|
+
if (symbols.length === 0 && skippedCount === 0) {
|
|
3624
|
+
return { error: "No <symbol> elements found" };
|
|
3625
|
+
}
|
|
3626
|
+
return { symbolCount: symbols.length, symbols, skippedCount };
|
|
3627
|
+
}
|
|
3488
3628
|
|
|
3489
|
-
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, code_exports, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig };
|
|
3629
|
+
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, code_exports, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig };
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
* - tsconfig-validator (validateTsconfig)
|
|
27
27
|
* - package-json-exports-validator (validatePackageExports)
|
|
28
28
|
* - package-json-dependency-auditor (auditDependencyRanges)
|
|
29
|
+
* - regex-groups (analyzeRegexGroups)
|
|
30
|
+
* - svg-sprite-symbol-extractor (extractSvgSpriteSymbols)
|
|
29
31
|
*/
|
|
30
32
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
31
33
|
declare const ALL_FLAGS: RegexFlag[];
|
|
@@ -511,6 +513,64 @@ interface DependencyAuditResult {
|
|
|
511
513
|
declare function auditDependencyRanges(packageJsonText: string): DependencyAuditResult | {
|
|
512
514
|
error: string;
|
|
513
515
|
};
|
|
516
|
+
interface RegexGroupInfo {
|
|
517
|
+
index: number;
|
|
518
|
+
name: string | null;
|
|
519
|
+
start: number;
|
|
520
|
+
end: number;
|
|
521
|
+
}
|
|
522
|
+
interface RegexBackreferenceInfo {
|
|
523
|
+
raw: string;
|
|
524
|
+
target: number | string;
|
|
525
|
+
start: number;
|
|
526
|
+
resolved: boolean;
|
|
527
|
+
definedBeforeUse: boolean;
|
|
528
|
+
}
|
|
529
|
+
interface RegexGroupIssue {
|
|
530
|
+
severity: 'error' | 'warning';
|
|
531
|
+
message: string;
|
|
532
|
+
}
|
|
533
|
+
interface RegexGroupAnalysis {
|
|
534
|
+
pattern: string;
|
|
535
|
+
valid: boolean;
|
|
536
|
+
compileError?: string;
|
|
537
|
+
groups: RegexGroupInfo[];
|
|
538
|
+
backreferences: RegexBackreferenceInfo[];
|
|
539
|
+
issues: RegexGroupIssue[];
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Parse a regex pattern's capture groups (numbered and named) and
|
|
543
|
+
* backreferences, and flag any backreference that points at a group which
|
|
544
|
+
* doesn't exist or hasn't finished being defined yet at that point in the
|
|
545
|
+
* pattern (a forward reference or a self-reference). Pass the pattern body
|
|
546
|
+
* only, no delimiters or flags. This is a structural, non-AI check, distinct
|
|
547
|
+
* from the ReDoS Detector (backtracking risk) and Regex Explainer (AI)
|
|
548
|
+
* (plain-English breakdown).
|
|
549
|
+
*/
|
|
550
|
+
declare function analyzeRegexGroups(pattern: string): RegexGroupAnalysis;
|
|
551
|
+
interface SvgSpriteSymbol {
|
|
552
|
+
id: string;
|
|
553
|
+
viewBox: string | null;
|
|
554
|
+
width: string | null;
|
|
555
|
+
height: string | null;
|
|
556
|
+
usageSnippet: string;
|
|
557
|
+
}
|
|
558
|
+
interface SvgSpriteResult {
|
|
559
|
+
symbolCount: number;
|
|
560
|
+
symbols: SvgSpriteSymbol[];
|
|
561
|
+
skippedCount: number;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Parse an SVG sprite sheet's <symbol> definitions and list each one's id,
|
|
565
|
+
* viewBox, width, and height, alongside a ready-to-paste
|
|
566
|
+
* `<use href="#id"></use>` usage snippet. A symbol with no id is skipped
|
|
567
|
+
* (counted in skippedCount) since it can't be referenced by a `<use>`
|
|
568
|
+
* element at all. Pure regex-based parsing over the raw markup, no DOM/XML
|
|
569
|
+
* parser dependency, matching the SVG Viewer tool's parsing style.
|
|
570
|
+
*/
|
|
571
|
+
declare function extractSvgSpriteSymbols(svg: string): SvgSpriteResult | {
|
|
572
|
+
error: string;
|
|
573
|
+
};
|
|
514
574
|
|
|
515
575
|
declare const code_ALL_FLAGS: typeof ALL_FLAGS;
|
|
516
576
|
type code_ApiEndpoint = ApiEndpoint;
|
|
@@ -562,8 +622,12 @@ type code_ParsedSpec = ParsedSpec;
|
|
|
562
622
|
type code_RedosFinding = RedosFinding;
|
|
563
623
|
type code_RedosResult = RedosResult;
|
|
564
624
|
type code_RedosSeverity = RedosSeverity;
|
|
625
|
+
type code_RegexBackreferenceInfo = RegexBackreferenceInfo;
|
|
565
626
|
type code_RegexError = RegexError;
|
|
566
627
|
type code_RegexFlag = RegexFlag;
|
|
628
|
+
type code_RegexGroupAnalysis = RegexGroupAnalysis;
|
|
629
|
+
type code_RegexGroupInfo = RegexGroupInfo;
|
|
630
|
+
type code_RegexGroupIssue = RegexGroupIssue;
|
|
567
631
|
type code_RegexMatch = RegexMatch;
|
|
568
632
|
type code_RegexResult = RegexResult;
|
|
569
633
|
type code_RegexSuccess = RegexSuccess;
|
|
@@ -572,9 +636,12 @@ type code_Segment = Segment;
|
|
|
572
636
|
type code_SpecVersion = SpecVersion;
|
|
573
637
|
type code_SqlDialect = SqlDialect;
|
|
574
638
|
type code_SqlFormatOptions = SqlFormatOptions;
|
|
639
|
+
type code_SvgSpriteResult = SvgSpriteResult;
|
|
640
|
+
type code_SvgSpriteSymbol = SvgSpriteSymbol;
|
|
575
641
|
type code_TestPatternResult = TestPatternResult;
|
|
576
642
|
type code_TsconfigIssue = TsconfigIssue;
|
|
577
643
|
type code_TsconfigValidationResult = TsconfigValidationResult;
|
|
644
|
+
declare const code_analyzeRegexGroups: typeof analyzeRegexGroups;
|
|
578
645
|
declare const code_auditDependencyRanges: typeof auditDependencyRanges;
|
|
579
646
|
declare const code_buildDockerPull: typeof buildDockerPull;
|
|
580
647
|
declare const code_buildDockerRun: typeof buildDockerRun;
|
|
@@ -588,6 +655,7 @@ declare const code_detectOperationType: typeof detectOperationType;
|
|
|
588
655
|
declare const code_detectRedos: typeof detectRedos;
|
|
589
656
|
declare const code_envToExport: typeof envToExport;
|
|
590
657
|
declare const code_envToJson: typeof envToJson;
|
|
658
|
+
declare const code_extractSvgSpriteSymbols: typeof extractSvgSpriteSymbols;
|
|
591
659
|
declare const code_formatCss: typeof formatCss;
|
|
592
660
|
declare const code_formatGql: typeof formatGql;
|
|
593
661
|
declare const code_formatHtml: typeof formatHtml;
|
|
@@ -626,7 +694,7 @@ declare const code_validateEnvKey: typeof validateEnvKey;
|
|
|
626
694
|
declare const code_validatePackageExports: typeof validatePackageExports;
|
|
627
695
|
declare const code_validateTsconfig: typeof validateTsconfig;
|
|
628
696
|
declare namespace code {
|
|
629
|
-
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_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, 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, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, 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, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, 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_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, 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_parseGithubUrl as parseGithubUrl, 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_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
697
|
+
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_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, 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, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexBackreferenceInfo as RegexBackreferenceInfo, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexGroupAnalysis as RegexGroupAnalysis, type code_RegexGroupInfo as RegexGroupInfo, type code_RegexGroupIssue as RegexGroupIssue, 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_SvgSpriteResult as SvgSpriteResult, type code_SvgSpriteSymbol as SvgSpriteSymbol, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_analyzeRegexGroups as analyzeRegexGroups, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_extractSvgSpriteSymbols as extractSvgSpriteSymbols, code_formatCss as formatCss, 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_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, 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_parseGithubUrl as parseGithubUrl, 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_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
630
698
|
}
|
|
631
699
|
|
|
632
|
-
export { type
|
|
700
|
+
export { type RegexFlag as $, ALL_FLAGS as A, type GitCommandResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type GitOperation as F, type GitCommandConfig as G, type GithubUrlInfo as H, type GithubUrlType as I, type GitignoreTestResult as J, type GqlFormatResult as K, type HtmlFormatResult as L, type HtmlMinifyOptions as M, type HtmlMinifyResult as N, type JsMinifyOptions as O, type JsMinifyResult as P, MIME_TABLE as Q, type MatchResult as R, type MimeEntry as S, type MimeLookupResult as T, OPERATIONS as U, type ParsedSpec as V, type RedosFinding as W, type RedosResult as X, type RedosSeverity as Y, type RegexBackreferenceInfo as Z, type RegexError as _, type ApiEndpoint as a, testRegex as a$, type RegexGroupAnalysis as a0, type RegexGroupInfo as a1, type RegexGroupIssue as a2, type RegexMatch as a3, type RegexResult as a4, type RegexSuccess as a5, SQL_DEFAULT_OPTIONS as a6, type Segment as a7, type SpecVersion as a8, type SqlDialect as a9, getHtmlStats as aA, getJsStats as aB, getMethodColor as aC, isValidTag as aD, lintConventionalCommit as aE, lookupMime as aF, minifyCss as aG, minifyGql as aH, minifyHtml as aI, minifyJs as aJ, minifySql as aK, normalizeRef as aL, parseDockerImage as aM, parseEnv as aN, parseGitCommand as aO, parseGithubUrl as aP, parseSpec as aQ, removeConsoleCalls as aR, removeEmptyAttributes as aS, removeHtmlComments as aT, removeJsComments as aU, removeRedundantAttributes as aV, searchCheatsheet as aW, searchEndpoints as aX, splitStatements as aY, testGitignorePatterns as aZ, testPattern as a_, type SqlFormatOptions as aa, type SvgSpriteResult as ab, type SvgSpriteSymbol as ac, type TestPatternResult as ad, type TsconfigIssue as ae, type TsconfigValidationResult as af, analyzeRegexGroups as ag, auditDependencyRanges as ah, buildDockerPull as ai, buildDockerRun as aj, buildGitCommand as ak, collapseHtmlWhitespace as al, collapseJsWhitespace as am, countProperties as an, countRules as ao, detectDialect as ap, detectOperationType as aq, detectRedos as ar, envToExport as as, envToJson as at, extractSvgSpriteSymbols as au, formatCss as av, formatGql as aw, formatHtml as ax, formatSql as ay, getEndpointsByTag as az, type ApiInfo as b, validateEditorConfig as b0, validateEnvKey as b1, validatePackageExports as b2, validateTsconfig as b3, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DependencyAuditDuplicate as l, type DependencyAuditEntry as m, type DependencyAuditIssue as n, type DependencyAuditResult as o, type DependencyRangeType as p, type DependencySection as q, type DockerImageRef as r, type EditorConfigProperty as s, type EditorConfigSection as t, type EditorConfigValidationResult as u, type EnvEntry as v, type EnvParseResult as w, type ExportsIssue as x, type ExportsShape as y, type ExportsValidationResult as z };
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
* - tsconfig-validator (validateTsconfig)
|
|
27
27
|
* - package-json-exports-validator (validatePackageExports)
|
|
28
28
|
* - package-json-dependency-auditor (auditDependencyRanges)
|
|
29
|
+
* - regex-groups (analyzeRegexGroups)
|
|
30
|
+
* - svg-sprite-symbol-extractor (extractSvgSpriteSymbols)
|
|
29
31
|
*/
|
|
30
32
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
31
33
|
declare const ALL_FLAGS: RegexFlag[];
|
|
@@ -511,6 +513,64 @@ interface DependencyAuditResult {
|
|
|
511
513
|
declare function auditDependencyRanges(packageJsonText: string): DependencyAuditResult | {
|
|
512
514
|
error: string;
|
|
513
515
|
};
|
|
516
|
+
interface RegexGroupInfo {
|
|
517
|
+
index: number;
|
|
518
|
+
name: string | null;
|
|
519
|
+
start: number;
|
|
520
|
+
end: number;
|
|
521
|
+
}
|
|
522
|
+
interface RegexBackreferenceInfo {
|
|
523
|
+
raw: string;
|
|
524
|
+
target: number | string;
|
|
525
|
+
start: number;
|
|
526
|
+
resolved: boolean;
|
|
527
|
+
definedBeforeUse: boolean;
|
|
528
|
+
}
|
|
529
|
+
interface RegexGroupIssue {
|
|
530
|
+
severity: 'error' | 'warning';
|
|
531
|
+
message: string;
|
|
532
|
+
}
|
|
533
|
+
interface RegexGroupAnalysis {
|
|
534
|
+
pattern: string;
|
|
535
|
+
valid: boolean;
|
|
536
|
+
compileError?: string;
|
|
537
|
+
groups: RegexGroupInfo[];
|
|
538
|
+
backreferences: RegexBackreferenceInfo[];
|
|
539
|
+
issues: RegexGroupIssue[];
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Parse a regex pattern's capture groups (numbered and named) and
|
|
543
|
+
* backreferences, and flag any backreference that points at a group which
|
|
544
|
+
* doesn't exist or hasn't finished being defined yet at that point in the
|
|
545
|
+
* pattern (a forward reference or a self-reference). Pass the pattern body
|
|
546
|
+
* only, no delimiters or flags. This is a structural, non-AI check, distinct
|
|
547
|
+
* from the ReDoS Detector (backtracking risk) and Regex Explainer (AI)
|
|
548
|
+
* (plain-English breakdown).
|
|
549
|
+
*/
|
|
550
|
+
declare function analyzeRegexGroups(pattern: string): RegexGroupAnalysis;
|
|
551
|
+
interface SvgSpriteSymbol {
|
|
552
|
+
id: string;
|
|
553
|
+
viewBox: string | null;
|
|
554
|
+
width: string | null;
|
|
555
|
+
height: string | null;
|
|
556
|
+
usageSnippet: string;
|
|
557
|
+
}
|
|
558
|
+
interface SvgSpriteResult {
|
|
559
|
+
symbolCount: number;
|
|
560
|
+
symbols: SvgSpriteSymbol[];
|
|
561
|
+
skippedCount: number;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Parse an SVG sprite sheet's <symbol> definitions and list each one's id,
|
|
565
|
+
* viewBox, width, and height, alongside a ready-to-paste
|
|
566
|
+
* `<use href="#id"></use>` usage snippet. A symbol with no id is skipped
|
|
567
|
+
* (counted in skippedCount) since it can't be referenced by a `<use>`
|
|
568
|
+
* element at all. Pure regex-based parsing over the raw markup, no DOM/XML
|
|
569
|
+
* parser dependency, matching the SVG Viewer tool's parsing style.
|
|
570
|
+
*/
|
|
571
|
+
declare function extractSvgSpriteSymbols(svg: string): SvgSpriteResult | {
|
|
572
|
+
error: string;
|
|
573
|
+
};
|
|
514
574
|
|
|
515
575
|
declare const code_ALL_FLAGS: typeof ALL_FLAGS;
|
|
516
576
|
type code_ApiEndpoint = ApiEndpoint;
|
|
@@ -562,8 +622,12 @@ type code_ParsedSpec = ParsedSpec;
|
|
|
562
622
|
type code_RedosFinding = RedosFinding;
|
|
563
623
|
type code_RedosResult = RedosResult;
|
|
564
624
|
type code_RedosSeverity = RedosSeverity;
|
|
625
|
+
type code_RegexBackreferenceInfo = RegexBackreferenceInfo;
|
|
565
626
|
type code_RegexError = RegexError;
|
|
566
627
|
type code_RegexFlag = RegexFlag;
|
|
628
|
+
type code_RegexGroupAnalysis = RegexGroupAnalysis;
|
|
629
|
+
type code_RegexGroupInfo = RegexGroupInfo;
|
|
630
|
+
type code_RegexGroupIssue = RegexGroupIssue;
|
|
567
631
|
type code_RegexMatch = RegexMatch;
|
|
568
632
|
type code_RegexResult = RegexResult;
|
|
569
633
|
type code_RegexSuccess = RegexSuccess;
|
|
@@ -572,9 +636,12 @@ type code_Segment = Segment;
|
|
|
572
636
|
type code_SpecVersion = SpecVersion;
|
|
573
637
|
type code_SqlDialect = SqlDialect;
|
|
574
638
|
type code_SqlFormatOptions = SqlFormatOptions;
|
|
639
|
+
type code_SvgSpriteResult = SvgSpriteResult;
|
|
640
|
+
type code_SvgSpriteSymbol = SvgSpriteSymbol;
|
|
575
641
|
type code_TestPatternResult = TestPatternResult;
|
|
576
642
|
type code_TsconfigIssue = TsconfigIssue;
|
|
577
643
|
type code_TsconfigValidationResult = TsconfigValidationResult;
|
|
644
|
+
declare const code_analyzeRegexGroups: typeof analyzeRegexGroups;
|
|
578
645
|
declare const code_auditDependencyRanges: typeof auditDependencyRanges;
|
|
579
646
|
declare const code_buildDockerPull: typeof buildDockerPull;
|
|
580
647
|
declare const code_buildDockerRun: typeof buildDockerRun;
|
|
@@ -588,6 +655,7 @@ declare const code_detectOperationType: typeof detectOperationType;
|
|
|
588
655
|
declare const code_detectRedos: typeof detectRedos;
|
|
589
656
|
declare const code_envToExport: typeof envToExport;
|
|
590
657
|
declare const code_envToJson: typeof envToJson;
|
|
658
|
+
declare const code_extractSvgSpriteSymbols: typeof extractSvgSpriteSymbols;
|
|
591
659
|
declare const code_formatCss: typeof formatCss;
|
|
592
660
|
declare const code_formatGql: typeof formatGql;
|
|
593
661
|
declare const code_formatHtml: typeof formatHtml;
|
|
@@ -626,7 +694,7 @@ declare const code_validateEnvKey: typeof validateEnvKey;
|
|
|
626
694
|
declare const code_validatePackageExports: typeof validatePackageExports;
|
|
627
695
|
declare const code_validateTsconfig: typeof validateTsconfig;
|
|
628
696
|
declare namespace code {
|
|
629
|
-
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_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, 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, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, 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, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, 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_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, 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_parseGithubUrl as parseGithubUrl, 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_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
697
|
+
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_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, 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, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexBackreferenceInfo as RegexBackreferenceInfo, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexGroupAnalysis as RegexGroupAnalysis, type code_RegexGroupInfo as RegexGroupInfo, type code_RegexGroupIssue as RegexGroupIssue, 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_SvgSpriteResult as SvgSpriteResult, type code_SvgSpriteSymbol as SvgSpriteSymbol, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_analyzeRegexGroups as analyzeRegexGroups, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_extractSvgSpriteSymbols as extractSvgSpriteSymbols, code_formatCss as formatCss, 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_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, 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_parseGithubUrl as parseGithubUrl, 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_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
630
698
|
}
|
|
631
699
|
|
|
632
|
-
export { type
|
|
700
|
+
export { type RegexFlag as $, ALL_FLAGS as A, type GitCommandResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type GitOperation as F, type GitCommandConfig as G, type GithubUrlInfo as H, type GithubUrlType as I, type GitignoreTestResult as J, type GqlFormatResult as K, type HtmlFormatResult as L, type HtmlMinifyOptions as M, type HtmlMinifyResult as N, type JsMinifyOptions as O, type JsMinifyResult as P, MIME_TABLE as Q, type MatchResult as R, type MimeEntry as S, type MimeLookupResult as T, OPERATIONS as U, type ParsedSpec as V, type RedosFinding as W, type RedosResult as X, type RedosSeverity as Y, type RegexBackreferenceInfo as Z, type RegexError as _, type ApiEndpoint as a, testRegex as a$, type RegexGroupAnalysis as a0, type RegexGroupInfo as a1, type RegexGroupIssue as a2, type RegexMatch as a3, type RegexResult as a4, type RegexSuccess as a5, SQL_DEFAULT_OPTIONS as a6, type Segment as a7, type SpecVersion as a8, type SqlDialect as a9, getHtmlStats as aA, getJsStats as aB, getMethodColor as aC, isValidTag as aD, lintConventionalCommit as aE, lookupMime as aF, minifyCss as aG, minifyGql as aH, minifyHtml as aI, minifyJs as aJ, minifySql as aK, normalizeRef as aL, parseDockerImage as aM, parseEnv as aN, parseGitCommand as aO, parseGithubUrl as aP, parseSpec as aQ, removeConsoleCalls as aR, removeEmptyAttributes as aS, removeHtmlComments as aT, removeJsComments as aU, removeRedundantAttributes as aV, searchCheatsheet as aW, searchEndpoints as aX, splitStatements as aY, testGitignorePatterns as aZ, testPattern as a_, type SqlFormatOptions as aa, type SvgSpriteResult as ab, type SvgSpriteSymbol as ac, type TestPatternResult as ad, type TsconfigIssue as ae, type TsconfigValidationResult as af, analyzeRegexGroups as ag, auditDependencyRanges as ah, buildDockerPull as ai, buildDockerRun as aj, buildGitCommand as ak, collapseHtmlWhitespace as al, collapseJsWhitespace as am, countProperties as an, countRules as ao, detectDialect as ap, detectOperationType as aq, detectRedos as ar, envToExport as as, envToJson as at, extractSvgSpriteSymbols as au, formatCss as av, formatGql as aw, formatHtml as ax, formatSql as ay, getEndpointsByTag as az, type ApiInfo as b, validateEditorConfig as b0, validateEnvKey as b1, validatePackageExports as b2, validateTsconfig as b3, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DependencyAuditDuplicate as l, type DependencyAuditEntry as m, type DependencyAuditIssue as n, type DependencyAuditResult as o, type DependencyRangeType as p, type DependencySection as q, type DockerImageRef as r, type EditorConfigProperty as s, type EditorConfigSection as t, type EditorConfigValidationResult as u, type EnvEntry as v, type EnvParseResult as w, type ExportsIssue as x, type ExportsShape as y, type ExportsValidationResult as z };
|