@utilix-tech/sdk 0.50.0 → 0.52.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 +7 -0
- package/README.md +16 -3
- package/dist/{chunk-JL7YTXRB.js → chunk-K4ZERKBD.js} +338 -2
- package/dist/{chunk-MDREETCH.js → chunk-ZZJPD366.js} +53 -1
- package/dist/{code-KXoRsHtl.d.cts → code-B_gDkRAx.d.cts} +67 -2
- package/dist/{code-KXoRsHtl.d.ts → code-B_gDkRAx.d.ts} +67 -2
- package/dist/index.cjs +389 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/tools/code.cjs +336 -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 +52 -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-DNz6YS5D.d.cts → units-y30YVhqI.d.cts} +35 -2
- package/dist/{units-DNz6YS5D.d.ts → units-y30YVhqI.d.ts} +35 -2
- package/package.json +1 -1
package/dist/tools/code.cjs
CHANGED
|
@@ -2886,6 +2886,340 @@ function testGitignorePatterns(gitignoreContent, paths) {
|
|
|
2886
2886
|
return { path, ignored, matchedPattern, matchedLine };
|
|
2887
2887
|
});
|
|
2888
2888
|
}
|
|
2889
|
+
var EDITORCONFIG_ENUM_PROPERTIES = {
|
|
2890
|
+
indent_style: ["tab", "space"],
|
|
2891
|
+
end_of_line: ["lf", "cr", "crlf"],
|
|
2892
|
+
charset: ["latin1", "utf-8", "utf-8-bom", "utf-16be", "utf-16le"],
|
|
2893
|
+
trim_trailing_whitespace: ["true", "false"],
|
|
2894
|
+
insert_final_newline: ["true", "false"]
|
|
2895
|
+
};
|
|
2896
|
+
var EDITORCONFIG_KNOWN_PROPERTIES = /* @__PURE__ */ new Set([
|
|
2897
|
+
"indent_style",
|
|
2898
|
+
"indent_size",
|
|
2899
|
+
"tab_width",
|
|
2900
|
+
"end_of_line",
|
|
2901
|
+
"charset",
|
|
2902
|
+
"trim_trailing_whitespace",
|
|
2903
|
+
"insert_final_newline",
|
|
2904
|
+
"max_line_length",
|
|
2905
|
+
"root"
|
|
2906
|
+
]);
|
|
2907
|
+
var POSITIVE_INT_RE = /^[1-9][0-9]*$/;
|
|
2908
|
+
function validateEditorConfig(text) {
|
|
2909
|
+
if (!text || !text.trim()) return { error: "Input is empty" };
|
|
2910
|
+
const lines = text.split("\n");
|
|
2911
|
+
const issues = [];
|
|
2912
|
+
const sections = [];
|
|
2913
|
+
let root = false;
|
|
2914
|
+
let rootSeen = false;
|
|
2915
|
+
let currentSection = null;
|
|
2916
|
+
for (let i = 0; i < lines.length; i++) {
|
|
2917
|
+
const lineNum = i + 1;
|
|
2918
|
+
const trimmed = lines[i].trim();
|
|
2919
|
+
if (!trimmed || trimmed.startsWith("#") || trimmed.startsWith(";")) continue;
|
|
2920
|
+
const sectionMatch = trimmed.match(/^\[(.*)\]$/);
|
|
2921
|
+
if (sectionMatch) {
|
|
2922
|
+
const glob = sectionMatch[1];
|
|
2923
|
+
if (!glob) {
|
|
2924
|
+
issues.push({ severity: "warning", line: lineNum, message: 'Section header is empty ("[]" matches no files)' });
|
|
2925
|
+
}
|
|
2926
|
+
if (sections.some((s) => s.glob === glob)) {
|
|
2927
|
+
issues.push({ severity: "warning", line: lineNum, message: `Duplicate section "[${glob}]" (an earlier section already uses this exact glob)` });
|
|
2928
|
+
}
|
|
2929
|
+
currentSection = { glob, line: lineNum, properties: [] };
|
|
2930
|
+
sections.push(currentSection);
|
|
2931
|
+
continue;
|
|
2932
|
+
}
|
|
2933
|
+
const eqIdx = trimmed.indexOf("=");
|
|
2934
|
+
if (eqIdx === -1) {
|
|
2935
|
+
issues.push({ severity: "error", line: lineNum, message: `Malformed line (missing '='): "${trimmed}"` });
|
|
2936
|
+
continue;
|
|
2937
|
+
}
|
|
2938
|
+
const rawKey = trimmed.slice(0, eqIdx).trim();
|
|
2939
|
+
const key = rawKey.toLowerCase();
|
|
2940
|
+
const rawValue = trimmed.slice(eqIdx + 1).trim();
|
|
2941
|
+
const normalizedValue = rawValue.toLowerCase();
|
|
2942
|
+
if (!rawKey) {
|
|
2943
|
+
issues.push({ severity: "error", line: lineNum, message: "Property is missing a name" });
|
|
2944
|
+
continue;
|
|
2945
|
+
}
|
|
2946
|
+
if (key === "root") {
|
|
2947
|
+
if (sections.length > 0) {
|
|
2948
|
+
issues.push({ severity: "error", line: lineNum, message: `"root" must appear before any section, in the file's preamble` });
|
|
2949
|
+
} else if (rootSeen) {
|
|
2950
|
+
issues.push({ severity: "warning", line: lineNum, message: 'Duplicate "root" declaration' });
|
|
2951
|
+
} else if (normalizedValue !== "true" && normalizedValue !== "false") {
|
|
2952
|
+
issues.push({ severity: "error", line: lineNum, message: `"root" must be "true" or "false", got "${rawValue}"` });
|
|
2953
|
+
} else {
|
|
2954
|
+
root = normalizedValue === "true";
|
|
2955
|
+
}
|
|
2956
|
+
rootSeen = true;
|
|
2957
|
+
continue;
|
|
2958
|
+
}
|
|
2959
|
+
if (!currentSection) {
|
|
2960
|
+
issues.push({ severity: "error", line: lineNum, message: `Property "${rawKey}" found before any section header` });
|
|
2961
|
+
continue;
|
|
2962
|
+
}
|
|
2963
|
+
if (currentSection.properties.some((p) => p.key === key)) {
|
|
2964
|
+
issues.push({ severity: "warning", line: lineNum, message: `Duplicate property "${key}" in section "[${currentSection.glob}]"` });
|
|
2965
|
+
}
|
|
2966
|
+
currentSection.properties.push({ key, value: rawValue, line: lineNum });
|
|
2967
|
+
if (!EDITORCONFIG_KNOWN_PROPERTIES.has(key)) {
|
|
2968
|
+
issues.push({ severity: "warning", line: lineNum, message: `Unknown property "${key}"` });
|
|
2969
|
+
continue;
|
|
2970
|
+
}
|
|
2971
|
+
if (key in EDITORCONFIG_ENUM_PROPERTIES) {
|
|
2972
|
+
if (!EDITORCONFIG_ENUM_PROPERTIES[key].includes(normalizedValue)) {
|
|
2973
|
+
issues.push({ severity: "error", line: lineNum, message: `"${key}" must be one of ${EDITORCONFIG_ENUM_PROPERTIES[key].join(", ")}, got "${rawValue}"` });
|
|
2974
|
+
}
|
|
2975
|
+
} else if (key === "indent_size") {
|
|
2976
|
+
if (normalizedValue !== "tab" && !POSITIVE_INT_RE.test(rawValue)) {
|
|
2977
|
+
issues.push({ severity: "error", line: lineNum, message: `"indent_size" must be a positive integer or "tab", got "${rawValue}"` });
|
|
2978
|
+
}
|
|
2979
|
+
} else if (key === "tab_width") {
|
|
2980
|
+
if (!POSITIVE_INT_RE.test(rawValue)) {
|
|
2981
|
+
issues.push({ severity: "error", line: lineNum, message: `"tab_width" must be a positive integer, got "${rawValue}"` });
|
|
2982
|
+
}
|
|
2983
|
+
} else if (key === "max_line_length") {
|
|
2984
|
+
if (normalizedValue !== "off" && !POSITIVE_INT_RE.test(rawValue)) {
|
|
2985
|
+
issues.push({ severity: "error", line: lineNum, message: `"max_line_length" must be a positive integer or "off", got "${rawValue}"` });
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
if (sections.length === 0 && !rootSeen) {
|
|
2990
|
+
issues.push({ severity: "warning", line: 1, message: "File has no section headers and no root declaration" });
|
|
2991
|
+
}
|
|
2992
|
+
const valid = !issues.some((i) => i.severity === "error");
|
|
2993
|
+
return { root, sections, issues, valid };
|
|
2994
|
+
}
|
|
2995
|
+
function stripJsonComments(input) {
|
|
2996
|
+
let out = "";
|
|
2997
|
+
let i = 0;
|
|
2998
|
+
const n = input.length;
|
|
2999
|
+
let inString = false;
|
|
3000
|
+
while (i < n) {
|
|
3001
|
+
const c = input[i];
|
|
3002
|
+
const next = input[i + 1];
|
|
3003
|
+
if (inString) {
|
|
3004
|
+
out += c;
|
|
3005
|
+
if (c === "\\") {
|
|
3006
|
+
out += next ?? "";
|
|
3007
|
+
i += 2;
|
|
3008
|
+
continue;
|
|
3009
|
+
}
|
|
3010
|
+
if (c === '"') inString = false;
|
|
3011
|
+
i++;
|
|
3012
|
+
continue;
|
|
3013
|
+
}
|
|
3014
|
+
if (c === '"') {
|
|
3015
|
+
inString = true;
|
|
3016
|
+
out += c;
|
|
3017
|
+
i++;
|
|
3018
|
+
continue;
|
|
3019
|
+
}
|
|
3020
|
+
if (c === "/" && next === "/") {
|
|
3021
|
+
while (i < n && input[i] !== "\n") i++;
|
|
3022
|
+
continue;
|
|
3023
|
+
}
|
|
3024
|
+
if (c === "/" && next === "*") {
|
|
3025
|
+
i += 2;
|
|
3026
|
+
while (i < n && !(input[i] === "*" && input[i + 1] === "/")) {
|
|
3027
|
+
out += input[i] === "\n" ? "\n" : "";
|
|
3028
|
+
i++;
|
|
3029
|
+
}
|
|
3030
|
+
i += 2;
|
|
3031
|
+
continue;
|
|
3032
|
+
}
|
|
3033
|
+
out += c;
|
|
3034
|
+
i++;
|
|
3035
|
+
}
|
|
3036
|
+
return out;
|
|
3037
|
+
}
|
|
3038
|
+
function stripTrailingCommas(input) {
|
|
3039
|
+
return input.replace(/,(\s*[}\]])/g, "$1");
|
|
3040
|
+
}
|
|
3041
|
+
var TSCONFIG_TOP_LEVEL_KEYS = /* @__PURE__ */ new Set([
|
|
3042
|
+
"compilerOptions",
|
|
3043
|
+
"files",
|
|
3044
|
+
"include",
|
|
3045
|
+
"exclude",
|
|
3046
|
+
"extends",
|
|
3047
|
+
"references",
|
|
3048
|
+
"compileOnSave",
|
|
3049
|
+
"typeAcquisition",
|
|
3050
|
+
"watchOptions",
|
|
3051
|
+
"buildOptions",
|
|
3052
|
+
"$schema"
|
|
3053
|
+
]);
|
|
3054
|
+
var TSCONFIG_ENUM_OPTIONS = {
|
|
3055
|
+
target: ["es3", "es5", "es6", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022", "es2023", "esnext"],
|
|
3056
|
+
module: ["none", "commonjs", "amd", "umd", "system", "es6", "es2015", "es2020", "es2022", "esnext", "node16", "nodenext", "node18", "preserve"],
|
|
3057
|
+
moduleResolution: ["classic", "node", "node10", "node16", "nodenext", "bundler"],
|
|
3058
|
+
moduleDetection: ["legacy", "auto", "force"],
|
|
3059
|
+
jsx: ["preserve", "react", "react-jsx", "react-jsxdev", "react-native"],
|
|
3060
|
+
newLine: ["crlf", "lf"],
|
|
3061
|
+
importsNotUsedAsValues: ["remove", "preserve", "error"]
|
|
3062
|
+
};
|
|
3063
|
+
var TSCONFIG_BOOLEAN_OPTIONS = /* @__PURE__ */ new Set([
|
|
3064
|
+
"allowJs",
|
|
3065
|
+
"checkJs",
|
|
3066
|
+
"strict",
|
|
3067
|
+
"noImplicitAny",
|
|
3068
|
+
"strictNullChecks",
|
|
3069
|
+
"strictFunctionTypes",
|
|
3070
|
+
"strictBindCallApply",
|
|
3071
|
+
"strictPropertyInitialization",
|
|
3072
|
+
"noImplicitThis",
|
|
3073
|
+
"useUnknownInCatchVariables",
|
|
3074
|
+
"alwaysStrict",
|
|
3075
|
+
"noUnusedLocals",
|
|
3076
|
+
"noUnusedParameters",
|
|
3077
|
+
"exactOptionalPropertyTypes",
|
|
3078
|
+
"noImplicitReturns",
|
|
3079
|
+
"noFallthroughCasesInSwitch",
|
|
3080
|
+
"noUncheckedIndexedAccess",
|
|
3081
|
+
"noImplicitOverride",
|
|
3082
|
+
"noPropertyAccessFromIndexSignature",
|
|
3083
|
+
"esModuleInterop",
|
|
3084
|
+
"allowSyntheticDefaultImports",
|
|
3085
|
+
"forceConsistentCasingInFileNames",
|
|
3086
|
+
"isolatedModules",
|
|
3087
|
+
"verbatimModuleSyntax",
|
|
3088
|
+
"declaration",
|
|
3089
|
+
"declarationMap",
|
|
3090
|
+
"emitDeclarationOnly",
|
|
3091
|
+
"sourceMap",
|
|
3092
|
+
"inlineSourceMap",
|
|
3093
|
+
"inlineSources",
|
|
3094
|
+
"noEmit",
|
|
3095
|
+
"noEmitOnError",
|
|
3096
|
+
"preserveConstEnums",
|
|
3097
|
+
"removeComments",
|
|
3098
|
+
"skipLibCheck",
|
|
3099
|
+
"composite",
|
|
3100
|
+
"incremental",
|
|
3101
|
+
"experimentalDecorators",
|
|
3102
|
+
"emitDecoratorMetadata",
|
|
3103
|
+
"resolveJsonModule",
|
|
3104
|
+
"allowUmdGlobalAccess",
|
|
3105
|
+
"downlevelIteration",
|
|
3106
|
+
"importHelpers",
|
|
3107
|
+
"preserveSymlinks",
|
|
3108
|
+
"allowUnreachableCode",
|
|
3109
|
+
"allowUnusedLabels",
|
|
3110
|
+
"disableSizeLimit",
|
|
3111
|
+
"noResolve",
|
|
3112
|
+
"skipDefaultLibCheck",
|
|
3113
|
+
"suppressImplicitAnyIndexErrors"
|
|
3114
|
+
]);
|
|
3115
|
+
var TSCONFIG_STRING_OPTIONS = /* @__PURE__ */ new Set([
|
|
3116
|
+
"outDir",
|
|
3117
|
+
"rootDir",
|
|
3118
|
+
"baseUrl",
|
|
3119
|
+
"outFile",
|
|
3120
|
+
"declarationDir",
|
|
3121
|
+
"tsBuildInfoFile",
|
|
3122
|
+
"jsxFactory",
|
|
3123
|
+
"jsxFragmentFactory",
|
|
3124
|
+
"jsxImportSource"
|
|
3125
|
+
]);
|
|
3126
|
+
var TSCONFIG_ARRAY_OPTIONS = /* @__PURE__ */ new Set(["lib", "types", "typeRoots", "rootDirs"]);
|
|
3127
|
+
function validateTsconfig(text) {
|
|
3128
|
+
if (!text || !text.trim()) return { error: "Input is empty" };
|
|
3129
|
+
const stripped = stripTrailingCommas(stripJsonComments(text));
|
|
3130
|
+
let parsed;
|
|
3131
|
+
try {
|
|
3132
|
+
parsed = JSON.parse(stripped);
|
|
3133
|
+
} catch (e) {
|
|
3134
|
+
return { error: `Invalid JSON: ${e.message}` };
|
|
3135
|
+
}
|
|
3136
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
3137
|
+
return { error: "Root of tsconfig.json must be an object" };
|
|
3138
|
+
}
|
|
3139
|
+
const obj = parsed;
|
|
3140
|
+
const issues = [];
|
|
3141
|
+
const topLevelKeys = Object.keys(obj);
|
|
3142
|
+
for (const key of topLevelKeys) {
|
|
3143
|
+
if (!TSCONFIG_TOP_LEVEL_KEYS.has(key)) {
|
|
3144
|
+
issues.push({ severity: "warning", path: key, message: `Unknown top-level key "${key}"` });
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
for (const key of ["files", "include", "exclude"]) {
|
|
3148
|
+
if (key in obj) {
|
|
3149
|
+
const v = obj[key];
|
|
3150
|
+
if (!Array.isArray(v) || !v.every((x) => typeof x === "string")) {
|
|
3151
|
+
issues.push({ severity: "error", path: key, message: `"${key}" must be an array of strings` });
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
if ("extends" in obj) {
|
|
3156
|
+
const v = obj.extends;
|
|
3157
|
+
const validExtends = typeof v === "string" || Array.isArray(v) && v.every((x) => typeof x === "string");
|
|
3158
|
+
if (!validExtends) {
|
|
3159
|
+
issues.push({ severity: "error", path: "extends", message: '"extends" must be a string or an array of strings' });
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
if ("references" in obj) {
|
|
3163
|
+
const v = obj.references;
|
|
3164
|
+
const validRefs = Array.isArray(v) && v.every((r) => typeof r === "object" && r !== null && typeof r.path === "string");
|
|
3165
|
+
if (!validRefs) {
|
|
3166
|
+
issues.push({ severity: "error", path: "references", message: '"references" must be an array of objects with a "path" string' });
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
let compilerOptionKeys = [];
|
|
3170
|
+
if ("compilerOptions" in obj) {
|
|
3171
|
+
const co = obj.compilerOptions;
|
|
3172
|
+
if (typeof co !== "object" || co === null || Array.isArray(co)) {
|
|
3173
|
+
issues.push({ severity: "error", path: "compilerOptions", message: '"compilerOptions" must be an object' });
|
|
3174
|
+
} else {
|
|
3175
|
+
const coObj = co;
|
|
3176
|
+
compilerOptionKeys = Object.keys(coObj);
|
|
3177
|
+
for (const key of compilerOptionKeys) {
|
|
3178
|
+
const value = coObj[key];
|
|
3179
|
+
const path = `compilerOptions.${key}`;
|
|
3180
|
+
if (key === "paths") {
|
|
3181
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
3182
|
+
issues.push({ severity: "error", path, message: '"paths" must be an object mapping patterns to arrays of strings' });
|
|
3183
|
+
} else {
|
|
3184
|
+
for (const [k, v] of Object.entries(value)) {
|
|
3185
|
+
if (!Array.isArray(v) || !v.every((x) => typeof x === "string")) {
|
|
3186
|
+
issues.push({ severity: "error", path: `${path}.${k}`, message: `"paths.${k}" must be an array of strings` });
|
|
3187
|
+
}
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
continue;
|
|
3191
|
+
}
|
|
3192
|
+
if (key in TSCONFIG_ENUM_OPTIONS) {
|
|
3193
|
+
if (typeof value !== "string" || !TSCONFIG_ENUM_OPTIONS[key].includes(value.toLowerCase())) {
|
|
3194
|
+
issues.push({ severity: "error", path, message: `"${key}" must be one of ${TSCONFIG_ENUM_OPTIONS[key].join(", ")}, got ${JSON.stringify(value)}` });
|
|
3195
|
+
}
|
|
3196
|
+
continue;
|
|
3197
|
+
}
|
|
3198
|
+
if (TSCONFIG_BOOLEAN_OPTIONS.has(key)) {
|
|
3199
|
+
if (typeof value !== "boolean") {
|
|
3200
|
+
issues.push({ severity: "error", path, message: `"${key}" must be a boolean, got ${JSON.stringify(value)}` });
|
|
3201
|
+
}
|
|
3202
|
+
continue;
|
|
3203
|
+
}
|
|
3204
|
+
if (TSCONFIG_STRING_OPTIONS.has(key)) {
|
|
3205
|
+
if (typeof value !== "string") {
|
|
3206
|
+
issues.push({ severity: "error", path, message: `"${key}" must be a string, got ${JSON.stringify(value)}` });
|
|
3207
|
+
}
|
|
3208
|
+
continue;
|
|
3209
|
+
}
|
|
3210
|
+
if (TSCONFIG_ARRAY_OPTIONS.has(key)) {
|
|
3211
|
+
if (!Array.isArray(value) || !value.every((x) => typeof x === "string")) {
|
|
3212
|
+
issues.push({ severity: "error", path, message: `"${key}" must be an array of strings, got ${JSON.stringify(value)}` });
|
|
3213
|
+
}
|
|
3214
|
+
continue;
|
|
3215
|
+
}
|
|
3216
|
+
issues.push({ severity: "warning", path, message: `Unknown compilerOption "${key}"` });
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
const valid = !issues.some((i) => i.severity === "error");
|
|
3221
|
+
return { parsed: true, topLevelKeys, compilerOptionKeys, issues, valid };
|
|
3222
|
+
}
|
|
2889
3223
|
|
|
2890
3224
|
exports.ALL_FLAGS = ALL_FLAGS;
|
|
2891
3225
|
exports.CHEATSHEET = CHEATSHEET;
|
|
@@ -2938,4 +3272,6 @@ exports.splitStatements = splitStatements;
|
|
|
2938
3272
|
exports.testGitignorePatterns = testGitignorePatterns;
|
|
2939
3273
|
exports.testPattern = testPattern;
|
|
2940
3274
|
exports.testRegex = testRegex;
|
|
3275
|
+
exports.validateEditorConfig = validateEditorConfig;
|
|
2941
3276
|
exports.validateEnvKey = validateEnvKey;
|
|
3277
|
+
exports.validateTsconfig = validateTsconfig;
|
package/dist/tools/code.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DockerImageRef, E as
|
|
1
|
+
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DockerImageRef, E as EditorConfigIssue, m as EditorConfigProperty, n as EditorConfigSection, o as EditorConfigValidationResult, p as EnvEntry, q as EnvParseResult, G as GitCommandConfig, r as GitCommandResult, s as GitOperation, t as GithubUrlInfo, u as GithubUrlType, v as GitignoreTestResult, w as GqlFormatResult, H as HtmlFormatResult, x as HtmlMinifyOptions, y as HtmlMinifyResult, J as JsMinifyOptions, z as JsMinifyResult, M as MIME_TABLE, B as MatchResult, F as MimeEntry, I as MimeLookupResult, O as OPERATIONS, P as ParsedSpec, R as RedosFinding, K as RedosResult, L as RedosSeverity, N as RegexError, Q as RegexFlag, S as RegexMatch, T as RegexResult, U as RegexSuccess, V as SQL_DEFAULT_OPTIONS, W as Segment, X as SpecVersion, Y as SqlDialect, Z as SqlFormatOptions, _ as TestPatternResult, $ as TsconfigIssue, a0 as TsconfigValidationResult, a1 as buildDockerPull, a2 as buildDockerRun, a3 as buildGitCommand, a4 as collapseHtmlWhitespace, a5 as collapseJsWhitespace, a6 as countProperties, a7 as countRules, a8 as detectDialect, a9 as detectOperationType, aa as detectRedos, ab as envToExport, ac as envToJson, 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 parseDockerImage, av as parseEnv, aw as parseGitCommand, ax as parseGithubUrl, ay as parseSpec, az as removeConsoleCalls, aA as removeEmptyAttributes, aB as removeHtmlComments, aC as removeJsComments, aD as removeRedundantAttributes, aE as searchCheatsheet, aF as searchEndpoints, aG as splitStatements, aH as testGitignorePatterns, aI as testPattern, aJ as testRegex, aK as validateEditorConfig, aL as validateEnvKey, aM as validateTsconfig } from '../code-B_gDkRAx.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, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DockerImageRef, E as
|
|
1
|
+
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DockerImageRef, E as EditorConfigIssue, m as EditorConfigProperty, n as EditorConfigSection, o as EditorConfigValidationResult, p as EnvEntry, q as EnvParseResult, G as GitCommandConfig, r as GitCommandResult, s as GitOperation, t as GithubUrlInfo, u as GithubUrlType, v as GitignoreTestResult, w as GqlFormatResult, H as HtmlFormatResult, x as HtmlMinifyOptions, y as HtmlMinifyResult, J as JsMinifyOptions, z as JsMinifyResult, M as MIME_TABLE, B as MatchResult, F as MimeEntry, I as MimeLookupResult, O as OPERATIONS, P as ParsedSpec, R as RedosFinding, K as RedosResult, L as RedosSeverity, N as RegexError, Q as RegexFlag, S as RegexMatch, T as RegexResult, U as RegexSuccess, V as SQL_DEFAULT_OPTIONS, W as Segment, X as SpecVersion, Y as SqlDialect, Z as SqlFormatOptions, _ as TestPatternResult, $ as TsconfigIssue, a0 as TsconfigValidationResult, a1 as buildDockerPull, a2 as buildDockerRun, a3 as buildGitCommand, a4 as collapseHtmlWhitespace, a5 as collapseJsWhitespace, a6 as countProperties, a7 as countRules, a8 as detectDialect, a9 as detectOperationType, aa as detectRedos, ab as envToExport, ac as envToJson, 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 parseDockerImage, av as parseEnv, aw as parseGitCommand, ax as parseGithubUrl, ay as parseSpec, az as removeConsoleCalls, aA as removeEmptyAttributes, aB as removeHtmlComments, aC as removeJsComments, aD as removeRedundantAttributes, aE as searchCheatsheet, aF as searchEndpoints, aG as splitStatements, aH as testGitignorePatterns, aI as testPattern, aJ as testRegex, aK as validateEditorConfig, aL as validateEnvKey, aM as validateTsconfig } from '../code-B_gDkRAx.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, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEnvKey } from '../chunk-
|
|
1
|
+
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validateTsconfig } from '../chunk-K4ZERKBD.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/dist/tools/units.cjs
CHANGED
|
@@ -2043,6 +2043,56 @@ function calculateMovingAverages(values, windowSize) {
|
|
|
2043
2043
|
latestEma: last.ema
|
|
2044
2044
|
};
|
|
2045
2045
|
}
|
|
2046
|
+
var GPA_GRADE_POINTS = {
|
|
2047
|
+
"A+": 4,
|
|
2048
|
+
A: 4,
|
|
2049
|
+
"A-": 3.7,
|
|
2050
|
+
"B+": 3.3,
|
|
2051
|
+
B: 3,
|
|
2052
|
+
"B-": 2.7,
|
|
2053
|
+
"C+": 2.3,
|
|
2054
|
+
C: 2,
|
|
2055
|
+
"C-": 1.7,
|
|
2056
|
+
"D+": 1.3,
|
|
2057
|
+
D: 1,
|
|
2058
|
+
"D-": 0.7,
|
|
2059
|
+
F: 0
|
|
2060
|
+
};
|
|
2061
|
+
function calculateGpa(courses) {
|
|
2062
|
+
if (!Array.isArray(courses) || courses.length === 0) {
|
|
2063
|
+
return { error: "courses must be a non-empty array" };
|
|
2064
|
+
}
|
|
2065
|
+
const round22 = (n) => Math.round(n * 100) / 100;
|
|
2066
|
+
let totalCredits = 0;
|
|
2067
|
+
let totalQualityPoints = 0;
|
|
2068
|
+
const results = [];
|
|
2069
|
+
for (let i = 0; i < courses.length; i++) {
|
|
2070
|
+
const course = courses[i];
|
|
2071
|
+
if (typeof course.credits !== "number" || !Number.isFinite(course.credits) || course.credits <= 0) {
|
|
2072
|
+
return { error: `course ${i + 1}: credits must be a finite number greater than zero` };
|
|
2073
|
+
}
|
|
2074
|
+
const gradeKey = typeof course.grade === "string" ? course.grade.trim().toUpperCase() : "";
|
|
2075
|
+
const points = GPA_GRADE_POINTS[gradeKey];
|
|
2076
|
+
if (points === void 0) {
|
|
2077
|
+
return { error: `course ${i + 1}: unrecognized grade "${course.grade}" (expected one of ${Object.keys(GPA_GRADE_POINTS).join(", ")})` };
|
|
2078
|
+
}
|
|
2079
|
+
const qualityPoints = round22(points * course.credits);
|
|
2080
|
+
totalCredits += course.credits;
|
|
2081
|
+
totalQualityPoints += qualityPoints;
|
|
2082
|
+
results.push({
|
|
2083
|
+
name: course.name?.trim() || `Course ${i + 1}`,
|
|
2084
|
+
grade: gradeKey,
|
|
2085
|
+
credits: course.credits,
|
|
2086
|
+
qualityPoints
|
|
2087
|
+
});
|
|
2088
|
+
}
|
|
2089
|
+
return {
|
|
2090
|
+
courses: results,
|
|
2091
|
+
totalCredits: round22(totalCredits),
|
|
2092
|
+
totalQualityPoints: round22(totalQualityPoints),
|
|
2093
|
+
gpa: round22(totalQualityPoints / totalCredits)
|
|
2094
|
+
};
|
|
2095
|
+
}
|
|
2046
2096
|
|
|
2047
2097
|
exports.BASE_LABELS = BASE_LABELS;
|
|
2048
2098
|
exports.BASE_PREFIXES = BASE_PREFIXES;
|
|
@@ -2055,6 +2105,7 @@ exports.COMMON_SIZES = COMMON_SIZES;
|
|
|
2055
2105
|
exports.COMMON_TAX_RATES = COMMON_TAX_RATES;
|
|
2056
2106
|
exports.COMMON_TIP_PERCENTAGES = COMMON_TIP_PERCENTAGES;
|
|
2057
2107
|
exports.COMMON_VIEWPORTS = COMMON_VIEWPORTS;
|
|
2108
|
+
exports.GPA_GRADE_POINTS = GPA_GRADE_POINTS;
|
|
2058
2109
|
exports.USD_DENOMINATIONS = USD_DENOMINATIONS;
|
|
2059
2110
|
exports.applySuccessiveDiscounts = applySuccessiveDiscounts;
|
|
2060
2111
|
exports.autoFormat = autoFormat;
|
|
@@ -2070,6 +2121,7 @@ exports.calculateCompoundInterest = calculateCompoundInterest;
|
|
|
2070
2121
|
exports.calculateDepreciationSchedule = calculateDepreciationSchedule;
|
|
2071
2122
|
exports.calculateDiscount = calculateDiscount;
|
|
2072
2123
|
exports.calculateEmi = calculateEmi;
|
|
2124
|
+
exports.calculateGpa = calculateGpa;
|
|
2073
2125
|
exports.calculateLoan = calculateLoan;
|
|
2074
2126
|
exports.calculateMarginMarkup = calculateMarginMarkup;
|
|
2075
2127
|
exports.calculateMovingAverages = calculateMovingAverages;
|
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 BreakEvenInput, j as BreakEvenResult, k as ByteConvertResult, l as ByteUnit, C as COMMON_CURRENCIES, m as COMMON_LOCALES, n as COMMON_PERMISSIONS, o as COMMON_RATIOS, p as COMMON_SIZES, q as COMMON_TAX_RATES, r as COMMON_TIP_PERCENTAGES, s as COMMON_VIEWPORTS, t as CardValidationResult, v as CashBreakdownResult, w as CashChangeResult, x as CashDenominationItem, y as CashRoundingMode, z as CashRoundingResult, D as CdMaturityResult, E as CompareUnitPricesResult, F as CompoundInterestResult, G as CompoundYearRow, H as DepreciationMethod, I as DepreciationResult, J as DepreciationYear, K as Dimensions, L as DiscountField, M as DiscountInput, N as DiscountResult, O as EmiResult, P as EmiTenureUnit, Q as EmiYearlyBreakdownRow, R as FilePermissions, S as FormatOptions, T 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 BreakEvenInput, j as BreakEvenResult, k as ByteConvertResult, l as ByteUnit, C as COMMON_CURRENCIES, m as COMMON_LOCALES, n as COMMON_PERMISSIONS, o as COMMON_RATIOS, p as COMMON_SIZES, q as COMMON_TAX_RATES, r as COMMON_TIP_PERCENTAGES, s as COMMON_VIEWPORTS, t as CardValidationResult, v as CashBreakdownResult, w as CashChangeResult, x as CashDenominationItem, y as CashRoundingMode, z as CashRoundingResult, D as CdMaturityResult, E as CompareUnitPricesResult, F as CompoundInterestResult, G as CompoundYearRow, H as DepreciationMethod, I as DepreciationResult, J as DepreciationYear, K as Dimensions, L as DiscountField, M as DiscountInput, N as DiscountResult, O as EmiResult, P as EmiTenureUnit, Q as EmiYearlyBreakdownRow, R as FilePermissions, S as FormatOptions, T as GPA_GRADE_POINTS, U as GpaCourse, V as GpaCourseResult, W as GpaResult, X as IbanValidationResult, Y as IpConversion, Z as IsbnFormat, _ as IsbnResult, $ as LoanResult, a0 as MarginMarkupField, a1 as MarginMarkupInput, a2 as MarginMarkupResult, a3 as MovingAveragePoint, a4 as MovingAverageResult, a5 as NotationStyle, a6 as NumberBase, a7 as PaybackPeriodInput, a8 as PaybackPeriodResult, a9 as PercentChangeDirection, aa as PercentageChangeResult, ab as Permission, ac as PxConvertResult, 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 TaxResult, ar as TimeValueDirection, as as TimeValueResult, at as TipSplitResult, au as USD_DENOMINATIONS, av as UnitPriceItem, aw as UnitPriceResult, ax as VideoBitrateInput, ay as VideoBitrateMode, az as VideoBitrateResult, aA as ViewportConvertResult, aB as applySuccessiveDiscounts, aC as autoFormat, aD as bumpVersion, aE as calcAspectRatio, aF as calcSubnet, aG as calculateBreakEven, aH as calculateCashBreakdown, aI as calculateCashRounding, aJ as calculateCdMaturity, aK as calculateChange, aL as calculateCompoundInterest, aM as calculateDepreciationSchedule, aN as calculateDiscount, aO as calculateEmi, aP as calculateGpa, aQ as calculateLoan, aR as calculateMarginMarkup, aS as calculateMovingAverages, aT as calculatePaybackPeriod, aU as calculatePercentageChange, aV as calculateRoi, aW as calculateRuleOf72, aX as calculateSavingsGoal, aY as calculateSimpleInterest, aZ as calculateTax, a_ as calculateTimeValue, a$ as calculateTipSplit, b0 as calculateVideoBitrate, b1 as compareSemver, b2 as compareUnitPrices, b3 as convert, b4 as convertAprApy, b5 as convertBytes, b6 as convertIp, b7 as coverBox, b8 as decimalToIp, b9 as decimalToIpCidr, ba as describePermissions, bb as fitIntoBox, bc as formatNumber, bd as formatValue, be as formatVwValue, bf as formatWithSeparator, bg as gcd, bh as ipFromBinary, bi as ipFromDecimal, bj as ipFromHex, bk as ipToBinary, bl as ipToDecimal, bm as ipToDecimalCidr, bn as ipToHex, bo as ipToOctal, bp as isValid, bq as isValidCidr, br as isValidIp, bs as isValidIpv4, bt as marginToMarkup, bu as markupToMargin, bv as octalToPermissions, bw as parseFileSize, bx as parseInput, by as parseNumberString, bz as parseSemver, bA as permissionsToChmod, bB as permissionsToOctal, bC as permissionsToSymbolic, bD as ptToPx, bE as pxToAll, bF as pxToViewport, bG as remToPx, bH as satisfiesRange, bI as scaleByHeight, bJ as scaleByWidth, bK as sortVersions, bL as splitSubnet, bM as symbolicToPermissions, bN as validateBarcode, bO as validateCardNumber, bP as validateIban, bQ as validateIsbn, bR as viewportToPx } from '../units-y30YVhqI.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 BreakEvenInput, j as BreakEvenResult, k as ByteConvertResult, l as ByteUnit, C as COMMON_CURRENCIES, m as COMMON_LOCALES, n as COMMON_PERMISSIONS, o as COMMON_RATIOS, p as COMMON_SIZES, q as COMMON_TAX_RATES, r as COMMON_TIP_PERCENTAGES, s as COMMON_VIEWPORTS, t as CardValidationResult, v as CashBreakdownResult, w as CashChangeResult, x as CashDenominationItem, y as CashRoundingMode, z as CashRoundingResult, D as CdMaturityResult, E as CompareUnitPricesResult, F as CompoundInterestResult, G as CompoundYearRow, H as DepreciationMethod, I as DepreciationResult, J as DepreciationYear, K as Dimensions, L as DiscountField, M as DiscountInput, N as DiscountResult, O as EmiResult, P as EmiTenureUnit, Q as EmiYearlyBreakdownRow, R as FilePermissions, S as FormatOptions, T 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 BreakEvenInput, j as BreakEvenResult, k as ByteConvertResult, l as ByteUnit, C as COMMON_CURRENCIES, m as COMMON_LOCALES, n as COMMON_PERMISSIONS, o as COMMON_RATIOS, p as COMMON_SIZES, q as COMMON_TAX_RATES, r as COMMON_TIP_PERCENTAGES, s as COMMON_VIEWPORTS, t as CardValidationResult, v as CashBreakdownResult, w as CashChangeResult, x as CashDenominationItem, y as CashRoundingMode, z as CashRoundingResult, D as CdMaturityResult, E as CompareUnitPricesResult, F as CompoundInterestResult, G as CompoundYearRow, H as DepreciationMethod, I as DepreciationResult, J as DepreciationYear, K as Dimensions, L as DiscountField, M as DiscountInput, N as DiscountResult, O as EmiResult, P as EmiTenureUnit, Q as EmiYearlyBreakdownRow, R as FilePermissions, S as FormatOptions, T as GPA_GRADE_POINTS, U as GpaCourse, V as GpaCourseResult, W as GpaResult, X as IbanValidationResult, Y as IpConversion, Z as IsbnFormat, _ as IsbnResult, $ as LoanResult, a0 as MarginMarkupField, a1 as MarginMarkupInput, a2 as MarginMarkupResult, a3 as MovingAveragePoint, a4 as MovingAverageResult, a5 as NotationStyle, a6 as NumberBase, a7 as PaybackPeriodInput, a8 as PaybackPeriodResult, a9 as PercentChangeDirection, aa as PercentageChangeResult, ab as Permission, ac as PxConvertResult, 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 TaxResult, ar as TimeValueDirection, as as TimeValueResult, at as TipSplitResult, au as USD_DENOMINATIONS, av as UnitPriceItem, aw as UnitPriceResult, ax as VideoBitrateInput, ay as VideoBitrateMode, az as VideoBitrateResult, aA as ViewportConvertResult, aB as applySuccessiveDiscounts, aC as autoFormat, aD as bumpVersion, aE as calcAspectRatio, aF as calcSubnet, aG as calculateBreakEven, aH as calculateCashBreakdown, aI as calculateCashRounding, aJ as calculateCdMaturity, aK as calculateChange, aL as calculateCompoundInterest, aM as calculateDepreciationSchedule, aN as calculateDiscount, aO as calculateEmi, aP as calculateGpa, aQ as calculateLoan, aR as calculateMarginMarkup, aS as calculateMovingAverages, aT as calculatePaybackPeriod, aU as calculatePercentageChange, aV as calculateRoi, aW as calculateRuleOf72, aX as calculateSavingsGoal, aY as calculateSimpleInterest, aZ as calculateTax, a_ as calculateTimeValue, a$ as calculateTipSplit, b0 as calculateVideoBitrate, b1 as compareSemver, b2 as compareUnitPrices, b3 as convert, b4 as convertAprApy, b5 as convertBytes, b6 as convertIp, b7 as coverBox, b8 as decimalToIp, b9 as decimalToIpCidr, ba as describePermissions, bb as fitIntoBox, bc as formatNumber, bd as formatValue, be as formatVwValue, bf as formatWithSeparator, bg as gcd, bh as ipFromBinary, bi as ipFromDecimal, bj as ipFromHex, bk as ipToBinary, bl as ipToDecimal, bm as ipToDecimalCidr, bn as ipToHex, bo as ipToOctal, bp as isValid, bq as isValidCidr, br as isValidIp, bs as isValidIpv4, bt as marginToMarkup, bu as markupToMargin, bv as octalToPermissions, bw as parseFileSize, bx as parseInput, by as parseNumberString, bz as parseSemver, bA as permissionsToChmod, bB as permissionsToOctal, bC as permissionsToSymbolic, bD as ptToPx, bE as pxToAll, bF as pxToViewport, bG as remToPx, bH as satisfiesRange, bI as scaleByHeight, bJ as scaleByWidth, bK as sortVersions, bL as splitSubnet, bM as symbolicToPermissions, bN as validateBarcode, bO as validateCardNumber, bP as validateIban, bQ as validateIsbn, bR as viewportToPx } from '../units-y30YVhqI.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, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateLoan, calculateMarginMarkup, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, 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, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, 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, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateGpa, calculateLoan, calculateMarginMarkup, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, 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, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx } from '../chunk-ZZJPD366.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
|
@@ -936,6 +936,34 @@ interface MovingAverageResult {
|
|
|
936
936
|
declare function calculateMovingAverages(values: number[], windowSize: number): MovingAverageResult | {
|
|
937
937
|
error: string;
|
|
938
938
|
};
|
|
939
|
+
declare const GPA_GRADE_POINTS: Record<string, number>;
|
|
940
|
+
interface GpaCourse {
|
|
941
|
+
name?: string;
|
|
942
|
+
grade: string;
|
|
943
|
+
credits: number;
|
|
944
|
+
}
|
|
945
|
+
interface GpaCourseResult {
|
|
946
|
+
name: string;
|
|
947
|
+
grade: string;
|
|
948
|
+
credits: number;
|
|
949
|
+
qualityPoints: number;
|
|
950
|
+
}
|
|
951
|
+
interface GpaResult {
|
|
952
|
+
courses: GpaCourseResult[];
|
|
953
|
+
totalCredits: number;
|
|
954
|
+
totalQualityPoints: number;
|
|
955
|
+
gpa: number;
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Compute a weighted GPA from a list of courses, each with a letter grade
|
|
959
|
+
* and credit hours, using the standard 4.0-capped scale (A+ counts the
|
|
960
|
+
* same as A). GPA is the sum of each course's quality points (grade
|
|
961
|
+
* points times credits) divided by total credits, the same weighted-
|
|
962
|
+
* average calculation any registrar uses.
|
|
963
|
+
*/
|
|
964
|
+
declare function calculateGpa(courses: GpaCourse[]): GpaResult | {
|
|
965
|
+
error: string;
|
|
966
|
+
};
|
|
939
967
|
|
|
940
968
|
type units_AmortizationRow = AmortizationRow;
|
|
941
969
|
type units_AprApyDirection = AprApyDirection;
|
|
@@ -981,6 +1009,10 @@ type units_EmiTenureUnit = EmiTenureUnit;
|
|
|
981
1009
|
type units_EmiYearlyBreakdownRow = EmiYearlyBreakdownRow;
|
|
982
1010
|
type units_FilePermissions = FilePermissions;
|
|
983
1011
|
type units_FormatOptions = FormatOptions;
|
|
1012
|
+
declare const units_GPA_GRADE_POINTS: typeof GPA_GRADE_POINTS;
|
|
1013
|
+
type units_GpaCourse = GpaCourse;
|
|
1014
|
+
type units_GpaCourseResult = GpaCourseResult;
|
|
1015
|
+
type units_GpaResult = GpaResult;
|
|
984
1016
|
type units_IbanValidationResult = IbanValidationResult;
|
|
985
1017
|
type units_IpConversion = IpConversion;
|
|
986
1018
|
type units_IsbnFormat = IsbnFormat;
|
|
@@ -1037,6 +1069,7 @@ declare const units_calculateCompoundInterest: typeof calculateCompoundInterest;
|
|
|
1037
1069
|
declare const units_calculateDepreciationSchedule: typeof calculateDepreciationSchedule;
|
|
1038
1070
|
declare const units_calculateDiscount: typeof calculateDiscount;
|
|
1039
1071
|
declare const units_calculateEmi: typeof calculateEmi;
|
|
1072
|
+
declare const units_calculateGpa: typeof calculateGpa;
|
|
1040
1073
|
declare const units_calculateLoan: typeof calculateLoan;
|
|
1041
1074
|
declare const units_calculateMarginMarkup: typeof calculateMarginMarkup;
|
|
1042
1075
|
declare const units_calculateMovingAverages: typeof calculateMovingAverages;
|
|
@@ -1104,7 +1137,7 @@ declare const units_validateIban: typeof validateIban;
|
|
|
1104
1137
|
declare const units_validateIsbn: typeof validateIsbn;
|
|
1105
1138
|
declare const units_viewportToPx: typeof viewportToPx;
|
|
1106
1139
|
declare namespace units {
|
|
1107
|
-
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_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_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_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, 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_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_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, 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_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateLoan as calculateLoan, 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_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_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_viewportToPx as viewportToPx };
|
|
1140
|
+
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_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_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_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, 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_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_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_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, 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_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, 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_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_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_viewportToPx as viewportToPx };
|
|
1108
1141
|
}
|
|
1109
1142
|
|
|
1110
|
-
export { type
|
|
1143
|
+
export { type LoanResult as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CdMaturityResult as D, type CompareUnitPricesResult as E, type CompoundInterestResult as F, type CompoundYearRow as G, type DepreciationMethod as H, type DepreciationResult as I, type DepreciationYear as J, type Dimensions as K, type DiscountField as L, type DiscountInput as M, type DiscountResult as N, type EmiResult as O, type EmiTenureUnit as P, type EmiYearlyBreakdownRow as Q, type FilePermissions as R, type FormatOptions as S, GPA_GRADE_POINTS as T, type GpaCourse as U, type GpaCourseResult as V, type GpaResult as W, type IbanValidationResult as X, type IpConversion as Y, type IsbnFormat as Z, type IsbnResult as _, type AprApyDirection as a, calculateTipSplit as a$, type MarginMarkupField as a0, type MarginMarkupInput as a1, type MarginMarkupResult as a2, type MovingAveragePoint as a3, type MovingAverageResult as a4, type NotationStyle as a5, type NumberBase as a6, type PaybackPeriodInput as a7, type PaybackPeriodResult as a8, type PercentChangeDirection as a9, type ViewportConvertResult as aA, applySuccessiveDiscounts as aB, autoFormat as aC, bumpVersion as aD, calcAspectRatio as aE, calcSubnet as aF, calculateBreakEven as aG, calculateCashBreakdown as aH, calculateCashRounding as aI, calculateCdMaturity as aJ, calculateChange as aK, calculateCompoundInterest as aL, calculateDepreciationSchedule as aM, calculateDiscount as aN, calculateEmi as aO, calculateGpa as aP, calculateLoan as aQ, calculateMarginMarkup as aR, calculateMovingAverages as aS, calculatePaybackPeriod as aT, calculatePercentageChange as aU, calculateRoi as aV, calculateRuleOf72 as aW, calculateSavingsGoal as aX, calculateSimpleInterest as aY, calculateTax as aZ, calculateTimeValue as a_, type PercentageChangeResult as aa, type Permission as ab, type PxConvertResult as ac, type RoiInput as ad, type RoiResult as ae, type RuleOf72Direction as af, type RuleOf72Result as ag, type SavingsGoalInput as ah, type SavingsGoalMode as ai, type SavingsGoalResult as aj, type SemverVersion as ak, type SimpleInterestResult as al, type SubnetInfo as am, type SuccessiveDiscountResult as an, type SuccessiveDiscountStep as ao, type TaxDirection as ap, type TaxResult as aq, type TimeValueDirection as ar, type TimeValueResult as as, type TipSplitResult as at, USD_DENOMINATIONS as au, type UnitPriceItem as av, type UnitPriceResult as aw, type VideoBitrateInput as ax, type VideoBitrateMode as ay, type VideoBitrateResult as az, type AprApyResult as b, calculateVideoBitrate as b0, compareSemver as b1, compareUnitPrices as b2, convert as b3, convertAprApy as b4, convertBytes as b5, convertIp as b6, coverBox as b7, decimalToIp as b8, decimalToIpCidr as b9, permissionsToChmod as bA, permissionsToOctal as bB, permissionsToSymbolic as bC, ptToPx as bD, pxToAll as bE, pxToViewport as bF, remToPx as bG, satisfiesRange as bH, scaleByHeight as bI, scaleByWidth as bJ, sortVersions as bK, splitSubnet as bL, symbolicToPermissions as bM, validateBarcode as bN, validateCardNumber as bO, validateIban as bP, validateIsbn as bQ, viewportToPx as bR, describePermissions as ba, fitIntoBox as bb, formatNumber as bc, formatValue as bd, formatVwValue as be, formatWithSeparator as bf, gcd as bg, ipFromBinary as bh, ipFromDecimal as bi, ipFromHex as bj, ipToBinary as bk, ipToDecimal as bl, ipToDecimalCidr as bm, ipToHex as bn, ipToOctal as bo, isValid as bp, isValidCidr as bq, isValidIp as br, isValidIpv4 as bs, marginToMarkup as bt, markupToMargin as bu, octalToPermissions as bv, parseFileSize as bw, parseInput as bx, parseNumberString as by, parseSemver as bz, type AspectRatioResult as c, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BreakEvenInput as i, type BreakEvenResult as j, type ByteConvertResult as k, type ByteUnit as l, COMMON_LOCALES as m, COMMON_PERMISSIONS as n, COMMON_RATIOS as o, COMMON_SIZES as p, COMMON_TAX_RATES as q, COMMON_TIP_PERCENTAGES as r, COMMON_VIEWPORTS as s, type CardValidationResult as t, units as u, type CashBreakdownResult as v, type CashChangeResult as w, type CashDenominationItem as x, type CashRoundingMode as y, type CashRoundingResult as z };
|