@utilix-tech/sdk 0.57.0 → 0.60.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 +9 -0
- package/README.md +33 -7
- package/dist/{chunk-TVSQ53TZ.js → chunk-2WT347WO.js} +134 -1
- package/dist/{chunk-MRIGQRTU.js → chunk-B7366PQJ.js} +37 -1
- package/dist/{chunk-56VFNHVO.js → chunk-QY2M2UHJ.js} +34 -1
- package/dist/{data-Cvyg8ZXo.d.ts → data-vxXrBlWh.d.cts} +22 -2
- package/dist/{data-Cvyg8ZXo.d.cts → data-vxXrBlWh.d.ts} +22 -2
- package/dist/index.cjs +202 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{network-CoGf7_Op.d.cts → network-CXt69chQ.d.cts} +85 -2
- package/dist/{network-CoGf7_Op.d.ts → network-CXt69chQ.d.ts} +85 -2
- package/dist/tools/data.cjs +33 -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 +133 -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 +36 -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-BM9GkUZW.d.cts → units-ClKR6Jxz.d.cts} +34 -2
- package/dist/{units-BM9GkUZW.d.ts → units-ClKR6Jxz.d.ts} +34 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5189,6 +5189,7 @@ __export(data_exports, {
|
|
|
5189
5189
|
convertSubtitles: () => convertSubtitles,
|
|
5190
5190
|
csvToJson: () => csvToJson2,
|
|
5191
5191
|
csvToSqlInsert: () => csvToSqlInsert,
|
|
5192
|
+
dedupeNdjson: () => dedupeNdjson,
|
|
5192
5193
|
detectDelimiter: () => detectDelimiter2,
|
|
5193
5194
|
detectSubtitleFormat: () => detectSubtitleFormat,
|
|
5194
5195
|
diffEnvExample: () => diffEnvExample,
|
|
@@ -6351,6 +6352,38 @@ function jsonArrayToNdjson(input) {
|
|
|
6351
6352
|
if (!Array.isArray(parsed)) return { error: "Input must be a JSON array" };
|
|
6352
6353
|
return parsed.map((item) => JSON.stringify(item)).join("\n");
|
|
6353
6354
|
}
|
|
6355
|
+
function dedupeNdjson(input, keyField) {
|
|
6356
|
+
const validated = validateNdjson(input);
|
|
6357
|
+
if (!validated.valid) return { error: _firstNdjsonError(validated) };
|
|
6358
|
+
const seen = /* @__PURE__ */ new Set();
|
|
6359
|
+
const keptRaw = [];
|
|
6360
|
+
const removedLines = [];
|
|
6361
|
+
for (const l of validated.lines) {
|
|
6362
|
+
const parsed = JSON.parse(l.raw);
|
|
6363
|
+
let key;
|
|
6364
|
+
if (keyField) {
|
|
6365
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed) || !(keyField in parsed)) {
|
|
6366
|
+
return { error: `Line ${l.line}: missing key field "${keyField}"` };
|
|
6367
|
+
}
|
|
6368
|
+
key = JSON.stringify(parsed[keyField]);
|
|
6369
|
+
} else {
|
|
6370
|
+
key = JSON.stringify(parsed);
|
|
6371
|
+
}
|
|
6372
|
+
if (seen.has(key)) {
|
|
6373
|
+
removedLines.push(l.line);
|
|
6374
|
+
} else {
|
|
6375
|
+
seen.add(key);
|
|
6376
|
+
keptRaw.push(l.raw.trim());
|
|
6377
|
+
}
|
|
6378
|
+
}
|
|
6379
|
+
return {
|
|
6380
|
+
totalLines: validated.totalLines,
|
|
6381
|
+
uniqueLines: keptRaw.length,
|
|
6382
|
+
duplicatesRemoved: removedLines.length,
|
|
6383
|
+
output: keptRaw.join("\n"),
|
|
6384
|
+
removedLines
|
|
6385
|
+
};
|
|
6386
|
+
}
|
|
6354
6387
|
var _SUBTITLE_TIMESTAMP_RE = /(\d+):(\d{1,2}):(\d{1,2})[.,](\d{1,3})|(\d{1,3}):(\d{1,2})[.,](\d{1,3})/;
|
|
6355
6388
|
var _VTT_BLOCK_KEYWORDS = ["NOTE", "STYLE", "REGION"];
|
|
6356
6389
|
function parseSubtitleTimestamp(raw) {
|
|
@@ -8398,6 +8431,7 @@ __export(units_exports, {
|
|
|
8398
8431
|
calculateDepreciationSchedule: () => calculateDepreciationSchedule,
|
|
8399
8432
|
calculateDiscount: () => calculateDiscount,
|
|
8400
8433
|
calculateEmi: () => calculateEmi,
|
|
8434
|
+
calculateFreelancerRate: () => calculateFreelancerRate,
|
|
8401
8435
|
calculateGpa: () => calculateGpa,
|
|
8402
8436
|
calculateLoan: () => calculateLoan,
|
|
8403
8437
|
calculateMarginMarkup: () => calculateMarginMarkup,
|
|
@@ -10676,6 +10710,41 @@ function calculateBlendedLoanRate(loans) {
|
|
|
10676
10710
|
totalAnnualInterest: round23(totalMonthlyInterest * 12)
|
|
10677
10711
|
};
|
|
10678
10712
|
}
|
|
10713
|
+
function calculateFreelancerRate(input) {
|
|
10714
|
+
const { targetAnnualIncome, billableHoursPerWeek, weeksPerYear } = input;
|
|
10715
|
+
const annualOverheadCosts = input.annualOverheadCosts ?? 0;
|
|
10716
|
+
const profitMarginPercent = input.profitMarginPercent ?? 0;
|
|
10717
|
+
if (!Number.isFinite(targetAnnualIncome) || targetAnnualIncome < 0) {
|
|
10718
|
+
return { error: "targetAnnualIncome must be a finite, non-negative number" };
|
|
10719
|
+
}
|
|
10720
|
+
if (!Number.isFinite(billableHoursPerWeek) || billableHoursPerWeek <= 0 || billableHoursPerWeek > 168) {
|
|
10721
|
+
return { error: "billableHoursPerWeek must be a finite number greater than zero and at most 168" };
|
|
10722
|
+
}
|
|
10723
|
+
if (!Number.isFinite(weeksPerYear) || weeksPerYear <= 0 || weeksPerYear > 52) {
|
|
10724
|
+
return { error: "weeksPerYear must be a finite number greater than zero and at most 52" };
|
|
10725
|
+
}
|
|
10726
|
+
if (!Number.isFinite(annualOverheadCosts) || annualOverheadCosts < 0) {
|
|
10727
|
+
return { error: "annualOverheadCosts must be a finite, non-negative number" };
|
|
10728
|
+
}
|
|
10729
|
+
if (!Number.isFinite(profitMarginPercent) || profitMarginPercent < 0) {
|
|
10730
|
+
return { error: "profitMarginPercent must be a finite, non-negative number" };
|
|
10731
|
+
}
|
|
10732
|
+
const round23 = (n) => Math.round(n * 100) / 100;
|
|
10733
|
+
const annualBillableHours = billableHoursPerWeek * weeksPerYear;
|
|
10734
|
+
const baseRevenueNeeded = targetAnnualIncome + annualOverheadCosts;
|
|
10735
|
+
const requiredAnnualRevenue = baseRevenueNeeded * (1 + profitMarginPercent / 100);
|
|
10736
|
+
const hourlyRate = requiredAnnualRevenue / annualBillableHours;
|
|
10737
|
+
return {
|
|
10738
|
+
targetAnnualIncome: round23(targetAnnualIncome),
|
|
10739
|
+
annualOverheadCosts: round23(annualOverheadCosts),
|
|
10740
|
+
profitMarginPercent: round23(profitMarginPercent),
|
|
10741
|
+
annualBillableHours: round23(annualBillableHours),
|
|
10742
|
+
requiredAnnualRevenue: round23(requiredAnnualRevenue),
|
|
10743
|
+
hourlyRate: round23(hourlyRate),
|
|
10744
|
+
dailyRate: round23(hourlyRate * 8),
|
|
10745
|
+
monthlyRevenueTarget: round23(requiredAnnualRevenue / 12)
|
|
10746
|
+
};
|
|
10747
|
+
}
|
|
10679
10748
|
|
|
10680
10749
|
// src/tools/network.ts
|
|
10681
10750
|
var network_exports = {};
|
|
@@ -10699,8 +10768,10 @@ __export(network_exports, {
|
|
|
10699
10768
|
buildLinkHeader: () => buildLinkHeader,
|
|
10700
10769
|
buildMapUrl: () => buildMapUrl,
|
|
10701
10770
|
buildPermissionsPolicy: () => buildPermissionsPolicy,
|
|
10771
|
+
buildPreferHeader: () => buildPreferHeader,
|
|
10702
10772
|
buildRangeHeader: () => buildRangeHeader,
|
|
10703
10773
|
buildReferrerPolicy: () => buildReferrerPolicy,
|
|
10774
|
+
buildRetryAfterHeader: () => buildRetryAfterHeader,
|
|
10704
10775
|
buildVaryHeader: () => buildVaryHeader,
|
|
10705
10776
|
buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
|
|
10706
10777
|
checkSetCookieHeader: () => checkSetCookieHeader,
|
|
@@ -10727,6 +10798,8 @@ __export(network_exports, {
|
|
|
10727
10798
|
parseHar: () => parseHar,
|
|
10728
10799
|
parseIpv6Address: () => parseIpv6Address,
|
|
10729
10800
|
parsePermissionsPolicy: () => parsePermissionsPolicy,
|
|
10801
|
+
parsePreferHeader: () => parsePreferHeader,
|
|
10802
|
+
parseRetryAfterHeader: () => parseRetryAfterHeader,
|
|
10730
10803
|
parseUserAgent: () => parseUserAgent,
|
|
10731
10804
|
parseVaryHeader: () => parseVaryHeader,
|
|
10732
10805
|
parseXContentTypeOptionsHeader: () => parseXContentTypeOptionsHeader,
|
|
@@ -13563,6 +13636,135 @@ function parseAcceptLanguage(raw) {
|
|
|
13563
13636
|
const headerValue = formatAcceptLanguageEntries(sorted);
|
|
13564
13637
|
return { header: `Accept-Language: ${headerValue}`, headerValue, entries: sorted };
|
|
13565
13638
|
}
|
|
13639
|
+
var PREFER_TOKEN_RE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
13640
|
+
function isPreferToken(s) {
|
|
13641
|
+
return PREFER_TOKEN_RE.test(s);
|
|
13642
|
+
}
|
|
13643
|
+
function splitPreferTopLevel(input, delim) {
|
|
13644
|
+
const parts = [];
|
|
13645
|
+
let current = "";
|
|
13646
|
+
let inQuotes = false;
|
|
13647
|
+
for (const ch of input) {
|
|
13648
|
+
if (ch === '"') inQuotes = !inQuotes;
|
|
13649
|
+
if (ch === delim && !inQuotes) {
|
|
13650
|
+
parts.push(current);
|
|
13651
|
+
current = "";
|
|
13652
|
+
} else {
|
|
13653
|
+
current += ch;
|
|
13654
|
+
}
|
|
13655
|
+
}
|
|
13656
|
+
parts.push(current);
|
|
13657
|
+
return parts;
|
|
13658
|
+
}
|
|
13659
|
+
function parsePreferTokenValue(part) {
|
|
13660
|
+
const trimmed = part.trim();
|
|
13661
|
+
if (!trimmed) return null;
|
|
13662
|
+
const eq = trimmed.indexOf("=");
|
|
13663
|
+
if (eq === -1) return { token: trimmed };
|
|
13664
|
+
const token = trimmed.slice(0, eq).trim();
|
|
13665
|
+
let value = trimmed.slice(eq + 1).trim();
|
|
13666
|
+
if (value.length >= 2 && value.startsWith('"') && value.endsWith('"')) {
|
|
13667
|
+
value = value.slice(1, -1);
|
|
13668
|
+
}
|
|
13669
|
+
return { token, value };
|
|
13670
|
+
}
|
|
13671
|
+
function formatPreferWord(value) {
|
|
13672
|
+
return isPreferToken(value) ? value : `"${value.replace(/"/g, '\\"')}"`;
|
|
13673
|
+
}
|
|
13674
|
+
function formatPreferPreferences(preferences) {
|
|
13675
|
+
return preferences.map((p) => {
|
|
13676
|
+
let s = p.token;
|
|
13677
|
+
if (p.value !== void 0) s += `=${formatPreferWord(p.value)}`;
|
|
13678
|
+
for (const param of p.params ?? []) {
|
|
13679
|
+
s += `;${param.name}`;
|
|
13680
|
+
if (param.value !== void 0) s += `=${formatPreferWord(param.value)}`;
|
|
13681
|
+
}
|
|
13682
|
+
return s;
|
|
13683
|
+
}).join(", ");
|
|
13684
|
+
}
|
|
13685
|
+
function buildPreferHeader(preferences) {
|
|
13686
|
+
if (!Array.isArray(preferences) || preferences.length === 0) {
|
|
13687
|
+
return { error: "At least one preference is required" };
|
|
13688
|
+
}
|
|
13689
|
+
const built = [];
|
|
13690
|
+
for (let i = 0; i < preferences.length; i++) {
|
|
13691
|
+
const { token, value, params } = preferences[i];
|
|
13692
|
+
if (typeof token !== "string" || !isPreferToken(token.trim())) {
|
|
13693
|
+
return { error: `preference ${i + 1}: token is required and must be a valid HTTP token` };
|
|
13694
|
+
}
|
|
13695
|
+
const cleanParams = [];
|
|
13696
|
+
if (params !== void 0) {
|
|
13697
|
+
if (!Array.isArray(params)) return { error: `preference ${i + 1}: params must be an array` };
|
|
13698
|
+
for (const param of params) {
|
|
13699
|
+
if (typeof param?.name !== "string" || !isPreferToken(param.name.trim())) {
|
|
13700
|
+
return { error: `preference ${i + 1}: parameter name is required and must be a valid HTTP token` };
|
|
13701
|
+
}
|
|
13702
|
+
cleanParams.push({ name: param.name.trim(), value: param.value !== void 0 ? String(param.value) : void 0 });
|
|
13703
|
+
}
|
|
13704
|
+
}
|
|
13705
|
+
built.push({
|
|
13706
|
+
token: token.trim(),
|
|
13707
|
+
value: value !== void 0 ? String(value) : void 0,
|
|
13708
|
+
params: cleanParams.length > 0 ? cleanParams : void 0
|
|
13709
|
+
});
|
|
13710
|
+
}
|
|
13711
|
+
const headerValue = formatPreferPreferences(built);
|
|
13712
|
+
return { header: `Prefer: ${headerValue}`, headerValue, preferences: built };
|
|
13713
|
+
}
|
|
13714
|
+
function parsePreferHeader(raw) {
|
|
13715
|
+
if (!raw || raw.trim() === "") return { error: "Input is empty" };
|
|
13716
|
+
const withoutLabel = raw.trim().replace(/^prefer:\s*/i, "");
|
|
13717
|
+
const parts = splitPreferTopLevel(withoutLabel, ",").map((p) => p.trim()).filter((p) => p.length > 0);
|
|
13718
|
+
if (parts.length === 0) return { error: "Input is empty" };
|
|
13719
|
+
const preferences = [];
|
|
13720
|
+
for (const part of parts) {
|
|
13721
|
+
const segments = splitPreferTopLevel(part, ";").map((s) => s.trim()).filter((s) => s.length > 0);
|
|
13722
|
+
if (segments.length === 0) return { error: `Invalid preference: "${part}"` };
|
|
13723
|
+
const main = parsePreferTokenValue(segments[0]);
|
|
13724
|
+
if (!main || !isPreferToken(main.token)) return { error: `Invalid preference token in "${part}"` };
|
|
13725
|
+
const params = [];
|
|
13726
|
+
for (const seg of segments.slice(1)) {
|
|
13727
|
+
const p = parsePreferTokenValue(seg);
|
|
13728
|
+
if (!p || !isPreferToken(p.token)) return { error: `Invalid parameter in "${part}"` };
|
|
13729
|
+
params.push({ name: p.token, value: p.value });
|
|
13730
|
+
}
|
|
13731
|
+
preferences.push({ token: main.token, value: main.value, params: params.length > 0 ? params : void 0 });
|
|
13732
|
+
}
|
|
13733
|
+
const headerValue = formatPreferPreferences(preferences);
|
|
13734
|
+
return { header: `Prefer: ${headerValue}`, headerValue, preferences };
|
|
13735
|
+
}
|
|
13736
|
+
function buildRetryAfterHeader(input) {
|
|
13737
|
+
const { seconds, date } = input;
|
|
13738
|
+
const hasSeconds = seconds !== void 0;
|
|
13739
|
+
const hasDate = date !== void 0 && date !== "";
|
|
13740
|
+
if (hasSeconds && hasDate) return { error: "Provide either seconds or date, not both" };
|
|
13741
|
+
if (!hasSeconds && !hasDate) return { error: "seconds or date is required" };
|
|
13742
|
+
if (hasSeconds) {
|
|
13743
|
+
if (typeof seconds !== "number" || !Number.isFinite(seconds) || !Number.isInteger(seconds) || seconds < 0) {
|
|
13744
|
+
return { error: "seconds must be a non-negative integer" };
|
|
13745
|
+
}
|
|
13746
|
+
return { header: `Retry-After: ${seconds}`, headerValue: String(seconds), type: "seconds", seconds };
|
|
13747
|
+
}
|
|
13748
|
+
const parsed = new Date(date);
|
|
13749
|
+
if (Number.isNaN(parsed.getTime())) return { error: "date must be a valid date/time string" };
|
|
13750
|
+
const httpDate = parsed.toUTCString();
|
|
13751
|
+
return { header: `Retry-After: ${httpDate}`, headerValue: httpDate, type: "http-date", httpDate, iso: parsed.toISOString() };
|
|
13752
|
+
}
|
|
13753
|
+
function parseRetryAfterHeader(raw) {
|
|
13754
|
+
if (!raw || raw.trim() === "") return { error: "Input is empty" };
|
|
13755
|
+
const value = raw.trim().replace(/^retry-after:\s*/i, "").trim();
|
|
13756
|
+
if (value === "") return { error: "Input is empty" };
|
|
13757
|
+
if (/^\d+$/.test(value)) {
|
|
13758
|
+
const seconds = parseInt(value, 10);
|
|
13759
|
+
return { header: `Retry-After: ${seconds}`, headerValue: String(seconds), type: "seconds", seconds };
|
|
13760
|
+
}
|
|
13761
|
+
const parsed = new Date(value);
|
|
13762
|
+
if (Number.isNaN(parsed.getTime())) {
|
|
13763
|
+
return { error: "Value is neither a non-negative integer (seconds) nor a valid HTTP-date" };
|
|
13764
|
+
}
|
|
13765
|
+
const httpDate = parsed.toUTCString();
|
|
13766
|
+
return { header: `Retry-After: ${httpDate}`, headerValue: httpDate, type: "http-date", httpDate, iso: parsed.toISOString() };
|
|
13767
|
+
}
|
|
13566
13768
|
|
|
13567
13769
|
// src/tools/api.ts
|
|
13568
13770
|
var api_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -2,11 +2,11 @@ export { j as json } from './json-CaiYsGDQ.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-vxXrBlWh.cjs';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.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-ClKR6Jxz.cjs';
|
|
9
|
+
export { n as network } from './network-CXt69chQ.cjs';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.cjs';
|
|
11
11
|
export { c as code } from './code-rxidGgvB.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-CaiYsGDQ.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-vxXrBlWh.js';
|
|
6
6
|
export { g as generators } from './generators-DAXXrMvG.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-ClKR6Jxz.js';
|
|
9
|
+
export { n as network } from './network-CXt69chQ.js';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.js';
|
|
11
11
|
export { c as code } from './code-rxidGgvB.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-B7366PQJ.js';
|
|
3
|
+
export { network_exports as network } from './chunk-2WT347WO.js';
|
|
4
4
|
export { api_exports as api } from './chunk-52ZDKSIX.js';
|
|
5
5
|
export { code_exports as code } from './chunk-JW4NG2GN.js';
|
|
6
6
|
export { color_exports as color } from './chunk-BPVAB4P2.js';
|
|
@@ -11,7 +11,7 @@ export { json_exports as json } from './chunk-34C6GXCC.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-QY2M2UHJ.js';
|
|
15
15
|
export { generators_exports as generators } from './chunk-422ICOZX.js';
|
|
16
16
|
export { time_exports as time } from './chunk-IEPWZERQ.js';
|
|
17
17
|
import './chunk-MLKGABMK.js';
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
* - permissions-policy-builder: buildPermissionsPolicy, parsePermissionsPolicy
|
|
24
24
|
* - x-content-type-options-builder: buildXContentTypeOptionsHeader, parseXContentTypeOptionsHeader, assessContentTypeRisk
|
|
25
25
|
* - accept-language-parser: parseAcceptLanguage, buildAcceptLanguage
|
|
26
|
+
* - prefer-header: buildPreferHeader, parsePreferHeader
|
|
27
|
+
* - retry-after-builder: buildRetryAfterHeader, parseRetryAfterHeader
|
|
26
28
|
*/
|
|
27
29
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
28
30
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -774,6 +776,77 @@ declare function buildAcceptLanguage(locales: {
|
|
|
774
776
|
declare function parseAcceptLanguage(raw: string): AcceptLanguageResult | {
|
|
775
777
|
error: string;
|
|
776
778
|
};
|
|
779
|
+
interface PreferParameter {
|
|
780
|
+
name: string;
|
|
781
|
+
value?: string;
|
|
782
|
+
}
|
|
783
|
+
interface PreferPreference {
|
|
784
|
+
token: string;
|
|
785
|
+
value?: string;
|
|
786
|
+
params?: PreferParameter[];
|
|
787
|
+
}
|
|
788
|
+
interface PreferResult {
|
|
789
|
+
header: string;
|
|
790
|
+
headerValue: string;
|
|
791
|
+
preferences: PreferPreference[];
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Build a `Prefer` request-header value from a list of preferences, each
|
|
795
|
+
* with an optional value and optional parameters, per RFC 7240. A value or
|
|
796
|
+
* parameter value that isn't a valid HTTP token is quoted automatically.
|
|
797
|
+
*/
|
|
798
|
+
declare function buildPreferHeader(preferences: {
|
|
799
|
+
token: string;
|
|
800
|
+
value?: string;
|
|
801
|
+
params?: {
|
|
802
|
+
name: string;
|
|
803
|
+
value?: string;
|
|
804
|
+
}[];
|
|
805
|
+
}[]): PreferResult | {
|
|
806
|
+
error: string;
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* Parse an existing `Prefer` header value (with or without a leading
|
|
810
|
+
* `Prefer:` label) into its list of preferences, each with an optional
|
|
811
|
+
* value and optional parameters, per RFC 7240.
|
|
812
|
+
*/
|
|
813
|
+
declare function parsePreferHeader(raw: string): PreferResult | {
|
|
814
|
+
error: string;
|
|
815
|
+
};
|
|
816
|
+
interface RetryAfterSecondsResult {
|
|
817
|
+
header: string;
|
|
818
|
+
headerValue: string;
|
|
819
|
+
type: 'seconds';
|
|
820
|
+
seconds: number;
|
|
821
|
+
}
|
|
822
|
+
interface RetryAfterDateResult {
|
|
823
|
+
header: string;
|
|
824
|
+
headerValue: string;
|
|
825
|
+
type: 'http-date';
|
|
826
|
+
httpDate: string;
|
|
827
|
+
iso: string;
|
|
828
|
+
}
|
|
829
|
+
type RetryAfterResult = RetryAfterSecondsResult | RetryAfterDateResult;
|
|
830
|
+
/**
|
|
831
|
+
* Build a `Retry-After` response header value from either a non-negative
|
|
832
|
+
* delay in seconds or a target date/time, per RFC 9110 §10.2.3. A date is
|
|
833
|
+
* formatted as an HTTP-date (IMF-fixdate, e.g. "Wed, 21 Oct 2026 07:28:00
|
|
834
|
+
* GMT"), the only date format the header allows.
|
|
835
|
+
*/
|
|
836
|
+
declare function buildRetryAfterHeader(input: {
|
|
837
|
+
seconds?: number;
|
|
838
|
+
date?: string;
|
|
839
|
+
}): RetryAfterResult | {
|
|
840
|
+
error: string;
|
|
841
|
+
};
|
|
842
|
+
/**
|
|
843
|
+
* Parse an existing `Retry-After` header value (with or without a leading
|
|
844
|
+
* `Retry-After:` label) into either its delay-in-seconds form or its
|
|
845
|
+
* HTTP-date form, per RFC 9110 §10.2.3.
|
|
846
|
+
*/
|
|
847
|
+
declare function parseRetryAfterHeader(raw: string): RetryAfterResult | {
|
|
848
|
+
error: string;
|
|
849
|
+
};
|
|
777
850
|
|
|
778
851
|
type network_AcceptLanguageEntry = AcceptLanguageEntry;
|
|
779
852
|
type network_AcceptLanguageResult = AcceptLanguageResult;
|
|
@@ -825,6 +898,9 @@ type network_ParsedGeoResult = ParsedGeoResult;
|
|
|
825
898
|
type network_PermissionsPolicyDirective = PermissionsPolicyDirective;
|
|
826
899
|
type network_PermissionsPolicyFeatureInput = PermissionsPolicyFeatureInput;
|
|
827
900
|
type network_PermissionsPolicyResult = PermissionsPolicyResult;
|
|
901
|
+
type network_PreferParameter = PreferParameter;
|
|
902
|
+
type network_PreferPreference = PreferPreference;
|
|
903
|
+
type network_PreferResult = PreferResult;
|
|
828
904
|
declare const network_REFERRER_POLICY_VALUES: typeof REFERRER_POLICY_VALUES;
|
|
829
905
|
type network_RangeEntry = RangeEntry;
|
|
830
906
|
type network_RangeEntryInput = RangeEntryInput;
|
|
@@ -833,6 +909,9 @@ type network_ReceivedHop = ReceivedHop;
|
|
|
833
909
|
type network_ReferrerPolicyEntry = ReferrerPolicyEntry;
|
|
834
910
|
type network_ReferrerPolicyResult = ReferrerPolicyResult;
|
|
835
911
|
type network_ReferrerPolicyValue = ReferrerPolicyValue;
|
|
912
|
+
type network_RetryAfterDateResult = RetryAfterDateResult;
|
|
913
|
+
type network_RetryAfterResult = RetryAfterResult;
|
|
914
|
+
type network_RetryAfterSecondsResult = RetryAfterSecondsResult;
|
|
836
915
|
type network_RobotsGroup = RobotsGroup;
|
|
837
916
|
type network_RobotsIssue = RobotsIssue;
|
|
838
917
|
type network_RobotsRule = RobotsRule;
|
|
@@ -865,8 +944,10 @@ declare const network_buildGeoUrl: typeof buildGeoUrl;
|
|
|
865
944
|
declare const network_buildLinkHeader: typeof buildLinkHeader;
|
|
866
945
|
declare const network_buildMapUrl: typeof buildMapUrl;
|
|
867
946
|
declare const network_buildPermissionsPolicy: typeof buildPermissionsPolicy;
|
|
947
|
+
declare const network_buildPreferHeader: typeof buildPreferHeader;
|
|
868
948
|
declare const network_buildRangeHeader: typeof buildRangeHeader;
|
|
869
949
|
declare const network_buildReferrerPolicy: typeof buildReferrerPolicy;
|
|
950
|
+
declare const network_buildRetryAfterHeader: typeof buildRetryAfterHeader;
|
|
870
951
|
declare const network_buildVaryHeader: typeof buildVaryHeader;
|
|
871
952
|
declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
|
|
872
953
|
declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
|
|
@@ -893,6 +974,8 @@ declare const network_parseGeoResponse: typeof parseGeoResponse;
|
|
|
893
974
|
declare const network_parseHar: typeof parseHar;
|
|
894
975
|
declare const network_parseIpv6Address: typeof parseIpv6Address;
|
|
895
976
|
declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
|
|
977
|
+
declare const network_parsePreferHeader: typeof parsePreferHeader;
|
|
978
|
+
declare const network_parseRetryAfterHeader: typeof parseRetryAfterHeader;
|
|
896
979
|
declare const network_parseUserAgent: typeof parseUserAgent;
|
|
897
980
|
declare const network_parseVaryHeader: typeof parseVaryHeader;
|
|
898
981
|
declare const network_parseXContentTypeOptionsHeader: typeof parseXContentTypeOptionsHeader;
|
|
@@ -908,7 +991,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
908
991
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
909
992
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
910
993
|
declare namespace network {
|
|
911
|
-
export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, 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_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, 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, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, 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_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, 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_parseAcceptLanguage as parseAcceptLanguage, 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_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, 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 };
|
|
994
|
+
export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, 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_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, 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, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, 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_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, 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, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, 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_buildPreferHeader as buildPreferHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, 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_parseAcceptLanguage as parseAcceptLanguage, 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_parsePreferHeader as parsePreferHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, 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 };
|
|
912
995
|
}
|
|
913
996
|
|
|
914
|
-
export { type
|
|
997
|
+
export { type PreferResult as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HttpHeader as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type Ipv6ParseResult as J, type LinkHeaderEntry as K, LINK_REL_VALUES as L, type LinkHeaderEntryInput as M, type LinkHeaderResult as N, type LinkRel as O, type ManifestIconInfo as P, type ManifestIssue as Q, type ManifestValidationResult as R, PERMISSIONS_POLICY_FEATURES as S, type ParsedClientHint as T, type ParsedDnsResult as U, type ParsedGeoResult as V, type PermissionsPolicyDirective as W, type PermissionsPolicyFeatureInput as X, type PermissionsPolicyResult as Y, type PreferParameter as Z, type PreferPreference as _, type AcceptLanguageResult as a, isValidIpv6 as a$, REFERRER_POLICY_VALUES as a0, type RangeEntry as a1, type RangeEntryInput as a2, type RangeHeaderResult as a3, type ReceivedHop as a4, type ReferrerPolicyEntry as a5, type ReferrerPolicyResult as a6, type ReferrerPolicyValue as a7, type RetryAfterDateResult as a8, type RetryAfterResult as a9, buildClientHints as aA, buildContentDisposition as aB, buildDnsQueryUrl as aC, buildGeoUrl as aD, buildLinkHeader as aE, buildMapUrl as aF, buildPermissionsPolicy as aG, buildPreferHeader as aH, buildRangeHeader as aI, buildReferrerPolicy as aJ, buildRetryAfterHeader as aK, buildVaryHeader as aL, buildXContentTypeOptionsHeader as aM, checkSetCookieHeader as aN, countryCodeToFlag as aO, formatCoordinates as aP, formatTtl as aQ, getByCategory as aR, getHeader as aS, getHeadersByCategory as aT, getStatusByCategory as aU, getStatusCode as aV, isClientError as aW, isServerError as aX, isSuccess as aY, isValidIp as aZ, isValidIpv4 as a_, type RetryAfterSecondsResult as aa, type RobotsGroup as ab, type RobotsIssue as ac, type RobotsRule as ad, type RobotsValidationResult as ae, STATUS_CODES as af, type SameSiteValue as ag, type SitemapIndexEntry as ah, type SitemapIssue as ai, type SitemapSplitFile as aj, type SitemapUrlEntry as ak, type SitemapValidationResult as al, type SplitSitemapOptions as am, type SplitSitemapResult as an, type StatusCode as ao, type UaDeviceType as ap, type UserAgentInfo as aq, type VaryHeaderEntry as ar, type VaryHeaderResult as as, type XContentTypeOptionsHeader as at, type XContentTypeOptionsParseResult as au, X_CONTENT_TYPE_OPTIONS_HEADER as av, analyzeEmailHeaders as aw, assessContentTypeRisk as ax, buildAcceptLanguage as ay, buildCacheControl as az, type AuthResultEntry as b, parseAcceptLanguage as b0, parseClientHintHeaders as b1, parseContentDisposition as b2, parseContentRangeHeader as b3, parseDnsResponse as b4, parseGeoResponse as b5, parseHar as b6, parseIpv6Address as b7, parsePermissionsPolicy as b8, parsePreferHeader as b9, parseRetryAfterHeader as ba, parseUserAgent as bb, parseVaryHeader as bc, parseXContentTypeOptionsHeader as bd, searchHeaders as be, searchStatusCodes as bf, splitSitemap as bg, statusCodeToText as bh, typeNumberToLabel as bi, validateDomain as bj, validateHeaderName as bk, validateHeaderValue as bl, validateManifest as bm, validateRobotsTxt as bn, validateSitemap as bo, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type ContentDispositionBuildOptions as j, type ContentDispositionBuildResult as k, type ContentDispositionParseResult as l, type ContentRangeResult as m, network as n, type ContentTypeRiskResult as o, type ContentTypeSniffRisk as p, type CookieAttributes as q, type CookieCheckResult as r, type DnsRecord as s, type DnsRecordType as t, type DnsResponse as u, type EmailHeaderField as v, type HarEntry as w, type HarParseResult as x, type HarSummary as y, type HeaderCategory as z };
|