@utilix-tech/sdk 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +22 -5
- package/dist/{chunk-F57WMKZO.js → chunk-2I4O5YCT.js} +100 -1
- package/dist/{chunk-U34B5XPK.js → chunk-TFNCFD3E.js} +25 -1
- package/dist/{chunk-TSAGO3XP.js → chunk-WO3LJMVV.js} +54 -1
- package/dist/{chunk-3QMUUTBH.js → chunk-Y5OOP6WN.js} +94 -1
- package/dist/index.cjs +269 -0
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/{json-BjSoIS1h.d.cts → json-DEVFIpsC.d.cts} +26 -2
- package/dist/{json-BjSoIS1h.d.ts → json-DEVFIpsC.d.ts} +26 -2
- package/dist/{network-DZugNyAQ.d.cts → network-BJOjJnmY.d.cts} +45 -2
- package/dist/{network-DZugNyAQ.d.ts → network-BJOjJnmY.d.ts} +45 -2
- package/dist/{text-Bbx-tZ43.d.cts → text-DS70aMY5.d.cts} +33 -2
- package/dist/{text-Bbx-tZ43.d.ts → text-DS70aMY5.d.ts} +33 -2
- package/dist/tools/json.cjs +53 -0
- package/dist/tools/json.d.cts +1 -1
- package/dist/tools/json.d.ts +1 -1
- package/dist/tools/json.js +1 -1
- package/dist/tools/network.cjs +93 -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/text.cjs +99 -0
- package/dist/tools/text.d.cts +1 -1
- package/dist/tools/text.d.ts +1 -1
- package/dist/tools/text.js +1 -1
- package/dist/tools/units.cjs +24 -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-BFTQwpBu.d.cts → units-pIRkHnsU.d.cts} +24 -2
- package/dist/{units-BFTQwpBu.d.ts → units-pIRkHnsU.d.ts} +24 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -62,6 +62,7 @@ __export(json_exports, {
|
|
|
62
62
|
minifyJson: () => minifyJson,
|
|
63
63
|
parseJson: () => parseJson,
|
|
64
64
|
parseStructs: () => parseStructs,
|
|
65
|
+
resolveJsonPointer: () => resolveJsonPointer,
|
|
65
66
|
toPascalCase: () => toPascalCase,
|
|
66
67
|
toSnakeCase: () => toSnakeCase,
|
|
67
68
|
validateJson: () => validateJson,
|
|
@@ -1287,6 +1288,58 @@ function jsonToZod(json, options) {
|
|
|
1287
1288
|
|
|
1288
1289
|
export const ${rootName}Schema = ${schema}`;
|
|
1289
1290
|
}
|
|
1291
|
+
function _unescapePointerToken(token) {
|
|
1292
|
+
return token.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1293
|
+
}
|
|
1294
|
+
function resolveJsonPointer(json, pointer) {
|
|
1295
|
+
let parsed;
|
|
1296
|
+
try {
|
|
1297
|
+
parsed = JSON.parse(json);
|
|
1298
|
+
} catch {
|
|
1299
|
+
return { pointer, found: false, tokens: [], error: "Invalid JSON input" };
|
|
1300
|
+
}
|
|
1301
|
+
let ptr = pointer;
|
|
1302
|
+
if (ptr.startsWith("#")) {
|
|
1303
|
+
ptr = ptr.slice(1);
|
|
1304
|
+
try {
|
|
1305
|
+
ptr = decodeURIComponent(ptr);
|
|
1306
|
+
} catch {
|
|
1307
|
+
return { pointer, found: false, tokens: [], error: "Invalid percent-encoding in URI-fragment pointer" };
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
if (ptr === "") {
|
|
1311
|
+
return { pointer, found: true, value: parsed, tokens: [] };
|
|
1312
|
+
}
|
|
1313
|
+
if (!ptr.startsWith("/")) {
|
|
1314
|
+
return { pointer, found: false, tokens: [], error: "Pointer must be empty or start with '/' (RFC 6901)" };
|
|
1315
|
+
}
|
|
1316
|
+
const tokens = ptr.split("/").slice(1).map(_unescapePointerToken);
|
|
1317
|
+
let current = parsed;
|
|
1318
|
+
for (const token of tokens) {
|
|
1319
|
+
if (Array.isArray(current)) {
|
|
1320
|
+
if (token === "-") {
|
|
1321
|
+
return { pointer, found: false, tokens, failedAt: token, reason: '"-" refers to the nonexistent element after the end of the array' };
|
|
1322
|
+
}
|
|
1323
|
+
if (!/^(0|[1-9][0-9]*)$/.test(token)) {
|
|
1324
|
+
return { pointer, found: false, tokens, failedAt: token, reason: `"${token}" is not a valid array index` };
|
|
1325
|
+
}
|
|
1326
|
+
const idx = Number(token);
|
|
1327
|
+
if (idx >= current.length) {
|
|
1328
|
+
return { pointer, found: false, tokens, failedAt: token, reason: `array index ${idx} is out of bounds (length ${current.length})` };
|
|
1329
|
+
}
|
|
1330
|
+
current = current[idx];
|
|
1331
|
+
} else if (current !== null && typeof current === "object") {
|
|
1332
|
+
const obj = current;
|
|
1333
|
+
if (!Object.prototype.hasOwnProperty.call(obj, token)) {
|
|
1334
|
+
return { pointer, found: false, tokens, failedAt: token, reason: `key "${token}" not found` };
|
|
1335
|
+
}
|
|
1336
|
+
current = obj[token];
|
|
1337
|
+
} else {
|
|
1338
|
+
return { pointer, found: false, tokens, failedAt: token, reason: `cannot descend into ${current === null ? "null" : typeof current} at "${token}"` };
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
return { pointer, found: true, value: current, tokens };
|
|
1342
|
+
}
|
|
1290
1343
|
|
|
1291
1344
|
// src/tools/encoding.ts
|
|
1292
1345
|
var encoding_exports = {};
|
|
@@ -1874,6 +1927,7 @@ __export(text_exports, {
|
|
|
1874
1927
|
csvToHtml: () => csvToHtml,
|
|
1875
1928
|
csvToMarkdown: () => csvToMarkdown,
|
|
1876
1929
|
detectDelimiter: () => detectDelimiter,
|
|
1930
|
+
detectFillerWords: () => detectFillerWords,
|
|
1877
1931
|
detectPassiveVoice: () => detectPassiveVoice,
|
|
1878
1932
|
diffLines: () => diffLines,
|
|
1879
1933
|
diffLinesSimple: () => diffLinesSimple,
|
|
@@ -4311,6 +4365,104 @@ function scoreReadability(text) {
|
|
|
4311
4365
|
readingLevel: readabilityGradeLabel(fleschReadingEase)
|
|
4312
4366
|
};
|
|
4313
4367
|
}
|
|
4368
|
+
var FILLER_WORDS = [
|
|
4369
|
+
"very",
|
|
4370
|
+
"really",
|
|
4371
|
+
"just",
|
|
4372
|
+
"actually",
|
|
4373
|
+
"basically",
|
|
4374
|
+
"literally",
|
|
4375
|
+
"simply",
|
|
4376
|
+
"totally",
|
|
4377
|
+
"definitely",
|
|
4378
|
+
"certainly",
|
|
4379
|
+
"essentially",
|
|
4380
|
+
"absolutely",
|
|
4381
|
+
"completely",
|
|
4382
|
+
"extremely",
|
|
4383
|
+
"truly",
|
|
4384
|
+
"honestly",
|
|
4385
|
+
"seriously",
|
|
4386
|
+
"obviously",
|
|
4387
|
+
"clearly",
|
|
4388
|
+
"quite",
|
|
4389
|
+
"rather",
|
|
4390
|
+
"somewhat",
|
|
4391
|
+
"fairly",
|
|
4392
|
+
"virtually"
|
|
4393
|
+
];
|
|
4394
|
+
var HEDGE_PHRASES = [
|
|
4395
|
+
"maybe",
|
|
4396
|
+
"perhaps",
|
|
4397
|
+
"probably",
|
|
4398
|
+
"possibly",
|
|
4399
|
+
"arguably",
|
|
4400
|
+
"kind of",
|
|
4401
|
+
"sort of",
|
|
4402
|
+
"a bit",
|
|
4403
|
+
"a little",
|
|
4404
|
+
"more or less",
|
|
4405
|
+
"in my opinion",
|
|
4406
|
+
"i think",
|
|
4407
|
+
"i believe",
|
|
4408
|
+
"to some extent"
|
|
4409
|
+
];
|
|
4410
|
+
var CLICHE_PHRASES = [
|
|
4411
|
+
"at the end of the day",
|
|
4412
|
+
"think outside the box",
|
|
4413
|
+
"low-hanging fruit",
|
|
4414
|
+
"move the needle",
|
|
4415
|
+
"circle back",
|
|
4416
|
+
"touch base",
|
|
4417
|
+
"on the same page",
|
|
4418
|
+
"hit the ground running",
|
|
4419
|
+
"paradigm shift",
|
|
4420
|
+
"win-win",
|
|
4421
|
+
"game changer",
|
|
4422
|
+
"best of both worlds",
|
|
4423
|
+
"only time will tell",
|
|
4424
|
+
"back to the drawing board",
|
|
4425
|
+
"the tip of the iceberg",
|
|
4426
|
+
"a perfect storm",
|
|
4427
|
+
"needle in a haystack",
|
|
4428
|
+
"raise the bar",
|
|
4429
|
+
"push the envelope",
|
|
4430
|
+
"the elephant in the room",
|
|
4431
|
+
"boil the ocean",
|
|
4432
|
+
"when it rains it pours"
|
|
4433
|
+
];
|
|
4434
|
+
var FILLER_DICTIONARY = [
|
|
4435
|
+
...FILLER_WORDS.map((phrase) => ({ phrase, category: "filler" })),
|
|
4436
|
+
...HEDGE_PHRASES.map((phrase) => ({ phrase, category: "hedge" })),
|
|
4437
|
+
...CLICHE_PHRASES.map((phrase) => ({ phrase, category: "cliche" }))
|
|
4438
|
+
];
|
|
4439
|
+
function _fillerRegex(phrase) {
|
|
4440
|
+
const tokens = phrase.split(/\s+/).map((t) => t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
|
|
4441
|
+
return new RegExp("\\b" + tokens.join("\\s+") + "\\b", "gi");
|
|
4442
|
+
}
|
|
4443
|
+
function detectFillerWords(text) {
|
|
4444
|
+
const totalWords = (text.match(/[A-Za-z0-9']+/g) ?? []).length;
|
|
4445
|
+
const matches = [];
|
|
4446
|
+
for (const entry of FILLER_DICTIONARY) {
|
|
4447
|
+
const re = _fillerRegex(entry.phrase);
|
|
4448
|
+
const indices = [];
|
|
4449
|
+
let m;
|
|
4450
|
+
while ((m = re.exec(text)) !== null) {
|
|
4451
|
+
indices.push(m.index);
|
|
4452
|
+
if (m.index === re.lastIndex) re.lastIndex++;
|
|
4453
|
+
}
|
|
4454
|
+
if (indices.length > 0) {
|
|
4455
|
+
matches.push({ phrase: entry.phrase, category: entry.category, count: indices.length, indices });
|
|
4456
|
+
}
|
|
4457
|
+
}
|
|
4458
|
+
matches.sort((a, b) => b.count - a.count || a.category.localeCompare(b.category) || a.phrase.localeCompare(b.phrase));
|
|
4459
|
+
const fillerCount = matches.filter((x) => x.category === "filler").reduce((s, x) => s + x.count, 0);
|
|
4460
|
+
const hedgeCount = matches.filter((x) => x.category === "hedge").reduce((s, x) => s + x.count, 0);
|
|
4461
|
+
const clicheCount = matches.filter((x) => x.category === "cliche").reduce((s, x) => s + x.count, 0);
|
|
4462
|
+
const totalMatches = fillerCount + hedgeCount + clicheCount;
|
|
4463
|
+
const density = totalWords > 0 ? Math.round(totalMatches / totalWords * 1e3) / 10 : 0;
|
|
4464
|
+
return { totalWords, totalMatches, fillerCount, hedgeCount, clicheCount, density, matches };
|
|
4465
|
+
}
|
|
4314
4466
|
|
|
4315
4467
|
// src/tools/data.ts
|
|
4316
4468
|
var data_exports = {};
|
|
@@ -6685,6 +6837,7 @@ __export(units_exports, {
|
|
|
6685
6837
|
calcSubnet: () => calcSubnet,
|
|
6686
6838
|
calculateCompoundInterest: () => calculateCompoundInterest,
|
|
6687
6839
|
calculateLoan: () => calculateLoan,
|
|
6840
|
+
calculatePercentageChange: () => calculatePercentageChange,
|
|
6688
6841
|
calculateSimpleInterest: () => calculateSimpleInterest,
|
|
6689
6842
|
calculateTax: () => calculateTax,
|
|
6690
6843
|
calculateTimeValue: () => calculateTimeValue,
|
|
@@ -8002,6 +8155,29 @@ function calculateTimeValue(amount, annualRatePercent, years, direction, compoun
|
|
|
8002
8155
|
interest: round23(futureValue - presentValue)
|
|
8003
8156
|
};
|
|
8004
8157
|
}
|
|
8158
|
+
function calculatePercentageChange(oldValue, newValue) {
|
|
8159
|
+
if (!Number.isFinite(oldValue)) return { error: "Original value must be a finite number" };
|
|
8160
|
+
if (!Number.isFinite(newValue)) return { error: "New value must be a finite number" };
|
|
8161
|
+
if (oldValue === 0 && newValue !== 0) {
|
|
8162
|
+
return { error: "Percentage change from zero is undefined (division by zero); use a nonzero original value" };
|
|
8163
|
+
}
|
|
8164
|
+
const round4 = (n) => Math.round(n * 1e4) / 1e4;
|
|
8165
|
+
const absoluteChange = newValue - oldValue;
|
|
8166
|
+
const percentChange = oldValue === 0 ? 0 : absoluteChange / Math.abs(oldValue) * 100;
|
|
8167
|
+
const multiplier = oldValue === 0 ? 1 : newValue / oldValue;
|
|
8168
|
+
let direction;
|
|
8169
|
+
if (absoluteChange > 0) direction = "increase";
|
|
8170
|
+
else if (absoluteChange < 0) direction = "decrease";
|
|
8171
|
+
else direction = "no change";
|
|
8172
|
+
return {
|
|
8173
|
+
oldValue,
|
|
8174
|
+
newValue,
|
|
8175
|
+
absoluteChange: round4(absoluteChange),
|
|
8176
|
+
percentChange: round4(percentChange),
|
|
8177
|
+
direction,
|
|
8178
|
+
multiplier: round4(multiplier)
|
|
8179
|
+
};
|
|
8180
|
+
}
|
|
8005
8181
|
|
|
8006
8182
|
// src/tools/network.ts
|
|
8007
8183
|
var network_exports = {};
|
|
@@ -8009,6 +8185,7 @@ __export(network_exports, {
|
|
|
8009
8185
|
DNS_RECORD_TYPES: () => DNS_RECORD_TYPES,
|
|
8010
8186
|
HTTP_HEADERS: () => HTTP_HEADERS,
|
|
8011
8187
|
STATUS_CODES: () => STATUS_CODES,
|
|
8188
|
+
buildCacheControl: () => buildCacheControl,
|
|
8012
8189
|
buildDnsQueryUrl: () => buildDnsQueryUrl,
|
|
8013
8190
|
buildGeoUrl: () => buildGeoUrl,
|
|
8014
8191
|
buildMapUrl: () => buildMapUrl,
|
|
@@ -9724,6 +9901,98 @@ function parseUserAgent(ua) {
|
|
|
9724
9901
|
const device = { type: _detectUaDeviceType(s) };
|
|
9725
9902
|
return { browser, engine, os, device, raw: s };
|
|
9726
9903
|
}
|
|
9904
|
+
var _CACHE_NUM_FIELDS = ["maxAge", "sMaxAge", "staleWhileRevalidate", "staleIfError"];
|
|
9905
|
+
function _humanizeSeconds(s) {
|
|
9906
|
+
if (s === 0) return "0 seconds";
|
|
9907
|
+
const units = [
|
|
9908
|
+
[86400, "day"],
|
|
9909
|
+
[3600, "hour"],
|
|
9910
|
+
[60, "minute"],
|
|
9911
|
+
[1, "second"]
|
|
9912
|
+
];
|
|
9913
|
+
const parts = [];
|
|
9914
|
+
let rem = s;
|
|
9915
|
+
for (const [size, label] of units) {
|
|
9916
|
+
if (rem >= size) {
|
|
9917
|
+
const n = Math.floor(rem / size);
|
|
9918
|
+
rem -= n * size;
|
|
9919
|
+
parts.push(`${n} ${label}${n === 1 ? "" : "s"}`);
|
|
9920
|
+
}
|
|
9921
|
+
}
|
|
9922
|
+
return parts.slice(0, 2).join(" ");
|
|
9923
|
+
}
|
|
9924
|
+
function buildCacheControl(options = {}) {
|
|
9925
|
+
const nums = {
|
|
9926
|
+
maxAge: null,
|
|
9927
|
+
sMaxAge: null,
|
|
9928
|
+
staleWhileRevalidate: null,
|
|
9929
|
+
staleIfError: null
|
|
9930
|
+
};
|
|
9931
|
+
for (const field of _CACHE_NUM_FIELDS) {
|
|
9932
|
+
const v = options[field];
|
|
9933
|
+
if (v === void 0 || v === null) continue;
|
|
9934
|
+
if (typeof v !== "number" || !Number.isFinite(v) || !Number.isInteger(v) || v < 0) {
|
|
9935
|
+
return { error: `${field} must be a non-negative integer number of seconds` };
|
|
9936
|
+
}
|
|
9937
|
+
nums[field] = v;
|
|
9938
|
+
}
|
|
9939
|
+
const directives = [];
|
|
9940
|
+
const warnings = [];
|
|
9941
|
+
if (options.visibility === "public") {
|
|
9942
|
+
directives.push({ name: "public", value: null, explanation: "Any cache, including shared caches and CDNs, may store this response." });
|
|
9943
|
+
}
|
|
9944
|
+
if (options.visibility === "private") {
|
|
9945
|
+
directives.push({ name: "private", value: null, explanation: "Only the user's browser may cache this response; shared caches and CDNs must not." });
|
|
9946
|
+
}
|
|
9947
|
+
if (options.noCache) {
|
|
9948
|
+
directives.push({ name: "no-cache", value: null, explanation: "A cache may store the response but must revalidate it with the origin before every reuse." });
|
|
9949
|
+
}
|
|
9950
|
+
if (options.noStore) {
|
|
9951
|
+
directives.push({ name: "no-store", value: null, explanation: "No cache may store any part of this request or response." });
|
|
9952
|
+
}
|
|
9953
|
+
if (nums.maxAge !== null) {
|
|
9954
|
+
directives.push({ name: "max-age", value: String(nums.maxAge), explanation: `Considered fresh for ${_humanizeSeconds(nums.maxAge)} (${nums.maxAge}s), after which it becomes stale.` });
|
|
9955
|
+
}
|
|
9956
|
+
if (nums.sMaxAge !== null) {
|
|
9957
|
+
directives.push({ name: "s-maxage", value: String(nums.sMaxAge), explanation: `For shared caches (CDNs, proxies) it is fresh for ${_humanizeSeconds(nums.sMaxAge)} (${nums.sMaxAge}s), overriding max-age there.` });
|
|
9958
|
+
}
|
|
9959
|
+
if (options.mustRevalidate) {
|
|
9960
|
+
directives.push({ name: "must-revalidate", value: null, explanation: "Once stale, a cache must revalidate with the origin and never serve the stale copy." });
|
|
9961
|
+
}
|
|
9962
|
+
if (options.proxyRevalidate) {
|
|
9963
|
+
directives.push({ name: "proxy-revalidate", value: null, explanation: "Like must-revalidate, but the requirement applies only to shared caches." });
|
|
9964
|
+
}
|
|
9965
|
+
if (options.immutable) {
|
|
9966
|
+
directives.push({ name: "immutable", value: null, explanation: "The body will not change while fresh, so browsers should not revalidate it on reload." });
|
|
9967
|
+
}
|
|
9968
|
+
if (options.noTransform) {
|
|
9969
|
+
directives.push({ name: "no-transform", value: null, explanation: "Intermediaries must not modify the response body (for example, recompressing images)." });
|
|
9970
|
+
}
|
|
9971
|
+
if (nums.staleWhileRevalidate !== null) {
|
|
9972
|
+
directives.push({ name: "stale-while-revalidate", value: String(nums.staleWhileRevalidate), explanation: `A cache may serve the stale response for up to ${_humanizeSeconds(nums.staleWhileRevalidate)} (${nums.staleWhileRevalidate}s) while it revalidates in the background.` });
|
|
9973
|
+
}
|
|
9974
|
+
if (nums.staleIfError !== null) {
|
|
9975
|
+
directives.push({ name: "stale-if-error", value: String(nums.staleIfError), explanation: `A cache may serve the stale response for up to ${_humanizeSeconds(nums.staleIfError)} (${nums.staleIfError}s) if the origin returns an error.` });
|
|
9976
|
+
}
|
|
9977
|
+
if (options.mustUnderstand) {
|
|
9978
|
+
directives.push({ name: "must-understand", value: null, explanation: "A cache should store the response only if it understands the caching requirements of the response's status code." });
|
|
9979
|
+
}
|
|
9980
|
+
if (options.noStore && directives.length > 1) {
|
|
9981
|
+
warnings.push("no-store means nothing is cached, so the other directives have no effect.");
|
|
9982
|
+
}
|
|
9983
|
+
if (options.noCache && nums.maxAge !== null) {
|
|
9984
|
+
warnings.push("no-cache forces revalidation on every use, so max-age has little practical effect alongside it.");
|
|
9985
|
+
}
|
|
9986
|
+
if (options.immutable && nums.maxAge === null) {
|
|
9987
|
+
warnings.push("immutable only applies while the response is fresh \u2014 add a max-age so it has a freshness lifetime.");
|
|
9988
|
+
}
|
|
9989
|
+
if (directives.length === 0) {
|
|
9990
|
+
warnings.push("No directives set \u2014 an empty Cache-Control header has no effect.");
|
|
9991
|
+
}
|
|
9992
|
+
const header = directives.map((d) => d.value === null ? d.name : `${d.name}=${d.value}`).join(", ");
|
|
9993
|
+
const snippet = `Cache-Control: ${header}`;
|
|
9994
|
+
return { header, headerName: "Cache-Control", snippet, directives, warnings };
|
|
9995
|
+
}
|
|
9727
9996
|
|
|
9728
9997
|
// src/tools/api.ts
|
|
9729
9998
|
var api_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { j as json } from './json-
|
|
1
|
+
export { j as json } from './json-DEVFIpsC.cjs';
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.cjs';
|
|
3
3
|
export { h as hashing } from './hashing-CnetQFD_.cjs';
|
|
4
|
-
export { t as text } from './text-
|
|
4
|
+
export { t as text } from './text-DS70aMY5.cjs';
|
|
5
5
|
export { d as data } from './data-D8XTI7Du.cjs';
|
|
6
6
|
export { g as generators } from './generators-BGtRGpJZ.cjs';
|
|
7
7
|
export { t as time } from './time-DbT8fjaF.cjs';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-pIRkHnsU.cjs';
|
|
9
|
+
export { n as network } from './network-BJOjJnmY.cjs';
|
|
10
10
|
export { a as api } from './api-Xl7OzIgq.cjs';
|
|
11
11
|
export { c as code } from './code-DaRvff2v.cjs';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { j as json } from './json-
|
|
1
|
+
export { j as json } from './json-DEVFIpsC.js';
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.js';
|
|
3
3
|
export { h as hashing } from './hashing-CnetQFD_.js';
|
|
4
|
-
export { t as text } from './text-
|
|
4
|
+
export { t as text } from './text-DS70aMY5.js';
|
|
5
5
|
export { d as data } from './data-D8XTI7Du.js';
|
|
6
6
|
export { g as generators } from './generators-BGtRGpJZ.js';
|
|
7
7
|
export { t as time } from './time-DbT8fjaF.js';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-pIRkHnsU.js';
|
|
9
|
+
export { n as network } from './network-BJOjJnmY.js';
|
|
10
10
|
export { a as api } from './api-Xl7OzIgq.js';
|
|
11
11
|
export { c as code } from './code-DaRvff2v.js';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.js';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-XMKJYVKB.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-TFNCFD3E.js';
|
|
3
|
+
export { network_exports as network } from './chunk-Y5OOP6WN.js';
|
|
4
4
|
export { api_exports as api } from './chunk-Q3B3YWOA.js';
|
|
5
5
|
export { code_exports as code } from './chunk-LXKIPPDG.js';
|
|
6
6
|
export { color_exports as color } from './chunk-BPVAB4P2.js';
|
|
7
7
|
export { css_exports as css } from './chunk-6YPV2AB5.js';
|
|
8
8
|
export { misc_exports as misc } from './chunk-GX7H6TAX.js';
|
|
9
9
|
export { ai_agent_exports as ai_agent } from './chunk-265NPGKH.js';
|
|
10
|
-
export { json_exports as json } from './chunk-
|
|
10
|
+
export { json_exports as json } from './chunk-WO3LJMVV.js';
|
|
11
11
|
export { encoding_exports as encoding } from './chunk-DOWQZUTP.js';
|
|
12
12
|
export { hashing_exports as hashing } from './chunk-GEFVMGZR.js';
|
|
13
|
-
export { text_exports as text } from './chunk-
|
|
13
|
+
export { text_exports as text } from './chunk-2I4O5YCT.js';
|
|
14
14
|
export { data_exports as data } from './chunk-TINQFTLO.js';
|
|
15
15
|
export { generators_exports as generators } from './chunk-2CJSLYWI.js';
|
|
16
16
|
export { time_exports as time } from './chunk-ZPQZEIXP.js';
|
|
@@ -148,6 +148,28 @@ interface ZodOptions {
|
|
|
148
148
|
declare function jsonToZod(json: string, options?: ZodOptions): string | {
|
|
149
149
|
error: string;
|
|
150
150
|
};
|
|
151
|
+
interface JsonPointerResult {
|
|
152
|
+
pointer: string;
|
|
153
|
+
found: boolean;
|
|
154
|
+
value?: unknown;
|
|
155
|
+
/** Decoded reference tokens (after ~1 -> / and ~0 -> ~ unescaping). */
|
|
156
|
+
tokens: string[];
|
|
157
|
+
/** Set when the input JSON is invalid or the pointer syntax is malformed. */
|
|
158
|
+
error?: string;
|
|
159
|
+
/** The reference token at which resolution stopped (found === false). */
|
|
160
|
+
failedAt?: string;
|
|
161
|
+
/** Why resolution stopped at `failedAt`. */
|
|
162
|
+
reason?: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Resolve an RFC 6901 JSON Pointer against a JSON document. Accepts both the
|
|
166
|
+
* plain form ("" for the whole document, or "/foo/0") and the URI-fragment
|
|
167
|
+
* form ("#/foo/0", percent-decoded). Distinguishes an invalid document /
|
|
168
|
+
* malformed pointer (`error`) from a syntactically valid pointer whose target
|
|
169
|
+
* is simply absent (`found: false` with `failedAt` + `reason`). Pure
|
|
170
|
+
* traversal, no external calls.
|
|
171
|
+
*/
|
|
172
|
+
declare function resolveJsonPointer(json: string, pointer: string): JsonPointerResult;
|
|
151
173
|
|
|
152
174
|
type json_ConvertOptions = ConvertOptions;
|
|
153
175
|
type json_CsvOptions = CsvOptions;
|
|
@@ -158,6 +180,7 @@ type json_GoStruct = GoStruct;
|
|
|
158
180
|
type json_JsonDiffResult = JsonDiffResult;
|
|
159
181
|
type json_JsonParseResult = JsonParseResult;
|
|
160
182
|
type json_JsonPathResult = JsonPathResult;
|
|
183
|
+
type json_JsonPointerResult = JsonPointerResult;
|
|
161
184
|
type json_ParseStatus = ParseStatus;
|
|
162
185
|
type json_PythonClass = PythonClass;
|
|
163
186
|
type json_PythonField = PythonField;
|
|
@@ -185,6 +208,7 @@ declare const json_jsonToZod: typeof jsonToZod;
|
|
|
185
208
|
declare const json_minifyJson: typeof minifyJson;
|
|
186
209
|
declare const json_parseJson: typeof parseJson;
|
|
187
210
|
declare const json_parseStructs: typeof parseStructs;
|
|
211
|
+
declare const json_resolveJsonPointer: typeof resolveJsonPointer;
|
|
188
212
|
declare const json_toPascalCase: typeof toPascalCase;
|
|
189
213
|
declare const json_toSnakeCase: typeof toSnakeCase;
|
|
190
214
|
declare const json_validateJson: typeof validateJson;
|
|
@@ -192,7 +216,7 @@ declare const json_validateJsonPath: typeof validateJsonPath;
|
|
|
192
216
|
declare const json_validateJsonString: typeof validateJsonString;
|
|
193
217
|
declare const json_yamlToJson: typeof yamlToJson;
|
|
194
218
|
declare namespace json {
|
|
195
|
-
export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
|
|
219
|
+
export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
|
|
196
220
|
}
|
|
197
221
|
|
|
198
|
-
export {
|
|
222
|
+
export { jsonToYaml as A, jsonToZod as B, type ConvertOptions as C, type DiffNode as D, minifyJson as E, parseJson as F, type GoField as G, parseStructs as H, resolveJsonPointer as I, type JsonDiffResult as J, toPascalCase as K, toSnakeCase as L, validateJson as M, validateJsonPath as N, validateJsonString as O, type ParseStatus as P, yamlToJson as Q, type ValidationError as V, type ZodOptions as Z, type CsvOptions as a, type DiffType as b, type GoStruct as c, type JsonParseResult as d, type JsonPathResult as e, type JsonPointerResult as f, type PythonClass as g, type PythonField as h, type PythonMode as i, json as j, type ValidationResult as k, csvToJson as l, detectFormat as m, diffJson as n, evaluateJsonPath as o, formatDiffLine as p, formatJson as q, generateExample as r, getJsonStats as s, inferGoType as t, inferPythonType as u, inferType as v, jsonToCsv as w, jsonToGo as x, jsonToPython as y, jsonToTypescript as z };
|
|
@@ -148,6 +148,28 @@ interface ZodOptions {
|
|
|
148
148
|
declare function jsonToZod(json: string, options?: ZodOptions): string | {
|
|
149
149
|
error: string;
|
|
150
150
|
};
|
|
151
|
+
interface JsonPointerResult {
|
|
152
|
+
pointer: string;
|
|
153
|
+
found: boolean;
|
|
154
|
+
value?: unknown;
|
|
155
|
+
/** Decoded reference tokens (after ~1 -> / and ~0 -> ~ unescaping). */
|
|
156
|
+
tokens: string[];
|
|
157
|
+
/** Set when the input JSON is invalid or the pointer syntax is malformed. */
|
|
158
|
+
error?: string;
|
|
159
|
+
/** The reference token at which resolution stopped (found === false). */
|
|
160
|
+
failedAt?: string;
|
|
161
|
+
/** Why resolution stopped at `failedAt`. */
|
|
162
|
+
reason?: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Resolve an RFC 6901 JSON Pointer against a JSON document. Accepts both the
|
|
166
|
+
* plain form ("" for the whole document, or "/foo/0") and the URI-fragment
|
|
167
|
+
* form ("#/foo/0", percent-decoded). Distinguishes an invalid document /
|
|
168
|
+
* malformed pointer (`error`) from a syntactically valid pointer whose target
|
|
169
|
+
* is simply absent (`found: false` with `failedAt` + `reason`). Pure
|
|
170
|
+
* traversal, no external calls.
|
|
171
|
+
*/
|
|
172
|
+
declare function resolveJsonPointer(json: string, pointer: string): JsonPointerResult;
|
|
151
173
|
|
|
152
174
|
type json_ConvertOptions = ConvertOptions;
|
|
153
175
|
type json_CsvOptions = CsvOptions;
|
|
@@ -158,6 +180,7 @@ type json_GoStruct = GoStruct;
|
|
|
158
180
|
type json_JsonDiffResult = JsonDiffResult;
|
|
159
181
|
type json_JsonParseResult = JsonParseResult;
|
|
160
182
|
type json_JsonPathResult = JsonPathResult;
|
|
183
|
+
type json_JsonPointerResult = JsonPointerResult;
|
|
161
184
|
type json_ParseStatus = ParseStatus;
|
|
162
185
|
type json_PythonClass = PythonClass;
|
|
163
186
|
type json_PythonField = PythonField;
|
|
@@ -185,6 +208,7 @@ declare const json_jsonToZod: typeof jsonToZod;
|
|
|
185
208
|
declare const json_minifyJson: typeof minifyJson;
|
|
186
209
|
declare const json_parseJson: typeof parseJson;
|
|
187
210
|
declare const json_parseStructs: typeof parseStructs;
|
|
211
|
+
declare const json_resolveJsonPointer: typeof resolveJsonPointer;
|
|
188
212
|
declare const json_toPascalCase: typeof toPascalCase;
|
|
189
213
|
declare const json_toSnakeCase: typeof toSnakeCase;
|
|
190
214
|
declare const json_validateJson: typeof validateJson;
|
|
@@ -192,7 +216,7 @@ declare const json_validateJsonPath: typeof validateJsonPath;
|
|
|
192
216
|
declare const json_validateJsonString: typeof validateJsonString;
|
|
193
217
|
declare const json_yamlToJson: typeof yamlToJson;
|
|
194
218
|
declare namespace json {
|
|
195
|
-
export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
|
|
219
|
+
export { type json_ConvertOptions as ConvertOptions, type json_CsvOptions as CsvOptions, type json_DiffNode as DiffNode, type json_DiffType as DiffType, type json_GoField as GoField, type json_GoStruct as GoStruct, type json_JsonDiffResult as JsonDiffResult, type json_JsonParseResult as JsonParseResult, type json_JsonPathResult as JsonPathResult, type json_JsonPointerResult as JsonPointerResult, type json_ParseStatus as ParseStatus, type json_PythonClass as PythonClass, type json_PythonField as PythonField, type json_PythonMode as PythonMode, type json_ValidationError as ValidationError, type json_ValidationResult as ValidationResult, type json_ZodOptions as ZodOptions, json_csvToJson as csvToJson, json_detectFormat as detectFormat, json_diffJson as diffJson, json_evaluateJsonPath as evaluateJsonPath, json_formatDiffLine as formatDiffLine, json_formatJson as formatJson, json_generateExample as generateExample, json_getJsonStats as getJsonStats, json_inferGoType as inferGoType, json_inferPythonType as inferPythonType, json_inferType as inferType, json_jsonToCsv as jsonToCsv, json_jsonToGo as jsonToGo, json_jsonToPython as jsonToPython, json_jsonToTypescript as jsonToTypescript, json_jsonToYaml as jsonToYaml, json_jsonToZod as jsonToZod, json_minifyJson as minifyJson, json_parseJson as parseJson, json_parseStructs as parseStructs, json_resolveJsonPointer as resolveJsonPointer, json_toPascalCase as toPascalCase, json_toSnakeCase as toSnakeCase, json_validateJson as validateJson, json_validateJsonPath as validateJsonPath, json_validateJsonString as validateJsonString, json_yamlToJson as yamlToJson };
|
|
196
220
|
}
|
|
197
221
|
|
|
198
|
-
export {
|
|
222
|
+
export { jsonToYaml as A, jsonToZod as B, type ConvertOptions as C, type DiffNode as D, minifyJson as E, parseJson as F, type GoField as G, parseStructs as H, resolveJsonPointer as I, type JsonDiffResult as J, toPascalCase as K, toSnakeCase as L, validateJson as M, validateJsonPath as N, validateJsonString as O, type ParseStatus as P, yamlToJson as Q, type ValidationError as V, type ZodOptions as Z, type CsvOptions as a, type DiffType as b, type GoStruct as c, type JsonParseResult as d, type JsonPathResult as e, type JsonPointerResult as f, type PythonClass as g, type PythonField as h, type PythonMode as i, json as j, type ValidationResult as k, csvToJson as l, detectFormat as m, diffJson as n, evaluateJsonPath as o, formatDiffLine as p, formatJson as q, generateExample as r, getJsonStats as s, inferGoType as t, inferPythonType as u, inferType as v, jsonToCsv as w, jsonToGo as x, jsonToPython as y, jsonToTypescript as z };
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* - sitemap-validator: validateSitemap
|
|
12
12
|
* - robots-txt-validator: validateRobotsTxt
|
|
13
13
|
* - user-agent-parser: parseUserAgent
|
|
14
|
+
* - cache-control-builder: buildCacheControl
|
|
14
15
|
*/
|
|
15
16
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
16
17
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -252,7 +253,48 @@ interface UserAgentInfo {
|
|
|
252
253
|
declare function parseUserAgent(ua: string): UserAgentInfo | {
|
|
253
254
|
error: string;
|
|
254
255
|
};
|
|
256
|
+
interface CacheControlOptions {
|
|
257
|
+
/** `public` (any cache) or `private` (browser only). */
|
|
258
|
+
visibility?: 'public' | 'private' | null;
|
|
259
|
+
noCache?: boolean;
|
|
260
|
+
noStore?: boolean;
|
|
261
|
+
noTransform?: boolean;
|
|
262
|
+
mustRevalidate?: boolean;
|
|
263
|
+
proxyRevalidate?: boolean;
|
|
264
|
+
immutable?: boolean;
|
|
265
|
+
mustUnderstand?: boolean;
|
|
266
|
+
/** Freshness lifetime in seconds. */
|
|
267
|
+
maxAge?: number | null;
|
|
268
|
+
/** Freshness lifetime for shared caches, in seconds. */
|
|
269
|
+
sMaxAge?: number | null;
|
|
270
|
+
staleWhileRevalidate?: number | null;
|
|
271
|
+
staleIfError?: number | null;
|
|
272
|
+
}
|
|
273
|
+
interface CacheControlDirective {
|
|
274
|
+
name: string;
|
|
275
|
+
value: string | null;
|
|
276
|
+
explanation: string;
|
|
277
|
+
}
|
|
278
|
+
interface CacheControlResult {
|
|
279
|
+
header: string;
|
|
280
|
+
headerName: 'Cache-Control';
|
|
281
|
+
snippet: string;
|
|
282
|
+
directives: CacheControlDirective[];
|
|
283
|
+
warnings: string[];
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Build a `Cache-Control` response-header value from a set of directives,
|
|
287
|
+
* with a plain-English explanation of each and warnings for combinations
|
|
288
|
+
* that cancel each other out. Pure string assembly: it never fetches or
|
|
289
|
+
* validates against a live origin.
|
|
290
|
+
*/
|
|
291
|
+
declare function buildCacheControl(options?: CacheControlOptions): CacheControlResult | {
|
|
292
|
+
error: string;
|
|
293
|
+
};
|
|
255
294
|
|
|
295
|
+
type network_CacheControlDirective = CacheControlDirective;
|
|
296
|
+
type network_CacheControlOptions = CacheControlOptions;
|
|
297
|
+
type network_CacheControlResult = CacheControlResult;
|
|
256
298
|
declare const network_DNS_RECORD_TYPES: typeof DNS_RECORD_TYPES;
|
|
257
299
|
type network_DnsRecord = DnsRecord;
|
|
258
300
|
type network_DnsRecordType = DnsRecordType;
|
|
@@ -278,6 +320,7 @@ type network_SitemapValidationResult = SitemapValidationResult;
|
|
|
278
320
|
type network_StatusCode = StatusCode;
|
|
279
321
|
type network_UaDeviceType = UaDeviceType;
|
|
280
322
|
type network_UserAgentInfo = UserAgentInfo;
|
|
323
|
+
declare const network_buildCacheControl: typeof buildCacheControl;
|
|
281
324
|
declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
|
|
282
325
|
declare const network_buildGeoUrl: typeof buildGeoUrl;
|
|
283
326
|
declare const network_buildMapUrl: typeof buildMapUrl;
|
|
@@ -309,7 +352,7 @@ declare const network_validateHeaderValue: typeof validateHeaderValue;
|
|
|
309
352
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
310
353
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
311
354
|
declare namespace network {
|
|
312
|
-
export { 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_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_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, 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_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, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildMapUrl as buildMapUrl, 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_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseUserAgent as parseUserAgent, 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_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
355
|
+
export { type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, 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_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_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, 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_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, network_buildCacheControl as buildCacheControl, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildMapUrl as buildMapUrl, 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_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseUserAgent as parseUserAgent, 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_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
313
356
|
}
|
|
314
357
|
|
|
315
|
-
export {
|
|
358
|
+
export { statusCodeToText as $, formatCoordinates as A, formatTtl as B, type CacheControlDirective as C, DNS_RECORD_TYPES as D, getByCategory as E, getHeader as F, type GeoResult as G, HTTP_HEADERS as H, getHeadersByCategory as I, getStatusByCategory as J, getStatusCode as K, isClientError as L, isServerError as M, isSuccess as N, isValidIp as O, type ParsedDnsResult as P, isValidIpv4 as Q, type RobotsGroup as R, STATUS_CODES as S, isValidIpv6 as T, type UaDeviceType as U, parseDnsResponse as V, parseGeoResponse as W, parseHar as X, parseUserAgent as Y, searchHeaders as Z, searchStatusCodes as _, type CacheControlOptions as a, typeNumberToLabel as a0, validateDomain as a1, validateHeaderName as a2, validateHeaderValue as a3, validateRobotsTxt as a4, validateSitemap as a5, type CacheControlResult as b, type DnsRecord as c, type DnsRecordType as d, type DnsResponse as e, type HarEntry as f, type HarParseResult as g, type HarSummary as h, type HeaderCategory as i, type HttpHeader as j, type ParsedGeoResult as k, type RobotsIssue as l, type RobotsRule as m, network as n, type RobotsValidationResult as o, type SitemapIndexEntry as p, type SitemapIssue as q, type SitemapUrlEntry as r, type SitemapValidationResult as s, type StatusCode as t, type UserAgentInfo as u, buildCacheControl as v, buildDnsQueryUrl as w, buildGeoUrl as x, buildMapUrl as y, countryCodeToFlag as z };
|