@utilix-tech/sdk 0.72.0 → 0.73.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 +4 -0
- package/README.md +11 -3
- package/dist/{chunk-ACGCCOCK.js → chunk-CXUOV672.js} +32 -1
- package/dist/{chunk-S5FTESKL.js → chunk-XOUKIGJ4.js} +30 -1
- package/dist/index.cjs +60 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{network-BmqYmfqY.d.cts → network-Da3meCWM.d.cts} +31 -2
- package/dist/{network-BmqYmfqY.d.ts → network-Da3meCWM.d.ts} +31 -2
- package/dist/tools/network.cjs +31 -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 +29 -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-DB0W2pvU.d.cts → units-BgaUAUG5.d.cts} +26 -2
- package/dist/{units-DB0W2pvU.d.ts → units-BgaUAUG5.d.ts} +26 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Full release notes for all Utilix surfaces (browser tools, REST API, SDKs, MCP server) live at [utilix.tech/changelog](https://utilix.tech/changelog). This file tracks just this package.
|
|
4
4
|
|
|
5
|
+
## 0.73.0
|
|
6
|
+
- Add `calculateMortgagePoints` (mortgage-points-calculator): compare a loan with no discount points against the same loan at a reduced rate bought with points, and compute the monthly savings and break-even month.
|
|
7
|
+
- Add `calculateCookieSizeBudget` (cookie-size-budget-calculator): parse a Cookie header's name=value pairs and compute each cookie's and the total header's byte size against RFC 6265's per-cookie limit and a configurable budget.
|
|
8
|
+
|
|
5
9
|
## 0.72.0
|
|
6
10
|
- Add `validateVin` (vin-validator): validate a 17-character VIN via the ISO 3779 / NHTSA weighted mod-11 check digit and split it into its WMI, VDS, and VIS sections.
|
|
7
11
|
- Add `validateIsin` (isin-validator): validate a 12-character ISIN via its Luhn-style mod-10 check digit and break it into its country code and security identifier.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @utilix-tech/sdk
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**696 developer utility functions for Node.js: runs locally, no API key required.**
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@utilix-tech/sdk)
|
|
6
6
|
[](https://www.npmjs.com/package/@utilix-tech/sdk)
|
|
@@ -509,6 +509,10 @@ validateVin("1HGCM82633A004352");
|
|
|
509
509
|
// ISIN Luhn checksum (ISO 6166) + country code / security identifier breakdown
|
|
510
510
|
validateIsin("US0378331005");
|
|
511
511
|
// { valid: true, countryCode: "US", securityIdentifier: "037833100", checkDigit: 5, ... }
|
|
512
|
+
|
|
513
|
+
// Mortgage discount points break-even: monthly savings and the month the points cost is recouped
|
|
514
|
+
calculateMortgagePoints(300000, 6.5, 360, 1, 0.25);
|
|
515
|
+
// { pointsCost: 3000, monthlySavings: 49.05, breakEvenMonths: 62, totalInterestSavings: 17660.91, ... }
|
|
512
516
|
```
|
|
513
517
|
|
|
514
518
|
---
|
|
@@ -689,6 +693,10 @@ extractMultipartBoundary("multipart/form-data; boundary=----WebKitFormBoundaryAB
|
|
|
689
693
|
import { buildRobotsMetaTag, parseRobotsMetaTag } from "@utilix-tech/sdk/network";
|
|
690
694
|
buildRobotsMetaTag({ flags: ["noindex", "nofollow"], name: "googlebot" });
|
|
691
695
|
// { content: "noindex, nofollow", name: "googlebot", tag: '<meta name="googlebot" content="noindex, nofollow">', directives: [...], notes: [...], warnings: [] }
|
|
696
|
+
|
|
697
|
+
// Cookie header byte-size budget: per-cookie and total sizes against RFC 6265's 4096-byte limit
|
|
698
|
+
calculateCookieSizeBudget("session=abc123; theme=dark; cart=42");
|
|
699
|
+
// { cookieCount: 3, totalBytes: 35, budgetBytes: 4096, exceedsBudget: false, cookies: [...] }
|
|
692
700
|
```
|
|
693
701
|
|
|
694
702
|
---
|
|
@@ -978,8 +986,8 @@ readMidiInfo(new Uint8Array(midiBytes));
|
|
|
978
986
|
| `@utilix-tech/sdk/data` | CSV, YAML, TOML, XML, INI, NDJSON parse and convert, NDJSON record deduplicator, SRT/WebVTT subtitles, Markdown front matter parser, YAML anchor/alias resolver, CSV column type inferencer, Markdown table column aligner |
|
|
979
987
|
| `@utilix-tech/sdk/generators` | UUID v4/v7, ULID, passwords, strength check, entropy estimator, fake data, CSP nonce generator |
|
|
980
988
|
| `@utilix-tech/sdk/time` | Date diff, timezone convert, cron parse, relative time |
|
|
981
|
-
| `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN validation, loan calculator, EMI calculator, compound/simple interest calculators, VAT/sales tax calculator, tip/bill split calculator, break-even point calculator, Rule of 72 calculator, savings goal calculator, ROI calculator, cash denomination/till calculator, payback period calculator, CD maturity calculator, debt-to-income ratio calculator, freelancer hourly rate calculator, debt snowball/avalanche payoff planner, tax-equivalent yield calculator |
|
|
982
|
-
| `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand, Permissions-Policy header builder, Client Hints header builder/parser, Content-Disposition header builder/parser, X-Content-Type-Options header builder/risk assessor, sitemap.xml validator, sitemap index splitter, Prefer header builder/parser (RFC 7240), Retry-After header builder/parser (RFC 9110), Priority header builder/parser (RFC 9218), WebSocket close code reference/lookup, Strict-Transport-Security (HSTS) header builder/parser, X-Robots-Tag header builder/parser, WebSocket frame opcode reference/lookup, robots meta tag builder/parser |
|
|
989
|
+
| `@utilix-tech/sdk/units` | Bytes, CSS px/rem, number bases, currency format, credit card/IBAN/barcode/ISBN validation, loan calculator, EMI calculator, compound/simple interest calculators, VAT/sales tax calculator, tip/bill split calculator, break-even point calculator, Rule of 72 calculator, savings goal calculator, ROI calculator, cash denomination/till calculator, payback period calculator, CD maturity calculator, debt-to-income ratio calculator, freelancer hourly rate calculator, debt snowball/avalanche payoff planner, tax-equivalent yield calculator, mortgage discount points break-even calculator |
|
|
990
|
+
| `@utilix-tech/sdk/network` | HTTP status codes, IP validation, country flags, geolocation URLs, HAR file parsing, User-Agent parsing, IPv6 address compress/expand, Permissions-Policy header builder, Client Hints header builder/parser, Content-Disposition header builder/parser, X-Content-Type-Options header builder/risk assessor, sitemap.xml validator, sitemap index splitter, Prefer header builder/parser (RFC 7240), Retry-After header builder/parser (RFC 9110), Priority header builder/parser (RFC 9218), WebSocket close code reference/lookup, Strict-Transport-Security (HSTS) header builder/parser, X-Robots-Tag header builder/parser, WebSocket frame opcode reference/lookup, robots meta tag builder/parser, Cookie header byte-size budget calculator |
|
|
983
991
|
| `@utilix-tech/sdk/api` | cURL build/parse, JWT decode/sign, JWKS parse, CORS headers, CSP header, TOTP/HOTP code generator |
|
|
984
992
|
| `@utilix-tech/sdk/code` | SQL format/minify, HTML format/minify, regex tester, GraphQL format, MIME type lookup, GitHub URL parsing, regex ReDoS detector, Conventional Commits linter, package.json exports field validator, package.json dependency range auditor, regex capture group/backreference visualizer, SVG sprite symbol extractor |
|
|
985
993
|
| `@utilix-tech/sdk/color` | Hex/RGB/HSL/HSV/CMYK convert, palette generation, contrast check |
|
|
@@ -32,6 +32,7 @@ __export(network_exports, {
|
|
|
32
32
|
buildVaryHeader: () => buildVaryHeader,
|
|
33
33
|
buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
|
|
34
34
|
buildXRobotsTag: () => buildXRobotsTag,
|
|
35
|
+
calculateCookieSizeBudget: () => calculateCookieSizeBudget,
|
|
35
36
|
checkSetCookieHeader: () => checkSetCookieHeader,
|
|
36
37
|
countryCodeToFlag: () => countryCodeToFlag,
|
|
37
38
|
extractMultipartBoundary: () => extractMultipartBoundary,
|
|
@@ -3480,5 +3481,35 @@ function parseRobotsMetaTag(raw) {
|
|
|
3480
3481
|
}
|
|
3481
3482
|
return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
|
|
3482
3483
|
}
|
|
3484
|
+
var PER_COOKIE_BYTE_LIMIT = 4096;
|
|
3485
|
+
var DEFAULT_COOKIE_BUDGET_BYTES = 4096;
|
|
3486
|
+
function calculateCookieSizeBudget(cookieHeader, budgetBytes = DEFAULT_COOKIE_BUDGET_BYTES) {
|
|
3487
|
+
if (typeof cookieHeader !== "string" || !cookieHeader.trim()) {
|
|
3488
|
+
return { error: "A Cookie header value is required" };
|
|
3489
|
+
}
|
|
3490
|
+
if (!Number.isFinite(budgetBytes) || budgetBytes <= 0) {
|
|
3491
|
+
return { error: "Budget must be a positive number of bytes" };
|
|
3492
|
+
}
|
|
3493
|
+
const parts = cookieHeader.split(";").map((p) => p.trim()).filter(Boolean);
|
|
3494
|
+
if (parts.length === 0) return { error: "A Cookie header value is required" };
|
|
3495
|
+
const cookies = [];
|
|
3496
|
+
for (const part of parts) {
|
|
3497
|
+
const eq = part.indexOf("=");
|
|
3498
|
+
if (eq === -1) return { error: `Malformed cookie pair "${part}" is missing '='` };
|
|
3499
|
+
const name = part.slice(0, eq).trim();
|
|
3500
|
+
const value = part.slice(eq + 1).trim();
|
|
3501
|
+
if (!name) return { error: "Cookie name cannot be empty" };
|
|
3502
|
+
const bytes = Buffer.byteLength(`${name}=${value}`, "utf8");
|
|
3503
|
+
cookies.push({ name, value, bytes, exceedsPerCookieLimit: bytes > PER_COOKIE_BYTE_LIMIT });
|
|
3504
|
+
}
|
|
3505
|
+
const totalBytes = cookies.reduce((sum, c) => sum + c.bytes, 0) + Math.max(cookies.length - 1, 0) * 2;
|
|
3506
|
+
return {
|
|
3507
|
+
cookies,
|
|
3508
|
+
cookieCount: cookies.length,
|
|
3509
|
+
totalBytes,
|
|
3510
|
+
budgetBytes,
|
|
3511
|
+
exceedsBudget: totalBytes > budgetBytes
|
|
3512
|
+
};
|
|
3513
|
+
}
|
|
3483
3514
|
|
|
3484
|
-
export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
|
|
3515
|
+
export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, calculateCookieSizeBudget, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
|
|
@@ -39,6 +39,7 @@ __export(units_exports, {
|
|
|
39
39
|
calculateLoan: () => calculateLoan,
|
|
40
40
|
calculateLoanRefinance: () => calculateLoanRefinance,
|
|
41
41
|
calculateMarginMarkup: () => calculateMarginMarkup,
|
|
42
|
+
calculateMortgagePoints: () => calculateMortgagePoints,
|
|
42
43
|
calculateMovingAverages: () => calculateMovingAverages,
|
|
43
44
|
calculatePaybackPeriod: () => calculatePaybackPeriod,
|
|
44
45
|
calculatePercentageChange: () => calculatePercentageChange,
|
|
@@ -2633,5 +2634,33 @@ function validateIsin(input) {
|
|
|
2633
2634
|
formatted: `${countryCode} ${securityIdentifier} ${checkDigit}`
|
|
2634
2635
|
};
|
|
2635
2636
|
}
|
|
2637
|
+
function calculateMortgagePoints(loanAmount, baseRatePercent, termMonths, pointsCostPercent, rateReductionPercent) {
|
|
2638
|
+
if (!Number.isFinite(pointsCostPercent) || pointsCostPercent < 0) {
|
|
2639
|
+
return { error: "Points cost must be zero or a positive percent of the loan amount" };
|
|
2640
|
+
}
|
|
2641
|
+
if (!Number.isFinite(rateReductionPercent) || rateReductionPercent < 0) {
|
|
2642
|
+
return { error: "Rate reduction must be zero or a positive number" };
|
|
2643
|
+
}
|
|
2644
|
+
if (rateReductionPercent > baseRatePercent) {
|
|
2645
|
+
return { error: "Rate reduction cannot exceed the base interest rate" };
|
|
2646
|
+
}
|
|
2647
|
+
const withoutPoints = calculateLoan(loanAmount, baseRatePercent, termMonths);
|
|
2648
|
+
if ("error" in withoutPoints) return withoutPoints;
|
|
2649
|
+
const withPoints = calculateLoan(loanAmount, baseRatePercent - rateReductionPercent, termMonths);
|
|
2650
|
+
if ("error" in withPoints) return withPoints;
|
|
2651
|
+
const pointsCost = round2(loanAmount * (pointsCostPercent / 100));
|
|
2652
|
+
const monthlySavings = round2(withoutPoints.monthlyPayment - withPoints.monthlyPayment);
|
|
2653
|
+
const breakEvenMonths = monthlySavings > 0 ? Math.ceil(pointsCost / monthlySavings) : null;
|
|
2654
|
+
return {
|
|
2655
|
+
pointsCost,
|
|
2656
|
+
monthlyPaymentWithoutPoints: withoutPoints.monthlyPayment,
|
|
2657
|
+
monthlyPaymentWithPoints: withPoints.monthlyPayment,
|
|
2658
|
+
monthlySavings,
|
|
2659
|
+
breakEvenMonths,
|
|
2660
|
+
totalInterestWithoutPoints: withoutPoints.totalInterest,
|
|
2661
|
+
totalInterestWithPoints: withPoints.totalInterest,
|
|
2662
|
+
totalInterestSavings: round2(withoutPoints.totalInterest - withPoints.totalInterest)
|
|
2663
|
+
};
|
|
2664
|
+
}
|
|
2636
2665
|
|
|
2637
|
-
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanRefinance, calculateMarginMarkup, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateVin, viewportToPx };
|
|
2666
|
+
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateVin, viewportToPx };
|
package/dist/index.cjs
CHANGED
|
@@ -8573,6 +8573,7 @@ __export(units_exports, {
|
|
|
8573
8573
|
calculateLoan: () => calculateLoan,
|
|
8574
8574
|
calculateLoanRefinance: () => calculateLoanRefinance,
|
|
8575
8575
|
calculateMarginMarkup: () => calculateMarginMarkup,
|
|
8576
|
+
calculateMortgagePoints: () => calculateMortgagePoints,
|
|
8576
8577
|
calculateMovingAverages: () => calculateMovingAverages,
|
|
8577
8578
|
calculatePaybackPeriod: () => calculatePaybackPeriod,
|
|
8578
8579
|
calculatePercentageChange: () => calculatePercentageChange,
|
|
@@ -11167,6 +11168,34 @@ function validateIsin(input) {
|
|
|
11167
11168
|
formatted: `${countryCode} ${securityIdentifier} ${checkDigit}`
|
|
11168
11169
|
};
|
|
11169
11170
|
}
|
|
11171
|
+
function calculateMortgagePoints(loanAmount, baseRatePercent, termMonths, pointsCostPercent, rateReductionPercent) {
|
|
11172
|
+
if (!Number.isFinite(pointsCostPercent) || pointsCostPercent < 0) {
|
|
11173
|
+
return { error: "Points cost must be zero or a positive percent of the loan amount" };
|
|
11174
|
+
}
|
|
11175
|
+
if (!Number.isFinite(rateReductionPercent) || rateReductionPercent < 0) {
|
|
11176
|
+
return { error: "Rate reduction must be zero or a positive number" };
|
|
11177
|
+
}
|
|
11178
|
+
if (rateReductionPercent > baseRatePercent) {
|
|
11179
|
+
return { error: "Rate reduction cannot exceed the base interest rate" };
|
|
11180
|
+
}
|
|
11181
|
+
const withoutPoints = calculateLoan(loanAmount, baseRatePercent, termMonths);
|
|
11182
|
+
if ("error" in withoutPoints) return withoutPoints;
|
|
11183
|
+
const withPoints = calculateLoan(loanAmount, baseRatePercent - rateReductionPercent, termMonths);
|
|
11184
|
+
if ("error" in withPoints) return withPoints;
|
|
11185
|
+
const pointsCost = round2(loanAmount * (pointsCostPercent / 100));
|
|
11186
|
+
const monthlySavings = round2(withoutPoints.monthlyPayment - withPoints.monthlyPayment);
|
|
11187
|
+
const breakEvenMonths = monthlySavings > 0 ? Math.ceil(pointsCost / monthlySavings) : null;
|
|
11188
|
+
return {
|
|
11189
|
+
pointsCost,
|
|
11190
|
+
monthlyPaymentWithoutPoints: withoutPoints.monthlyPayment,
|
|
11191
|
+
monthlyPaymentWithPoints: withPoints.monthlyPayment,
|
|
11192
|
+
monthlySavings,
|
|
11193
|
+
breakEvenMonths,
|
|
11194
|
+
totalInterestWithoutPoints: withoutPoints.totalInterest,
|
|
11195
|
+
totalInterestWithPoints: withPoints.totalInterest,
|
|
11196
|
+
totalInterestSavings: round2(withoutPoints.totalInterest - withPoints.totalInterest)
|
|
11197
|
+
};
|
|
11198
|
+
}
|
|
11170
11199
|
|
|
11171
11200
|
// src/tools/network.ts
|
|
11172
11201
|
var network_exports = {};
|
|
@@ -11200,6 +11229,7 @@ __export(network_exports, {
|
|
|
11200
11229
|
buildVaryHeader: () => buildVaryHeader,
|
|
11201
11230
|
buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
|
|
11202
11231
|
buildXRobotsTag: () => buildXRobotsTag,
|
|
11232
|
+
calculateCookieSizeBudget: () => calculateCookieSizeBudget,
|
|
11203
11233
|
checkSetCookieHeader: () => checkSetCookieHeader,
|
|
11204
11234
|
countryCodeToFlag: () => countryCodeToFlag,
|
|
11205
11235
|
extractMultipartBoundary: () => extractMultipartBoundary,
|
|
@@ -14648,6 +14678,36 @@ function parseRobotsMetaTag(raw) {
|
|
|
14648
14678
|
}
|
|
14649
14679
|
return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
|
|
14650
14680
|
}
|
|
14681
|
+
var PER_COOKIE_BYTE_LIMIT = 4096;
|
|
14682
|
+
var DEFAULT_COOKIE_BUDGET_BYTES = 4096;
|
|
14683
|
+
function calculateCookieSizeBudget(cookieHeader, budgetBytes = DEFAULT_COOKIE_BUDGET_BYTES) {
|
|
14684
|
+
if (typeof cookieHeader !== "string" || !cookieHeader.trim()) {
|
|
14685
|
+
return { error: "A Cookie header value is required" };
|
|
14686
|
+
}
|
|
14687
|
+
if (!Number.isFinite(budgetBytes) || budgetBytes <= 0) {
|
|
14688
|
+
return { error: "Budget must be a positive number of bytes" };
|
|
14689
|
+
}
|
|
14690
|
+
const parts = cookieHeader.split(";").map((p) => p.trim()).filter(Boolean);
|
|
14691
|
+
if (parts.length === 0) return { error: "A Cookie header value is required" };
|
|
14692
|
+
const cookies = [];
|
|
14693
|
+
for (const part of parts) {
|
|
14694
|
+
const eq = part.indexOf("=");
|
|
14695
|
+
if (eq === -1) return { error: `Malformed cookie pair "${part}" is missing '='` };
|
|
14696
|
+
const name = part.slice(0, eq).trim();
|
|
14697
|
+
const value = part.slice(eq + 1).trim();
|
|
14698
|
+
if (!name) return { error: "Cookie name cannot be empty" };
|
|
14699
|
+
const bytes = Buffer.byteLength(`${name}=${value}`, "utf8");
|
|
14700
|
+
cookies.push({ name, value, bytes, exceedsPerCookieLimit: bytes > PER_COOKIE_BYTE_LIMIT });
|
|
14701
|
+
}
|
|
14702
|
+
const totalBytes = cookies.reduce((sum, c) => sum + c.bytes, 0) + Math.max(cookies.length - 1, 0) * 2;
|
|
14703
|
+
return {
|
|
14704
|
+
cookies,
|
|
14705
|
+
cookieCount: cookies.length,
|
|
14706
|
+
totalBytes,
|
|
14707
|
+
budgetBytes,
|
|
14708
|
+
exceedsBudget: totalBytes > budgetBytes
|
|
14709
|
+
};
|
|
14710
|
+
}
|
|
14651
14711
|
|
|
14652
14712
|
// src/tools/api.ts
|
|
14653
14713
|
var api_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -5,8 +5,8 @@ export { t as text } from './text-DWUcY8H1.cjs';
|
|
|
5
5
|
export { d as data } from './data-26TALa9U.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-BgaUAUG5.cjs';
|
|
9
|
+
export { n as network } from './network-Da3meCWM.cjs';
|
|
10
10
|
export { a as api } from './api-C8rImfka.cjs';
|
|
11
11
|
export { c as code } from './code-CoeD4Fmq.cjs';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { t as text } from './text-DWUcY8H1.js';
|
|
|
5
5
|
export { d as data } from './data-26TALa9U.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-BgaUAUG5.js';
|
|
9
|
+
export { n as network } from './network-Da3meCWM.js';
|
|
10
10
|
export { a as api } from './api-C8rImfka.js';
|
|
11
11
|
export { c as code } from './code-CoeD4Fmq.js';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-PT4N4UBL.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-XOUKIGJ4.js';
|
|
3
|
+
export { network_exports as network } from './chunk-CXUOV672.js';
|
|
4
4
|
export { api_exports as api } from './chunk-4S63T7Y4.js';
|
|
5
5
|
export { code_exports as code } from './chunk-DAD2ZOTJ.js';
|
|
6
6
|
export { color_exports as color } from './chunk-BPVAB4P2.js';
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
* - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
|
|
32
32
|
* - websocket-opcode-reference: lookupOpcode, listOpcodes
|
|
33
33
|
* - robots-meta-tag-builder: buildRobotsMetaTag, parseRobotsMetaTag
|
|
34
|
+
* - cookie-size-budget-calculator: calculateCookieSizeBudget
|
|
34
35
|
*/
|
|
35
36
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
36
37
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -1064,6 +1065,31 @@ declare function buildRobotsMetaTag(options: RobotsMetaTagOptions): RobotsMetaTa
|
|
|
1064
1065
|
declare function parseRobotsMetaTag(raw: string): RobotsMetaTagResult | {
|
|
1065
1066
|
error: string;
|
|
1066
1067
|
};
|
|
1068
|
+
interface CookieSizeEntry {
|
|
1069
|
+
name: string;
|
|
1070
|
+
value: string;
|
|
1071
|
+
bytes: number;
|
|
1072
|
+
exceedsPerCookieLimit: boolean;
|
|
1073
|
+
}
|
|
1074
|
+
interface CookieSizeBudgetResult {
|
|
1075
|
+
cookies: CookieSizeEntry[];
|
|
1076
|
+
cookieCount: number;
|
|
1077
|
+
totalBytes: number;
|
|
1078
|
+
budgetBytes: number;
|
|
1079
|
+
exceedsBudget: boolean;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Parse a Cookie request header's name=value pairs and compute each
|
|
1083
|
+
* cookie's serialized byte size (UTF-8 byte length of "name=value") and the
|
|
1084
|
+
* total header size including "; " separators, flagging any cookie over
|
|
1085
|
+
* RFC 6265's 4096-byte per-cookie guarantee and the total against a
|
|
1086
|
+
* configurable budget (4096 bytes by default, a conservative guideline for
|
|
1087
|
+
* keeping the whole Cookie header well under typical server/proxy header
|
|
1088
|
+
* size limits).
|
|
1089
|
+
*/
|
|
1090
|
+
declare function calculateCookieSizeBudget(cookieHeader: string, budgetBytes?: number): CookieSizeBudgetResult | {
|
|
1091
|
+
error: string;
|
|
1092
|
+
};
|
|
1067
1093
|
|
|
1068
1094
|
type network_AcceptLanguageEntry = AcceptLanguageEntry;
|
|
1069
1095
|
type network_AcceptLanguageResult = AcceptLanguageResult;
|
|
@@ -1087,6 +1113,8 @@ type network_ContentTypeRiskResult = ContentTypeRiskResult;
|
|
|
1087
1113
|
type network_ContentTypeSniffRisk = ContentTypeSniffRisk;
|
|
1088
1114
|
type network_CookieAttributes = CookieAttributes;
|
|
1089
1115
|
type network_CookieCheckResult = CookieCheckResult;
|
|
1116
|
+
type network_CookieSizeBudgetResult = CookieSizeBudgetResult;
|
|
1117
|
+
type network_CookieSizeEntry = CookieSizeEntry;
|
|
1090
1118
|
declare const network_DNS_RECORD_TYPES: typeof DNS_RECORD_TYPES;
|
|
1091
1119
|
type network_DnsRecord = DnsRecord;
|
|
1092
1120
|
type network_DnsRecordType = DnsRecordType;
|
|
@@ -1186,6 +1214,7 @@ declare const network_buildRobotsMetaTag: typeof buildRobotsMetaTag;
|
|
|
1186
1214
|
declare const network_buildVaryHeader: typeof buildVaryHeader;
|
|
1187
1215
|
declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
|
|
1188
1216
|
declare const network_buildXRobotsTag: typeof buildXRobotsTag;
|
|
1217
|
+
declare const network_calculateCookieSizeBudget: typeof calculateCookieSizeBudget;
|
|
1189
1218
|
declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
|
|
1190
1219
|
declare const network_countryCodeToFlag: typeof countryCodeToFlag;
|
|
1191
1220
|
declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
|
|
@@ -1237,7 +1266,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
1237
1266
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
1238
1267
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
1239
1268
|
declare namespace network {
|
|
1240
|
-
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_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_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_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_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 };
|
|
1269
|
+
export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, type network_CookieSizeBudgetResult as CookieSizeBudgetResult, type network_CookieSizeEntry as CookieSizeEntry, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_calculateCookieSizeBudget as calculateCookieSizeBudget, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_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 };
|
|
1241
1270
|
}
|
|
1242
1271
|
|
|
1243
|
-
export { type
|
|
1272
|
+
export { type OpcodeInfo as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarEntry as F, type GeoResult as G, HTTP_HEADERS as H, type HarParseResult as I, type HarSummary as J, type HeaderCategory as K, type HstsOptions as L, type HstsResult as M, type HttpHeader as N, type Ipv6AddressType as O, type Ipv6ParseResult as P, LINK_REL_VALUES as Q, type LinkHeaderEntry as R, type LinkHeaderEntryInput as S, type LinkHeaderResult as T, type LinkRel as U, type ManifestIconInfo as V, type ManifestIssue as W, type ManifestValidationResult as X, type MultipartParseResult as Y, type MultipartPart as Z, type OpcodeCategory as _, type AcceptLanguageResult as a, buildRangeHeader as a$, PERMISSIONS_POLICY_FEATURES as a0, type ParsedClientHint as a1, type ParsedDnsResult as a2, type ParsedGeoResult as a3, type PermissionsPolicyDirective as a4, type PermissionsPolicyFeatureInput as a5, type PermissionsPolicyResult as a6, type PreferParameter as a7, type PreferPreference as a8, type PreferResult as a9, type SplitSitemapOptions as aA, type SplitSitemapResult as aB, type StatusCode as aC, type UaDeviceType as aD, type UserAgentInfo as aE, type VaryHeaderEntry as aF, type VaryHeaderResult as aG, type XContentTypeOptionsHeader as aH, type XContentTypeOptionsParseResult as aI, type XRobotsTagFlag as aJ, type XRobotsTagOptions as aK, type XRobotsTagResult as aL, X_CONTENT_TYPE_OPTIONS_HEADER as aM, analyzeEmailHeaders as aN, assessContentTypeRisk as aO, buildAcceptLanguage as aP, buildCacheControl as aQ, buildClientHints as aR, buildContentDisposition as aS, buildDnsQueryUrl as aT, buildGeoUrl as aU, buildHsts as aV, buildLinkHeader as aW, buildMapUrl as aX, buildPermissionsPolicy as aY, buildPreferHeader as aZ, buildPriorityHeader as a_, type PriorityResult as aa, REFERRER_POLICY_VALUES as ab, type RangeEntry as ac, type RangeEntryInput as ad, type RangeHeaderResult as ae, type ReceivedHop as af, type ReferrerPolicyEntry as ag, type ReferrerPolicyResult as ah, type ReferrerPolicyValue as ai, type RetryAfterDateResult as aj, type RetryAfterResult as ak, type RetryAfterSecondsResult as al, type RobotsGroup as am, type RobotsIssue as an, type RobotsMetaTagFlag as ao, type RobotsMetaTagOptions as ap, type RobotsMetaTagResult as aq, type RobotsRule as ar, type RobotsValidationResult as as, STATUS_CODES as at, type SameSiteValue as au, type SitemapIndexEntry as av, type SitemapIssue as aw, type SitemapSplitFile as ax, type SitemapUrlEntry as ay, type SitemapValidationResult as az, type AuthResultEntry as b, buildReferrerPolicy as b0, buildRetryAfterHeader as b1, buildRobotsMetaTag as b2, buildVaryHeader as b3, buildXContentTypeOptionsHeader as b4, buildXRobotsTag as b5, calculateCookieSizeBudget as b6, checkSetCookieHeader as b7, countryCodeToFlag as b8, extractMultipartBoundary as b9, parseMultipartFormData as bA, parsePermissionsPolicy as bB, parsePreferHeader as bC, parsePriorityHeader as bD, parseRetryAfterHeader as bE, parseRobotsMetaTag as bF, parseUserAgent as bG, parseVaryHeader as bH, parseXContentTypeOptionsHeader as bI, parseXRobotsTag as bJ, searchHeaders as bK, searchStatusCodes as bL, splitSitemap as bM, statusCodeToText as bN, typeNumberToLabel as bO, validateDomain as bP, validateHeaderName as bQ, validateHeaderValue as bR, validateManifest as bS, validateRobotsTxt as bT, validateSitemap as bU, formatCoordinates as ba, formatTtl as bb, getByCategory as bc, getHeader as bd, getHeadersByCategory as be, getStatusByCategory as bf, getStatusCode as bg, isClientError as bh, isServerError as bi, isSuccess as bj, isValidIp as bk, isValidIpv4 as bl, isValidIpv6 as bm, listCloseCodes as bn, listOpcodes as bo, lookupCloseCode as bp, lookupOpcode as bq, parseAcceptLanguage as br, parseClientHintHeaders as bs, parseContentDisposition as bt, parseContentRangeHeader as bu, parseDnsResponse as bv, parseGeoResponse as bw, parseHar as bx, parseHsts as by, parseIpv6Address 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 CookieSizeBudgetResult as u, type CookieSizeEntry as v, type DnsRecord as w, type DnsRecordType as x, type DnsResponse as y, type EmailHeaderField as z };
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
* - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
|
|
32
32
|
* - websocket-opcode-reference: lookupOpcode, listOpcodes
|
|
33
33
|
* - robots-meta-tag-builder: buildRobotsMetaTag, parseRobotsMetaTag
|
|
34
|
+
* - cookie-size-budget-calculator: calculateCookieSizeBudget
|
|
34
35
|
*/
|
|
35
36
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
36
37
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -1064,6 +1065,31 @@ declare function buildRobotsMetaTag(options: RobotsMetaTagOptions): RobotsMetaTa
|
|
|
1064
1065
|
declare function parseRobotsMetaTag(raw: string): RobotsMetaTagResult | {
|
|
1065
1066
|
error: string;
|
|
1066
1067
|
};
|
|
1068
|
+
interface CookieSizeEntry {
|
|
1069
|
+
name: string;
|
|
1070
|
+
value: string;
|
|
1071
|
+
bytes: number;
|
|
1072
|
+
exceedsPerCookieLimit: boolean;
|
|
1073
|
+
}
|
|
1074
|
+
interface CookieSizeBudgetResult {
|
|
1075
|
+
cookies: CookieSizeEntry[];
|
|
1076
|
+
cookieCount: number;
|
|
1077
|
+
totalBytes: number;
|
|
1078
|
+
budgetBytes: number;
|
|
1079
|
+
exceedsBudget: boolean;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Parse a Cookie request header's name=value pairs and compute each
|
|
1083
|
+
* cookie's serialized byte size (UTF-8 byte length of "name=value") and the
|
|
1084
|
+
* total header size including "; " separators, flagging any cookie over
|
|
1085
|
+
* RFC 6265's 4096-byte per-cookie guarantee and the total against a
|
|
1086
|
+
* configurable budget (4096 bytes by default, a conservative guideline for
|
|
1087
|
+
* keeping the whole Cookie header well under typical server/proxy header
|
|
1088
|
+
* size limits).
|
|
1089
|
+
*/
|
|
1090
|
+
declare function calculateCookieSizeBudget(cookieHeader: string, budgetBytes?: number): CookieSizeBudgetResult | {
|
|
1091
|
+
error: string;
|
|
1092
|
+
};
|
|
1067
1093
|
|
|
1068
1094
|
type network_AcceptLanguageEntry = AcceptLanguageEntry;
|
|
1069
1095
|
type network_AcceptLanguageResult = AcceptLanguageResult;
|
|
@@ -1087,6 +1113,8 @@ type network_ContentTypeRiskResult = ContentTypeRiskResult;
|
|
|
1087
1113
|
type network_ContentTypeSniffRisk = ContentTypeSniffRisk;
|
|
1088
1114
|
type network_CookieAttributes = CookieAttributes;
|
|
1089
1115
|
type network_CookieCheckResult = CookieCheckResult;
|
|
1116
|
+
type network_CookieSizeBudgetResult = CookieSizeBudgetResult;
|
|
1117
|
+
type network_CookieSizeEntry = CookieSizeEntry;
|
|
1090
1118
|
declare const network_DNS_RECORD_TYPES: typeof DNS_RECORD_TYPES;
|
|
1091
1119
|
type network_DnsRecord = DnsRecord;
|
|
1092
1120
|
type network_DnsRecordType = DnsRecordType;
|
|
@@ -1186,6 +1214,7 @@ declare const network_buildRobotsMetaTag: typeof buildRobotsMetaTag;
|
|
|
1186
1214
|
declare const network_buildVaryHeader: typeof buildVaryHeader;
|
|
1187
1215
|
declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
|
|
1188
1216
|
declare const network_buildXRobotsTag: typeof buildXRobotsTag;
|
|
1217
|
+
declare const network_calculateCookieSizeBudget: typeof calculateCookieSizeBudget;
|
|
1189
1218
|
declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
|
|
1190
1219
|
declare const network_countryCodeToFlag: typeof countryCodeToFlag;
|
|
1191
1220
|
declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
|
|
@@ -1237,7 +1266,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
1237
1266
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
1238
1267
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
1239
1268
|
declare namespace network {
|
|
1240
|
-
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_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_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_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_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 };
|
|
1269
|
+
export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, type network_CookieSizeBudgetResult as CookieSizeBudgetResult, type network_CookieSizeEntry as CookieSizeEntry, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_calculateCookieSizeBudget as calculateCookieSizeBudget, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, network_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 };
|
|
1241
1270
|
}
|
|
1242
1271
|
|
|
1243
|
-
export { type
|
|
1272
|
+
export { type OpcodeInfo as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarEntry as F, type GeoResult as G, HTTP_HEADERS as H, type HarParseResult as I, type HarSummary as J, type HeaderCategory as K, type HstsOptions as L, type HstsResult as M, type HttpHeader as N, type Ipv6AddressType as O, type Ipv6ParseResult as P, LINK_REL_VALUES as Q, type LinkHeaderEntry as R, type LinkHeaderEntryInput as S, type LinkHeaderResult as T, type LinkRel as U, type ManifestIconInfo as V, type ManifestIssue as W, type ManifestValidationResult as X, type MultipartParseResult as Y, type MultipartPart as Z, type OpcodeCategory as _, type AcceptLanguageResult as a, buildRangeHeader as a$, PERMISSIONS_POLICY_FEATURES as a0, type ParsedClientHint as a1, type ParsedDnsResult as a2, type ParsedGeoResult as a3, type PermissionsPolicyDirective as a4, type PermissionsPolicyFeatureInput as a5, type PermissionsPolicyResult as a6, type PreferParameter as a7, type PreferPreference as a8, type PreferResult as a9, type SplitSitemapOptions as aA, type SplitSitemapResult as aB, type StatusCode as aC, type UaDeviceType as aD, type UserAgentInfo as aE, type VaryHeaderEntry as aF, type VaryHeaderResult as aG, type XContentTypeOptionsHeader as aH, type XContentTypeOptionsParseResult as aI, type XRobotsTagFlag as aJ, type XRobotsTagOptions as aK, type XRobotsTagResult as aL, X_CONTENT_TYPE_OPTIONS_HEADER as aM, analyzeEmailHeaders as aN, assessContentTypeRisk as aO, buildAcceptLanguage as aP, buildCacheControl as aQ, buildClientHints as aR, buildContentDisposition as aS, buildDnsQueryUrl as aT, buildGeoUrl as aU, buildHsts as aV, buildLinkHeader as aW, buildMapUrl as aX, buildPermissionsPolicy as aY, buildPreferHeader as aZ, buildPriorityHeader as a_, type PriorityResult as aa, REFERRER_POLICY_VALUES as ab, type RangeEntry as ac, type RangeEntryInput as ad, type RangeHeaderResult as ae, type ReceivedHop as af, type ReferrerPolicyEntry as ag, type ReferrerPolicyResult as ah, type ReferrerPolicyValue as ai, type RetryAfterDateResult as aj, type RetryAfterResult as ak, type RetryAfterSecondsResult as al, type RobotsGroup as am, type RobotsIssue as an, type RobotsMetaTagFlag as ao, type RobotsMetaTagOptions as ap, type RobotsMetaTagResult as aq, type RobotsRule as ar, type RobotsValidationResult as as, STATUS_CODES as at, type SameSiteValue as au, type SitemapIndexEntry as av, type SitemapIssue as aw, type SitemapSplitFile as ax, type SitemapUrlEntry as ay, type SitemapValidationResult as az, type AuthResultEntry as b, buildReferrerPolicy as b0, buildRetryAfterHeader as b1, buildRobotsMetaTag as b2, buildVaryHeader as b3, buildXContentTypeOptionsHeader as b4, buildXRobotsTag as b5, calculateCookieSizeBudget as b6, checkSetCookieHeader as b7, countryCodeToFlag as b8, extractMultipartBoundary as b9, parseMultipartFormData as bA, parsePermissionsPolicy as bB, parsePreferHeader as bC, parsePriorityHeader as bD, parseRetryAfterHeader as bE, parseRobotsMetaTag as bF, parseUserAgent as bG, parseVaryHeader as bH, parseXContentTypeOptionsHeader as bI, parseXRobotsTag as bJ, searchHeaders as bK, searchStatusCodes as bL, splitSitemap as bM, statusCodeToText as bN, typeNumberToLabel as bO, validateDomain as bP, validateHeaderName as bQ, validateHeaderValue as bR, validateManifest as bS, validateRobotsTxt as bT, validateSitemap as bU, formatCoordinates as ba, formatTtl as bb, getByCategory as bc, getHeader as bd, getHeadersByCategory as be, getStatusByCategory as bf, getStatusCode as bg, isClientError as bh, isServerError as bi, isSuccess as bj, isValidIp as bk, isValidIpv4 as bl, isValidIpv6 as bm, listCloseCodes as bn, listOpcodes as bo, lookupCloseCode as bp, lookupOpcode as bq, parseAcceptLanguage as br, parseClientHintHeaders as bs, parseContentDisposition as bt, parseContentRangeHeader as bu, parseDnsResponse as bv, parseGeoResponse as bw, parseHar as bx, parseHsts as by, parseIpv6Address 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 CookieSizeBudgetResult as u, type CookieSizeEntry as v, type DnsRecord as w, type DnsRecordType as x, type DnsResponse as y, type EmailHeaderField as z };
|
package/dist/tools/network.cjs
CHANGED
|
@@ -3398,6 +3398,36 @@ function parseRobotsMetaTag(raw) {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
|
|
3400
3400
|
}
|
|
3401
|
+
var PER_COOKIE_BYTE_LIMIT = 4096;
|
|
3402
|
+
var DEFAULT_COOKIE_BUDGET_BYTES = 4096;
|
|
3403
|
+
function calculateCookieSizeBudget(cookieHeader, budgetBytes = DEFAULT_COOKIE_BUDGET_BYTES) {
|
|
3404
|
+
if (typeof cookieHeader !== "string" || !cookieHeader.trim()) {
|
|
3405
|
+
return { error: "A Cookie header value is required" };
|
|
3406
|
+
}
|
|
3407
|
+
if (!Number.isFinite(budgetBytes) || budgetBytes <= 0) {
|
|
3408
|
+
return { error: "Budget must be a positive number of bytes" };
|
|
3409
|
+
}
|
|
3410
|
+
const parts = cookieHeader.split(";").map((p) => p.trim()).filter(Boolean);
|
|
3411
|
+
if (parts.length === 0) return { error: "A Cookie header value is required" };
|
|
3412
|
+
const cookies = [];
|
|
3413
|
+
for (const part of parts) {
|
|
3414
|
+
const eq = part.indexOf("=");
|
|
3415
|
+
if (eq === -1) return { error: `Malformed cookie pair "${part}" is missing '='` };
|
|
3416
|
+
const name = part.slice(0, eq).trim();
|
|
3417
|
+
const value = part.slice(eq + 1).trim();
|
|
3418
|
+
if (!name) return { error: "Cookie name cannot be empty" };
|
|
3419
|
+
const bytes = Buffer.byteLength(`${name}=${value}`, "utf8");
|
|
3420
|
+
cookies.push({ name, value, bytes, exceedsPerCookieLimit: bytes > PER_COOKIE_BYTE_LIMIT });
|
|
3421
|
+
}
|
|
3422
|
+
const totalBytes = cookies.reduce((sum, c) => sum + c.bytes, 0) + Math.max(cookies.length - 1, 0) * 2;
|
|
3423
|
+
return {
|
|
3424
|
+
cookies,
|
|
3425
|
+
cookieCount: cookies.length,
|
|
3426
|
+
totalBytes,
|
|
3427
|
+
budgetBytes,
|
|
3428
|
+
exceedsBudget: totalBytes > budgetBytes
|
|
3429
|
+
};
|
|
3430
|
+
}
|
|
3401
3431
|
|
|
3402
3432
|
exports.CLIENT_HINTS = CLIENT_HINTS;
|
|
3403
3433
|
exports.DNS_RECORD_TYPES = DNS_RECORD_TYPES;
|
|
@@ -3428,6 +3458,7 @@ exports.buildRobotsMetaTag = buildRobotsMetaTag;
|
|
|
3428
3458
|
exports.buildVaryHeader = buildVaryHeader;
|
|
3429
3459
|
exports.buildXContentTypeOptionsHeader = buildXContentTypeOptionsHeader;
|
|
3430
3460
|
exports.buildXRobotsTag = buildXRobotsTag;
|
|
3461
|
+
exports.calculateCookieSizeBudget = calculateCookieSizeBudget;
|
|
3431
3462
|
exports.checkSetCookieHeader = checkSetCookieHeader;
|
|
3432
3463
|
exports.countryCodeToFlag = countryCodeToFlag;
|
|
3433
3464
|
exports.extractMultipartBoundary = extractMultipartBoundary;
|
package/dist/tools/network.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES,
|
|
1
|
+
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, u as CookieSizeBudgetResult, v as CookieSizeEntry, D as DNS_RECORD_TYPES, w as DnsRecord, x as DnsRecordType, y as DnsResponse, E as EmailHeaderAnalysis, z as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, F as HarEntry, I as HarParseResult, J as HarSummary, K as HeaderCategory, L as HstsOptions, M as HstsResult, N as HttpHeader, O as Ipv6AddressType, P as Ipv6ParseResult, Q as LINK_REL_VALUES, R as LinkHeaderEntry, S as LinkHeaderEntryInput, T as LinkHeaderResult, U as LinkRel, V as ManifestIconInfo, W as ManifestIssue, X as ManifestValidationResult, Y as MultipartParseResult, Z as MultipartPart, _ as OpcodeCategory, $ as OpcodeInfo, a0 as PERMISSIONS_POLICY_FEATURES, a1 as ParsedClientHint, a2 as ParsedDnsResult, a3 as ParsedGeoResult, a4 as PermissionsPolicyDirective, a5 as PermissionsPolicyFeatureInput, a6 as PermissionsPolicyResult, a7 as PreferParameter, a8 as PreferPreference, a9 as PreferResult, aa as PriorityResult, ab as REFERRER_POLICY_VALUES, ac as RangeEntry, ad as RangeEntryInput, ae as RangeHeaderResult, af as ReceivedHop, ag as ReferrerPolicyEntry, ah as ReferrerPolicyResult, ai as ReferrerPolicyValue, aj as RetryAfterDateResult, ak as RetryAfterResult, al as RetryAfterSecondsResult, am as RobotsGroup, an as RobotsIssue, ao as RobotsMetaTagFlag, ap as RobotsMetaTagOptions, aq as RobotsMetaTagResult, ar as RobotsRule, as as RobotsValidationResult, at as STATUS_CODES, au as SameSiteValue, av as SitemapIndexEntry, aw as SitemapIssue, ax as SitemapSplitFile, ay as SitemapUrlEntry, az as SitemapValidationResult, aA as SplitSitemapOptions, aB as SplitSitemapResult, aC as StatusCode, aD as UaDeviceType, aE as UserAgentInfo, aF as VaryHeaderEntry, aG as VaryHeaderResult, aH as XContentTypeOptionsHeader, aI as XContentTypeOptionsParseResult, aJ as XRobotsTagFlag, aK as XRobotsTagOptions, aL as XRobotsTagResult, aM as X_CONTENT_TYPE_OPTIONS_HEADER, aN as analyzeEmailHeaders, aO as assessContentTypeRisk, aP as buildAcceptLanguage, aQ as buildCacheControl, aR as buildClientHints, aS as buildContentDisposition, aT as buildDnsQueryUrl, aU as buildGeoUrl, aV as buildHsts, aW as buildLinkHeader, aX as buildMapUrl, aY as buildPermissionsPolicy, aZ as buildPreferHeader, a_ as buildPriorityHeader, a$ as buildRangeHeader, b0 as buildReferrerPolicy, b1 as buildRetryAfterHeader, b2 as buildRobotsMetaTag, b3 as buildVaryHeader, b4 as buildXContentTypeOptionsHeader, b5 as buildXRobotsTag, b6 as calculateCookieSizeBudget, b7 as checkSetCookieHeader, b8 as countryCodeToFlag, b9 as extractMultipartBoundary, ba as formatCoordinates, bb as formatTtl, bc as getByCategory, bd as getHeader, be as getHeadersByCategory, bf as getStatusByCategory, bg as getStatusCode, bh as isClientError, bi as isServerError, bj as isSuccess, bk as isValidIp, bl as isValidIpv4, bm as isValidIpv6, bn as listCloseCodes, bo as listOpcodes, bp as lookupCloseCode, bq as lookupOpcode, br as parseAcceptLanguage, bs as parseClientHintHeaders, bt as parseContentDisposition, bu as parseContentRangeHeader, bv as parseDnsResponse, bw as parseGeoResponse, bx as parseHar, by as parseHsts, bz as parseIpv6Address, bA as parseMultipartFormData, bB as parsePermissionsPolicy, bC as parsePreferHeader, bD as parsePriorityHeader, bE as parseRetryAfterHeader, bF as parseRobotsMetaTag, bG as parseUserAgent, bH as parseVaryHeader, bI as parseXContentTypeOptionsHeader, bJ as parseXRobotsTag, bK as searchHeaders, bL as searchStatusCodes, bM as splitSitemap, bN as statusCodeToText, bO as typeNumberToLabel, bP as validateDomain, bQ as validateHeaderName, bR as validateHeaderValue, bS as validateManifest, bT as validateRobotsTxt, bU as validateSitemap } from '../network-Da3meCWM.cjs';
|
package/dist/tools/network.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES,
|
|
1
|
+
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, u as CookieSizeBudgetResult, v as CookieSizeEntry, D as DNS_RECORD_TYPES, w as DnsRecord, x as DnsRecordType, y as DnsResponse, E as EmailHeaderAnalysis, z as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, F as HarEntry, I as HarParseResult, J as HarSummary, K as HeaderCategory, L as HstsOptions, M as HstsResult, N as HttpHeader, O as Ipv6AddressType, P as Ipv6ParseResult, Q as LINK_REL_VALUES, R as LinkHeaderEntry, S as LinkHeaderEntryInput, T as LinkHeaderResult, U as LinkRel, V as ManifestIconInfo, W as ManifestIssue, X as ManifestValidationResult, Y as MultipartParseResult, Z as MultipartPart, _ as OpcodeCategory, $ as OpcodeInfo, a0 as PERMISSIONS_POLICY_FEATURES, a1 as ParsedClientHint, a2 as ParsedDnsResult, a3 as ParsedGeoResult, a4 as PermissionsPolicyDirective, a5 as PermissionsPolicyFeatureInput, a6 as PermissionsPolicyResult, a7 as PreferParameter, a8 as PreferPreference, a9 as PreferResult, aa as PriorityResult, ab as REFERRER_POLICY_VALUES, ac as RangeEntry, ad as RangeEntryInput, ae as RangeHeaderResult, af as ReceivedHop, ag as ReferrerPolicyEntry, ah as ReferrerPolicyResult, ai as ReferrerPolicyValue, aj as RetryAfterDateResult, ak as RetryAfterResult, al as RetryAfterSecondsResult, am as RobotsGroup, an as RobotsIssue, ao as RobotsMetaTagFlag, ap as RobotsMetaTagOptions, aq as RobotsMetaTagResult, ar as RobotsRule, as as RobotsValidationResult, at as STATUS_CODES, au as SameSiteValue, av as SitemapIndexEntry, aw as SitemapIssue, ax as SitemapSplitFile, ay as SitemapUrlEntry, az as SitemapValidationResult, aA as SplitSitemapOptions, aB as SplitSitemapResult, aC as StatusCode, aD as UaDeviceType, aE as UserAgentInfo, aF as VaryHeaderEntry, aG as VaryHeaderResult, aH as XContentTypeOptionsHeader, aI as XContentTypeOptionsParseResult, aJ as XRobotsTagFlag, aK as XRobotsTagOptions, aL as XRobotsTagResult, aM as X_CONTENT_TYPE_OPTIONS_HEADER, aN as analyzeEmailHeaders, aO as assessContentTypeRisk, aP as buildAcceptLanguage, aQ as buildCacheControl, aR as buildClientHints, aS as buildContentDisposition, aT as buildDnsQueryUrl, aU as buildGeoUrl, aV as buildHsts, aW as buildLinkHeader, aX as buildMapUrl, aY as buildPermissionsPolicy, aZ as buildPreferHeader, a_ as buildPriorityHeader, a$ as buildRangeHeader, b0 as buildReferrerPolicy, b1 as buildRetryAfterHeader, b2 as buildRobotsMetaTag, b3 as buildVaryHeader, b4 as buildXContentTypeOptionsHeader, b5 as buildXRobotsTag, b6 as calculateCookieSizeBudget, b7 as checkSetCookieHeader, b8 as countryCodeToFlag, b9 as extractMultipartBoundary, ba as formatCoordinates, bb as formatTtl, bc as getByCategory, bd as getHeader, be as getHeadersByCategory, bf as getStatusByCategory, bg as getStatusCode, bh as isClientError, bi as isServerError, bj as isSuccess, bk as isValidIp, bl as isValidIpv4, bm as isValidIpv6, bn as listCloseCodes, bo as listOpcodes, bp as lookupCloseCode, bq as lookupOpcode, br as parseAcceptLanguage, bs as parseClientHintHeaders, bt as parseContentDisposition, bu as parseContentRangeHeader, bv as parseDnsResponse, bw as parseGeoResponse, bx as parseHar, by as parseHsts, bz as parseIpv6Address, bA as parseMultipartFormData, bB as parsePermissionsPolicy, bC as parsePreferHeader, bD as parsePriorityHeader, bE as parseRetryAfterHeader, bF as parseRobotsMetaTag, bG as parseUserAgent, bH as parseVaryHeader, bI as parseXContentTypeOptionsHeader, bJ as parseXRobotsTag, bK as searchHeaders, bL as searchStatusCodes, bM as splitSitemap, bN as statusCodeToText, bO as typeNumberToLabel, bP as validateDomain, bQ as validateHeaderName, bR as validateHeaderValue, bS as validateManifest, bT as validateRobotsTxt, bU as validateSitemap } from '../network-Da3meCWM.js';
|
package/dist/tools/network.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-
|
|
1
|
+
export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, calculateCookieSizeBudget, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-CXUOV672.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/dist/tools/units.cjs
CHANGED
|
@@ -2526,6 +2526,34 @@ function validateIsin(input) {
|
|
|
2526
2526
|
formatted: `${countryCode} ${securityIdentifier} ${checkDigit}`
|
|
2527
2527
|
};
|
|
2528
2528
|
}
|
|
2529
|
+
function calculateMortgagePoints(loanAmount, baseRatePercent, termMonths, pointsCostPercent, rateReductionPercent) {
|
|
2530
|
+
if (!Number.isFinite(pointsCostPercent) || pointsCostPercent < 0) {
|
|
2531
|
+
return { error: "Points cost must be zero or a positive percent of the loan amount" };
|
|
2532
|
+
}
|
|
2533
|
+
if (!Number.isFinite(rateReductionPercent) || rateReductionPercent < 0) {
|
|
2534
|
+
return { error: "Rate reduction must be zero or a positive number" };
|
|
2535
|
+
}
|
|
2536
|
+
if (rateReductionPercent > baseRatePercent) {
|
|
2537
|
+
return { error: "Rate reduction cannot exceed the base interest rate" };
|
|
2538
|
+
}
|
|
2539
|
+
const withoutPoints = calculateLoan(loanAmount, baseRatePercent, termMonths);
|
|
2540
|
+
if ("error" in withoutPoints) return withoutPoints;
|
|
2541
|
+
const withPoints = calculateLoan(loanAmount, baseRatePercent - rateReductionPercent, termMonths);
|
|
2542
|
+
if ("error" in withPoints) return withPoints;
|
|
2543
|
+
const pointsCost = round2(loanAmount * (pointsCostPercent / 100));
|
|
2544
|
+
const monthlySavings = round2(withoutPoints.monthlyPayment - withPoints.monthlyPayment);
|
|
2545
|
+
const breakEvenMonths = monthlySavings > 0 ? Math.ceil(pointsCost / monthlySavings) : null;
|
|
2546
|
+
return {
|
|
2547
|
+
pointsCost,
|
|
2548
|
+
monthlyPaymentWithoutPoints: withoutPoints.monthlyPayment,
|
|
2549
|
+
monthlyPaymentWithPoints: withPoints.monthlyPayment,
|
|
2550
|
+
monthlySavings,
|
|
2551
|
+
breakEvenMonths,
|
|
2552
|
+
totalInterestWithoutPoints: withoutPoints.totalInterest,
|
|
2553
|
+
totalInterestWithPoints: withPoints.totalInterest,
|
|
2554
|
+
totalInterestSavings: round2(withoutPoints.totalInterest - withPoints.totalInterest)
|
|
2555
|
+
};
|
|
2556
|
+
}
|
|
2529
2557
|
|
|
2530
2558
|
exports.BASE_LABELS = BASE_LABELS;
|
|
2531
2559
|
exports.BASE_PREFIXES = BASE_PREFIXES;
|
|
@@ -2563,6 +2591,7 @@ exports.calculateGpa = calculateGpa;
|
|
|
2563
2591
|
exports.calculateLoan = calculateLoan;
|
|
2564
2592
|
exports.calculateLoanRefinance = calculateLoanRefinance;
|
|
2565
2593
|
exports.calculateMarginMarkup = calculateMarginMarkup;
|
|
2594
|
+
exports.calculateMortgagePoints = calculateMortgagePoints;
|
|
2566
2595
|
exports.calculateMovingAverages = calculateMovingAverages;
|
|
2567
2596
|
exports.calculatePaybackPeriod = calculatePaybackPeriod;
|
|
2568
2597
|
exports.calculatePercentageChange = calculatePercentageChange;
|
package/dist/tools/units.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AmortizationRow, a as AprApyDirection, b as AprApyResult, c as AspectRatioResult, B as BASE_LABELS, d as BASE_PREFIXES, e as BYTE_UNITS, f as BarcodeFormat, g as BarcodeValidationResult, h as BaseConvertResult, i as BlendedLoanRateResult, j as BreakEvenInput, k as BreakEvenResult, l as ByteConvertResult, m as ByteUnit, C as COMMON_CURRENCIES, n as COMMON_LOCALES, o as COMMON_PERMISSIONS, p as COMMON_RATIOS, q as COMMON_SIZES, r as COMMON_TAX_RATES, s as COMMON_TIP_PERCENTAGES, t as COMMON_VIEWPORTS, v as CardValidationResult, w as CashBreakdownResult, x as CashChangeResult, y as CashDenominationItem, z as CashRoundingMode, D as CashRoundingResult, E as CdMaturityResult, F as CompareUnitPricesResult, G as CompoundInterestResult, H as CompoundYearRow, I as CreditAccountInput, J as CreditAccountResult, K as CreditUtilizationResult, L as DebtItemInput, M as DebtItemResult, N as DebtPayoffComparison, O as DebtPayoffInput, P as DebtPayoffPlanResult, Q as DebtPayoffScheduleEntry, R as DebtPayoffStrategy, S as DebtPayoffStrategyResult, T as DebtToIncomeRatioResult, U as DepreciationMethod, V as DepreciationResult, W as DepreciationYear, X as Dimensions, Y as DiscountField, Z as DiscountInput, _ as DiscountResult, $ as DtiTier, a0 as EmiResult, a1 as EmiTenureUnit, a2 as EmiYearlyBreakdownRow, a3 as ExtraPaymentPayoffResult, a4 as FilePermissions, a5 as FormatOptions, a6 as FreelancerRateInput, a7 as FreelancerRateResult, a8 as GPA_GRADE_POINTS, a9 as GpaCourse, aa as GpaCourseResult, ab as GpaResult, ac as IbanValidationResult, ad as IpConversion, ae as IsbnFormat, af as IsbnResult, ag as IsinValidationResult, ah as LoanBalanceInput, ai as LoanBalanceResult, aj as LoanRefinanceResult, ak as LoanResult, al as MarginMarkupField, am as MarginMarkupInput, an as MarginMarkupResult, ao as
|
|
1
|
+
export { A as AmortizationRow, a as AprApyDirection, b as AprApyResult, c as AspectRatioResult, B as BASE_LABELS, d as BASE_PREFIXES, e as BYTE_UNITS, f as BarcodeFormat, g as BarcodeValidationResult, h as BaseConvertResult, i as BlendedLoanRateResult, j as BreakEvenInput, k as BreakEvenResult, l as ByteConvertResult, m as ByteUnit, C as COMMON_CURRENCIES, n as COMMON_LOCALES, o as COMMON_PERMISSIONS, p as COMMON_RATIOS, q as COMMON_SIZES, r as COMMON_TAX_RATES, s as COMMON_TIP_PERCENTAGES, t as COMMON_VIEWPORTS, v as CardValidationResult, w as CashBreakdownResult, x as CashChangeResult, y as CashDenominationItem, z as CashRoundingMode, D as CashRoundingResult, E as CdMaturityResult, F as CompareUnitPricesResult, G as CompoundInterestResult, H as CompoundYearRow, I as CreditAccountInput, J as CreditAccountResult, K as CreditUtilizationResult, L as DebtItemInput, M as DebtItemResult, N as DebtPayoffComparison, O as DebtPayoffInput, P as DebtPayoffPlanResult, Q as DebtPayoffScheduleEntry, R as DebtPayoffStrategy, S as DebtPayoffStrategyResult, T as DebtToIncomeRatioResult, U as DepreciationMethod, V as DepreciationResult, W as DepreciationYear, X as Dimensions, Y as DiscountField, Z as DiscountInput, _ as DiscountResult, $ as DtiTier, a0 as EmiResult, a1 as EmiTenureUnit, a2 as EmiYearlyBreakdownRow, a3 as ExtraPaymentPayoffResult, a4 as FilePermissions, a5 as FormatOptions, a6 as FreelancerRateInput, a7 as FreelancerRateResult, a8 as GPA_GRADE_POINTS, a9 as GpaCourse, aa as GpaCourseResult, ab as GpaResult, ac as IbanValidationResult, ad as IpConversion, ae as IsbnFormat, af as IsbnResult, ag as IsinValidationResult, ah as LoanBalanceInput, ai as LoanBalanceResult, aj as LoanRefinanceResult, ak as LoanResult, al as MarginMarkupField, am as MarginMarkupInput, an as MarginMarkupResult, ao as MortgagePointsResult, ap as MovingAveragePoint, aq as MovingAverageResult, ar as NotationStyle, as as NumberBase, at as PaybackPeriodInput, au as PaybackPeriodResult, av as PercentChangeDirection, aw as PercentageChangeResult, ax as Permission, ay as PxConvertResult, az as RoiInput, aA as RoiResult, aB as RuleOf72Direction, aC as RuleOf72Result, aD as SavingsGoalInput, aE as SavingsGoalMode, aF as SavingsGoalResult, aG as SemverVersion, aH as SimpleInterestResult, aI as SubnetInfo, aJ as SuccessiveDiscountResult, aK as SuccessiveDiscountStep, aL as TaxDirection, aM as TaxEquivalentYieldDirection, aN as TaxEquivalentYieldResult, aO as TaxResult, aP as TimeValueDirection, aQ as TimeValueResult, aR as TipSplitResult, aS as USD_DENOMINATIONS, aT as UnitPriceItem, aU as UnitPriceResult, aV as UtilizationTier, aW as VideoBitrateInput, aX as VideoBitrateMode, aY as VideoBitrateResult, aZ as ViewportConvertResult, a_ as VinValidationResult, a$ as applySuccessiveDiscounts, b0 as autoFormat, b1 as bumpVersion, b2 as calcAspectRatio, b3 as calcSubnet, b4 as calculateBlendedLoanRate, b5 as calculateBreakEven, b6 as calculateCashBreakdown, b7 as calculateCashRounding, b8 as calculateCdMaturity, b9 as calculateChange, ba as calculateCompoundInterest, bb as calculateCreditUtilization, bc as calculateDebtToIncomeRatio, bd as calculateDepreciationSchedule, be as calculateDiscount, bf as calculateEmi, bg as calculateExtraPaymentPayoff, bh as calculateFreelancerRate, bi as calculateGpa, bj as calculateLoan, bk as calculateLoanRefinance, bl as calculateMarginMarkup, bm as calculateMortgagePoints, bn as calculateMovingAverages, bo as calculatePaybackPeriod, bp as calculatePercentageChange, bq as calculateRoi, br as calculateRuleOf72, bs as calculateSavingsGoal, bt as calculateSimpleInterest, bu as calculateTax, bv as calculateTaxEquivalentYield, bw as calculateTimeValue, bx as calculateTipSplit, by as calculateVideoBitrate, bz as compareSemver, bA as compareUnitPrices, bB as convert, bC as convertAprApy, bD as convertBytes, bE as convertIp, bF as coverBox, bG as decimalToIp, bH as decimalToIpCidr, bI as describePermissions, bJ as fitIntoBox, bK as formatNumber, bL as formatValue, bM as formatVwValue, bN as formatWithSeparator, bO as gcd, bP as ipFromBinary, bQ as ipFromDecimal, bR as ipFromHex, bS as ipToBinary, bT as ipToDecimal, bU as ipToDecimalCidr, bV as ipToHex, bW as ipToOctal, bX as isValid, bY as isValidCidr, bZ as isValidIp, b_ as isValidIpv4, b$ as marginToMarkup, c0 as markupToMargin, c1 as octalToPermissions, c2 as parseFileSize, c3 as parseInput, c4 as parseNumberString, c5 as parseSemver, c6 as permissionsToChmod, c7 as permissionsToOctal, c8 as permissionsToSymbolic, c9 as planDebtPayoff, ca as ptToPx, cb as pxToAll, cc as pxToViewport, cd as remToPx, ce as satisfiesRange, cf as scaleByHeight, cg as scaleByWidth, ch as sortVersions, ci as splitSubnet, cj as symbolicToPermissions, ck as validateBarcode, cl as validateCardNumber, cm as validateIban, cn as validateIsbn, co as validateIsin, cp as validateVin, cq as viewportToPx } from '../units-BgaUAUG5.cjs';
|
package/dist/tools/units.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AmortizationRow, a as AprApyDirection, b as AprApyResult, c as AspectRatioResult, B as BASE_LABELS, d as BASE_PREFIXES, e as BYTE_UNITS, f as BarcodeFormat, g as BarcodeValidationResult, h as BaseConvertResult, i as BlendedLoanRateResult, j as BreakEvenInput, k as BreakEvenResult, l as ByteConvertResult, m as ByteUnit, C as COMMON_CURRENCIES, n as COMMON_LOCALES, o as COMMON_PERMISSIONS, p as COMMON_RATIOS, q as COMMON_SIZES, r as COMMON_TAX_RATES, s as COMMON_TIP_PERCENTAGES, t as COMMON_VIEWPORTS, v as CardValidationResult, w as CashBreakdownResult, x as CashChangeResult, y as CashDenominationItem, z as CashRoundingMode, D as CashRoundingResult, E as CdMaturityResult, F as CompareUnitPricesResult, G as CompoundInterestResult, H as CompoundYearRow, I as CreditAccountInput, J as CreditAccountResult, K as CreditUtilizationResult, L as DebtItemInput, M as DebtItemResult, N as DebtPayoffComparison, O as DebtPayoffInput, P as DebtPayoffPlanResult, Q as DebtPayoffScheduleEntry, R as DebtPayoffStrategy, S as DebtPayoffStrategyResult, T as DebtToIncomeRatioResult, U as DepreciationMethod, V as DepreciationResult, W as DepreciationYear, X as Dimensions, Y as DiscountField, Z as DiscountInput, _ as DiscountResult, $ as DtiTier, a0 as EmiResult, a1 as EmiTenureUnit, a2 as EmiYearlyBreakdownRow, a3 as ExtraPaymentPayoffResult, a4 as FilePermissions, a5 as FormatOptions, a6 as FreelancerRateInput, a7 as FreelancerRateResult, a8 as GPA_GRADE_POINTS, a9 as GpaCourse, aa as GpaCourseResult, ab as GpaResult, ac as IbanValidationResult, ad as IpConversion, ae as IsbnFormat, af as IsbnResult, ag as IsinValidationResult, ah as LoanBalanceInput, ai as LoanBalanceResult, aj as LoanRefinanceResult, ak as LoanResult, al as MarginMarkupField, am as MarginMarkupInput, an as MarginMarkupResult, ao as
|
|
1
|
+
export { A as AmortizationRow, a as AprApyDirection, b as AprApyResult, c as AspectRatioResult, B as BASE_LABELS, d as BASE_PREFIXES, e as BYTE_UNITS, f as BarcodeFormat, g as BarcodeValidationResult, h as BaseConvertResult, i as BlendedLoanRateResult, j as BreakEvenInput, k as BreakEvenResult, l as ByteConvertResult, m as ByteUnit, C as COMMON_CURRENCIES, n as COMMON_LOCALES, o as COMMON_PERMISSIONS, p as COMMON_RATIOS, q as COMMON_SIZES, r as COMMON_TAX_RATES, s as COMMON_TIP_PERCENTAGES, t as COMMON_VIEWPORTS, v as CardValidationResult, w as CashBreakdownResult, x as CashChangeResult, y as CashDenominationItem, z as CashRoundingMode, D as CashRoundingResult, E as CdMaturityResult, F as CompareUnitPricesResult, G as CompoundInterestResult, H as CompoundYearRow, I as CreditAccountInput, J as CreditAccountResult, K as CreditUtilizationResult, L as DebtItemInput, M as DebtItemResult, N as DebtPayoffComparison, O as DebtPayoffInput, P as DebtPayoffPlanResult, Q as DebtPayoffScheduleEntry, R as DebtPayoffStrategy, S as DebtPayoffStrategyResult, T as DebtToIncomeRatioResult, U as DepreciationMethod, V as DepreciationResult, W as DepreciationYear, X as Dimensions, Y as DiscountField, Z as DiscountInput, _ as DiscountResult, $ as DtiTier, a0 as EmiResult, a1 as EmiTenureUnit, a2 as EmiYearlyBreakdownRow, a3 as ExtraPaymentPayoffResult, a4 as FilePermissions, a5 as FormatOptions, a6 as FreelancerRateInput, a7 as FreelancerRateResult, a8 as GPA_GRADE_POINTS, a9 as GpaCourse, aa as GpaCourseResult, ab as GpaResult, ac as IbanValidationResult, ad as IpConversion, ae as IsbnFormat, af as IsbnResult, ag as IsinValidationResult, ah as LoanBalanceInput, ai as LoanBalanceResult, aj as LoanRefinanceResult, ak as LoanResult, al as MarginMarkupField, am as MarginMarkupInput, an as MarginMarkupResult, ao as MortgagePointsResult, ap as MovingAveragePoint, aq as MovingAverageResult, ar as NotationStyle, as as NumberBase, at as PaybackPeriodInput, au as PaybackPeriodResult, av as PercentChangeDirection, aw as PercentageChangeResult, ax as Permission, ay as PxConvertResult, az as RoiInput, aA as RoiResult, aB as RuleOf72Direction, aC as RuleOf72Result, aD as SavingsGoalInput, aE as SavingsGoalMode, aF as SavingsGoalResult, aG as SemverVersion, aH as SimpleInterestResult, aI as SubnetInfo, aJ as SuccessiveDiscountResult, aK as SuccessiveDiscountStep, aL as TaxDirection, aM as TaxEquivalentYieldDirection, aN as TaxEquivalentYieldResult, aO as TaxResult, aP as TimeValueDirection, aQ as TimeValueResult, aR as TipSplitResult, aS as USD_DENOMINATIONS, aT as UnitPriceItem, aU as UnitPriceResult, aV as UtilizationTier, aW as VideoBitrateInput, aX as VideoBitrateMode, aY as VideoBitrateResult, aZ as ViewportConvertResult, a_ as VinValidationResult, a$ as applySuccessiveDiscounts, b0 as autoFormat, b1 as bumpVersion, b2 as calcAspectRatio, b3 as calcSubnet, b4 as calculateBlendedLoanRate, b5 as calculateBreakEven, b6 as calculateCashBreakdown, b7 as calculateCashRounding, b8 as calculateCdMaturity, b9 as calculateChange, ba as calculateCompoundInterest, bb as calculateCreditUtilization, bc as calculateDebtToIncomeRatio, bd as calculateDepreciationSchedule, be as calculateDiscount, bf as calculateEmi, bg as calculateExtraPaymentPayoff, bh as calculateFreelancerRate, bi as calculateGpa, bj as calculateLoan, bk as calculateLoanRefinance, bl as calculateMarginMarkup, bm as calculateMortgagePoints, bn as calculateMovingAverages, bo as calculatePaybackPeriod, bp as calculatePercentageChange, bq as calculateRoi, br as calculateRuleOf72, bs as calculateSavingsGoal, bt as calculateSimpleInterest, bu as calculateTax, bv as calculateTaxEquivalentYield, bw as calculateTimeValue, bx as calculateTipSplit, by as calculateVideoBitrate, bz as compareSemver, bA as compareUnitPrices, bB as convert, bC as convertAprApy, bD as convertBytes, bE as convertIp, bF as coverBox, bG as decimalToIp, bH as decimalToIpCidr, bI as describePermissions, bJ as fitIntoBox, bK as formatNumber, bL as formatValue, bM as formatVwValue, bN as formatWithSeparator, bO as gcd, bP as ipFromBinary, bQ as ipFromDecimal, bR as ipFromHex, bS as ipToBinary, bT as ipToDecimal, bU as ipToDecimalCidr, bV as ipToHex, bW as ipToOctal, bX as isValid, bY as isValidCidr, bZ as isValidIp, b_ as isValidIpv4, b$ as marginToMarkup, c0 as markupToMargin, c1 as octalToPermissions, c2 as parseFileSize, c3 as parseInput, c4 as parseNumberString, c5 as parseSemver, c6 as permissionsToChmod, c7 as permissionsToOctal, c8 as permissionsToSymbolic, c9 as planDebtPayoff, ca as ptToPx, cb as pxToAll, cc as pxToViewport, cd as remToPx, ce as satisfiesRange, cf as scaleByHeight, cg as scaleByWidth, ch as sortVersions, ci as splitSubnet, cj as symbolicToPermissions, ck as validateBarcode, cl as validateCardNumber, cm as validateIban, cn as validateIsbn, co as validateIsin, cp as validateVin, cq as viewportToPx } from '../units-BgaUAUG5.js';
|
package/dist/tools/units.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanRefinance, calculateMarginMarkup, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateVin, viewportToPx } from '../chunk-
|
|
1
|
+
export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateVin, viewportToPx } from '../chunk-XOUKIGJ4.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
* - tax-equivalent-yield-calculator : calculateTaxEquivalentYield
|
|
44
44
|
* - vin-validator : validateVin
|
|
45
45
|
* - isin-validator : validateIsin
|
|
46
|
+
* - mortgage-points-calculator : calculateMortgagePoints
|
|
46
47
|
*/
|
|
47
48
|
interface PxConvertResult {
|
|
48
49
|
px: number;
|
|
@@ -1236,6 +1237,27 @@ interface IsinValidationResult {
|
|
|
1236
1237
|
declare function validateIsin(input: string): IsinValidationResult | {
|
|
1237
1238
|
error: string;
|
|
1238
1239
|
};
|
|
1240
|
+
interface MortgagePointsResult {
|
|
1241
|
+
pointsCost: number;
|
|
1242
|
+
monthlyPaymentWithoutPoints: number;
|
|
1243
|
+
monthlyPaymentWithPoints: number;
|
|
1244
|
+
monthlySavings: number;
|
|
1245
|
+
breakEvenMonths: number | null;
|
|
1246
|
+
totalInterestWithoutPoints: number;
|
|
1247
|
+
totalInterestWithPoints: number;
|
|
1248
|
+
totalInterestSavings: number;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Decide whether buying mortgage discount points is worth it: given a loan
|
|
1252
|
+
* amount, term, and base interest rate, compare that loan against the same
|
|
1253
|
+
* loan at a reduced rate bought with points costing a percentage of the
|
|
1254
|
+
* loan amount, and find the break-even month where cumulative monthly
|
|
1255
|
+
* savings recoup the points cost. Reuses calculateLoan for both the
|
|
1256
|
+
* no-points and with-points amortization.
|
|
1257
|
+
*/
|
|
1258
|
+
declare function calculateMortgagePoints(loanAmount: number, baseRatePercent: number, termMonths: number, pointsCostPercent: number, rateReductionPercent: number): MortgagePointsResult | {
|
|
1259
|
+
error: string;
|
|
1260
|
+
};
|
|
1239
1261
|
|
|
1240
1262
|
type units_AmortizationRow = AmortizationRow;
|
|
1241
1263
|
type units_AprApyDirection = AprApyDirection;
|
|
@@ -1314,6 +1336,7 @@ type units_LoanResult = LoanResult;
|
|
|
1314
1336
|
type units_MarginMarkupField = MarginMarkupField;
|
|
1315
1337
|
type units_MarginMarkupInput = MarginMarkupInput;
|
|
1316
1338
|
type units_MarginMarkupResult = MarginMarkupResult;
|
|
1339
|
+
type units_MortgagePointsResult = MortgagePointsResult;
|
|
1317
1340
|
type units_MovingAveragePoint = MovingAveragePoint;
|
|
1318
1341
|
type units_MovingAverageResult = MovingAverageResult;
|
|
1319
1342
|
type units_NotationStyle = NotationStyle;
|
|
@@ -1375,6 +1398,7 @@ declare const units_calculateGpa: typeof calculateGpa;
|
|
|
1375
1398
|
declare const units_calculateLoan: typeof calculateLoan;
|
|
1376
1399
|
declare const units_calculateLoanRefinance: typeof calculateLoanRefinance;
|
|
1377
1400
|
declare const units_calculateMarginMarkup: typeof calculateMarginMarkup;
|
|
1401
|
+
declare const units_calculateMortgagePoints: typeof calculateMortgagePoints;
|
|
1378
1402
|
declare const units_calculateMovingAverages: typeof calculateMovingAverages;
|
|
1379
1403
|
declare const units_calculatePaybackPeriod: typeof calculatePaybackPeriod;
|
|
1380
1404
|
declare const units_calculatePercentageChange: typeof calculatePercentageChange;
|
|
@@ -1444,7 +1468,7 @@ declare const units_validateIsin: typeof validateIsin;
|
|
|
1444
1468
|
declare const units_validateVin: typeof validateVin;
|
|
1445
1469
|
declare const units_viewportToPx: typeof viewportToPx;
|
|
1446
1470
|
declare namespace units {
|
|
1447
|
-
export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_IsinValidationResult as IsinValidationResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxEquivalentYieldDirection as TaxEquivalentYieldDirection, type units_TaxEquivalentYieldResult as TaxEquivalentYieldResult, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, type units_VinValidationResult as VinValidationResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTaxEquivalentYield as calculateTaxEquivalentYield, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_planDebtPayoff as planDebtPayoff, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_validateIsin as validateIsin, units_validateVin as validateVin, units_viewportToPx as viewportToPx };
|
|
1471
|
+
export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_IsinValidationResult as IsinValidationResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MortgagePointsResult as MortgagePointsResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxEquivalentYieldDirection as TaxEquivalentYieldDirection, type units_TaxEquivalentYieldResult as TaxEquivalentYieldResult, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, type units_VinValidationResult as VinValidationResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMortgagePoints as calculateMortgagePoints, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTaxEquivalentYield as calculateTaxEquivalentYield, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_planDebtPayoff as planDebtPayoff, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_validateIsin as validateIsin, units_validateVin as validateVin, units_viewportToPx as viewportToPx };
|
|
1448
1472
|
}
|
|
1449
1473
|
|
|
1450
|
-
export { type DtiTier as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CashRoundingResult as D, type CdMaturityResult as E, type CompareUnitPricesResult as F, type CompoundInterestResult as G, type CompoundYearRow as H, type CreditAccountInput as I, type CreditAccountResult as J, type CreditUtilizationResult as K, type DebtItemInput as L, type DebtItemResult as M, type DebtPayoffComparison as N, type DebtPayoffInput as O, type DebtPayoffPlanResult as P, type DebtPayoffScheduleEntry as Q, type DebtPayoffStrategy as R, type DebtPayoffStrategyResult as S, type DebtToIncomeRatioResult as T, type DepreciationMethod as U, type DepreciationResult as V, type DepreciationYear as W, type Dimensions as X, type DiscountField as Y, type DiscountInput as Z, type DiscountResult as _, type AprApyDirection as a,
|
|
1474
|
+
export { type DtiTier as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CashRoundingResult as D, type CdMaturityResult as E, type CompareUnitPricesResult as F, type CompoundInterestResult as G, type CompoundYearRow as H, type CreditAccountInput as I, type CreditAccountResult as J, type CreditUtilizationResult as K, type DebtItemInput as L, type DebtItemResult as M, type DebtPayoffComparison as N, type DebtPayoffInput as O, type DebtPayoffPlanResult as P, type DebtPayoffScheduleEntry as Q, type DebtPayoffStrategy as R, type DebtPayoffStrategyResult as S, type DebtToIncomeRatioResult as T, type DepreciationMethod as U, type DepreciationResult as V, type DepreciationYear as W, type Dimensions as X, type DiscountField as Y, type DiscountInput as Z, type DiscountResult as _, type AprApyDirection as a, applySuccessiveDiscounts as a$, type EmiResult as a0, type EmiTenureUnit as a1, type EmiYearlyBreakdownRow as a2, type ExtraPaymentPayoffResult as a3, type FilePermissions as a4, type FormatOptions as a5, type FreelancerRateInput as a6, type FreelancerRateResult as a7, GPA_GRADE_POINTS as a8, type GpaCourse as a9, type RoiResult as aA, type RuleOf72Direction as aB, type RuleOf72Result as aC, type SavingsGoalInput as aD, type SavingsGoalMode as aE, type SavingsGoalResult as aF, type SemverVersion as aG, type SimpleInterestResult as aH, type SubnetInfo as aI, type SuccessiveDiscountResult as aJ, type SuccessiveDiscountStep as aK, type TaxDirection as aL, type TaxEquivalentYieldDirection as aM, type TaxEquivalentYieldResult as aN, type TaxResult as aO, type TimeValueDirection as aP, type TimeValueResult as aQ, type TipSplitResult as aR, USD_DENOMINATIONS as aS, type UnitPriceItem as aT, type UnitPriceResult as aU, type UtilizationTier as aV, type VideoBitrateInput as aW, type VideoBitrateMode as aX, type VideoBitrateResult as aY, type ViewportConvertResult as aZ, type VinValidationResult as a_, type GpaCourseResult as aa, type GpaResult as ab, type IbanValidationResult as ac, type IpConversion as ad, type IsbnFormat as ae, type IsbnResult as af, type IsinValidationResult as ag, type LoanBalanceInput as ah, type LoanBalanceResult as ai, type LoanRefinanceResult as aj, type LoanResult as ak, type MarginMarkupField as al, type MarginMarkupInput as am, type MarginMarkupResult as an, type MortgagePointsResult as ao, type MovingAveragePoint as ap, type MovingAverageResult as aq, type NotationStyle as ar, type NumberBase as as, type PaybackPeriodInput as at, type PaybackPeriodResult as au, type PercentChangeDirection as av, type PercentageChangeResult as aw, type Permission as ax, type PxConvertResult as ay, type RoiInput as az, type AprApyResult as b, marginToMarkup as b$, autoFormat as b0, bumpVersion as b1, calcAspectRatio as b2, calcSubnet as b3, calculateBlendedLoanRate as b4, calculateBreakEven as b5, calculateCashBreakdown as b6, calculateCashRounding as b7, calculateCdMaturity as b8, calculateChange as b9, compareUnitPrices as bA, convert as bB, convertAprApy as bC, convertBytes as bD, convertIp as bE, coverBox as bF, decimalToIp as bG, decimalToIpCidr as bH, describePermissions as bI, fitIntoBox as bJ, formatNumber as bK, formatValue as bL, formatVwValue as bM, formatWithSeparator as bN, gcd as bO, ipFromBinary as bP, ipFromDecimal as bQ, ipFromHex as bR, ipToBinary as bS, ipToDecimal as bT, ipToDecimalCidr as bU, ipToHex as bV, ipToOctal as bW, isValid as bX, isValidCidr as bY, isValidIp as bZ, isValidIpv4 as b_, calculateCompoundInterest as ba, calculateCreditUtilization as bb, calculateDebtToIncomeRatio as bc, calculateDepreciationSchedule as bd, calculateDiscount as be, calculateEmi as bf, calculateExtraPaymentPayoff as bg, calculateFreelancerRate as bh, calculateGpa as bi, calculateLoan as bj, calculateLoanRefinance as bk, calculateMarginMarkup as bl, calculateMortgagePoints as bm, calculateMovingAverages as bn, calculatePaybackPeriod as bo, calculatePercentageChange as bp, calculateRoi as bq, calculateRuleOf72 as br, calculateSavingsGoal as bs, calculateSimpleInterest as bt, calculateTax as bu, calculateTaxEquivalentYield as bv, calculateTimeValue as bw, calculateTipSplit as bx, calculateVideoBitrate as by, compareSemver as bz, type AspectRatioResult as c, markupToMargin as c0, octalToPermissions as c1, parseFileSize as c2, parseInput as c3, parseNumberString as c4, parseSemver as c5, permissionsToChmod as c6, permissionsToOctal as c7, permissionsToSymbolic as c8, planDebtPayoff as c9, ptToPx as ca, pxToAll as cb, pxToViewport as cc, remToPx as cd, satisfiesRange as ce, scaleByHeight as cf, scaleByWidth as cg, sortVersions as ch, splitSubnet as ci, symbolicToPermissions as cj, validateBarcode as ck, validateCardNumber as cl, validateIban as cm, validateIsbn as cn, validateIsin as co, validateVin as cp, viewportToPx as cq, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BlendedLoanRateResult as i, type BreakEvenInput as j, type BreakEvenResult as k, type ByteConvertResult as l, type ByteUnit as m, COMMON_LOCALES as n, COMMON_PERMISSIONS as o, COMMON_RATIOS as p, COMMON_SIZES as q, COMMON_TAX_RATES as r, COMMON_TIP_PERCENTAGES as s, COMMON_VIEWPORTS as t, units as u, type CardValidationResult as v, type CashBreakdownResult as w, type CashChangeResult as x, type CashDenominationItem as y, type CashRoundingMode as z };
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
* - tax-equivalent-yield-calculator : calculateTaxEquivalentYield
|
|
44
44
|
* - vin-validator : validateVin
|
|
45
45
|
* - isin-validator : validateIsin
|
|
46
|
+
* - mortgage-points-calculator : calculateMortgagePoints
|
|
46
47
|
*/
|
|
47
48
|
interface PxConvertResult {
|
|
48
49
|
px: number;
|
|
@@ -1236,6 +1237,27 @@ interface IsinValidationResult {
|
|
|
1236
1237
|
declare function validateIsin(input: string): IsinValidationResult | {
|
|
1237
1238
|
error: string;
|
|
1238
1239
|
};
|
|
1240
|
+
interface MortgagePointsResult {
|
|
1241
|
+
pointsCost: number;
|
|
1242
|
+
monthlyPaymentWithoutPoints: number;
|
|
1243
|
+
monthlyPaymentWithPoints: number;
|
|
1244
|
+
monthlySavings: number;
|
|
1245
|
+
breakEvenMonths: number | null;
|
|
1246
|
+
totalInterestWithoutPoints: number;
|
|
1247
|
+
totalInterestWithPoints: number;
|
|
1248
|
+
totalInterestSavings: number;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Decide whether buying mortgage discount points is worth it: given a loan
|
|
1252
|
+
* amount, term, and base interest rate, compare that loan against the same
|
|
1253
|
+
* loan at a reduced rate bought with points costing a percentage of the
|
|
1254
|
+
* loan amount, and find the break-even month where cumulative monthly
|
|
1255
|
+
* savings recoup the points cost. Reuses calculateLoan for both the
|
|
1256
|
+
* no-points and with-points amortization.
|
|
1257
|
+
*/
|
|
1258
|
+
declare function calculateMortgagePoints(loanAmount: number, baseRatePercent: number, termMonths: number, pointsCostPercent: number, rateReductionPercent: number): MortgagePointsResult | {
|
|
1259
|
+
error: string;
|
|
1260
|
+
};
|
|
1239
1261
|
|
|
1240
1262
|
type units_AmortizationRow = AmortizationRow;
|
|
1241
1263
|
type units_AprApyDirection = AprApyDirection;
|
|
@@ -1314,6 +1336,7 @@ type units_LoanResult = LoanResult;
|
|
|
1314
1336
|
type units_MarginMarkupField = MarginMarkupField;
|
|
1315
1337
|
type units_MarginMarkupInput = MarginMarkupInput;
|
|
1316
1338
|
type units_MarginMarkupResult = MarginMarkupResult;
|
|
1339
|
+
type units_MortgagePointsResult = MortgagePointsResult;
|
|
1317
1340
|
type units_MovingAveragePoint = MovingAveragePoint;
|
|
1318
1341
|
type units_MovingAverageResult = MovingAverageResult;
|
|
1319
1342
|
type units_NotationStyle = NotationStyle;
|
|
@@ -1375,6 +1398,7 @@ declare const units_calculateGpa: typeof calculateGpa;
|
|
|
1375
1398
|
declare const units_calculateLoan: typeof calculateLoan;
|
|
1376
1399
|
declare const units_calculateLoanRefinance: typeof calculateLoanRefinance;
|
|
1377
1400
|
declare const units_calculateMarginMarkup: typeof calculateMarginMarkup;
|
|
1401
|
+
declare const units_calculateMortgagePoints: typeof calculateMortgagePoints;
|
|
1378
1402
|
declare const units_calculateMovingAverages: typeof calculateMovingAverages;
|
|
1379
1403
|
declare const units_calculatePaybackPeriod: typeof calculatePaybackPeriod;
|
|
1380
1404
|
declare const units_calculatePercentageChange: typeof calculatePercentageChange;
|
|
@@ -1444,7 +1468,7 @@ declare const units_validateIsin: typeof validateIsin;
|
|
|
1444
1468
|
declare const units_validateVin: typeof validateVin;
|
|
1445
1469
|
declare const units_viewportToPx: typeof viewportToPx;
|
|
1446
1470
|
declare namespace units {
|
|
1447
|
-
export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_IsinValidationResult as IsinValidationResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxEquivalentYieldDirection as TaxEquivalentYieldDirection, type units_TaxEquivalentYieldResult as TaxEquivalentYieldResult, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, type units_VinValidationResult as VinValidationResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTaxEquivalentYield as calculateTaxEquivalentYield, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_planDebtPayoff as planDebtPayoff, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_validateIsin as validateIsin, units_validateVin as validateVin, units_viewportToPx as viewportToPx };
|
|
1471
|
+
export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_IsinValidationResult as IsinValidationResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MortgagePointsResult as MortgagePointsResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxEquivalentYieldDirection as TaxEquivalentYieldDirection, type units_TaxEquivalentYieldResult as TaxEquivalentYieldResult, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, type units_VinValidationResult as VinValidationResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMortgagePoints as calculateMortgagePoints, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTaxEquivalentYield as calculateTaxEquivalentYield, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_planDebtPayoff as planDebtPayoff, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_validateIsin as validateIsin, units_validateVin as validateVin, units_viewportToPx as viewportToPx };
|
|
1448
1472
|
}
|
|
1449
1473
|
|
|
1450
|
-
export { type DtiTier as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CashRoundingResult as D, type CdMaturityResult as E, type CompareUnitPricesResult as F, type CompoundInterestResult as G, type CompoundYearRow as H, type CreditAccountInput as I, type CreditAccountResult as J, type CreditUtilizationResult as K, type DebtItemInput as L, type DebtItemResult as M, type DebtPayoffComparison as N, type DebtPayoffInput as O, type DebtPayoffPlanResult as P, type DebtPayoffScheduleEntry as Q, type DebtPayoffStrategy as R, type DebtPayoffStrategyResult as S, type DebtToIncomeRatioResult as T, type DepreciationMethod as U, type DepreciationResult as V, type DepreciationYear as W, type Dimensions as X, type DiscountField as Y, type DiscountInput as Z, type DiscountResult as _, type AprApyDirection as a,
|
|
1474
|
+
export { type DtiTier as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CashRoundingResult as D, type CdMaturityResult as E, type CompareUnitPricesResult as F, type CompoundInterestResult as G, type CompoundYearRow as H, type CreditAccountInput as I, type CreditAccountResult as J, type CreditUtilizationResult as K, type DebtItemInput as L, type DebtItemResult as M, type DebtPayoffComparison as N, type DebtPayoffInput as O, type DebtPayoffPlanResult as P, type DebtPayoffScheduleEntry as Q, type DebtPayoffStrategy as R, type DebtPayoffStrategyResult as S, type DebtToIncomeRatioResult as T, type DepreciationMethod as U, type DepreciationResult as V, type DepreciationYear as W, type Dimensions as X, type DiscountField as Y, type DiscountInput as Z, type DiscountResult as _, type AprApyDirection as a, applySuccessiveDiscounts as a$, type EmiResult as a0, type EmiTenureUnit as a1, type EmiYearlyBreakdownRow as a2, type ExtraPaymentPayoffResult as a3, type FilePermissions as a4, type FormatOptions as a5, type FreelancerRateInput as a6, type FreelancerRateResult as a7, GPA_GRADE_POINTS as a8, type GpaCourse as a9, type RoiResult as aA, type RuleOf72Direction as aB, type RuleOf72Result as aC, type SavingsGoalInput as aD, type SavingsGoalMode as aE, type SavingsGoalResult as aF, type SemverVersion as aG, type SimpleInterestResult as aH, type SubnetInfo as aI, type SuccessiveDiscountResult as aJ, type SuccessiveDiscountStep as aK, type TaxDirection as aL, type TaxEquivalentYieldDirection as aM, type TaxEquivalentYieldResult as aN, type TaxResult as aO, type TimeValueDirection as aP, type TimeValueResult as aQ, type TipSplitResult as aR, USD_DENOMINATIONS as aS, type UnitPriceItem as aT, type UnitPriceResult as aU, type UtilizationTier as aV, type VideoBitrateInput as aW, type VideoBitrateMode as aX, type VideoBitrateResult as aY, type ViewportConvertResult as aZ, type VinValidationResult as a_, type GpaCourseResult as aa, type GpaResult as ab, type IbanValidationResult as ac, type IpConversion as ad, type IsbnFormat as ae, type IsbnResult as af, type IsinValidationResult as ag, type LoanBalanceInput as ah, type LoanBalanceResult as ai, type LoanRefinanceResult as aj, type LoanResult as ak, type MarginMarkupField as al, type MarginMarkupInput as am, type MarginMarkupResult as an, type MortgagePointsResult as ao, type MovingAveragePoint as ap, type MovingAverageResult as aq, type NotationStyle as ar, type NumberBase as as, type PaybackPeriodInput as at, type PaybackPeriodResult as au, type PercentChangeDirection as av, type PercentageChangeResult as aw, type Permission as ax, type PxConvertResult as ay, type RoiInput as az, type AprApyResult as b, marginToMarkup as b$, autoFormat as b0, bumpVersion as b1, calcAspectRatio as b2, calcSubnet as b3, calculateBlendedLoanRate as b4, calculateBreakEven as b5, calculateCashBreakdown as b6, calculateCashRounding as b7, calculateCdMaturity as b8, calculateChange as b9, compareUnitPrices as bA, convert as bB, convertAprApy as bC, convertBytes as bD, convertIp as bE, coverBox as bF, decimalToIp as bG, decimalToIpCidr as bH, describePermissions as bI, fitIntoBox as bJ, formatNumber as bK, formatValue as bL, formatVwValue as bM, formatWithSeparator as bN, gcd as bO, ipFromBinary as bP, ipFromDecimal as bQ, ipFromHex as bR, ipToBinary as bS, ipToDecimal as bT, ipToDecimalCidr as bU, ipToHex as bV, ipToOctal as bW, isValid as bX, isValidCidr as bY, isValidIp as bZ, isValidIpv4 as b_, calculateCompoundInterest as ba, calculateCreditUtilization as bb, calculateDebtToIncomeRatio as bc, calculateDepreciationSchedule as bd, calculateDiscount as be, calculateEmi as bf, calculateExtraPaymentPayoff as bg, calculateFreelancerRate as bh, calculateGpa as bi, calculateLoan as bj, calculateLoanRefinance as bk, calculateMarginMarkup as bl, calculateMortgagePoints as bm, calculateMovingAverages as bn, calculatePaybackPeriod as bo, calculatePercentageChange as bp, calculateRoi as bq, calculateRuleOf72 as br, calculateSavingsGoal as bs, calculateSimpleInterest as bt, calculateTax as bu, calculateTaxEquivalentYield as bv, calculateTimeValue as bw, calculateTipSplit as bx, calculateVideoBitrate as by, compareSemver as bz, type AspectRatioResult as c, markupToMargin as c0, octalToPermissions as c1, parseFileSize as c2, parseInput as c3, parseNumberString as c4, parseSemver as c5, permissionsToChmod as c6, permissionsToOctal as c7, permissionsToSymbolic as c8, planDebtPayoff as c9, ptToPx as ca, pxToAll as cb, pxToViewport as cc, remToPx as cd, satisfiesRange as ce, scaleByHeight as cf, scaleByWidth as cg, sortVersions as ch, splitSubnet as ci, symbolicToPermissions as cj, validateBarcode as ck, validateCardNumber as cl, validateIban as cm, validateIsbn as cn, validateIsin as co, validateVin as cp, viewportToPx as cq, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BlendedLoanRateResult as i, type BreakEvenInput as j, type BreakEvenResult as k, type ByteConvertResult as l, type ByteUnit as m, COMMON_LOCALES as n, COMMON_PERMISSIONS as o, COMMON_RATIOS as p, COMMON_SIZES as q, COMMON_TAX_RATES as r, COMMON_TIP_PERCENTAGES as s, COMMON_VIEWPORTS as t, units as u, type CardValidationResult as v, type CashBreakdownResult as w, type CashChangeResult as x, type CashDenominationItem as y, type CashRoundingMode as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilix-tech/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.73.0",
|
|
4
4
|
"description": "154+ developer utility tools for Node.js: JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
|
|
5
5
|
"author": "Utilix <hello@utilix.tech>",
|
|
6
6
|
"license": "MIT",
|