@utilix-tech/sdk 0.90.0 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +21 -3
- package/dist/{chunk-SW3J5CAI.js → chunk-K3B4JTHN.js} +48 -1
- package/dist/{chunk-AHNBR25A.js → chunk-PEMPPDMM.js} +112 -1
- package/dist/{chunk-X3UAAMXF.js → chunk-XAPHAUPI.js} +54 -1
- package/dist/{data-DuOxffMx.d.ts → data-3qMdFIF5.d.cts} +72 -2
- package/dist/{data-DuOxffMx.d.cts → data-3qMdFIF5.d.ts} +72 -2
- package/dist/index.cjs +211 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{network-ylRtLPEs.d.cts → network-9j5aKpoR.d.cts} +37 -2
- package/dist/{network-ylRtLPEs.d.ts → network-9j5aKpoR.d.ts} +37 -2
- package/dist/tools/data.cjs +111 -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/network.cjs +47 -0
- package/dist/tools/network.d.cts +1 -1
- package/dist/tools/network.d.ts +1 -1
- package/dist/tools/network.js +1 -1
- package/dist/tools/units.cjs +53 -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-D8_JluTD.d.ts → units-DnWrOTSV.d.cts} +45 -2
- package/dist/{units-D8_JluTD.d.cts → units-DnWrOTSV.d.ts} +45 -2
- package/package.json +2 -2
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
* - markdown-table-aligner: alignMarkdownTables
|
|
24
24
|
* - markdown-heading-hierarchy-validator: validateMarkdownHeadingHierarchy
|
|
25
25
|
* - markdown-internal-link-checker: checkMarkdownInternalLinks
|
|
26
|
+
* - yaml-duplicate-key-detector: findYamlDuplicateKeys
|
|
27
|
+
* - csv-column-stats-summarizer: summarizeCsvColumnStats
|
|
26
28
|
*/
|
|
27
29
|
interface ValidationResult {
|
|
28
30
|
valid: boolean;
|
|
@@ -537,6 +539,28 @@ interface YamlAnchorResolveError {
|
|
|
537
539
|
* syntax remaining.
|
|
538
540
|
*/
|
|
539
541
|
declare function resolveYamlAnchors(yamlText: string): YamlAnchorResolveResult | YamlAnchorResolveError;
|
|
542
|
+
interface YamlDuplicateKeyEntry {
|
|
543
|
+
key: string;
|
|
544
|
+
line: number;
|
|
545
|
+
column: number;
|
|
546
|
+
}
|
|
547
|
+
interface YamlDuplicateKeyResult {
|
|
548
|
+
duplicateCount: number;
|
|
549
|
+
duplicates: YamlDuplicateKeyEntry[];
|
|
550
|
+
}
|
|
551
|
+
interface YamlDuplicateKeyError {
|
|
552
|
+
error: string;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Parse a YAML document and report every mapping key that collides with an
|
|
556
|
+
* earlier key in the *same* mapping scope (a sibling object with the same
|
|
557
|
+
* key name is not a duplicate), with the line and column of each repeated
|
|
558
|
+
* occurrence. Standard YAML parsers, including this one by default, treat
|
|
559
|
+
* a duplicate key as "last one wins" rather than an error, so this is the
|
|
560
|
+
* check that catches a merge conflict or a copy-paste mistake before it
|
|
561
|
+
* silently drops a config value.
|
|
562
|
+
*/
|
|
563
|
+
declare function findYamlDuplicateKeys(yamlText: string): YamlDuplicateKeyResult | YamlDuplicateKeyError;
|
|
540
564
|
interface MarkdownTaskListItem {
|
|
541
565
|
text: string;
|
|
542
566
|
checked: boolean;
|
|
@@ -595,10 +619,51 @@ interface MarkdownTableAlignResult {
|
|
|
595
619
|
declare function alignMarkdownTables(markdown: string): MarkdownTableAlignResult | {
|
|
596
620
|
error: string;
|
|
597
621
|
};
|
|
622
|
+
interface CsvColumnStatsOptions {
|
|
623
|
+
delimiter?: string;
|
|
624
|
+
hasHeader?: boolean;
|
|
625
|
+
}
|
|
626
|
+
interface CsvColumnMostCommon {
|
|
627
|
+
value: string;
|
|
628
|
+
count: number;
|
|
629
|
+
}
|
|
630
|
+
interface CsvColumnStats {
|
|
631
|
+
name: string;
|
|
632
|
+
totalCount: number;
|
|
633
|
+
nullCount: number;
|
|
634
|
+
uniqueCount: number;
|
|
635
|
+
isNumeric: boolean;
|
|
636
|
+
numericCount: number;
|
|
637
|
+
min?: number;
|
|
638
|
+
max?: number;
|
|
639
|
+
mean?: number;
|
|
640
|
+
median?: number;
|
|
641
|
+
stdDev?: number;
|
|
642
|
+
mostCommon?: CsvColumnMostCommon;
|
|
643
|
+
}
|
|
644
|
+
interface CsvColumnStatsResult {
|
|
645
|
+
columns: CsvColumnStats[];
|
|
646
|
+
rowCount: number;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Parse CSV/TSV data and compute per-column summary statistics: null and
|
|
650
|
+
* unique-value counts for every column, plus min/max/mean/median/standard
|
|
651
|
+
* deviation for any column where every non-empty value parses as a plain
|
|
652
|
+
* number. A column with even one non-numeric non-empty value is treated as
|
|
653
|
+
* categorical instead, where the most frequent value and its count are
|
|
654
|
+
* reported in place of the numeric stats.
|
|
655
|
+
*/
|
|
656
|
+
declare function summarizeCsvColumnStats(input: string, options?: CsvColumnStatsOptions): CsvColumnStatsResult | {
|
|
657
|
+
error: string;
|
|
658
|
+
};
|
|
598
659
|
|
|
599
660
|
type data_CaptionSpeedCue = CaptionSpeedCue;
|
|
600
661
|
type data_CaptionSpeedResult = CaptionSpeedResult;
|
|
601
662
|
type data_ConvertedSubtitles = ConvertedSubtitles;
|
|
663
|
+
type data_CsvColumnMostCommon = CsvColumnMostCommon;
|
|
664
|
+
type data_CsvColumnStats = CsvColumnStats;
|
|
665
|
+
type data_CsvColumnStatsOptions = CsvColumnStatsOptions;
|
|
666
|
+
type data_CsvColumnStatsResult = CsvColumnStatsResult;
|
|
602
667
|
type data_CsvColumnType = CsvColumnType;
|
|
603
668
|
type data_CsvColumnTypeInfo = CsvColumnTypeInfo;
|
|
604
669
|
type data_CsvColumnTypeOptions = CsvColumnTypeOptions;
|
|
@@ -647,6 +712,9 @@ type data_XmlToJsonOptions = XmlToJsonOptions;
|
|
|
647
712
|
type data_YamlAnchorInfo = YamlAnchorInfo;
|
|
648
713
|
type data_YamlAnchorResolveError = YamlAnchorResolveError;
|
|
649
714
|
type data_YamlAnchorResolveResult = YamlAnchorResolveResult;
|
|
715
|
+
type data_YamlDuplicateKeyEntry = YamlDuplicateKeyEntry;
|
|
716
|
+
type data_YamlDuplicateKeyError = YamlDuplicateKeyError;
|
|
717
|
+
type data_YamlDuplicateKeyResult = YamlDuplicateKeyResult;
|
|
650
718
|
declare const data_alignMarkdownTables: typeof alignMarkdownTables;
|
|
651
719
|
declare const data_analyzeCaptionSpeed: typeof analyzeCaptionSpeed;
|
|
652
720
|
declare const data_calculateMarkdownTaskListProgress: typeof calculateMarkdownTaskListProgress;
|
|
@@ -661,6 +729,7 @@ declare const data_diffEnvExample: typeof diffEnvExample;
|
|
|
661
729
|
declare const data_envToExport: typeof envToExport;
|
|
662
730
|
declare const data_envToJson: typeof envToJson;
|
|
663
731
|
declare const data_findCsvDuplicateRows: typeof findCsvDuplicateRows;
|
|
732
|
+
declare const data_findYamlDuplicateKeys: typeof findYamlDuplicateKeys;
|
|
664
733
|
declare const data_formatNdjson: typeof formatNdjson;
|
|
665
734
|
declare const data_formatSubtitleTimestamp: typeof formatSubtitleTimestamp;
|
|
666
735
|
declare const data_formatToml: typeof formatToml;
|
|
@@ -693,6 +762,7 @@ declare const data_resolveYamlAnchors: typeof resolveYamlAnchors;
|
|
|
693
762
|
declare const data_serializeSubtitles: typeof serializeSubtitles;
|
|
694
763
|
declare const data_shiftSubtitles: typeof shiftSubtitles;
|
|
695
764
|
declare const data_stringifyIni: typeof stringifyIni;
|
|
765
|
+
declare const data_summarizeCsvColumnStats: typeof summarizeCsvColumnStats;
|
|
696
766
|
declare const data_toCsvString: typeof toCsvString;
|
|
697
767
|
declare const data_tomlToJson: typeof tomlToJson;
|
|
698
768
|
declare const data_validateEnvKey: typeof validateEnvKey;
|
|
@@ -704,7 +774,7 @@ declare const data_validateXml: typeof validateXml;
|
|
|
704
774
|
declare const data_validateYaml: typeof validateYaml;
|
|
705
775
|
declare const data_xmlToJson: typeof xmlToJson;
|
|
706
776
|
declare namespace data {
|
|
707
|
-
export { type data_CaptionSpeedCue as CaptionSpeedCue, type data_CaptionSpeedResult as CaptionSpeedResult, type data_ConvertedSubtitles as ConvertedSubtitles, type data_CsvColumnType as CsvColumnType, type data_CsvColumnTypeInfo as CsvColumnTypeInfo, type data_CsvColumnTypeOptions as CsvColumnTypeOptions, type data_CsvColumnTypeResult as CsvColumnTypeResult, type data_CsvDuplicateGroup as CsvDuplicateGroup, type data_CsvDuplicateOptions as CsvDuplicateOptions, type data_CsvDuplicateResult as CsvDuplicateResult, type data_CsvParseResult as CsvParseResult, type data_CsvToSqlOptions as CsvToSqlOptions, type data_CsvToSqlResult as CsvToSqlResult, type data_EnvDiffError as EnvDiffError, type data_EnvDiffResult as EnvDiffResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_FrontMatterError as FrontMatterError, type data_FrontMatterResult as FrontMatterResult, type data_HeadingEntry as HeadingEntry, type data_HeadingHierarchyResult as HeadingHierarchyResult, type data_HeadingIssue as HeadingIssue, type data_HeadingIssueType as HeadingIssueType, type data_IniSection as IniSection, type data_MarkdownAnchorHeading as MarkdownAnchorHeading, type data_MarkdownAnchorLink as MarkdownAnchorLink, type data_MarkdownInternalLinkCheckResult as MarkdownInternalLinkCheckResult, type data_MarkdownTableAlignResult as MarkdownTableAlignResult, type data_MarkdownTableColumnAlignment as MarkdownTableColumnAlignment, type data_MarkdownTableInfo as MarkdownTableInfo, type data_MarkdownTaskListItem as MarkdownTaskListItem, type data_MarkdownTaskListProgressResult as MarkdownTaskListProgressResult, type data_MarkdownTaskListSectionSummary as MarkdownTaskListSectionSummary, type data_MarkdownTocEntry as MarkdownTocEntry, type data_MarkdownTocOptions as MarkdownTocOptions, type data_MarkdownTocResult as MarkdownTocResult, type data_NdjsonDedupeResult as NdjsonDedupeResult, type data_NdjsonLineResult as NdjsonLineResult, type data_NdjsonValidateResult as NdjsonValidateResult, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_ParsedSubtitles as ParsedSubtitles, type data_SubtitleCue as SubtitleCue, type data_SubtitleFormat as SubtitleFormat, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, type data_YamlAnchorInfo as YamlAnchorInfo, type data_YamlAnchorResolveError as YamlAnchorResolveError, type data_YamlAnchorResolveResult as YamlAnchorResolveResult, data_alignMarkdownTables as alignMarkdownTables, data_analyzeCaptionSpeed as analyzeCaptionSpeed, data_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_checkMarkdownInternalLinks as checkMarkdownInternalLinks, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, data_dedupeNdjson as dedupeNdjson, data_detectDelimiter as detectDelimiter, data_detectSubtitleFormat as detectSubtitleFormat, data_diffEnvExample as diffEnvExample, data_envToExport as envToExport, data_envToJson as envToJson, data_findCsvDuplicateRows as findCsvDuplicateRows, data_formatNdjson as formatNdjson, data_formatSubtitleTimestamp as formatSubtitleTimestamp, data_formatToml as formatToml, data_formatXml as formatXml, data_generateMarkdownToc as generateMarkdownToc, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_inferCsvColumnTypes as inferCsvColumnTypes, data_iniToJson as iniToJson, data_jsonArrayToNdjson as jsonArrayToNdjson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyNdjson as minifyNdjson, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_ndjsonToCsv as ndjsonToCsv, data_ndjsonToJsonArray as ndjsonToJsonArray, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseFrontMatter as parseFrontMatter, data_parseIni as parseIni, data_parseSubtitleTimestamp as parseSubtitleTimestamp, data_parseSubtitles as parseSubtitles, data_parseXmlToObject as parseXmlToObject, data_resolveYamlAnchors as resolveYamlAnchors, data_serializeSubtitles as serializeSubtitles, data_shiftSubtitles as shiftSubtitles, data_stringifyIni as stringifyIni, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateMarkdownHeadingHierarchy as validateMarkdownHeadingHierarchy, data_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
|
|
777
|
+
export { type data_CaptionSpeedCue as CaptionSpeedCue, type data_CaptionSpeedResult as CaptionSpeedResult, type data_ConvertedSubtitles as ConvertedSubtitles, type data_CsvColumnMostCommon as CsvColumnMostCommon, type data_CsvColumnStats as CsvColumnStats, type data_CsvColumnStatsOptions as CsvColumnStatsOptions, type data_CsvColumnStatsResult as CsvColumnStatsResult, type data_CsvColumnType as CsvColumnType, type data_CsvColumnTypeInfo as CsvColumnTypeInfo, type data_CsvColumnTypeOptions as CsvColumnTypeOptions, type data_CsvColumnTypeResult as CsvColumnTypeResult, type data_CsvDuplicateGroup as CsvDuplicateGroup, type data_CsvDuplicateOptions as CsvDuplicateOptions, type data_CsvDuplicateResult as CsvDuplicateResult, type data_CsvParseResult as CsvParseResult, type data_CsvToSqlOptions as CsvToSqlOptions, type data_CsvToSqlResult as CsvToSqlResult, type data_EnvDiffError as EnvDiffError, type data_EnvDiffResult as EnvDiffResult, type data_EnvEntry as EnvEntry, type data_EnvParseResult as EnvParseResult, type data_FrontMatterError as FrontMatterError, type data_FrontMatterResult as FrontMatterResult, type data_HeadingEntry as HeadingEntry, type data_HeadingHierarchyResult as HeadingHierarchyResult, type data_HeadingIssue as HeadingIssue, type data_HeadingIssueType as HeadingIssueType, type data_IniSection as IniSection, type data_MarkdownAnchorHeading as MarkdownAnchorHeading, type data_MarkdownAnchorLink as MarkdownAnchorLink, type data_MarkdownInternalLinkCheckResult as MarkdownInternalLinkCheckResult, type data_MarkdownTableAlignResult as MarkdownTableAlignResult, type data_MarkdownTableColumnAlignment as MarkdownTableColumnAlignment, type data_MarkdownTableInfo as MarkdownTableInfo, type data_MarkdownTaskListItem as MarkdownTaskListItem, type data_MarkdownTaskListProgressResult as MarkdownTaskListProgressResult, type data_MarkdownTaskListSectionSummary as MarkdownTaskListSectionSummary, type data_MarkdownTocEntry as MarkdownTocEntry, type data_MarkdownTocOptions as MarkdownTocOptions, type data_MarkdownTocResult as MarkdownTocResult, type data_NdjsonDedupeResult as NdjsonDedupeResult, type data_NdjsonLineResult as NdjsonLineResult, type data_NdjsonValidateResult as NdjsonValidateResult, type data_ParseOptions as ParseOptions, type data_ParsedIni as ParsedIni, type data_ParsedSubtitles as ParsedSubtitles, type data_SubtitleCue as SubtitleCue, type data_SubtitleFormat as SubtitleFormat, type data_TomlFormatResult as TomlFormatResult, type data_ValidationResult as ValidationResult, type data_XmlFormatResult as XmlFormatResult, type data_XmlToJsonOptions as XmlToJsonOptions, type data_YamlAnchorInfo as YamlAnchorInfo, type data_YamlAnchorResolveError as YamlAnchorResolveError, type data_YamlAnchorResolveResult as YamlAnchorResolveResult, type data_YamlDuplicateKeyEntry as YamlDuplicateKeyEntry, type data_YamlDuplicateKeyError as YamlDuplicateKeyError, type data_YamlDuplicateKeyResult as YamlDuplicateKeyResult, data_alignMarkdownTables as alignMarkdownTables, data_analyzeCaptionSpeed as analyzeCaptionSpeed, data_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_checkMarkdownInternalLinks as checkMarkdownInternalLinks, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, data_dedupeNdjson as dedupeNdjson, data_detectDelimiter as detectDelimiter, data_detectSubtitleFormat as detectSubtitleFormat, data_diffEnvExample as diffEnvExample, data_envToExport as envToExport, data_envToJson as envToJson, data_findCsvDuplicateRows as findCsvDuplicateRows, data_findYamlDuplicateKeys as findYamlDuplicateKeys, data_formatNdjson as formatNdjson, data_formatSubtitleTimestamp as formatSubtitleTimestamp, data_formatToml as formatToml, data_formatXml as formatXml, data_generateMarkdownToc as generateMarkdownToc, data_getSection as getSection, data_getSectionNames as getSectionNames, data_getTomlStats as getTomlStats, data_getXmlStats as getXmlStats, data_getYamlStats as getYamlStats, data_inferCsvColumnTypes as inferCsvColumnTypes, data_iniToJson as iniToJson, data_jsonArrayToNdjson as jsonArrayToNdjson, data_jsonToIni as jsonToIni, data_jsonToToml as jsonToToml, data_jsonToXml as jsonToXml, data_minifyNdjson as minifyNdjson, data_minifyToml as minifyToml, data_minifyXml as minifyXml, data_ndjsonToCsv as ndjsonToCsv, data_ndjsonToJsonArray as ndjsonToJsonArray, data_parseCsv as parseCsv, data_parseEnv as parseEnv, data_parseFrontMatter as parseFrontMatter, data_parseIni as parseIni, data_parseSubtitleTimestamp as parseSubtitleTimestamp, data_parseSubtitles as parseSubtitles, data_parseXmlToObject as parseXmlToObject, data_resolveYamlAnchors as resolveYamlAnchors, data_serializeSubtitles as serializeSubtitles, data_shiftSubtitles as shiftSubtitles, data_stringifyIni as stringifyIni, data_summarizeCsvColumnStats as summarizeCsvColumnStats, data_toCsvString as toCsvString, data_tomlToJson as tomlToJson, data_validateEnvKey as validateEnvKey, data_validateIni as validateIni, data_validateMarkdownHeadingHierarchy as validateMarkdownHeadingHierarchy, data_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
|
|
708
778
|
}
|
|
709
779
|
|
|
710
|
-
export {
|
|
780
|
+
export { type YamlAnchorInfo as $, type MarkdownTableAlignResult as A, type MarkdownTableColumnAlignment as B, type CaptionSpeedCue as C, type MarkdownTableInfo as D, type EnvDiffError as E, type FrontMatterError as F, type MarkdownTaskListItem as G, type HeadingEntry as H, type IniSection as I, type MarkdownTaskListProgressResult as J, type MarkdownTaskListSectionSummary as K, type MarkdownTocEntry as L, type MarkdownAnchorHeading as M, type MarkdownTocOptions as N, type MarkdownTocResult as O, type NdjsonDedupeResult as P, type NdjsonLineResult as Q, type NdjsonValidateResult as R, type ParseOptions as S, type ParsedIni as T, type ParsedSubtitles as U, type SubtitleCue as V, type SubtitleFormat as W, type TomlFormatResult as X, type ValidationResult as Y, type XmlFormatResult as Z, type XmlToJsonOptions as _, type CaptionSpeedResult as a, type YamlAnchorResolveError as a0, type YamlAnchorResolveResult as a1, type YamlDuplicateKeyEntry as a2, type YamlDuplicateKeyError as a3, type YamlDuplicateKeyResult as a4, alignMarkdownTables as a5, analyzeCaptionSpeed as a6, calculateMarkdownTaskListProgress as a7, checkMarkdownInternalLinks as a8, convertSubtitles as a9, minifyNdjson as aA, minifyToml as aB, minifyXml as aC, ndjsonToCsv as aD, ndjsonToJsonArray as aE, parseCsv as aF, parseEnv as aG, parseFrontMatter as aH, parseIni as aI, parseSubtitleTimestamp as aJ, parseSubtitles as aK, parseXmlToObject as aL, resolveYamlAnchors as aM, serializeSubtitles as aN, shiftSubtitles as aO, stringifyIni as aP, summarizeCsvColumnStats as aQ, toCsvString as aR, tomlToJson as aS, validateEnvKey as aT, validateIni as aU, validateMarkdownHeadingHierarchy as aV, validateNdjson as aW, validateToml as aX, validateXml as aY, validateYaml as aZ, xmlToJson as a_, csvToJson as aa, csvToSqlInsert as ab, dedupeNdjson as ac, detectDelimiter as ad, detectSubtitleFormat as ae, diffEnvExample as af, envToExport as ag, envToJson as ah, findCsvDuplicateRows as ai, findYamlDuplicateKeys as aj, formatNdjson as ak, formatSubtitleTimestamp as al, formatToml as am, formatXml as an, generateMarkdownToc as ao, getSection as ap, getSectionNames as aq, getTomlStats as ar, getXmlStats as as, getYamlStats as at, inferCsvColumnTypes as au, iniToJson as av, jsonArrayToNdjson as aw, jsonToIni as ax, jsonToToml as ay, jsonToXml as az, type ConvertedSubtitles as b, type CsvColumnMostCommon as c, data as d, type CsvColumnStats as e, type CsvColumnStatsOptions as f, type CsvColumnStatsResult as g, type CsvColumnType as h, type CsvColumnTypeInfo as i, type CsvColumnTypeOptions as j, type CsvColumnTypeResult as k, type CsvDuplicateGroup as l, type CsvDuplicateOptions as m, type CsvDuplicateResult as n, type CsvParseResult as o, type CsvToSqlOptions as p, type CsvToSqlResult as q, type EnvDiffResult as r, type EnvEntry as s, type EnvParseResult as t, type FrontMatterResult as u, type HeadingHierarchyResult as v, type HeadingIssue as w, type HeadingIssueType as x, type MarkdownAnchorLink as y, type MarkdownInternalLinkCheckResult as z };
|
package/dist/index.cjs
CHANGED
|
@@ -5649,6 +5649,7 @@ __export(data_exports, {
|
|
|
5649
5649
|
envToExport: () => envToExport,
|
|
5650
5650
|
envToJson: () => envToJson,
|
|
5651
5651
|
findCsvDuplicateRows: () => findCsvDuplicateRows,
|
|
5652
|
+
findYamlDuplicateKeys: () => findYamlDuplicateKeys,
|
|
5652
5653
|
formatNdjson: () => formatNdjson,
|
|
5653
5654
|
formatSubtitleTimestamp: () => formatSubtitleTimestamp,
|
|
5654
5655
|
formatToml: () => formatToml,
|
|
@@ -5681,6 +5682,7 @@ __export(data_exports, {
|
|
|
5681
5682
|
serializeSubtitles: () => serializeSubtitles,
|
|
5682
5683
|
shiftSubtitles: () => shiftSubtitles,
|
|
5683
5684
|
stringifyIni: () => stringifyIni,
|
|
5685
|
+
summarizeCsvColumnStats: () => summarizeCsvColumnStats,
|
|
5684
5686
|
toCsvString: () => toCsvString,
|
|
5685
5687
|
tomlToJson: () => tomlToJson,
|
|
5686
5688
|
validateEnvKey: () => validateEnvKey,
|
|
@@ -7559,6 +7561,53 @@ function resolveYamlAnchors(yamlText) {
|
|
|
7559
7561
|
const unusedAnchors = seenAnchorNames.filter((name) => !referencedNames.has(name));
|
|
7560
7562
|
return { resolvedYaml, anchors, unusedAnchors, aliasCount };
|
|
7561
7563
|
}
|
|
7564
|
+
function _matchYamlKey(lineText) {
|
|
7565
|
+
const dashMatch = /^(\s*)((?:-\s+)*)/.exec(lineText);
|
|
7566
|
+
const basePrefix = (dashMatch?.[1].length ?? 0) + (dashMatch?.[2].length ?? 0);
|
|
7567
|
+
const rest = lineText.slice(basePrefix);
|
|
7568
|
+
const quoted = /^(["'])((?:\\.|(?!\1).)*)\1(\s*:(?:\s|$))/.exec(rest);
|
|
7569
|
+
if (quoted) {
|
|
7570
|
+
return { key: quoted[2], prefixLength: basePrefix, matchLength: quoted[1].length * 2 + quoted[2].length, quote: quoted[1] };
|
|
7571
|
+
}
|
|
7572
|
+
const plain = /^([^\s:#][^:]*?)(\s*:(?:\s|$))/.exec(rest);
|
|
7573
|
+
if (plain) {
|
|
7574
|
+
return { key: plain[1], prefixLength: basePrefix, matchLength: plain[1].length, quote: null };
|
|
7575
|
+
}
|
|
7576
|
+
return null;
|
|
7577
|
+
}
|
|
7578
|
+
function _maskYamlKey(lineText, match, n) {
|
|
7579
|
+
const suffix = `__dup${n}__`;
|
|
7580
|
+
const before = lineText.slice(0, match.prefixLength);
|
|
7581
|
+
const keyPart = lineText.slice(match.prefixLength, match.prefixLength + match.matchLength);
|
|
7582
|
+
const after = lineText.slice(match.prefixLength + match.matchLength);
|
|
7583
|
+
if (match.quote) {
|
|
7584
|
+
return `${before}${keyPart.slice(0, -1)}${suffix}${match.quote}${after}`;
|
|
7585
|
+
}
|
|
7586
|
+
return `${before}${keyPart}${suffix}${after}`;
|
|
7587
|
+
}
|
|
7588
|
+
var _MAX_YAML_DUPLICATE_PASSES = 500;
|
|
7589
|
+
function findYamlDuplicateKeys(yamlText) {
|
|
7590
|
+
if (!yamlText || !yamlText.trim()) return { error: "Input is empty" };
|
|
7591
|
+
const lines = yamlText.split("\n");
|
|
7592
|
+
const duplicates = [];
|
|
7593
|
+
for (let pass = 0; pass < _MAX_YAML_DUPLICATE_PASSES; pass++) {
|
|
7594
|
+
try {
|
|
7595
|
+
yaml2__namespace.load(lines.join("\n"));
|
|
7596
|
+
return { duplicateCount: duplicates.length, duplicates };
|
|
7597
|
+
} catch (e) {
|
|
7598
|
+
const err = e;
|
|
7599
|
+
const reason = err.reason ?? err.message;
|
|
7600
|
+
if (!/duplicated mapping key/i.test(reason)) return { error: reason };
|
|
7601
|
+
const lineIdx = err.mark?.line;
|
|
7602
|
+
if (lineIdx == null || lineIdx < 0 || lineIdx >= lines.length) return { error: reason };
|
|
7603
|
+
const match = _matchYamlKey(lines[lineIdx]);
|
|
7604
|
+
if (!match) return { error: reason };
|
|
7605
|
+
duplicates.push({ key: match.key, line: lineIdx + 1, column: match.prefixLength + 1 });
|
|
7606
|
+
lines[lineIdx] = _maskYamlKey(lines[lineIdx], match, duplicates.length);
|
|
7607
|
+
}
|
|
7608
|
+
}
|
|
7609
|
+
return { error: "Too many duplicate keys to fully enumerate" };
|
|
7610
|
+
}
|
|
7562
7611
|
function calculateMarkdownTaskListProgress(markdown) {
|
|
7563
7612
|
if (typeof markdown !== "string") return { error: "markdown must be a string" };
|
|
7564
7613
|
const round23 = (n) => Math.round(n * 100) / 100;
|
|
@@ -7742,6 +7791,68 @@ function alignMarkdownTables(markdown) {
|
|
|
7742
7791
|
if (tables.length === 0) return { error: "No Markdown tables found" };
|
|
7743
7792
|
return { output: outputLines.join("\n"), tables, warnings };
|
|
7744
7793
|
}
|
|
7794
|
+
var _CSV_NUMERIC_RE = /^-?\d+(\.\d+)?([eE][+-]?\d+)?$/;
|
|
7795
|
+
function _parseCsvNumeric(raw) {
|
|
7796
|
+
if (!_CSV_NUMERIC_RE.test(raw)) return null;
|
|
7797
|
+
const n = Number(raw);
|
|
7798
|
+
return Number.isFinite(n) ? n : null;
|
|
7799
|
+
}
|
|
7800
|
+
function summarizeCsvColumnStats(input, options) {
|
|
7801
|
+
const parsed = parseCsv(input, {
|
|
7802
|
+
delimiter: options?.delimiter ?? ",",
|
|
7803
|
+
hasHeader: options?.hasHeader !== false
|
|
7804
|
+
});
|
|
7805
|
+
if ("error" in parsed) return parsed;
|
|
7806
|
+
if (parsed.rows.length === 0) return { error: "No data rows found" };
|
|
7807
|
+
const columns = parsed.headers.map((name, colIdx) => {
|
|
7808
|
+
let nullCount = 0;
|
|
7809
|
+
let nonNumericCount = 0;
|
|
7810
|
+
const numericValues = [];
|
|
7811
|
+
const freq = /* @__PURE__ */ new Map();
|
|
7812
|
+
for (const row of parsed.rows) {
|
|
7813
|
+
const raw = (row[colIdx] ?? "").trim();
|
|
7814
|
+
if (raw === "") {
|
|
7815
|
+
nullCount++;
|
|
7816
|
+
continue;
|
|
7817
|
+
}
|
|
7818
|
+
freq.set(raw, (freq.get(raw) ?? 0) + 1);
|
|
7819
|
+
const n = _parseCsvNumeric(raw);
|
|
7820
|
+
if (n !== null) numericValues.push(n);
|
|
7821
|
+
else nonNumericCount++;
|
|
7822
|
+
}
|
|
7823
|
+
const nonEmptyCount = parsed.rows.length - nullCount;
|
|
7824
|
+
const isNumeric = nonEmptyCount > 0 && nonNumericCount === 0;
|
|
7825
|
+
let mostCommon;
|
|
7826
|
+
for (const [value, count] of freq) {
|
|
7827
|
+
if (!mostCommon || count > mostCommon.count) mostCommon = { value, count };
|
|
7828
|
+
}
|
|
7829
|
+
const stats = {
|
|
7830
|
+
name,
|
|
7831
|
+
totalCount: parsed.rows.length,
|
|
7832
|
+
nullCount,
|
|
7833
|
+
uniqueCount: freq.size,
|
|
7834
|
+
isNumeric,
|
|
7835
|
+
numericCount: numericValues.length
|
|
7836
|
+
};
|
|
7837
|
+
if (isNumeric && numericValues.length > 0) {
|
|
7838
|
+
const sorted = [...numericValues].sort((a, b) => a - b);
|
|
7839
|
+
const sum = sorted.reduce((a, b) => a + b, 0);
|
|
7840
|
+
const mean = sum / sorted.length;
|
|
7841
|
+
const mid = Math.floor(sorted.length / 2);
|
|
7842
|
+
const median = sorted.length % 2 === 0 ? (sorted[mid - 1] + sorted[mid]) / 2 : sorted[mid];
|
|
7843
|
+
const variance = sorted.reduce((acc, v) => acc + (v - mean) ** 2, 0) / sorted.length;
|
|
7844
|
+
stats.min = sorted[0];
|
|
7845
|
+
stats.max = sorted[sorted.length - 1];
|
|
7846
|
+
stats.mean = mean;
|
|
7847
|
+
stats.median = median;
|
|
7848
|
+
stats.stdDev = Math.sqrt(variance);
|
|
7849
|
+
} else {
|
|
7850
|
+
stats.mostCommon = mostCommon;
|
|
7851
|
+
}
|
|
7852
|
+
return stats;
|
|
7853
|
+
});
|
|
7854
|
+
return { columns, rowCount: parsed.rows.length };
|
|
7855
|
+
}
|
|
7745
7856
|
|
|
7746
7857
|
// src/tools/generators.ts
|
|
7747
7858
|
var generators_exports = {};
|
|
@@ -9260,6 +9371,7 @@ __export(units_exports, {
|
|
|
9260
9371
|
decimalToIp: () => decimalToIp,
|
|
9261
9372
|
decimalToIpCidr: () => decimalToIpCidr,
|
|
9262
9373
|
describePermissions: () => describePermissions,
|
|
9374
|
+
detectNegativeAmortization: () => detectNegativeAmortization,
|
|
9263
9375
|
fitIntoBox: () => fitIntoBox,
|
|
9264
9376
|
formatNumber: () => formatNumber,
|
|
9265
9377
|
formatValue: () => formatValue,
|
|
@@ -12304,6 +12416,58 @@ function calculateSalesCommission(input) {
|
|
|
12304
12416
|
breakdown
|
|
12305
12417
|
};
|
|
12306
12418
|
}
|
|
12419
|
+
var NEGATIVE_AMORTIZATION_MAX_PROJECTION_MONTHS = 600;
|
|
12420
|
+
function detectNegativeAmortization(input) {
|
|
12421
|
+
const { principal, annualRatePercent, monthlyPayment } = input;
|
|
12422
|
+
if (!Number.isFinite(principal) || principal <= 0) {
|
|
12423
|
+
return { error: "principal must be a positive number" };
|
|
12424
|
+
}
|
|
12425
|
+
if (!Number.isFinite(annualRatePercent) || annualRatePercent < 0) {
|
|
12426
|
+
return { error: "annualRatePercent must be zero or a positive number" };
|
|
12427
|
+
}
|
|
12428
|
+
if (!Number.isFinite(monthlyPayment) || monthlyPayment < 0) {
|
|
12429
|
+
return { error: "monthlyPayment must be zero or a positive number" };
|
|
12430
|
+
}
|
|
12431
|
+
if (input.projectionMonths !== void 0 && (!Number.isInteger(input.projectionMonths) || input.projectionMonths <= 0)) {
|
|
12432
|
+
return { error: "projectionMonths must be a positive whole number" };
|
|
12433
|
+
}
|
|
12434
|
+
if (input.capPercent !== void 0 && (!Number.isFinite(input.capPercent) || input.capPercent <= 0)) {
|
|
12435
|
+
return { error: "capPercent must be a positive number" };
|
|
12436
|
+
}
|
|
12437
|
+
const monthlyRate = annualRatePercent / 100 / 12;
|
|
12438
|
+
const monthlyInterest = principal * monthlyRate;
|
|
12439
|
+
const shortfall = Math.max(0, round2(monthlyInterest - monthlyPayment));
|
|
12440
|
+
const isNegativeAmortizing = monthlyPayment < monthlyInterest;
|
|
12441
|
+
const projectionMonths = Math.min(input.projectionMonths ?? 12, NEGATIVE_AMORTIZATION_MAX_PROJECTION_MONTHS);
|
|
12442
|
+
const capBalance = input.capPercent != null ? principal * (input.capPercent / 100) : null;
|
|
12443
|
+
const projection = [];
|
|
12444
|
+
let balance = principal;
|
|
12445
|
+
let capCrossedMonth = null;
|
|
12446
|
+
for (let month = 1; month <= projectionMonths; month++) {
|
|
12447
|
+
const interest = balance * monthlyRate;
|
|
12448
|
+
const endingBalance = balance + interest - monthlyPayment;
|
|
12449
|
+
projection.push({
|
|
12450
|
+
month,
|
|
12451
|
+
startingBalance: round2(balance),
|
|
12452
|
+
interest: round2(interest),
|
|
12453
|
+
payment: round2(monthlyPayment),
|
|
12454
|
+
endingBalance: round2(Math.max(endingBalance, 0))
|
|
12455
|
+
});
|
|
12456
|
+
if (capBalance != null && capCrossedMonth == null && endingBalance >= capBalance) {
|
|
12457
|
+
capCrossedMonth = month;
|
|
12458
|
+
}
|
|
12459
|
+
balance = endingBalance;
|
|
12460
|
+
if (balance <= 0) break;
|
|
12461
|
+
}
|
|
12462
|
+
return {
|
|
12463
|
+
monthlyInterest: round2(monthlyInterest),
|
|
12464
|
+
isNegativeAmortizing,
|
|
12465
|
+
shortfall,
|
|
12466
|
+
breakEvenPayment: round2(monthlyInterest),
|
|
12467
|
+
projection,
|
|
12468
|
+
capCrossedMonth
|
|
12469
|
+
};
|
|
12470
|
+
}
|
|
12307
12471
|
|
|
12308
12472
|
// src/tools/network.ts
|
|
12309
12473
|
var network_exports = {};
|
|
@@ -12320,6 +12484,7 @@ __export(network_exports, {
|
|
|
12320
12484
|
assessContentTypeRisk: () => assessContentTypeRisk,
|
|
12321
12485
|
buildAcceptLanguage: () => buildAcceptLanguage,
|
|
12322
12486
|
buildCacheControl: () => buildCacheControl,
|
|
12487
|
+
buildClearSiteData: () => buildClearSiteData,
|
|
12323
12488
|
buildClientHints: () => buildClientHints,
|
|
12324
12489
|
buildContentDisposition: () => buildContentDisposition,
|
|
12325
12490
|
buildDnsQueryUrl: () => buildDnsQueryUrl,
|
|
@@ -12360,6 +12525,7 @@ __export(network_exports, {
|
|
|
12360
12525
|
lookupCloseCode: () => lookupCloseCode,
|
|
12361
12526
|
lookupOpcode: () => lookupOpcode,
|
|
12362
12527
|
parseAcceptLanguage: () => parseAcceptLanguage,
|
|
12528
|
+
parseClearSiteData: () => parseClearSiteData,
|
|
12363
12529
|
parseClientHintHeaders: () => parseClientHintHeaders,
|
|
12364
12530
|
parseContentDisposition: () => parseContentDisposition,
|
|
12365
12531
|
parseContentRangeHeader: () => parseContentRangeHeader,
|
|
@@ -15969,6 +16135,51 @@ function scoreSecurityHeaders(rawHeaders) {
|
|
|
15969
16135
|
const grade = score >= 90 ? "A" : score >= 75 ? "B" : score >= 60 ? "C" : score >= 40 ? "D" : "F";
|
|
15970
16136
|
return { checks, score, grade, passCount, warningCount, missingCount, totalChecks };
|
|
15971
16137
|
}
|
|
16138
|
+
var CLEAR_SITE_DATA_DIRECTIVES = /* @__PURE__ */ new Set(["cache", "cookies", "storage", "executionContexts", "*"]);
|
|
16139
|
+
function buildClearSiteData(directives) {
|
|
16140
|
+
if (!Array.isArray(directives) || directives.length === 0) {
|
|
16141
|
+
return { error: "directives must be a non-empty array" };
|
|
16142
|
+
}
|
|
16143
|
+
const seen = /* @__PURE__ */ new Set();
|
|
16144
|
+
const normalized = [];
|
|
16145
|
+
for (const raw of directives) {
|
|
16146
|
+
if (typeof raw !== "string") return { error: "Each directive must be a string" };
|
|
16147
|
+
if (!CLEAR_SITE_DATA_DIRECTIVES.has(raw)) {
|
|
16148
|
+
return { error: `Unrecognized directive "${raw}". Valid directives: cache, cookies, storage, executionContexts, *` };
|
|
16149
|
+
}
|
|
16150
|
+
if (seen.has(raw)) continue;
|
|
16151
|
+
seen.add(raw);
|
|
16152
|
+
normalized.push(raw);
|
|
16153
|
+
}
|
|
16154
|
+
const warnings = [];
|
|
16155
|
+
if (normalized.includes("*") && normalized.length > 1) {
|
|
16156
|
+
warnings.push('"*" already clears cache, cookies, storage, and executionContexts (plus any future data types the spec adds), so listing other directives alongside it is redundant.');
|
|
16157
|
+
}
|
|
16158
|
+
const header = normalized.map((d) => `"${d}"`).join(", ");
|
|
16159
|
+
return {
|
|
16160
|
+
header,
|
|
16161
|
+
headerName: "Clear-Site-Data",
|
|
16162
|
+
snippet: `Clear-Site-Data: ${header}`,
|
|
16163
|
+
directives: normalized,
|
|
16164
|
+
warnings
|
|
16165
|
+
};
|
|
16166
|
+
}
|
|
16167
|
+
function parseClearSiteData(raw) {
|
|
16168
|
+
if (!raw || raw.trim() === "") return { error: "Input is empty" };
|
|
16169
|
+
const withoutLabel = raw.trim().replace(/^clear-site-data:\s*/i, "");
|
|
16170
|
+
const tokens = withoutLabel.split(",").map((t) => t.trim()).filter((t) => t !== "");
|
|
16171
|
+
if (tokens.length === 0) return { error: "No directives found" };
|
|
16172
|
+
const directives = [];
|
|
16173
|
+
for (const token of tokens) {
|
|
16174
|
+
const match = token.match(/^"(.*)"$/);
|
|
16175
|
+
const value = match ? match[1] : token;
|
|
16176
|
+
if (!CLEAR_SITE_DATA_DIRECTIVES.has(value)) {
|
|
16177
|
+
return { error: `Unrecognized directive "${token}"; each directive should be a quoted string like "cookies"` };
|
|
16178
|
+
}
|
|
16179
|
+
directives.push(value);
|
|
16180
|
+
}
|
|
16181
|
+
return buildClearSiteData(directives);
|
|
16182
|
+
}
|
|
15972
16183
|
|
|
15973
16184
|
// src/tools/api.ts
|
|
15974
16185
|
var api_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -2,11 +2,11 @@ export { j as json } from './json-Ca6gZCNB.cjs';
|
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.cjs';
|
|
3
3
|
export { h as hashing } from './hashing-CJjlvqS_.cjs';
|
|
4
4
|
export { t as text } from './text-DOopHoK3.cjs';
|
|
5
|
-
export { d as data } from './data-
|
|
5
|
+
export { d as data } from './data-3qMdFIF5.cjs';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.cjs';
|
|
7
7
|
export { t as time } from './time-VMAy_SrV.cjs';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-DnWrOTSV.cjs';
|
|
9
|
+
export { n as network } from './network-9j5aKpoR.cjs';
|
|
10
10
|
export { a as api } from './api-CQnIUrVB.cjs';
|
|
11
11
|
export { c as code } from './code-DvJYYTea.cjs';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ export { j as json } from './json-Ca6gZCNB.js';
|
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.js';
|
|
3
3
|
export { h as hashing } from './hashing-CJjlvqS_.js';
|
|
4
4
|
export { t as text } from './text-DOopHoK3.js';
|
|
5
|
-
export { d as data } from './data-
|
|
5
|
+
export { d as data } from './data-3qMdFIF5.js';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.js';
|
|
7
7
|
export { t as time } from './time-VMAy_SrV.js';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-DnWrOTSV.js';
|
|
9
|
+
export { n as network } from './network-9j5aKpoR.js';
|
|
10
10
|
export { a as api } from './api-CQnIUrVB.js';
|
|
11
11
|
export { c as code } from './code-DvJYYTea.js';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-ZWFZRDQ4.js';
|
|
2
|
-
export { units_exports as units } from './chunk-
|
|
3
|
-
export { network_exports as network } from './chunk-
|
|
2
|
+
export { units_exports as units } from './chunk-XAPHAUPI.js';
|
|
3
|
+
export { network_exports as network } from './chunk-K3B4JTHN.js';
|
|
4
4
|
export { api_exports as api } from './chunk-U2HREMZU.js';
|
|
5
5
|
export { code_exports as code } from './chunk-KYBI62YY.js';
|
|
6
6
|
export { color_exports as color } from './chunk-BPVAB4P2.js';
|
|
@@ -11,7 +11,7 @@ export { json_exports as json } from './chunk-WUOZHCIC.js';
|
|
|
11
11
|
export { encoding_exports as encoding } from './chunk-DOWQZUTP.js';
|
|
12
12
|
export { hashing_exports as hashing } from './chunk-PET2CGTH.js';
|
|
13
13
|
export { text_exports as text } from './chunk-YQJ7CEUL.js';
|
|
14
|
-
export { data_exports as data } from './chunk-
|
|
14
|
+
export { data_exports as data } from './chunk-PEMPPDMM.js';
|
|
15
15
|
export { generators_exports as generators } from './chunk-422ICOZX.js';
|
|
16
16
|
export { time_exports as time } from './chunk-6EJVNQSY.js';
|
|
17
17
|
import './chunk-MLKGABMK.js';
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
* - websocket-opcode-reference: lookupOpcode, listOpcodes
|
|
34
34
|
* - robots-meta-tag-builder: buildRobotsMetaTag, parseRobotsMetaTag
|
|
35
35
|
* - cookie-size-budget-calculator: calculateCookieSizeBudget
|
|
36
|
+
* - clear-site-data-header-builder: buildClearSiteData, parseClearSiteData
|
|
36
37
|
*/
|
|
37
38
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
38
39
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -1142,6 +1143,36 @@ interface SecurityHeadersScorecard {
|
|
|
1142
1143
|
declare function scoreSecurityHeaders(rawHeaders: string): SecurityHeadersScorecard | {
|
|
1143
1144
|
error: string;
|
|
1144
1145
|
};
|
|
1146
|
+
type ClearSiteDataDirective = 'cache' | 'cookies' | 'storage' | 'executionContexts' | '*';
|
|
1147
|
+
interface ClearSiteDataResult {
|
|
1148
|
+
header: string;
|
|
1149
|
+
headerName: 'Clear-Site-Data';
|
|
1150
|
+
snippet: string;
|
|
1151
|
+
directives: ClearSiteDataDirective[];
|
|
1152
|
+
warnings: string[];
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Build a `Clear-Site-Data` response-header value from a list of directives
|
|
1156
|
+
* (`cache`, `cookies`, `storage`, `executionContexts`, or `*` for all of
|
|
1157
|
+
* them), per the spec's quoted-string-list syntax, e.g.
|
|
1158
|
+
* `"cache", "cookies"`. Duplicate directives are deduplicated, and listing
|
|
1159
|
+
* other directives alongside `*` is flagged as redundant since `*` already
|
|
1160
|
+
* covers every current (and future) data type on its own. Pure string
|
|
1161
|
+
* assembly; it never clears anything in a real browser.
|
|
1162
|
+
*/
|
|
1163
|
+
declare function buildClearSiteData(directives: string[]): ClearSiteDataResult | {
|
|
1164
|
+
error: string;
|
|
1165
|
+
};
|
|
1166
|
+
/**
|
|
1167
|
+
* Parse an existing `Clear-Site-Data` header value (with or without a
|
|
1168
|
+
* leading `Clear-Site-Data:` label) into the same shape `buildClearSiteData`
|
|
1169
|
+
* returns. Accepts directives with or without the quotes the spec requires
|
|
1170
|
+
* on a real response, so a value copied from a note or a bug report without
|
|
1171
|
+
* its quoting still parses.
|
|
1172
|
+
*/
|
|
1173
|
+
declare function parseClearSiteData(raw: string): ClearSiteDataResult | {
|
|
1174
|
+
error: string;
|
|
1175
|
+
};
|
|
1145
1176
|
|
|
1146
1177
|
type network_AcceptLanguageEntry = AcceptLanguageEntry;
|
|
1147
1178
|
type network_AcceptLanguageResult = AcceptLanguageResult;
|
|
@@ -1151,6 +1182,8 @@ declare const network_CLIENT_HINTS: typeof CLIENT_HINTS;
|
|
|
1151
1182
|
type network_CacheControlDirective = CacheControlDirective;
|
|
1152
1183
|
type network_CacheControlOptions = CacheControlOptions;
|
|
1153
1184
|
type network_CacheControlResult = CacheControlResult;
|
|
1185
|
+
type network_ClearSiteDataDirective = ClearSiteDataDirective;
|
|
1186
|
+
type network_ClearSiteDataResult = ClearSiteDataResult;
|
|
1154
1187
|
type network_ClientHintDef = ClientHintDef;
|
|
1155
1188
|
type network_ClientHintValueType = ClientHintValueType;
|
|
1156
1189
|
type network_ClientHintsBuildResult = ClientHintsBuildResult;
|
|
@@ -1254,6 +1287,7 @@ declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
|
|
|
1254
1287
|
declare const network_assessContentTypeRisk: typeof assessContentTypeRisk;
|
|
1255
1288
|
declare const network_buildAcceptLanguage: typeof buildAcceptLanguage;
|
|
1256
1289
|
declare const network_buildCacheControl: typeof buildCacheControl;
|
|
1290
|
+
declare const network_buildClearSiteData: typeof buildClearSiteData;
|
|
1257
1291
|
declare const network_buildClientHints: typeof buildClientHints;
|
|
1258
1292
|
declare const network_buildContentDisposition: typeof buildContentDisposition;
|
|
1259
1293
|
declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
|
|
@@ -1294,6 +1328,7 @@ declare const network_listOpcodes: typeof listOpcodes;
|
|
|
1294
1328
|
declare const network_lookupCloseCode: typeof lookupCloseCode;
|
|
1295
1329
|
declare const network_lookupOpcode: typeof lookupOpcode;
|
|
1296
1330
|
declare const network_parseAcceptLanguage: typeof parseAcceptLanguage;
|
|
1331
|
+
declare const network_parseClearSiteData: typeof parseClearSiteData;
|
|
1297
1332
|
declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
|
|
1298
1333
|
declare const network_parseContentDisposition: typeof parseContentDisposition;
|
|
1299
1334
|
declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
|
|
@@ -1325,7 +1360,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
1325
1360
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
1326
1361
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
1327
1362
|
declare namespace network {
|
|
1328
|
-
export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, type network_CookieSizeBudgetResult as CookieSizeBudgetResult, type network_CookieSizeEntry as CookieSizeEntry, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGenerateGroup as RobotsGenerateGroup, type network_RobotsGenerateOptions as RobotsGenerateOptions, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SecurityHeaderCheck as SecurityHeaderCheck, type network_SecurityHeaderStatus as SecurityHeaderStatus, type network_SecurityHeadersScorecard as SecurityHeadersScorecard, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_calculateCookieSizeBudget as calculateCookieSizeBudget, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_generateRobotsTxt as generateRobotsTxt, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_scoreSecurityHeaders as scoreSecurityHeaders, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
1363
|
+
export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClearSiteDataDirective as ClearSiteDataDirective, type network_ClearSiteDataResult as ClearSiteDataResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, type network_CookieSizeBudgetResult as CookieSizeBudgetResult, type network_CookieSizeEntry as CookieSizeEntry, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGenerateGroup as RobotsGenerateGroup, type network_RobotsGenerateOptions as RobotsGenerateOptions, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SecurityHeaderCheck as SecurityHeaderCheck, type network_SecurityHeaderStatus as SecurityHeaderStatus, type network_SecurityHeadersScorecard as SecurityHeadersScorecard, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClearSiteData as buildClearSiteData, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_calculateCookieSizeBudget as calculateCookieSizeBudget, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_generateRobotsTxt as generateRobotsTxt, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClearSiteData as parseClearSiteData, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_scoreSecurityHeaders as scoreSecurityHeaders, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
1329
1364
|
}
|
|
1330
1365
|
|
|
1331
|
-
export { type
|
|
1366
|
+
export { type MultipartPart as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type DnsResponse as E, type EmailHeaderAnalysis as F, type EmailHeaderField as G, type GeoResult as H, HTTP_HEADERS as I, type HarEntry as J, type HarParseResult as K, type HarSummary as L, type HeaderCategory as M, type HstsOptions as N, type HstsResult as O, type HttpHeader as P, type Ipv6AddressType as Q, type Ipv6ParseResult as R, LINK_REL_VALUES as S, type LinkHeaderEntry as T, type LinkHeaderEntryInput as U, type LinkHeaderResult as V, type LinkRel as W, type ManifestIconInfo as X, type ManifestIssue as Y, type ManifestValidationResult as Z, type MultipartParseResult as _, type AcceptLanguageResult as a, buildDnsQueryUrl as a$, type OpcodeCategory as a0, type OpcodeInfo as a1, PERMISSIONS_POLICY_FEATURES as a2, type ParsedClientHint as a3, type ParsedDnsResult as a4, type ParsedGeoResult as a5, type PermissionsPolicyDirective as a6, type PermissionsPolicyFeatureInput as a7, type PermissionsPolicyResult as a8, type PreferParameter as a9, type SecurityHeaderStatus as aA, type SecurityHeadersScorecard as aB, type SitemapIndexEntry as aC, type SitemapIssue as aD, type SitemapSplitFile as aE, type SitemapUrlEntry as aF, type SitemapValidationResult as aG, type SplitSitemapOptions as aH, type SplitSitemapResult as aI, type StatusCode as aJ, type UaDeviceType as aK, type UserAgentInfo as aL, type VaryHeaderEntry as aM, type VaryHeaderResult as aN, type XContentTypeOptionsHeader as aO, type XContentTypeOptionsParseResult as aP, type XRobotsTagFlag as aQ, type XRobotsTagOptions as aR, type XRobotsTagResult as aS, X_CONTENT_TYPE_OPTIONS_HEADER as aT, analyzeEmailHeaders as aU, assessContentTypeRisk as aV, buildAcceptLanguage as aW, buildCacheControl as aX, buildClearSiteData as aY, buildClientHints as aZ, buildContentDisposition as a_, type PreferPreference as aa, type PreferResult as ab, type PriorityResult as ac, REFERRER_POLICY_VALUES as ad, type RangeEntry as ae, type RangeEntryInput as af, type RangeHeaderResult as ag, type ReceivedHop as ah, type ReferrerPolicyEntry as ai, type ReferrerPolicyResult as aj, type ReferrerPolicyValue as ak, type RetryAfterDateResult as al, type RetryAfterResult as am, type RetryAfterSecondsResult as an, type RobotsGenerateGroup as ao, type RobotsGenerateOptions as ap, type RobotsGroup as aq, type RobotsIssue as ar, type RobotsMetaTagFlag as as, type RobotsMetaTagOptions as at, type RobotsMetaTagResult as au, type RobotsRule as av, type RobotsValidationResult as aw, STATUS_CODES as ax, type SameSiteValue as ay, type SecurityHeaderCheck as az, type AuthResultEntry as b, validateHeaderName as b$, buildGeoUrl as b0, buildHsts as b1, buildLinkHeader as b2, buildMapUrl as b3, buildPermissionsPolicy as b4, buildPreferHeader as b5, buildPriorityHeader as b6, buildRangeHeader as b7, buildReferrerPolicy as b8, buildRetryAfterHeader as b9, parseAcceptLanguage as bA, parseClearSiteData as bB, parseClientHintHeaders as bC, parseContentDisposition as bD, parseContentRangeHeader as bE, parseDnsResponse as bF, parseGeoResponse as bG, parseHar as bH, parseHsts as bI, parseIpv6Address as bJ, parseMultipartFormData as bK, parsePermissionsPolicy as bL, parsePreferHeader as bM, parsePriorityHeader as bN, parseRetryAfterHeader as bO, parseRobotsMetaTag as bP, parseUserAgent as bQ, parseVaryHeader as bR, parseXContentTypeOptionsHeader as bS, parseXRobotsTag as bT, scoreSecurityHeaders as bU, searchHeaders as bV, searchStatusCodes as bW, splitSitemap as bX, statusCodeToText as bY, typeNumberToLabel as bZ, validateDomain as b_, buildRobotsMetaTag as ba, buildVaryHeader as bb, buildXContentTypeOptionsHeader as bc, buildXRobotsTag as bd, calculateCookieSizeBudget as be, checkSetCookieHeader as bf, countryCodeToFlag as bg, extractMultipartBoundary as bh, formatCoordinates as bi, formatTtl as bj, generateRobotsTxt as bk, getByCategory as bl, getHeader as bm, getHeadersByCategory as bn, getStatusByCategory as bo, getStatusCode as bp, isClientError as bq, isServerError as br, isSuccess as bs, isValidIp as bt, isValidIpv4 as bu, isValidIpv6 as bv, listCloseCodes as bw, listOpcodes as bx, lookupCloseCode as by, lookupOpcode as bz, type CacheControlDirective as c, validateHeaderValue as c0, validateManifest as c1, validateRobotsTxt as c2, validateSitemap as c3, type CacheControlOptions as d, type CacheControlResult as e, type ClearSiteDataDirective as f, type ClearSiteDataResult as g, type ClientHintDef as h, type ClientHintValueType as i, type ClientHintsBuildResult as j, type ClientHintsParseResult as k, type CloseCodeInfo as l, type CloseCodeRange as m, network as n, type ContentDispositionBuildOptions as o, type ContentDispositionBuildResult as p, type ContentDispositionParseResult as q, type ContentRangeResult as r, type ContentTypeRiskResult as s, type ContentTypeSniffRisk as t, type CookieAttributes as u, type CookieCheckResult as v, type CookieSizeBudgetResult as w, type CookieSizeEntry as x, type DnsRecord as y, type DnsRecordType as z };
|