@utilix-tech/sdk 0.85.0 → 0.87.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 +6 -6
- package/dist/{chunk-RMXZMYSG.js → chunk-7XHM7HHU.js} +67 -1
- package/dist/{chunk-XOUS3M5Z.js → chunk-CUQDHXUX.js} +80 -1
- package/dist/{chunk-BCISWFVJ.js → chunk-YM6UC4SM.js} +79 -1
- package/dist/{code-mkKV7BQ4.d.ts → code-B9LwFkB1.d.cts} +31 -2
- package/dist/{code-mkKV7BQ4.d.cts → code-B9LwFkB1.d.ts} +31 -2
- package/dist/{data-DIyBrJ6l.d.cts → data-Cz1Q0sg0.d.cts} +32 -2
- package/dist/{data-DIyBrJ6l.d.ts → data-Cz1Q0sg0.d.ts} +32 -2
- package/dist/index.cjs +223 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/tools/code.cjs +66 -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/data.cjs +79 -0
- package/dist/tools/data.d.cts +1 -1
- package/dist/tools/data.d.ts +1 -1
- package/dist/tools/data.js +1 -1
- package/dist/tools/units.cjs +78 -0
- package/dist/tools/units.d.cts +1 -1
- package/dist/tools/units.d.ts +1 -1
- package/dist/tools/units.js +1 -1
- package/dist/{units-DwIvTP-X.d.ts → units-gLm_pq6U.d.cts} +48 -2
- package/dist/{units-DwIvTP-X.d.cts → units-gLm_pq6U.d.ts} +48 -2
- 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.87.0
|
|
6
|
+
- Add `validateMarkdownHeadingHierarchy` (markdown-heading-hierarchy-validator): scan a Markdown document's ATX headings and flag heading-structure issues: skipped levels, multiple H1s, empty headings, duplicate headings at the same level, and a document that doesn't start at H1.
|
|
7
|
+
|
|
8
|
+
## 0.86.0
|
|
9
|
+
- Add `calculateSalesCommission` (sales-commission-calculator): compute a flat or tiered (marginal) sales commission from a sale amount, where tiered mode applies each rate only to the slice of sales within that tier, plus an optional base salary added to the total payout.
|
|
10
|
+
- Add `buildCharacterClass` (regex-character-class-builder): assemble a `[...]` regex character class from named building blocks (lowercase, uppercase, digits, whitespace), custom ranges, and literal custom characters, with optional negation.
|
|
11
|
+
|
|
5
12
|
## 0.85.0
|
|
6
13
|
- Add `calculateCreditCardMinimumPayment` (credit-card-minimum-payment-calculator): simulate paying only the minimum payment on a revolving credit card balance, where the minimum is the larger of a percent of the balance or a fixed dollar floor, and report months/years to payoff, total interest, and total paid.
|
|
7
14
|
- Add `checkDashUsage` (em-dash-usage-checker): scan text for likely dash misuse: a hyphen surrounded by spaces, an unconverted double hyphen, and inconsistent spacing around em dashes across the same document.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @utilix-tech/sdk
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**725 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)
|
|
@@ -363,7 +363,7 @@ formatIso8601Duration(90061); // { iso: "P1DT1H1M1S", ... }
|
|
|
363
363
|
### `/units`: Conversions
|
|
364
364
|
|
|
365
365
|
```ts
|
|
366
|
-
import { convertBytes, pxToAll, convert, formatValue, validateCardNumber, validateIban, calculateLoan, validateBarcode, calculateTax, calculateCompoundInterest, validateIsbn, calculateTipSplit, calculateSimpleInterest, calculateTimeValue, calculatePercentageChange, convertAprApy, calculateMarginMarkup, calculateDiscount, applySuccessiveDiscounts, calculateBreakEven, calculateVideoBitrate, calculateRuleOf72, calculateEmi, calculateRoi, compareUnitPrices, calculatePaybackPeriod, calculateCdMaturity, calculateDepreciationSchedule, calculateCashRounding, calculateMovingAverages, calculateGpa, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateBlendedLoanRate, calculateFreelancerRate, calculateExtraPaymentPayoff, calculateLoanRefinance, validateVin, validateIsin, calculateLoanPrepaymentPenalty, calculateRealRateOfReturn, calculateCreditCardMinimumPayment } from "@utilix-tech/sdk/units";
|
|
366
|
+
import { convertBytes, pxToAll, convert, formatValue, validateCardNumber, validateIban, calculateLoan, validateBarcode, calculateTax, calculateCompoundInterest, validateIsbn, calculateTipSplit, calculateSimpleInterest, calculateTimeValue, calculatePercentageChange, convertAprApy, calculateMarginMarkup, calculateDiscount, applySuccessiveDiscounts, calculateBreakEven, calculateVideoBitrate, calculateRuleOf72, calculateEmi, calculateRoi, compareUnitPrices, calculatePaybackPeriod, calculateCdMaturity, calculateDepreciationSchedule, calculateCashRounding, calculateMovingAverages, calculateGpa, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateBlendedLoanRate, calculateFreelancerRate, calculateExtraPaymentPayoff, calculateLoanRefinance, validateVin, validateIsin, calculateLoanPrepaymentPenalty, calculateRealRateOfReturn, calculateCreditCardMinimumPayment, calculateSalesCommission } from "@utilix-tech/sdk/units";
|
|
367
367
|
|
|
368
368
|
// File sizes
|
|
369
369
|
convertBytes(1073741824, "GB"); // 1
|
|
@@ -785,7 +785,7 @@ import { formatSql, minifySql, testRegex, formatHtml, formatGql,
|
|
|
785
785
|
detectDialect, splitStatements, lookupMime, parseGithubUrl,
|
|
786
786
|
detectRedos, analyzeRegexGroups, testGitignorePatterns, validateEditorConfig,
|
|
787
787
|
validateTsconfig, validatePackageExports, parseConnectionString,
|
|
788
|
-
validateFenceLanguageTags, countSqlPlaceholders } from "@utilix-tech/sdk/code";
|
|
788
|
+
validateFenceLanguageTags, countSqlPlaceholders, buildCharacterClass } from "@utilix-tech/sdk/code";
|
|
789
789
|
|
|
790
790
|
// SQL
|
|
791
791
|
formatSql("SELECT id,name FROM users WHERE active=1 ORDER BY name");
|
|
@@ -1049,13 +1049,13 @@ readMidiInfo(new Uint8Array(midiBytes));
|
|
|
1049
1049
|
| `@utilix-tech/sdk/encoding` | Base64, URL, HTML entities, Base32/Base58/Base62 encode/decode |
|
|
1050
1050
|
| `@utilix-tech/sdk/hashing` | MD5, SHA-1/256/512, bcrypt, HMAC, .htpasswd, SRI hashes, content-hash ETag generation |
|
|
1051
1051
|
| `@utilix-tech/sdk/text` | Case convert, slugify, word count, lorem ipsum, line ops, HTML→Markdown, Levenshtein/Damerau string distance, readability scoring, sentence length distribution, emoji lookup |
|
|
1052
|
-
| `@utilix-tech/sdk/data` | CSV, YAML, TOML, XML, INI, NDJSON parse and convert, NDJSON record deduplicator, SRT/WebVTT subtitles, Markdown front matter parser, YAML anchor/alias resolver, CSV column type inferencer, Markdown table column aligner |
|
|
1052
|
+
| `@utilix-tech/sdk/data` | CSV, YAML, TOML, XML, INI, NDJSON parse and convert, NDJSON record deduplicator, SRT/WebVTT subtitles, Markdown front matter parser, YAML anchor/alias resolver, CSV column type inferencer, Markdown table column aligner, Markdown heading hierarchy validator |
|
|
1053
1053
|
| `@utilix-tech/sdk/generators` | UUID v4/v7, ULID, passwords, strength check, entropy estimator, fake data, CSP nonce generator |
|
|
1054
1054
|
| `@utilix-tech/sdk/time` | Date diff, timezone convert, cron parse, relative time |
|
|
1055
|
-
| `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN/VIN/ISIN 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, tax-equivalent yield calculator, mortgage discount points break-even calculator, loan prepayment penalty calculator, data transfer time / required bandwidth estimator, real rate of return (Fisher equation) calculator |
|
|
1055
|
+
| `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN/VIN/ISIN 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, tax-equivalent yield calculator, mortgage discount points break-even calculator, loan prepayment penalty calculator, data transfer time / required bandwidth estimator, real rate of return (Fisher equation) calculator, sales commission calculator (flat or tiered) |
|
|
1056
1056
|
| `@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, robots.txt validator, robots.txt generator, 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, Cookie header byte-size budget calculator |
|
|
1057
1057
|
| `@utilix-tech/sdk/api` | cURL build/parse, JWT decode/sign, JWKS parse, CORS headers, CSP header, TOTP/HOTP code generator, webhook HMAC signature verifier |
|
|
1058
|
-
| `@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, ARIA role & attribute validator, database connection string parser, Markdown code fence language tag validator, SQL query parameter placeholder counter, Markdown link reference extractor |
|
|
1058
|
+
| `@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, ARIA role & attribute validator, database connection string parser, Markdown code fence language tag validator, SQL query parameter placeholder counter, Markdown link reference extractor, regex character class builder |
|
|
1059
1059
|
| `@utilix-tech/sdk/color` | Hex/RGB/HSL/HSV/CMYK convert, palette generation, contrast check |
|
|
1060
1060
|
| `@utilix-tech/sdk/css` | CSS gradient, box-shadow, border-radius, keyframe animation generators |
|
|
1061
1061
|
| `@utilix-tech/sdk/misc` | SVG optimize/sanitize, file size format, Unicode inspector |
|
|
@@ -13,6 +13,7 @@ __export(code_exports, {
|
|
|
13
13
|
SQL_DEFAULT_OPTIONS: () => SQL_DEFAULT_OPTIONS,
|
|
14
14
|
analyzeRegexGroups: () => analyzeRegexGroups,
|
|
15
15
|
auditDependencyRanges: () => auditDependencyRanges,
|
|
16
|
+
buildCharacterClass: () => buildCharacterClass,
|
|
16
17
|
buildDockerPull: () => buildDockerPull,
|
|
17
18
|
buildDockerRun: () => buildDockerRun,
|
|
18
19
|
buildGitCommand: () => buildGitCommand,
|
|
@@ -4433,5 +4434,70 @@ function extractMarkdownLinkReferences(markdown) {
|
|
|
4433
4434
|
unusedDefinitions
|
|
4434
4435
|
};
|
|
4435
4436
|
}
|
|
4437
|
+
var CHAR_CLASS_SPECIAL_CHARS = /* @__PURE__ */ new Set(["]", "\\", "^", "-"]);
|
|
4438
|
+
function escapeForCharClass(ch) {
|
|
4439
|
+
return CHAR_CLASS_SPECIAL_CHARS.has(ch) ? `\\${ch}` : ch;
|
|
4440
|
+
}
|
|
4441
|
+
var CHAR_CLASS_RANGE_RE = /^(.)-(.)$/u;
|
|
4442
|
+
function buildCharacterClass(options) {
|
|
4443
|
+
const {
|
|
4444
|
+
lowercase = false,
|
|
4445
|
+
uppercase = false,
|
|
4446
|
+
digits = false,
|
|
4447
|
+
whitespace = false,
|
|
4448
|
+
customRanges = [],
|
|
4449
|
+
customChars = "",
|
|
4450
|
+
negate = false
|
|
4451
|
+
} = options ?? {};
|
|
4452
|
+
const hasAny = lowercase || uppercase || digits || whitespace || customRanges.length > 0 || customChars.length > 0;
|
|
4453
|
+
if (!hasAny) {
|
|
4454
|
+
return { error: "At least one character set, custom range, or custom character must be specified" };
|
|
4455
|
+
}
|
|
4456
|
+
const parts = [];
|
|
4457
|
+
const includes = [];
|
|
4458
|
+
if (lowercase) {
|
|
4459
|
+
parts.push("a-z");
|
|
4460
|
+
includes.push("a-z: lowercase letters");
|
|
4461
|
+
}
|
|
4462
|
+
if (uppercase) {
|
|
4463
|
+
parts.push("A-Z");
|
|
4464
|
+
includes.push("A-Z: uppercase letters");
|
|
4465
|
+
}
|
|
4466
|
+
if (digits) {
|
|
4467
|
+
parts.push("0-9");
|
|
4468
|
+
includes.push("0-9: digits");
|
|
4469
|
+
}
|
|
4470
|
+
if (whitespace) {
|
|
4471
|
+
parts.push("\\s");
|
|
4472
|
+
includes.push("\\s: whitespace characters (space, tab, newline, etc.)");
|
|
4473
|
+
}
|
|
4474
|
+
for (let i = 0; i < customRanges.length; i++) {
|
|
4475
|
+
const range = customRanges[i];
|
|
4476
|
+
const match = CHAR_CLASS_RANGE_RE.exec(range);
|
|
4477
|
+
if (!match) {
|
|
4478
|
+
return { error: `customRanges[${i}] ("${range}") must be exactly two characters joined by a hyphen, e.g. "f-k"` };
|
|
4479
|
+
}
|
|
4480
|
+
const [, start, end] = match;
|
|
4481
|
+
if (start.codePointAt(0) > end.codePointAt(0)) {
|
|
4482
|
+
return { error: `customRanges[${i}] ("${range}") has a start character that comes after its end character` };
|
|
4483
|
+
}
|
|
4484
|
+
parts.push(`${escapeForCharClass(start)}-${escapeForCharClass(end)}`);
|
|
4485
|
+
includes.push(`${range}: custom range from '${start}' to '${end}' inclusive`);
|
|
4486
|
+
}
|
|
4487
|
+
if (customChars.length > 0) {
|
|
4488
|
+
const seen = /* @__PURE__ */ new Set();
|
|
4489
|
+
const unique = [];
|
|
4490
|
+
for (const ch of customChars) {
|
|
4491
|
+
if (!seen.has(ch)) {
|
|
4492
|
+
seen.add(ch);
|
|
4493
|
+
unique.push(ch);
|
|
4494
|
+
}
|
|
4495
|
+
}
|
|
4496
|
+
parts.push(unique.map(escapeForCharClass).join(""));
|
|
4497
|
+
includes.push(`custom characters: ${unique.join(", ")}`);
|
|
4498
|
+
}
|
|
4499
|
+
const pattern = `[${negate ? "^" : ""}${parts.join("")}]`;
|
|
4500
|
+
return { pattern, negate, includes };
|
|
4501
|
+
}
|
|
4436
4502
|
|
|
4437
|
-
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, KNOWN_LANGUAGE_TAGS, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, code_exports, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, countSqlPlaceholders, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractMarkdownFootnotes, extractMarkdownLinkReferences, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lintDockerfile, 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 };
|
|
4503
|
+
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, KNOWN_LANGUAGE_TAGS, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildCharacterClass, buildDockerPull, buildDockerRun, buildGitCommand, code_exports, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, countSqlPlaceholders, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractMarkdownFootnotes, extractMarkdownLinkReferences, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lintDockerfile, 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 };
|
|
@@ -54,6 +54,7 @@ __export(data_exports, {
|
|
|
54
54
|
tomlToJson: () => tomlToJson,
|
|
55
55
|
validateEnvKey: () => validateEnvKey,
|
|
56
56
|
validateIni: () => validateIni,
|
|
57
|
+
validateMarkdownHeadingHierarchy: () => validateMarkdownHeadingHierarchy,
|
|
57
58
|
validateNdjson: () => validateNdjson,
|
|
58
59
|
validateToml: () => validateToml,
|
|
59
60
|
validateXml: () => validateXml,
|
|
@@ -1580,6 +1581,84 @@ function generateMarkdownToc(markdown, options = {}) {
|
|
|
1580
1581
|
});
|
|
1581
1582
|
return { toc: tocLines.join("\n"), entries };
|
|
1582
1583
|
}
|
|
1584
|
+
var HEADING_HIERARCHY_RE = /^(#{1,6})(?!#)(?:[ \t]+(.*?))?[ \t]*#*[ \t]*$/;
|
|
1585
|
+
function validateMarkdownHeadingHierarchy(markdown) {
|
|
1586
|
+
const lines = markdown.replace(/\r\n/g, "\n").split("\n");
|
|
1587
|
+
const headings = [];
|
|
1588
|
+
let inFence = false;
|
|
1589
|
+
let fenceMarker = "";
|
|
1590
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1591
|
+
const line = lines[i];
|
|
1592
|
+
const fenceMatch = line.match(/^\s*(```+|~~~+)/);
|
|
1593
|
+
if (fenceMatch) {
|
|
1594
|
+
if (!inFence) {
|
|
1595
|
+
inFence = true;
|
|
1596
|
+
fenceMarker = fenceMatch[1][0];
|
|
1597
|
+
} else if (fenceMatch[1][0] === fenceMarker) {
|
|
1598
|
+
inFence = false;
|
|
1599
|
+
}
|
|
1600
|
+
continue;
|
|
1601
|
+
}
|
|
1602
|
+
if (inFence) continue;
|
|
1603
|
+
const match = line.match(HEADING_HIERARCHY_RE);
|
|
1604
|
+
if (!match) continue;
|
|
1605
|
+
const level = match[1].length;
|
|
1606
|
+
const text = stripInlineMarkdown(match[2] ?? "");
|
|
1607
|
+
headings.push({ line: i + 1, level, text });
|
|
1608
|
+
}
|
|
1609
|
+
const issues = [];
|
|
1610
|
+
const seen = /* @__PURE__ */ new Map();
|
|
1611
|
+
let h1Count = 0;
|
|
1612
|
+
let firstH1Line = null;
|
|
1613
|
+
let prevLevel = null;
|
|
1614
|
+
headings.forEach((h, idx) => {
|
|
1615
|
+
if (h.text === "") {
|
|
1616
|
+
issues.push({ line: h.line, type: "empty-heading", message: `Heading at line ${h.line} has no text` });
|
|
1617
|
+
}
|
|
1618
|
+
if (idx === 0 && h.level !== 1) {
|
|
1619
|
+
issues.push({
|
|
1620
|
+
line: h.line,
|
|
1621
|
+
type: "starts-below-h1",
|
|
1622
|
+
message: `Document starts with an H${h.level} heading instead of H1`
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
if (h.level === 1) {
|
|
1626
|
+
h1Count++;
|
|
1627
|
+
if (h1Count === 1) {
|
|
1628
|
+
firstH1Line = h.line;
|
|
1629
|
+
} else {
|
|
1630
|
+
issues.push({
|
|
1631
|
+
line: h.line,
|
|
1632
|
+
type: "multiple-h1",
|
|
1633
|
+
message: `Multiple H1 headings found: another H1 at line ${h.line} (first was at line ${firstH1Line})`
|
|
1634
|
+
});
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
if (prevLevel !== null && h.level > prevLevel + 1) {
|
|
1638
|
+
const skipped = h.level - prevLevel > 2 ? `H${prevLevel + 1}-H${h.level - 1}` : `H${prevLevel + 1}`;
|
|
1639
|
+
issues.push({
|
|
1640
|
+
line: h.line,
|
|
1641
|
+
type: "skipped-level",
|
|
1642
|
+
message: `Heading level jumps from H${prevLevel} to H${h.level} at line ${h.line}, skipping ${skipped}`
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
prevLevel = h.level;
|
|
1646
|
+
if (h.text !== "") {
|
|
1647
|
+
const key = `${h.level}:${h.text.toLowerCase()}`;
|
|
1648
|
+
const earlierLine = seen.get(key);
|
|
1649
|
+
if (earlierLine !== void 0) {
|
|
1650
|
+
issues.push({
|
|
1651
|
+
line: h.line,
|
|
1652
|
+
type: "duplicate-heading",
|
|
1653
|
+
message: `Heading "${h.text}" at line ${h.line} duplicates an H${h.level} heading at line ${earlierLine}`
|
|
1654
|
+
});
|
|
1655
|
+
} else {
|
|
1656
|
+
seen.set(key, h.line);
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
return { headings, issues, h1Count };
|
|
1661
|
+
}
|
|
1583
1662
|
function quoteSqlIdentifier(name, dialect) {
|
|
1584
1663
|
if (dialect === "mysql") return "`" + name.replace(/`/g, "``") + "`";
|
|
1585
1664
|
return '"' + name.replace(/"/g, '""') + '"';
|
|
@@ -1976,4 +2055,4 @@ function alignMarkdownTables(markdown) {
|
|
|
1976
2055
|
return { output: outputLines.join("\n"), tables, warnings };
|
|
1977
2056
|
}
|
|
1978
2057
|
|
|
1979
|
-
export { alignMarkdownTables, analyzeCaptionSpeed, calculateMarkdownTaskListProgress, convertSubtitles, csvToJson, csvToSqlInsert, data_exports, dedupeNdjson, detectDelimiter, detectSubtitleFormat, diffEnvExample, envToExport, envToJson, findCsvDuplicateRows, formatNdjson, formatSubtitleTimestamp, formatToml, formatXml, generateMarkdownToc, getSection, getSectionNames, getTomlStats, getXmlStats, getYamlStats, inferCsvColumnTypes, iniToJson, jsonArrayToNdjson, jsonToIni, jsonToToml, jsonToXml, minifyNdjson, minifyToml, minifyXml, ndjsonToCsv, ndjsonToJsonArray, parseCsv, parseEnv, parseFrontMatter, parseIni, parseSubtitleTimestamp, parseSubtitles, parseXmlToObject, resolveYamlAnchors, serializeSubtitles, shiftSubtitles, stringifyIni, toCsvString, tomlToJson, validateEnvKey, validateIni, validateNdjson, validateToml, validateXml, validateYaml, xmlToJson };
|
|
2058
|
+
export { alignMarkdownTables, analyzeCaptionSpeed, calculateMarkdownTaskListProgress, convertSubtitles, csvToJson, csvToSqlInsert, data_exports, dedupeNdjson, detectDelimiter, detectSubtitleFormat, diffEnvExample, envToExport, envToJson, findCsvDuplicateRows, formatNdjson, formatSubtitleTimestamp, formatToml, formatXml, generateMarkdownToc, getSection, getSectionNames, getTomlStats, getXmlStats, getYamlStats, inferCsvColumnTypes, iniToJson, jsonArrayToNdjson, jsonToIni, jsonToToml, jsonToXml, minifyNdjson, minifyToml, minifyXml, ndjsonToCsv, ndjsonToJsonArray, parseCsv, parseEnv, parseFrontMatter, parseIni, parseSubtitleTimestamp, parseSubtitles, parseXmlToObject, resolveYamlAnchors, serializeSubtitles, shiftSubtitles, stringifyIni, toCsvString, tomlToJson, validateEnvKey, validateIni, validateMarkdownHeadingHierarchy, validateNdjson, validateToml, validateXml, validateYaml, xmlToJson };
|
|
@@ -49,6 +49,7 @@ __export(units_exports, {
|
|
|
49
49
|
calculateRequiredBandwidth: () => calculateRequiredBandwidth,
|
|
50
50
|
calculateRoi: () => calculateRoi,
|
|
51
51
|
calculateRuleOf72: () => calculateRuleOf72,
|
|
52
|
+
calculateSalesCommission: () => calculateSalesCommission,
|
|
52
53
|
calculateSavingsGoal: () => calculateSavingsGoal,
|
|
53
54
|
calculateSimpleInterest: () => calculateSimpleInterest,
|
|
54
55
|
calculateTax: () => calculateTax,
|
|
@@ -2856,5 +2857,82 @@ function calculateCreditCardMinimumPayment(balance, aprPercent, minPaymentPercen
|
|
|
2856
2857
|
finalMonthPayment
|
|
2857
2858
|
};
|
|
2858
2859
|
}
|
|
2860
|
+
function calculateSalesCommission(input) {
|
|
2861
|
+
const { salesAmount, flatRatePercent, tiers, baseSalary = 0 } = input;
|
|
2862
|
+
if (!Number.isFinite(salesAmount) || salesAmount < 0) {
|
|
2863
|
+
return { error: "salesAmount must be a finite, non-negative number" };
|
|
2864
|
+
}
|
|
2865
|
+
if (!Number.isFinite(baseSalary) || baseSalary < 0) {
|
|
2866
|
+
return { error: "baseSalary must be a finite, non-negative number when provided" };
|
|
2867
|
+
}
|
|
2868
|
+
const hasFlat = flatRatePercent !== void 0;
|
|
2869
|
+
const hasTiers = tiers !== void 0;
|
|
2870
|
+
if (hasFlat === hasTiers) {
|
|
2871
|
+
return { error: "Provide exactly one of flatRatePercent or tiers, not both and not neither" };
|
|
2872
|
+
}
|
|
2873
|
+
const round4 = (n) => Math.round(n * 1e4) / 1e4;
|
|
2874
|
+
if (hasFlat) {
|
|
2875
|
+
if (!Number.isFinite(flatRatePercent) || flatRatePercent < 0) {
|
|
2876
|
+
return { error: "flatRatePercent must be a finite, non-negative number" };
|
|
2877
|
+
}
|
|
2878
|
+
const commission2 = salesAmount * flatRatePercent / 100;
|
|
2879
|
+
return {
|
|
2880
|
+
salesAmount: round4(salesAmount),
|
|
2881
|
+
mode: "flat",
|
|
2882
|
+
commission: round4(commission2),
|
|
2883
|
+
baseSalary: round4(baseSalary),
|
|
2884
|
+
totalPayout: round4(baseSalary + commission2)
|
|
2885
|
+
};
|
|
2886
|
+
}
|
|
2887
|
+
const tierList = tiers;
|
|
2888
|
+
if (tierList.length === 0) {
|
|
2889
|
+
return { error: "tiers must contain at least one entry" };
|
|
2890
|
+
}
|
|
2891
|
+
let previousUpTo = 0;
|
|
2892
|
+
for (let i = 0; i < tierList.length; i++) {
|
|
2893
|
+
const tier = tierList[i];
|
|
2894
|
+
const isLast = i === tierList.length - 1;
|
|
2895
|
+
if (!Number.isFinite(tier.ratePercent) || tier.ratePercent < 0) {
|
|
2896
|
+
return { error: `tiers[${i}].ratePercent must be a finite, non-negative number` };
|
|
2897
|
+
}
|
|
2898
|
+
if (tier.upTo === null) {
|
|
2899
|
+
if (!isLast) {
|
|
2900
|
+
return { error: `tiers[${i}].upTo may only be null on the last tier (an unbounded top tier)` };
|
|
2901
|
+
}
|
|
2902
|
+
} else {
|
|
2903
|
+
if (!Number.isFinite(tier.upTo) || tier.upTo <= previousUpTo) {
|
|
2904
|
+
return {
|
|
2905
|
+
error: `tiers[${i}].upTo must be a finite number greater than the previous tier's upTo (${previousUpTo})`
|
|
2906
|
+
};
|
|
2907
|
+
}
|
|
2908
|
+
previousUpTo = tier.upTo;
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
let lowerBound = 0;
|
|
2912
|
+
let commission = 0;
|
|
2913
|
+
const breakdown = [];
|
|
2914
|
+
for (const tier of tierList) {
|
|
2915
|
+
const upper = tier.upTo === null ? Infinity : tier.upTo;
|
|
2916
|
+
const amountInRange = Math.min(Math.max(salesAmount - lowerBound, 0), upper - lowerBound);
|
|
2917
|
+
const commissionForRange = amountInRange * tier.ratePercent / 100;
|
|
2918
|
+
commission += commissionForRange;
|
|
2919
|
+
breakdown.push({
|
|
2920
|
+
rangeStart: round4(lowerBound),
|
|
2921
|
+
rangeEnd: tier.upTo === null ? null : round4(tier.upTo),
|
|
2922
|
+
ratePercent: tier.ratePercent,
|
|
2923
|
+
amountInRange: round4(amountInRange),
|
|
2924
|
+
commissionForRange: round4(commissionForRange)
|
|
2925
|
+
});
|
|
2926
|
+
lowerBound = upper;
|
|
2927
|
+
}
|
|
2928
|
+
return {
|
|
2929
|
+
salesAmount: round4(salesAmount),
|
|
2930
|
+
mode: "tiered",
|
|
2931
|
+
commission: round4(commission),
|
|
2932
|
+
baseSalary: round4(baseSalary),
|
|
2933
|
+
totalPayout: round4(baseSalary + commission),
|
|
2934
|
+
breakdown
|
|
2935
|
+
};
|
|
2936
|
+
}
|
|
2859
2937
|
|
|
2860
|
-
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditCardMinimumPayment, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRealRateOfReturn, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateTransferTime, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateVin, viewportToPx };
|
|
2938
|
+
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditCardMinimumPayment, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRealRateOfReturn, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSalesCommission, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateTransferTime, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateVin, viewportToPx };
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
* - connection-string-parser (parseConnectionString)
|
|
36
36
|
* - markdown-fence-lang-validator (validateFenceLanguageTags, KNOWN_LANGUAGE_TAGS)
|
|
37
37
|
* - sql-placeholder-counter (countSqlPlaceholders)
|
|
38
|
+
* - regex-character-class-builder (buildCharacterClass)
|
|
38
39
|
*/
|
|
39
40
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
40
41
|
declare const ALL_FLAGS: RegexFlag[];
|
|
@@ -780,6 +781,31 @@ interface MarkdownLinkReferenceResult {
|
|
|
780
781
|
declare function extractMarkdownLinkReferences(markdown: string): MarkdownLinkReferenceResult | {
|
|
781
782
|
error: string;
|
|
782
783
|
};
|
|
784
|
+
interface CharClassOptions {
|
|
785
|
+
lowercase?: boolean;
|
|
786
|
+
uppercase?: boolean;
|
|
787
|
+
digits?: boolean;
|
|
788
|
+
whitespace?: boolean;
|
|
789
|
+
/** Ranges like "f-k", each exactly two characters joined by a hyphen, start <= end. */
|
|
790
|
+
customRanges?: string[];
|
|
791
|
+
/** Literal characters to include as-is (duplicates are ignored). */
|
|
792
|
+
customChars?: string;
|
|
793
|
+
negate?: boolean;
|
|
794
|
+
}
|
|
795
|
+
interface CharClassResult {
|
|
796
|
+
pattern: string;
|
|
797
|
+
negate: boolean;
|
|
798
|
+
includes: string[];
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Assemble a `[...]` regex character class from named building blocks
|
|
802
|
+
* (lowercase, uppercase, digits, whitespace), custom character ranges, and
|
|
803
|
+
* literal custom characters, with optional negation. Pure string assembly,
|
|
804
|
+
* it never runs the resulting pattern against any input.
|
|
805
|
+
*/
|
|
806
|
+
declare function buildCharacterClass(options: CharClassOptions): CharClassResult | {
|
|
807
|
+
error: string;
|
|
808
|
+
};
|
|
783
809
|
|
|
784
810
|
declare const code_ALL_FLAGS: typeof ALL_FLAGS;
|
|
785
811
|
type code_ApiEndpoint = ApiEndpoint;
|
|
@@ -787,6 +813,8 @@ type code_ApiInfo = ApiInfo;
|
|
|
787
813
|
type code_AriaIssue = AriaIssue;
|
|
788
814
|
type code_AriaValidationResult = AriaValidationResult;
|
|
789
815
|
declare const code_CHEATSHEET: typeof CHEATSHEET;
|
|
816
|
+
type code_CharClassOptions = CharClassOptions;
|
|
817
|
+
type code_CharClassResult = CharClassResult;
|
|
790
818
|
type code_CheatsheetEntry = CheatsheetEntry;
|
|
791
819
|
type code_CommitTrailer = CommitTrailer;
|
|
792
820
|
type code_CommitTrailerResult = CommitTrailerResult;
|
|
@@ -875,6 +903,7 @@ type code_TsconfigIssue = TsconfigIssue;
|
|
|
875
903
|
type code_TsconfigValidationResult = TsconfigValidationResult;
|
|
876
904
|
declare const code_analyzeRegexGroups: typeof analyzeRegexGroups;
|
|
877
905
|
declare const code_auditDependencyRanges: typeof auditDependencyRanges;
|
|
906
|
+
declare const code_buildCharacterClass: typeof buildCharacterClass;
|
|
878
907
|
declare const code_buildDockerPull: typeof buildDockerPull;
|
|
879
908
|
declare const code_buildDockerRun: typeof buildDockerRun;
|
|
880
909
|
declare const code_buildGitCommand: typeof buildGitCommand;
|
|
@@ -934,7 +963,7 @@ declare const code_validateFenceLanguageTags: typeof validateFenceLanguageTags;
|
|
|
934
963
|
declare const code_validatePackageExports: typeof validatePackageExports;
|
|
935
964
|
declare const code_validateTsconfig: typeof validateTsconfig;
|
|
936
965
|
declare namespace code {
|
|
937
|
-
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, type code_AriaIssue as AriaIssue, type code_AriaValidationResult as AriaValidationResult, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_CommitTrailer as CommitTrailer, type code_CommitTrailerResult as CommitTrailerResult, type code_ConnectionStringHost as ConnectionStringHost, type code_ConnectionStringResult as ConnectionStringResult, 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_DockerfileLintFinding as DockerfileLintFinding, type code_DockerfileLintResult as DockerfileLintResult, type code_DockerfileStage as DockerfileStage, 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_FenceTagIssue as FenceTagIssue, type code_FenceTagIssueType as FenceTagIssueType, type code_FenceValidationResult as FenceValidationResult, 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_KNOWN_LANGUAGE_TAGS as KNOWN_LANGUAGE_TAGS, type code_LinkReferenceDefinition as LinkReferenceDefinition, type code_LinkReferenceUsage as LinkReferenceUsage, code_MIME_TABLE as MIME_TABLE, type code_MarkdownFootnoteDefinition as MarkdownFootnoteDefinition, type code_MarkdownFootnoteReference as MarkdownFootnoteReference, type code_MarkdownFootnoteResult as MarkdownFootnoteResult, type code_MarkdownLinkReferenceResult as MarkdownLinkReferenceResult, 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_PlaceholderStyle as PlaceholderStyle, 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, type code_ResolvedLinkReference as ResolvedLinkReference, 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_SqlPlaceholder as SqlPlaceholder, type code_SqlPlaceholderResult as SqlPlaceholderResult, 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_countSqlPlaceholders as countSqlPlaceholders, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_extractMarkdownFootnotes as extractMarkdownFootnotes, code_extractMarkdownLinkReferences as extractMarkdownLinkReferences, 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_lintDockerfile as lintDockerfile, 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_parseCommitTrailers as parseCommitTrailers, code_parseConnectionString as parseConnectionString, 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_validateAria as validateAria, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validateFenceLanguageTags as validateFenceLanguageTags, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
966
|
+
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, type code_AriaIssue as AriaIssue, type code_AriaValidationResult as AriaValidationResult, code_CHEATSHEET as CHEATSHEET, type code_CharClassOptions as CharClassOptions, type code_CharClassResult as CharClassResult, type code_CheatsheetEntry as CheatsheetEntry, type code_CommitTrailer as CommitTrailer, type code_CommitTrailerResult as CommitTrailerResult, type code_ConnectionStringHost as ConnectionStringHost, type code_ConnectionStringResult as ConnectionStringResult, 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_DockerfileLintFinding as DockerfileLintFinding, type code_DockerfileLintResult as DockerfileLintResult, type code_DockerfileStage as DockerfileStage, 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_FenceTagIssue as FenceTagIssue, type code_FenceTagIssueType as FenceTagIssueType, type code_FenceValidationResult as FenceValidationResult, 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_KNOWN_LANGUAGE_TAGS as KNOWN_LANGUAGE_TAGS, type code_LinkReferenceDefinition as LinkReferenceDefinition, type code_LinkReferenceUsage as LinkReferenceUsage, code_MIME_TABLE as MIME_TABLE, type code_MarkdownFootnoteDefinition as MarkdownFootnoteDefinition, type code_MarkdownFootnoteReference as MarkdownFootnoteReference, type code_MarkdownFootnoteResult as MarkdownFootnoteResult, type code_MarkdownLinkReferenceResult as MarkdownLinkReferenceResult, 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_PlaceholderStyle as PlaceholderStyle, 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, type code_ResolvedLinkReference as ResolvedLinkReference, 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_SqlPlaceholder as SqlPlaceholder, type code_SqlPlaceholderResult as SqlPlaceholderResult, 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_buildCharacterClass as buildCharacterClass, 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_countSqlPlaceholders as countSqlPlaceholders, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_extractMarkdownFootnotes as extractMarkdownFootnotes, code_extractMarkdownLinkReferences as extractMarkdownLinkReferences, 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_lintDockerfile as lintDockerfile, 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_parseCommitTrailers as parseCommitTrailers, code_parseConnectionString as parseConnectionString, 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_validateAria as validateAria, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validateFenceLanguageTags as validateFenceLanguageTags, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
938
967
|
}
|
|
939
968
|
|
|
940
|
-
export { type
|
|
969
|
+
export { type HtmlMinifyResult as $, ALL_FLAGS as A, type DockerfileLintFinding as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type DockerfileLintResult as E, type DockerfileStage as F, type EditorConfigIssue as G, type EditorConfigProperty as H, type EditorConfigSection as I, type EditorConfigValidationResult as J, type EnvEntry as K, type EnvParseResult as L, type ExportsIssue as M, type ExportsShape as N, type ExportsValidationResult as O, type FenceTagIssue as P, type FenceTagIssueType as Q, type FenceValidationResult as R, type GitCommandConfig as S, type GitCommandResult as T, type GitOperation as U, type GithubUrlInfo as V, type GithubUrlType as W, type GitignoreTestResult as X, type GqlFormatResult as Y, type HtmlFormatResult as Z, type HtmlMinifyOptions as _, type ApiEndpoint as a, formatSql as a$, type JsMinifyOptions as a0, type JsMinifyResult as a1, KNOWN_LANGUAGE_TAGS as a2, type LinkReferenceDefinition as a3, type LinkReferenceUsage as a4, MIME_TABLE as a5, type MarkdownFootnoteDefinition as a6, type MarkdownFootnoteReference as a7, type MarkdownFootnoteResult as a8, type MarkdownLinkReferenceResult as a9, type SvgSpriteResult as aA, type SvgSpriteSymbol as aB, type TestPatternResult as aC, type TsconfigIssue as aD, type TsconfigValidationResult as aE, analyzeRegexGroups as aF, auditDependencyRanges as aG, buildCharacterClass as aH, buildDockerPull as aI, buildDockerRun as aJ, buildGitCommand as aK, collapseHtmlWhitespace as aL, collapseJsWhitespace as aM, countProperties as aN, countRules as aO, countSqlPlaceholders as aP, detectDialect as aQ, detectOperationType as aR, detectRedos as aS, envToExport as aT, envToJson as aU, extractMarkdownFootnotes as aV, extractMarkdownLinkReferences as aW, extractSvgSpriteSymbols as aX, formatCss as aY, formatGql as aZ, formatHtml as a_, type MatchResult as aa, type MimeEntry as ab, type MimeLookupResult as ac, OPERATIONS as ad, type ParsedSpec as ae, type PlaceholderStyle as af, type RedosFinding as ag, type RedosResult as ah, type RedosSeverity as ai, type RegexBackreferenceInfo as aj, type RegexError as ak, type RegexFlag as al, type RegexGroupAnalysis as am, type RegexGroupInfo as an, type RegexGroupIssue as ao, type RegexMatch as ap, type RegexResult as aq, type RegexSuccess as ar, type ResolvedLinkReference as as, SQL_DEFAULT_OPTIONS as at, type Segment as au, type SpecVersion as av, type SqlDialect as aw, type SqlFormatOptions as ax, type SqlPlaceholder as ay, type SqlPlaceholderResult as az, type ApiInfo as b, getEndpointsByTag as b0, getHtmlStats as b1, getJsStats as b2, getMethodColor as b3, isValidTag as b4, lintConventionalCommit as b5, lintDockerfile as b6, lookupMime as b7, minifyCss as b8, minifyGql as b9, validatePackageExports as bA, validateTsconfig as bB, minifyHtml as ba, minifyJs as bb, minifySql as bc, normalizeRef as bd, parseCommitTrailers as be, parseConnectionString as bf, parseDockerImage as bg, parseEnv as bh, parseGitCommand as bi, parseGithubUrl as bj, parseSpec as bk, removeConsoleCalls as bl, removeEmptyAttributes as bm, removeHtmlComments as bn, removeJsComments as bo, removeRedundantAttributes as bp, searchCheatsheet as bq, searchEndpoints as br, splitStatements as bs, testGitignorePatterns as bt, testPattern as bu, testRegex as bv, validateAria as bw, validateEditorConfig as bx, validateEnvKey as by, validateFenceLanguageTags as bz, code as c, type AriaIssue as d, type AriaValidationResult as e, type CharClassOptions as f, type CharClassResult as g, type CheatsheetEntry as h, type CommitTrailer as i, type CommitTrailerResult as j, type ConnectionStringHost as k, type ConnectionStringResult as l, type ConventionalCommitFinding as m, type ConventionalCommitFooter as n, type ConventionalCommitOptions as o, type ConventionalCommitParsed as p, type ConventionalCommitResult as q, type ConventionalCommitSeverity as r, type CssResult as s, type DependencyAuditDuplicate as t, type DependencyAuditEntry as u, type DependencyAuditIssue as v, type DependencyAuditResult as w, type DependencyRangeType as x, type DependencySection as y, type DockerImageRef as z };
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
* - connection-string-parser (parseConnectionString)
|
|
36
36
|
* - markdown-fence-lang-validator (validateFenceLanguageTags, KNOWN_LANGUAGE_TAGS)
|
|
37
37
|
* - sql-placeholder-counter (countSqlPlaceholders)
|
|
38
|
+
* - regex-character-class-builder (buildCharacterClass)
|
|
38
39
|
*/
|
|
39
40
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
40
41
|
declare const ALL_FLAGS: RegexFlag[];
|
|
@@ -780,6 +781,31 @@ interface MarkdownLinkReferenceResult {
|
|
|
780
781
|
declare function extractMarkdownLinkReferences(markdown: string): MarkdownLinkReferenceResult | {
|
|
781
782
|
error: string;
|
|
782
783
|
};
|
|
784
|
+
interface CharClassOptions {
|
|
785
|
+
lowercase?: boolean;
|
|
786
|
+
uppercase?: boolean;
|
|
787
|
+
digits?: boolean;
|
|
788
|
+
whitespace?: boolean;
|
|
789
|
+
/** Ranges like "f-k", each exactly two characters joined by a hyphen, start <= end. */
|
|
790
|
+
customRanges?: string[];
|
|
791
|
+
/** Literal characters to include as-is (duplicates are ignored). */
|
|
792
|
+
customChars?: string;
|
|
793
|
+
negate?: boolean;
|
|
794
|
+
}
|
|
795
|
+
interface CharClassResult {
|
|
796
|
+
pattern: string;
|
|
797
|
+
negate: boolean;
|
|
798
|
+
includes: string[];
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Assemble a `[...]` regex character class from named building blocks
|
|
802
|
+
* (lowercase, uppercase, digits, whitespace), custom character ranges, and
|
|
803
|
+
* literal custom characters, with optional negation. Pure string assembly,
|
|
804
|
+
* it never runs the resulting pattern against any input.
|
|
805
|
+
*/
|
|
806
|
+
declare function buildCharacterClass(options: CharClassOptions): CharClassResult | {
|
|
807
|
+
error: string;
|
|
808
|
+
};
|
|
783
809
|
|
|
784
810
|
declare const code_ALL_FLAGS: typeof ALL_FLAGS;
|
|
785
811
|
type code_ApiEndpoint = ApiEndpoint;
|
|
@@ -787,6 +813,8 @@ type code_ApiInfo = ApiInfo;
|
|
|
787
813
|
type code_AriaIssue = AriaIssue;
|
|
788
814
|
type code_AriaValidationResult = AriaValidationResult;
|
|
789
815
|
declare const code_CHEATSHEET: typeof CHEATSHEET;
|
|
816
|
+
type code_CharClassOptions = CharClassOptions;
|
|
817
|
+
type code_CharClassResult = CharClassResult;
|
|
790
818
|
type code_CheatsheetEntry = CheatsheetEntry;
|
|
791
819
|
type code_CommitTrailer = CommitTrailer;
|
|
792
820
|
type code_CommitTrailerResult = CommitTrailerResult;
|
|
@@ -875,6 +903,7 @@ type code_TsconfigIssue = TsconfigIssue;
|
|
|
875
903
|
type code_TsconfigValidationResult = TsconfigValidationResult;
|
|
876
904
|
declare const code_analyzeRegexGroups: typeof analyzeRegexGroups;
|
|
877
905
|
declare const code_auditDependencyRanges: typeof auditDependencyRanges;
|
|
906
|
+
declare const code_buildCharacterClass: typeof buildCharacterClass;
|
|
878
907
|
declare const code_buildDockerPull: typeof buildDockerPull;
|
|
879
908
|
declare const code_buildDockerRun: typeof buildDockerRun;
|
|
880
909
|
declare const code_buildGitCommand: typeof buildGitCommand;
|
|
@@ -934,7 +963,7 @@ declare const code_validateFenceLanguageTags: typeof validateFenceLanguageTags;
|
|
|
934
963
|
declare const code_validatePackageExports: typeof validatePackageExports;
|
|
935
964
|
declare const code_validateTsconfig: typeof validateTsconfig;
|
|
936
965
|
declare namespace code {
|
|
937
|
-
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, type code_AriaIssue as AriaIssue, type code_AriaValidationResult as AriaValidationResult, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_CommitTrailer as CommitTrailer, type code_CommitTrailerResult as CommitTrailerResult, type code_ConnectionStringHost as ConnectionStringHost, type code_ConnectionStringResult as ConnectionStringResult, 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_DockerfileLintFinding as DockerfileLintFinding, type code_DockerfileLintResult as DockerfileLintResult, type code_DockerfileStage as DockerfileStage, 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_FenceTagIssue as FenceTagIssue, type code_FenceTagIssueType as FenceTagIssueType, type code_FenceValidationResult as FenceValidationResult, 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_KNOWN_LANGUAGE_TAGS as KNOWN_LANGUAGE_TAGS, type code_LinkReferenceDefinition as LinkReferenceDefinition, type code_LinkReferenceUsage as LinkReferenceUsage, code_MIME_TABLE as MIME_TABLE, type code_MarkdownFootnoteDefinition as MarkdownFootnoteDefinition, type code_MarkdownFootnoteReference as MarkdownFootnoteReference, type code_MarkdownFootnoteResult as MarkdownFootnoteResult, type code_MarkdownLinkReferenceResult as MarkdownLinkReferenceResult, 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_PlaceholderStyle as PlaceholderStyle, 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, type code_ResolvedLinkReference as ResolvedLinkReference, 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_SqlPlaceholder as SqlPlaceholder, type code_SqlPlaceholderResult as SqlPlaceholderResult, 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_countSqlPlaceholders as countSqlPlaceholders, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_extractMarkdownFootnotes as extractMarkdownFootnotes, code_extractMarkdownLinkReferences as extractMarkdownLinkReferences, 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_lintDockerfile as lintDockerfile, 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_parseCommitTrailers as parseCommitTrailers, code_parseConnectionString as parseConnectionString, 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_validateAria as validateAria, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validateFenceLanguageTags as validateFenceLanguageTags, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
966
|
+
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, type code_AriaIssue as AriaIssue, type code_AriaValidationResult as AriaValidationResult, code_CHEATSHEET as CHEATSHEET, type code_CharClassOptions as CharClassOptions, type code_CharClassResult as CharClassResult, type code_CheatsheetEntry as CheatsheetEntry, type code_CommitTrailer as CommitTrailer, type code_CommitTrailerResult as CommitTrailerResult, type code_ConnectionStringHost as ConnectionStringHost, type code_ConnectionStringResult as ConnectionStringResult, 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_DockerfileLintFinding as DockerfileLintFinding, type code_DockerfileLintResult as DockerfileLintResult, type code_DockerfileStage as DockerfileStage, 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_FenceTagIssue as FenceTagIssue, type code_FenceTagIssueType as FenceTagIssueType, type code_FenceValidationResult as FenceValidationResult, 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_KNOWN_LANGUAGE_TAGS as KNOWN_LANGUAGE_TAGS, type code_LinkReferenceDefinition as LinkReferenceDefinition, type code_LinkReferenceUsage as LinkReferenceUsage, code_MIME_TABLE as MIME_TABLE, type code_MarkdownFootnoteDefinition as MarkdownFootnoteDefinition, type code_MarkdownFootnoteReference as MarkdownFootnoteReference, type code_MarkdownFootnoteResult as MarkdownFootnoteResult, type code_MarkdownLinkReferenceResult as MarkdownLinkReferenceResult, 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_PlaceholderStyle as PlaceholderStyle, 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, type code_ResolvedLinkReference as ResolvedLinkReference, 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_SqlPlaceholder as SqlPlaceholder, type code_SqlPlaceholderResult as SqlPlaceholderResult, 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_buildCharacterClass as buildCharacterClass, 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_countSqlPlaceholders as countSqlPlaceholders, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_extractMarkdownFootnotes as extractMarkdownFootnotes, code_extractMarkdownLinkReferences as extractMarkdownLinkReferences, 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_lintDockerfile as lintDockerfile, 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_parseCommitTrailers as parseCommitTrailers, code_parseConnectionString as parseConnectionString, 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_validateAria as validateAria, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validateFenceLanguageTags as validateFenceLanguageTags, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
938
967
|
}
|
|
939
968
|
|
|
940
|
-
export { type
|
|
969
|
+
export { type HtmlMinifyResult as $, ALL_FLAGS as A, type DockerfileLintFinding as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type DockerfileLintResult as E, type DockerfileStage as F, type EditorConfigIssue as G, type EditorConfigProperty as H, type EditorConfigSection as I, type EditorConfigValidationResult as J, type EnvEntry as K, type EnvParseResult as L, type ExportsIssue as M, type ExportsShape as N, type ExportsValidationResult as O, type FenceTagIssue as P, type FenceTagIssueType as Q, type FenceValidationResult as R, type GitCommandConfig as S, type GitCommandResult as T, type GitOperation as U, type GithubUrlInfo as V, type GithubUrlType as W, type GitignoreTestResult as X, type GqlFormatResult as Y, type HtmlFormatResult as Z, type HtmlMinifyOptions as _, type ApiEndpoint as a, formatSql as a$, type JsMinifyOptions as a0, type JsMinifyResult as a1, KNOWN_LANGUAGE_TAGS as a2, type LinkReferenceDefinition as a3, type LinkReferenceUsage as a4, MIME_TABLE as a5, type MarkdownFootnoteDefinition as a6, type MarkdownFootnoteReference as a7, type MarkdownFootnoteResult as a8, type MarkdownLinkReferenceResult as a9, type SvgSpriteResult as aA, type SvgSpriteSymbol as aB, type TestPatternResult as aC, type TsconfigIssue as aD, type TsconfigValidationResult as aE, analyzeRegexGroups as aF, auditDependencyRanges as aG, buildCharacterClass as aH, buildDockerPull as aI, buildDockerRun as aJ, buildGitCommand as aK, collapseHtmlWhitespace as aL, collapseJsWhitespace as aM, countProperties as aN, countRules as aO, countSqlPlaceholders as aP, detectDialect as aQ, detectOperationType as aR, detectRedos as aS, envToExport as aT, envToJson as aU, extractMarkdownFootnotes as aV, extractMarkdownLinkReferences as aW, extractSvgSpriteSymbols as aX, formatCss as aY, formatGql as aZ, formatHtml as a_, type MatchResult as aa, type MimeEntry as ab, type MimeLookupResult as ac, OPERATIONS as ad, type ParsedSpec as ae, type PlaceholderStyle as af, type RedosFinding as ag, type RedosResult as ah, type RedosSeverity as ai, type RegexBackreferenceInfo as aj, type RegexError as ak, type RegexFlag as al, type RegexGroupAnalysis as am, type RegexGroupInfo as an, type RegexGroupIssue as ao, type RegexMatch as ap, type RegexResult as aq, type RegexSuccess as ar, type ResolvedLinkReference as as, SQL_DEFAULT_OPTIONS as at, type Segment as au, type SpecVersion as av, type SqlDialect as aw, type SqlFormatOptions as ax, type SqlPlaceholder as ay, type SqlPlaceholderResult as az, type ApiInfo as b, getEndpointsByTag as b0, getHtmlStats as b1, getJsStats as b2, getMethodColor as b3, isValidTag as b4, lintConventionalCommit as b5, lintDockerfile as b6, lookupMime as b7, minifyCss as b8, minifyGql as b9, validatePackageExports as bA, validateTsconfig as bB, minifyHtml as ba, minifyJs as bb, minifySql as bc, normalizeRef as bd, parseCommitTrailers as be, parseConnectionString as bf, parseDockerImage as bg, parseEnv as bh, parseGitCommand as bi, parseGithubUrl as bj, parseSpec as bk, removeConsoleCalls as bl, removeEmptyAttributes as bm, removeHtmlComments as bn, removeJsComments as bo, removeRedundantAttributes as bp, searchCheatsheet as bq, searchEndpoints as br, splitStatements as bs, testGitignorePatterns as bt, testPattern as bu, testRegex as bv, validateAria as bw, validateEditorConfig as bx, validateEnvKey as by, validateFenceLanguageTags as bz, code as c, type AriaIssue as d, type AriaValidationResult as e, type CharClassOptions as f, type CharClassResult as g, type CheatsheetEntry as h, type CommitTrailer as i, type CommitTrailerResult as j, type ConnectionStringHost as k, type ConnectionStringResult as l, type ConventionalCommitFinding as m, type ConventionalCommitFooter as n, type ConventionalCommitOptions as o, type ConventionalCommitParsed as p, type ConventionalCommitResult as q, type ConventionalCommitSeverity as r, type CssResult as s, type DependencyAuditDuplicate as t, type DependencyAuditEntry as u, type DependencyAuditIssue as v, type DependencyAuditResult as w, type DependencyRangeType as x, type DependencySection as y, type DockerImageRef as z };
|