@utilix-tech/sdk 0.73.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +14 -5
- package/dist/{api-C8rImfka.d.cts → api-CQnIUrVB.d.cts} +26 -2
- package/dist/{api-C8rImfka.d.ts → api-CQnIUrVB.d.ts} +26 -2
- package/dist/{chunk-XOUKIGJ4.js → chunk-RP574L5Z.js} +101 -1
- package/dist/{chunk-4S63T7Y4.js → chunk-U2HREMZU.js} +37 -2
- package/dist/{chunk-DAD2ZOTJ.js → chunk-XT2BQWXT.js} +163 -1
- package/dist/{code-CoeD4Fmq.d.ts → code-46xO9xFf.d.cts} +32 -2
- package/dist/{code-CoeD4Fmq.d.cts → code-46xO9xFf.d.ts} +32 -2
- package/dist/index.cjs +298 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/tools/api.cjs +35 -0
- package/dist/tools/api.d.cts +1 -1
- package/dist/tools/api.d.ts +1 -1
- package/dist/tools/api.js +1 -1
- package/dist/tools/code.cjs +162 -0
- package/dist/tools/code.d.cts +1 -1
- package/dist/tools/code.d.ts +1 -1
- package/dist/tools/code.js +1 -1
- package/dist/tools/units.cjs +100 -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-BgaUAUG5.d.cts → units-BqegyALA.d.cts} +70 -2
- package/dist/{units-BgaUAUG5.d.ts → units-BqegyALA.d.ts} +70 -2
- package/package.json +1 -1
package/dist/tools/api.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as COMMON_HEADERS, b as COMMON_PRESETS, c as CORS_COMMON_HEADERS, d as CorsConfig, e as CorsOutput, f as CspConfig, g as CspDirective, h as CspSource, i as CurlCommand, j as CurlConfig, D as DEFAULT_CORS_CONFIG, k as DIRECTIVE_DESCRIPTIONS, l as DirectiveConfig, F as FormatResult, H as HTTP_METHODS, m as Header, n as HotpResult, o as HttpMethod, J as JwkSummary, p as JwkThumbprintErrorResult, q as JwkThumbprintHash, r as JwkThumbprintOutcome, s as JwkThumbprintResult, t as JwksError, u as JwksParseResult, v as JwksResult, w as JwtAlgorithm, x as JwtDecodeError, y as JwtDecodeResult, z as JwtExpiry, A as JwtPart, B as JwtResult, E as JwtSignOptions, M as MetaTags, O as OgTags, G as OtpAlgorithm, I as OtpOptions, P as ParsedUrl, R as ResponseFormat, S as SUPPORTED_LANGUAGES, T as TargetLanguage, K as TotpOptions, L as TotpResult, N as TwitterTags, Q as
|
|
1
|
+
export { C as COMMON_HEADERS, b as COMMON_PRESETS, c as CORS_COMMON_HEADERS, d as CorsConfig, e as CorsOutput, f as CspConfig, g as CspDirective, h as CspSource, i as CurlCommand, j as CurlConfig, D as DEFAULT_CORS_CONFIG, k as DIRECTIVE_DESCRIPTIONS, l as DirectiveConfig, F as FormatResult, H as HTTP_METHODS, m as Header, n as HotpResult, o as HttpMethod, J as JwkSummary, p as JwkThumbprintErrorResult, q as JwkThumbprintHash, r as JwkThumbprintOutcome, s as JwkThumbprintResult, t as JwksError, u as JwksParseResult, v as JwksResult, w as JwtAlgorithm, x as JwtDecodeError, y as JwtDecodeResult, z as JwtExpiry, A as JwtPart, B as JwtResult, E as JwtSignOptions, M as MetaTags, O as OgTags, G as OtpAlgorithm, I as OtpOptions, P as ParsedUrl, R as ResponseFormat, S as SUPPORTED_LANGUAGES, T as TargetLanguage, K as TotpOptions, L as TotpResult, N as TwitterTags, W as WebhookHashAlgorithm, Q as WebhookSignatureResult, U as addParam, V as base64urlDecode, X as base64urlEncode, Y as buildCurl, Z as buildCurlMultiline, _ as buildUrl, $ as computeJwkThumbprint, a0 as convertToCode, a1 as decodeJwt, a2 as decodeUrlComponent, a3 as detectFormat, a4 as encodeUrlComponent, a5 as extractJsonPaths, a6 as formatJwtJson, a7 as formatResponse, a8 as generateCors, a9 as generateCspHeader, aa as generateFullHeader, ab as generateHotp, ac as generateMetaHtml, ad as generateTotp, ae as getParam, af as getStats, ag as isValidUrl, ah as normalizeUrl, ai as parseCspHeader, aj as parseCurl, ak as parseCurlCommand, al as parseJwks, am as parseMetaTags, an as parseUrl, ao as removeParam, ap as signJwt, aq as validateCorsConfig, ar as validateCspConfig, as as validateOgTags, at as verifyWebhookSignature } from '../api-CQnIUrVB.cjs';
|
package/dist/tools/api.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as COMMON_HEADERS, b as COMMON_PRESETS, c as CORS_COMMON_HEADERS, d as CorsConfig, e as CorsOutput, f as CspConfig, g as CspDirective, h as CspSource, i as CurlCommand, j as CurlConfig, D as DEFAULT_CORS_CONFIG, k as DIRECTIVE_DESCRIPTIONS, l as DirectiveConfig, F as FormatResult, H as HTTP_METHODS, m as Header, n as HotpResult, o as HttpMethod, J as JwkSummary, p as JwkThumbprintErrorResult, q as JwkThumbprintHash, r as JwkThumbprintOutcome, s as JwkThumbprintResult, t as JwksError, u as JwksParseResult, v as JwksResult, w as JwtAlgorithm, x as JwtDecodeError, y as JwtDecodeResult, z as JwtExpiry, A as JwtPart, B as JwtResult, E as JwtSignOptions, M as MetaTags, O as OgTags, G as OtpAlgorithm, I as OtpOptions, P as ParsedUrl, R as ResponseFormat, S as SUPPORTED_LANGUAGES, T as TargetLanguage, K as TotpOptions, L as TotpResult, N as TwitterTags, Q as
|
|
1
|
+
export { C as COMMON_HEADERS, b as COMMON_PRESETS, c as CORS_COMMON_HEADERS, d as CorsConfig, e as CorsOutput, f as CspConfig, g as CspDirective, h as CspSource, i as CurlCommand, j as CurlConfig, D as DEFAULT_CORS_CONFIG, k as DIRECTIVE_DESCRIPTIONS, l as DirectiveConfig, F as FormatResult, H as HTTP_METHODS, m as Header, n as HotpResult, o as HttpMethod, J as JwkSummary, p as JwkThumbprintErrorResult, q as JwkThumbprintHash, r as JwkThumbprintOutcome, s as JwkThumbprintResult, t as JwksError, u as JwksParseResult, v as JwksResult, w as JwtAlgorithm, x as JwtDecodeError, y as JwtDecodeResult, z as JwtExpiry, A as JwtPart, B as JwtResult, E as JwtSignOptions, M as MetaTags, O as OgTags, G as OtpAlgorithm, I as OtpOptions, P as ParsedUrl, R as ResponseFormat, S as SUPPORTED_LANGUAGES, T as TargetLanguage, K as TotpOptions, L as TotpResult, N as TwitterTags, W as WebhookHashAlgorithm, Q as WebhookSignatureResult, U as addParam, V as base64urlDecode, X as base64urlEncode, Y as buildCurl, Z as buildCurlMultiline, _ as buildUrl, $ as computeJwkThumbprint, a0 as convertToCode, a1 as decodeJwt, a2 as decodeUrlComponent, a3 as detectFormat, a4 as encodeUrlComponent, a5 as extractJsonPaths, a6 as formatJwtJson, a7 as formatResponse, a8 as generateCors, a9 as generateCspHeader, aa as generateFullHeader, ab as generateHotp, ac as generateMetaHtml, ad as generateTotp, ae as getParam, af as getStats, ag as isValidUrl, ah as normalizeUrl, ai as parseCspHeader, aj as parseCurl, ak as parseCurlCommand, al as parseJwks, am as parseMetaTags, an as parseUrl, ao as removeParam, ap as signJwt, aq as validateCorsConfig, ar as validateCspConfig, as as validateOgTags, at as verifyWebhookSignature } from '../api-CQnIUrVB.js';
|
package/dist/tools/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { COMMON_HEADERS, COMMON_PRESETS, CORS_COMMON_HEADERS, DEFAULT_CORS_CONFIG, DIRECTIVE_DESCRIPTIONS, HTTP_METHODS, SUPPORTED_LANGUAGES, addParam, base64urlDecode, base64urlEncode, buildCurl, buildCurlMultiline, buildUrl, computeJwkThumbprint, convertToCode, decodeJwt, decodeUrlComponent, detectFormat, encodeUrlComponent, extractJsonPaths, formatJwtJson, formatResponse, generateCors, generateCspHeader, generateFullHeader, generateHotp, generateMetaHtml, generateTotp, getParam, getStats, isValidUrl, normalizeUrl, parseCspHeader, parseCurl, parseCurlCommand, parseJwks, parseMetaTags, parseUrl, removeParam, signJwt, validateCorsConfig, validateCspConfig, validateOgTags } from '../chunk-
|
|
1
|
+
export { COMMON_HEADERS, COMMON_PRESETS, CORS_COMMON_HEADERS, DEFAULT_CORS_CONFIG, DIRECTIVE_DESCRIPTIONS, HTTP_METHODS, SUPPORTED_LANGUAGES, addParam, base64urlDecode, base64urlEncode, buildCurl, buildCurlMultiline, buildUrl, computeJwkThumbprint, convertToCode, decodeJwt, decodeUrlComponent, detectFormat, encodeUrlComponent, extractJsonPaths, formatJwtJson, formatResponse, generateCors, generateCspHeader, generateFullHeader, generateHotp, generateMetaHtml, generateTotp, getParam, getStats, isValidUrl, normalizeUrl, parseCspHeader, parseCurl, parseCurlCommand, parseJwks, parseMetaTags, parseUrl, removeParam, signJwt, validateCorsConfig, validateCspConfig, validateOgTags, verifyWebhookSignature } from '../chunk-U2HREMZU.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/dist/tools/code.cjs
CHANGED
|
@@ -3652,6 +3652,167 @@ function extractMarkdownFootnotes(markdown) {
|
|
|
3652
3652
|
}
|
|
3653
3653
|
return { definitionCount: definitions.length, referenceCount, definitions, references, unresolvedReferences, unusedDefinitions };
|
|
3654
3654
|
}
|
|
3655
|
+
var ARIA_GLOBAL_ATTRS = /* @__PURE__ */ new Set([
|
|
3656
|
+
"aria-atomic",
|
|
3657
|
+
"aria-busy",
|
|
3658
|
+
"aria-controls",
|
|
3659
|
+
"aria-current",
|
|
3660
|
+
"aria-describedby",
|
|
3661
|
+
"aria-details",
|
|
3662
|
+
"aria-disabled",
|
|
3663
|
+
"aria-dropeffect",
|
|
3664
|
+
"aria-errormessage",
|
|
3665
|
+
"aria-flowto",
|
|
3666
|
+
"aria-grabbed",
|
|
3667
|
+
"aria-haspopup",
|
|
3668
|
+
"aria-hidden",
|
|
3669
|
+
"aria-invalid",
|
|
3670
|
+
"aria-keyshortcuts",
|
|
3671
|
+
"aria-label",
|
|
3672
|
+
"aria-labelledby",
|
|
3673
|
+
"aria-live",
|
|
3674
|
+
"aria-owns",
|
|
3675
|
+
"aria-relevant",
|
|
3676
|
+
"aria-roledescription"
|
|
3677
|
+
]);
|
|
3678
|
+
var ARIA_ROLE_TABLE = {
|
|
3679
|
+
alert: { supported: ["aria-live", "aria-atomic"] },
|
|
3680
|
+
alertdialog: { supported: ["aria-modal"] },
|
|
3681
|
+
article: {},
|
|
3682
|
+
banner: {},
|
|
3683
|
+
button: { supported: ["aria-pressed", "aria-expanded", "aria-disabled"] },
|
|
3684
|
+
checkbox: { required: ["aria-checked"], supported: ["aria-readonly"] },
|
|
3685
|
+
columnheader: { supported: ["aria-sort", "aria-selected", "aria-readonly"] },
|
|
3686
|
+
combobox: { required: ["aria-expanded"], supported: ["aria-controls", "aria-autocomplete", "aria-activedescendant"] },
|
|
3687
|
+
complementary: {},
|
|
3688
|
+
contentinfo: {},
|
|
3689
|
+
dialog: { supported: ["aria-modal"] },
|
|
3690
|
+
form: {},
|
|
3691
|
+
grid: { supported: ["aria-multiselectable", "aria-activedescendant", "aria-level", "aria-readonly"] },
|
|
3692
|
+
gridcell: { supported: ["aria-selected", "aria-readonly", "aria-expanded"] },
|
|
3693
|
+
group: { supported: ["aria-activedescendant", "aria-disabled"] },
|
|
3694
|
+
heading: { required: ["aria-level"] },
|
|
3695
|
+
img: {},
|
|
3696
|
+
link: { supported: ["aria-disabled", "aria-expanded"] },
|
|
3697
|
+
list: {},
|
|
3698
|
+
listbox: { supported: ["aria-multiselectable", "aria-activedescendant", "aria-orientation"] },
|
|
3699
|
+
listitem: { supported: ["aria-level", "aria-posinset", "aria-setsize"] },
|
|
3700
|
+
log: { supported: ["aria-live", "aria-atomic"] },
|
|
3701
|
+
main: {},
|
|
3702
|
+
marquee: {},
|
|
3703
|
+
menu: { supported: ["aria-orientation", "aria-activedescendant"] },
|
|
3704
|
+
menubar: { supported: ["aria-orientation", "aria-activedescendant"] },
|
|
3705
|
+
menuitem: { supported: ["aria-disabled"] },
|
|
3706
|
+
menuitemcheckbox: { required: ["aria-checked"] },
|
|
3707
|
+
menuitemradio: { required: ["aria-checked"] },
|
|
3708
|
+
meter: { required: ["aria-valuenow"], supported: ["aria-valuemin", "aria-valuemax", "aria-valuetext"] },
|
|
3709
|
+
navigation: {},
|
|
3710
|
+
none: {},
|
|
3711
|
+
option: { supported: ["aria-selected", "aria-checked", "aria-posinset", "aria-setsize"] },
|
|
3712
|
+
presentation: {},
|
|
3713
|
+
progressbar: { supported: ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext"] },
|
|
3714
|
+
radio: { required: ["aria-checked"] },
|
|
3715
|
+
radiogroup: { supported: ["aria-activedescendant"] },
|
|
3716
|
+
region: {},
|
|
3717
|
+
row: { supported: ["aria-selected", "aria-level", "aria-expanded"] },
|
|
3718
|
+
rowheader: { supported: ["aria-sort", "aria-selected", "aria-readonly"] },
|
|
3719
|
+
scrollbar: { required: ["aria-valuenow", "aria-controls"], supported: ["aria-valuemin", "aria-valuemax", "aria-orientation"] },
|
|
3720
|
+
search: {},
|
|
3721
|
+
searchbox: { supported: ["aria-multiline", "aria-placeholder", "aria-readonly", "aria-required", "aria-activedescendant", "aria-autocomplete"] },
|
|
3722
|
+
separator: { supported: ["aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax"] },
|
|
3723
|
+
slider: { required: ["aria-valuenow"], supported: ["aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-orientation"] },
|
|
3724
|
+
spinbutton: { supported: ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-required"] },
|
|
3725
|
+
status: { supported: ["aria-live", "aria-atomic"] },
|
|
3726
|
+
switch: { required: ["aria-checked"] },
|
|
3727
|
+
tab: { supported: ["aria-selected", "aria-controls", "aria-disabled"] },
|
|
3728
|
+
table: { supported: ["aria-colcount", "aria-rowcount"] },
|
|
3729
|
+
tablist: { supported: ["aria-orientation", "aria-activedescendant", "aria-level"] },
|
|
3730
|
+
tabpanel: {},
|
|
3731
|
+
textbox: { supported: ["aria-multiline", "aria-placeholder", "aria-readonly", "aria-required", "aria-activedescendant", "aria-autocomplete"] },
|
|
3732
|
+
timer: {},
|
|
3733
|
+
toolbar: { supported: ["aria-orientation"] },
|
|
3734
|
+
tooltip: {},
|
|
3735
|
+
tree: { supported: ["aria-multiselectable", "aria-activedescendant", "aria-orientation"] },
|
|
3736
|
+
treegrid: { supported: ["aria-multiselectable", "aria-activedescendant", "aria-orientation", "aria-level", "aria-readonly"] },
|
|
3737
|
+
treeitem: { supported: ["aria-expanded", "aria-selected", "aria-checked", "aria-level"] }
|
|
3738
|
+
};
|
|
3739
|
+
var ARIA_ALL_KNOWN_ATTRS = new Set(ARIA_GLOBAL_ATTRS);
|
|
3740
|
+
for (const entry of Object.values(ARIA_ROLE_TABLE)) {
|
|
3741
|
+
for (const a of entry.required ?? []) ARIA_ALL_KNOWN_ATTRS.add(a);
|
|
3742
|
+
for (const a of entry.supported ?? []) ARIA_ALL_KNOWN_ATTRS.add(a);
|
|
3743
|
+
}
|
|
3744
|
+
var TAG_REGEX = /<([a-zA-Z][a-zA-Z0-9]*)\b((?:[^>"'/]|"[^"]*"|'[^']*')*)\/?>/g;
|
|
3745
|
+
var ATTR_REGEX = /([a-zA-Z][a-zA-Z0-9-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
|
|
3746
|
+
function parseElements(html) {
|
|
3747
|
+
const elements = [];
|
|
3748
|
+
let match;
|
|
3749
|
+
TAG_REGEX.lastIndex = 0;
|
|
3750
|
+
while ((match = TAG_REGEX.exec(html)) !== null) {
|
|
3751
|
+
const tag = match[1].toLowerCase();
|
|
3752
|
+
if (tag === "script" || tag === "style" || tag === "!--") continue;
|
|
3753
|
+
const attrsStr = match[2] ?? "";
|
|
3754
|
+
const attrs = {};
|
|
3755
|
+
let attrMatch;
|
|
3756
|
+
ATTR_REGEX.lastIndex = 0;
|
|
3757
|
+
while ((attrMatch = ATTR_REGEX.exec(attrsStr)) !== null) {
|
|
3758
|
+
const name = attrMatch[1].toLowerCase();
|
|
3759
|
+
const value = attrMatch[2] ?? attrMatch[3] ?? "";
|
|
3760
|
+
attrs[name] = value;
|
|
3761
|
+
}
|
|
3762
|
+
elements.push({ tag, attrs, raw: match[0].length > 80 ? match[0].slice(0, 77) + "..." : match[0] });
|
|
3763
|
+
}
|
|
3764
|
+
return elements;
|
|
3765
|
+
}
|
|
3766
|
+
function validateAria(html) {
|
|
3767
|
+
if (!html || !html.trim()) return { error: "Input is empty" };
|
|
3768
|
+
const elements = parseElements(html);
|
|
3769
|
+
if (elements.length === 0) return { error: "No HTML elements found" };
|
|
3770
|
+
const issues = [];
|
|
3771
|
+
let elementsWithRoleOrAria = 0;
|
|
3772
|
+
for (const el of elements) {
|
|
3773
|
+
const roleAttr = el.attrs["role"];
|
|
3774
|
+
const ariaAttrNames = Object.keys(el.attrs).filter((a) => a.startsWith("aria-"));
|
|
3775
|
+
if (roleAttr === void 0 && ariaAttrNames.length === 0) continue;
|
|
3776
|
+
elementsWithRoleOrAria++;
|
|
3777
|
+
const roles = roleAttr !== void 0 ? roleAttr.trim().split(/\s+/).filter(Boolean) : [];
|
|
3778
|
+
const knownRoles = roles.filter((r) => Object.prototype.hasOwnProperty.call(ARIA_ROLE_TABLE, r));
|
|
3779
|
+
const unknownRoles = roles.filter((r) => !Object.prototype.hasOwnProperty.call(ARIA_ROLE_TABLE, r));
|
|
3780
|
+
for (const r of unknownRoles) {
|
|
3781
|
+
issues.push({ element: el.raw, role: r, severity: "error", message: `Unknown ARIA role "${r}"` });
|
|
3782
|
+
}
|
|
3783
|
+
const primaryRole = knownRoles[0];
|
|
3784
|
+
const roleDef = primaryRole ? ARIA_ROLE_TABLE[primaryRole] : void 0;
|
|
3785
|
+
if (roleDef?.required) {
|
|
3786
|
+
for (const req of roleDef.required) {
|
|
3787
|
+
if (el.attrs[req] === void 0) {
|
|
3788
|
+
issues.push({ element: el.raw, role: primaryRole, severity: "error", message: `role="${primaryRole}" is missing required attribute ${req}` });
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
for (const attrName of ariaAttrNames) {
|
|
3793
|
+
if (ARIA_GLOBAL_ATTRS.has(attrName)) continue;
|
|
3794
|
+
if (roleDef) {
|
|
3795
|
+
const allowed = /* @__PURE__ */ new Set([...roleDef.required ?? [], ...roleDef.supported ?? []]);
|
|
3796
|
+
if (!allowed.has(attrName)) {
|
|
3797
|
+
issues.push({
|
|
3798
|
+
element: el.raw,
|
|
3799
|
+
role: primaryRole ?? null,
|
|
3800
|
+
severity: "error",
|
|
3801
|
+
message: primaryRole ? `${attrName} is not permitted on role="${primaryRole}"` : `${attrName} is not a global aria-* attribute`
|
|
3802
|
+
});
|
|
3803
|
+
}
|
|
3804
|
+
} else if (!ARIA_ALL_KNOWN_ATTRS.has(attrName)) {
|
|
3805
|
+
issues.push({ element: el.raw, role: null, severity: "warning", message: `${attrName} is not a recognized aria-* attribute (possible typo)` });
|
|
3806
|
+
}
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
return {
|
|
3810
|
+
elementCount: elements.length,
|
|
3811
|
+
elementsWithRoleOrAria,
|
|
3812
|
+
issues,
|
|
3813
|
+
valid: issues.every((i) => i.severity !== "error")
|
|
3814
|
+
};
|
|
3815
|
+
}
|
|
3655
3816
|
|
|
3656
3817
|
exports.ALL_FLAGS = ALL_FLAGS;
|
|
3657
3818
|
exports.CHEATSHEET = CHEATSHEET;
|
|
@@ -3709,6 +3870,7 @@ exports.splitStatements = splitStatements;
|
|
|
3709
3870
|
exports.testGitignorePatterns = testGitignorePatterns;
|
|
3710
3871
|
exports.testPattern = testPattern;
|
|
3711
3872
|
exports.testRegex = testRegex;
|
|
3873
|
+
exports.validateAria = validateAria;
|
|
3712
3874
|
exports.validateEditorConfig = validateEditorConfig;
|
|
3713
3875
|
exports.validateEnvKey = validateEnvKey;
|
|
3714
3876
|
exports.validatePackageExports = validatePackageExports;
|
package/dist/tools/code.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET,
|
|
1
|
+
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, d as AriaIssue, e as AriaValidationResult, C as CHEATSHEET, f as CheatsheetEntry, g as CommitTrailer, h as CommitTrailerResult, i as ConventionalCommitFinding, j as ConventionalCommitFooter, k as ConventionalCommitOptions, l as ConventionalCommitParsed, m as ConventionalCommitResult, n as ConventionalCommitSeverity, o as CssResult, D as DEFAULT_COMMIT_TYPES, p as DependencyAuditDuplicate, q as DependencyAuditEntry, r as DependencyAuditIssue, s as DependencyAuditResult, t as DependencyRangeType, u as DependencySection, v as DockerImageRef, E as EditorConfigIssue, w as EditorConfigProperty, x as EditorConfigSection, y as EditorConfigValidationResult, z as EnvEntry, B as EnvParseResult, F as ExportsIssue, G as ExportsShape, H as ExportsValidationResult, I as GitCommandConfig, J as GitCommandResult, K as GitOperation, L as GithubUrlInfo, M as GithubUrlType, N as GitignoreTestResult, O as GqlFormatResult, P as HtmlFormatResult, Q as HtmlMinifyOptions, R as HtmlMinifyResult, S as JsMinifyOptions, T as JsMinifyResult, U as MIME_TABLE, V as MarkdownFootnoteDefinition, W as MarkdownFootnoteReference, X as MarkdownFootnoteResult, Y as MatchResult, Z as MimeEntry, _ as MimeLookupResult, $ as OPERATIONS, a0 as ParsedSpec, a1 as RedosFinding, a2 as RedosResult, a3 as RedosSeverity, a4 as RegexBackreferenceInfo, a5 as RegexError, a6 as RegexFlag, a7 as RegexGroupAnalysis, a8 as RegexGroupInfo, a9 as RegexGroupIssue, aa as RegexMatch, ab as RegexResult, ac as RegexSuccess, ad as SQL_DEFAULT_OPTIONS, ae as Segment, af as SpecVersion, ag as SqlDialect, ah as SqlFormatOptions, ai as SvgSpriteResult, aj as SvgSpriteSymbol, ak as TestPatternResult, al as TsconfigIssue, am as TsconfigValidationResult, an as analyzeRegexGroups, ao as auditDependencyRanges, ap as buildDockerPull, aq as buildDockerRun, ar as buildGitCommand, as as collapseHtmlWhitespace, at as collapseJsWhitespace, au as countProperties, av as countRules, aw as detectDialect, ax as detectOperationType, ay as detectRedos, az as envToExport, aA as envToJson, aB as extractMarkdownFootnotes, aC as extractSvgSpriteSymbols, aD as formatCss, aE as formatGql, aF as formatHtml, aG as formatSql, aH as getEndpointsByTag, aI as getHtmlStats, aJ as getJsStats, aK as getMethodColor, aL as isValidTag, aM as lintConventionalCommit, aN as lookupMime, aO as minifyCss, aP as minifyGql, aQ as minifyHtml, aR as minifyJs, aS as minifySql, aT as normalizeRef, aU as parseCommitTrailers, aV as parseDockerImage, aW as parseEnv, aX as parseGitCommand, aY as parseGithubUrl, aZ as parseSpec, a_ as removeConsoleCalls, a$ as removeEmptyAttributes, b0 as removeHtmlComments, b1 as removeJsComments, b2 as removeRedundantAttributes, b3 as searchCheatsheet, b4 as searchEndpoints, b5 as splitStatements, b6 as testGitignorePatterns, b7 as testPattern, b8 as testRegex, b9 as validateAria, ba as validateEditorConfig, bb as validateEnvKey, bc as validatePackageExports, bd as validateTsconfig } from '../code-46xO9xFf.cjs';
|
package/dist/tools/code.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET,
|
|
1
|
+
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, d as AriaIssue, e as AriaValidationResult, C as CHEATSHEET, f as CheatsheetEntry, g as CommitTrailer, h as CommitTrailerResult, i as ConventionalCommitFinding, j as ConventionalCommitFooter, k as ConventionalCommitOptions, l as ConventionalCommitParsed, m as ConventionalCommitResult, n as ConventionalCommitSeverity, o as CssResult, D as DEFAULT_COMMIT_TYPES, p as DependencyAuditDuplicate, q as DependencyAuditEntry, r as DependencyAuditIssue, s as DependencyAuditResult, t as DependencyRangeType, u as DependencySection, v as DockerImageRef, E as EditorConfigIssue, w as EditorConfigProperty, x as EditorConfigSection, y as EditorConfigValidationResult, z as EnvEntry, B as EnvParseResult, F as ExportsIssue, G as ExportsShape, H as ExportsValidationResult, I as GitCommandConfig, J as GitCommandResult, K as GitOperation, L as GithubUrlInfo, M as GithubUrlType, N as GitignoreTestResult, O as GqlFormatResult, P as HtmlFormatResult, Q as HtmlMinifyOptions, R as HtmlMinifyResult, S as JsMinifyOptions, T as JsMinifyResult, U as MIME_TABLE, V as MarkdownFootnoteDefinition, W as MarkdownFootnoteReference, X as MarkdownFootnoteResult, Y as MatchResult, Z as MimeEntry, _ as MimeLookupResult, $ as OPERATIONS, a0 as ParsedSpec, a1 as RedosFinding, a2 as RedosResult, a3 as RedosSeverity, a4 as RegexBackreferenceInfo, a5 as RegexError, a6 as RegexFlag, a7 as RegexGroupAnalysis, a8 as RegexGroupInfo, a9 as RegexGroupIssue, aa as RegexMatch, ab as RegexResult, ac as RegexSuccess, ad as SQL_DEFAULT_OPTIONS, ae as Segment, af as SpecVersion, ag as SqlDialect, ah as SqlFormatOptions, ai as SvgSpriteResult, aj as SvgSpriteSymbol, ak as TestPatternResult, al as TsconfigIssue, am as TsconfigValidationResult, an as analyzeRegexGroups, ao as auditDependencyRanges, ap as buildDockerPull, aq as buildDockerRun, ar as buildGitCommand, as as collapseHtmlWhitespace, at as collapseJsWhitespace, au as countProperties, av as countRules, aw as detectDialect, ax as detectOperationType, ay as detectRedos, az as envToExport, aA as envToJson, aB as extractMarkdownFootnotes, aC as extractSvgSpriteSymbols, aD as formatCss, aE as formatGql, aF as formatHtml, aG as formatSql, aH as getEndpointsByTag, aI as getHtmlStats, aJ as getJsStats, aK as getMethodColor, aL as isValidTag, aM as lintConventionalCommit, aN as lookupMime, aO as minifyCss, aP as minifyGql, aQ as minifyHtml, aR as minifyJs, aS as minifySql, aT as normalizeRef, aU as parseCommitTrailers, aV as parseDockerImage, aW as parseEnv, aX as parseGitCommand, aY as parseGithubUrl, aZ as parseSpec, a_ as removeConsoleCalls, a$ as removeEmptyAttributes, b0 as removeHtmlComments, b1 as removeJsComments, b2 as removeRedundantAttributes, b3 as searchCheatsheet, b4 as searchEndpoints, b5 as splitStatements, b6 as testGitignorePatterns, b7 as testPattern, b8 as testRegex, b9 as validateAria, ba as validateEditorConfig, bb as validateEnvKey, bc as validatePackageExports, bd as validateTsconfig } from '../code-46xO9xFf.js';
|
package/dist/tools/code.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractMarkdownFootnotes, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseCommitTrailers, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig } from '../chunk-
|
|
1
|
+
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractMarkdownFootnotes, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseCommitTrailers, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateAria, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig } from '../chunk-XT2BQWXT.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/dist/tools/units.cjs
CHANGED
|
@@ -2554,6 +2554,103 @@ function calculateMortgagePoints(loanAmount, baseRatePercent, termMonths, points
|
|
|
2554
2554
|
totalInterestSavings: round2(withoutPoints.totalInterest - withPoints.totalInterest)
|
|
2555
2555
|
};
|
|
2556
2556
|
}
|
|
2557
|
+
function calculateLoanPrepaymentPenalty(payoffBalance, penaltyType, params) {
|
|
2558
|
+
if (!Number.isFinite(payoffBalance) || payoffBalance <= 0) {
|
|
2559
|
+
return { error: "Payoff balance must be a positive number" };
|
|
2560
|
+
}
|
|
2561
|
+
if (penaltyType !== "percent-of-balance" && penaltyType !== "months-of-interest") {
|
|
2562
|
+
return { error: 'penaltyType must be "percent-of-balance" or "months-of-interest"' };
|
|
2563
|
+
}
|
|
2564
|
+
let penaltyAmount;
|
|
2565
|
+
if (penaltyType === "percent-of-balance") {
|
|
2566
|
+
const penaltyPercent = params.penaltyPercent;
|
|
2567
|
+
if (!Number.isFinite(penaltyPercent) || penaltyPercent < 0) {
|
|
2568
|
+
return { error: "penaltyPercent must be zero or a positive number" };
|
|
2569
|
+
}
|
|
2570
|
+
penaltyAmount = round2(payoffBalance * (penaltyPercent / 100));
|
|
2571
|
+
} else {
|
|
2572
|
+
const monthsOfInterest = params.monthsOfInterest;
|
|
2573
|
+
const annualRatePercent = params.annualRatePercent;
|
|
2574
|
+
if (!Number.isFinite(monthsOfInterest) || monthsOfInterest < 0) {
|
|
2575
|
+
return { error: "monthsOfInterest must be zero or a positive number" };
|
|
2576
|
+
}
|
|
2577
|
+
if (!Number.isFinite(annualRatePercent) || annualRatePercent < 0) {
|
|
2578
|
+
return { error: "annualRatePercent must be zero or a positive number" };
|
|
2579
|
+
}
|
|
2580
|
+
const monthlyInterest = payoffBalance * (annualRatePercent / 100 / 12);
|
|
2581
|
+
penaltyAmount = round2(monthlyInterest * monthsOfInterest);
|
|
2582
|
+
}
|
|
2583
|
+
return {
|
|
2584
|
+
payoffBalance: round2(payoffBalance),
|
|
2585
|
+
penaltyType,
|
|
2586
|
+
penaltyAmount,
|
|
2587
|
+
effectivePenaltyPercent: round2(penaltyAmount / payoffBalance * 100),
|
|
2588
|
+
totalPayoffCost: round2(payoffBalance + penaltyAmount)
|
|
2589
|
+
};
|
|
2590
|
+
}
|
|
2591
|
+
var FILE_SIZE_UNIT_BYTES = {
|
|
2592
|
+
B: 1,
|
|
2593
|
+
KB: 1e3,
|
|
2594
|
+
MB: 1e6,
|
|
2595
|
+
GB: 1e9,
|
|
2596
|
+
TB: 1e12
|
|
2597
|
+
};
|
|
2598
|
+
var SPEED_UNIT_BITS_PER_SECOND = {
|
|
2599
|
+
Kbps: 1e3,
|
|
2600
|
+
Mbps: 1e6,
|
|
2601
|
+
Gbps: 1e9,
|
|
2602
|
+
KBps: 1e3 * 8,
|
|
2603
|
+
MBps: 1e6 * 8,
|
|
2604
|
+
GBps: 1e9 * 8
|
|
2605
|
+
};
|
|
2606
|
+
function formatDurationSeconds(totalSeconds) {
|
|
2607
|
+
if (totalSeconds < 1) return `${(totalSeconds * 1e3).toFixed(0)}ms`;
|
|
2608
|
+
if (totalSeconds < 60) {
|
|
2609
|
+
const decimals = totalSeconds < 10 && totalSeconds % 1 !== 0 ? 1 : 0;
|
|
2610
|
+
return `${totalSeconds.toFixed(decimals)}s`;
|
|
2611
|
+
}
|
|
2612
|
+
const days = Math.floor(totalSeconds / 86400);
|
|
2613
|
+
const hours = Math.floor(totalSeconds % 86400 / 3600);
|
|
2614
|
+
const minutes = Math.floor(totalSeconds % 3600 / 60);
|
|
2615
|
+
const seconds = Math.round(totalSeconds % 60);
|
|
2616
|
+
const parts = [];
|
|
2617
|
+
if (days > 0) parts.push(`${days}d`);
|
|
2618
|
+
if (hours > 0) parts.push(`${hours}h`);
|
|
2619
|
+
if (minutes > 0) parts.push(`${minutes}m`);
|
|
2620
|
+
if (seconds > 0 || parts.length === 0) parts.push(`${seconds}s`);
|
|
2621
|
+
return parts.join(" ");
|
|
2622
|
+
}
|
|
2623
|
+
function calculateTransferTime(fileSize, fileSizeUnit, speed, speedUnit) {
|
|
2624
|
+
if (!Number.isFinite(fileSize) || fileSize <= 0) return { error: "File size must be a positive number" };
|
|
2625
|
+
if (!Number.isFinite(speed) || speed <= 0) return { error: "Connection speed must be a positive number" };
|
|
2626
|
+
if (!(fileSizeUnit in FILE_SIZE_UNIT_BYTES)) return { error: `Unsupported file size unit: ${fileSizeUnit}` };
|
|
2627
|
+
if (!(speedUnit in SPEED_UNIT_BITS_PER_SECOND)) return { error: `Unsupported speed unit: ${speedUnit}` };
|
|
2628
|
+
const fileSizeBytes = fileSize * FILE_SIZE_UNIT_BYTES[fileSizeUnit];
|
|
2629
|
+
const speedBitsPerSecond = speed * SPEED_UNIT_BITS_PER_SECOND[speedUnit];
|
|
2630
|
+
const transferTimeSeconds = fileSizeBytes * 8 / speedBitsPerSecond;
|
|
2631
|
+
return {
|
|
2632
|
+
fileSizeBytes,
|
|
2633
|
+
speedBitsPerSecond,
|
|
2634
|
+
transferTimeSeconds,
|
|
2635
|
+
formattedTime: formatDurationSeconds(transferTimeSeconds)
|
|
2636
|
+
};
|
|
2637
|
+
}
|
|
2638
|
+
function calculateRequiredBandwidth(fileSize, fileSizeUnit, targetSeconds) {
|
|
2639
|
+
if (!Number.isFinite(fileSize) || fileSize <= 0) return { error: "File size must be a positive number" };
|
|
2640
|
+
if (!Number.isFinite(targetSeconds) || targetSeconds <= 0) {
|
|
2641
|
+
return { error: "Target time must be a positive number of seconds" };
|
|
2642
|
+
}
|
|
2643
|
+
if (!(fileSizeUnit in FILE_SIZE_UNIT_BYTES)) return { error: `Unsupported file size unit: ${fileSizeUnit}` };
|
|
2644
|
+
const fileSizeBytes = fileSize * FILE_SIZE_UNIT_BYTES[fileSizeUnit];
|
|
2645
|
+
const requiredBitsPerSecond = fileSizeBytes * 8 / targetSeconds;
|
|
2646
|
+
return {
|
|
2647
|
+
fileSizeBytes,
|
|
2648
|
+
targetSeconds,
|
|
2649
|
+
requiredBitsPerSecond,
|
|
2650
|
+
requiredMbps: requiredBitsPerSecond / 1e6,
|
|
2651
|
+
requiredMBps: requiredBitsPerSecond / 8 / 1e6
|
|
2652
|
+
};
|
|
2653
|
+
}
|
|
2557
2654
|
|
|
2558
2655
|
exports.BASE_LABELS = BASE_LABELS;
|
|
2559
2656
|
exports.BASE_PREFIXES = BASE_PREFIXES;
|
|
@@ -2589,12 +2686,14 @@ exports.calculateExtraPaymentPayoff = calculateExtraPaymentPayoff;
|
|
|
2589
2686
|
exports.calculateFreelancerRate = calculateFreelancerRate;
|
|
2590
2687
|
exports.calculateGpa = calculateGpa;
|
|
2591
2688
|
exports.calculateLoan = calculateLoan;
|
|
2689
|
+
exports.calculateLoanPrepaymentPenalty = calculateLoanPrepaymentPenalty;
|
|
2592
2690
|
exports.calculateLoanRefinance = calculateLoanRefinance;
|
|
2593
2691
|
exports.calculateMarginMarkup = calculateMarginMarkup;
|
|
2594
2692
|
exports.calculateMortgagePoints = calculateMortgagePoints;
|
|
2595
2693
|
exports.calculateMovingAverages = calculateMovingAverages;
|
|
2596
2694
|
exports.calculatePaybackPeriod = calculatePaybackPeriod;
|
|
2597
2695
|
exports.calculatePercentageChange = calculatePercentageChange;
|
|
2696
|
+
exports.calculateRequiredBandwidth = calculateRequiredBandwidth;
|
|
2598
2697
|
exports.calculateRoi = calculateRoi;
|
|
2599
2698
|
exports.calculateRuleOf72 = calculateRuleOf72;
|
|
2600
2699
|
exports.calculateSavingsGoal = calculateSavingsGoal;
|
|
@@ -2603,6 +2702,7 @@ exports.calculateTax = calculateTax;
|
|
|
2603
2702
|
exports.calculateTaxEquivalentYield = calculateTaxEquivalentYield;
|
|
2604
2703
|
exports.calculateTimeValue = calculateTimeValue;
|
|
2605
2704
|
exports.calculateTipSplit = calculateTipSplit;
|
|
2705
|
+
exports.calculateTransferTime = calculateTransferTime;
|
|
2606
2706
|
exports.calculateVideoBitrate = calculateVideoBitrate;
|
|
2607
2707
|
exports.compareSemver = compareSemver;
|
|
2608
2708
|
exports.compareUnitPrices = compareUnitPrices;
|
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
|
|
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 FileSizeUnit, a6 as FormatOptions, a7 as FreelancerRateInput, a8 as FreelancerRateResult, a9 as GPA_GRADE_POINTS, aa as GpaCourse, ab as GpaCourseResult, ac as GpaResult, ad as IbanValidationResult, ae as IpConversion, af as IsbnFormat, ag as IsbnResult, ah as IsinValidationResult, ai as LoanBalanceInput, aj as LoanBalanceResult, ak as LoanPrepaymentPenaltyResult, al as LoanRefinanceResult, am as LoanResult, an as MarginMarkupField, ao as MarginMarkupInput, ap as MarginMarkupResult, aq as MortgagePointsResult, ar as MovingAveragePoint, as as MovingAverageResult, at as NotationStyle, au as NumberBase, av as PaybackPeriodInput, aw as PaybackPeriodResult, ax as PercentChangeDirection, ay as PercentageChangeResult, az as Permission, aA as PrepaymentPenaltyType, aB as PxConvertResult, aC as RequiredBandwidthResult, aD as RoiInput, aE as RoiResult, aF as RuleOf72Direction, aG as RuleOf72Result, aH as SavingsGoalInput, aI as SavingsGoalMode, aJ as SavingsGoalResult, aK as SemverVersion, aL as SimpleInterestResult, aM as SubnetInfo, aN as SuccessiveDiscountResult, aO as SuccessiveDiscountStep, aP as TaxDirection, aQ as TaxEquivalentYieldDirection, aR as TaxEquivalentYieldResult, aS as TaxResult, aT as TimeValueDirection, aU as TimeValueResult, aV as TipSplitResult, aW as TransferSpeedUnit, aX as TransferTimeResult, aY as USD_DENOMINATIONS, aZ as UnitPriceItem, a_ as UnitPriceResult, a$ as UtilizationTier, b0 as VideoBitrateInput, b1 as VideoBitrateMode, b2 as VideoBitrateResult, b3 as ViewportConvertResult, b4 as VinValidationResult, b5 as applySuccessiveDiscounts, b6 as autoFormat, b7 as bumpVersion, b8 as calcAspectRatio, b9 as calcSubnet, ba as calculateBlendedLoanRate, bb as calculateBreakEven, bc as calculateCashBreakdown, bd as calculateCashRounding, be as calculateCdMaturity, bf as calculateChange, bg as calculateCompoundInterest, bh as calculateCreditUtilization, bi as calculateDebtToIncomeRatio, bj as calculateDepreciationSchedule, bk as calculateDiscount, bl as calculateEmi, bm as calculateExtraPaymentPayoff, bn as calculateFreelancerRate, bo as calculateGpa, bp as calculateLoan, bq as calculateLoanPrepaymentPenalty, br as calculateLoanRefinance, bs as calculateMarginMarkup, bt as calculateMortgagePoints, bu as calculateMovingAverages, bv as calculatePaybackPeriod, bw as calculatePercentageChange, bx as calculateRequiredBandwidth, by as calculateRoi, bz as calculateRuleOf72, bA as calculateSavingsGoal, bB as calculateSimpleInterest, bC as calculateTax, bD as calculateTaxEquivalentYield, bE as calculateTimeValue, bF as calculateTipSplit, bG as calculateTransferTime, bH as calculateVideoBitrate, bI as compareSemver, bJ as compareUnitPrices, bK as convert, bL as convertAprApy, bM as convertBytes, bN as convertIp, bO as coverBox, bP as decimalToIp, bQ as decimalToIpCidr, bR as describePermissions, bS as fitIntoBox, bT as formatNumber, bU as formatValue, bV as formatVwValue, bW as formatWithSeparator, bX as gcd, bY as ipFromBinary, bZ as ipFromDecimal, b_ as ipFromHex, b$ as ipToBinary, c0 as ipToDecimal, c1 as ipToDecimalCidr, c2 as ipToHex, c3 as ipToOctal, c4 as isValid, c5 as isValidCidr, c6 as isValidIp, c7 as isValidIpv4, c8 as marginToMarkup, c9 as markupToMargin, ca as octalToPermissions, cb as parseFileSize, cc as parseInput, cd as parseNumberString, ce as parseSemver, cf as permissionsToChmod, cg as permissionsToOctal, ch as permissionsToSymbolic, ci as planDebtPayoff, cj as ptToPx, ck as pxToAll, cl as pxToViewport, cm as remToPx, cn as satisfiesRange, co as scaleByHeight, cp as scaleByWidth, cq as sortVersions, cr as splitSubnet, cs as symbolicToPermissions, ct as validateBarcode, cu as validateCardNumber, cv as validateIban, cw as validateIsbn, cx as validateIsin, cy as validateVin, cz as viewportToPx } from '../units-BqegyALA.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
|
|
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 FileSizeUnit, a6 as FormatOptions, a7 as FreelancerRateInput, a8 as FreelancerRateResult, a9 as GPA_GRADE_POINTS, aa as GpaCourse, ab as GpaCourseResult, ac as GpaResult, ad as IbanValidationResult, ae as IpConversion, af as IsbnFormat, ag as IsbnResult, ah as IsinValidationResult, ai as LoanBalanceInput, aj as LoanBalanceResult, ak as LoanPrepaymentPenaltyResult, al as LoanRefinanceResult, am as LoanResult, an as MarginMarkupField, ao as MarginMarkupInput, ap as MarginMarkupResult, aq as MortgagePointsResult, ar as MovingAveragePoint, as as MovingAverageResult, at as NotationStyle, au as NumberBase, av as PaybackPeriodInput, aw as PaybackPeriodResult, ax as PercentChangeDirection, ay as PercentageChangeResult, az as Permission, aA as PrepaymentPenaltyType, aB as PxConvertResult, aC as RequiredBandwidthResult, aD as RoiInput, aE as RoiResult, aF as RuleOf72Direction, aG as RuleOf72Result, aH as SavingsGoalInput, aI as SavingsGoalMode, aJ as SavingsGoalResult, aK as SemverVersion, aL as SimpleInterestResult, aM as SubnetInfo, aN as SuccessiveDiscountResult, aO as SuccessiveDiscountStep, aP as TaxDirection, aQ as TaxEquivalentYieldDirection, aR as TaxEquivalentYieldResult, aS as TaxResult, aT as TimeValueDirection, aU as TimeValueResult, aV as TipSplitResult, aW as TransferSpeedUnit, aX as TransferTimeResult, aY as USD_DENOMINATIONS, aZ as UnitPriceItem, a_ as UnitPriceResult, a$ as UtilizationTier, b0 as VideoBitrateInput, b1 as VideoBitrateMode, b2 as VideoBitrateResult, b3 as ViewportConvertResult, b4 as VinValidationResult, b5 as applySuccessiveDiscounts, b6 as autoFormat, b7 as bumpVersion, b8 as calcAspectRatio, b9 as calcSubnet, ba as calculateBlendedLoanRate, bb as calculateBreakEven, bc as calculateCashBreakdown, bd as calculateCashRounding, be as calculateCdMaturity, bf as calculateChange, bg as calculateCompoundInterest, bh as calculateCreditUtilization, bi as calculateDebtToIncomeRatio, bj as calculateDepreciationSchedule, bk as calculateDiscount, bl as calculateEmi, bm as calculateExtraPaymentPayoff, bn as calculateFreelancerRate, bo as calculateGpa, bp as calculateLoan, bq as calculateLoanPrepaymentPenalty, br as calculateLoanRefinance, bs as calculateMarginMarkup, bt as calculateMortgagePoints, bu as calculateMovingAverages, bv as calculatePaybackPeriod, bw as calculatePercentageChange, bx as calculateRequiredBandwidth, by as calculateRoi, bz as calculateRuleOf72, bA as calculateSavingsGoal, bB as calculateSimpleInterest, bC as calculateTax, bD as calculateTaxEquivalentYield, bE as calculateTimeValue, bF as calculateTipSplit, bG as calculateTransferTime, bH as calculateVideoBitrate, bI as compareSemver, bJ as compareUnitPrices, bK as convert, bL as convertAprApy, bM as convertBytes, bN as convertIp, bO as coverBox, bP as decimalToIp, bQ as decimalToIpCidr, bR as describePermissions, bS as fitIntoBox, bT as formatNumber, bU as formatValue, bV as formatVwValue, bW as formatWithSeparator, bX as gcd, bY as ipFromBinary, bZ as ipFromDecimal, b_ as ipFromHex, b$ as ipToBinary, c0 as ipToDecimal, c1 as ipToDecimalCidr, c2 as ipToHex, c3 as ipToOctal, c4 as isValid, c5 as isValidCidr, c6 as isValidIp, c7 as isValidIpv4, c8 as marginToMarkup, c9 as markupToMargin, ca as octalToPermissions, cb as parseFileSize, cc as parseInput, cd as parseNumberString, ce as parseSemver, cf as permissionsToChmod, cg as permissionsToOctal, ch as permissionsToSymbolic, ci as planDebtPayoff, cj as ptToPx, ck as pxToAll, cl as pxToViewport, cm as remToPx, cn as satisfiesRange, co as scaleByHeight, cp as scaleByWidth, cq as sortVersions, cr as splitSubnet, cs as symbolicToPermissions, ct as validateBarcode, cu as validateCardNumber, cv as validateIban, cw as validateIsbn, cx as validateIsin, cy as validateVin, cz as viewportToPx } from '../units-BqegyALA.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, 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-
|
|
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, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateTransferTime, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, validateIsin, validateVin, viewportToPx } from '../chunk-RP574L5Z.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|