@utilix-tech/sdk 0.52.0 → 0.54.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 +32 -7
- package/dist/{chunk-BDQXYFTO.js → chunk-3KIUADK4.js} +49 -1
- package/dist/{chunk-Y7YY733Z.js → chunk-DEBIH7QS.js} +58 -1
- package/dist/{chunk-K4ZERKBD.js → chunk-JW4NG2GN.js} +119 -1
- package/dist/{chunk-ZZJPD366.js → chunk-NKN656TQ.js} +44 -1
- package/dist/{code-B_gDkRAx.d.cts → code-rxidGgvB.d.cts} +28 -2
- package/dist/{code-B_gDkRAx.d.ts → code-rxidGgvB.d.ts} +28 -2
- package/dist/{data-BI_007dA.d.cts → data-CupeugaR.d.cts} +37 -2
- package/dist/{data-BI_007dA.d.ts → data-CupeugaR.d.ts} +37 -2
- package/dist/index.cjs +266 -0
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/{network-DelcJeJa.d.cts → network-C6IcHeMB.d.cts} +51 -2
- package/dist/{network-DelcJeJa.d.ts → network-C6IcHeMB.d.ts} +51 -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/data.cjs +48 -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 +57 -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 +43 -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-y30YVhqI.d.cts → units-p-1Ikx7l.d.cts} +39 -2
- package/dist/{units-y30YVhqI.d.ts → units-p-1Ikx7l.d.ts} +39 -2
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
* - gitignore-tester (testGitignorePatterns)
|
|
25
25
|
* - editorconfig-validator (validateEditorConfig)
|
|
26
26
|
* - tsconfig-validator (validateTsconfig)
|
|
27
|
+
* - package-json-exports-validator (validatePackageExports)
|
|
27
28
|
*/
|
|
28
29
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
29
30
|
declare const ALL_FLAGS: RegexFlag[];
|
|
@@ -449,6 +450,27 @@ interface TsconfigValidationResult {
|
|
|
449
450
|
declare function validateTsconfig(text: string): TsconfigValidationResult | {
|
|
450
451
|
error: string;
|
|
451
452
|
};
|
|
453
|
+
interface ExportsIssue {
|
|
454
|
+
severity: 'error' | 'warning';
|
|
455
|
+
path: string;
|
|
456
|
+
message: string;
|
|
457
|
+
}
|
|
458
|
+
type ExportsShape = 'string' | 'array' | 'conditions' | 'subpaths' | 'null';
|
|
459
|
+
interface ExportsValidationResult {
|
|
460
|
+
parsed: true;
|
|
461
|
+
exportsShape: ExportsShape;
|
|
462
|
+
subpaths: string[];
|
|
463
|
+
issues: ExportsIssue[];
|
|
464
|
+
valid: boolean;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Validate a package.json's "exports" field: flag common dual-package
|
|
468
|
+
* (ESM/CJS) misconfigurations. Accepts the full package.json text (only the
|
|
469
|
+
* "exports" field is read).
|
|
470
|
+
*/
|
|
471
|
+
declare function validatePackageExports(packageJsonText: string): ExportsValidationResult | {
|
|
472
|
+
error: string;
|
|
473
|
+
};
|
|
452
474
|
|
|
453
475
|
declare const code_ALL_FLAGS: typeof ALL_FLAGS;
|
|
454
476
|
type code_ApiEndpoint = ApiEndpoint;
|
|
@@ -470,6 +492,9 @@ type code_EditorConfigSection = EditorConfigSection;
|
|
|
470
492
|
type code_EditorConfigValidationResult = EditorConfigValidationResult;
|
|
471
493
|
type code_EnvEntry = EnvEntry;
|
|
472
494
|
type code_EnvParseResult = EnvParseResult;
|
|
495
|
+
type code_ExportsIssue = ExportsIssue;
|
|
496
|
+
type code_ExportsShape = ExportsShape;
|
|
497
|
+
type code_ExportsValidationResult = ExportsValidationResult;
|
|
473
498
|
type code_GitCommandConfig = GitCommandConfig;
|
|
474
499
|
type code_GitCommandResult = GitCommandResult;
|
|
475
500
|
type code_GitOperation = GitOperation;
|
|
@@ -551,9 +576,10 @@ declare const code_testPattern: typeof testPattern;
|
|
|
551
576
|
declare const code_testRegex: typeof testRegex;
|
|
552
577
|
declare const code_validateEditorConfig: typeof validateEditorConfig;
|
|
553
578
|
declare const code_validateEnvKey: typeof validateEnvKey;
|
|
579
|
+
declare const code_validatePackageExports: typeof validatePackageExports;
|
|
554
580
|
declare const code_validateTsconfig: typeof validateTsconfig;
|
|
555
581
|
declare namespace code {
|
|
556
|
-
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validateTsconfig as validateTsconfig };
|
|
582
|
+
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
557
583
|
}
|
|
558
584
|
|
|
559
|
-
export { type
|
|
585
|
+
export { type SqlDialect as $, ALL_FLAGS as A, type HtmlMinifyOptions as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type HtmlMinifyResult as F, type GitCommandConfig as G, type HtmlFormatResult as H, type JsMinifyResult as I, type JsMinifyOptions as J, type MatchResult as K, type MimeEntry as L, MIME_TABLE as M, type MimeLookupResult as N, OPERATIONS as O, type ParsedSpec as P, type RedosResult as Q, type RedosFinding as R, type RedosSeverity as S, type RegexError as T, type RegexFlag as U, type RegexMatch as V, type RegexResult as W, type RegexSuccess as X, SQL_DEFAULT_OPTIONS as Y, type Segment as Z, type SpecVersion as _, type ApiEndpoint as a, type SqlFormatOptions as a0, type TestPatternResult as a1, type TsconfigIssue as a2, type TsconfigValidationResult as a3, buildDockerPull as a4, buildDockerRun as a5, buildGitCommand as a6, collapseHtmlWhitespace as a7, collapseJsWhitespace as a8, countProperties as a9, parseGithubUrl as aA, parseSpec as aB, removeConsoleCalls as aC, removeEmptyAttributes as aD, removeHtmlComments as aE, removeJsComments as aF, removeRedundantAttributes as aG, searchCheatsheet as aH, searchEndpoints as aI, splitStatements as aJ, testGitignorePatterns as aK, testPattern as aL, testRegex as aM, validateEditorConfig as aN, validateEnvKey as aO, validatePackageExports as aP, validateTsconfig as aQ, countRules as aa, detectDialect as ab, detectOperationType as ac, detectRedos as ad, envToExport as ae, envToJson as af, formatCss as ag, formatGql as ah, formatHtml as ai, formatSql as aj, getEndpointsByTag as ak, getHtmlStats as al, getJsStats as am, getMethodColor as an, isValidTag as ao, lintConventionalCommit as ap, lookupMime as aq, minifyCss as ar, minifyGql as as, minifyHtml as at, minifyJs as au, minifySql as av, normalizeRef as aw, parseDockerImage as ax, parseEnv as ay, parseGitCommand as az, type ApiInfo as b, code as c, type CheatsheetEntry as d, type ConventionalCommitFinding as e, type ConventionalCommitFooter as f, type ConventionalCommitOptions as g, type ConventionalCommitParsed as h, type ConventionalCommitResult as i, type ConventionalCommitSeverity as j, type CssResult as k, type DockerImageRef as l, type EditorConfigProperty as m, type EditorConfigSection as n, type EditorConfigValidationResult as o, type EnvEntry as p, type EnvParseResult as q, type ExportsIssue as r, type ExportsShape as s, type ExportsValidationResult as t, type GitCommandResult as u, type GitOperation as v, type GithubUrlInfo as w, type GithubUrlType as x, type GitignoreTestResult as y, type GqlFormatResult as z };
|
|
@@ -277,6 +277,38 @@ declare function convertSubtitles(input: string, target: SubtitleFormat, sourceF
|
|
|
277
277
|
declare function shiftSubtitles(input: string, offsetSeconds: number, target?: SubtitleFormat): ConvertedSubtitles | {
|
|
278
278
|
error: string;
|
|
279
279
|
};
|
|
280
|
+
interface CaptionSpeedCue {
|
|
281
|
+
index: number;
|
|
282
|
+
start: number;
|
|
283
|
+
end: number;
|
|
284
|
+
text: string;
|
|
285
|
+
durationSeconds: number;
|
|
286
|
+
wordCount: number;
|
|
287
|
+
charCount: number;
|
|
288
|
+
wpm: number;
|
|
289
|
+
charsPerSecond: number;
|
|
290
|
+
exceedsWpm: boolean;
|
|
291
|
+
exceedsCps: boolean;
|
|
292
|
+
}
|
|
293
|
+
interface CaptionSpeedResult {
|
|
294
|
+
cueCount: number;
|
|
295
|
+
cues: CaptionSpeedCue[];
|
|
296
|
+
averageWpm: number;
|
|
297
|
+
maxWpm: number;
|
|
298
|
+
flaggedCount: number;
|
|
299
|
+
wpmThreshold: number;
|
|
300
|
+
cpsThreshold: number;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Parse an SRT or WebVTT file and report the words-per-minute reading speed
|
|
304
|
+
* implied by each cue's word count and duration, flagging cues that exceed
|
|
305
|
+
* common broadcast accessibility guidelines (default: ~180 WPM, ~20
|
|
306
|
+
* characters/second). Built on parseSubtitles for cue extraction; HTML-style
|
|
307
|
+
* cue tags like <i> are stripped before counting words and characters.
|
|
308
|
+
*/
|
|
309
|
+
declare function analyzeCaptionSpeed(input: string, wpmThreshold?: number, cpsThreshold?: number): CaptionSpeedResult | {
|
|
310
|
+
error: string;
|
|
311
|
+
};
|
|
280
312
|
interface FrontMatterResult {
|
|
281
313
|
frontMatter: Record<string, unknown>;
|
|
282
314
|
body: string;
|
|
@@ -427,6 +459,8 @@ declare function calculateMarkdownTaskListProgress(markdown: string): MarkdownTa
|
|
|
427
459
|
error: string;
|
|
428
460
|
};
|
|
429
461
|
|
|
462
|
+
type data_CaptionSpeedCue = CaptionSpeedCue;
|
|
463
|
+
type data_CaptionSpeedResult = CaptionSpeedResult;
|
|
430
464
|
type data_ConvertedSubtitles = ConvertedSubtitles;
|
|
431
465
|
type data_CsvDuplicateGroup = CsvDuplicateGroup;
|
|
432
466
|
type data_CsvDuplicateOptions = CsvDuplicateOptions;
|
|
@@ -461,6 +495,7 @@ type data_XmlToJsonOptions = XmlToJsonOptions;
|
|
|
461
495
|
type data_YamlAnchorInfo = YamlAnchorInfo;
|
|
462
496
|
type data_YamlAnchorResolveError = YamlAnchorResolveError;
|
|
463
497
|
type data_YamlAnchorResolveResult = YamlAnchorResolveResult;
|
|
498
|
+
declare const data_analyzeCaptionSpeed: typeof analyzeCaptionSpeed;
|
|
464
499
|
declare const data_calculateMarkdownTaskListProgress: typeof calculateMarkdownTaskListProgress;
|
|
465
500
|
declare const data_convertSubtitles: typeof convertSubtitles;
|
|
466
501
|
declare const data_csvToJson: typeof csvToJson;
|
|
@@ -511,7 +546,7 @@ declare const data_validateXml: typeof validateXml;
|
|
|
511
546
|
declare const data_validateYaml: typeof validateYaml;
|
|
512
547
|
declare const data_xmlToJson: typeof xmlToJson;
|
|
513
548
|
declare namespace data {
|
|
514
|
-
export { type data_ConvertedSubtitles as ConvertedSubtitles, 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_IniSection as IniSection, 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_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_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, 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_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_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_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
|
|
549
|
+
export { type data_CaptionSpeedCue as CaptionSpeedCue, type data_CaptionSpeedResult as CaptionSpeedResult, type data_ConvertedSubtitles as ConvertedSubtitles, 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_IniSection as IniSection, 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_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_analyzeCaptionSpeed as analyzeCaptionSpeed, data_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, 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_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_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_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
|
|
515
550
|
}
|
|
516
551
|
|
|
517
|
-
export {
|
|
552
|
+
export { getSection as $, calculateMarkdownTaskListProgress as A, convertSubtitles as B, type CaptionSpeedCue as C, csvToJson as D, type EnvDiffError as E, type FrontMatterError as F, csvToSqlInsert as G, detectDelimiter as H, type IniSection as I, detectSubtitleFormat as J, diffEnvExample as K, envToExport as L, type MarkdownTaskListItem as M, type NdjsonLineResult as N, envToJson as O, type ParseOptions as P, findCsvDuplicateRows as Q, formatNdjson as R, type SubtitleCue as S, type TomlFormatResult as T, formatSubtitleTimestamp as U, type ValidationResult as V, formatToml as W, type XmlFormatResult as X, type YamlAnchorInfo as Y, formatXml as Z, generateMarkdownToc as _, type CaptionSpeedResult as a, getSectionNames as a0, getTomlStats as a1, getXmlStats as a2, getYamlStats as a3, iniToJson as a4, jsonArrayToNdjson as a5, jsonToIni as a6, jsonToToml as a7, jsonToXml as a8, minifyNdjson as a9, minifyToml as aa, minifyXml as ab, ndjsonToJsonArray as ac, parseCsv as ad, parseEnv as ae, parseFrontMatter as af, parseIni as ag, parseSubtitleTimestamp as ah, parseSubtitles as ai, parseXmlToObject as aj, resolveYamlAnchors as ak, serializeSubtitles as al, shiftSubtitles as am, stringifyIni as an, toCsvString as ao, tomlToJson as ap, validateEnvKey as aq, validateIni as ar, validateNdjson as as, validateToml as at, validateXml as au, validateYaml as av, xmlToJson as aw, type ConvertedSubtitles as b, type CsvDuplicateGroup as c, data as d, type CsvDuplicateOptions as e, type CsvDuplicateResult as f, type CsvParseResult as g, type CsvToSqlOptions as h, type CsvToSqlResult as i, type EnvDiffResult as j, type EnvEntry as k, type EnvParseResult as l, type FrontMatterResult as m, type MarkdownTaskListProgressResult as n, type MarkdownTaskListSectionSummary as o, type MarkdownTocEntry as p, type MarkdownTocOptions as q, type MarkdownTocResult as r, type NdjsonValidateResult as s, type ParsedIni as t, type ParsedSubtitles as u, type SubtitleFormat as v, type XmlToJsonOptions as w, type YamlAnchorResolveError as x, type YamlAnchorResolveResult as y, analyzeCaptionSpeed as z };
|
|
@@ -277,6 +277,38 @@ declare function convertSubtitles(input: string, target: SubtitleFormat, sourceF
|
|
|
277
277
|
declare function shiftSubtitles(input: string, offsetSeconds: number, target?: SubtitleFormat): ConvertedSubtitles | {
|
|
278
278
|
error: string;
|
|
279
279
|
};
|
|
280
|
+
interface CaptionSpeedCue {
|
|
281
|
+
index: number;
|
|
282
|
+
start: number;
|
|
283
|
+
end: number;
|
|
284
|
+
text: string;
|
|
285
|
+
durationSeconds: number;
|
|
286
|
+
wordCount: number;
|
|
287
|
+
charCount: number;
|
|
288
|
+
wpm: number;
|
|
289
|
+
charsPerSecond: number;
|
|
290
|
+
exceedsWpm: boolean;
|
|
291
|
+
exceedsCps: boolean;
|
|
292
|
+
}
|
|
293
|
+
interface CaptionSpeedResult {
|
|
294
|
+
cueCount: number;
|
|
295
|
+
cues: CaptionSpeedCue[];
|
|
296
|
+
averageWpm: number;
|
|
297
|
+
maxWpm: number;
|
|
298
|
+
flaggedCount: number;
|
|
299
|
+
wpmThreshold: number;
|
|
300
|
+
cpsThreshold: number;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Parse an SRT or WebVTT file and report the words-per-minute reading speed
|
|
304
|
+
* implied by each cue's word count and duration, flagging cues that exceed
|
|
305
|
+
* common broadcast accessibility guidelines (default: ~180 WPM, ~20
|
|
306
|
+
* characters/second). Built on parseSubtitles for cue extraction; HTML-style
|
|
307
|
+
* cue tags like <i> are stripped before counting words and characters.
|
|
308
|
+
*/
|
|
309
|
+
declare function analyzeCaptionSpeed(input: string, wpmThreshold?: number, cpsThreshold?: number): CaptionSpeedResult | {
|
|
310
|
+
error: string;
|
|
311
|
+
};
|
|
280
312
|
interface FrontMatterResult {
|
|
281
313
|
frontMatter: Record<string, unknown>;
|
|
282
314
|
body: string;
|
|
@@ -427,6 +459,8 @@ declare function calculateMarkdownTaskListProgress(markdown: string): MarkdownTa
|
|
|
427
459
|
error: string;
|
|
428
460
|
};
|
|
429
461
|
|
|
462
|
+
type data_CaptionSpeedCue = CaptionSpeedCue;
|
|
463
|
+
type data_CaptionSpeedResult = CaptionSpeedResult;
|
|
430
464
|
type data_ConvertedSubtitles = ConvertedSubtitles;
|
|
431
465
|
type data_CsvDuplicateGroup = CsvDuplicateGroup;
|
|
432
466
|
type data_CsvDuplicateOptions = CsvDuplicateOptions;
|
|
@@ -461,6 +495,7 @@ type data_XmlToJsonOptions = XmlToJsonOptions;
|
|
|
461
495
|
type data_YamlAnchorInfo = YamlAnchorInfo;
|
|
462
496
|
type data_YamlAnchorResolveError = YamlAnchorResolveError;
|
|
463
497
|
type data_YamlAnchorResolveResult = YamlAnchorResolveResult;
|
|
498
|
+
declare const data_analyzeCaptionSpeed: typeof analyzeCaptionSpeed;
|
|
464
499
|
declare const data_calculateMarkdownTaskListProgress: typeof calculateMarkdownTaskListProgress;
|
|
465
500
|
declare const data_convertSubtitles: typeof convertSubtitles;
|
|
466
501
|
declare const data_csvToJson: typeof csvToJson;
|
|
@@ -511,7 +546,7 @@ declare const data_validateXml: typeof validateXml;
|
|
|
511
546
|
declare const data_validateYaml: typeof validateYaml;
|
|
512
547
|
declare const data_xmlToJson: typeof xmlToJson;
|
|
513
548
|
declare namespace data {
|
|
514
|
-
export { type data_ConvertedSubtitles as ConvertedSubtitles, 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_IniSection as IniSection, 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_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_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, 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_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_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_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
|
|
549
|
+
export { type data_CaptionSpeedCue as CaptionSpeedCue, type data_CaptionSpeedResult as CaptionSpeedResult, type data_ConvertedSubtitles as ConvertedSubtitles, 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_IniSection as IniSection, 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_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_analyzeCaptionSpeed as analyzeCaptionSpeed, data_calculateMarkdownTaskListProgress as calculateMarkdownTaskListProgress, data_convertSubtitles as convertSubtitles, data_csvToJson as csvToJson, data_csvToSqlInsert as csvToSqlInsert, 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_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_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_validateNdjson as validateNdjson, data_validateToml as validateToml, data_validateXml as validateXml, data_validateYaml as validateYaml, data_xmlToJson as xmlToJson };
|
|
515
550
|
}
|
|
516
551
|
|
|
517
|
-
export {
|
|
552
|
+
export { getSection as $, calculateMarkdownTaskListProgress as A, convertSubtitles as B, type CaptionSpeedCue as C, csvToJson as D, type EnvDiffError as E, type FrontMatterError as F, csvToSqlInsert as G, detectDelimiter as H, type IniSection as I, detectSubtitleFormat as J, diffEnvExample as K, envToExport as L, type MarkdownTaskListItem as M, type NdjsonLineResult as N, envToJson as O, type ParseOptions as P, findCsvDuplicateRows as Q, formatNdjson as R, type SubtitleCue as S, type TomlFormatResult as T, formatSubtitleTimestamp as U, type ValidationResult as V, formatToml as W, type XmlFormatResult as X, type YamlAnchorInfo as Y, formatXml as Z, generateMarkdownToc as _, type CaptionSpeedResult as a, getSectionNames as a0, getTomlStats as a1, getXmlStats as a2, getYamlStats as a3, iniToJson as a4, jsonArrayToNdjson as a5, jsonToIni as a6, jsonToToml as a7, jsonToXml as a8, minifyNdjson as a9, minifyToml as aa, minifyXml as ab, ndjsonToJsonArray as ac, parseCsv as ad, parseEnv as ae, parseFrontMatter as af, parseIni as ag, parseSubtitleTimestamp as ah, parseSubtitles as ai, parseXmlToObject as aj, resolveYamlAnchors as ak, serializeSubtitles as al, shiftSubtitles as am, stringifyIni as an, toCsvString as ao, tomlToJson as ap, validateEnvKey as aq, validateIni as ar, validateNdjson as as, validateToml as at, validateXml as au, validateYaml as av, xmlToJson as aw, type ConvertedSubtitles as b, type CsvDuplicateGroup as c, data as d, type CsvDuplicateOptions as e, type CsvDuplicateResult as f, type CsvParseResult as g, type CsvToSqlOptions as h, type CsvToSqlResult as i, type EnvDiffResult as j, type EnvEntry as k, type EnvParseResult as l, type FrontMatterResult as m, type MarkdownTaskListProgressResult as n, type MarkdownTaskListSectionSummary as o, type MarkdownTocEntry as p, type MarkdownTocOptions as q, type MarkdownTocResult as r, type NdjsonValidateResult as s, type ParsedIni as t, type ParsedSubtitles as u, type SubtitleFormat as v, type XmlToJsonOptions as w, type YamlAnchorResolveError as x, type YamlAnchorResolveResult as y, analyzeCaptionSpeed as z };
|
package/dist/index.cjs
CHANGED
|
@@ -5151,6 +5151,7 @@ function getEmojiCategories() {
|
|
|
5151
5151
|
// src/tools/data.ts
|
|
5152
5152
|
var data_exports = {};
|
|
5153
5153
|
__export(data_exports, {
|
|
5154
|
+
analyzeCaptionSpeed: () => analyzeCaptionSpeed,
|
|
5154
5155
|
calculateMarkdownTaskListProgress: () => calculateMarkdownTaskListProgress,
|
|
5155
5156
|
convertSubtitles: () => convertSubtitles,
|
|
5156
5157
|
csvToJson: () => csvToJson2,
|
|
@@ -6486,6 +6487,53 @@ function shiftSubtitles(input, offsetSeconds, target) {
|
|
|
6486
6487
|
warnings
|
|
6487
6488
|
};
|
|
6488
6489
|
}
|
|
6490
|
+
function analyzeCaptionSpeed(input, wpmThreshold = 180, cpsThreshold = 20) {
|
|
6491
|
+
if (!Number.isFinite(wpmThreshold) || wpmThreshold <= 0) {
|
|
6492
|
+
return { error: "wpmThreshold must be a finite number greater than zero" };
|
|
6493
|
+
}
|
|
6494
|
+
if (!Number.isFinite(cpsThreshold) || cpsThreshold <= 0) {
|
|
6495
|
+
return { error: "cpsThreshold must be a finite number greater than zero" };
|
|
6496
|
+
}
|
|
6497
|
+
const parsed = parseSubtitles(input);
|
|
6498
|
+
if ("error" in parsed) return parsed;
|
|
6499
|
+
const round12 = (n) => Math.round(n * 10) / 10;
|
|
6500
|
+
const cues = [];
|
|
6501
|
+
for (const cue of parsed.cues) {
|
|
6502
|
+
const text = cue.text.replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim();
|
|
6503
|
+
const durationSeconds = cue.end - cue.start;
|
|
6504
|
+
if (text.length === 0 || durationSeconds <= 0) continue;
|
|
6505
|
+
const wordCount = text.split(" ").filter(Boolean).length;
|
|
6506
|
+
const charCount = text.length;
|
|
6507
|
+
const wpm = wordCount / durationSeconds * 60;
|
|
6508
|
+
const charsPerSecond = charCount / durationSeconds;
|
|
6509
|
+
cues.push({
|
|
6510
|
+
index: cues.length + 1,
|
|
6511
|
+
start: round12(cue.start),
|
|
6512
|
+
end: round12(cue.end),
|
|
6513
|
+
text,
|
|
6514
|
+
durationSeconds: round12(durationSeconds),
|
|
6515
|
+
wordCount,
|
|
6516
|
+
charCount,
|
|
6517
|
+
wpm: round12(wpm),
|
|
6518
|
+
charsPerSecond: round12(charsPerSecond),
|
|
6519
|
+
exceedsWpm: wpm > wpmThreshold,
|
|
6520
|
+
exceedsCps: charsPerSecond > cpsThreshold
|
|
6521
|
+
});
|
|
6522
|
+
}
|
|
6523
|
+
if (cues.length === 0) {
|
|
6524
|
+
return { error: "No cues with both text and a positive duration were found" };
|
|
6525
|
+
}
|
|
6526
|
+
const wpmValues = cues.map((c) => c.wpm);
|
|
6527
|
+
return {
|
|
6528
|
+
cueCount: cues.length,
|
|
6529
|
+
cues,
|
|
6530
|
+
averageWpm: round12(wpmValues.reduce((a, b) => a + b, 0) / wpmValues.length),
|
|
6531
|
+
maxWpm: round12(Math.max(...wpmValues)),
|
|
6532
|
+
flaggedCount: cues.filter((c) => c.exceedsWpm || c.exceedsCps).length,
|
|
6533
|
+
wpmThreshold,
|
|
6534
|
+
cpsThreshold
|
|
6535
|
+
};
|
|
6536
|
+
}
|
|
6489
6537
|
function parseFrontMatterScalar(value) {
|
|
6490
6538
|
if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
|
|
6491
6539
|
return value.slice(1, -1);
|
|
@@ -8242,6 +8290,7 @@ __export(units_exports, {
|
|
|
8242
8290
|
calculateCdMaturity: () => calculateCdMaturity,
|
|
8243
8291
|
calculateChange: () => calculateChange,
|
|
8244
8292
|
calculateCompoundInterest: () => calculateCompoundInterest,
|
|
8293
|
+
calculateCreditUtilization: () => calculateCreditUtilization,
|
|
8245
8294
|
calculateDepreciationSchedule: () => calculateDepreciationSchedule,
|
|
8246
8295
|
calculateDiscount: () => calculateDiscount,
|
|
8247
8296
|
calculateEmi: () => calculateEmi,
|
|
@@ -10405,6 +10454,48 @@ function calculateGpa(courses) {
|
|
|
10405
10454
|
gpa: round23(totalQualityPoints / totalCredits)
|
|
10406
10455
|
};
|
|
10407
10456
|
}
|
|
10457
|
+
function _classifyUtilization(percent) {
|
|
10458
|
+
if (percent < 10) return "excellent";
|
|
10459
|
+
if (percent < 30) return "good";
|
|
10460
|
+
if (percent < 50) return "fair";
|
|
10461
|
+
return "poor";
|
|
10462
|
+
}
|
|
10463
|
+
function calculateCreditUtilization(accounts) {
|
|
10464
|
+
if (!Array.isArray(accounts) || accounts.length === 0) {
|
|
10465
|
+
return { error: "accounts must be a non-empty array" };
|
|
10466
|
+
}
|
|
10467
|
+
const round23 = (n) => Math.round(n * 100) / 100;
|
|
10468
|
+
let totalBalance = 0;
|
|
10469
|
+
let totalLimit = 0;
|
|
10470
|
+
const results = [];
|
|
10471
|
+
for (let i = 0; i < accounts.length; i++) {
|
|
10472
|
+
const account = accounts[i];
|
|
10473
|
+
if (typeof account.balance !== "number" || !Number.isFinite(account.balance) || account.balance < 0) {
|
|
10474
|
+
return { error: `account ${i + 1}: balance must be a finite, non-negative number` };
|
|
10475
|
+
}
|
|
10476
|
+
if (typeof account.limit !== "number" || !Number.isFinite(account.limit) || account.limit <= 0) {
|
|
10477
|
+
return { error: `account ${i + 1}: limit must be a finite number greater than zero` };
|
|
10478
|
+
}
|
|
10479
|
+
const utilizationPercent = round23(account.balance / account.limit * 100);
|
|
10480
|
+
totalBalance += account.balance;
|
|
10481
|
+
totalLimit += account.limit;
|
|
10482
|
+
results.push({
|
|
10483
|
+
label: account.label?.trim() || `Account ${i + 1}`,
|
|
10484
|
+
balance: account.balance,
|
|
10485
|
+
limit: account.limit,
|
|
10486
|
+
utilizationPercent,
|
|
10487
|
+
tier: _classifyUtilization(utilizationPercent)
|
|
10488
|
+
});
|
|
10489
|
+
}
|
|
10490
|
+
const overallUtilizationPercent = round23(totalBalance / totalLimit * 100);
|
|
10491
|
+
return {
|
|
10492
|
+
accounts: results,
|
|
10493
|
+
totalBalance: round23(totalBalance),
|
|
10494
|
+
totalLimit: round23(totalLimit),
|
|
10495
|
+
overallUtilizationPercent,
|
|
10496
|
+
overallTier: _classifyUtilization(overallUtilizationPercent)
|
|
10497
|
+
};
|
|
10498
|
+
}
|
|
10408
10499
|
|
|
10409
10500
|
// src/tools/network.ts
|
|
10410
10501
|
var network_exports = {};
|
|
@@ -10416,7 +10507,9 @@ __export(network_exports, {
|
|
|
10416
10507
|
PERMISSIONS_POLICY_FEATURES: () => PERMISSIONS_POLICY_FEATURES,
|
|
10417
10508
|
REFERRER_POLICY_VALUES: () => REFERRER_POLICY_VALUES,
|
|
10418
10509
|
STATUS_CODES: () => STATUS_CODES,
|
|
10510
|
+
X_CONTENT_TYPE_OPTIONS_HEADER: () => X_CONTENT_TYPE_OPTIONS_HEADER,
|
|
10419
10511
|
analyzeEmailHeaders: () => analyzeEmailHeaders,
|
|
10512
|
+
assessContentTypeRisk: () => assessContentTypeRisk,
|
|
10420
10513
|
buildCacheControl: () => buildCacheControl,
|
|
10421
10514
|
buildClientHints: () => buildClientHints,
|
|
10422
10515
|
buildContentDisposition: () => buildContentDisposition,
|
|
@@ -10428,6 +10521,7 @@ __export(network_exports, {
|
|
|
10428
10521
|
buildRangeHeader: () => buildRangeHeader,
|
|
10429
10522
|
buildReferrerPolicy: () => buildReferrerPolicy,
|
|
10430
10523
|
buildVaryHeader: () => buildVaryHeader,
|
|
10524
|
+
buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
|
|
10431
10525
|
checkSetCookieHeader: () => checkSetCookieHeader,
|
|
10432
10526
|
countryCodeToFlag: () => countryCodeToFlag,
|
|
10433
10527
|
formatCoordinates: () => formatCoordinates,
|
|
@@ -10453,6 +10547,7 @@ __export(network_exports, {
|
|
|
10453
10547
|
parsePermissionsPolicy: () => parsePermissionsPolicy,
|
|
10454
10548
|
parseUserAgent: () => parseUserAgent,
|
|
10455
10549
|
parseVaryHeader: () => parseVaryHeader,
|
|
10550
|
+
parseXContentTypeOptionsHeader: () => parseXContentTypeOptionsHeader,
|
|
10456
10551
|
searchHeaders: () => searchHeaders,
|
|
10457
10552
|
searchStatusCodes: () => searchStatusCodes,
|
|
10458
10553
|
splitSitemap: () => splitSitemap,
|
|
@@ -13181,6 +13276,59 @@ function parseContentDisposition(header) {
|
|
|
13181
13276
|
}
|
|
13182
13277
|
return { type, filename, filenameIsExtended, params };
|
|
13183
13278
|
}
|
|
13279
|
+
var X_CONTENT_TYPE_OPTIONS_HEADER = "X-Content-Type-Options: nosniff";
|
|
13280
|
+
function buildXContentTypeOptionsHeader() {
|
|
13281
|
+
return {
|
|
13282
|
+
header: X_CONTENT_TYPE_OPTIONS_HEADER,
|
|
13283
|
+
value: "nosniff",
|
|
13284
|
+
explanation: `Tells the browser to strictly honor the declared Content-Type header instead of "sniffing" a response's bytes to guess its real type. Without it, a browser that decides an oddly-typed response looks like HTML or JavaScript may render or execute it, letting a file that was only ever meant to be downloaded or displayed as plain text be used to run a cross-site scripting attack.`
|
|
13285
|
+
};
|
|
13286
|
+
}
|
|
13287
|
+
function parseXContentTypeOptionsHeader(rawHeader) {
|
|
13288
|
+
if (typeof rawHeader !== "string" || rawHeader.trim() === "") return { error: "Provide a header line or value to check" };
|
|
13289
|
+
const withoutLabel = rawHeader.trim().replace(/^x-content-type-options\s*:\s*/i, "");
|
|
13290
|
+
const value = withoutLabel.trim();
|
|
13291
|
+
if (value.toLowerCase() === "nosniff") {
|
|
13292
|
+
return { raw: value, valid: true, message: "Valid. The browser will not MIME-sniff this response." };
|
|
13293
|
+
}
|
|
13294
|
+
if (value === "") {
|
|
13295
|
+
return { error: 'No value found after "X-Content-Type-Options:"' };
|
|
13296
|
+
}
|
|
13297
|
+
return { raw: value, valid: false, message: `"${value}" is not a recognized value. The only value browsers act on is "nosniff" (case-insensitive); anything else is silently ignored, same as omitting the header.` };
|
|
13298
|
+
}
|
|
13299
|
+
var X_CONTENT_TYPE_EXACT_RISK_TABLE = {
|
|
13300
|
+
"text/plain": { risk: "high", reason: "Browsers historically sniff text/plain responses and may render them as HTML if the body looks like markup, letting user-controlled text (comments, error pages, logs) execute as script." },
|
|
13301
|
+
"application/octet-stream": { risk: "high", reason: "A generic fallback type with no format hint, so browsers are the most likely to sniff its real content and may render it as HTML." },
|
|
13302
|
+
"": { risk: "high", reason: "A missing Content-Type header gives the browser nothing to trust, so it falls back to sniffing the response body entirely." }
|
|
13303
|
+
};
|
|
13304
|
+
var X_CONTENT_TYPE_PREFIX_RISK_TABLE = [
|
|
13305
|
+
{ prefix: "text/html", risk: "medium", reason: "Already interpreted as HTML, so sniffing mostly matters if the type is wrong on purpose; nosniff still protects against a mismatched charset or embedded polyglot content." },
|
|
13306
|
+
{ prefix: "image/", risk: "low", reason: 'Browsers rarely upgrade an image response to HTML, but a crafted "GIFAR"-style polyglot file can still be sniffed as HTML in older engines.' },
|
|
13307
|
+
{ prefix: "audio/", risk: "low", reason: "Media types are rarely reinterpreted as HTML by modern sniffing algorithms." },
|
|
13308
|
+
{ prefix: "video/", risk: "low", reason: "Media types are rarely reinterpreted as HTML by modern sniffing algorithms." },
|
|
13309
|
+
{ prefix: "font/", risk: "low", reason: "Font types are rarely reinterpreted as HTML by modern sniffing algorithms." },
|
|
13310
|
+
{ prefix: "application/pdf", risk: "low", reason: "PDF has a strong magic-number signature, so sniffing rarely reclassifies it, though nosniff is still worth setting for user-uploaded PDFs." },
|
|
13311
|
+
{ prefix: "application/json", risk: "medium", reason: "Structurally distinct from HTML, but user-controlled JSONP-style responses served with a wrong or missing type have been used in real sniffing attacks." },
|
|
13312
|
+
{ prefix: "application/javascript", risk: "medium", reason: "Already executable; nosniff mainly protects against it being served where a script tag was not expected, such as inside an <img> or <object> tag." },
|
|
13313
|
+
{ prefix: "application/xml", risk: "medium", reason: "XML can be reinterpreted in ways that overlap with HTML/XHTML parsing in some legacy sniffing paths." }
|
|
13314
|
+
];
|
|
13315
|
+
function assessContentTypeRisk(contentType) {
|
|
13316
|
+
if (typeof contentType !== "string") return { error: "contentType must be a string" };
|
|
13317
|
+
const normalized = contentType.trim().toLowerCase().split(";")[0].trim();
|
|
13318
|
+
if (normalized in X_CONTENT_TYPE_EXACT_RISK_TABLE) {
|
|
13319
|
+
const entry = X_CONTENT_TYPE_EXACT_RISK_TABLE[normalized];
|
|
13320
|
+
return { contentType: contentType.trim() || "(empty)", risk: entry.risk, reason: entry.reason };
|
|
13321
|
+
}
|
|
13322
|
+
const prefixMatch = X_CONTENT_TYPE_PREFIX_RISK_TABLE.find((e) => normalized.startsWith(e.prefix));
|
|
13323
|
+
if (prefixMatch) {
|
|
13324
|
+
return { contentType: contentType.trim(), risk: prefixMatch.risk, reason: prefixMatch.reason };
|
|
13325
|
+
}
|
|
13326
|
+
return {
|
|
13327
|
+
contentType: contentType.trim(),
|
|
13328
|
+
risk: "medium",
|
|
13329
|
+
reason: "Not a well-known type in this tool's lookup table. Treat any response type as sniffable unless you've confirmed the serving browser trusts it, and set nosniff regardless of type as a baseline defense."
|
|
13330
|
+
};
|
|
13331
|
+
}
|
|
13184
13332
|
|
|
13185
13333
|
// src/tools/api.ts
|
|
13186
13334
|
var api_exports = {};
|
|
@@ -14546,6 +14694,7 @@ __export(code_exports, {
|
|
|
14546
14694
|
testRegex: () => testRegex,
|
|
14547
14695
|
validateEditorConfig: () => validateEditorConfig,
|
|
14548
14696
|
validateEnvKey: () => validateEnvKey2,
|
|
14697
|
+
validatePackageExports: () => validatePackageExports,
|
|
14549
14698
|
validateTsconfig: () => validateTsconfig
|
|
14550
14699
|
});
|
|
14551
14700
|
var ALL_FLAGS = ["g", "i", "m", "s", "u"];
|
|
@@ -17765,6 +17914,123 @@ function validateTsconfig(text) {
|
|
|
17765
17914
|
const valid = !issues.some((i) => i.severity === "error");
|
|
17766
17915
|
return { parsed: true, topLevelKeys, compilerOptionKeys, issues, valid };
|
|
17767
17916
|
}
|
|
17917
|
+
function collectExportsStringLeaves(value, out = []) {
|
|
17918
|
+
if (typeof value === "string") out.push(value);
|
|
17919
|
+
else if (Array.isArray(value)) value.forEach((v) => collectExportsStringLeaves(v, out));
|
|
17920
|
+
else if (value && typeof value === "object") Object.values(value).forEach((v) => collectExportsStringLeaves(v, out));
|
|
17921
|
+
return out;
|
|
17922
|
+
}
|
|
17923
|
+
function checkExportsPatternMatch(key, value, path, issues) {
|
|
17924
|
+
const keyHasStar = key.includes("*");
|
|
17925
|
+
const leaves = collectExportsStringLeaves(value);
|
|
17926
|
+
if (keyHasStar) {
|
|
17927
|
+
const bad = leaves.filter((l) => !l.includes("*"));
|
|
17928
|
+
if (bad.length > 0) {
|
|
17929
|
+
issues.push({ severity: "error", path, message: `pattern key "${key}" contains "*" but target ${bad.map((l) => `"${l}"`).join(", ")} has no "*" to receive the matched text` });
|
|
17930
|
+
}
|
|
17931
|
+
} else {
|
|
17932
|
+
const bad = leaves.filter((l) => l.includes("*"));
|
|
17933
|
+
if (bad.length > 0) {
|
|
17934
|
+
issues.push({ severity: "error", path, message: `target ${bad.map((l) => `"${l}"`).join(", ")} contains "*" but key "${key}" has no "*" pattern to match against` });
|
|
17935
|
+
}
|
|
17936
|
+
}
|
|
17937
|
+
}
|
|
17938
|
+
function validateExportsValue(value, path, issues) {
|
|
17939
|
+
if (value === null) return;
|
|
17940
|
+
if (typeof value === "string") {
|
|
17941
|
+
if (!value.startsWith("./")) {
|
|
17942
|
+
issues.push({ severity: "error", path, message: `target "${value}" must start with "./"` });
|
|
17943
|
+
}
|
|
17944
|
+
return;
|
|
17945
|
+
}
|
|
17946
|
+
if (Array.isArray(value)) {
|
|
17947
|
+
if (value.length === 0) {
|
|
17948
|
+
issues.push({ severity: "warning", path, message: "empty fallback array will never resolve" });
|
|
17949
|
+
}
|
|
17950
|
+
value.forEach((v, i) => validateExportsValue(v, `${path}[${i}]`, issues));
|
|
17951
|
+
return;
|
|
17952
|
+
}
|
|
17953
|
+
if (typeof value === "object") {
|
|
17954
|
+
const obj = value;
|
|
17955
|
+
const keys = Object.keys(obj);
|
|
17956
|
+
if (keys.length === 0) {
|
|
17957
|
+
issues.push({ severity: "warning", path, message: "empty object will never resolve" });
|
|
17958
|
+
return;
|
|
17959
|
+
}
|
|
17960
|
+
const hasDotKeys = keys.some((k) => k.startsWith("."));
|
|
17961
|
+
const hasNonDotKeys = keys.some((k) => !k.startsWith("."));
|
|
17962
|
+
if (hasDotKeys && hasNonDotKeys) {
|
|
17963
|
+
issues.push({ severity: "error", path, message: 'cannot mix subpath keys (starting with ".") with condition keys in the same object' });
|
|
17964
|
+
return;
|
|
17965
|
+
}
|
|
17966
|
+
if (hasDotKeys) {
|
|
17967
|
+
for (const key of keys) {
|
|
17968
|
+
const subpath = `${path}["${key}"]`;
|
|
17969
|
+
if (key !== "." && !key.startsWith("./")) {
|
|
17970
|
+
issues.push({ severity: "error", path: subpath, message: `subpath key "${key}" must be "." or start with "./"` });
|
|
17971
|
+
}
|
|
17972
|
+
checkExportsPatternMatch(key, obj[key], subpath, issues);
|
|
17973
|
+
validateExportsValue(obj[key], subpath, issues);
|
|
17974
|
+
}
|
|
17975
|
+
return;
|
|
17976
|
+
}
|
|
17977
|
+
if (keys.includes("types") && keys[0] !== "types") {
|
|
17978
|
+
issues.push({ severity: "warning", path, message: '"types" condition should be listed first so TypeScript resolves it before any other condition matches' });
|
|
17979
|
+
}
|
|
17980
|
+
if (keys.includes("default") && keys[keys.length - 1] !== "default") {
|
|
17981
|
+
issues.push({ severity: "warning", path, message: '"default" condition should be listed last; conditions are matched in order and anything after "default" is unreachable' });
|
|
17982
|
+
}
|
|
17983
|
+
if ((keys.includes("import") || keys.includes("require")) && !keys.includes("default")) {
|
|
17984
|
+
issues.push({ severity: "warning", path, message: 'no "default" fallback condition; resolution fails for any importer using a condition not listed here' });
|
|
17985
|
+
}
|
|
17986
|
+
const requireVal = obj.require;
|
|
17987
|
+
if (typeof requireVal === "string" && requireVal.endsWith(".mjs")) {
|
|
17988
|
+
issues.push({ severity: "error", path: `${path}.require`, message: `"require" condition points to a .mjs file ("${requireVal}"), but .mjs is always treated as ESM and cannot be required` });
|
|
17989
|
+
}
|
|
17990
|
+
const importVal = obj.import;
|
|
17991
|
+
if (typeof importVal === "string" && importVal.endsWith(".cjs")) {
|
|
17992
|
+
issues.push({ severity: "error", path: `${path}.import`, message: `"import" condition points to a .cjs file ("${importVal}"), but .cjs is always treated as CommonJS and cannot be imported as ESM` });
|
|
17993
|
+
}
|
|
17994
|
+
for (const key of keys) {
|
|
17995
|
+
validateExportsValue(obj[key], `${path}.${key}`, issues);
|
|
17996
|
+
}
|
|
17997
|
+
return;
|
|
17998
|
+
}
|
|
17999
|
+
issues.push({ severity: "error", path, message: `unexpected value type at "${path}"` });
|
|
18000
|
+
}
|
|
18001
|
+
function validatePackageExports(packageJsonText) {
|
|
18002
|
+
if (!packageJsonText || !packageJsonText.trim()) return { error: "Input is empty" };
|
|
18003
|
+
let parsed;
|
|
18004
|
+
try {
|
|
18005
|
+
parsed = JSON.parse(packageJsonText);
|
|
18006
|
+
} catch (e) {
|
|
18007
|
+
return { error: `Invalid JSON: ${e.message}` };
|
|
18008
|
+
}
|
|
18009
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
18010
|
+
return { error: "Root of package.json must be an object" };
|
|
18011
|
+
}
|
|
18012
|
+
const obj = parsed;
|
|
18013
|
+
if (!("exports" in obj)) return { error: 'package.json has no "exports" field' };
|
|
18014
|
+
const exportsValue = obj.exports;
|
|
18015
|
+
const issues = [];
|
|
18016
|
+
let exportsShape;
|
|
18017
|
+
if (exportsValue === null) {
|
|
18018
|
+
exportsShape = "null";
|
|
18019
|
+
} else if (typeof exportsValue === "string") {
|
|
18020
|
+
exportsShape = "string";
|
|
18021
|
+
} else if (Array.isArray(exportsValue)) {
|
|
18022
|
+
exportsShape = "array";
|
|
18023
|
+
} else if (typeof exportsValue === "object") {
|
|
18024
|
+
const keys = Object.keys(exportsValue);
|
|
18025
|
+
exportsShape = keys.some((k) => k.startsWith(".")) ? "subpaths" : "conditions";
|
|
18026
|
+
} else {
|
|
18027
|
+
return { error: '"exports" must be a string, array, object, or null' };
|
|
18028
|
+
}
|
|
18029
|
+
validateExportsValue(exportsValue, "exports", issues);
|
|
18030
|
+
const subpaths = exportsShape === "subpaths" ? Object.keys(exportsValue) : ["."];
|
|
18031
|
+
const valid = !issues.some((i) => i.severity === "error");
|
|
18032
|
+
return { parsed: true, exportsShape, subpaths, issues, valid };
|
|
18033
|
+
}
|
|
17768
18034
|
|
|
17769
18035
|
// src/tools/color.ts
|
|
17770
18036
|
var color_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +2,13 @@ export { j as json } from './json-Ta9JykSB.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-DWUcY8H1.cjs';
|
|
5
|
-
export { d as data } from './data-
|
|
5
|
+
export { d as data } from './data-CupeugaR.cjs';
|
|
6
6
|
export { g as generators } from './generators-Du8cBesn.cjs';
|
|
7
7
|
export { t as time } from './time-KqJjdqII.cjs';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-p-1Ikx7l.cjs';
|
|
9
|
+
export { n as network } from './network-C6IcHeMB.cjs';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.cjs';
|
|
11
|
-
export { c as code } from './code-
|
|
11
|
+
export { c as code } from './code-rxidGgvB.cjs';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.cjs';
|
|
13
13
|
export { c as css } from './css-Cf7AMGM-.cjs';
|
|
14
14
|
export { m as misc } from './misc-CA3N198T.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ export { j as json } from './json-Ta9JykSB.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-DWUcY8H1.js';
|
|
5
|
-
export { d as data } from './data-
|
|
5
|
+
export { d as data } from './data-CupeugaR.js';
|
|
6
6
|
export { g as generators } from './generators-Du8cBesn.js';
|
|
7
7
|
export { t as time } from './time-KqJjdqII.js';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-p-1Ikx7l.js';
|
|
9
|
+
export { n as network } from './network-C6IcHeMB.js';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.js';
|
|
11
|
-
export { c as code } from './code-
|
|
11
|
+
export { c as code } from './code-rxidGgvB.js';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.js';
|
|
13
13
|
export { c as css } from './css-Cf7AMGM-.js';
|
|
14
14
|
export { m as misc } from './misc-CA3N198T.js';
|