@utilix-tech/sdk 0.47.0 → 0.49.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 -6
- package/dist/{chunk-KMQHBUYO.js → chunk-24OT376F.js} +22 -1
- package/dist/{chunk-JR354NH4.js → chunk-4TIY6COQ.js} +64 -1
- package/dist/{chunk-S3OA5VCX.js → chunk-Y7YY733Z.js} +49 -1
- package/dist/{data-BKpEOcOX.d.ts → data-BJVJ879p.d.cts} +30 -2
- package/dist/{data-BKpEOcOX.d.cts → data-BJVJ879p.d.ts} +30 -2
- package/dist/index.cjs +139 -7
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{network-BG0XDx5W.d.ts → network-DelcJeJa.d.cts} +32 -2
- package/dist/{network-BG0XDx5W.d.cts → network-DelcJeJa.d.ts} +32 -2
- package/dist/tools/data.cjs +63 -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/network.cjs +48 -0
- package/dist/tools/network.d.cts +1 -1
- package/dist/tools/network.d.ts +1 -1
- package/dist/tools/network.js +1 -1
- package/dist/tools/units.cjs +21 -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-DU4Pisfx.d.cts → units-cVnt1_f6.d.cts} +24 -2
- package/dist/{units-DU4Pisfx.d.ts → units-cVnt1_f6.d.ts} +24 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var yaml2 = require('js-yaml');
|
|
4
4
|
var crypto = require('crypto');
|
|
5
5
|
var md5 = require('blueimp-md5');
|
|
6
6
|
var bcrypt = require('bcryptjs');
|
|
@@ -28,7 +28,7 @@ function _interopNamespace(e) {
|
|
|
28
28
|
return Object.freeze(n);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var yaml2__namespace = /*#__PURE__*/_interopNamespace(yaml2);
|
|
32
32
|
var md5__default = /*#__PURE__*/_interopDefault(md5);
|
|
33
33
|
var bcrypt__default = /*#__PURE__*/_interopDefault(bcrypt);
|
|
34
34
|
var QRCode__default = /*#__PURE__*/_interopDefault(QRCode);
|
|
@@ -867,7 +867,7 @@ function yamlToJson(input, pretty = true) {
|
|
|
867
867
|
try {
|
|
868
868
|
const trimmed = input.trim();
|
|
869
869
|
if (trimmed === "") return JSON.stringify(null, null, pretty ? 2 : void 0);
|
|
870
|
-
const parsed =
|
|
870
|
+
const parsed = yaml2__namespace.load(trimmed);
|
|
871
871
|
const value = parsed === void 0 ? null : parsed;
|
|
872
872
|
return JSON.stringify(value, null, pretty ? 2 : void 0);
|
|
873
873
|
} catch (err) {
|
|
@@ -877,7 +877,7 @@ function yamlToJson(input, pretty = true) {
|
|
|
877
877
|
function jsonToYaml(input) {
|
|
878
878
|
try {
|
|
879
879
|
const parsed = JSON.parse(input);
|
|
880
|
-
return
|
|
880
|
+
return yaml2__namespace.dump(parsed);
|
|
881
881
|
} catch (err) {
|
|
882
882
|
return { error: err instanceof Error ? err.message : String(err) };
|
|
883
883
|
}
|
|
@@ -5186,6 +5186,7 @@ __export(data_exports, {
|
|
|
5186
5186
|
parseSubtitleTimestamp: () => parseSubtitleTimestamp,
|
|
5187
5187
|
parseSubtitles: () => parseSubtitles,
|
|
5188
5188
|
parseXmlToObject: () => parseXmlToObject,
|
|
5189
|
+
resolveYamlAnchors: () => resolveYamlAnchors,
|
|
5189
5190
|
serializeSubtitles: () => serializeSubtitles,
|
|
5190
5191
|
shiftSubtitles: () => shiftSubtitles,
|
|
5191
5192
|
stringifyIni: () => stringifyIni,
|
|
@@ -5205,7 +5206,7 @@ function validateYaml(input) {
|
|
|
5205
5206
|
}
|
|
5206
5207
|
try {
|
|
5207
5208
|
const docs = [];
|
|
5208
|
-
|
|
5209
|
+
yaml2__namespace.loadAll(input, (doc) => docs.push(doc));
|
|
5209
5210
|
const first = docs[0];
|
|
5210
5211
|
const keyCount = first && typeof first === "object" && first !== null ? Object.keys(first).length : 0;
|
|
5211
5212
|
return { valid: true, documentCount: docs.length, keyCount };
|
|
@@ -5239,7 +5240,7 @@ function _yamlCountKeys(value) {
|
|
|
5239
5240
|
function getYamlStats(input) {
|
|
5240
5241
|
if (!input.trim()) return { lines: 0, keys: 0, depth: 0 };
|
|
5241
5242
|
try {
|
|
5242
|
-
const doc =
|
|
5243
|
+
const doc = yaml2__namespace.load(input);
|
|
5243
5244
|
return {
|
|
5244
5245
|
lines: input.split("\n").length,
|
|
5245
5246
|
keys: _yamlCountKeys(doc),
|
|
@@ -6706,6 +6707,68 @@ function findCsvDuplicateRows(input, options) {
|
|
|
6706
6707
|
uniqueRowCount: parsed.rows.length - duplicateRowCount + duplicateGroups.length
|
|
6707
6708
|
};
|
|
6708
6709
|
}
|
|
6710
|
+
var _YAML_ANCHOR_RE = /(?:^|\s)&([A-Za-z0-9_.-]+)/g;
|
|
6711
|
+
var _YAML_ALIAS_RE = /(?:^|\s)\*([A-Za-z0-9_.-]+)/g;
|
|
6712
|
+
function _stripYamlLineComment(line) {
|
|
6713
|
+
let inSingle = false;
|
|
6714
|
+
let inDouble = false;
|
|
6715
|
+
for (let i = 0; i < line.length; i++) {
|
|
6716
|
+
const ch = line[i];
|
|
6717
|
+
if (ch === "'" && !inDouble) {
|
|
6718
|
+
inSingle = !inSingle;
|
|
6719
|
+
} else if (ch === '"' && !inSingle) {
|
|
6720
|
+
inDouble = !inDouble;
|
|
6721
|
+
} else if (ch === "#" && !inSingle && !inDouble && (i === 0 || /\s/.test(line[i - 1]))) {
|
|
6722
|
+
return line.slice(0, i);
|
|
6723
|
+
}
|
|
6724
|
+
}
|
|
6725
|
+
return line;
|
|
6726
|
+
}
|
|
6727
|
+
function resolveYamlAnchors(yamlText) {
|
|
6728
|
+
if (!yamlText || !yamlText.trim()) return { error: "Input is empty" };
|
|
6729
|
+
const anchorDefs = [];
|
|
6730
|
+
const referencedNames = /* @__PURE__ */ new Set();
|
|
6731
|
+
let aliasCount = 0;
|
|
6732
|
+
const lines = yamlText.split("\n");
|
|
6733
|
+
for (let i = 0; i < lines.length; i++) {
|
|
6734
|
+
const line = _stripYamlLineComment(lines[i]);
|
|
6735
|
+
const lineNum = i + 1;
|
|
6736
|
+
_YAML_ANCHOR_RE.lastIndex = 0;
|
|
6737
|
+
let m;
|
|
6738
|
+
while ((m = _YAML_ANCHOR_RE.exec(line)) !== null) {
|
|
6739
|
+
anchorDefs.push({ name: m[1], line: lineNum });
|
|
6740
|
+
}
|
|
6741
|
+
_YAML_ALIAS_RE.lastIndex = 0;
|
|
6742
|
+
while ((m = _YAML_ALIAS_RE.exec(line)) !== null) {
|
|
6743
|
+
referencedNames.add(m[1]);
|
|
6744
|
+
aliasCount++;
|
|
6745
|
+
}
|
|
6746
|
+
}
|
|
6747
|
+
let parsed;
|
|
6748
|
+
try {
|
|
6749
|
+
parsed = yaml2__namespace.load(yamlText);
|
|
6750
|
+
} catch (e) {
|
|
6751
|
+
const err = e;
|
|
6752
|
+
return { error: err.reason ?? err.message };
|
|
6753
|
+
}
|
|
6754
|
+
let resolvedYaml;
|
|
6755
|
+
try {
|
|
6756
|
+
resolvedYaml = yaml2__namespace.dump(parsed, { noRefs: true, lineWidth: -1 });
|
|
6757
|
+
} catch (e) {
|
|
6758
|
+
return { error: e instanceof Error ? e.message : String(e) };
|
|
6759
|
+
}
|
|
6760
|
+
const anchors = anchorDefs.map((a) => ({
|
|
6761
|
+
name: a.name,
|
|
6762
|
+
line: a.line,
|
|
6763
|
+
referenced: referencedNames.has(a.name)
|
|
6764
|
+
}));
|
|
6765
|
+
const seenAnchorNames = [];
|
|
6766
|
+
for (const a of anchorDefs) {
|
|
6767
|
+
if (!seenAnchorNames.includes(a.name)) seenAnchorNames.push(a.name);
|
|
6768
|
+
}
|
|
6769
|
+
const unusedAnchors = seenAnchorNames.filter((name) => !referencedNames.has(name));
|
|
6770
|
+
return { resolvedYaml, anchors, unusedAnchors, aliasCount };
|
|
6771
|
+
}
|
|
6709
6772
|
|
|
6710
6773
|
// src/tools/generators.ts
|
|
6711
6774
|
var generators_exports = {};
|
|
@@ -8125,6 +8188,7 @@ __export(units_exports, {
|
|
|
8125
8188
|
calcSubnet: () => calcSubnet,
|
|
8126
8189
|
calculateBreakEven: () => calculateBreakEven,
|
|
8127
8190
|
calculateCashBreakdown: () => calculateCashBreakdown,
|
|
8191
|
+
calculateCashRounding: () => calculateCashRounding,
|
|
8128
8192
|
calculateCdMaturity: () => calculateCdMaturity,
|
|
8129
8193
|
calculateChange: () => calculateChange,
|
|
8130
8194
|
calculateCompoundInterest: () => calculateCompoundInterest,
|
|
@@ -10179,6 +10243,26 @@ function calculateDepreciationSchedule(cost, salvageValue, usefulLifeYears, meth
|
|
|
10179
10243
|
schedule
|
|
10180
10244
|
};
|
|
10181
10245
|
}
|
|
10246
|
+
function calculateCashRounding(total, roundingUnit, mode = "nearest") {
|
|
10247
|
+
if (!Number.isFinite(total)) return { error: "total must be a finite number" };
|
|
10248
|
+
if (!Number.isFinite(roundingUnit) || roundingUnit <= 0) {
|
|
10249
|
+
return { error: "roundingUnit must be a finite number greater than zero" };
|
|
10250
|
+
}
|
|
10251
|
+
if (mode !== "nearest" && mode !== "up" && mode !== "down") {
|
|
10252
|
+
return { error: 'mode must be one of: "nearest", "up", "down"' };
|
|
10253
|
+
}
|
|
10254
|
+
const round23 = (n) => Math.round(n * 100) / 100;
|
|
10255
|
+
const steps = total / roundingUnit;
|
|
10256
|
+
const roundedSteps = mode === "up" ? Math.ceil(steps) : mode === "down" ? Math.floor(steps) : Math.round(steps);
|
|
10257
|
+
const roundedTotal = round23(roundedSteps * roundingUnit);
|
|
10258
|
+
return {
|
|
10259
|
+
total: round23(total),
|
|
10260
|
+
roundingUnit,
|
|
10261
|
+
mode,
|
|
10262
|
+
roundedTotal,
|
|
10263
|
+
adjustment: round23(roundedTotal - total)
|
|
10264
|
+
};
|
|
10265
|
+
}
|
|
10182
10266
|
|
|
10183
10267
|
// src/tools/network.ts
|
|
10184
10268
|
var network_exports = {};
|
|
@@ -10229,6 +10313,7 @@ __export(network_exports, {
|
|
|
10229
10313
|
parseVaryHeader: () => parseVaryHeader,
|
|
10230
10314
|
searchHeaders: () => searchHeaders,
|
|
10231
10315
|
searchStatusCodes: () => searchStatusCodes,
|
|
10316
|
+
splitSitemap: () => splitSitemap,
|
|
10232
10317
|
statusCodeToText: () => statusCodeToText,
|
|
10233
10318
|
typeNumberToLabel: () => typeNumberToLabel,
|
|
10234
10319
|
validateDomain: () => validateDomain,
|
|
@@ -11734,6 +11819,53 @@ function validateSitemap(xml) {
|
|
|
11734
11819
|
const valid = !issues.some((i) => i.severity === "error");
|
|
11735
11820
|
return { type, urlCount: entries.length, entries, issues, valid };
|
|
11736
11821
|
}
|
|
11822
|
+
var SITEMAP_SPLITTER_MAX_URLS_PER_FILE = 5e4;
|
|
11823
|
+
function escapeXmlUrl(url) {
|
|
11824
|
+
return url.replace(/&(?!amp;|lt;|gt;|apos;|quot;|#\d+;)/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
11825
|
+
}
|
|
11826
|
+
function splitSitemap(urlsText, options) {
|
|
11827
|
+
const urls = (urlsText ?? "").split("\n").map((line) => line.trim()).filter((line) => line.length > 0);
|
|
11828
|
+
if (urls.length === 0) return { error: "No URLs provided" };
|
|
11829
|
+
for (let i = 0; i < urls.length; i++) {
|
|
11830
|
+
if (!/^https?:\/\//i.test(urls[i])) {
|
|
11831
|
+
return { error: `Line ${i + 1}: "${urls[i]}" is not an absolute URL starting with http:// or https://` };
|
|
11832
|
+
}
|
|
11833
|
+
}
|
|
11834
|
+
if (!options || !/^https?:\/\//i.test(options.baseUrl ?? "")) {
|
|
11835
|
+
return { error: "baseUrl must be an absolute URL starting with http:// or https://" };
|
|
11836
|
+
}
|
|
11837
|
+
const baseUrl = options.baseUrl.replace(/\/+$/, "") + "/";
|
|
11838
|
+
let urlsPerFile = options.urlsPerFile ?? SITEMAP_SPLITTER_MAX_URLS_PER_FILE;
|
|
11839
|
+
if (urlsPerFile <= 0) urlsPerFile = SITEMAP_SPLITTER_MAX_URLS_PER_FILE;
|
|
11840
|
+
if (urlsPerFile > SITEMAP_SPLITTER_MAX_URLS_PER_FILE) urlsPerFile = SITEMAP_SPLITTER_MAX_URLS_PER_FILE;
|
|
11841
|
+
const filePrefix = (options.filePrefix || "sitemap").replace(/[^A-Za-z0-9_-]/g, "");
|
|
11842
|
+
const files = [];
|
|
11843
|
+
for (let i = 0; i < urls.length; i += urlsPerFile) {
|
|
11844
|
+
const chunk = urls.slice(i, i + urlsPerFile);
|
|
11845
|
+
const fileIndex = files.length + 1;
|
|
11846
|
+
const filename = `${filePrefix}-${fileIndex}.xml`;
|
|
11847
|
+
const urlLines = chunk.map((url) => ` <url>
|
|
11848
|
+
<loc>${escapeXmlUrl(url)}</loc>
|
|
11849
|
+
</url>`).join("\n");
|
|
11850
|
+
const xml = `<?xml version="1.0" encoding="UTF-8"?>
|
|
11851
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
11852
|
+
${urlLines}
|
|
11853
|
+
</urlset>
|
|
11854
|
+
`;
|
|
11855
|
+
files.push({ filename, urlCount: chunk.length, xml });
|
|
11856
|
+
}
|
|
11857
|
+
const today = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
11858
|
+
const indexEntries = files.map((f) => ` <sitemap>
|
|
11859
|
+
<loc>${escapeXmlUrl(baseUrl + f.filename)}</loc>
|
|
11860
|
+
<lastmod>${today}</lastmod>
|
|
11861
|
+
</sitemap>`).join("\n");
|
|
11862
|
+
const indexXml = `<?xml version="1.0" encoding="UTF-8"?>
|
|
11863
|
+
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
11864
|
+
${indexEntries}
|
|
11865
|
+
</sitemapindex>
|
|
11866
|
+
`;
|
|
11867
|
+
return { files, indexXml, totalUrls: urls.length };
|
|
11868
|
+
}
|
|
11737
11869
|
var KNOWN_ROBOTS_DIRECTIVES = /* @__PURE__ */ new Set(["user-agent", "disallow", "allow", "sitemap", "crawl-delay", "host"]);
|
|
11738
11870
|
function validateRobotsTxt(text) {
|
|
11739
11871
|
if (!text || !text.trim()) return { error: "Input is empty" };
|
|
@@ -16293,7 +16425,7 @@ function parseSpec(input) {
|
|
|
16293
16425
|
raw = JSON.parse(input);
|
|
16294
16426
|
} catch {
|
|
16295
16427
|
try {
|
|
16296
|
-
raw =
|
|
16428
|
+
raw = yaml2.load(input);
|
|
16297
16429
|
} catch (e) {
|
|
16298
16430
|
return { error: `Failed to parse input as JSON or YAML: ${String(e)}` };
|
|
16299
16431
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -2,11 +2,11 @@ export { j as json } from './json-Ta9JykSB.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-DWUcY8H1.cjs';
|
|
5
|
-
export { d as data } from './data-
|
|
5
|
+
export { d as data } from './data-BJVJ879p.cjs';
|
|
6
6
|
export { g as generators } from './generators-Du8cBesn.cjs';
|
|
7
7
|
export { t as time } from './time-KqJjdqII.cjs';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-cVnt1_f6.cjs';
|
|
9
|
+
export { n as network } from './network-DelcJeJa.cjs';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.cjs';
|
|
11
11
|
export { c as code } from './code-KXoRsHtl.cjs';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ export { j as json } from './json-Ta9JykSB.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-DWUcY8H1.js';
|
|
5
|
-
export { d as data } from './data-
|
|
5
|
+
export { d as data } from './data-BJVJ879p.js';
|
|
6
6
|
export { g as generators } from './generators-Du8cBesn.js';
|
|
7
7
|
export { t as time } from './time-KqJjdqII.js';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-cVnt1_f6.js';
|
|
9
|
+
export { n as network } from './network-DelcJeJa.js';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.js';
|
|
11
11
|
export { c as code } from './code-KXoRsHtl.js';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-226EH3ZI.js';
|
|
2
|
-
export { units_exports as units } from './chunk-
|
|
3
|
-
export { network_exports as network } from './chunk-
|
|
2
|
+
export { units_exports as units } from './chunk-24OT376F.js';
|
|
3
|
+
export { network_exports as network } from './chunk-Y7YY733Z.js';
|
|
4
4
|
export { api_exports as api } from './chunk-52ZDKSIX.js';
|
|
5
5
|
export { code_exports as code } from './chunk-JL7YTXRB.js';
|
|
6
6
|
export { color_exports as color } from './chunk-BPVAB4P2.js';
|
|
@@ -11,7 +11,7 @@ export { json_exports as json } from './chunk-WVEKRKGU.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-P7TXG7CI.js';
|
|
14
|
-
export { data_exports as data } from './chunk-
|
|
14
|
+
export { data_exports as data } from './chunk-4TIY6COQ.js';
|
|
15
15
|
export { generators_exports as generators } from './chunk-3TYWIX3B.js';
|
|
16
16
|
export { time_exports as time } from './chunk-IEPWZERQ.js';
|
|
17
17
|
import './chunk-MLKGABMK.js';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* - http-headers : HTTP header reference lookup and validation
|
|
10
10
|
* - har-viewer : parseHar
|
|
11
11
|
* - sitemap-validator: validateSitemap
|
|
12
|
+
* - sitemap-index-splitter: splitSitemap
|
|
12
13
|
* - robots-txt-validator: validateRobotsTxt
|
|
13
14
|
* - user-agent-parser: parseUserAgent
|
|
14
15
|
* - cache-control-builder: buildCacheControl
|
|
@@ -201,6 +202,31 @@ interface SitemapValidationResult {
|
|
|
201
202
|
declare function validateSitemap(xml: string): SitemapValidationResult | {
|
|
202
203
|
error: string;
|
|
203
204
|
};
|
|
205
|
+
interface SitemapSplitFile {
|
|
206
|
+
filename: string;
|
|
207
|
+
urlCount: number;
|
|
208
|
+
xml: string;
|
|
209
|
+
}
|
|
210
|
+
interface SplitSitemapResult {
|
|
211
|
+
files: SitemapSplitFile[];
|
|
212
|
+
indexXml: string;
|
|
213
|
+
totalUrls: number;
|
|
214
|
+
}
|
|
215
|
+
interface SplitSitemapOptions {
|
|
216
|
+
baseUrl: string;
|
|
217
|
+
urlsPerFile?: number;
|
|
218
|
+
filePrefix?: string;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Split a newline-separated URL list exceeding the sitemaps.org 50,000-URL
|
|
222
|
+
* cap into multiple sitemap.xml files plus a sitemap index file. Validation
|
|
223
|
+
* of each URL line is reported 1-indexed against the list of non-empty
|
|
224
|
+
* lines (blank lines are dropped before counting/validating, so a blank
|
|
225
|
+
* line does not shift the reported line number of a later error).
|
|
226
|
+
*/
|
|
227
|
+
declare function splitSitemap(urlsText: string, options: SplitSitemapOptions): SplitSitemapResult | {
|
|
228
|
+
error: string;
|
|
229
|
+
};
|
|
204
230
|
interface RobotsRule {
|
|
205
231
|
type: 'allow' | 'disallow';
|
|
206
232
|
value: string;
|
|
@@ -739,8 +765,11 @@ declare const network_STATUS_CODES: typeof STATUS_CODES;
|
|
|
739
765
|
type network_SameSiteValue = SameSiteValue;
|
|
740
766
|
type network_SitemapIndexEntry = SitemapIndexEntry;
|
|
741
767
|
type network_SitemapIssue = SitemapIssue;
|
|
768
|
+
type network_SitemapSplitFile = SitemapSplitFile;
|
|
742
769
|
type network_SitemapUrlEntry = SitemapUrlEntry;
|
|
743
770
|
type network_SitemapValidationResult = SitemapValidationResult;
|
|
771
|
+
type network_SplitSitemapOptions = SplitSitemapOptions;
|
|
772
|
+
type network_SplitSitemapResult = SplitSitemapResult;
|
|
744
773
|
type network_StatusCode = StatusCode;
|
|
745
774
|
type network_UaDeviceType = UaDeviceType;
|
|
746
775
|
type network_UserAgentInfo = UserAgentInfo;
|
|
@@ -785,6 +814,7 @@ declare const network_parseUserAgent: typeof parseUserAgent;
|
|
|
785
814
|
declare const network_parseVaryHeader: typeof parseVaryHeader;
|
|
786
815
|
declare const network_searchHeaders: typeof searchHeaders;
|
|
787
816
|
declare const network_searchStatusCodes: typeof searchStatusCodes;
|
|
817
|
+
declare const network_splitSitemap: typeof splitSitemap;
|
|
788
818
|
declare const network_statusCodeToText: typeof statusCodeToText;
|
|
789
819
|
declare const network_typeNumberToLabel: typeof typeNumberToLabel;
|
|
790
820
|
declare const network_validateDomain: typeof validateDomain;
|
|
@@ -794,7 +824,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
794
824
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
795
825
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
796
826
|
declare namespace network {
|
|
797
|
-
export { type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, network_analyzeEmailHeaders as analyzeEmailHeaders, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
827
|
+
export { type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, network_analyzeEmailHeaders as analyzeEmailHeaders, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
798
828
|
}
|
|
799
829
|
|
|
800
|
-
export { type ReferrerPolicyResult as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type LinkHeaderResult as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type LinkRel as J, type ManifestIssue as K, LINK_REL_VALUES as L, type ManifestIconInfo as M, type ManifestValidationResult as N, type ParsedClientHint as O, PERMISSIONS_POLICY_FEATURES as P, type ParsedDnsResult as Q, type ParsedGeoResult as R, type PermissionsPolicyDirective as S, type PermissionsPolicyFeatureInput as T, type PermissionsPolicyResult as U, REFERRER_POLICY_VALUES as V, type RangeEntry as W, type RangeEntryInput as X, type RangeHeaderResult as Y, type ReceivedHop as Z, type ReferrerPolicyEntry as _, type CacheControlDirective as a, type ReferrerPolicyValue as a0, type RobotsGroup as a1, type RobotsIssue as a2, type RobotsRule as a3, type RobotsValidationResult as a4, STATUS_CODES as a5, type SameSiteValue as a6, type SitemapIndexEntry as a7, type SitemapIssue as a8, type
|
|
830
|
+
export { type ReferrerPolicyResult as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type LinkHeaderResult as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type LinkRel as J, type ManifestIssue as K, LINK_REL_VALUES as L, type ManifestIconInfo as M, type ManifestValidationResult as N, type ParsedClientHint as O, PERMISSIONS_POLICY_FEATURES as P, type ParsedDnsResult as Q, type ParsedGeoResult as R, type PermissionsPolicyDirective as S, type PermissionsPolicyFeatureInput as T, type PermissionsPolicyResult as U, REFERRER_POLICY_VALUES as V, type RangeEntry as W, type RangeEntryInput as X, type RangeHeaderResult as Y, type ReceivedHop as Z, type ReferrerPolicyEntry as _, type CacheControlDirective as a, validateHeaderValue as a$, type ReferrerPolicyValue as a0, type RobotsGroup as a1, type RobotsIssue as a2, type RobotsRule as a3, type RobotsValidationResult as a4, STATUS_CODES as a5, type SameSiteValue as a6, type SitemapIndexEntry as a7, type SitemapIssue as a8, type SitemapSplitFile as a9, getHeader as aA, getHeadersByCategory as aB, getStatusByCategory as aC, getStatusCode as aD, isClientError as aE, isServerError as aF, isSuccess as aG, isValidIp as aH, isValidIpv4 as aI, isValidIpv6 as aJ, parseClientHintHeaders as aK, parseContentDisposition as aL, parseContentRangeHeader as aM, parseDnsResponse as aN, parseGeoResponse as aO, parseHar as aP, parseIpv6Address as aQ, parsePermissionsPolicy as aR, parseUserAgent as aS, parseVaryHeader as aT, searchHeaders as aU, searchStatusCodes as aV, splitSitemap as aW, statusCodeToText as aX, typeNumberToLabel as aY, validateDomain as aZ, validateHeaderName as a_, type SitemapUrlEntry as aa, type SitemapValidationResult as ab, type SplitSitemapOptions as ac, type SplitSitemapResult as ad, type StatusCode as ae, type UaDeviceType as af, type UserAgentInfo as ag, type VaryHeaderEntry as ah, type VaryHeaderResult as ai, analyzeEmailHeaders as aj, buildCacheControl as ak, buildClientHints as al, buildContentDisposition as am, buildDnsQueryUrl as an, buildGeoUrl as ao, buildLinkHeader as ap, buildMapUrl as aq, buildPermissionsPolicy as ar, buildRangeHeader as as, buildReferrerPolicy as at, buildVaryHeader as au, checkSetCookieHeader as av, countryCodeToFlag as aw, formatCoordinates as ax, formatTtl as ay, getByCategory as az, type CacheControlOptions as b, validateManifest as b0, validateRobotsTxt as b1, validateSitemap as b2, type CacheControlResult as c, type ClientHintDef as d, type ClientHintValueType as e, type ClientHintsBuildResult as f, type ClientHintsParseResult as g, type ContentDispositionBuildOptions as h, type ContentDispositionBuildResult as i, type ContentDispositionParseResult as j, type ContentRangeResult as k, type CookieAttributes as l, type CookieCheckResult as m, network as n, type DnsRecord as o, type DnsRecordType as p, type DnsResponse as q, type EmailHeaderField as r, type HarEntry as s, type HarParseResult as t, type HarSummary as u, type HeaderCategory as v, type HttpHeader as w, type Ipv6ParseResult as x, type LinkHeaderEntry as y, type LinkHeaderEntryInput as z };
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* - http-headers : HTTP header reference lookup and validation
|
|
10
10
|
* - har-viewer : parseHar
|
|
11
11
|
* - sitemap-validator: validateSitemap
|
|
12
|
+
* - sitemap-index-splitter: splitSitemap
|
|
12
13
|
* - robots-txt-validator: validateRobotsTxt
|
|
13
14
|
* - user-agent-parser: parseUserAgent
|
|
14
15
|
* - cache-control-builder: buildCacheControl
|
|
@@ -201,6 +202,31 @@ interface SitemapValidationResult {
|
|
|
201
202
|
declare function validateSitemap(xml: string): SitemapValidationResult | {
|
|
202
203
|
error: string;
|
|
203
204
|
};
|
|
205
|
+
interface SitemapSplitFile {
|
|
206
|
+
filename: string;
|
|
207
|
+
urlCount: number;
|
|
208
|
+
xml: string;
|
|
209
|
+
}
|
|
210
|
+
interface SplitSitemapResult {
|
|
211
|
+
files: SitemapSplitFile[];
|
|
212
|
+
indexXml: string;
|
|
213
|
+
totalUrls: number;
|
|
214
|
+
}
|
|
215
|
+
interface SplitSitemapOptions {
|
|
216
|
+
baseUrl: string;
|
|
217
|
+
urlsPerFile?: number;
|
|
218
|
+
filePrefix?: string;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Split a newline-separated URL list exceeding the sitemaps.org 50,000-URL
|
|
222
|
+
* cap into multiple sitemap.xml files plus a sitemap index file. Validation
|
|
223
|
+
* of each URL line is reported 1-indexed against the list of non-empty
|
|
224
|
+
* lines (blank lines are dropped before counting/validating, so a blank
|
|
225
|
+
* line does not shift the reported line number of a later error).
|
|
226
|
+
*/
|
|
227
|
+
declare function splitSitemap(urlsText: string, options: SplitSitemapOptions): SplitSitemapResult | {
|
|
228
|
+
error: string;
|
|
229
|
+
};
|
|
204
230
|
interface RobotsRule {
|
|
205
231
|
type: 'allow' | 'disallow';
|
|
206
232
|
value: string;
|
|
@@ -739,8 +765,11 @@ declare const network_STATUS_CODES: typeof STATUS_CODES;
|
|
|
739
765
|
type network_SameSiteValue = SameSiteValue;
|
|
740
766
|
type network_SitemapIndexEntry = SitemapIndexEntry;
|
|
741
767
|
type network_SitemapIssue = SitemapIssue;
|
|
768
|
+
type network_SitemapSplitFile = SitemapSplitFile;
|
|
742
769
|
type network_SitemapUrlEntry = SitemapUrlEntry;
|
|
743
770
|
type network_SitemapValidationResult = SitemapValidationResult;
|
|
771
|
+
type network_SplitSitemapOptions = SplitSitemapOptions;
|
|
772
|
+
type network_SplitSitemapResult = SplitSitemapResult;
|
|
744
773
|
type network_StatusCode = StatusCode;
|
|
745
774
|
type network_UaDeviceType = UaDeviceType;
|
|
746
775
|
type network_UserAgentInfo = UserAgentInfo;
|
|
@@ -785,6 +814,7 @@ declare const network_parseUserAgent: typeof parseUserAgent;
|
|
|
785
814
|
declare const network_parseVaryHeader: typeof parseVaryHeader;
|
|
786
815
|
declare const network_searchHeaders: typeof searchHeaders;
|
|
787
816
|
declare const network_searchStatusCodes: typeof searchStatusCodes;
|
|
817
|
+
declare const network_splitSitemap: typeof splitSitemap;
|
|
788
818
|
declare const network_statusCodeToText: typeof statusCodeToText;
|
|
789
819
|
declare const network_typeNumberToLabel: typeof typeNumberToLabel;
|
|
790
820
|
declare const network_validateDomain: typeof validateDomain;
|
|
@@ -794,7 +824,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
794
824
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
795
825
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
796
826
|
declare namespace network {
|
|
797
|
-
export { type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, network_analyzeEmailHeaders as analyzeEmailHeaders, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
827
|
+
export { type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, network_analyzeEmailHeaders as analyzeEmailHeaders, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
798
828
|
}
|
|
799
829
|
|
|
800
|
-
export { type ReferrerPolicyResult as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type LinkHeaderResult as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type LinkRel as J, type ManifestIssue as K, LINK_REL_VALUES as L, type ManifestIconInfo as M, type ManifestValidationResult as N, type ParsedClientHint as O, PERMISSIONS_POLICY_FEATURES as P, type ParsedDnsResult as Q, type ParsedGeoResult as R, type PermissionsPolicyDirective as S, type PermissionsPolicyFeatureInput as T, type PermissionsPolicyResult as U, REFERRER_POLICY_VALUES as V, type RangeEntry as W, type RangeEntryInput as X, type RangeHeaderResult as Y, type ReceivedHop as Z, type ReferrerPolicyEntry as _, type CacheControlDirective as a, type ReferrerPolicyValue as a0, type RobotsGroup as a1, type RobotsIssue as a2, type RobotsRule as a3, type RobotsValidationResult as a4, STATUS_CODES as a5, type SameSiteValue as a6, type SitemapIndexEntry as a7, type SitemapIssue as a8, type
|
|
830
|
+
export { type ReferrerPolicyResult as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type LinkHeaderResult as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type LinkRel as J, type ManifestIssue as K, LINK_REL_VALUES as L, type ManifestIconInfo as M, type ManifestValidationResult as N, type ParsedClientHint as O, PERMISSIONS_POLICY_FEATURES as P, type ParsedDnsResult as Q, type ParsedGeoResult as R, type PermissionsPolicyDirective as S, type PermissionsPolicyFeatureInput as T, type PermissionsPolicyResult as U, REFERRER_POLICY_VALUES as V, type RangeEntry as W, type RangeEntryInput as X, type RangeHeaderResult as Y, type ReceivedHop as Z, type ReferrerPolicyEntry as _, type CacheControlDirective as a, validateHeaderValue as a$, type ReferrerPolicyValue as a0, type RobotsGroup as a1, type RobotsIssue as a2, type RobotsRule as a3, type RobotsValidationResult as a4, STATUS_CODES as a5, type SameSiteValue as a6, type SitemapIndexEntry as a7, type SitemapIssue as a8, type SitemapSplitFile as a9, getHeader as aA, getHeadersByCategory as aB, getStatusByCategory as aC, getStatusCode as aD, isClientError as aE, isServerError as aF, isSuccess as aG, isValidIp as aH, isValidIpv4 as aI, isValidIpv6 as aJ, parseClientHintHeaders as aK, parseContentDisposition as aL, parseContentRangeHeader as aM, parseDnsResponse as aN, parseGeoResponse as aO, parseHar as aP, parseIpv6Address as aQ, parsePermissionsPolicy as aR, parseUserAgent as aS, parseVaryHeader as aT, searchHeaders as aU, searchStatusCodes as aV, splitSitemap as aW, statusCodeToText as aX, typeNumberToLabel as aY, validateDomain as aZ, validateHeaderName as a_, type SitemapUrlEntry as aa, type SitemapValidationResult as ab, type SplitSitemapOptions as ac, type SplitSitemapResult as ad, type StatusCode as ae, type UaDeviceType as af, type UserAgentInfo as ag, type VaryHeaderEntry as ah, type VaryHeaderResult as ai, analyzeEmailHeaders as aj, buildCacheControl as ak, buildClientHints as al, buildContentDisposition as am, buildDnsQueryUrl as an, buildGeoUrl as ao, buildLinkHeader as ap, buildMapUrl as aq, buildPermissionsPolicy as ar, buildRangeHeader as as, buildReferrerPolicy as at, buildVaryHeader as au, checkSetCookieHeader as av, countryCodeToFlag as aw, formatCoordinates as ax, formatTtl as ay, getByCategory as az, type CacheControlOptions as b, validateManifest as b0, validateRobotsTxt as b1, validateSitemap as b2, type CacheControlResult as c, type ClientHintDef as d, type ClientHintValueType as e, type ClientHintsBuildResult as f, type ClientHintsParseResult as g, type ContentDispositionBuildOptions as h, type ContentDispositionBuildResult as i, type ContentDispositionParseResult as j, type ContentRangeResult as k, type CookieAttributes as l, type CookieCheckResult as m, network as n, type DnsRecord as o, type DnsRecordType as p, type DnsResponse as q, type EmailHeaderField as r, type HarEntry as s, type HarParseResult as t, type HarSummary as u, type HeaderCategory as v, type HttpHeader as w, type Ipv6ParseResult as x, type LinkHeaderEntry as y, type LinkHeaderEntryInput as z };
|
package/dist/tools/data.cjs
CHANGED
|
@@ -1531,6 +1531,68 @@ function findCsvDuplicateRows(input, options) {
|
|
|
1531
1531
|
uniqueRowCount: parsed.rows.length - duplicateRowCount + duplicateGroups.length
|
|
1532
1532
|
};
|
|
1533
1533
|
}
|
|
1534
|
+
var _YAML_ANCHOR_RE = /(?:^|\s)&([A-Za-z0-9_.-]+)/g;
|
|
1535
|
+
var _YAML_ALIAS_RE = /(?:^|\s)\*([A-Za-z0-9_.-]+)/g;
|
|
1536
|
+
function _stripYamlLineComment(line) {
|
|
1537
|
+
let inSingle = false;
|
|
1538
|
+
let inDouble = false;
|
|
1539
|
+
for (let i = 0; i < line.length; i++) {
|
|
1540
|
+
const ch = line[i];
|
|
1541
|
+
if (ch === "'" && !inDouble) {
|
|
1542
|
+
inSingle = !inSingle;
|
|
1543
|
+
} else if (ch === '"' && !inSingle) {
|
|
1544
|
+
inDouble = !inDouble;
|
|
1545
|
+
} else if (ch === "#" && !inSingle && !inDouble && (i === 0 || /\s/.test(line[i - 1]))) {
|
|
1546
|
+
return line.slice(0, i);
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
return line;
|
|
1550
|
+
}
|
|
1551
|
+
function resolveYamlAnchors(yamlText) {
|
|
1552
|
+
if (!yamlText || !yamlText.trim()) return { error: "Input is empty" };
|
|
1553
|
+
const anchorDefs = [];
|
|
1554
|
+
const referencedNames = /* @__PURE__ */ new Set();
|
|
1555
|
+
let aliasCount = 0;
|
|
1556
|
+
const lines = yamlText.split("\n");
|
|
1557
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1558
|
+
const line = _stripYamlLineComment(lines[i]);
|
|
1559
|
+
const lineNum = i + 1;
|
|
1560
|
+
_YAML_ANCHOR_RE.lastIndex = 0;
|
|
1561
|
+
let m;
|
|
1562
|
+
while ((m = _YAML_ANCHOR_RE.exec(line)) !== null) {
|
|
1563
|
+
anchorDefs.push({ name: m[1], line: lineNum });
|
|
1564
|
+
}
|
|
1565
|
+
_YAML_ALIAS_RE.lastIndex = 0;
|
|
1566
|
+
while ((m = _YAML_ALIAS_RE.exec(line)) !== null) {
|
|
1567
|
+
referencedNames.add(m[1]);
|
|
1568
|
+
aliasCount++;
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
let parsed;
|
|
1572
|
+
try {
|
|
1573
|
+
parsed = yaml__namespace.load(yamlText);
|
|
1574
|
+
} catch (e) {
|
|
1575
|
+
const err = e;
|
|
1576
|
+
return { error: err.reason ?? err.message };
|
|
1577
|
+
}
|
|
1578
|
+
let resolvedYaml;
|
|
1579
|
+
try {
|
|
1580
|
+
resolvedYaml = yaml__namespace.dump(parsed, { noRefs: true, lineWidth: -1 });
|
|
1581
|
+
} catch (e) {
|
|
1582
|
+
return { error: e instanceof Error ? e.message : String(e) };
|
|
1583
|
+
}
|
|
1584
|
+
const anchors = anchorDefs.map((a) => ({
|
|
1585
|
+
name: a.name,
|
|
1586
|
+
line: a.line,
|
|
1587
|
+
referenced: referencedNames.has(a.name)
|
|
1588
|
+
}));
|
|
1589
|
+
const seenAnchorNames = [];
|
|
1590
|
+
for (const a of anchorDefs) {
|
|
1591
|
+
if (!seenAnchorNames.includes(a.name)) seenAnchorNames.push(a.name);
|
|
1592
|
+
}
|
|
1593
|
+
const unusedAnchors = seenAnchorNames.filter((name) => !referencedNames.has(name));
|
|
1594
|
+
return { resolvedYaml, anchors, unusedAnchors, aliasCount };
|
|
1595
|
+
}
|
|
1534
1596
|
|
|
1535
1597
|
exports.convertSubtitles = convertSubtitles;
|
|
1536
1598
|
exports.csvToJson = csvToJson;
|
|
@@ -1567,6 +1629,7 @@ exports.parseIni = parseIni;
|
|
|
1567
1629
|
exports.parseSubtitleTimestamp = parseSubtitleTimestamp;
|
|
1568
1630
|
exports.parseSubtitles = parseSubtitles;
|
|
1569
1631
|
exports.parseXmlToObject = parseXmlToObject;
|
|
1632
|
+
exports.resolveYamlAnchors = resolveYamlAnchors;
|
|
1570
1633
|
exports.serializeSubtitles = serializeSubtitles;
|
|
1571
1634
|
exports.shiftSubtitles = shiftSubtitles;
|
|
1572
1635
|
exports.stringifyIni = stringifyIni;
|
package/dist/tools/data.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as ConvertedSubtitles, a as CsvDuplicateGroup, b as CsvDuplicateOptions, c as CsvDuplicateResult, e as CsvParseResult, f as CsvToSqlOptions, g as CsvToSqlResult, E as EnvDiffError, h as EnvDiffResult, i as EnvEntry, j as EnvParseResult, F as FrontMatterError, k as FrontMatterResult, I as IniSection, M as MarkdownTocEntry, l as MarkdownTocOptions, m as MarkdownTocResult, N as NdjsonLineResult, n as NdjsonValidateResult, P as ParseOptions, o as ParsedIni, p as ParsedSubtitles, S as SubtitleCue, q as SubtitleFormat, T as TomlFormatResult, V as ValidationResult, X as XmlFormatResult, r as XmlToJsonOptions, s as
|
|
1
|
+
export { C as ConvertedSubtitles, a as CsvDuplicateGroup, b as CsvDuplicateOptions, c as CsvDuplicateResult, e as CsvParseResult, f as CsvToSqlOptions, g as CsvToSqlResult, E as EnvDiffError, h as EnvDiffResult, i as EnvEntry, j as EnvParseResult, F as FrontMatterError, k as FrontMatterResult, I as IniSection, M as MarkdownTocEntry, l as MarkdownTocOptions, m as MarkdownTocResult, N as NdjsonLineResult, n as NdjsonValidateResult, P as ParseOptions, o as ParsedIni, p as ParsedSubtitles, S as SubtitleCue, q as SubtitleFormat, T as TomlFormatResult, V as ValidationResult, X as XmlFormatResult, r as XmlToJsonOptions, Y as YamlAnchorInfo, s as YamlAnchorResolveError, t as YamlAnchorResolveResult, u as convertSubtitles, v as csvToJson, w as csvToSqlInsert, x as detectDelimiter, y as detectSubtitleFormat, z as diffEnvExample, A as envToExport, B as envToJson, D as findCsvDuplicateRows, G as formatNdjson, H as formatSubtitleTimestamp, J as formatToml, K as formatXml, L as generateMarkdownToc, O as getSection, Q as getSectionNames, R as getTomlStats, U as getXmlStats, W as getYamlStats, Z as iniToJson, _ as jsonArrayToNdjson, $ as jsonToIni, a0 as jsonToToml, a1 as jsonToXml, a2 as minifyNdjson, a3 as minifyToml, a4 as minifyXml, a5 as ndjsonToJsonArray, a6 as parseCsv, a7 as parseEnv, a8 as parseFrontMatter, a9 as parseIni, aa as parseSubtitleTimestamp, ab as parseSubtitles, ac as parseXmlToObject, ad as resolveYamlAnchors, ae as serializeSubtitles, af as shiftSubtitles, ag as stringifyIni, ah as toCsvString, ai as tomlToJson, aj as validateEnvKey, ak as validateIni, al as validateNdjson, am as validateToml, an as validateXml, ao as validateYaml, ap as xmlToJson } from '../data-BJVJ879p.cjs';
|
package/dist/tools/data.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as ConvertedSubtitles, a as CsvDuplicateGroup, b as CsvDuplicateOptions, c as CsvDuplicateResult, e as CsvParseResult, f as CsvToSqlOptions, g as CsvToSqlResult, E as EnvDiffError, h as EnvDiffResult, i as EnvEntry, j as EnvParseResult, F as FrontMatterError, k as FrontMatterResult, I as IniSection, M as MarkdownTocEntry, l as MarkdownTocOptions, m as MarkdownTocResult, N as NdjsonLineResult, n as NdjsonValidateResult, P as ParseOptions, o as ParsedIni, p as ParsedSubtitles, S as SubtitleCue, q as SubtitleFormat, T as TomlFormatResult, V as ValidationResult, X as XmlFormatResult, r as XmlToJsonOptions, s as
|
|
1
|
+
export { C as ConvertedSubtitles, a as CsvDuplicateGroup, b as CsvDuplicateOptions, c as CsvDuplicateResult, e as CsvParseResult, f as CsvToSqlOptions, g as CsvToSqlResult, E as EnvDiffError, h as EnvDiffResult, i as EnvEntry, j as EnvParseResult, F as FrontMatterError, k as FrontMatterResult, I as IniSection, M as MarkdownTocEntry, l as MarkdownTocOptions, m as MarkdownTocResult, N as NdjsonLineResult, n as NdjsonValidateResult, P as ParseOptions, o as ParsedIni, p as ParsedSubtitles, S as SubtitleCue, q as SubtitleFormat, T as TomlFormatResult, V as ValidationResult, X as XmlFormatResult, r as XmlToJsonOptions, Y as YamlAnchorInfo, s as YamlAnchorResolveError, t as YamlAnchorResolveResult, u as convertSubtitles, v as csvToJson, w as csvToSqlInsert, x as detectDelimiter, y as detectSubtitleFormat, z as diffEnvExample, A as envToExport, B as envToJson, D as findCsvDuplicateRows, G as formatNdjson, H as formatSubtitleTimestamp, J as formatToml, K as formatXml, L as generateMarkdownToc, O as getSection, Q as getSectionNames, R as getTomlStats, U as getXmlStats, W as getYamlStats, Z as iniToJson, _ as jsonArrayToNdjson, $ as jsonToIni, a0 as jsonToToml, a1 as jsonToXml, a2 as minifyNdjson, a3 as minifyToml, a4 as minifyXml, a5 as ndjsonToJsonArray, a6 as parseCsv, a7 as parseEnv, a8 as parseFrontMatter, a9 as parseIni, aa as parseSubtitleTimestamp, ab as parseSubtitles, ac as parseXmlToObject, ad as resolveYamlAnchors, ae as serializeSubtitles, af as shiftSubtitles, ag as stringifyIni, ah as toCsvString, ai as tomlToJson, aj as validateEnvKey, ak as validateIni, al as validateNdjson, am as validateToml, an as validateXml, ao as validateYaml, ap as xmlToJson } from '../data-BJVJ879p.js';
|
package/dist/tools/data.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { convertSubtitles, csvToJson, csvToSqlInsert, detectDelimiter, detectSubtitleFormat, diffEnvExample, envToExport, envToJson, findCsvDuplicateRows, formatNdjson, formatSubtitleTimestamp, formatToml, formatXml, generateMarkdownToc, getSection, getSectionNames, getTomlStats, getXmlStats, getYamlStats, iniToJson, jsonArrayToNdjson, jsonToIni, jsonToToml, jsonToXml, minifyNdjson, minifyToml, minifyXml, ndjsonToJsonArray, parseCsv, parseEnv, parseFrontMatter, parseIni, parseSubtitleTimestamp, parseSubtitles, parseXmlToObject, serializeSubtitles, shiftSubtitles, stringifyIni, toCsvString, tomlToJson, validateEnvKey, validateIni, validateNdjson, validateToml, validateXml, validateYaml, xmlToJson } from '../chunk-
|
|
1
|
+
export { convertSubtitles, csvToJson, csvToSqlInsert, detectDelimiter, detectSubtitleFormat, diffEnvExample, envToExport, envToJson, findCsvDuplicateRows, formatNdjson, formatSubtitleTimestamp, formatToml, formatXml, generateMarkdownToc, getSection, getSectionNames, getTomlStats, getXmlStats, getYamlStats, iniToJson, jsonArrayToNdjson, jsonToIni, jsonToToml, jsonToXml, minifyNdjson, minifyToml, minifyXml, ndjsonToJsonArray, parseCsv, parseEnv, parseFrontMatter, parseIni, parseSubtitleTimestamp, parseSubtitles, parseXmlToObject, resolveYamlAnchors, serializeSubtitles, shiftSubtitles, stringifyIni, toCsvString, tomlToJson, validateEnvKey, validateIni, validateNdjson, validateToml, validateXml, validateYaml, xmlToJson } from '../chunk-4TIY6COQ.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|