@utilix-tech/sdk 0.87.0 → 0.89.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 +9 -4
- package/dist/{chunk-7XHM7HHU.js → chunk-KYBI62YY.js} +119 -1
- package/dist/{chunk-YM6UC4SM.js → chunk-LKFMBUJZ.js} +52 -1
- package/dist/{chunk-FB6CCFR5.js → chunk-YQJ7CEUL.js} +64 -1
- package/dist/{code-B9LwFkB1.d.ts → code-DvJYYTea.d.cts} +35 -2
- package/dist/{code-B9LwFkB1.d.cts → code-DvJYYTea.d.ts} +35 -2
- package/dist/index.cjs +232 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{text-xY5MJwr0.d.cts → text-DOopHoK3.d.cts} +40 -2
- package/dist/{text-xY5MJwr0.d.ts → text-DOopHoK3.d.ts} +40 -2
- package/dist/tools/code.cjs +118 -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/text.cjs +63 -0
- package/dist/tools/text.d.cts +1 -1
- package/dist/tools/text.d.ts +1 -1
- package/dist/tools/text.js +1 -1
- package/dist/tools/units.cjs +51 -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-gLm_pq6U.d.ts → units-B6aXeGr6.d.cts} +46 -2
- package/dist/{units-gLm_pq6U.d.cts → units-B6aXeGr6.d.ts} +46 -2
- package/package.json +2 -2
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.89.0
|
|
6
|
+
- Add `checkAcronymExpansion` (acronym-expansion-checker): scan text for acronyms and flag any used before being expanded on first mention, recognizing both the "full term (ACRONYM)" and "ACRONYM (full term)" conventions, with acronyms never expanded anywhere reported separately.
|
|
7
|
+
|
|
8
|
+
## 0.88.0
|
|
9
|
+
- Add `validateMermaidSyntax` (mermaid-syntax-validator): check a Mermaid diagram definition for syntax errors with line numbers, including an unterminated subgraph, unbalanced node brackets, a malformed edge arrow, and a sequence-diagram participant referenced before its explicit declaration.
|
|
10
|
+
- Add `calculateAnnuityPayout` (annuity-payout-calculator): solve the standard annuity formula in either direction, the periodic payout a lump sum funds, or the lump sum required to fund a target payout, for an ordinary or annuity-due structure.
|
|
11
|
+
|
|
5
12
|
## 0.87.0
|
|
6
13
|
- 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
14
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @utilix-tech/sdk
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**728 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)
|
|
@@ -161,7 +161,8 @@ import { convertCase, slugify, countWords, generateWords, generateParagraphs,
|
|
|
161
161
|
escapeString, htmlToMarkdown, applyOps, detectPassiveVoice, scoreReadability,
|
|
162
162
|
detectFillerWords, detectWordyPhrases, checkOxfordCommaConsistency,
|
|
163
163
|
calculateStringDistance, analyzeSentenceLengths,
|
|
164
|
-
analyzeKeywordDensity, searchEmoji, getEmojiByShortcode
|
|
164
|
+
analyzeKeywordDensity, searchEmoji, getEmojiByShortcode,
|
|
165
|
+
checkAcronymExpansion } from "@utilix-tech/sdk/text";
|
|
165
166
|
|
|
166
167
|
convertCase("hello world", "camelCase"); // "helloWorld"
|
|
167
168
|
convertCase("hello world", "PascalCase"); // "HelloWorld"
|
|
@@ -214,6 +215,10 @@ getEmojiByShortcode(":joy:"); // { emoji: "😂", name: "face with tears of joy
|
|
|
214
215
|
// Keyword/phrase frequency and density (occurrences per 100 words); ngramSize 2 or 3 for phrases
|
|
215
216
|
analyzeKeywordDensity("machine learning models power machine learning systems");
|
|
216
217
|
// { totalWords: 7, uniqueKeywords: 5, ngramSize: 1, keywords: [{ keyword: "learning", count: 2, density: 28.6 }, ...] }
|
|
218
|
+
|
|
219
|
+
// Flag an acronym used before it is expanded on first mention, and any never expanded at all
|
|
220
|
+
checkAcronymExpansion("The API returned an error. The Application Programming Interface (API) was patched.");
|
|
221
|
+
// { acronyms: [{ acronym: "API", occurrences: 2, usedBeforeExpansion: true, ... }], issues: [{ type: "used-before-expansion", ... }] }
|
|
217
222
|
```
|
|
218
223
|
|
|
219
224
|
---
|
|
@@ -1052,10 +1057,10 @@ readMidiInfo(new Uint8Array(midiBytes));
|
|
|
1052
1057
|
| `@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
1058
|
| `@utilix-tech/sdk/generators` | UUID v4/v7, ULID, passwords, strength check, entropy estimator, fake data, CSP nonce generator |
|
|
1054
1059
|
| `@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, sales commission calculator (flat or tiered) |
|
|
1060
|
+
| `@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), annuity payout calculator |
|
|
1056
1061
|
| `@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
1062
|
| `@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, regex character class builder |
|
|
1063
|
+
| `@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, Dockerfile linter, Mermaid diagram syntax validator |
|
|
1059
1064
|
| `@utilix-tech/sdk/color` | Hex/RGB/HSL/HSV/CMYK convert, palette generation, contrast check |
|
|
1060
1065
|
| `@utilix-tech/sdk/css` | CSS gradient, box-shadow, border-radius, keyframe animation generators |
|
|
1061
1066
|
| `@utilix-tech/sdk/misc` | SVG optimize/sanitize, file size format, Unicode inspector |
|
|
@@ -70,6 +70,7 @@ __export(code_exports, {
|
|
|
70
70
|
validateEditorConfig: () => validateEditorConfig,
|
|
71
71
|
validateEnvKey: () => validateEnvKey,
|
|
72
72
|
validateFenceLanguageTags: () => validateFenceLanguageTags,
|
|
73
|
+
validateMermaidSyntax: () => validateMermaidSyntax,
|
|
73
74
|
validatePackageExports: () => validatePackageExports,
|
|
74
75
|
validateTsconfig: () => validateTsconfig
|
|
75
76
|
});
|
|
@@ -1976,6 +1977,123 @@ function lintDockerfile(content) {
|
|
|
1976
1977
|
}
|
|
1977
1978
|
return { findings, stages };
|
|
1978
1979
|
}
|
|
1980
|
+
var MERMAID_DIAGRAM_TYPES = {
|
|
1981
|
+
flowchart: "flowchart",
|
|
1982
|
+
graph: "flowchart",
|
|
1983
|
+
sequencediagram: "sequenceDiagram",
|
|
1984
|
+
classdiagram: "classDiagram",
|
|
1985
|
+
statediagram: "stateDiagram",
|
|
1986
|
+
"statediagram-v2": "stateDiagram",
|
|
1987
|
+
erdiagram: "erDiagram",
|
|
1988
|
+
pie: "pie"
|
|
1989
|
+
};
|
|
1990
|
+
var _MERMAID_ARROW_RE = /(-\.->|==>|--x|--o|-\.-|-->|---|===)/i;
|
|
1991
|
+
function _checkMermaidFlowchart(lines, fromLine, issues) {
|
|
1992
|
+
const subgraphStack = [];
|
|
1993
|
+
for (let i = fromLine; i < lines.length; i++) {
|
|
1994
|
+
const lineNo = i + 1;
|
|
1995
|
+
const trimmed = lines[i].split("%%")[0].trim();
|
|
1996
|
+
if (trimmed === "") continue;
|
|
1997
|
+
const firstToken = trimmed.split(/\s+/)[0];
|
|
1998
|
+
if (firstToken === "subgraph") {
|
|
1999
|
+
subgraphStack.push(lineNo);
|
|
2000
|
+
continue;
|
|
2001
|
+
}
|
|
2002
|
+
if (trimmed === "end") {
|
|
2003
|
+
if (subgraphStack.length === 0) {
|
|
2004
|
+
issues.push({ rule: "unexpected-end", line: lineNo, message: "'end' with no matching 'subgraph' to close" });
|
|
2005
|
+
} else {
|
|
2006
|
+
subgraphStack.pop();
|
|
2007
|
+
}
|
|
2008
|
+
continue;
|
|
2009
|
+
}
|
|
2010
|
+
const opens = (trimmed.match(/[[({]/g) || []).length;
|
|
2011
|
+
const closes = (trimmed.match(/[\])}]/g) || []).length;
|
|
2012
|
+
if (opens !== closes) {
|
|
2013
|
+
issues.push({
|
|
2014
|
+
rule: "unbalanced-brackets",
|
|
2015
|
+
line: lineNo,
|
|
2016
|
+
message: `Unbalanced brackets in node/edge definition: ${opens} opening vs ${closes} closing`
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
const segments = trimmed.split(_MERMAID_ARROW_RE);
|
|
2020
|
+
if (segments.length > 1) {
|
|
2021
|
+
let missingNode = false;
|
|
2022
|
+
for (let s = 0; s < segments.length; s += 2) {
|
|
2023
|
+
if (segments[s].trim() === "") missingNode = true;
|
|
2024
|
+
}
|
|
2025
|
+
if (missingNode) {
|
|
2026
|
+
issues.push({ rule: "malformed-edge", line: lineNo, message: "Edge arrow is missing a node on one side" });
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
for (const openLine of subgraphStack) {
|
|
2031
|
+
issues.push({
|
|
2032
|
+
rule: "unterminated-subgraph",
|
|
2033
|
+
line: openLine,
|
|
2034
|
+
message: "'subgraph' opened here is never closed with a matching 'end'"
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
var _MERMAID_SEQ_DECL_RE = /^(participant|actor)\s+(\S+)/i;
|
|
2039
|
+
var _MERMAID_SEQ_MSG_RE = /^([A-Za-z0-9_]+)\s*(-{1,2}>{1,2}|-{1,2}x|-{1,2}\))\s*([A-Za-z0-9_]+)\s*:/i;
|
|
2040
|
+
function _checkMermaidSequenceDiagram(lines, fromLine, issues) {
|
|
2041
|
+
const declaredAtLine = {};
|
|
2042
|
+
for (let i = fromLine; i < lines.length; i++) {
|
|
2043
|
+
const trimmed = lines[i].split("%%")[0].trim();
|
|
2044
|
+
if (trimmed === "") continue;
|
|
2045
|
+
const m = trimmed.match(_MERMAID_SEQ_DECL_RE);
|
|
2046
|
+
if (m && declaredAtLine[m[2]] === void 0) declaredAtLine[m[2]] = i + 1;
|
|
2047
|
+
}
|
|
2048
|
+
for (let i = fromLine; i < lines.length; i++) {
|
|
2049
|
+
const lineNo = i + 1;
|
|
2050
|
+
const trimmed = lines[i].split("%%")[0].trim();
|
|
2051
|
+
if (trimmed === "") continue;
|
|
2052
|
+
const m = trimmed.match(_MERMAID_SEQ_MSG_RE);
|
|
2053
|
+
if (!m) continue;
|
|
2054
|
+
for (const id of [m[1], m[3]]) {
|
|
2055
|
+
const declaredLine = declaredAtLine[id];
|
|
2056
|
+
if (declaredLine !== void 0 && declaredLine > lineNo) {
|
|
2057
|
+
issues.push({
|
|
2058
|
+
rule: "participant-before-declared",
|
|
2059
|
+
line: lineNo,
|
|
2060
|
+
message: `Participant '${id}' is referenced here but not explicitly declared (with 'participant' or 'actor') until line ${declaredLine}`
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
function validateMermaidSyntax(input) {
|
|
2067
|
+
if (!input || !input.trim()) return { error: "Diagram text is required" };
|
|
2068
|
+
const lines = input.replace(/\r\n/g, "\n").split("\n");
|
|
2069
|
+
const issues = [];
|
|
2070
|
+
let headerLine = -1;
|
|
2071
|
+
let headerText = "";
|
|
2072
|
+
for (let i = 0; i < lines.length; i++) {
|
|
2073
|
+
const trimmed = lines[i].trim();
|
|
2074
|
+
if (trimmed === "" || trimmed.startsWith("%%")) continue;
|
|
2075
|
+
headerLine = i + 1;
|
|
2076
|
+
headerText = trimmed;
|
|
2077
|
+
break;
|
|
2078
|
+
}
|
|
2079
|
+
if (headerLine === -1) return { error: "Diagram text is required" };
|
|
2080
|
+
const firstWord = headerText.split(/\s+/)[0];
|
|
2081
|
+
const diagramType = MERMAID_DIAGRAM_TYPES[firstWord.toLowerCase()] ?? null;
|
|
2082
|
+
if (!diagramType) {
|
|
2083
|
+
issues.push({
|
|
2084
|
+
rule: "unrecognized-diagram-type",
|
|
2085
|
+
line: headerLine,
|
|
2086
|
+
message: `"${firstWord}" is not a recognized Mermaid diagram type (expected one of: flowchart/graph, sequenceDiagram, classDiagram, stateDiagram, erDiagram, pie)`
|
|
2087
|
+
});
|
|
2088
|
+
return { diagramType: null, valid: false, issues };
|
|
2089
|
+
}
|
|
2090
|
+
if (diagramType === "flowchart") {
|
|
2091
|
+
_checkMermaidFlowchart(lines, headerLine, issues);
|
|
2092
|
+
} else if (diagramType === "sequenceDiagram") {
|
|
2093
|
+
_checkMermaidSequenceDiagram(lines, headerLine, issues);
|
|
2094
|
+
}
|
|
2095
|
+
return { diagramType, valid: issues.length === 0, issues };
|
|
2096
|
+
}
|
|
1979
2097
|
function removeJsComments(code) {
|
|
1980
2098
|
let result = "";
|
|
1981
2099
|
let i = 0;
|
|
@@ -4500,4 +4618,4 @@ function buildCharacterClass(options) {
|
|
|
4500
4618
|
return { pattern, negate, includes };
|
|
4501
4619
|
}
|
|
4502
4620
|
|
|
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 };
|
|
4621
|
+
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, validateMermaidSyntax, validatePackageExports, validateTsconfig };
|
|
@@ -21,6 +21,7 @@ __export(units_exports, {
|
|
|
21
21
|
bumpVersion: () => bumpVersion,
|
|
22
22
|
calcAspectRatio: () => calcAspectRatio,
|
|
23
23
|
calcSubnet: () => calcSubnet,
|
|
24
|
+
calculateAnnuityPayout: () => calculateAnnuityPayout,
|
|
24
25
|
calculateBlendedLoanRate: () => calculateBlendedLoanRate,
|
|
25
26
|
calculateBreakEven: () => calculateBreakEven,
|
|
26
27
|
calculateCashBreakdown: () => calculateCashBreakdown,
|
|
@@ -1871,6 +1872,56 @@ function calculateSavingsGoal(input) {
|
|
|
1871
1872
|
finalBalance: round4(goalAmount)
|
|
1872
1873
|
};
|
|
1873
1874
|
}
|
|
1875
|
+
function calculateAnnuityPayout(input) {
|
|
1876
|
+
const { mode, structure, years, paymentsPerYear, annualRatePercent, principal, periodicPayout } = input;
|
|
1877
|
+
if (mode !== "payout-from-principal" && mode !== "principal-from-payout") {
|
|
1878
|
+
return { error: "mode must be 'payout-from-principal' or 'principal-from-payout'" };
|
|
1879
|
+
}
|
|
1880
|
+
if (structure !== "ordinary" && structure !== "due") {
|
|
1881
|
+
return { error: "structure must be 'ordinary' or 'due'" };
|
|
1882
|
+
}
|
|
1883
|
+
if (!Number.isInteger(years) || years <= 0) return { error: "years must be a positive whole number" };
|
|
1884
|
+
if (!Number.isInteger(paymentsPerYear) || paymentsPerYear <= 0) {
|
|
1885
|
+
return { error: "paymentsPerYear must be a positive whole number" };
|
|
1886
|
+
}
|
|
1887
|
+
if (!Number.isFinite(annualRatePercent) || annualRatePercent < 0) {
|
|
1888
|
+
return { error: "annualRatePercent must be a finite, non-negative number" };
|
|
1889
|
+
}
|
|
1890
|
+
const periods = years * paymentsPerYear;
|
|
1891
|
+
const r = annualRatePercent / 100 / paymentsPerYear;
|
|
1892
|
+
const round22 = (n) => Math.round(n * 100) / 100;
|
|
1893
|
+
let factor = r === 0 ? periods : (1 - Math.pow(1 + r, -periods)) / r;
|
|
1894
|
+
if (structure === "due") factor *= 1 + r;
|
|
1895
|
+
let resolvedPrincipal;
|
|
1896
|
+
let resolvedPayout;
|
|
1897
|
+
if (mode === "payout-from-principal") {
|
|
1898
|
+
if (typeof principal !== "number" || !Number.isFinite(principal) || principal <= 0) {
|
|
1899
|
+
return { error: 'principal must be a finite number greater than zero for mode "payout-from-principal"' };
|
|
1900
|
+
}
|
|
1901
|
+
resolvedPrincipal = principal;
|
|
1902
|
+
resolvedPayout = principal / factor;
|
|
1903
|
+
} else {
|
|
1904
|
+
if (typeof periodicPayout !== "number" || !Number.isFinite(periodicPayout) || periodicPayout <= 0) {
|
|
1905
|
+
return { error: 'periodicPayout must be a finite number greater than zero for mode "principal-from-payout"' };
|
|
1906
|
+
}
|
|
1907
|
+
resolvedPayout = periodicPayout;
|
|
1908
|
+
resolvedPrincipal = periodicPayout * factor;
|
|
1909
|
+
}
|
|
1910
|
+
const totalPaid = resolvedPayout * periods;
|
|
1911
|
+
const totalInterest = totalPaid - resolvedPrincipal;
|
|
1912
|
+
return {
|
|
1913
|
+
mode,
|
|
1914
|
+
structure,
|
|
1915
|
+
years,
|
|
1916
|
+
paymentsPerYear,
|
|
1917
|
+
periods,
|
|
1918
|
+
annualRatePercent,
|
|
1919
|
+
principal: round22(resolvedPrincipal),
|
|
1920
|
+
periodicPayout: round22(resolvedPayout),
|
|
1921
|
+
totalPaid: round22(totalPaid),
|
|
1922
|
+
totalInterest: round22(totalInterest)
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1874
1925
|
function calculateRoi(input) {
|
|
1875
1926
|
const { initialValue, finalValue, years } = input;
|
|
1876
1927
|
if (!Number.isFinite(initialValue) || initialValue <= 0) {
|
|
@@ -2935,4 +2986,4 @@ function calculateSalesCommission(input) {
|
|
|
2935
2986
|
};
|
|
2936
2987
|
}
|
|
2937
2988
|
|
|
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 };
|
|
2989
|
+
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, calculateAnnuityPayout, 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 };
|
|
@@ -18,6 +18,7 @@ __export(text_exports, {
|
|
|
18
18
|
applyOps: () => applyOps,
|
|
19
19
|
calculateStringDistance: () => calculateStringDistance,
|
|
20
20
|
centerText: () => centerText,
|
|
21
|
+
checkAcronymExpansion: () => checkAcronymExpansion,
|
|
21
22
|
checkDashUsage: () => checkDashUsage,
|
|
22
23
|
checkOxfordCommaConsistency: () => checkOxfordCommaConsistency,
|
|
23
24
|
convertAll: () => convertAll,
|
|
@@ -3267,5 +3268,67 @@ function checkDashUsage(text) {
|
|
|
3267
3268
|
issues
|
|
3268
3269
|
};
|
|
3269
3270
|
}
|
|
3271
|
+
var ACRONYM_TOKEN_RE = /\b[A-Z][A-Z0-9]{1,9}\b/g;
|
|
3272
|
+
var ACRONYM_IN_PARENS_RE = /\(([A-Z][A-Z0-9]{1,9})\)/g;
|
|
3273
|
+
var ACRONYM_THEN_EXPANSION_RE = /\b([A-Z][A-Z0-9]{1,9})\b\s*\(([a-zA-Z][^()]{1,100})\)/g;
|
|
3274
|
+
function acronymContextSnippet(text, index, matchLen) {
|
|
3275
|
+
const start = Math.max(0, index - 25);
|
|
3276
|
+
const end = Math.min(text.length, index + matchLen + 25);
|
|
3277
|
+
const body = text.slice(start, end).replace(/\s+/g, " ").trim();
|
|
3278
|
+
return (start > 0 ? "\u2026" : "") + body + (end < text.length ? "\u2026" : "");
|
|
3279
|
+
}
|
|
3280
|
+
function checkAcronymExpansion(text) {
|
|
3281
|
+
const definedAt = /* @__PURE__ */ new Map();
|
|
3282
|
+
for (const m of text.matchAll(ACRONYM_IN_PARENS_RE)) {
|
|
3283
|
+
const acronym = m[1];
|
|
3284
|
+
const idx = (m.index ?? 0) + 1;
|
|
3285
|
+
const existing = definedAt.get(acronym);
|
|
3286
|
+
if (existing === void 0 || idx < existing) definedAt.set(acronym, idx);
|
|
3287
|
+
}
|
|
3288
|
+
for (const m of text.matchAll(ACRONYM_THEN_EXPANSION_RE)) {
|
|
3289
|
+
const acronym = m[1];
|
|
3290
|
+
const idx = m.index ?? 0;
|
|
3291
|
+
const existing = definedAt.get(acronym);
|
|
3292
|
+
if (existing === void 0 || idx < existing) definedAt.set(acronym, idx);
|
|
3293
|
+
}
|
|
3294
|
+
const occurrencesByAcronym = /* @__PURE__ */ new Map();
|
|
3295
|
+
for (const m of text.matchAll(ACRONYM_TOKEN_RE)) {
|
|
3296
|
+
const acronym = m[0];
|
|
3297
|
+
const idx = m.index ?? 0;
|
|
3298
|
+
const list = occurrencesByAcronym.get(acronym);
|
|
3299
|
+
if (list) list.push(idx);
|
|
3300
|
+
else occurrencesByAcronym.set(acronym, [idx]);
|
|
3301
|
+
}
|
|
3302
|
+
const acronyms = [];
|
|
3303
|
+
const issues = [];
|
|
3304
|
+
for (const [acronym, indicesUnsorted] of occurrencesByAcronym) {
|
|
3305
|
+
const indices = [...indicesUnsorted].sort((a, b) => a - b);
|
|
3306
|
+
const firstUsedAt = indices[0];
|
|
3307
|
+
const expandedAt = definedAt.has(acronym) ? definedAt.get(acronym) : null;
|
|
3308
|
+
const earlyUse = expandedAt !== null ? indices.find((i) => i < expandedAt) : void 0;
|
|
3309
|
+
const usedBeforeExpansion = earlyUse !== void 0;
|
|
3310
|
+
acronyms.push({ acronym, occurrences: indices.length, firstUsedAt, expandedAt, usedBeforeExpansion });
|
|
3311
|
+
if (usedBeforeExpansion) {
|
|
3312
|
+
issues.push({
|
|
3313
|
+
type: "used-before-expansion",
|
|
3314
|
+
acronym,
|
|
3315
|
+
index: earlyUse,
|
|
3316
|
+
context: acronymContextSnippet(text, earlyUse, acronym.length),
|
|
3317
|
+
message: `"${acronym}" is used here before it's expanded later in the document (at character ${expandedAt}).`
|
|
3318
|
+
});
|
|
3319
|
+
} else if (expandedAt === null) {
|
|
3320
|
+
issues.push({
|
|
3321
|
+
type: "never-expanded",
|
|
3322
|
+
acronym,
|
|
3323
|
+
index: firstUsedAt,
|
|
3324
|
+
context: acronymContextSnippet(text, firstUsedAt, acronym.length),
|
|
3325
|
+
message: `"${acronym}" is never expanded anywhere in this document.`
|
|
3326
|
+
});
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
acronyms.sort((a, b) => a.firstUsedAt - b.firstUsedAt);
|
|
3330
|
+
issues.sort((a, b) => a.index - b.index);
|
|
3331
|
+
return { acronyms, issues };
|
|
3332
|
+
}
|
|
3270
3333
|
|
|
3271
|
-
export { CASE_FORMATS, DEFAULT_CONVERT_OPTIONS, EMOJI_TABLE, ESCAPE_MODES, LINE_OPS, MORSE_CODE, addBorder, analyzeKeywordDensity, analyzeSentenceLengths, analyzeText, applyOp, applyOps, calculateStringDistance, centerText, checkDashUsage, checkOxfordCommaConsistency, convertAll, convertCase, countWords, csvToHtml, csvToMarkdown, detectDelimiter, detectFillerWords, detectPassiveVoice, detectWordyPhrases, diffLines, diffLinesSimple, diffStats, escapeAll, escapeString, extractHeadings, formatReadingTime, generate, generateDiff, generateHtmlTable, generateMarkdownTable, generateParagraphs, generateSentences, generateWords, getAvailableFonts, getEmojiByCategory, getEmojiByChar, getEmojiByShortcode, getEmojiCategories, getMorseForChar, getMorseTiming, htmlToMarkdown, isValidMorse, markdownToHtml, morseToText, numberToOrdinal, numberToRoman, numberToWords, ordinalWords, parseDiff, parseTableData, readabilityScore, renderMarkdown, romanToNumber, scoreReadability, searchEmoji, sentenceCount, slugify, slugifyAll, syllableCount, textToAscii, textToMorse, text_exports, unescapeString, wordFrequency };
|
|
3334
|
+
export { CASE_FORMATS, DEFAULT_CONVERT_OPTIONS, EMOJI_TABLE, ESCAPE_MODES, LINE_OPS, MORSE_CODE, addBorder, analyzeKeywordDensity, analyzeSentenceLengths, analyzeText, applyOp, applyOps, calculateStringDistance, centerText, checkAcronymExpansion, checkDashUsage, checkOxfordCommaConsistency, convertAll, convertCase, countWords, csvToHtml, csvToMarkdown, detectDelimiter, detectFillerWords, detectPassiveVoice, detectWordyPhrases, diffLines, diffLinesSimple, diffStats, escapeAll, escapeString, extractHeadings, formatReadingTime, generate, generateDiff, generateHtmlTable, generateMarkdownTable, generateParagraphs, generateSentences, generateWords, getAvailableFonts, getEmojiByCategory, getEmojiByChar, getEmojiByShortcode, getEmojiCategories, getMorseForChar, getMorseTiming, htmlToMarkdown, isValidMorse, markdownToHtml, morseToText, numberToOrdinal, numberToRoman, numberToWords, ordinalWords, parseDiff, parseTableData, readabilityScore, renderMarkdown, romanToNumber, scoreReadability, searchEmoji, sentenceCount, slugify, slugifyAll, syllableCount, textToAscii, textToMorse, text_exports, unescapeString, wordFrequency };
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
* - markdown-fence-lang-validator (validateFenceLanguageTags, KNOWN_LANGUAGE_TAGS)
|
|
37
37
|
* - sql-placeholder-counter (countSqlPlaceholders)
|
|
38
38
|
* - regex-character-class-builder (buildCharacterClass)
|
|
39
|
+
* - mermaid-syntax-validator (validateMermaidSyntax)
|
|
39
40
|
*/
|
|
40
41
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
41
42
|
declare const ALL_FLAGS: RegexFlag[];
|
|
@@ -203,6 +204,34 @@ interface DockerfileLintResult {
|
|
|
203
204
|
declare function lintDockerfile(content: string): DockerfileLintResult | {
|
|
204
205
|
error: string;
|
|
205
206
|
};
|
|
207
|
+
type MermaidSyntaxRule = 'unrecognized-diagram-type' | 'unterminated-subgraph' | 'unexpected-end' | 'unbalanced-brackets' | 'malformed-edge' | 'participant-before-declared';
|
|
208
|
+
interface MermaidSyntaxIssue {
|
|
209
|
+
rule: MermaidSyntaxRule;
|
|
210
|
+
line: number;
|
|
211
|
+
message: string;
|
|
212
|
+
}
|
|
213
|
+
interface MermaidSyntaxResult {
|
|
214
|
+
diagramType: string | null;
|
|
215
|
+
valid: boolean;
|
|
216
|
+
issues: MermaidSyntaxIssue[];
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Heuristic syntax validation for a Mermaid diagram definition: recognizes
|
|
220
|
+
* flowchart/graph, sequenceDiagram, classDiagram, stateDiagram(-v2),
|
|
221
|
+
* erDiagram, and pie by their header keyword, then runs diagram-specific
|
|
222
|
+
* structural checks. Flowcharts are checked for an unterminated `subgraph`,
|
|
223
|
+
* a stray `end`, unbalanced node brackets, and an edge arrow missing a node
|
|
224
|
+
* on either side. Sequence diagrams are checked for a participant whose
|
|
225
|
+
* first message reference comes before its explicit `participant`/`actor`
|
|
226
|
+
* declaration later in the file (a participant never declared explicitly
|
|
227
|
+
* is not flagged, since Mermaid auto-creates it on first use). This is a
|
|
228
|
+
* line-based heuristic, not a full Mermaid grammar: it never renders the
|
|
229
|
+
* diagram, and a bracket-like substring inside a quoted node label can
|
|
230
|
+
* produce a false positive.
|
|
231
|
+
*/
|
|
232
|
+
declare function validateMermaidSyntax(input: string): MermaidSyntaxResult | {
|
|
233
|
+
error: string;
|
|
234
|
+
};
|
|
206
235
|
interface JsMinifyOptions {
|
|
207
236
|
removeComments?: boolean;
|
|
208
237
|
collapseWhitespace?: boolean;
|
|
@@ -871,6 +900,9 @@ type code_MarkdownFootnoteReference = MarkdownFootnoteReference;
|
|
|
871
900
|
type code_MarkdownFootnoteResult = MarkdownFootnoteResult;
|
|
872
901
|
type code_MarkdownLinkReferenceResult = MarkdownLinkReferenceResult;
|
|
873
902
|
type code_MatchResult = MatchResult;
|
|
903
|
+
type code_MermaidSyntaxIssue = MermaidSyntaxIssue;
|
|
904
|
+
type code_MermaidSyntaxResult = MermaidSyntaxResult;
|
|
905
|
+
type code_MermaidSyntaxRule = MermaidSyntaxRule;
|
|
874
906
|
type code_MimeEntry = MimeEntry;
|
|
875
907
|
type code_MimeLookupResult = MimeLookupResult;
|
|
876
908
|
declare const code_OPERATIONS: typeof OPERATIONS;
|
|
@@ -960,10 +992,11 @@ declare const code_validateAria: typeof validateAria;
|
|
|
960
992
|
declare const code_validateEditorConfig: typeof validateEditorConfig;
|
|
961
993
|
declare const code_validateEnvKey: typeof validateEnvKey;
|
|
962
994
|
declare const code_validateFenceLanguageTags: typeof validateFenceLanguageTags;
|
|
995
|
+
declare const code_validateMermaidSyntax: typeof validateMermaidSyntax;
|
|
963
996
|
declare const code_validatePackageExports: typeof validatePackageExports;
|
|
964
997
|
declare const code_validateTsconfig: typeof validateTsconfig;
|
|
965
998
|
declare namespace code {
|
|
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 };
|
|
999
|
+
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_MermaidSyntaxIssue as MermaidSyntaxIssue, type code_MermaidSyntaxResult as MermaidSyntaxResult, type code_MermaidSyntaxRule as MermaidSyntaxRule, 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_validateMermaidSyntax as validateMermaidSyntax, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
967
1000
|
}
|
|
968
1001
|
|
|
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,
|
|
1002
|
+
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, formatCss 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 SqlFormatOptions as aA, type SqlPlaceholder as aB, type SqlPlaceholderResult as aC, type SvgSpriteResult as aD, type SvgSpriteSymbol as aE, type TestPatternResult as aF, type TsconfigIssue as aG, type TsconfigValidationResult as aH, analyzeRegexGroups as aI, auditDependencyRanges as aJ, buildCharacterClass as aK, buildDockerPull as aL, buildDockerRun as aM, buildGitCommand as aN, collapseHtmlWhitespace as aO, collapseJsWhitespace as aP, countProperties as aQ, countRules as aR, countSqlPlaceholders as aS, detectDialect as aT, detectOperationType as aU, detectRedos as aV, envToExport as aW, envToJson as aX, extractMarkdownFootnotes as aY, extractMarkdownLinkReferences as aZ, extractSvgSpriteSymbols as a_, type MatchResult as aa, type MermaidSyntaxIssue as ab, type MermaidSyntaxResult as ac, type MermaidSyntaxRule as ad, type MimeEntry as ae, type MimeLookupResult as af, OPERATIONS as ag, type ParsedSpec as ah, type PlaceholderStyle as ai, type RedosFinding as aj, type RedosResult as ak, type RedosSeverity as al, type RegexBackreferenceInfo as am, type RegexError as an, type RegexFlag as ao, type RegexGroupAnalysis as ap, type RegexGroupInfo as aq, type RegexGroupIssue as ar, type RegexMatch as as, type RegexResult as at, type RegexSuccess as au, type ResolvedLinkReference as av, SQL_DEFAULT_OPTIONS as aw, type Segment as ax, type SpecVersion as ay, type SqlDialect as az, type ApiInfo as b, formatGql as b0, formatHtml as b1, formatSql as b2, getEndpointsByTag as b3, getHtmlStats as b4, getJsStats as b5, getMethodColor as b6, isValidTag as b7, lintConventionalCommit as b8, lintDockerfile as b9, validateEditorConfig as bA, validateEnvKey as bB, validateFenceLanguageTags as bC, validateMermaidSyntax as bD, validatePackageExports as bE, validateTsconfig as bF, lookupMime as ba, minifyCss as bb, minifyGql as bc, minifyHtml as bd, minifyJs as be, minifySql as bf, normalizeRef as bg, parseCommitTrailers as bh, parseConnectionString as bi, parseDockerImage as bj, parseEnv as bk, parseGitCommand as bl, parseGithubUrl as bm, parseSpec as bn, removeConsoleCalls as bo, removeEmptyAttributes as bp, removeHtmlComments as bq, removeJsComments as br, removeRedundantAttributes as bs, searchCheatsheet as bt, searchEndpoints as bu, splitStatements as bv, testGitignorePatterns as bw, testPattern as bx, testRegex as by, validateAria 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 };
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
* - markdown-fence-lang-validator (validateFenceLanguageTags, KNOWN_LANGUAGE_TAGS)
|
|
37
37
|
* - sql-placeholder-counter (countSqlPlaceholders)
|
|
38
38
|
* - regex-character-class-builder (buildCharacterClass)
|
|
39
|
+
* - mermaid-syntax-validator (validateMermaidSyntax)
|
|
39
40
|
*/
|
|
40
41
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
41
42
|
declare const ALL_FLAGS: RegexFlag[];
|
|
@@ -203,6 +204,34 @@ interface DockerfileLintResult {
|
|
|
203
204
|
declare function lintDockerfile(content: string): DockerfileLintResult | {
|
|
204
205
|
error: string;
|
|
205
206
|
};
|
|
207
|
+
type MermaidSyntaxRule = 'unrecognized-diagram-type' | 'unterminated-subgraph' | 'unexpected-end' | 'unbalanced-brackets' | 'malformed-edge' | 'participant-before-declared';
|
|
208
|
+
interface MermaidSyntaxIssue {
|
|
209
|
+
rule: MermaidSyntaxRule;
|
|
210
|
+
line: number;
|
|
211
|
+
message: string;
|
|
212
|
+
}
|
|
213
|
+
interface MermaidSyntaxResult {
|
|
214
|
+
diagramType: string | null;
|
|
215
|
+
valid: boolean;
|
|
216
|
+
issues: MermaidSyntaxIssue[];
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Heuristic syntax validation for a Mermaid diagram definition: recognizes
|
|
220
|
+
* flowchart/graph, sequenceDiagram, classDiagram, stateDiagram(-v2),
|
|
221
|
+
* erDiagram, and pie by their header keyword, then runs diagram-specific
|
|
222
|
+
* structural checks. Flowcharts are checked for an unterminated `subgraph`,
|
|
223
|
+
* a stray `end`, unbalanced node brackets, and an edge arrow missing a node
|
|
224
|
+
* on either side. Sequence diagrams are checked for a participant whose
|
|
225
|
+
* first message reference comes before its explicit `participant`/`actor`
|
|
226
|
+
* declaration later in the file (a participant never declared explicitly
|
|
227
|
+
* is not flagged, since Mermaid auto-creates it on first use). This is a
|
|
228
|
+
* line-based heuristic, not a full Mermaid grammar: it never renders the
|
|
229
|
+
* diagram, and a bracket-like substring inside a quoted node label can
|
|
230
|
+
* produce a false positive.
|
|
231
|
+
*/
|
|
232
|
+
declare function validateMermaidSyntax(input: string): MermaidSyntaxResult | {
|
|
233
|
+
error: string;
|
|
234
|
+
};
|
|
206
235
|
interface JsMinifyOptions {
|
|
207
236
|
removeComments?: boolean;
|
|
208
237
|
collapseWhitespace?: boolean;
|
|
@@ -871,6 +900,9 @@ type code_MarkdownFootnoteReference = MarkdownFootnoteReference;
|
|
|
871
900
|
type code_MarkdownFootnoteResult = MarkdownFootnoteResult;
|
|
872
901
|
type code_MarkdownLinkReferenceResult = MarkdownLinkReferenceResult;
|
|
873
902
|
type code_MatchResult = MatchResult;
|
|
903
|
+
type code_MermaidSyntaxIssue = MermaidSyntaxIssue;
|
|
904
|
+
type code_MermaidSyntaxResult = MermaidSyntaxResult;
|
|
905
|
+
type code_MermaidSyntaxRule = MermaidSyntaxRule;
|
|
874
906
|
type code_MimeEntry = MimeEntry;
|
|
875
907
|
type code_MimeLookupResult = MimeLookupResult;
|
|
876
908
|
declare const code_OPERATIONS: typeof OPERATIONS;
|
|
@@ -960,10 +992,11 @@ declare const code_validateAria: typeof validateAria;
|
|
|
960
992
|
declare const code_validateEditorConfig: typeof validateEditorConfig;
|
|
961
993
|
declare const code_validateEnvKey: typeof validateEnvKey;
|
|
962
994
|
declare const code_validateFenceLanguageTags: typeof validateFenceLanguageTags;
|
|
995
|
+
declare const code_validateMermaidSyntax: typeof validateMermaidSyntax;
|
|
963
996
|
declare const code_validatePackageExports: typeof validatePackageExports;
|
|
964
997
|
declare const code_validateTsconfig: typeof validateTsconfig;
|
|
965
998
|
declare namespace code {
|
|
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 };
|
|
999
|
+
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_MermaidSyntaxIssue as MermaidSyntaxIssue, type code_MermaidSyntaxResult as MermaidSyntaxResult, type code_MermaidSyntaxRule as MermaidSyntaxRule, 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_validateMermaidSyntax as validateMermaidSyntax, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
967
1000
|
}
|
|
968
1001
|
|
|
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,
|
|
1002
|
+
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, formatCss 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 SqlFormatOptions as aA, type SqlPlaceholder as aB, type SqlPlaceholderResult as aC, type SvgSpriteResult as aD, type SvgSpriteSymbol as aE, type TestPatternResult as aF, type TsconfigIssue as aG, type TsconfigValidationResult as aH, analyzeRegexGroups as aI, auditDependencyRanges as aJ, buildCharacterClass as aK, buildDockerPull as aL, buildDockerRun as aM, buildGitCommand as aN, collapseHtmlWhitespace as aO, collapseJsWhitespace as aP, countProperties as aQ, countRules as aR, countSqlPlaceholders as aS, detectDialect as aT, detectOperationType as aU, detectRedos as aV, envToExport as aW, envToJson as aX, extractMarkdownFootnotes as aY, extractMarkdownLinkReferences as aZ, extractSvgSpriteSymbols as a_, type MatchResult as aa, type MermaidSyntaxIssue as ab, type MermaidSyntaxResult as ac, type MermaidSyntaxRule as ad, type MimeEntry as ae, type MimeLookupResult as af, OPERATIONS as ag, type ParsedSpec as ah, type PlaceholderStyle as ai, type RedosFinding as aj, type RedosResult as ak, type RedosSeverity as al, type RegexBackreferenceInfo as am, type RegexError as an, type RegexFlag as ao, type RegexGroupAnalysis as ap, type RegexGroupInfo as aq, type RegexGroupIssue as ar, type RegexMatch as as, type RegexResult as at, type RegexSuccess as au, type ResolvedLinkReference as av, SQL_DEFAULT_OPTIONS as aw, type Segment as ax, type SpecVersion as ay, type SqlDialect as az, type ApiInfo as b, formatGql as b0, formatHtml as b1, formatSql as b2, getEndpointsByTag as b3, getHtmlStats as b4, getJsStats as b5, getMethodColor as b6, isValidTag as b7, lintConventionalCommit as b8, lintDockerfile as b9, validateEditorConfig as bA, validateEnvKey as bB, validateFenceLanguageTags as bC, validateMermaidSyntax as bD, validatePackageExports as bE, validateTsconfig as bF, lookupMime as ba, minifyCss as bb, minifyGql as bc, minifyHtml as bd, minifyJs as be, minifySql as bf, normalizeRef as bg, parseCommitTrailers as bh, parseConnectionString as bi, parseDockerImage as bj, parseEnv as bk, parseGitCommand as bl, parseGithubUrl as bm, parseSpec as bn, removeConsoleCalls as bo, removeEmptyAttributes as bp, removeHtmlComments as bq, removeJsComments as br, removeRedundantAttributes as bs, searchCheatsheet as bt, searchEndpoints as bu, splitStatements as bv, testGitignorePatterns as bw, testPattern as bx, testRegex as by, validateAria 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 };
|