@utilix-tech/sdk 0.89.0 → 0.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +3 -3
- package/dist/{chunk-CUQDHXUX.js → chunk-AHNBR25A.js} +59 -1
- package/dist/{chunk-LKFMBUJZ.js → chunk-X3UAAMXF.js} +129 -1
- package/dist/{data-Cz1Q0sg0.d.cts → data-DuOxffMx.d.cts} +33 -2
- package/dist/{data-Cz1Q0sg0.d.ts → data-DuOxffMx.d.ts} +33 -2
- package/dist/index.cjs +186 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/tools/data.cjs +58 -0
- package/dist/tools/data.d.cts +1 -1
- package/dist/tools/data.d.ts +1 -1
- package/dist/tools/data.js +1 -1
- package/dist/tools/units.cjs +128 -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-B6aXeGr6.d.cts → units-D8_JluTD.d.cts} +17 -2
- package/dist/{units-B6aXeGr6.d.ts → units-D8_JluTD.d.ts} +17 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5638,6 +5638,7 @@ __export(data_exports, {
|
|
|
5638
5638
|
alignMarkdownTables: () => alignMarkdownTables,
|
|
5639
5639
|
analyzeCaptionSpeed: () => analyzeCaptionSpeed,
|
|
5640
5640
|
calculateMarkdownTaskListProgress: () => calculateMarkdownTaskListProgress,
|
|
5641
|
+
checkMarkdownInternalLinks: () => checkMarkdownInternalLinks,
|
|
5641
5642
|
convertSubtitles: () => convertSubtitles,
|
|
5642
5643
|
csvToJson: () => csvToJson2,
|
|
5643
5644
|
csvToSqlInsert: () => csvToSqlInsert,
|
|
@@ -7289,6 +7290,63 @@ function validateMarkdownHeadingHierarchy(markdown) {
|
|
|
7289
7290
|
});
|
|
7290
7291
|
return { headings, issues, h1Count };
|
|
7291
7292
|
}
|
|
7293
|
+
var ANCHOR_LINK_RE = /\[([^\]]*)\]\(#([^)\s]+)\)/g;
|
|
7294
|
+
function checkMarkdownInternalLinks(markdown) {
|
|
7295
|
+
if (typeof markdown !== "string" || markdown.trim() === "") {
|
|
7296
|
+
return { error: "markdown is required" };
|
|
7297
|
+
}
|
|
7298
|
+
const lines = markdown.replace(/\r\n/g, "\n").split("\n");
|
|
7299
|
+
const headings = [];
|
|
7300
|
+
const seen = /* @__PURE__ */ new Map();
|
|
7301
|
+
let inFence = false;
|
|
7302
|
+
let fenceMarker = "";
|
|
7303
|
+
for (let i = 0; i < lines.length; i++) {
|
|
7304
|
+
const line = lines[i];
|
|
7305
|
+
const fenceMatch = line.match(/^\s*(```+|~~~+)/);
|
|
7306
|
+
if (fenceMatch) {
|
|
7307
|
+
if (!inFence) {
|
|
7308
|
+
inFence = true;
|
|
7309
|
+
fenceMarker = fenceMatch[1][0];
|
|
7310
|
+
} else if (fenceMatch[1][0] === fenceMarker) {
|
|
7311
|
+
inFence = false;
|
|
7312
|
+
}
|
|
7313
|
+
continue;
|
|
7314
|
+
}
|
|
7315
|
+
if (inFence) continue;
|
|
7316
|
+
const headingMatch = line.match(/^(#{1,6})\s+(.+?)\s*#*\s*$/);
|
|
7317
|
+
if (!headingMatch) continue;
|
|
7318
|
+
const level = headingMatch[1].length;
|
|
7319
|
+
const text = stripInlineMarkdown(headingMatch[2]);
|
|
7320
|
+
if (text === "") continue;
|
|
7321
|
+
const slug = slugifyHeading(text, seen);
|
|
7322
|
+
headings.push({ level, text, slug, line: i + 1 });
|
|
7323
|
+
}
|
|
7324
|
+
const validSlugs = new Set(headings.map((h) => h.slug));
|
|
7325
|
+
const links = [];
|
|
7326
|
+
inFence = false;
|
|
7327
|
+
fenceMarker = "";
|
|
7328
|
+
for (let i = 0; i < lines.length; i++) {
|
|
7329
|
+
const line = lines[i];
|
|
7330
|
+
const fenceMatch = line.match(/^\s*(```+|~~~+)/);
|
|
7331
|
+
if (fenceMatch) {
|
|
7332
|
+
if (!inFence) {
|
|
7333
|
+
inFence = true;
|
|
7334
|
+
fenceMarker = fenceMatch[1][0];
|
|
7335
|
+
} else if (fenceMatch[1][0] === fenceMarker) {
|
|
7336
|
+
inFence = false;
|
|
7337
|
+
}
|
|
7338
|
+
continue;
|
|
7339
|
+
}
|
|
7340
|
+
if (inFence) continue;
|
|
7341
|
+
const re = new RegExp(ANCHOR_LINK_RE);
|
|
7342
|
+
let m;
|
|
7343
|
+
while ((m = re.exec(line)) !== null) {
|
|
7344
|
+
const target = m[2];
|
|
7345
|
+
links.push({ text: m[1], target, line: i + 1, valid: validSlugs.has(target) });
|
|
7346
|
+
}
|
|
7347
|
+
}
|
|
7348
|
+
return { headings, links, brokenLinks: links.filter((l) => !l.valid) };
|
|
7349
|
+
}
|
|
7292
7350
|
function quoteSqlIdentifier(name, dialect) {
|
|
7293
7351
|
if (dialect === "mysql") return "`" + name.replace(/`/g, "``") + "`";
|
|
7294
7352
|
return '"' + name.replace(/"/g, '""') + '"';
|
|
@@ -9208,6 +9266,7 @@ __export(units_exports, {
|
|
|
9208
9266
|
formatVwValue: () => formatVwValue,
|
|
9209
9267
|
formatWithSeparator: () => formatWithSeparator,
|
|
9210
9268
|
gcd: () => gcd,
|
|
9269
|
+
intersectSemverRanges: () => intersectSemverRanges,
|
|
9211
9270
|
ipFromBinary: () => ipFromBinary,
|
|
9212
9271
|
ipFromDecimal: () => ipFromDecimal,
|
|
9213
9272
|
ipFromHex: () => ipFromHex,
|
|
@@ -10079,6 +10138,133 @@ function sortVersions(versions, order = "asc") {
|
|
|
10079
10138
|
return order === "asc" ? cmp : -cmp;
|
|
10080
10139
|
});
|
|
10081
10140
|
}
|
|
10141
|
+
function tightenLower(a, b) {
|
|
10142
|
+
if (a.value === null) return b;
|
|
10143
|
+
if (b.value === null) return a;
|
|
10144
|
+
const cmp = compareVersionObjects(a.value, b.value);
|
|
10145
|
+
if (cmp > 0) return a;
|
|
10146
|
+
if (cmp < 0) return b;
|
|
10147
|
+
return { value: a.value, inclusive: a.inclusive && b.inclusive };
|
|
10148
|
+
}
|
|
10149
|
+
function tightenUpper(a, b) {
|
|
10150
|
+
if (a.value === null) return b;
|
|
10151
|
+
if (b.value === null) return a;
|
|
10152
|
+
const cmp = compareVersionObjects(a.value, b.value);
|
|
10153
|
+
if (cmp < 0) return a;
|
|
10154
|
+
if (cmp > 0) return b;
|
|
10155
|
+
return { value: a.value, inclusive: a.inclusive && b.inclusive };
|
|
10156
|
+
}
|
|
10157
|
+
function isValidInterval(lower, upper) {
|
|
10158
|
+
if (lower.value === null || upper.value === null) return true;
|
|
10159
|
+
const cmp = compareVersionObjects(lower.value, upper.value);
|
|
10160
|
+
if (cmp < 0) return true;
|
|
10161
|
+
if (cmp > 0) return false;
|
|
10162
|
+
return lower.inclusive && upper.inclusive;
|
|
10163
|
+
}
|
|
10164
|
+
function formatVersionBound(v) {
|
|
10165
|
+
let s = `${v.major}.${v.minor}.${v.patch}`;
|
|
10166
|
+
if (v.prerelease) s += `-${v.prerelease}`;
|
|
10167
|
+
if (v.build) s += `+${v.build}`;
|
|
10168
|
+
return s;
|
|
10169
|
+
}
|
|
10170
|
+
function intervalToRangeString(interval) {
|
|
10171
|
+
const { lower, upper } = interval;
|
|
10172
|
+
if (lower.value === null && upper.value === null) return "*";
|
|
10173
|
+
if (lower.value !== null && upper.value !== null) {
|
|
10174
|
+
const cmp = compareVersionObjects(lower.value, upper.value);
|
|
10175
|
+
if (cmp === 0 && lower.inclusive && upper.inclusive) return formatVersionBound(lower.value);
|
|
10176
|
+
}
|
|
10177
|
+
const parts = [];
|
|
10178
|
+
if (lower.value !== null) parts.push(`${lower.inclusive ? ">=" : ">"}${formatVersionBound(lower.value)}`);
|
|
10179
|
+
if (upper.value !== null) parts.push(`${upper.inclusive ? "<=" : "<"}${formatVersionBound(upper.value)}`);
|
|
10180
|
+
return parts.length ? parts.join(" ") : "*";
|
|
10181
|
+
}
|
|
10182
|
+
function parseSingleConstraintToInterval(range) {
|
|
10183
|
+
if (range === "*" || range === "") {
|
|
10184
|
+
return { lower: { value: null, inclusive: true }, upper: { value: null, inclusive: true } };
|
|
10185
|
+
}
|
|
10186
|
+
const caretMatch = range.match(/^\^v?(\d+)\.(\d+)\.(\d+)(?:-([a-zA-Z0-9._-]+))?$/);
|
|
10187
|
+
if (caretMatch) {
|
|
10188
|
+
const major = parseInt(caretMatch[1], 10);
|
|
10189
|
+
const minor = parseInt(caretMatch[2], 10);
|
|
10190
|
+
const patch = parseInt(caretMatch[3], 10);
|
|
10191
|
+
const pre = caretMatch[4];
|
|
10192
|
+
const lowerVal = { major, minor, patch, prerelease: pre, raw: range };
|
|
10193
|
+
let upperVal;
|
|
10194
|
+
if (major !== 0) upperVal = { major: major + 1, minor: 0, patch: 0, raw: "" };
|
|
10195
|
+
else if (minor !== 0) upperVal = { major: 0, minor: minor + 1, patch: 0, raw: "" };
|
|
10196
|
+
else upperVal = { major: 0, minor: 0, patch: patch + 1, raw: "" };
|
|
10197
|
+
return { lower: { value: lowerVal, inclusive: true }, upper: { value: upperVal, inclusive: false } };
|
|
10198
|
+
}
|
|
10199
|
+
const tildeMatch = range.match(/^~v?(\d+)\.(\d+)\.(\d+)(?:-([a-zA-Z0-9._-]+))?$/);
|
|
10200
|
+
if (tildeMatch) {
|
|
10201
|
+
const major = parseInt(tildeMatch[1], 10);
|
|
10202
|
+
const minor = parseInt(tildeMatch[2], 10);
|
|
10203
|
+
const patch = parseInt(tildeMatch[3], 10);
|
|
10204
|
+
const pre = tildeMatch[4];
|
|
10205
|
+
const lowerVal = { major, minor, patch, prerelease: pre, raw: range };
|
|
10206
|
+
const upperVal = { major, minor: minor + 1, patch: 0, raw: "" };
|
|
10207
|
+
return { lower: { value: lowerVal, inclusive: true }, upper: { value: upperVal, inclusive: false } };
|
|
10208
|
+
}
|
|
10209
|
+
const opMatch = range.match(/^(>=|<=|>|<|=)v?(.+)$/);
|
|
10210
|
+
if (opMatch) {
|
|
10211
|
+
const op = opMatch[1];
|
|
10212
|
+
const parsed = parseSemver(opMatch[2]);
|
|
10213
|
+
if ("error" in parsed) return parsed;
|
|
10214
|
+
if (op === ">=") return { lower: { value: parsed, inclusive: true }, upper: { value: null, inclusive: true } };
|
|
10215
|
+
if (op === "<=") return { lower: { value: null, inclusive: true }, upper: { value: parsed, inclusive: true } };
|
|
10216
|
+
if (op === ">") return { lower: { value: parsed, inclusive: false }, upper: { value: null, inclusive: true } };
|
|
10217
|
+
if (op === "<") return { lower: { value: null, inclusive: true }, upper: { value: parsed, inclusive: false } };
|
|
10218
|
+
return { lower: { value: parsed, inclusive: true }, upper: { value: parsed, inclusive: true } };
|
|
10219
|
+
}
|
|
10220
|
+
const plain = parseSemver(range);
|
|
10221
|
+
if (!("error" in plain)) {
|
|
10222
|
+
return { lower: { value: plain, inclusive: true }, upper: { value: plain, inclusive: true } };
|
|
10223
|
+
}
|
|
10224
|
+
return { error: `Unsupported range: '${range}'` };
|
|
10225
|
+
}
|
|
10226
|
+
function rangeToIntervals(range) {
|
|
10227
|
+
const trimmed = range.trim();
|
|
10228
|
+
if (trimmed === "") {
|
|
10229
|
+
return [{ lower: { value: null, inclusive: true }, upper: { value: null, inclusive: true } }];
|
|
10230
|
+
}
|
|
10231
|
+
const orParts = trimmed.split("||").map((s) => s.trim());
|
|
10232
|
+
const intervals = [];
|
|
10233
|
+
for (const orPart of orParts) {
|
|
10234
|
+
const andTokens = orPart.split(/\s+/).filter(Boolean);
|
|
10235
|
+
let combined = {
|
|
10236
|
+
lower: { value: null, inclusive: true },
|
|
10237
|
+
upper: { value: null, inclusive: true }
|
|
10238
|
+
};
|
|
10239
|
+
for (const token of andTokens) {
|
|
10240
|
+
const parsed = parseSingleConstraintToInterval(token);
|
|
10241
|
+
if ("error" in parsed) return parsed;
|
|
10242
|
+
combined = {
|
|
10243
|
+
lower: tightenLower(combined.lower, parsed.lower),
|
|
10244
|
+
upper: tightenUpper(combined.upper, parsed.upper)
|
|
10245
|
+
};
|
|
10246
|
+
}
|
|
10247
|
+
intervals.push(combined);
|
|
10248
|
+
}
|
|
10249
|
+
return intervals;
|
|
10250
|
+
}
|
|
10251
|
+
function intersectSemverRanges(rangeA, rangeB) {
|
|
10252
|
+
const intervalsA = rangeToIntervals(rangeA);
|
|
10253
|
+
if (!Array.isArray(intervalsA)) return intervalsA;
|
|
10254
|
+
const intervalsB = rangeToIntervals(rangeB);
|
|
10255
|
+
if (!Array.isArray(intervalsB)) return intervalsB;
|
|
10256
|
+
const results = [];
|
|
10257
|
+
for (const a of intervalsA) {
|
|
10258
|
+
for (const b of intervalsB) {
|
|
10259
|
+
const lower = tightenLower(a.lower, b.lower);
|
|
10260
|
+
const upper = tightenUpper(a.upper, b.upper);
|
|
10261
|
+
if (isValidInterval(lower, upper)) results.push({ lower, upper });
|
|
10262
|
+
}
|
|
10263
|
+
}
|
|
10264
|
+
if (results.length === 0) return { overlaps: false, intersection: null };
|
|
10265
|
+
const formatted = Array.from(new Set(results.map(intervalToRangeString)));
|
|
10266
|
+
return { overlaps: true, intersection: formatted.join(" || ") };
|
|
10267
|
+
}
|
|
10082
10268
|
var CARD_NETWORK_RULES = [
|
|
10083
10269
|
{ name: "American Express", lengths: [15], test: (d) => /^3[47]/.test(d) },
|
|
10084
10270
|
{ name: "Diners Club", lengths: [14], test: (d) => /^3(?:0[0-5]|[68])/.test(d) },
|
package/dist/index.d.cts
CHANGED
|
@@ -2,10 +2,10 @@ export { j as json } from './json-Ca6gZCNB.cjs';
|
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.cjs';
|
|
3
3
|
export { h as hashing } from './hashing-CJjlvqS_.cjs';
|
|
4
4
|
export { t as text } from './text-DOopHoK3.cjs';
|
|
5
|
-
export { d as data } from './data-
|
|
5
|
+
export { d as data } from './data-DuOxffMx.cjs';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.cjs';
|
|
7
7
|
export { t as time } from './time-VMAy_SrV.cjs';
|
|
8
|
-
export { u as units } from './units-
|
|
8
|
+
export { u as units } from './units-D8_JluTD.cjs';
|
|
9
9
|
export { n as network } from './network-ylRtLPEs.cjs';
|
|
10
10
|
export { a as api } from './api-CQnIUrVB.cjs';
|
|
11
11
|
export { c as code } from './code-DvJYYTea.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ export { j as json } from './json-Ca6gZCNB.js';
|
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.js';
|
|
3
3
|
export { h as hashing } from './hashing-CJjlvqS_.js';
|
|
4
4
|
export { t as text } from './text-DOopHoK3.js';
|
|
5
|
-
export { d as data } from './data-
|
|
5
|
+
export { d as data } from './data-DuOxffMx.js';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.js';
|
|
7
7
|
export { t as time } from './time-VMAy_SrV.js';
|
|
8
|
-
export { u as units } from './units-
|
|
8
|
+
export { u as units } from './units-D8_JluTD.js';
|
|
9
9
|
export { n as network } from './network-ylRtLPEs.js';
|
|
10
10
|
export { a as api } from './api-CQnIUrVB.js';
|
|
11
11
|
export { c as code } from './code-DvJYYTea.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-ZWFZRDQ4.js';
|
|
2
|
-
export { units_exports as units } from './chunk-
|
|
2
|
+
export { units_exports as units } from './chunk-X3UAAMXF.js';
|
|
3
3
|
export { network_exports as network } from './chunk-SW3J5CAI.js';
|
|
4
4
|
export { api_exports as api } from './chunk-U2HREMZU.js';
|
|
5
5
|
export { code_exports as code } from './chunk-KYBI62YY.js';
|
|
@@ -11,7 +11,7 @@ export { json_exports as json } from './chunk-WUOZHCIC.js';
|
|
|
11
11
|
export { encoding_exports as encoding } from './chunk-DOWQZUTP.js';
|
|
12
12
|
export { hashing_exports as hashing } from './chunk-PET2CGTH.js';
|
|
13
13
|
export { text_exports as text } from './chunk-YQJ7CEUL.js';
|
|
14
|
-
export { data_exports as data } from './chunk-
|
|
14
|
+
export { data_exports as data } from './chunk-AHNBR25A.js';
|
|
15
15
|
export { generators_exports as generators } from './chunk-422ICOZX.js';
|
|
16
16
|
export { time_exports as time } from './chunk-6EJVNQSY.js';
|
|
17
17
|
import './chunk-MLKGABMK.js';
|
package/dist/tools/data.cjs
CHANGED
|
@@ -1622,6 +1622,63 @@ function validateMarkdownHeadingHierarchy(markdown) {
|
|
|
1622
1622
|
});
|
|
1623
1623
|
return { headings, issues, h1Count };
|
|
1624
1624
|
}
|
|
1625
|
+
var ANCHOR_LINK_RE = /\[([^\]]*)\]\(#([^)\s]+)\)/g;
|
|
1626
|
+
function checkMarkdownInternalLinks(markdown) {
|
|
1627
|
+
if (typeof markdown !== "string" || markdown.trim() === "") {
|
|
1628
|
+
return { error: "markdown is required" };
|
|
1629
|
+
}
|
|
1630
|
+
const lines = markdown.replace(/\r\n/g, "\n").split("\n");
|
|
1631
|
+
const headings = [];
|
|
1632
|
+
const seen = /* @__PURE__ */ new Map();
|
|
1633
|
+
let inFence = false;
|
|
1634
|
+
let fenceMarker = "";
|
|
1635
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1636
|
+
const line = lines[i];
|
|
1637
|
+
const fenceMatch = line.match(/^\s*(```+|~~~+)/);
|
|
1638
|
+
if (fenceMatch) {
|
|
1639
|
+
if (!inFence) {
|
|
1640
|
+
inFence = true;
|
|
1641
|
+
fenceMarker = fenceMatch[1][0];
|
|
1642
|
+
} else if (fenceMatch[1][0] === fenceMarker) {
|
|
1643
|
+
inFence = false;
|
|
1644
|
+
}
|
|
1645
|
+
continue;
|
|
1646
|
+
}
|
|
1647
|
+
if (inFence) continue;
|
|
1648
|
+
const headingMatch = line.match(/^(#{1,6})\s+(.+?)\s*#*\s*$/);
|
|
1649
|
+
if (!headingMatch) continue;
|
|
1650
|
+
const level = headingMatch[1].length;
|
|
1651
|
+
const text = stripInlineMarkdown(headingMatch[2]);
|
|
1652
|
+
if (text === "") continue;
|
|
1653
|
+
const slug = slugifyHeading(text, seen);
|
|
1654
|
+
headings.push({ level, text, slug, line: i + 1 });
|
|
1655
|
+
}
|
|
1656
|
+
const validSlugs = new Set(headings.map((h) => h.slug));
|
|
1657
|
+
const links = [];
|
|
1658
|
+
inFence = false;
|
|
1659
|
+
fenceMarker = "";
|
|
1660
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1661
|
+
const line = lines[i];
|
|
1662
|
+
const fenceMatch = line.match(/^\s*(```+|~~~+)/);
|
|
1663
|
+
if (fenceMatch) {
|
|
1664
|
+
if (!inFence) {
|
|
1665
|
+
inFence = true;
|
|
1666
|
+
fenceMarker = fenceMatch[1][0];
|
|
1667
|
+
} else if (fenceMatch[1][0] === fenceMarker) {
|
|
1668
|
+
inFence = false;
|
|
1669
|
+
}
|
|
1670
|
+
continue;
|
|
1671
|
+
}
|
|
1672
|
+
if (inFence) continue;
|
|
1673
|
+
const re = new RegExp(ANCHOR_LINK_RE);
|
|
1674
|
+
let m;
|
|
1675
|
+
while ((m = re.exec(line)) !== null) {
|
|
1676
|
+
const target = m[2];
|
|
1677
|
+
links.push({ text: m[1], target, line: i + 1, valid: validSlugs.has(target) });
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
return { headings, links, brokenLinks: links.filter((l) => !l.valid) };
|
|
1681
|
+
}
|
|
1625
1682
|
function quoteSqlIdentifier(name, dialect) {
|
|
1626
1683
|
if (dialect === "mysql") return "`" + name.replace(/`/g, "``") + "`";
|
|
1627
1684
|
return '"' + name.replace(/"/g, '""') + '"';
|
|
@@ -2021,6 +2078,7 @@ function alignMarkdownTables(markdown) {
|
|
|
2021
2078
|
exports.alignMarkdownTables = alignMarkdownTables;
|
|
2022
2079
|
exports.analyzeCaptionSpeed = analyzeCaptionSpeed;
|
|
2023
2080
|
exports.calculateMarkdownTaskListProgress = calculateMarkdownTaskListProgress;
|
|
2081
|
+
exports.checkMarkdownInternalLinks = checkMarkdownInternalLinks;
|
|
2024
2082
|
exports.convertSubtitles = convertSubtitles;
|
|
2025
2083
|
exports.csvToJson = csvToJson;
|
|
2026
2084
|
exports.csvToSqlInsert = csvToSqlInsert;
|
package/dist/tools/data.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CaptionSpeedCue, a as CaptionSpeedResult, b as ConvertedSubtitles, c as CsvColumnType, e as CsvColumnTypeInfo, f as CsvColumnTypeOptions, g as CsvColumnTypeResult, h as CsvDuplicateGroup, i as CsvDuplicateOptions, j as CsvDuplicateResult, k as CsvParseResult, l as CsvToSqlOptions, m as CsvToSqlResult, E as EnvDiffError, n as EnvDiffResult, o as EnvEntry, p as EnvParseResult, F as FrontMatterError, q as FrontMatterResult, H as HeadingEntry, r as HeadingHierarchyResult, s as HeadingIssue, t as HeadingIssueType, I as IniSection, M as
|
|
1
|
+
export { C as CaptionSpeedCue, a as CaptionSpeedResult, b as ConvertedSubtitles, c as CsvColumnType, e as CsvColumnTypeInfo, f as CsvColumnTypeOptions, g as CsvColumnTypeResult, h as CsvDuplicateGroup, i as CsvDuplicateOptions, j as CsvDuplicateResult, k as CsvParseResult, l as CsvToSqlOptions, m as CsvToSqlResult, E as EnvDiffError, n as EnvDiffResult, o as EnvEntry, p as EnvParseResult, F as FrontMatterError, q as FrontMatterResult, H as HeadingEntry, r as HeadingHierarchyResult, s as HeadingIssue, t as HeadingIssueType, I as IniSection, M as MarkdownAnchorHeading, u as MarkdownAnchorLink, v as MarkdownInternalLinkCheckResult, w as MarkdownTableAlignResult, x as MarkdownTableColumnAlignment, y as MarkdownTableInfo, z as MarkdownTaskListItem, A as MarkdownTaskListProgressResult, B as MarkdownTaskListSectionSummary, D as MarkdownTocEntry, G as MarkdownTocOptions, J as MarkdownTocResult, N as NdjsonDedupeResult, K as NdjsonLineResult, L as NdjsonValidateResult, P as ParseOptions, O as ParsedIni, Q as ParsedSubtitles, S as SubtitleCue, R as SubtitleFormat, T as TomlFormatResult, V as ValidationResult, X as XmlFormatResult, U as XmlToJsonOptions, Y as YamlAnchorInfo, W as YamlAnchorResolveError, Z as YamlAnchorResolveResult, _ as alignMarkdownTables, $ as analyzeCaptionSpeed, a0 as calculateMarkdownTaskListProgress, a1 as checkMarkdownInternalLinks, a2 as convertSubtitles, a3 as csvToJson, a4 as csvToSqlInsert, a5 as dedupeNdjson, a6 as detectDelimiter, a7 as detectSubtitleFormat, a8 as diffEnvExample, a9 as envToExport, aa as envToJson, ab as findCsvDuplicateRows, ac as formatNdjson, ad as formatSubtitleTimestamp, ae as formatToml, af as formatXml, ag as generateMarkdownToc, ah as getSection, ai as getSectionNames, aj as getTomlStats, ak as getXmlStats, al as getYamlStats, am as inferCsvColumnTypes, an as iniToJson, ao as jsonArrayToNdjson, ap as jsonToIni, aq as jsonToToml, ar as jsonToXml, as as minifyNdjson, at as minifyToml, au as minifyXml, av as ndjsonToCsv, aw as ndjsonToJsonArray, ax as parseCsv, ay as parseEnv, az as parseFrontMatter, aA as parseIni, aB as parseSubtitleTimestamp, aC as parseSubtitles, aD as parseXmlToObject, aE as resolveYamlAnchors, aF as serializeSubtitles, aG as shiftSubtitles, aH as stringifyIni, aI as toCsvString, aJ as tomlToJson, aK as validateEnvKey, aL as validateIni, aM as validateMarkdownHeadingHierarchy, aN as validateNdjson, aO as validateToml, aP as validateXml, aQ as validateYaml, aR as xmlToJson } from '../data-DuOxffMx.cjs';
|
package/dist/tools/data.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CaptionSpeedCue, a as CaptionSpeedResult, b as ConvertedSubtitles, c as CsvColumnType, e as CsvColumnTypeInfo, f as CsvColumnTypeOptions, g as CsvColumnTypeResult, h as CsvDuplicateGroup, i as CsvDuplicateOptions, j as CsvDuplicateResult, k as CsvParseResult, l as CsvToSqlOptions, m as CsvToSqlResult, E as EnvDiffError, n as EnvDiffResult, o as EnvEntry, p as EnvParseResult, F as FrontMatterError, q as FrontMatterResult, H as HeadingEntry, r as HeadingHierarchyResult, s as HeadingIssue, t as HeadingIssueType, I as IniSection, M as
|
|
1
|
+
export { C as CaptionSpeedCue, a as CaptionSpeedResult, b as ConvertedSubtitles, c as CsvColumnType, e as CsvColumnTypeInfo, f as CsvColumnTypeOptions, g as CsvColumnTypeResult, h as CsvDuplicateGroup, i as CsvDuplicateOptions, j as CsvDuplicateResult, k as CsvParseResult, l as CsvToSqlOptions, m as CsvToSqlResult, E as EnvDiffError, n as EnvDiffResult, o as EnvEntry, p as EnvParseResult, F as FrontMatterError, q as FrontMatterResult, H as HeadingEntry, r as HeadingHierarchyResult, s as HeadingIssue, t as HeadingIssueType, I as IniSection, M as MarkdownAnchorHeading, u as MarkdownAnchorLink, v as MarkdownInternalLinkCheckResult, w as MarkdownTableAlignResult, x as MarkdownTableColumnAlignment, y as MarkdownTableInfo, z as MarkdownTaskListItem, A as MarkdownTaskListProgressResult, B as MarkdownTaskListSectionSummary, D as MarkdownTocEntry, G as MarkdownTocOptions, J as MarkdownTocResult, N as NdjsonDedupeResult, K as NdjsonLineResult, L as NdjsonValidateResult, P as ParseOptions, O as ParsedIni, Q as ParsedSubtitles, S as SubtitleCue, R as SubtitleFormat, T as TomlFormatResult, V as ValidationResult, X as XmlFormatResult, U as XmlToJsonOptions, Y as YamlAnchorInfo, W as YamlAnchorResolveError, Z as YamlAnchorResolveResult, _ as alignMarkdownTables, $ as analyzeCaptionSpeed, a0 as calculateMarkdownTaskListProgress, a1 as checkMarkdownInternalLinks, a2 as convertSubtitles, a3 as csvToJson, a4 as csvToSqlInsert, a5 as dedupeNdjson, a6 as detectDelimiter, a7 as detectSubtitleFormat, a8 as diffEnvExample, a9 as envToExport, aa as envToJson, ab as findCsvDuplicateRows, ac as formatNdjson, ad as formatSubtitleTimestamp, ae as formatToml, af as formatXml, ag as generateMarkdownToc, ah as getSection, ai as getSectionNames, aj as getTomlStats, ak as getXmlStats, al as getYamlStats, am as inferCsvColumnTypes, an as iniToJson, ao as jsonArrayToNdjson, ap as jsonToIni, aq as jsonToToml, ar as jsonToXml, as as minifyNdjson, at as minifyToml, au as minifyXml, av as ndjsonToCsv, aw as ndjsonToJsonArray, ax as parseCsv, ay as parseEnv, az as parseFrontMatter, aA as parseIni, aB as parseSubtitleTimestamp, aC as parseSubtitles, aD as parseXmlToObject, aE as resolveYamlAnchors, aF as serializeSubtitles, aG as shiftSubtitles, aH as stringifyIni, aI as toCsvString, aJ as tomlToJson, aK as validateEnvKey, aL as validateIni, aM as validateMarkdownHeadingHierarchy, aN as validateNdjson, aO as validateToml, aP as validateXml, aQ as validateYaml, aR as xmlToJson } from '../data-DuOxffMx.js';
|
package/dist/tools/data.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { alignMarkdownTables, analyzeCaptionSpeed, calculateMarkdownTaskListProgress, convertSubtitles, csvToJson, csvToSqlInsert, dedupeNdjson, detectDelimiter, detectSubtitleFormat, diffEnvExample, envToExport, envToJson, findCsvDuplicateRows, formatNdjson, formatSubtitleTimestamp, formatToml, formatXml, generateMarkdownToc, getSection, getSectionNames, getTomlStats, getXmlStats, getYamlStats, inferCsvColumnTypes, iniToJson, jsonArrayToNdjson, jsonToIni, jsonToToml, jsonToXml, minifyNdjson, minifyToml, minifyXml, ndjsonToCsv, ndjsonToJsonArray, parseCsv, parseEnv, parseFrontMatter, parseIni, parseSubtitleTimestamp, parseSubtitles, parseXmlToObject, resolveYamlAnchors, serializeSubtitles, shiftSubtitles, stringifyIni, toCsvString, tomlToJson, validateEnvKey, validateIni, validateMarkdownHeadingHierarchy, validateNdjson, validateToml, validateXml, validateYaml, xmlToJson } from '../chunk-
|
|
1
|
+
export { alignMarkdownTables, analyzeCaptionSpeed, calculateMarkdownTaskListProgress, checkMarkdownInternalLinks, convertSubtitles, csvToJson, csvToSqlInsert, dedupeNdjson, detectDelimiter, detectSubtitleFormat, diffEnvExample, envToExport, envToJson, findCsvDuplicateRows, formatNdjson, formatSubtitleTimestamp, formatToml, formatXml, generateMarkdownToc, getSection, getSectionNames, getTomlStats, getXmlStats, getYamlStats, inferCsvColumnTypes, iniToJson, jsonArrayToNdjson, jsonToIni, jsonToToml, jsonToXml, minifyNdjson, minifyToml, minifyXml, ndjsonToCsv, ndjsonToJsonArray, parseCsv, parseEnv, parseFrontMatter, parseIni, parseSubtitleTimestamp, parseSubtitles, parseXmlToObject, resolveYamlAnchors, serializeSubtitles, shiftSubtitles, stringifyIni, toCsvString, tomlToJson, validateEnvKey, validateIni, validateMarkdownHeadingHierarchy, validateNdjson, validateToml, validateXml, validateYaml, xmlToJson } from '../chunk-AHNBR25A.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/dist/tools/units.cjs
CHANGED
|
@@ -831,6 +831,133 @@ function sortVersions(versions, order = "asc") {
|
|
|
831
831
|
return order === "asc" ? cmp : -cmp;
|
|
832
832
|
});
|
|
833
833
|
}
|
|
834
|
+
function tightenLower(a, b) {
|
|
835
|
+
if (a.value === null) return b;
|
|
836
|
+
if (b.value === null) return a;
|
|
837
|
+
const cmp = compareVersionObjects(a.value, b.value);
|
|
838
|
+
if (cmp > 0) return a;
|
|
839
|
+
if (cmp < 0) return b;
|
|
840
|
+
return { value: a.value, inclusive: a.inclusive && b.inclusive };
|
|
841
|
+
}
|
|
842
|
+
function tightenUpper(a, b) {
|
|
843
|
+
if (a.value === null) return b;
|
|
844
|
+
if (b.value === null) return a;
|
|
845
|
+
const cmp = compareVersionObjects(a.value, b.value);
|
|
846
|
+
if (cmp < 0) return a;
|
|
847
|
+
if (cmp > 0) return b;
|
|
848
|
+
return { value: a.value, inclusive: a.inclusive && b.inclusive };
|
|
849
|
+
}
|
|
850
|
+
function isValidInterval(lower, upper) {
|
|
851
|
+
if (lower.value === null || upper.value === null) return true;
|
|
852
|
+
const cmp = compareVersionObjects(lower.value, upper.value);
|
|
853
|
+
if (cmp < 0) return true;
|
|
854
|
+
if (cmp > 0) return false;
|
|
855
|
+
return lower.inclusive && upper.inclusive;
|
|
856
|
+
}
|
|
857
|
+
function formatVersionBound(v) {
|
|
858
|
+
let s = `${v.major}.${v.minor}.${v.patch}`;
|
|
859
|
+
if (v.prerelease) s += `-${v.prerelease}`;
|
|
860
|
+
if (v.build) s += `+${v.build}`;
|
|
861
|
+
return s;
|
|
862
|
+
}
|
|
863
|
+
function intervalToRangeString(interval) {
|
|
864
|
+
const { lower, upper } = interval;
|
|
865
|
+
if (lower.value === null && upper.value === null) return "*";
|
|
866
|
+
if (lower.value !== null && upper.value !== null) {
|
|
867
|
+
const cmp = compareVersionObjects(lower.value, upper.value);
|
|
868
|
+
if (cmp === 0 && lower.inclusive && upper.inclusive) return formatVersionBound(lower.value);
|
|
869
|
+
}
|
|
870
|
+
const parts = [];
|
|
871
|
+
if (lower.value !== null) parts.push(`${lower.inclusive ? ">=" : ">"}${formatVersionBound(lower.value)}`);
|
|
872
|
+
if (upper.value !== null) parts.push(`${upper.inclusive ? "<=" : "<"}${formatVersionBound(upper.value)}`);
|
|
873
|
+
return parts.length ? parts.join(" ") : "*";
|
|
874
|
+
}
|
|
875
|
+
function parseSingleConstraintToInterval(range) {
|
|
876
|
+
if (range === "*" || range === "") {
|
|
877
|
+
return { lower: { value: null, inclusive: true }, upper: { value: null, inclusive: true } };
|
|
878
|
+
}
|
|
879
|
+
const caretMatch = range.match(/^\^v?(\d+)\.(\d+)\.(\d+)(?:-([a-zA-Z0-9._-]+))?$/);
|
|
880
|
+
if (caretMatch) {
|
|
881
|
+
const major = parseInt(caretMatch[1], 10);
|
|
882
|
+
const minor = parseInt(caretMatch[2], 10);
|
|
883
|
+
const patch = parseInt(caretMatch[3], 10);
|
|
884
|
+
const pre = caretMatch[4];
|
|
885
|
+
const lowerVal = { major, minor, patch, prerelease: pre, raw: range };
|
|
886
|
+
let upperVal;
|
|
887
|
+
if (major !== 0) upperVal = { major: major + 1, minor: 0, patch: 0, raw: "" };
|
|
888
|
+
else if (minor !== 0) upperVal = { major: 0, minor: minor + 1, patch: 0, raw: "" };
|
|
889
|
+
else upperVal = { major: 0, minor: 0, patch: patch + 1, raw: "" };
|
|
890
|
+
return { lower: { value: lowerVal, inclusive: true }, upper: { value: upperVal, inclusive: false } };
|
|
891
|
+
}
|
|
892
|
+
const tildeMatch = range.match(/^~v?(\d+)\.(\d+)\.(\d+)(?:-([a-zA-Z0-9._-]+))?$/);
|
|
893
|
+
if (tildeMatch) {
|
|
894
|
+
const major = parseInt(tildeMatch[1], 10);
|
|
895
|
+
const minor = parseInt(tildeMatch[2], 10);
|
|
896
|
+
const patch = parseInt(tildeMatch[3], 10);
|
|
897
|
+
const pre = tildeMatch[4];
|
|
898
|
+
const lowerVal = { major, minor, patch, prerelease: pre, raw: range };
|
|
899
|
+
const upperVal = { major, minor: minor + 1, patch: 0, raw: "" };
|
|
900
|
+
return { lower: { value: lowerVal, inclusive: true }, upper: { value: upperVal, inclusive: false } };
|
|
901
|
+
}
|
|
902
|
+
const opMatch = range.match(/^(>=|<=|>|<|=)v?(.+)$/);
|
|
903
|
+
if (opMatch) {
|
|
904
|
+
const op = opMatch[1];
|
|
905
|
+
const parsed = parseSemver(opMatch[2]);
|
|
906
|
+
if ("error" in parsed) return parsed;
|
|
907
|
+
if (op === ">=") return { lower: { value: parsed, inclusive: true }, upper: { value: null, inclusive: true } };
|
|
908
|
+
if (op === "<=") return { lower: { value: null, inclusive: true }, upper: { value: parsed, inclusive: true } };
|
|
909
|
+
if (op === ">") return { lower: { value: parsed, inclusive: false }, upper: { value: null, inclusive: true } };
|
|
910
|
+
if (op === "<") return { lower: { value: null, inclusive: true }, upper: { value: parsed, inclusive: false } };
|
|
911
|
+
return { lower: { value: parsed, inclusive: true }, upper: { value: parsed, inclusive: true } };
|
|
912
|
+
}
|
|
913
|
+
const plain = parseSemver(range);
|
|
914
|
+
if (!("error" in plain)) {
|
|
915
|
+
return { lower: { value: plain, inclusive: true }, upper: { value: plain, inclusive: true } };
|
|
916
|
+
}
|
|
917
|
+
return { error: `Unsupported range: '${range}'` };
|
|
918
|
+
}
|
|
919
|
+
function rangeToIntervals(range) {
|
|
920
|
+
const trimmed = range.trim();
|
|
921
|
+
if (trimmed === "") {
|
|
922
|
+
return [{ lower: { value: null, inclusive: true }, upper: { value: null, inclusive: true } }];
|
|
923
|
+
}
|
|
924
|
+
const orParts = trimmed.split("||").map((s) => s.trim());
|
|
925
|
+
const intervals = [];
|
|
926
|
+
for (const orPart of orParts) {
|
|
927
|
+
const andTokens = orPart.split(/\s+/).filter(Boolean);
|
|
928
|
+
let combined = {
|
|
929
|
+
lower: { value: null, inclusive: true },
|
|
930
|
+
upper: { value: null, inclusive: true }
|
|
931
|
+
};
|
|
932
|
+
for (const token of andTokens) {
|
|
933
|
+
const parsed = parseSingleConstraintToInterval(token);
|
|
934
|
+
if ("error" in parsed) return parsed;
|
|
935
|
+
combined = {
|
|
936
|
+
lower: tightenLower(combined.lower, parsed.lower),
|
|
937
|
+
upper: tightenUpper(combined.upper, parsed.upper)
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
intervals.push(combined);
|
|
941
|
+
}
|
|
942
|
+
return intervals;
|
|
943
|
+
}
|
|
944
|
+
function intersectSemverRanges(rangeA, rangeB) {
|
|
945
|
+
const intervalsA = rangeToIntervals(rangeA);
|
|
946
|
+
if (!Array.isArray(intervalsA)) return intervalsA;
|
|
947
|
+
const intervalsB = rangeToIntervals(rangeB);
|
|
948
|
+
if (!Array.isArray(intervalsB)) return intervalsB;
|
|
949
|
+
const results = [];
|
|
950
|
+
for (const a of intervalsA) {
|
|
951
|
+
for (const b of intervalsB) {
|
|
952
|
+
const lower = tightenLower(a.lower, b.lower);
|
|
953
|
+
const upper = tightenUpper(a.upper, b.upper);
|
|
954
|
+
if (isValidInterval(lower, upper)) results.push({ lower, upper });
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
if (results.length === 0) return { overlaps: false, intersection: null };
|
|
958
|
+
const formatted = Array.from(new Set(results.map(intervalToRangeString)));
|
|
959
|
+
return { overlaps: true, intersection: formatted.join(" || ") };
|
|
960
|
+
}
|
|
834
961
|
var CARD_NETWORK_RULES = [
|
|
835
962
|
{ name: "American Express", lengths: [15], test: (d) => /^3[47]/.test(d) },
|
|
836
963
|
{ name: "Diners Club", lengths: [14], test: (d) => /^3(?:0[0-5]|[68])/.test(d) },
|
|
@@ -2943,6 +3070,7 @@ exports.formatValue = formatValue;
|
|
|
2943
3070
|
exports.formatVwValue = formatVwValue;
|
|
2944
3071
|
exports.formatWithSeparator = formatWithSeparator;
|
|
2945
3072
|
exports.gcd = gcd;
|
|
3073
|
+
exports.intersectSemverRanges = intersectSemverRanges;
|
|
2946
3074
|
exports.ipFromBinary = ipFromBinary;
|
|
2947
3075
|
exports.ipFromDecimal = ipFromDecimal;
|
|
2948
3076
|
exports.ipFromHex = ipFromHex;
|
package/dist/tools/units.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AmortizationRow, a as AnnuityPayoutInput, b as AnnuityPayoutMode, c as AnnuityPayoutResult, d as AnnuityStructure, e as AprApyDirection, f as AprApyResult, g as AspectRatioResult, B as BASE_LABELS, h as BASE_PREFIXES, i as BYTE_UNITS, j as BarcodeFormat, k as BarcodeValidationResult, l as BaseConvertResult, m as BlendedLoanRateResult, n as BreakEvenInput, o as BreakEvenResult, p as ByteConvertResult, q as ByteUnit, C as COMMON_CURRENCIES, r as COMMON_LOCALES, s as COMMON_PERMISSIONS, t as COMMON_RATIOS, v as COMMON_SIZES, w as COMMON_TAX_RATES, x as COMMON_TIP_PERCENTAGES, y as COMMON_VIEWPORTS, z as CardValidationResult, D as CashBreakdownResult, E as CashChangeResult, F as CashDenominationItem, G as CashRoundingMode, H as CashRoundingResult, I as CdMaturityResult, J as CommissionBreakdownEntry, K as CommissionInput, L as CommissionResult, M as CommissionTier, N as CompareUnitPricesResult, O as CompoundInterestResult, P as CompoundYearRow, Q as CreditAccountInput, R as CreditAccountResult, S as CreditCardMinimumPaymentResult, T as CreditUtilizationResult, U as DebtItemInput, V as DebtItemResult, W as DebtPayoffComparison, X as DebtPayoffInput, Y as DebtPayoffPlanResult, Z as DebtPayoffScheduleEntry, _ as DebtPayoffStrategy, $ as DebtPayoffStrategyResult, a0 as DebtToIncomeRatioResult, a1 as DepreciationMethod, a2 as DepreciationResult, a3 as DepreciationYear, a4 as Dimensions, a5 as DiscountField, a6 as DiscountInput, a7 as DiscountResult, a8 as DtiTier, a9 as EmiResult, aa as EmiTenureUnit, ab as EmiYearlyBreakdownRow, ac as ExtraPaymentPayoffResult, ad as FilePermissions, ae as FileSizeUnit, af as FormatOptions, ag as FreelancerRateInput, ah as FreelancerRateResult, ai as GPA_GRADE_POINTS, aj as GpaCourse, ak as GpaCourseResult, al as GpaResult, am as IbanValidationResult, an as IpConversion, ao as IsbnFormat, ap as IsbnResult, aq as IsinValidationResult, ar as LoanBalanceInput, as as LoanBalanceResult, at as LoanPrepaymentPenaltyResult, au as LoanRefinanceResult, av as LoanResult, aw as MarginMarkupField, ax as MarginMarkupInput, ay as MarginMarkupResult, az as MortgagePointsResult, aA as MovingAveragePoint, aB as MovingAverageResult, aC as NotationStyle, aD as NumberBase, aE as PaybackPeriodInput, aF as PaybackPeriodResult, aG as PercentChangeDirection, aH as PercentageChangeResult, aI as Permission, aJ as PrepaymentPenaltyType, aK as PxConvertResult, aL as
|
|
1
|
+
export { A as AmortizationRow, a as AnnuityPayoutInput, b as AnnuityPayoutMode, c as AnnuityPayoutResult, d as AnnuityStructure, e as AprApyDirection, f as AprApyResult, g as AspectRatioResult, B as BASE_LABELS, h as BASE_PREFIXES, i as BYTE_UNITS, j as BarcodeFormat, k as BarcodeValidationResult, l as BaseConvertResult, m as BlendedLoanRateResult, n as BreakEvenInput, o as BreakEvenResult, p as ByteConvertResult, q as ByteUnit, C as COMMON_CURRENCIES, r as COMMON_LOCALES, s as COMMON_PERMISSIONS, t as COMMON_RATIOS, v as COMMON_SIZES, w as COMMON_TAX_RATES, x as COMMON_TIP_PERCENTAGES, y as COMMON_VIEWPORTS, z as CardValidationResult, D as CashBreakdownResult, E as CashChangeResult, F as CashDenominationItem, G as CashRoundingMode, H as CashRoundingResult, I as CdMaturityResult, J as CommissionBreakdownEntry, K as CommissionInput, L as CommissionResult, M as CommissionTier, N as CompareUnitPricesResult, O as CompoundInterestResult, P as CompoundYearRow, Q as CreditAccountInput, R as CreditAccountResult, S as CreditCardMinimumPaymentResult, T as CreditUtilizationResult, U as DebtItemInput, V as DebtItemResult, W as DebtPayoffComparison, X as DebtPayoffInput, Y as DebtPayoffPlanResult, Z as DebtPayoffScheduleEntry, _ as DebtPayoffStrategy, $ as DebtPayoffStrategyResult, a0 as DebtToIncomeRatioResult, a1 as DepreciationMethod, a2 as DepreciationResult, a3 as DepreciationYear, a4 as Dimensions, a5 as DiscountField, a6 as DiscountInput, a7 as DiscountResult, a8 as DtiTier, a9 as EmiResult, aa as EmiTenureUnit, ab as EmiYearlyBreakdownRow, ac as ExtraPaymentPayoffResult, ad as FilePermissions, ae as FileSizeUnit, af as FormatOptions, ag as FreelancerRateInput, ah as FreelancerRateResult, ai as GPA_GRADE_POINTS, aj as GpaCourse, ak as GpaCourseResult, al as GpaResult, am as IbanValidationResult, an as IpConversion, ao as IsbnFormat, ap as IsbnResult, aq as IsinValidationResult, ar as LoanBalanceInput, as as LoanBalanceResult, at as LoanPrepaymentPenaltyResult, au as LoanRefinanceResult, av as LoanResult, aw as MarginMarkupField, ax as MarginMarkupInput, ay as MarginMarkupResult, az as MortgagePointsResult, aA as MovingAveragePoint, aB as MovingAverageResult, aC as NotationStyle, aD as NumberBase, aE as PaybackPeriodInput, aF as PaybackPeriodResult, aG as PercentChangeDirection, aH as PercentageChangeResult, aI as Permission, aJ as PrepaymentPenaltyType, aK as PxConvertResult, aL as RangeIntersectionResult, aM as RealRateField, aN as RealRateOfReturnInput, aO as RealRateOfReturnResult, aP as RequiredBandwidthResult, aQ as RoiInput, aR as RoiResult, aS as RuleOf72Direction, aT as RuleOf72Result, aU as SavingsGoalInput, aV as SavingsGoalMode, aW as SavingsGoalResult, aX as SemverVersion, aY as SimpleInterestResult, aZ as SubnetInfo, a_ as SuccessiveDiscountResult, a$ as SuccessiveDiscountStep, b0 as TaxDirection, b1 as TaxEquivalentYieldDirection, b2 as TaxEquivalentYieldResult, b3 as TaxResult, b4 as TimeValueDirection, b5 as TimeValueResult, b6 as TipSplitResult, b7 as TransferSpeedUnit, b8 as TransferTimeResult, b9 as USD_DENOMINATIONS, ba as UnitPriceItem, bb as UnitPriceResult, bc as UtilizationTier, bd as VideoBitrateInput, be as VideoBitrateMode, bf as VideoBitrateResult, bg as ViewportConvertResult, bh as VinValidationResult, bi as applySuccessiveDiscounts, bj as autoFormat, bk as bumpVersion, bl as calcAspectRatio, bm as calcSubnet, bn as calculateAnnuityPayout, bo as calculateBlendedLoanRate, bp as calculateBreakEven, bq as calculateCashBreakdown, br as calculateCashRounding, bs as calculateCdMaturity, bt as calculateChange, bu as calculateCompoundInterest, bv as calculateCreditCardMinimumPayment, bw as calculateCreditUtilization, bx as calculateDebtToIncomeRatio, by as calculateDepreciationSchedule, bz as calculateDiscount, bA as calculateEmi, bB as calculateExtraPaymentPayoff, bC as calculateFreelancerRate, bD as calculateGpa, bE as calculateLoan, bF as calculateLoanPrepaymentPenalty, bG as calculateLoanRefinance, bH as calculateMarginMarkup, bI as calculateMortgagePoints, bJ as calculateMovingAverages, bK as calculatePaybackPeriod, bL as calculatePercentageChange, bM as calculateRealRateOfReturn, bN as calculateRequiredBandwidth, bO as calculateRoi, bP as calculateRuleOf72, bQ as calculateSalesCommission, bR as calculateSavingsGoal, bS as calculateSimpleInterest, bT as calculateTax, bU as calculateTaxEquivalentYield, bV as calculateTimeValue, bW as calculateTipSplit, bX as calculateTransferTime, bY as calculateVideoBitrate, bZ as compareSemver, b_ as compareUnitPrices, b$ as convert, c0 as convertAprApy, c1 as convertBytes, c2 as convertIp, c3 as coverBox, c4 as decimalToIp, c5 as decimalToIpCidr, c6 as describePermissions, c7 as fitIntoBox, c8 as formatNumber, c9 as formatValue, ca as formatVwValue, cb as formatWithSeparator, cc as gcd, cd as intersectSemverRanges, ce as ipFromBinary, cf as ipFromDecimal, cg as ipFromHex, ch as ipToBinary, ci as ipToDecimal, cj as ipToDecimalCidr, ck as ipToHex, cl as ipToOctal, cm as isValid, cn as isValidCidr, co as isValidIp, cp as isValidIpv4, cq as marginToMarkup, cr as markupToMargin, cs as octalToPermissions, ct as parseFileSize, cu as parseInput, cv as parseNumberString, cw as parseSemver, cx as permissionsToChmod, cy as permissionsToOctal, cz as permissionsToSymbolic, cA as planDebtPayoff, cB as ptToPx, cC as pxToAll, cD as pxToViewport, cE as remToPx, cF as satisfiesRange, cG as scaleByHeight, cH as scaleByWidth, cI as sortVersions, cJ as splitSubnet, cK as symbolicToPermissions, cL as validateBarcode, cM as validateCardNumber, cN as validateIban, cO as validateIsbn, cP as validateIsin, cQ as validateVin, cR as viewportToPx } from '../units-D8_JluTD.cjs';
|
package/dist/tools/units.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AmortizationRow, a as AnnuityPayoutInput, b as AnnuityPayoutMode, c as AnnuityPayoutResult, d as AnnuityStructure, e as AprApyDirection, f as AprApyResult, g as AspectRatioResult, B as BASE_LABELS, h as BASE_PREFIXES, i as BYTE_UNITS, j as BarcodeFormat, k as BarcodeValidationResult, l as BaseConvertResult, m as BlendedLoanRateResult, n as BreakEvenInput, o as BreakEvenResult, p as ByteConvertResult, q as ByteUnit, C as COMMON_CURRENCIES, r as COMMON_LOCALES, s as COMMON_PERMISSIONS, t as COMMON_RATIOS, v as COMMON_SIZES, w as COMMON_TAX_RATES, x as COMMON_TIP_PERCENTAGES, y as COMMON_VIEWPORTS, z as CardValidationResult, D as CashBreakdownResult, E as CashChangeResult, F as CashDenominationItem, G as CashRoundingMode, H as CashRoundingResult, I as CdMaturityResult, J as CommissionBreakdownEntry, K as CommissionInput, L as CommissionResult, M as CommissionTier, N as CompareUnitPricesResult, O as CompoundInterestResult, P as CompoundYearRow, Q as CreditAccountInput, R as CreditAccountResult, S as CreditCardMinimumPaymentResult, T as CreditUtilizationResult, U as DebtItemInput, V as DebtItemResult, W as DebtPayoffComparison, X as DebtPayoffInput, Y as DebtPayoffPlanResult, Z as DebtPayoffScheduleEntry, _ as DebtPayoffStrategy, $ as DebtPayoffStrategyResult, a0 as DebtToIncomeRatioResult, a1 as DepreciationMethod, a2 as DepreciationResult, a3 as DepreciationYear, a4 as Dimensions, a5 as DiscountField, a6 as DiscountInput, a7 as DiscountResult, a8 as DtiTier, a9 as EmiResult, aa as EmiTenureUnit, ab as EmiYearlyBreakdownRow, ac as ExtraPaymentPayoffResult, ad as FilePermissions, ae as FileSizeUnit, af as FormatOptions, ag as FreelancerRateInput, ah as FreelancerRateResult, ai as GPA_GRADE_POINTS, aj as GpaCourse, ak as GpaCourseResult, al as GpaResult, am as IbanValidationResult, an as IpConversion, ao as IsbnFormat, ap as IsbnResult, aq as IsinValidationResult, ar as LoanBalanceInput, as as LoanBalanceResult, at as LoanPrepaymentPenaltyResult, au as LoanRefinanceResult, av as LoanResult, aw as MarginMarkupField, ax as MarginMarkupInput, ay as MarginMarkupResult, az as MortgagePointsResult, aA as MovingAveragePoint, aB as MovingAverageResult, aC as NotationStyle, aD as NumberBase, aE as PaybackPeriodInput, aF as PaybackPeriodResult, aG as PercentChangeDirection, aH as PercentageChangeResult, aI as Permission, aJ as PrepaymentPenaltyType, aK as PxConvertResult, aL as
|
|
1
|
+
export { A as AmortizationRow, a as AnnuityPayoutInput, b as AnnuityPayoutMode, c as AnnuityPayoutResult, d as AnnuityStructure, e as AprApyDirection, f as AprApyResult, g as AspectRatioResult, B as BASE_LABELS, h as BASE_PREFIXES, i as BYTE_UNITS, j as BarcodeFormat, k as BarcodeValidationResult, l as BaseConvertResult, m as BlendedLoanRateResult, n as BreakEvenInput, o as BreakEvenResult, p as ByteConvertResult, q as ByteUnit, C as COMMON_CURRENCIES, r as COMMON_LOCALES, s as COMMON_PERMISSIONS, t as COMMON_RATIOS, v as COMMON_SIZES, w as COMMON_TAX_RATES, x as COMMON_TIP_PERCENTAGES, y as COMMON_VIEWPORTS, z as CardValidationResult, D as CashBreakdownResult, E as CashChangeResult, F as CashDenominationItem, G as CashRoundingMode, H as CashRoundingResult, I as CdMaturityResult, J as CommissionBreakdownEntry, K as CommissionInput, L as CommissionResult, M as CommissionTier, N as CompareUnitPricesResult, O as CompoundInterestResult, P as CompoundYearRow, Q as CreditAccountInput, R as CreditAccountResult, S as CreditCardMinimumPaymentResult, T as CreditUtilizationResult, U as DebtItemInput, V as DebtItemResult, W as DebtPayoffComparison, X as DebtPayoffInput, Y as DebtPayoffPlanResult, Z as DebtPayoffScheduleEntry, _ as DebtPayoffStrategy, $ as DebtPayoffStrategyResult, a0 as DebtToIncomeRatioResult, a1 as DepreciationMethod, a2 as DepreciationResult, a3 as DepreciationYear, a4 as Dimensions, a5 as DiscountField, a6 as DiscountInput, a7 as DiscountResult, a8 as DtiTier, a9 as EmiResult, aa as EmiTenureUnit, ab as EmiYearlyBreakdownRow, ac as ExtraPaymentPayoffResult, ad as FilePermissions, ae as FileSizeUnit, af as FormatOptions, ag as FreelancerRateInput, ah as FreelancerRateResult, ai as GPA_GRADE_POINTS, aj as GpaCourse, ak as GpaCourseResult, al as GpaResult, am as IbanValidationResult, an as IpConversion, ao as IsbnFormat, ap as IsbnResult, aq as IsinValidationResult, ar as LoanBalanceInput, as as LoanBalanceResult, at as LoanPrepaymentPenaltyResult, au as LoanRefinanceResult, av as LoanResult, aw as MarginMarkupField, ax as MarginMarkupInput, ay as MarginMarkupResult, az as MortgagePointsResult, aA as MovingAveragePoint, aB as MovingAverageResult, aC as NotationStyle, aD as NumberBase, aE as PaybackPeriodInput, aF as PaybackPeriodResult, aG as PercentChangeDirection, aH as PercentageChangeResult, aI as Permission, aJ as PrepaymentPenaltyType, aK as PxConvertResult, aL as RangeIntersectionResult, aM as RealRateField, aN as RealRateOfReturnInput, aO as RealRateOfReturnResult, aP as RequiredBandwidthResult, aQ as RoiInput, aR as RoiResult, aS as RuleOf72Direction, aT as RuleOf72Result, aU as SavingsGoalInput, aV as SavingsGoalMode, aW as SavingsGoalResult, aX as SemverVersion, aY as SimpleInterestResult, aZ as SubnetInfo, a_ as SuccessiveDiscountResult, a$ as SuccessiveDiscountStep, b0 as TaxDirection, b1 as TaxEquivalentYieldDirection, b2 as TaxEquivalentYieldResult, b3 as TaxResult, b4 as TimeValueDirection, b5 as TimeValueResult, b6 as TipSplitResult, b7 as TransferSpeedUnit, b8 as TransferTimeResult, b9 as USD_DENOMINATIONS, ba as UnitPriceItem, bb as UnitPriceResult, bc as UtilizationTier, bd as VideoBitrateInput, be as VideoBitrateMode, bf as VideoBitrateResult, bg as ViewportConvertResult, bh as VinValidationResult, bi as applySuccessiveDiscounts, bj as autoFormat, bk as bumpVersion, bl as calcAspectRatio, bm as calcSubnet, bn as calculateAnnuityPayout, bo as calculateBlendedLoanRate, bp as calculateBreakEven, bq as calculateCashBreakdown, br as calculateCashRounding, bs as calculateCdMaturity, bt as calculateChange, bu as calculateCompoundInterest, bv as calculateCreditCardMinimumPayment, bw as calculateCreditUtilization, bx as calculateDebtToIncomeRatio, by as calculateDepreciationSchedule, bz as calculateDiscount, bA as calculateEmi, bB as calculateExtraPaymentPayoff, bC as calculateFreelancerRate, bD as calculateGpa, bE as calculateLoan, bF as calculateLoanPrepaymentPenalty, bG as calculateLoanRefinance, bH as calculateMarginMarkup, bI as calculateMortgagePoints, bJ as calculateMovingAverages, bK as calculatePaybackPeriod, bL as calculatePercentageChange, bM as calculateRealRateOfReturn, bN as calculateRequiredBandwidth, bO as calculateRoi, bP as calculateRuleOf72, bQ as calculateSalesCommission, bR as calculateSavingsGoal, bS as calculateSimpleInterest, bT as calculateTax, bU as calculateTaxEquivalentYield, bV as calculateTimeValue, bW as calculateTipSplit, bX as calculateTransferTime, bY as calculateVideoBitrate, bZ as compareSemver, b_ as compareUnitPrices, b$ as convert, c0 as convertAprApy, c1 as convertBytes, c2 as convertIp, c3 as coverBox, c4 as decimalToIp, c5 as decimalToIpCidr, c6 as describePermissions, c7 as fitIntoBox, c8 as formatNumber, c9 as formatValue, ca as formatVwValue, cb as formatWithSeparator, cc as gcd, cd as intersectSemverRanges, ce as ipFromBinary, cf as ipFromDecimal, cg as ipFromHex, ch as ipToBinary, ci as ipToDecimal, cj as ipToDecimalCidr, ck as ipToHex, cl as ipToOctal, cm as isValid, cn as isValidCidr, co as isValidIp, cp as isValidIpv4, cq as marginToMarkup, cr as markupToMargin, cs as octalToPermissions, ct as parseFileSize, cu as parseInput, cv as parseNumberString, cw as parseSemver, cx as permissionsToChmod, cy as permissionsToOctal, cz as permissionsToSymbolic, cA as planDebtPayoff, cB as ptToPx, cC as pxToAll, cD as pxToViewport, cE as remToPx, cF as satisfiesRange, cG as scaleByHeight, cH as scaleByWidth, cI as sortVersions, cJ as splitSubnet, cK as symbolicToPermissions, cL as validateBarcode, cM as validateCardNumber, cN as validateIban, cO as validateIsbn, cP as validateIsin, cQ as validateVin, cR as viewportToPx } from '../units-D8_JluTD.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, calculateAnnuityPayout, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditCardMinimumPayment, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRealRateOfReturn, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSalesCommission, 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-
|
|
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, calculateAnnuityPayout, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditCardMinimumPayment, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanPrepaymentPenalty, calculateLoanRefinance, calculateMarginMarkup, calculateMortgagePoints, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRealRateOfReturn, calculateRequiredBandwidth, calculateRoi, calculateRuleOf72, calculateSalesCommission, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTaxEquivalentYield, calculateTimeValue, calculateTipSplit, calculateTransferTime, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, intersectSemverRanges, 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-X3UAAMXF.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|