@utilix-tech/sdk 0.72.0 → 0.74.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-S5FTESKL.js → chunk-AKVWWLNJ.js} +65 -1
- package/dist/{chunk-ACGCCOCK.js → chunk-CXUOV672.js} +32 -1
- package/dist/{chunk-DAD2ZOTJ.js → chunk-XT2BQWXT.js} +163 -1
- package/dist/{code-CoeD4Fmq.d.ts → code-46xO9xFf.d.cts} +32 -2
- package/dist/{code-CoeD4Fmq.d.cts → code-46xO9xFf.d.ts} +32 -2
- package/dist/index.cjs +257 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{network-BmqYmfqY.d.cts → network-Da3meCWM.d.cts} +31 -2
- package/dist/{network-BmqYmfqY.d.ts → network-Da3meCWM.d.ts} +31 -2
- package/dist/tools/code.cjs +162 -0
- package/dist/tools/code.d.cts +1 -1
- package/dist/tools/code.d.ts +1 -1
- package/dist/tools/code.js +1 -1
- package/dist/tools/network.cjs +31 -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 +64 -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-DB0W2pvU.d.cts → units-BAwyBk4x.d.cts} +54 -2
- package/dist/{units-DB0W2pvU.d.ts → units-BAwyBk4x.d.ts} +54 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8571,8 +8571,10 @@ __export(units_exports, {
|
|
|
8571
8571
|
calculateFreelancerRate: () => calculateFreelancerRate,
|
|
8572
8572
|
calculateGpa: () => calculateGpa,
|
|
8573
8573
|
calculateLoan: () => calculateLoan,
|
|
8574
|
+
calculateLoanPrepaymentPenalty: () => calculateLoanPrepaymentPenalty,
|
|
8574
8575
|
calculateLoanRefinance: () => calculateLoanRefinance,
|
|
8575
8576
|
calculateMarginMarkup: () => calculateMarginMarkup,
|
|
8577
|
+
calculateMortgagePoints: () => calculateMortgagePoints,
|
|
8576
8578
|
calculateMovingAverages: () => calculateMovingAverages,
|
|
8577
8579
|
calculatePaybackPeriod: () => calculatePaybackPeriod,
|
|
8578
8580
|
calculatePercentageChange: () => calculatePercentageChange,
|
|
@@ -11167,6 +11169,68 @@ function validateIsin(input) {
|
|
|
11167
11169
|
formatted: `${countryCode} ${securityIdentifier} ${checkDigit}`
|
|
11168
11170
|
};
|
|
11169
11171
|
}
|
|
11172
|
+
function calculateMortgagePoints(loanAmount, baseRatePercent, termMonths, pointsCostPercent, rateReductionPercent) {
|
|
11173
|
+
if (!Number.isFinite(pointsCostPercent) || pointsCostPercent < 0) {
|
|
11174
|
+
return { error: "Points cost must be zero or a positive percent of the loan amount" };
|
|
11175
|
+
}
|
|
11176
|
+
if (!Number.isFinite(rateReductionPercent) || rateReductionPercent < 0) {
|
|
11177
|
+
return { error: "Rate reduction must be zero or a positive number" };
|
|
11178
|
+
}
|
|
11179
|
+
if (rateReductionPercent > baseRatePercent) {
|
|
11180
|
+
return { error: "Rate reduction cannot exceed the base interest rate" };
|
|
11181
|
+
}
|
|
11182
|
+
const withoutPoints = calculateLoan(loanAmount, baseRatePercent, termMonths);
|
|
11183
|
+
if ("error" in withoutPoints) return withoutPoints;
|
|
11184
|
+
const withPoints = calculateLoan(loanAmount, baseRatePercent - rateReductionPercent, termMonths);
|
|
11185
|
+
if ("error" in withPoints) return withPoints;
|
|
11186
|
+
const pointsCost = round2(loanAmount * (pointsCostPercent / 100));
|
|
11187
|
+
const monthlySavings = round2(withoutPoints.monthlyPayment - withPoints.monthlyPayment);
|
|
11188
|
+
const breakEvenMonths = monthlySavings > 0 ? Math.ceil(pointsCost / monthlySavings) : null;
|
|
11189
|
+
return {
|
|
11190
|
+
pointsCost,
|
|
11191
|
+
monthlyPaymentWithoutPoints: withoutPoints.monthlyPayment,
|
|
11192
|
+
monthlyPaymentWithPoints: withPoints.monthlyPayment,
|
|
11193
|
+
monthlySavings,
|
|
11194
|
+
breakEvenMonths,
|
|
11195
|
+
totalInterestWithoutPoints: withoutPoints.totalInterest,
|
|
11196
|
+
totalInterestWithPoints: withPoints.totalInterest,
|
|
11197
|
+
totalInterestSavings: round2(withoutPoints.totalInterest - withPoints.totalInterest)
|
|
11198
|
+
};
|
|
11199
|
+
}
|
|
11200
|
+
function calculateLoanPrepaymentPenalty(payoffBalance, penaltyType, params) {
|
|
11201
|
+
if (!Number.isFinite(payoffBalance) || payoffBalance <= 0) {
|
|
11202
|
+
return { error: "Payoff balance must be a positive number" };
|
|
11203
|
+
}
|
|
11204
|
+
if (penaltyType !== "percent-of-balance" && penaltyType !== "months-of-interest") {
|
|
11205
|
+
return { error: 'penaltyType must be "percent-of-balance" or "months-of-interest"' };
|
|
11206
|
+
}
|
|
11207
|
+
let penaltyAmount;
|
|
11208
|
+
if (penaltyType === "percent-of-balance") {
|
|
11209
|
+
const penaltyPercent = params.penaltyPercent;
|
|
11210
|
+
if (!Number.isFinite(penaltyPercent) || penaltyPercent < 0) {
|
|
11211
|
+
return { error: "penaltyPercent must be zero or a positive number" };
|
|
11212
|
+
}
|
|
11213
|
+
penaltyAmount = round2(payoffBalance * (penaltyPercent / 100));
|
|
11214
|
+
} else {
|
|
11215
|
+
const monthsOfInterest = params.monthsOfInterest;
|
|
11216
|
+
const annualRatePercent = params.annualRatePercent;
|
|
11217
|
+
if (!Number.isFinite(monthsOfInterest) || monthsOfInterest < 0) {
|
|
11218
|
+
return { error: "monthsOfInterest must be zero or a positive number" };
|
|
11219
|
+
}
|
|
11220
|
+
if (!Number.isFinite(annualRatePercent) || annualRatePercent < 0) {
|
|
11221
|
+
return { error: "annualRatePercent must be zero or a positive number" };
|
|
11222
|
+
}
|
|
11223
|
+
const monthlyInterest = payoffBalance * (annualRatePercent / 100 / 12);
|
|
11224
|
+
penaltyAmount = round2(monthlyInterest * monthsOfInterest);
|
|
11225
|
+
}
|
|
11226
|
+
return {
|
|
11227
|
+
payoffBalance: round2(payoffBalance),
|
|
11228
|
+
penaltyType,
|
|
11229
|
+
penaltyAmount,
|
|
11230
|
+
effectivePenaltyPercent: round2(penaltyAmount / payoffBalance * 100),
|
|
11231
|
+
totalPayoffCost: round2(payoffBalance + penaltyAmount)
|
|
11232
|
+
};
|
|
11233
|
+
}
|
|
11170
11234
|
|
|
11171
11235
|
// src/tools/network.ts
|
|
11172
11236
|
var network_exports = {};
|
|
@@ -11200,6 +11264,7 @@ __export(network_exports, {
|
|
|
11200
11264
|
buildVaryHeader: () => buildVaryHeader,
|
|
11201
11265
|
buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
|
|
11202
11266
|
buildXRobotsTag: () => buildXRobotsTag,
|
|
11267
|
+
calculateCookieSizeBudget: () => calculateCookieSizeBudget,
|
|
11203
11268
|
checkSetCookieHeader: () => checkSetCookieHeader,
|
|
11204
11269
|
countryCodeToFlag: () => countryCodeToFlag,
|
|
11205
11270
|
extractMultipartBoundary: () => extractMultipartBoundary,
|
|
@@ -14648,6 +14713,36 @@ function parseRobotsMetaTag(raw) {
|
|
|
14648
14713
|
}
|
|
14649
14714
|
return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
|
|
14650
14715
|
}
|
|
14716
|
+
var PER_COOKIE_BYTE_LIMIT = 4096;
|
|
14717
|
+
var DEFAULT_COOKIE_BUDGET_BYTES = 4096;
|
|
14718
|
+
function calculateCookieSizeBudget(cookieHeader, budgetBytes = DEFAULT_COOKIE_BUDGET_BYTES) {
|
|
14719
|
+
if (typeof cookieHeader !== "string" || !cookieHeader.trim()) {
|
|
14720
|
+
return { error: "A Cookie header value is required" };
|
|
14721
|
+
}
|
|
14722
|
+
if (!Number.isFinite(budgetBytes) || budgetBytes <= 0) {
|
|
14723
|
+
return { error: "Budget must be a positive number of bytes" };
|
|
14724
|
+
}
|
|
14725
|
+
const parts = cookieHeader.split(";").map((p) => p.trim()).filter(Boolean);
|
|
14726
|
+
if (parts.length === 0) return { error: "A Cookie header value is required" };
|
|
14727
|
+
const cookies = [];
|
|
14728
|
+
for (const part of parts) {
|
|
14729
|
+
const eq = part.indexOf("=");
|
|
14730
|
+
if (eq === -1) return { error: `Malformed cookie pair "${part}" is missing '='` };
|
|
14731
|
+
const name = part.slice(0, eq).trim();
|
|
14732
|
+
const value = part.slice(eq + 1).trim();
|
|
14733
|
+
if (!name) return { error: "Cookie name cannot be empty" };
|
|
14734
|
+
const bytes = Buffer.byteLength(`${name}=${value}`, "utf8");
|
|
14735
|
+
cookies.push({ name, value, bytes, exceedsPerCookieLimit: bytes > PER_COOKIE_BYTE_LIMIT });
|
|
14736
|
+
}
|
|
14737
|
+
const totalBytes = cookies.reduce((sum, c) => sum + c.bytes, 0) + Math.max(cookies.length - 1, 0) * 2;
|
|
14738
|
+
return {
|
|
14739
|
+
cookies,
|
|
14740
|
+
cookieCount: cookies.length,
|
|
14741
|
+
totalBytes,
|
|
14742
|
+
budgetBytes,
|
|
14743
|
+
exceedsBudget: totalBytes > budgetBytes
|
|
14744
|
+
};
|
|
14745
|
+
}
|
|
14651
14746
|
|
|
14652
14747
|
// src/tools/api.ts
|
|
14653
14748
|
var api_exports = {};
|
|
@@ -16087,6 +16182,7 @@ __export(code_exports, {
|
|
|
16087
16182
|
testGitignorePatterns: () => testGitignorePatterns,
|
|
16088
16183
|
testPattern: () => testPattern,
|
|
16089
16184
|
testRegex: () => testRegex,
|
|
16185
|
+
validateAria: () => validateAria,
|
|
16090
16186
|
validateEditorConfig: () => validateEditorConfig,
|
|
16091
16187
|
validateEnvKey: () => validateEnvKey2,
|
|
16092
16188
|
validatePackageExports: () => validatePackageExports,
|
|
@@ -19741,6 +19837,167 @@ function extractMarkdownFootnotes(markdown) {
|
|
|
19741
19837
|
}
|
|
19742
19838
|
return { definitionCount: definitions.length, referenceCount, definitions, references, unresolvedReferences, unusedDefinitions };
|
|
19743
19839
|
}
|
|
19840
|
+
var ARIA_GLOBAL_ATTRS = /* @__PURE__ */ new Set([
|
|
19841
|
+
"aria-atomic",
|
|
19842
|
+
"aria-busy",
|
|
19843
|
+
"aria-controls",
|
|
19844
|
+
"aria-current",
|
|
19845
|
+
"aria-describedby",
|
|
19846
|
+
"aria-details",
|
|
19847
|
+
"aria-disabled",
|
|
19848
|
+
"aria-dropeffect",
|
|
19849
|
+
"aria-errormessage",
|
|
19850
|
+
"aria-flowto",
|
|
19851
|
+
"aria-grabbed",
|
|
19852
|
+
"aria-haspopup",
|
|
19853
|
+
"aria-hidden",
|
|
19854
|
+
"aria-invalid",
|
|
19855
|
+
"aria-keyshortcuts",
|
|
19856
|
+
"aria-label",
|
|
19857
|
+
"aria-labelledby",
|
|
19858
|
+
"aria-live",
|
|
19859
|
+
"aria-owns",
|
|
19860
|
+
"aria-relevant",
|
|
19861
|
+
"aria-roledescription"
|
|
19862
|
+
]);
|
|
19863
|
+
var ARIA_ROLE_TABLE = {
|
|
19864
|
+
alert: { supported: ["aria-live", "aria-atomic"] },
|
|
19865
|
+
alertdialog: { supported: ["aria-modal"] },
|
|
19866
|
+
article: {},
|
|
19867
|
+
banner: {},
|
|
19868
|
+
button: { supported: ["aria-pressed", "aria-expanded", "aria-disabled"] },
|
|
19869
|
+
checkbox: { required: ["aria-checked"], supported: ["aria-readonly"] },
|
|
19870
|
+
columnheader: { supported: ["aria-sort", "aria-selected", "aria-readonly"] },
|
|
19871
|
+
combobox: { required: ["aria-expanded"], supported: ["aria-controls", "aria-autocomplete", "aria-activedescendant"] },
|
|
19872
|
+
complementary: {},
|
|
19873
|
+
contentinfo: {},
|
|
19874
|
+
dialog: { supported: ["aria-modal"] },
|
|
19875
|
+
form: {},
|
|
19876
|
+
grid: { supported: ["aria-multiselectable", "aria-activedescendant", "aria-level", "aria-readonly"] },
|
|
19877
|
+
gridcell: { supported: ["aria-selected", "aria-readonly", "aria-expanded"] },
|
|
19878
|
+
group: { supported: ["aria-activedescendant", "aria-disabled"] },
|
|
19879
|
+
heading: { required: ["aria-level"] },
|
|
19880
|
+
img: {},
|
|
19881
|
+
link: { supported: ["aria-disabled", "aria-expanded"] },
|
|
19882
|
+
list: {},
|
|
19883
|
+
listbox: { supported: ["aria-multiselectable", "aria-activedescendant", "aria-orientation"] },
|
|
19884
|
+
listitem: { supported: ["aria-level", "aria-posinset", "aria-setsize"] },
|
|
19885
|
+
log: { supported: ["aria-live", "aria-atomic"] },
|
|
19886
|
+
main: {},
|
|
19887
|
+
marquee: {},
|
|
19888
|
+
menu: { supported: ["aria-orientation", "aria-activedescendant"] },
|
|
19889
|
+
menubar: { supported: ["aria-orientation", "aria-activedescendant"] },
|
|
19890
|
+
menuitem: { supported: ["aria-disabled"] },
|
|
19891
|
+
menuitemcheckbox: { required: ["aria-checked"] },
|
|
19892
|
+
menuitemradio: { required: ["aria-checked"] },
|
|
19893
|
+
meter: { required: ["aria-valuenow"], supported: ["aria-valuemin", "aria-valuemax", "aria-valuetext"] },
|
|
19894
|
+
navigation: {},
|
|
19895
|
+
none: {},
|
|
19896
|
+
option: { supported: ["aria-selected", "aria-checked", "aria-posinset", "aria-setsize"] },
|
|
19897
|
+
presentation: {},
|
|
19898
|
+
progressbar: { supported: ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext"] },
|
|
19899
|
+
radio: { required: ["aria-checked"] },
|
|
19900
|
+
radiogroup: { supported: ["aria-activedescendant"] },
|
|
19901
|
+
region: {},
|
|
19902
|
+
row: { supported: ["aria-selected", "aria-level", "aria-expanded"] },
|
|
19903
|
+
rowheader: { supported: ["aria-sort", "aria-selected", "aria-readonly"] },
|
|
19904
|
+
scrollbar: { required: ["aria-valuenow", "aria-controls"], supported: ["aria-valuemin", "aria-valuemax", "aria-orientation"] },
|
|
19905
|
+
search: {},
|
|
19906
|
+
searchbox: { supported: ["aria-multiline", "aria-placeholder", "aria-readonly", "aria-required", "aria-activedescendant", "aria-autocomplete"] },
|
|
19907
|
+
separator: { supported: ["aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax"] },
|
|
19908
|
+
slider: { required: ["aria-valuenow"], supported: ["aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-orientation"] },
|
|
19909
|
+
spinbutton: { supported: ["aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-required"] },
|
|
19910
|
+
status: { supported: ["aria-live", "aria-atomic"] },
|
|
19911
|
+
switch: { required: ["aria-checked"] },
|
|
19912
|
+
tab: { supported: ["aria-selected", "aria-controls", "aria-disabled"] },
|
|
19913
|
+
table: { supported: ["aria-colcount", "aria-rowcount"] },
|
|
19914
|
+
tablist: { supported: ["aria-orientation", "aria-activedescendant", "aria-level"] },
|
|
19915
|
+
tabpanel: {},
|
|
19916
|
+
textbox: { supported: ["aria-multiline", "aria-placeholder", "aria-readonly", "aria-required", "aria-activedescendant", "aria-autocomplete"] },
|
|
19917
|
+
timer: {},
|
|
19918
|
+
toolbar: { supported: ["aria-orientation"] },
|
|
19919
|
+
tooltip: {},
|
|
19920
|
+
tree: { supported: ["aria-multiselectable", "aria-activedescendant", "aria-orientation"] },
|
|
19921
|
+
treegrid: { supported: ["aria-multiselectable", "aria-activedescendant", "aria-orientation", "aria-level", "aria-readonly"] },
|
|
19922
|
+
treeitem: { supported: ["aria-expanded", "aria-selected", "aria-checked", "aria-level"] }
|
|
19923
|
+
};
|
|
19924
|
+
var ARIA_ALL_KNOWN_ATTRS = new Set(ARIA_GLOBAL_ATTRS);
|
|
19925
|
+
for (const entry of Object.values(ARIA_ROLE_TABLE)) {
|
|
19926
|
+
for (const a of entry.required ?? []) ARIA_ALL_KNOWN_ATTRS.add(a);
|
|
19927
|
+
for (const a of entry.supported ?? []) ARIA_ALL_KNOWN_ATTRS.add(a);
|
|
19928
|
+
}
|
|
19929
|
+
var TAG_REGEX = /<([a-zA-Z][a-zA-Z0-9]*)\b((?:[^>"'/]|"[^"]*"|'[^']*')*)\/?>/g;
|
|
19930
|
+
var ATTR_REGEX = /([a-zA-Z][a-zA-Z0-9-]*)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
|
|
19931
|
+
function parseElements(html) {
|
|
19932
|
+
const elements = [];
|
|
19933
|
+
let match;
|
|
19934
|
+
TAG_REGEX.lastIndex = 0;
|
|
19935
|
+
while ((match = TAG_REGEX.exec(html)) !== null) {
|
|
19936
|
+
const tag = match[1].toLowerCase();
|
|
19937
|
+
if (tag === "script" || tag === "style" || tag === "!--") continue;
|
|
19938
|
+
const attrsStr = match[2] ?? "";
|
|
19939
|
+
const attrs = {};
|
|
19940
|
+
let attrMatch;
|
|
19941
|
+
ATTR_REGEX.lastIndex = 0;
|
|
19942
|
+
while ((attrMatch = ATTR_REGEX.exec(attrsStr)) !== null) {
|
|
19943
|
+
const name = attrMatch[1].toLowerCase();
|
|
19944
|
+
const value = attrMatch[2] ?? attrMatch[3] ?? "";
|
|
19945
|
+
attrs[name] = value;
|
|
19946
|
+
}
|
|
19947
|
+
elements.push({ tag, attrs, raw: match[0].length > 80 ? match[0].slice(0, 77) + "..." : match[0] });
|
|
19948
|
+
}
|
|
19949
|
+
return elements;
|
|
19950
|
+
}
|
|
19951
|
+
function validateAria(html) {
|
|
19952
|
+
if (!html || !html.trim()) return { error: "Input is empty" };
|
|
19953
|
+
const elements = parseElements(html);
|
|
19954
|
+
if (elements.length === 0) return { error: "No HTML elements found" };
|
|
19955
|
+
const issues = [];
|
|
19956
|
+
let elementsWithRoleOrAria = 0;
|
|
19957
|
+
for (const el of elements) {
|
|
19958
|
+
const roleAttr = el.attrs["role"];
|
|
19959
|
+
const ariaAttrNames = Object.keys(el.attrs).filter((a) => a.startsWith("aria-"));
|
|
19960
|
+
if (roleAttr === void 0 && ariaAttrNames.length === 0) continue;
|
|
19961
|
+
elementsWithRoleOrAria++;
|
|
19962
|
+
const roles = roleAttr !== void 0 ? roleAttr.trim().split(/\s+/).filter(Boolean) : [];
|
|
19963
|
+
const knownRoles = roles.filter((r) => Object.prototype.hasOwnProperty.call(ARIA_ROLE_TABLE, r));
|
|
19964
|
+
const unknownRoles = roles.filter((r) => !Object.prototype.hasOwnProperty.call(ARIA_ROLE_TABLE, r));
|
|
19965
|
+
for (const r of unknownRoles) {
|
|
19966
|
+
issues.push({ element: el.raw, role: r, severity: "error", message: `Unknown ARIA role "${r}"` });
|
|
19967
|
+
}
|
|
19968
|
+
const primaryRole = knownRoles[0];
|
|
19969
|
+
const roleDef = primaryRole ? ARIA_ROLE_TABLE[primaryRole] : void 0;
|
|
19970
|
+
if (roleDef?.required) {
|
|
19971
|
+
for (const req of roleDef.required) {
|
|
19972
|
+
if (el.attrs[req] === void 0) {
|
|
19973
|
+
issues.push({ element: el.raw, role: primaryRole, severity: "error", message: `role="${primaryRole}" is missing required attribute ${req}` });
|
|
19974
|
+
}
|
|
19975
|
+
}
|
|
19976
|
+
}
|
|
19977
|
+
for (const attrName of ariaAttrNames) {
|
|
19978
|
+
if (ARIA_GLOBAL_ATTRS.has(attrName)) continue;
|
|
19979
|
+
if (roleDef) {
|
|
19980
|
+
const allowed = /* @__PURE__ */ new Set([...roleDef.required ?? [], ...roleDef.supported ?? []]);
|
|
19981
|
+
if (!allowed.has(attrName)) {
|
|
19982
|
+
issues.push({
|
|
19983
|
+
element: el.raw,
|
|
19984
|
+
role: primaryRole ?? null,
|
|
19985
|
+
severity: "error",
|
|
19986
|
+
message: primaryRole ? `${attrName} is not permitted on role="${primaryRole}"` : `${attrName} is not a global aria-* attribute`
|
|
19987
|
+
});
|
|
19988
|
+
}
|
|
19989
|
+
} else if (!ARIA_ALL_KNOWN_ATTRS.has(attrName)) {
|
|
19990
|
+
issues.push({ element: el.raw, role: null, severity: "warning", message: `${attrName} is not a recognized aria-* attribute (possible typo)` });
|
|
19991
|
+
}
|
|
19992
|
+
}
|
|
19993
|
+
}
|
|
19994
|
+
return {
|
|
19995
|
+
elementCount: elements.length,
|
|
19996
|
+
elementsWithRoleOrAria,
|
|
19997
|
+
issues,
|
|
19998
|
+
valid: issues.every((i) => i.severity !== "error")
|
|
19999
|
+
};
|
|
20000
|
+
}
|
|
19744
20001
|
|
|
19745
20002
|
// src/tools/color.ts
|
|
19746
20003
|
var color_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -5,10 +5,10 @@ export { t as text } from './text-DWUcY8H1.cjs';
|
|
|
5
5
|
export { d as data } from './data-26TALa9U.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-BAwyBk4x.cjs';
|
|
9
|
+
export { n as network } from './network-Da3meCWM.cjs';
|
|
10
10
|
export { a as api } from './api-C8rImfka.cjs';
|
|
11
|
-
export { c as code } from './code-
|
|
11
|
+
export { c as code } from './code-46xO9xFf.cjs';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.cjs';
|
|
13
13
|
export { c as css } from './css-Cf7AMGM-.cjs';
|
|
14
14
|
export { m as misc } from './misc-CA3N198T.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ export { t as text } from './text-DWUcY8H1.js';
|
|
|
5
5
|
export { d as data } from './data-26TALa9U.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-BAwyBk4x.js';
|
|
9
|
+
export { n as network } from './network-Da3meCWM.js';
|
|
10
10
|
export { a as api } from './api-C8rImfka.js';
|
|
11
|
-
export { c as code } from './code-
|
|
11
|
+
export { c as code } from './code-46xO9xFf.js';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.js';
|
|
13
13
|
export { c as css } from './css-Cf7AMGM-.js';
|
|
14
14
|
export { m as misc } from './misc-CA3N198T.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-PT4N4UBL.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-AKVWWLNJ.js';
|
|
3
|
+
export { network_exports as network } from './chunk-CXUOV672.js';
|
|
4
4
|
export { api_exports as api } from './chunk-4S63T7Y4.js';
|
|
5
|
-
export { code_exports as code } from './chunk-
|
|
5
|
+
export { code_exports as code } from './chunk-XT2BQWXT.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';
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
* - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
|
|
32
32
|
* - websocket-opcode-reference: lookupOpcode, listOpcodes
|
|
33
33
|
* - robots-meta-tag-builder: buildRobotsMetaTag, parseRobotsMetaTag
|
|
34
|
+
* - cookie-size-budget-calculator: calculateCookieSizeBudget
|
|
34
35
|
*/
|
|
35
36
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
36
37
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -1064,6 +1065,31 @@ declare function buildRobotsMetaTag(options: RobotsMetaTagOptions): RobotsMetaTa
|
|
|
1064
1065
|
declare function parseRobotsMetaTag(raw: string): RobotsMetaTagResult | {
|
|
1065
1066
|
error: string;
|
|
1066
1067
|
};
|
|
1068
|
+
interface CookieSizeEntry {
|
|
1069
|
+
name: string;
|
|
1070
|
+
value: string;
|
|
1071
|
+
bytes: number;
|
|
1072
|
+
exceedsPerCookieLimit: boolean;
|
|
1073
|
+
}
|
|
1074
|
+
interface CookieSizeBudgetResult {
|
|
1075
|
+
cookies: CookieSizeEntry[];
|
|
1076
|
+
cookieCount: number;
|
|
1077
|
+
totalBytes: number;
|
|
1078
|
+
budgetBytes: number;
|
|
1079
|
+
exceedsBudget: boolean;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Parse a Cookie request header's name=value pairs and compute each
|
|
1083
|
+
* cookie's serialized byte size (UTF-8 byte length of "name=value") and the
|
|
1084
|
+
* total header size including "; " separators, flagging any cookie over
|
|
1085
|
+
* RFC 6265's 4096-byte per-cookie guarantee and the total against a
|
|
1086
|
+
* configurable budget (4096 bytes by default, a conservative guideline for
|
|
1087
|
+
* keeping the whole Cookie header well under typical server/proxy header
|
|
1088
|
+
* size limits).
|
|
1089
|
+
*/
|
|
1090
|
+
declare function calculateCookieSizeBudget(cookieHeader: string, budgetBytes?: number): CookieSizeBudgetResult | {
|
|
1091
|
+
error: string;
|
|
1092
|
+
};
|
|
1067
1093
|
|
|
1068
1094
|
type network_AcceptLanguageEntry = AcceptLanguageEntry;
|
|
1069
1095
|
type network_AcceptLanguageResult = AcceptLanguageResult;
|
|
@@ -1087,6 +1113,8 @@ type network_ContentTypeRiskResult = ContentTypeRiskResult;
|
|
|
1087
1113
|
type network_ContentTypeSniffRisk = ContentTypeSniffRisk;
|
|
1088
1114
|
type network_CookieAttributes = CookieAttributes;
|
|
1089
1115
|
type network_CookieCheckResult = CookieCheckResult;
|
|
1116
|
+
type network_CookieSizeBudgetResult = CookieSizeBudgetResult;
|
|
1117
|
+
type network_CookieSizeEntry = CookieSizeEntry;
|
|
1090
1118
|
declare const network_DNS_RECORD_TYPES: typeof DNS_RECORD_TYPES;
|
|
1091
1119
|
type network_DnsRecord = DnsRecord;
|
|
1092
1120
|
type network_DnsRecordType = DnsRecordType;
|
|
@@ -1186,6 +1214,7 @@ declare const network_buildRobotsMetaTag: typeof buildRobotsMetaTag;
|
|
|
1186
1214
|
declare const network_buildVaryHeader: typeof buildVaryHeader;
|
|
1187
1215
|
declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
|
|
1188
1216
|
declare const network_buildXRobotsTag: typeof buildXRobotsTag;
|
|
1217
|
+
declare const network_calculateCookieSizeBudget: typeof calculateCookieSizeBudget;
|
|
1189
1218
|
declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
|
|
1190
1219
|
declare const network_countryCodeToFlag: typeof countryCodeToFlag;
|
|
1191
1220
|
declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
|
|
@@ -1237,7 +1266,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
1237
1266
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
1238
1267
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
1239
1268
|
declare namespace network {
|
|
1240
|
-
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_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, 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_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, 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, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, 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, type network_PriorityResult as PriorityResult, 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_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, 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, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, 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_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, 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_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, 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_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, 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 };
|
|
1269
|
+
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_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, 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, type network_CookieSizeBudgetResult as CookieSizeBudgetResult, type network_CookieSizeEntry as CookieSizeEntry, 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_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, 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, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, 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, type network_PriorityResult as PriorityResult, 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_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, 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, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, 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_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_calculateCookieSizeBudget as calculateCookieSizeBudget, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, 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_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, 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_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, 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 };
|
|
1241
1270
|
}
|
|
1242
1271
|
|
|
1243
|
-
export { type
|
|
1272
|
+
export { type OpcodeInfo as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarEntry as F, type GeoResult as G, HTTP_HEADERS as H, type HarParseResult as I, type HarSummary as J, type HeaderCategory as K, type HstsOptions as L, type HstsResult as M, type HttpHeader as N, type Ipv6AddressType as O, type Ipv6ParseResult as P, LINK_REL_VALUES as Q, type LinkHeaderEntry as R, type LinkHeaderEntryInput as S, type LinkHeaderResult as T, type LinkRel as U, type ManifestIconInfo as V, type ManifestIssue as W, type ManifestValidationResult as X, type MultipartParseResult as Y, type MultipartPart as Z, type OpcodeCategory as _, type AcceptLanguageResult as a, buildRangeHeader as a$, PERMISSIONS_POLICY_FEATURES as a0, type ParsedClientHint as a1, type ParsedDnsResult as a2, type ParsedGeoResult as a3, type PermissionsPolicyDirective as a4, type PermissionsPolicyFeatureInput as a5, type PermissionsPolicyResult as a6, type PreferParameter as a7, type PreferPreference as a8, type PreferResult as a9, type SplitSitemapOptions as aA, type SplitSitemapResult as aB, type StatusCode as aC, type UaDeviceType as aD, type UserAgentInfo as aE, type VaryHeaderEntry as aF, type VaryHeaderResult as aG, type XContentTypeOptionsHeader as aH, type XContentTypeOptionsParseResult as aI, type XRobotsTagFlag as aJ, type XRobotsTagOptions as aK, type XRobotsTagResult as aL, X_CONTENT_TYPE_OPTIONS_HEADER as aM, analyzeEmailHeaders as aN, assessContentTypeRisk as aO, buildAcceptLanguage as aP, buildCacheControl as aQ, buildClientHints as aR, buildContentDisposition as aS, buildDnsQueryUrl as aT, buildGeoUrl as aU, buildHsts as aV, buildLinkHeader as aW, buildMapUrl as aX, buildPermissionsPolicy as aY, buildPreferHeader as aZ, buildPriorityHeader as a_, type PriorityResult as aa, REFERRER_POLICY_VALUES as ab, type RangeEntry as ac, type RangeEntryInput as ad, type RangeHeaderResult as ae, type ReceivedHop as af, type ReferrerPolicyEntry as ag, type ReferrerPolicyResult as ah, type ReferrerPolicyValue as ai, type RetryAfterDateResult as aj, type RetryAfterResult as ak, type RetryAfterSecondsResult as al, type RobotsGroup as am, type RobotsIssue as an, type RobotsMetaTagFlag as ao, type RobotsMetaTagOptions as ap, type RobotsMetaTagResult as aq, type RobotsRule as ar, type RobotsValidationResult as as, STATUS_CODES as at, type SameSiteValue as au, type SitemapIndexEntry as av, type SitemapIssue as aw, type SitemapSplitFile as ax, type SitemapUrlEntry as ay, type SitemapValidationResult as az, type AuthResultEntry as b, buildReferrerPolicy as b0, buildRetryAfterHeader as b1, buildRobotsMetaTag as b2, buildVaryHeader as b3, buildXContentTypeOptionsHeader as b4, buildXRobotsTag as b5, calculateCookieSizeBudget as b6, checkSetCookieHeader as b7, countryCodeToFlag as b8, extractMultipartBoundary as b9, parseMultipartFormData as bA, parsePermissionsPolicy as bB, parsePreferHeader as bC, parsePriorityHeader as bD, parseRetryAfterHeader as bE, parseRobotsMetaTag as bF, parseUserAgent as bG, parseVaryHeader as bH, parseXContentTypeOptionsHeader as bI, parseXRobotsTag as bJ, searchHeaders as bK, searchStatusCodes as bL, splitSitemap as bM, statusCodeToText as bN, typeNumberToLabel as bO, validateDomain as bP, validateHeaderName as bQ, validateHeaderValue as bR, validateManifest as bS, validateRobotsTxt as bT, validateSitemap as bU, formatCoordinates as ba, formatTtl as bb, getByCategory as bc, getHeader as bd, getHeadersByCategory as be, getStatusByCategory as bf, getStatusCode as bg, isClientError as bh, isServerError as bi, isSuccess as bj, isValidIp as bk, isValidIpv4 as bl, isValidIpv6 as bm, listCloseCodes as bn, listOpcodes as bo, lookupCloseCode as bp, lookupOpcode as bq, parseAcceptLanguage as br, parseClientHintHeaders as bs, parseContentDisposition as bt, parseContentRangeHeader as bu, parseDnsResponse as bv, parseGeoResponse as bw, parseHar as bx, parseHsts as by, parseIpv6Address as bz, 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 CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type CookieSizeBudgetResult as u, type CookieSizeEntry as v, type DnsRecord as w, type DnsRecordType as x, type DnsResponse as y, type EmailHeaderField as z };
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
* - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
|
|
32
32
|
* - websocket-opcode-reference: lookupOpcode, listOpcodes
|
|
33
33
|
* - robots-meta-tag-builder: buildRobotsMetaTag, parseRobotsMetaTag
|
|
34
|
+
* - cookie-size-budget-calculator: calculateCookieSizeBudget
|
|
34
35
|
*/
|
|
35
36
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
36
37
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -1064,6 +1065,31 @@ declare function buildRobotsMetaTag(options: RobotsMetaTagOptions): RobotsMetaTa
|
|
|
1064
1065
|
declare function parseRobotsMetaTag(raw: string): RobotsMetaTagResult | {
|
|
1065
1066
|
error: string;
|
|
1066
1067
|
};
|
|
1068
|
+
interface CookieSizeEntry {
|
|
1069
|
+
name: string;
|
|
1070
|
+
value: string;
|
|
1071
|
+
bytes: number;
|
|
1072
|
+
exceedsPerCookieLimit: boolean;
|
|
1073
|
+
}
|
|
1074
|
+
interface CookieSizeBudgetResult {
|
|
1075
|
+
cookies: CookieSizeEntry[];
|
|
1076
|
+
cookieCount: number;
|
|
1077
|
+
totalBytes: number;
|
|
1078
|
+
budgetBytes: number;
|
|
1079
|
+
exceedsBudget: boolean;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Parse a Cookie request header's name=value pairs and compute each
|
|
1083
|
+
* cookie's serialized byte size (UTF-8 byte length of "name=value") and the
|
|
1084
|
+
* total header size including "; " separators, flagging any cookie over
|
|
1085
|
+
* RFC 6265's 4096-byte per-cookie guarantee and the total against a
|
|
1086
|
+
* configurable budget (4096 bytes by default, a conservative guideline for
|
|
1087
|
+
* keeping the whole Cookie header well under typical server/proxy header
|
|
1088
|
+
* size limits).
|
|
1089
|
+
*/
|
|
1090
|
+
declare function calculateCookieSizeBudget(cookieHeader: string, budgetBytes?: number): CookieSizeBudgetResult | {
|
|
1091
|
+
error: string;
|
|
1092
|
+
};
|
|
1067
1093
|
|
|
1068
1094
|
type network_AcceptLanguageEntry = AcceptLanguageEntry;
|
|
1069
1095
|
type network_AcceptLanguageResult = AcceptLanguageResult;
|
|
@@ -1087,6 +1113,8 @@ type network_ContentTypeRiskResult = ContentTypeRiskResult;
|
|
|
1087
1113
|
type network_ContentTypeSniffRisk = ContentTypeSniffRisk;
|
|
1088
1114
|
type network_CookieAttributes = CookieAttributes;
|
|
1089
1115
|
type network_CookieCheckResult = CookieCheckResult;
|
|
1116
|
+
type network_CookieSizeBudgetResult = CookieSizeBudgetResult;
|
|
1117
|
+
type network_CookieSizeEntry = CookieSizeEntry;
|
|
1090
1118
|
declare const network_DNS_RECORD_TYPES: typeof DNS_RECORD_TYPES;
|
|
1091
1119
|
type network_DnsRecord = DnsRecord;
|
|
1092
1120
|
type network_DnsRecordType = DnsRecordType;
|
|
@@ -1186,6 +1214,7 @@ declare const network_buildRobotsMetaTag: typeof buildRobotsMetaTag;
|
|
|
1186
1214
|
declare const network_buildVaryHeader: typeof buildVaryHeader;
|
|
1187
1215
|
declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
|
|
1188
1216
|
declare const network_buildXRobotsTag: typeof buildXRobotsTag;
|
|
1217
|
+
declare const network_calculateCookieSizeBudget: typeof calculateCookieSizeBudget;
|
|
1189
1218
|
declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
|
|
1190
1219
|
declare const network_countryCodeToFlag: typeof countryCodeToFlag;
|
|
1191
1220
|
declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
|
|
@@ -1237,7 +1266,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
1237
1266
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
1238
1267
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
1239
1268
|
declare namespace network {
|
|
1240
|
-
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_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, 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_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, 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, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, 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, type network_PriorityResult as PriorityResult, 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_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, 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, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, 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_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, 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_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, 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_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, 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 };
|
|
1269
|
+
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_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, 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, type network_CookieSizeBudgetResult as CookieSizeBudgetResult, type network_CookieSizeEntry as CookieSizeEntry, 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_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, 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, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, 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, type network_PriorityResult as PriorityResult, 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_RobotsMetaTagFlag as RobotsMetaTagFlag, type network_RobotsMetaTagOptions as RobotsMetaTagOptions, type network_RobotsMetaTagResult as RobotsMetaTagResult, 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, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, 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_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildRobotsMetaTag as buildRobotsMetaTag, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_buildXRobotsTag as buildXRobotsTag, network_calculateCookieSizeBudget as calculateCookieSizeBudget, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, 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_listCloseCodes as listCloseCodes, network_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, 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_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseRobotsMetaTag as parseRobotsMetaTag, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_parseXRobotsTag as parseXRobotsTag, 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 };
|
|
1241
1270
|
}
|
|
1242
1271
|
|
|
1243
|
-
export { type
|
|
1272
|
+
export { type OpcodeInfo as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarEntry as F, type GeoResult as G, HTTP_HEADERS as H, type HarParseResult as I, type HarSummary as J, type HeaderCategory as K, type HstsOptions as L, type HstsResult as M, type HttpHeader as N, type Ipv6AddressType as O, type Ipv6ParseResult as P, LINK_REL_VALUES as Q, type LinkHeaderEntry as R, type LinkHeaderEntryInput as S, type LinkHeaderResult as T, type LinkRel as U, type ManifestIconInfo as V, type ManifestIssue as W, type ManifestValidationResult as X, type MultipartParseResult as Y, type MultipartPart as Z, type OpcodeCategory as _, type AcceptLanguageResult as a, buildRangeHeader as a$, PERMISSIONS_POLICY_FEATURES as a0, type ParsedClientHint as a1, type ParsedDnsResult as a2, type ParsedGeoResult as a3, type PermissionsPolicyDirective as a4, type PermissionsPolicyFeatureInput as a5, type PermissionsPolicyResult as a6, type PreferParameter as a7, type PreferPreference as a8, type PreferResult as a9, type SplitSitemapOptions as aA, type SplitSitemapResult as aB, type StatusCode as aC, type UaDeviceType as aD, type UserAgentInfo as aE, type VaryHeaderEntry as aF, type VaryHeaderResult as aG, type XContentTypeOptionsHeader as aH, type XContentTypeOptionsParseResult as aI, type XRobotsTagFlag as aJ, type XRobotsTagOptions as aK, type XRobotsTagResult as aL, X_CONTENT_TYPE_OPTIONS_HEADER as aM, analyzeEmailHeaders as aN, assessContentTypeRisk as aO, buildAcceptLanguage as aP, buildCacheControl as aQ, buildClientHints as aR, buildContentDisposition as aS, buildDnsQueryUrl as aT, buildGeoUrl as aU, buildHsts as aV, buildLinkHeader as aW, buildMapUrl as aX, buildPermissionsPolicy as aY, buildPreferHeader as aZ, buildPriorityHeader as a_, type PriorityResult as aa, REFERRER_POLICY_VALUES as ab, type RangeEntry as ac, type RangeEntryInput as ad, type RangeHeaderResult as ae, type ReceivedHop as af, type ReferrerPolicyEntry as ag, type ReferrerPolicyResult as ah, type ReferrerPolicyValue as ai, type RetryAfterDateResult as aj, type RetryAfterResult as ak, type RetryAfterSecondsResult as al, type RobotsGroup as am, type RobotsIssue as an, type RobotsMetaTagFlag as ao, type RobotsMetaTagOptions as ap, type RobotsMetaTagResult as aq, type RobotsRule as ar, type RobotsValidationResult as as, STATUS_CODES as at, type SameSiteValue as au, type SitemapIndexEntry as av, type SitemapIssue as aw, type SitemapSplitFile as ax, type SitemapUrlEntry as ay, type SitemapValidationResult as az, type AuthResultEntry as b, buildReferrerPolicy as b0, buildRetryAfterHeader as b1, buildRobotsMetaTag as b2, buildVaryHeader as b3, buildXContentTypeOptionsHeader as b4, buildXRobotsTag as b5, calculateCookieSizeBudget as b6, checkSetCookieHeader as b7, countryCodeToFlag as b8, extractMultipartBoundary as b9, parseMultipartFormData as bA, parsePermissionsPolicy as bB, parsePreferHeader as bC, parsePriorityHeader as bD, parseRetryAfterHeader as bE, parseRobotsMetaTag as bF, parseUserAgent as bG, parseVaryHeader as bH, parseXContentTypeOptionsHeader as bI, parseXRobotsTag as bJ, searchHeaders as bK, searchStatusCodes as bL, splitSitemap as bM, statusCodeToText as bN, typeNumberToLabel as bO, validateDomain as bP, validateHeaderName as bQ, validateHeaderValue as bR, validateManifest as bS, validateRobotsTxt as bT, validateSitemap as bU, formatCoordinates as ba, formatTtl as bb, getByCategory as bc, getHeader as bd, getHeadersByCategory as be, getStatusByCategory as bf, getStatusCode as bg, isClientError as bh, isServerError as bi, isSuccess as bj, isValidIp as bk, isValidIpv4 as bl, isValidIpv6 as bm, listCloseCodes as bn, listOpcodes as bo, lookupCloseCode as bp, lookupOpcode as bq, parseAcceptLanguage as br, parseClientHintHeaders as bs, parseContentDisposition as bt, parseContentRangeHeader as bu, parseDnsResponse as bv, parseGeoResponse as bw, parseHar as bx, parseHsts as by, parseIpv6Address as bz, 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 CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type CookieSizeBudgetResult as u, type CookieSizeEntry as v, type DnsRecord as w, type DnsRecordType as x, type DnsResponse as y, type EmailHeaderField as z };
|