@utilix-tech/sdk 0.62.0 → 0.64.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 +26 -5
- package/dist/{chunk-43WFN3CW.js → chunk-4HNHEOJL.js} +123 -1
- package/dist/{chunk-43L7H3L2.js → chunk-IANBS5Y3.js} +51 -1
- package/dist/{chunk-JW4NG2GN.js → chunk-JPFHEZ4P.js} +92 -1
- package/dist/{code-rxidGgvB.d.ts → code-CKI2Z_NM.d.cts} +49 -2
- package/dist/{code-rxidGgvB.d.cts → code-CKI2Z_NM.d.ts} +49 -2
- package/dist/index.cjs +263 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{network-DewFJy4E.d.ts → network-DZTfMAk0.d.cts} +32 -2
- package/dist/{network-DewFJy4E.d.cts → network-DZTfMAk0.d.ts} +32 -2
- package/dist/tools/code.cjs +91 -0
- package/dist/tools/code.d.cts +1 -1
- package/dist/tools/code.d.ts +1 -1
- package/dist/tools/code.js +1 -1
- package/dist/tools/network.cjs +50 -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 +122 -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-izyUpUAb.d.ts → units-DPefgzmH.d.cts} +78 -2
- package/dist/{units-izyUpUAb.d.cts → units-DPefgzmH.d.ts} +78 -2
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
* - editorconfig-validator (validateEditorConfig)
|
|
26
26
|
* - tsconfig-validator (validateTsconfig)
|
|
27
27
|
* - package-json-exports-validator (validatePackageExports)
|
|
28
|
+
* - package-json-dependency-auditor (auditDependencyRanges)
|
|
28
29
|
*/
|
|
29
30
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u';
|
|
30
31
|
declare const ALL_FLAGS: RegexFlag[];
|
|
@@ -471,6 +472,45 @@ interface ExportsValidationResult {
|
|
|
471
472
|
declare function validatePackageExports(packageJsonText: string): ExportsValidationResult | {
|
|
472
473
|
error: string;
|
|
473
474
|
};
|
|
475
|
+
type DependencyRangeType = 'exact' | 'caret' | 'tilde' | 'range' | 'wildcard' | 'tag' | 'git' | 'url' | 'file' | 'link' | 'workspace' | 'unknown';
|
|
476
|
+
type DependencySection = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'optionalDependencies';
|
|
477
|
+
interface DependencyAuditEntry {
|
|
478
|
+
name: string;
|
|
479
|
+
version: string;
|
|
480
|
+
section: DependencySection;
|
|
481
|
+
rangeType: DependencyRangeType;
|
|
482
|
+
issues: string[];
|
|
483
|
+
}
|
|
484
|
+
interface DependencyAuditIssue {
|
|
485
|
+
severity: 'error' | 'warning';
|
|
486
|
+
name: string;
|
|
487
|
+
message: string;
|
|
488
|
+
}
|
|
489
|
+
interface DependencyAuditDuplicate {
|
|
490
|
+
name: string;
|
|
491
|
+
sections: DependencySection[];
|
|
492
|
+
sameVersion: boolean;
|
|
493
|
+
}
|
|
494
|
+
interface DependencyAuditResult {
|
|
495
|
+
parsed: true;
|
|
496
|
+
sections: DependencySection[];
|
|
497
|
+
totalDependencies: number;
|
|
498
|
+
dependencies: DependencyAuditEntry[];
|
|
499
|
+
duplicates: DependencyAuditDuplicate[];
|
|
500
|
+
rangeTypeCounts: Partial<Record<DependencyRangeType, number>>;
|
|
501
|
+
issues: DependencyAuditIssue[];
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Parse a package.json's dependencies, devDependencies, peerDependencies,
|
|
505
|
+
* and optionalDependencies fields, classify each version specifier's range
|
|
506
|
+
* type, and flag common risks: wildcard/"*" ranges with no real constraint,
|
|
507
|
+
* the non-reproducible "latest" tag, git/URL/file/link dependencies that
|
|
508
|
+
* bypass the registry, and the same package listed in more than one section
|
|
509
|
+
* (a conflict if the ranges differ, redundant if they match).
|
|
510
|
+
*/
|
|
511
|
+
declare function auditDependencyRanges(packageJsonText: string): DependencyAuditResult | {
|
|
512
|
+
error: string;
|
|
513
|
+
};
|
|
474
514
|
|
|
475
515
|
declare const code_ALL_FLAGS: typeof ALL_FLAGS;
|
|
476
516
|
type code_ApiEndpoint = ApiEndpoint;
|
|
@@ -485,6 +525,12 @@ type code_ConventionalCommitResult = ConventionalCommitResult;
|
|
|
485
525
|
type code_ConventionalCommitSeverity = ConventionalCommitSeverity;
|
|
486
526
|
type code_CssResult = CssResult;
|
|
487
527
|
declare const code_DEFAULT_COMMIT_TYPES: typeof DEFAULT_COMMIT_TYPES;
|
|
528
|
+
type code_DependencyAuditDuplicate = DependencyAuditDuplicate;
|
|
529
|
+
type code_DependencyAuditEntry = DependencyAuditEntry;
|
|
530
|
+
type code_DependencyAuditIssue = DependencyAuditIssue;
|
|
531
|
+
type code_DependencyAuditResult = DependencyAuditResult;
|
|
532
|
+
type code_DependencyRangeType = DependencyRangeType;
|
|
533
|
+
type code_DependencySection = DependencySection;
|
|
488
534
|
type code_DockerImageRef = DockerImageRef;
|
|
489
535
|
type code_EditorConfigIssue = EditorConfigIssue;
|
|
490
536
|
type code_EditorConfigProperty = EditorConfigProperty;
|
|
@@ -529,6 +575,7 @@ type code_SqlFormatOptions = SqlFormatOptions;
|
|
|
529
575
|
type code_TestPatternResult = TestPatternResult;
|
|
530
576
|
type code_TsconfigIssue = TsconfigIssue;
|
|
531
577
|
type code_TsconfigValidationResult = TsconfigValidationResult;
|
|
578
|
+
declare const code_auditDependencyRanges: typeof auditDependencyRanges;
|
|
532
579
|
declare const code_buildDockerPull: typeof buildDockerPull;
|
|
533
580
|
declare const code_buildDockerRun: typeof buildDockerRun;
|
|
534
581
|
declare const code_buildGitCommand: typeof buildGitCommand;
|
|
@@ -579,7 +626,7 @@ declare const code_validateEnvKey: typeof validateEnvKey;
|
|
|
579
626
|
declare const code_validatePackageExports: typeof validatePackageExports;
|
|
580
627
|
declare const code_validateTsconfig: typeof validateTsconfig;
|
|
581
628
|
declare namespace code {
|
|
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 };
|
|
629
|
+
export { code_ALL_FLAGS as ALL_FLAGS, type code_ApiEndpoint as ApiEndpoint, type code_ApiInfo as ApiInfo, code_CHEATSHEET as CHEATSHEET, type code_CheatsheetEntry as CheatsheetEntry, type code_ConventionalCommitFinding as ConventionalCommitFinding, type code_ConventionalCommitFooter as ConventionalCommitFooter, type code_ConventionalCommitOptions as ConventionalCommitOptions, type code_ConventionalCommitParsed as ConventionalCommitParsed, type code_ConventionalCommitResult as ConventionalCommitResult, type code_ConventionalCommitSeverity as ConventionalCommitSeverity, type code_CssResult as CssResult, code_DEFAULT_COMMIT_TYPES as DEFAULT_COMMIT_TYPES, type code_DependencyAuditDuplicate as DependencyAuditDuplicate, type code_DependencyAuditEntry as DependencyAuditEntry, type code_DependencyAuditIssue as DependencyAuditIssue, type code_DependencyAuditResult as DependencyAuditResult, type code_DependencyRangeType as DependencyRangeType, type code_DependencySection as DependencySection, type code_DockerImageRef as DockerImageRef, type code_EditorConfigIssue as EditorConfigIssue, type code_EditorConfigProperty as EditorConfigProperty, type code_EditorConfigSection as EditorConfigSection, type code_EditorConfigValidationResult as EditorConfigValidationResult, type code_EnvEntry as EnvEntry, type code_EnvParseResult as EnvParseResult, type code_ExportsIssue as ExportsIssue, type code_ExportsShape as ExportsShape, type code_ExportsValidationResult as ExportsValidationResult, type code_GitCommandConfig as GitCommandConfig, type code_GitCommandResult as GitCommandResult, type code_GitOperation as GitOperation, type code_GithubUrlInfo as GithubUrlInfo, type code_GithubUrlType as GithubUrlType, type code_GitignoreTestResult as GitignoreTestResult, type code_GqlFormatResult as GqlFormatResult, type code_HtmlFormatResult as HtmlFormatResult, type code_HtmlMinifyOptions as HtmlMinifyOptions, type code_HtmlMinifyResult as HtmlMinifyResult, type code_JsMinifyOptions as JsMinifyOptions, type code_JsMinifyResult as JsMinifyResult, code_MIME_TABLE as MIME_TABLE, type code_MatchResult as MatchResult, type code_MimeEntry as MimeEntry, type code_MimeLookupResult as MimeLookupResult, code_OPERATIONS as OPERATIONS, type code_ParsedSpec as ParsedSpec, type code_RedosFinding as RedosFinding, type code_RedosResult as RedosResult, type code_RedosSeverity as RedosSeverity, type code_RegexError as RegexError, type code_RegexFlag as RegexFlag, type code_RegexMatch as RegexMatch, type code_RegexResult as RegexResult, type code_RegexSuccess as RegexSuccess, code_SQL_DEFAULT_OPTIONS as SQL_DEFAULT_OPTIONS, type code_Segment as Segment, type code_SpecVersion as SpecVersion, type code_SqlDialect as SqlDialect, type code_SqlFormatOptions as SqlFormatOptions, type code_TestPatternResult as TestPatternResult, type code_TsconfigIssue as TsconfigIssue, type code_TsconfigValidationResult as TsconfigValidationResult, code_auditDependencyRanges as auditDependencyRanges, code_buildDockerPull as buildDockerPull, code_buildDockerRun as buildDockerRun, code_buildGitCommand as buildGitCommand, code_collapseHtmlWhitespace as collapseHtmlWhitespace, code_collapseJsWhitespace as collapseJsWhitespace, code_countProperties as countProperties, code_countRules as countRules, code_detectDialect as detectDialect, code_detectOperationType as detectOperationType, code_detectRedos as detectRedos, code_envToExport as envToExport, code_envToJson as envToJson, code_formatCss as formatCss, code_formatGql as formatGql, code_formatHtml as formatHtml, code_formatSql as formatSql, code_getEndpointsByTag as getEndpointsByTag, code_getHtmlStats as getHtmlStats, code_getJsStats as getJsStats, code_getMethodColor as getMethodColor, code_isValidTag as isValidTag, code_lintConventionalCommit as lintConventionalCommit, code_lookupMime as lookupMime, code_minifyCss as minifyCss, code_minifyGql as minifyGql, code_minifyHtml as minifyHtml, code_minifyJs as minifyJs, code_minifySql as minifySql, code_normalizeRef as normalizeRef, code_parseDockerImage as parseDockerImage, code_parseEnv as parseEnv, code_parseGitCommand as parseGitCommand, code_parseGithubUrl as parseGithubUrl, code_parseSpec as parseSpec, code_removeConsoleCalls as removeConsoleCalls, code_removeEmptyAttributes as removeEmptyAttributes, code_removeHtmlComments as removeHtmlComments, code_removeJsComments as removeJsComments, code_removeRedundantAttributes as removeRedundantAttributes, code_searchCheatsheet as searchCheatsheet, code_searchEndpoints as searchEndpoints, code_splitStatements as splitStatements, code_testGitignorePatterns as testGitignorePatterns, code_testPattern as testPattern, code_testRegex as testRegex, code_validateEditorConfig as validateEditorConfig, code_validateEnvKey as validateEnvKey, code_validatePackageExports as validatePackageExports, code_validateTsconfig as validateTsconfig };
|
|
583
630
|
}
|
|
584
631
|
|
|
585
|
-
export { type
|
|
632
|
+
export { type RegexMatch as $, ALL_FLAGS as A, type GitCommandResult as B, CHEATSHEET as C, DEFAULT_COMMIT_TYPES as D, type EditorConfigIssue as E, type GitOperation as F, type GitCommandConfig as G, type GithubUrlInfo as H, type GithubUrlType as I, type GitignoreTestResult as J, type GqlFormatResult as K, type HtmlFormatResult as L, type HtmlMinifyOptions as M, type HtmlMinifyResult as N, type JsMinifyOptions as O, type JsMinifyResult as P, MIME_TABLE as Q, type MatchResult as R, type MimeEntry as S, type MimeLookupResult as T, OPERATIONS as U, type ParsedSpec as V, type RedosFinding as W, type RedosResult as X, type RedosSeverity as Y, type RegexError as Z, type RegexFlag as _, type ApiEndpoint as a, type RegexResult as a0, type RegexSuccess as a1, SQL_DEFAULT_OPTIONS as a2, type Segment as a3, type SpecVersion as a4, type SqlDialect as a5, type SqlFormatOptions as a6, type TestPatternResult as a7, type TsconfigIssue as a8, type TsconfigValidationResult as a9, minifyHtml as aA, minifyJs as aB, minifySql as aC, normalizeRef as aD, parseDockerImage as aE, parseEnv as aF, parseGitCommand as aG, parseGithubUrl as aH, parseSpec as aI, removeConsoleCalls as aJ, removeEmptyAttributes as aK, removeHtmlComments as aL, removeJsComments as aM, removeRedundantAttributes as aN, searchCheatsheet as aO, searchEndpoints as aP, splitStatements as aQ, testGitignorePatterns as aR, testPattern as aS, testRegex as aT, validateEditorConfig as aU, validateEnvKey as aV, validatePackageExports as aW, validateTsconfig as aX, auditDependencyRanges as aa, buildDockerPull as ab, buildDockerRun as ac, buildGitCommand as ad, collapseHtmlWhitespace as ae, collapseJsWhitespace as af, countProperties as ag, countRules as ah, detectDialect as ai, detectOperationType as aj, detectRedos as ak, envToExport as al, envToJson as am, formatCss as an, formatGql as ao, formatHtml as ap, formatSql as aq, getEndpointsByTag as ar, getHtmlStats as as, getJsStats as at, getMethodColor as au, isValidTag as av, lintConventionalCommit as aw, lookupMime as ax, minifyCss as ay, minifyGql 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 DependencyAuditDuplicate as l, type DependencyAuditEntry as m, type DependencyAuditIssue as n, type DependencyAuditResult as o, type DependencyRangeType as p, type DependencySection as q, type DockerImageRef as r, type EditorConfigProperty as s, type EditorConfigSection as t, type EditorConfigValidationResult as u, type EnvEntry as v, type EnvParseResult as w, type ExportsIssue as x, type ExportsShape as y, type ExportsValidationResult as z };
|
package/dist/index.cjs
CHANGED
|
@@ -8435,6 +8435,7 @@ __export(units_exports, {
|
|
|
8435
8435
|
calculateFreelancerRate: () => calculateFreelancerRate,
|
|
8436
8436
|
calculateGpa: () => calculateGpa,
|
|
8437
8437
|
calculateLoan: () => calculateLoan,
|
|
8438
|
+
calculateLoanRefinance: () => calculateLoanRefinance,
|
|
8438
8439
|
calculateMarginMarkup: () => calculateMarginMarkup,
|
|
8439
8440
|
calculateMovingAverages: () => calculateMovingAverages,
|
|
8440
8441
|
calculatePaybackPeriod: () => calculatePaybackPeriod,
|
|
@@ -8485,6 +8486,7 @@ __export(units_exports, {
|
|
|
8485
8486
|
permissionsToChmod: () => permissionsToChmod,
|
|
8486
8487
|
permissionsToOctal: () => permissionsToOctal,
|
|
8487
8488
|
permissionsToSymbolic: () => permissionsToSymbolic,
|
|
8489
|
+
planDebtPayoff: () => planDebtPayoff,
|
|
8488
8490
|
ptToPx: () => ptToPx,
|
|
8489
8491
|
pxToAll: () => pxToAll,
|
|
8490
8492
|
pxToViewport: () => pxToViewport,
|
|
@@ -10779,6 +10781,126 @@ function calculateFreelancerRate(input) {
|
|
|
10779
10781
|
monthlyRevenueTarget: round23(requiredAnnualRevenue / 12)
|
|
10780
10782
|
};
|
|
10781
10783
|
}
|
|
10784
|
+
var DEBT_PAYOFF_MAX_MONTHS = 1200;
|
|
10785
|
+
function _simulateDebtPayoff(debts, order, extraMonthlyPayment) {
|
|
10786
|
+
const round23 = (n) => Math.round(n * 100) / 100;
|
|
10787
|
+
const balances = debts.map((d) => d.balance);
|
|
10788
|
+
const totalMinPayment = debts.reduce((sum, d) => sum + d.minPayment, 0);
|
|
10789
|
+
const totalBudget = totalMinPayment + extraMonthlyPayment;
|
|
10790
|
+
let totalInterestPaid = 0;
|
|
10791
|
+
let totalPaid = 0;
|
|
10792
|
+
const schedule = [];
|
|
10793
|
+
let month = 0;
|
|
10794
|
+
while (balances.some((b) => b > 5e-3) && month < DEBT_PAYOFF_MAX_MONTHS) {
|
|
10795
|
+
month++;
|
|
10796
|
+
for (let i = 0; i < balances.length; i++) {
|
|
10797
|
+
if (balances[i] <= 0) continue;
|
|
10798
|
+
const interest = balances[i] * debts[i].ratePercent / 100 / 12;
|
|
10799
|
+
balances[i] += interest;
|
|
10800
|
+
totalInterestPaid += interest;
|
|
10801
|
+
}
|
|
10802
|
+
let remainingBudget = totalBudget;
|
|
10803
|
+
for (let i = 0; i < balances.length; i++) {
|
|
10804
|
+
if (balances[i] <= 0) continue;
|
|
10805
|
+
const pay = Math.min(balances[i], debts[i].minPayment);
|
|
10806
|
+
balances[i] -= pay;
|
|
10807
|
+
remainingBudget -= pay;
|
|
10808
|
+
totalPaid += pay;
|
|
10809
|
+
}
|
|
10810
|
+
for (const i of order) {
|
|
10811
|
+
if (remainingBudget <= 0) break;
|
|
10812
|
+
if (balances[i] <= 0) continue;
|
|
10813
|
+
const pay = Math.min(balances[i], remainingBudget);
|
|
10814
|
+
balances[i] -= pay;
|
|
10815
|
+
remainingBudget -= pay;
|
|
10816
|
+
totalPaid += pay;
|
|
10817
|
+
}
|
|
10818
|
+
for (const i of order) {
|
|
10819
|
+
if (balances[i] <= 5e-3 && !schedule.some((s) => s.label === debts[i].label)) {
|
|
10820
|
+
schedule.push({ label: debts[i].label, monthPaidOff: month });
|
|
10821
|
+
}
|
|
10822
|
+
}
|
|
10823
|
+
}
|
|
10824
|
+
if (balances.some((b) => b > 5e-3)) return null;
|
|
10825
|
+
return {
|
|
10826
|
+
order: order.map((i) => debts[i].label),
|
|
10827
|
+
monthsToPayoff: month,
|
|
10828
|
+
totalInterestPaid: round23(totalInterestPaid),
|
|
10829
|
+
totalPaid: round23(totalPaid),
|
|
10830
|
+
schedule
|
|
10831
|
+
};
|
|
10832
|
+
}
|
|
10833
|
+
function planDebtPayoff(debts, extraMonthlyPayment = 0) {
|
|
10834
|
+
if (!Array.isArray(debts) || debts.length === 0) {
|
|
10835
|
+
return { error: "debts must be a non-empty array" };
|
|
10836
|
+
}
|
|
10837
|
+
if (!Number.isFinite(extraMonthlyPayment) || extraMonthlyPayment < 0) {
|
|
10838
|
+
return { error: "extraMonthlyPayment must be a finite, non-negative number" };
|
|
10839
|
+
}
|
|
10840
|
+
const normalized = [];
|
|
10841
|
+
for (let i = 0; i < debts.length; i++) {
|
|
10842
|
+
const d = debts[i];
|
|
10843
|
+
if (typeof d.balance !== "number" || !Number.isFinite(d.balance) || d.balance <= 0) {
|
|
10844
|
+
return { error: `debt ${i + 1}: balance must be a finite number greater than zero` };
|
|
10845
|
+
}
|
|
10846
|
+
if (typeof d.ratePercent !== "number" || !Number.isFinite(d.ratePercent) || d.ratePercent < 0) {
|
|
10847
|
+
return { error: `debt ${i + 1}: ratePercent must be a finite, non-negative number` };
|
|
10848
|
+
}
|
|
10849
|
+
if (typeof d.minPayment !== "number" || !Number.isFinite(d.minPayment) || d.minPayment <= 0) {
|
|
10850
|
+
return { error: `debt ${i + 1}: minPayment must be a finite number greater than zero` };
|
|
10851
|
+
}
|
|
10852
|
+
normalized.push({
|
|
10853
|
+
label: d.label?.trim() || `Debt ${i + 1}`,
|
|
10854
|
+
balance: d.balance,
|
|
10855
|
+
ratePercent: d.ratePercent,
|
|
10856
|
+
minPayment: d.minPayment
|
|
10857
|
+
});
|
|
10858
|
+
}
|
|
10859
|
+
const snowballOrder = normalized.map((_, i) => i).sort((a, b) => normalized[a].balance - normalized[b].balance);
|
|
10860
|
+
const avalancheOrder = normalized.map((_, i) => i).sort((a, b) => normalized[b].ratePercent - normalized[a].ratePercent);
|
|
10861
|
+
const snowball = _simulateDebtPayoff(normalized, snowballOrder, extraMonthlyPayment);
|
|
10862
|
+
const avalanche = _simulateDebtPayoff(normalized, avalancheOrder, extraMonthlyPayment);
|
|
10863
|
+
if (!snowball || !avalanche) {
|
|
10864
|
+
return { error: `debts cannot be paid off within ${DEBT_PAYOFF_MAX_MONTHS} months at this payment level; increase a minimum payment or the extra monthly payment` };
|
|
10865
|
+
}
|
|
10866
|
+
const round23 = (n) => Math.round(n * 100) / 100;
|
|
10867
|
+
const monthsDifference = Math.abs(snowball.monthsToPayoff - avalanche.monthsToPayoff);
|
|
10868
|
+
const interestDifference = round23(Math.abs(snowball.totalInterestPaid - avalanche.totalInterestPaid));
|
|
10869
|
+
return {
|
|
10870
|
+
debts: normalized,
|
|
10871
|
+
totalMonthlyBudget: round23(normalized.reduce((sum, d) => sum + d.minPayment, 0) + extraMonthlyPayment),
|
|
10872
|
+
extraMonthlyPayment,
|
|
10873
|
+
snowball,
|
|
10874
|
+
avalanche,
|
|
10875
|
+
comparison: {
|
|
10876
|
+
fasterStrategy: snowball.monthsToPayoff === avalanche.monthsToPayoff ? "tie" : snowball.monthsToPayoff < avalanche.monthsToPayoff ? "snowball" : "avalanche",
|
|
10877
|
+
monthsDifference,
|
|
10878
|
+
cheaperStrategy: snowball.totalInterestPaid === avalanche.totalInterestPaid ? "tie" : snowball.totalInterestPaid < avalanche.totalInterestPaid ? "snowball" : "avalanche",
|
|
10879
|
+
interestDifference
|
|
10880
|
+
}
|
|
10881
|
+
};
|
|
10882
|
+
}
|
|
10883
|
+
function calculateLoanRefinance(currentBalance, currentRatePercent, currentRemainingMonths, newRatePercent, newTermMonths, closingCosts) {
|
|
10884
|
+
const current = calculateLoan(currentBalance, currentRatePercent, currentRemainingMonths);
|
|
10885
|
+
if ("error" in current) return current;
|
|
10886
|
+
const refinanced = calculateLoan(currentBalance, newRatePercent, newTermMonths);
|
|
10887
|
+
if ("error" in refinanced) return refinanced;
|
|
10888
|
+
if (!Number.isFinite(closingCosts) || closingCosts < 0) {
|
|
10889
|
+
return { error: "Closing costs must be zero or a positive number" };
|
|
10890
|
+
}
|
|
10891
|
+
const monthlySavings = round2(current.monthlyPayment - refinanced.monthlyPayment);
|
|
10892
|
+
const breakEvenMonths = monthlySavings > 0 ? Math.ceil(closingCosts / monthlySavings) : null;
|
|
10893
|
+
return {
|
|
10894
|
+
currentMonthlyPayment: current.monthlyPayment,
|
|
10895
|
+
newMonthlyPayment: refinanced.monthlyPayment,
|
|
10896
|
+
monthlySavings,
|
|
10897
|
+
closingCosts: round2(closingCosts),
|
|
10898
|
+
breakEvenMonths,
|
|
10899
|
+
currentTotalInterest: current.totalInterest,
|
|
10900
|
+
newTotalInterest: refinanced.totalInterest,
|
|
10901
|
+
totalInterestSavings: round2(current.totalInterest - refinanced.totalInterest)
|
|
10902
|
+
};
|
|
10903
|
+
}
|
|
10782
10904
|
|
|
10783
10905
|
// src/tools/network.ts
|
|
10784
10906
|
var network_exports = {};
|
|
@@ -10811,6 +10933,7 @@ __export(network_exports, {
|
|
|
10811
10933
|
buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
|
|
10812
10934
|
checkSetCookieHeader: () => checkSetCookieHeader,
|
|
10813
10935
|
countryCodeToFlag: () => countryCodeToFlag,
|
|
10936
|
+
extractMultipartBoundary: () => extractMultipartBoundary,
|
|
10814
10937
|
formatCoordinates: () => formatCoordinates,
|
|
10815
10938
|
formatTtl: () => formatTtl,
|
|
10816
10939
|
getByCategory: () => getByCategory,
|
|
@@ -10834,6 +10957,7 @@ __export(network_exports, {
|
|
|
10834
10957
|
parseGeoResponse: () => parseGeoResponse,
|
|
10835
10958
|
parseHar: () => parseHar,
|
|
10836
10959
|
parseIpv6Address: () => parseIpv6Address,
|
|
10960
|
+
parseMultipartFormData: () => parseMultipartFormData,
|
|
10837
10961
|
parsePermissionsPolicy: () => parsePermissionsPolicy,
|
|
10838
10962
|
parsePreferHeader: () => parsePreferHeader,
|
|
10839
10963
|
parsePriorityHeader: () => parsePriorityHeader,
|
|
@@ -13894,6 +14018,54 @@ function lookupCloseCode(code) {
|
|
|
13894
14018
|
}
|
|
13895
14019
|
return { error: `${code} is outside the defined close code ranges (0-4999); codes 5000 and above have no assigned meaning` };
|
|
13896
14020
|
}
|
|
14021
|
+
function extractMultipartBoundary(contentType) {
|
|
14022
|
+
if (!contentType) return null;
|
|
14023
|
+
const match = contentType.match(/boundary=(?:"([^"]*)"|([^;\s]+))/i);
|
|
14024
|
+
if (!match) return null;
|
|
14025
|
+
return match[1] ?? match[2] ?? null;
|
|
14026
|
+
}
|
|
14027
|
+
function parseMultipartFormData(body, boundary) {
|
|
14028
|
+
if (!body || !body.trim()) return { error: "Body is empty" };
|
|
14029
|
+
if (!boundary || !boundary.trim()) return { error: "Boundary is required" };
|
|
14030
|
+
const normalized = body.replace(/\r\n/g, "\n");
|
|
14031
|
+
const delimiter = `--${boundary}`;
|
|
14032
|
+
const segments = normalized.split(delimiter);
|
|
14033
|
+
if (segments.length < 3) {
|
|
14034
|
+
return { error: `No parts found for boundary "${boundary}"; check that it matches the boundary used in the body` };
|
|
14035
|
+
}
|
|
14036
|
+
const parts = [];
|
|
14037
|
+
for (let i = 1; i < segments.length; i++) {
|
|
14038
|
+
let segment = segments[i];
|
|
14039
|
+
if (segment.startsWith("--")) break;
|
|
14040
|
+
segment = segment.replace(/^\n/, "").replace(/\n$/, "");
|
|
14041
|
+
const headerEnd = segment.indexOf("\n\n");
|
|
14042
|
+
if (headerEnd === -1) continue;
|
|
14043
|
+
const headerBlock = segment.slice(0, headerEnd);
|
|
14044
|
+
const value = segment.slice(headerEnd + 2);
|
|
14045
|
+
const headers = {};
|
|
14046
|
+
for (const line of headerBlock.split("\n")) {
|
|
14047
|
+
const colon = line.indexOf(":");
|
|
14048
|
+
if (colon === -1) continue;
|
|
14049
|
+
headers[line.slice(0, colon).trim().toLowerCase()] = line.slice(colon + 1).trim();
|
|
14050
|
+
}
|
|
14051
|
+
const disposition = headers["content-disposition"] ?? "";
|
|
14052
|
+
const nameMatch = disposition.match(/name="([^"]*)"/);
|
|
14053
|
+
const filenameMatch = disposition.match(/filename="([^"]*)"/);
|
|
14054
|
+
const partContentType = headers["content-type"] ?? "";
|
|
14055
|
+
const isBinary = !!filenameMatch && !partContentType.startsWith("text/") && !partContentType.includes("json") && !partContentType.includes("xml");
|
|
14056
|
+
parts.push({
|
|
14057
|
+
name: nameMatch ? nameMatch[1] : null,
|
|
14058
|
+
filename: filenameMatch ? filenameMatch[1] : null,
|
|
14059
|
+
headers,
|
|
14060
|
+
value,
|
|
14061
|
+
isBinary
|
|
14062
|
+
});
|
|
14063
|
+
}
|
|
14064
|
+
if (parts.length === 0) {
|
|
14065
|
+
return { error: `No parts found for boundary "${boundary}"; check that it matches the boundary used in the body` };
|
|
14066
|
+
}
|
|
14067
|
+
return { boundary, parts };
|
|
14068
|
+
}
|
|
13897
14069
|
|
|
13898
14070
|
// src/tools/api.ts
|
|
13899
14071
|
var api_exports = {};
|
|
@@ -15212,6 +15384,7 @@ __export(code_exports, {
|
|
|
15212
15384
|
MIME_TABLE: () => MIME_TABLE,
|
|
15213
15385
|
OPERATIONS: () => OPERATIONS,
|
|
15214
15386
|
SQL_DEFAULT_OPTIONS: () => SQL_DEFAULT_OPTIONS,
|
|
15387
|
+
auditDependencyRanges: () => auditDependencyRanges,
|
|
15215
15388
|
buildDockerPull: () => buildDockerPull,
|
|
15216
15389
|
buildDockerRun: () => buildDockerRun,
|
|
15217
15390
|
buildGitCommand: () => buildGitCommand,
|
|
@@ -18596,6 +18769,96 @@ function validatePackageExports(packageJsonText) {
|
|
|
18596
18769
|
const valid = !issues.some((i) => i.severity === "error");
|
|
18597
18770
|
return { parsed: true, exportsShape, subpaths, issues, valid };
|
|
18598
18771
|
}
|
|
18772
|
+
var DEPENDENCY_SECTIONS = ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"];
|
|
18773
|
+
var EXACT_SEMVER_RE = /^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$/;
|
|
18774
|
+
function classifyDependencyRange(version2) {
|
|
18775
|
+
const v = version2.trim();
|
|
18776
|
+
if (v === "" || v === "*" || v.toLowerCase() === "x") return "wildcard";
|
|
18777
|
+
if (v.startsWith("workspace:")) return "workspace";
|
|
18778
|
+
if (v.startsWith("file:")) return "file";
|
|
18779
|
+
if (v.startsWith("link:")) return "link";
|
|
18780
|
+
if (v.startsWith("http://") || v.startsWith("https://")) return "url";
|
|
18781
|
+
if (v.startsWith("git+") || v.startsWith("git://") || v.startsWith("github:") || v.endsWith(".git") || /^[\w-]+\/[\w.-]+$/.test(v)) return "git";
|
|
18782
|
+
if (v.startsWith("^")) return "caret";
|
|
18783
|
+
if (v.startsWith("~")) return "tilde";
|
|
18784
|
+
if (v.includes("||") || v.includes(" ") || v.startsWith(">") || v.startsWith("<") || v.startsWith("=")) return "range";
|
|
18785
|
+
if (EXACT_SEMVER_RE.test(v)) return "exact";
|
|
18786
|
+
if (/^[A-Za-z][\w.-]*$/.test(v)) return "tag";
|
|
18787
|
+
return "unknown";
|
|
18788
|
+
}
|
|
18789
|
+
function auditDependencyRanges(packageJsonText) {
|
|
18790
|
+
if (!packageJsonText || !packageJsonText.trim()) return { error: "Input is empty" };
|
|
18791
|
+
let parsed;
|
|
18792
|
+
try {
|
|
18793
|
+
parsed = JSON.parse(packageJsonText);
|
|
18794
|
+
} catch (e) {
|
|
18795
|
+
return { error: `Invalid JSON: ${e.message}` };
|
|
18796
|
+
}
|
|
18797
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
18798
|
+
return { error: "Root of package.json must be an object" };
|
|
18799
|
+
}
|
|
18800
|
+
const obj = parsed;
|
|
18801
|
+
const presentSections = DEPENDENCY_SECTIONS.filter((s) => obj[s] && typeof obj[s] === "object");
|
|
18802
|
+
if (presentSections.length === 0) {
|
|
18803
|
+
return { error: "package.json has no dependencies, devDependencies, peerDependencies, or optionalDependencies field" };
|
|
18804
|
+
}
|
|
18805
|
+
const dependencies = [];
|
|
18806
|
+
const issues = [];
|
|
18807
|
+
const byName = /* @__PURE__ */ new Map();
|
|
18808
|
+
for (const section of presentSections) {
|
|
18809
|
+
const map = obj[section];
|
|
18810
|
+
for (const [name, versionRaw] of Object.entries(map)) {
|
|
18811
|
+
const version2 = typeof versionRaw === "string" ? versionRaw : String(versionRaw);
|
|
18812
|
+
const rangeType = classifyDependencyRange(version2);
|
|
18813
|
+
const entryIssues = [];
|
|
18814
|
+
if (rangeType === "wildcard") {
|
|
18815
|
+
entryIssues.push("no real version constraint; any version, including breaking ones, could be installed");
|
|
18816
|
+
}
|
|
18817
|
+
if (rangeType === "tag" && version2.trim().toLowerCase() === "latest") {
|
|
18818
|
+
entryIssues.push('"latest" is not reproducible; a fresh install can pull in a different, potentially breaking version at any time');
|
|
18819
|
+
}
|
|
18820
|
+
if (rangeType === "git" || rangeType === "url") {
|
|
18821
|
+
entryIssues.push(`not resolved from the npm registry (${rangeType}); can't be checked against registry advisories the same way`);
|
|
18822
|
+
}
|
|
18823
|
+
if (rangeType === "file" || rangeType === "link") {
|
|
18824
|
+
entryIssues.push(`local ${rangeType === "file" ? "path" : "symlink"} dependency; not portable to a machine or CI runner without the same local path`);
|
|
18825
|
+
}
|
|
18826
|
+
const entry = { name, version: version2, section, rangeType, issues: entryIssues };
|
|
18827
|
+
dependencies.push(entry);
|
|
18828
|
+
for (const issue of entryIssues) {
|
|
18829
|
+
issues.push({ severity: "warning", name, message: issue });
|
|
18830
|
+
}
|
|
18831
|
+
const existing = byName.get(name);
|
|
18832
|
+
if (existing) existing.push(entry);
|
|
18833
|
+
else byName.set(name, [entry]);
|
|
18834
|
+
}
|
|
18835
|
+
}
|
|
18836
|
+
const duplicates = [];
|
|
18837
|
+
for (const [name, entries] of byName) {
|
|
18838
|
+
if (entries.length < 2) continue;
|
|
18839
|
+
const versions = new Set(entries.map((e) => e.version));
|
|
18840
|
+
const sameVersion = versions.size === 1;
|
|
18841
|
+
duplicates.push({ name, sections: entries.map((e) => e.section), sameVersion });
|
|
18842
|
+
if (!sameVersion) {
|
|
18843
|
+
issues.push({ severity: "error", name, message: `listed with different version ranges in ${entries.map((e) => `${e.section} ("${e.version}")`).join(" and ")}` });
|
|
18844
|
+
} else {
|
|
18845
|
+
issues.push({ severity: "warning", name, message: `listed in more than one section (${entries.map((e) => e.section).join(", ")}) with the same range; redundant` });
|
|
18846
|
+
}
|
|
18847
|
+
}
|
|
18848
|
+
const rangeTypeCounts = {};
|
|
18849
|
+
for (const dep of dependencies) {
|
|
18850
|
+
rangeTypeCounts[dep.rangeType] = (rangeTypeCounts[dep.rangeType] ?? 0) + 1;
|
|
18851
|
+
}
|
|
18852
|
+
return {
|
|
18853
|
+
parsed: true,
|
|
18854
|
+
sections: presentSections,
|
|
18855
|
+
totalDependencies: dependencies.length,
|
|
18856
|
+
dependencies,
|
|
18857
|
+
duplicates,
|
|
18858
|
+
rangeTypeCounts,
|
|
18859
|
+
issues
|
|
18860
|
+
};
|
|
18861
|
+
}
|
|
18599
18862
|
|
|
18600
18863
|
// src/tools/color.ts
|
|
18601
18864
|
var color_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -5,10 +5,10 @@ export { t as text } from './text-DWUcY8H1.cjs';
|
|
|
5
5
|
export { d as data } from './data-vxXrBlWh.cjs';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.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-DPefgzmH.cjs';
|
|
9
|
+
export { n as network } from './network-DZTfMAk0.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-CKI2Z_NM.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
|
@@ -5,10 +5,10 @@ export { t as text } from './text-DWUcY8H1.js';
|
|
|
5
5
|
export { d as data } from './data-vxXrBlWh.js';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.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-DPefgzmH.js';
|
|
9
|
+
export { n as network } from './network-DZTfMAk0.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-CKI2Z_NM.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';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-226EH3ZI.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-4HNHEOJL.js';
|
|
3
|
+
export { network_exports as network } from './chunk-IANBS5Y3.js';
|
|
4
4
|
export { api_exports as api } from './chunk-52ZDKSIX.js';
|
|
5
|
-
export { code_exports as code } from './chunk-
|
|
5
|
+
export { code_exports as code } from './chunk-JPFHEZ4P.js';
|
|
6
6
|
export { color_exports as color } from './chunk-BPVAB4P2.js';
|
|
7
7
|
export { css_exports as css } from './chunk-6YPV2AB5.js';
|
|
8
8
|
export { misc_exports as misc } from './chunk-GX7H6TAX.js';
|
|
@@ -900,6 +900,32 @@ declare function listCloseCodes(): CloseCodeInfo[];
|
|
|
900
900
|
declare function lookupCloseCode(code: number): CloseCodeInfo | {
|
|
901
901
|
error: string;
|
|
902
902
|
};
|
|
903
|
+
interface MultipartPart {
|
|
904
|
+
name: string | null;
|
|
905
|
+
filename: string | null;
|
|
906
|
+
headers: Record<string, string>;
|
|
907
|
+
value: string;
|
|
908
|
+
isBinary: boolean;
|
|
909
|
+
}
|
|
910
|
+
interface MultipartParseResult {
|
|
911
|
+
boundary: string;
|
|
912
|
+
parts: MultipartPart[];
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Extract the `boundary` parameter from a `Content-Type: multipart/form-data;
|
|
916
|
+
* boundary=...` header value. Returns null if the header has no boundary
|
|
917
|
+
* parameter, e.g. because it isn't a multipart Content-Type at all.
|
|
918
|
+
*/
|
|
919
|
+
declare function extractMultipartBoundary(contentType: string): string | null;
|
|
920
|
+
/**
|
|
921
|
+
* Parse a raw multipart/form-data request body into its individual parts:
|
|
922
|
+
* field name, filename (if the part is a file field), headers, and decoded
|
|
923
|
+
* value, per RFC 7578. The body must use the same boundary the request's
|
|
924
|
+
* Content-Type header declared.
|
|
925
|
+
*/
|
|
926
|
+
declare function parseMultipartFormData(body: string, boundary: string): MultipartParseResult | {
|
|
927
|
+
error: string;
|
|
928
|
+
};
|
|
903
929
|
|
|
904
930
|
type network_AcceptLanguageEntry = AcceptLanguageEntry;
|
|
905
931
|
type network_AcceptLanguageResult = AcceptLanguageResult;
|
|
@@ -946,6 +972,8 @@ type network_LinkRel = LinkRel;
|
|
|
946
972
|
type network_ManifestIconInfo = ManifestIconInfo;
|
|
947
973
|
type network_ManifestIssue = ManifestIssue;
|
|
948
974
|
type network_ManifestValidationResult = ManifestValidationResult;
|
|
975
|
+
type network_MultipartParseResult = MultipartParseResult;
|
|
976
|
+
type network_MultipartPart = MultipartPart;
|
|
949
977
|
declare const network_PERMISSIONS_POLICY_FEATURES: typeof PERMISSIONS_POLICY_FEATURES;
|
|
950
978
|
type network_ParsedClientHint = ParsedClientHint;
|
|
951
979
|
type network_ParsedDnsResult = ParsedDnsResult;
|
|
@@ -1009,6 +1037,7 @@ declare const network_buildVaryHeader: typeof buildVaryHeader;
|
|
|
1009
1037
|
declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
|
|
1010
1038
|
declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
|
|
1011
1039
|
declare const network_countryCodeToFlag: typeof countryCodeToFlag;
|
|
1040
|
+
declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
|
|
1012
1041
|
declare const network_formatCoordinates: typeof formatCoordinates;
|
|
1013
1042
|
declare const network_formatTtl: typeof formatTtl;
|
|
1014
1043
|
declare const network_getByCategory: typeof getByCategory;
|
|
@@ -1032,6 +1061,7 @@ declare const network_parseDnsResponse: typeof parseDnsResponse;
|
|
|
1032
1061
|
declare const network_parseGeoResponse: typeof parseGeoResponse;
|
|
1033
1062
|
declare const network_parseHar: typeof parseHar;
|
|
1034
1063
|
declare const network_parseIpv6Address: typeof parseIpv6Address;
|
|
1064
|
+
declare const network_parseMultipartFormData: typeof parseMultipartFormData;
|
|
1035
1065
|
declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
|
|
1036
1066
|
declare const network_parsePreferHeader: typeof parsePreferHeader;
|
|
1037
1067
|
declare const network_parsePriorityHeader: typeof parsePriorityHeader;
|
|
@@ -1051,7 +1081,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
1051
1081
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
1052
1082
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
1053
1083
|
declare namespace network {
|
|
1054
|
-
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, 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_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, 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_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, 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, 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_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_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, 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_lookupCloseCode as lookupCloseCode, 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_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, 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 };
|
|
1084
|
+
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, 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_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, 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_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, 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, 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_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_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, 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_lookupCloseCode as lookupCloseCode, 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_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, 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 };
|
|
1055
1085
|
}
|
|
1056
1086
|
|
|
1057
|
-
export { type
|
|
1087
|
+
export { type PermissionsPolicyFeatureInput as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HttpHeader as J, type Ipv6AddressType as K, type Ipv6ParseResult as L, LINK_REL_VALUES as M, type LinkHeaderEntry as N, type LinkHeaderEntryInput as O, type LinkHeaderResult as P, type LinkRel as Q, type ManifestIconInfo as R, type ManifestIssue as S, type ManifestValidationResult as T, type MultipartParseResult as U, type MultipartPart as V, PERMISSIONS_POLICY_FEATURES as W, type ParsedClientHint as X, type ParsedDnsResult as Y, type ParsedGeoResult as Z, type PermissionsPolicyDirective as _, type AcceptLanguageResult as a, getStatusByCategory as a$, type PermissionsPolicyResult as a0, type PreferParameter as a1, type PreferPreference as a2, type PreferResult as a3, type PriorityResult as a4, REFERRER_POLICY_VALUES as a5, type RangeEntry as a6, type RangeEntryInput as a7, type RangeHeaderResult as a8, type ReceivedHop as a9, X_CONTENT_TYPE_OPTIONS_HEADER as aA, analyzeEmailHeaders as aB, assessContentTypeRisk as aC, buildAcceptLanguage as aD, buildCacheControl as aE, buildClientHints as aF, buildContentDisposition as aG, buildDnsQueryUrl as aH, buildGeoUrl as aI, buildLinkHeader as aJ, buildMapUrl as aK, buildPermissionsPolicy as aL, buildPreferHeader as aM, buildPriorityHeader as aN, buildRangeHeader as aO, buildReferrerPolicy as aP, buildRetryAfterHeader as aQ, buildVaryHeader as aR, buildXContentTypeOptionsHeader as aS, checkSetCookieHeader as aT, countryCodeToFlag as aU, extractMultipartBoundary as aV, formatCoordinates as aW, formatTtl as aX, getByCategory as aY, getHeader as aZ, getHeadersByCategory as a_, type ReferrerPolicyEntry as aa, type ReferrerPolicyResult as ab, type ReferrerPolicyValue as ac, type RetryAfterDateResult as ad, type RetryAfterResult as ae, type RetryAfterSecondsResult as af, type RobotsGroup as ag, type RobotsIssue as ah, type RobotsRule as ai, type RobotsValidationResult as aj, STATUS_CODES as ak, type SameSiteValue as al, type SitemapIndexEntry as am, type SitemapIssue as an, type SitemapSplitFile as ao, type SitemapUrlEntry as ap, type SitemapValidationResult as aq, type SplitSitemapOptions as ar, type SplitSitemapResult as as, type StatusCode as at, type UaDeviceType as au, type UserAgentInfo as av, type VaryHeaderEntry as aw, type VaryHeaderResult as ax, type XContentTypeOptionsHeader as ay, type XContentTypeOptionsParseResult as az, type AuthResultEntry as b, getStatusCode as b0, isClientError as b1, isServerError as b2, isSuccess as b3, isValidIp as b4, isValidIpv4 as b5, isValidIpv6 as b6, listCloseCodes as b7, lookupCloseCode as b8, parseAcceptLanguage as b9, parseClientHintHeaders as ba, parseContentDisposition as bb, parseContentRangeHeader as bc, parseDnsResponse as bd, parseGeoResponse as be, parseHar as bf, parseIpv6Address as bg, parseMultipartFormData as bh, parsePermissionsPolicy as bi, parsePreferHeader as bj, parsePriorityHeader as bk, parseRetryAfterHeader as bl, parseUserAgent as bm, parseVaryHeader as bn, parseXContentTypeOptionsHeader as bo, searchHeaders as bp, searchStatusCodes as bq, splitSitemap as br, statusCodeToText as bs, typeNumberToLabel as bt, validateDomain as bu, validateHeaderName as bv, validateHeaderValue as bw, validateManifest as bx, validateRobotsTxt as by, validateSitemap as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
|