@utilix-tech/sdk 0.65.0 → 0.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +6 -2
- package/dist/{chunk-KEZLVYR3.js → chunk-TTQ2FNUG.js} +161 -1
- package/dist/{chunk-JPFHEZ4P.js → chunk-XCJJOWTK.js} +110 -1
- package/dist/{code-CKI2Z_NM.d.cts → code-Cg9mE6b0.d.cts} +43 -2
- package/dist/{code-CKI2Z_NM.d.ts → code-Cg9mE6b0.d.ts} +43 -2
- package/dist/index.cjs +269 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{network-DT-OMHWV.d.cts → network-EHkPJFoe.d.cts} +73 -2
- package/dist/{network-DT-OMHWV.d.ts → network-EHkPJFoe.d.ts} +73 -2
- package/dist/tools/code.cjs +109 -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 +160 -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/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11068,6 +11068,7 @@ __export(network_exports, {
|
|
|
11068
11068
|
buildRetryAfterHeader: () => buildRetryAfterHeader,
|
|
11069
11069
|
buildVaryHeader: () => buildVaryHeader,
|
|
11070
11070
|
buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
|
|
11071
|
+
buildXRobotsTag: () => buildXRobotsTag,
|
|
11071
11072
|
checkSetCookieHeader: () => checkSetCookieHeader,
|
|
11072
11073
|
countryCodeToFlag: () => countryCodeToFlag,
|
|
11073
11074
|
extractMultipartBoundary: () => extractMultipartBoundary,
|
|
@@ -11085,7 +11086,9 @@ __export(network_exports, {
|
|
|
11085
11086
|
isValidIpv4: () => isValidIpv42,
|
|
11086
11087
|
isValidIpv6: () => isValidIpv6,
|
|
11087
11088
|
listCloseCodes: () => listCloseCodes,
|
|
11089
|
+
listOpcodes: () => listOpcodes,
|
|
11088
11090
|
lookupCloseCode: () => lookupCloseCode,
|
|
11091
|
+
lookupOpcode: () => lookupOpcode,
|
|
11089
11092
|
parseAcceptLanguage: () => parseAcceptLanguage,
|
|
11090
11093
|
parseClientHintHeaders: () => parseClientHintHeaders,
|
|
11091
11094
|
parseContentDisposition: () => parseContentDisposition,
|
|
@@ -11103,6 +11106,7 @@ __export(network_exports, {
|
|
|
11103
11106
|
parseUserAgent: () => parseUserAgent,
|
|
11104
11107
|
parseVaryHeader: () => parseVaryHeader,
|
|
11105
11108
|
parseXContentTypeOptionsHeader: () => parseXContentTypeOptionsHeader,
|
|
11109
|
+
parseXRobotsTag: () => parseXRobotsTag,
|
|
11106
11110
|
searchHeaders: () => searchHeaders,
|
|
11107
11111
|
searchStatusCodes: () => searchStatusCodes,
|
|
11108
11112
|
splitSitemap: () => splitSitemap,
|
|
@@ -14285,6 +14289,162 @@ function parseHsts(raw) {
|
|
|
14285
14289
|
if (maxAge === null) return { error: "max-age directive is required" };
|
|
14286
14290
|
return buildHsts({ maxAge, includeSubDomains, preload });
|
|
14287
14291
|
}
|
|
14292
|
+
var X_ROBOTS_TAG_FLAGS = /* @__PURE__ */ new Set(["noindex", "nofollow", "noarchive", "nosnippet", "notranslate", "noimageindex", "none", "all", "indexifembedded"]);
|
|
14293
|
+
var X_ROBOTS_TAG_FLAG_NOTES = {
|
|
14294
|
+
noindex: "Do not show this page in search results.",
|
|
14295
|
+
nofollow: "Do not follow, or pass ranking credit through, any links on this page.",
|
|
14296
|
+
noarchive: "Do not show a cached copy of this page in search results.",
|
|
14297
|
+
nosnippet: "Do not show a text snippet or video preview for this page in search results.",
|
|
14298
|
+
notranslate: "Do not offer a translation of this page in search results.",
|
|
14299
|
+
noimageindex: "Do not index images on this page.",
|
|
14300
|
+
none: "Shorthand for noindex plus nofollow combined.",
|
|
14301
|
+
all: "Explicitly allow indexing and following, the default with no directives at all.",
|
|
14302
|
+
indexifembedded: "Allow indexing of this page's content when embedded via iframe in another page, even if this page also carries noindex. Only Google supports this directive."
|
|
14303
|
+
};
|
|
14304
|
+
var X_ROBOTS_TAG_VALUED_DIRECTIVES = /* @__PURE__ */ new Set(["max-snippet", "max-image-preview", "max-video-preview", "unavailable_after"]);
|
|
14305
|
+
function _isXRobotsTagFlag(value) {
|
|
14306
|
+
return X_ROBOTS_TAG_FLAGS.has(value);
|
|
14307
|
+
}
|
|
14308
|
+
function buildXRobotsTag(options) {
|
|
14309
|
+
if (!options || typeof options !== "object") return { error: "At least one directive is required" };
|
|
14310
|
+
const { flags = [], maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, userAgent } = options;
|
|
14311
|
+
if (!Array.isArray(flags)) return { error: "flags must be an array of directive names" };
|
|
14312
|
+
for (const flag of flags) {
|
|
14313
|
+
if (typeof flag !== "string" || !_isXRobotsTagFlag(flag)) return { error: `Unknown directive "${flag}"` };
|
|
14314
|
+
}
|
|
14315
|
+
if (maxSnippet !== void 0 && (typeof maxSnippet !== "number" || !Number.isInteger(maxSnippet) || maxSnippet < -1)) {
|
|
14316
|
+
return { error: "maxSnippet must be an integer >= -1" };
|
|
14317
|
+
}
|
|
14318
|
+
if (maxVideoPreview !== void 0 && (typeof maxVideoPreview !== "number" || !Number.isInteger(maxVideoPreview) || maxVideoPreview < -1)) {
|
|
14319
|
+
return { error: "maxVideoPreview must be an integer >= -1" };
|
|
14320
|
+
}
|
|
14321
|
+
if (maxImagePreview !== void 0 && !["none", "standard", "large"].includes(maxImagePreview)) {
|
|
14322
|
+
return { error: 'maxImagePreview must be one of "none", "standard", "large"' };
|
|
14323
|
+
}
|
|
14324
|
+
if (unavailableAfter !== void 0 && (typeof unavailableAfter !== "string" || unavailableAfter.trim() === "" || Number.isNaN(Date.parse(unavailableAfter)))) {
|
|
14325
|
+
return { error: "unavailableAfter must be a valid, parseable date string" };
|
|
14326
|
+
}
|
|
14327
|
+
const uniqueFlags = Array.from(new Set(flags));
|
|
14328
|
+
if (uniqueFlags.length === 0 && maxSnippet === void 0 && maxImagePreview === void 0 && maxVideoPreview === void 0 && unavailableAfter === void 0) {
|
|
14329
|
+
return { error: "At least one directive is required" };
|
|
14330
|
+
}
|
|
14331
|
+
const warnings = [];
|
|
14332
|
+
if (uniqueFlags.includes("none") && (uniqueFlags.includes("noindex") || uniqueFlags.includes("nofollow"))) {
|
|
14333
|
+
warnings.push('"none" already implies noindex and nofollow; combining it with either is redundant.');
|
|
14334
|
+
}
|
|
14335
|
+
if (uniqueFlags.includes("all") && uniqueFlags.some((f) => f !== "all" && f !== "indexifembedded")) {
|
|
14336
|
+
warnings.push('"all" explicitly allows indexing and following, which contradicts any restrictive directive combined with it.');
|
|
14337
|
+
}
|
|
14338
|
+
const directives = [...uniqueFlags];
|
|
14339
|
+
const notes = uniqueFlags.map((f) => `${f}: ${X_ROBOTS_TAG_FLAG_NOTES[f]}`);
|
|
14340
|
+
if (maxSnippet !== void 0) {
|
|
14341
|
+
directives.push(`max-snippet: ${maxSnippet}`);
|
|
14342
|
+
notes.push(`max-snippet: ${maxSnippet === 0 ? "Show no text snippet at all." : maxSnippet === -1 ? "No limit on snippet length." : `Limit the text snippet to at most ${maxSnippet} characters.`}`);
|
|
14343
|
+
}
|
|
14344
|
+
if (maxImagePreview !== void 0) {
|
|
14345
|
+
directives.push(`max-image-preview: ${maxImagePreview}`);
|
|
14346
|
+
notes.push(`max-image-preview: Limit any image preview shown in search results to the "${maxImagePreview}" size.`);
|
|
14347
|
+
}
|
|
14348
|
+
if (maxVideoPreview !== void 0) {
|
|
14349
|
+
directives.push(`max-video-preview: ${maxVideoPreview}`);
|
|
14350
|
+
notes.push(`max-video-preview: ${maxVideoPreview === 0 ? "Show no video preview at all, a static image only." : maxVideoPreview === -1 ? "No limit on video preview length." : `Limit the video preview to at most ${maxVideoPreview} seconds.`}`);
|
|
14351
|
+
}
|
|
14352
|
+
if (unavailableAfter !== void 0) {
|
|
14353
|
+
directives.push(`unavailable_after: ${unavailableAfter}`);
|
|
14354
|
+
notes.push(`unavailable_after: Stop showing this page in search results after this date.`);
|
|
14355
|
+
}
|
|
14356
|
+
const directivesJoined = directives.join(", ");
|
|
14357
|
+
const header = userAgent ? `${userAgent}: ${directivesJoined}` : directivesJoined;
|
|
14358
|
+
return {
|
|
14359
|
+
header,
|
|
14360
|
+
headerName: "X-Robots-Tag",
|
|
14361
|
+
snippet: `X-Robots-Tag: ${header}`,
|
|
14362
|
+
directives,
|
|
14363
|
+
notes,
|
|
14364
|
+
warnings
|
|
14365
|
+
};
|
|
14366
|
+
}
|
|
14367
|
+
function parseXRobotsTag(raw) {
|
|
14368
|
+
if (!raw || raw.trim() === "") return { error: "Input is empty" };
|
|
14369
|
+
let withoutLabel = raw.trim().replace(/^x-robots-tag:\s*/i, "");
|
|
14370
|
+
let userAgent;
|
|
14371
|
+
const firstColon = withoutLabel.indexOf(":");
|
|
14372
|
+
const firstComma = withoutLabel.indexOf(",");
|
|
14373
|
+
if (firstColon !== -1 && (firstComma === -1 || firstColon < firstComma)) {
|
|
14374
|
+
const candidate = withoutLabel.slice(0, firstColon).trim();
|
|
14375
|
+
const candidateLower = candidate.toLowerCase();
|
|
14376
|
+
if (candidate !== "" && !X_ROBOTS_TAG_VALUED_DIRECTIVES.has(candidateLower) && !_isXRobotsTagFlag(candidateLower)) {
|
|
14377
|
+
userAgent = candidate;
|
|
14378
|
+
withoutLabel = withoutLabel.slice(firstColon + 1).trim();
|
|
14379
|
+
}
|
|
14380
|
+
}
|
|
14381
|
+
const tokens = withoutLabel.split(",").map((t) => t.trim()).filter((t) => t !== "");
|
|
14382
|
+
if (tokens.length === 0) return { error: "No directives found" };
|
|
14383
|
+
const flags = [];
|
|
14384
|
+
let maxSnippet;
|
|
14385
|
+
let maxImagePreview;
|
|
14386
|
+
let maxVideoPreview;
|
|
14387
|
+
let unavailableAfter;
|
|
14388
|
+
for (const token of tokens) {
|
|
14389
|
+
const eq = token.indexOf(":");
|
|
14390
|
+
const name = (eq === -1 ? token : token.slice(0, eq)).trim().toLowerCase();
|
|
14391
|
+
const value = eq === -1 ? "" : token.slice(eq + 1).trim();
|
|
14392
|
+
if (eq === -1) {
|
|
14393
|
+
if (!_isXRobotsTagFlag(name)) return { error: `Unrecognized directive "${token}"` };
|
|
14394
|
+
flags.push(name);
|
|
14395
|
+
continue;
|
|
14396
|
+
}
|
|
14397
|
+
if (name === "max-snippet") {
|
|
14398
|
+
const n = Number(value);
|
|
14399
|
+
if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-snippet value "${value}" is not a valid integer >= -1` };
|
|
14400
|
+
maxSnippet = n;
|
|
14401
|
+
} else if (name === "max-image-preview") {
|
|
14402
|
+
if (!["none", "standard", "large"].includes(value)) return { error: `max-image-preview value "${value}" must be one of "none", "standard", "large"` };
|
|
14403
|
+
maxImagePreview = value;
|
|
14404
|
+
} else if (name === "max-video-preview") {
|
|
14405
|
+
const n = Number(value);
|
|
14406
|
+
if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-video-preview value "${value}" is not a valid integer >= -1` };
|
|
14407
|
+
maxVideoPreview = n;
|
|
14408
|
+
} else if (name === "unavailable_after") {
|
|
14409
|
+
if (value === "" || Number.isNaN(Date.parse(value))) return { error: `unavailable_after value "${value}" is not a valid, parseable date` };
|
|
14410
|
+
unavailableAfter = value;
|
|
14411
|
+
} else {
|
|
14412
|
+
return { error: `Unrecognized directive "${token}"` };
|
|
14413
|
+
}
|
|
14414
|
+
}
|
|
14415
|
+
return buildXRobotsTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, userAgent });
|
|
14416
|
+
}
|
|
14417
|
+
var WELL_KNOWN_OPCODES = {
|
|
14418
|
+
0: { name: "Continuation Frame", description: "Continues a fragmented message whose first frame was a text or binary frame sent with the FIN bit unset.", category: "data" },
|
|
14419
|
+
1: { name: "Text Frame", description: "Carries a UTF-8 encoded text payload.", category: "data" },
|
|
14420
|
+
2: { name: "Binary Frame", description: "Carries an arbitrary binary payload.", category: "data" },
|
|
14421
|
+
8: { name: "Connection Close", description: "Initiates or acknowledges closing the connection, optionally carrying a 2-byte close code and a UTF-8 reason in its payload.", category: "control" },
|
|
14422
|
+
9: { name: "Ping", description: "A control frame used to check the connection is alive; the receiver should reply with a Pong carrying the same application data.", category: "control" },
|
|
14423
|
+
10: { name: "Pong", description: "Sent in response to a Ping (or unprompted as a heartbeat), carrying the same application data as the Ping it answers.", category: "control" }
|
|
14424
|
+
};
|
|
14425
|
+
var RESERVED_NON_CONTROL_OPCODES = /* @__PURE__ */ new Set([3, 4, 5, 6, 7]);
|
|
14426
|
+
function _describeOpcode(opcode) {
|
|
14427
|
+
const known = WELL_KNOWN_OPCODES[opcode];
|
|
14428
|
+
const hex = `0x${opcode.toString(16).toUpperCase()}`;
|
|
14429
|
+
if (known) {
|
|
14430
|
+
return { opcode, hex, name: known.name, description: known.description, category: known.category, isControl: known.category === "control" };
|
|
14431
|
+
}
|
|
14432
|
+
if (RESERVED_NON_CONTROL_OPCODES.has(opcode)) {
|
|
14433
|
+
return { opcode, hex, name: "Reserved (non-control)", description: "Reserved for future non-control frame types by a later revision of the WebSocket protocol. No meaning is defined yet; a compliant endpoint must fail the connection if it receives one.", category: "reserved-non-control", isControl: false };
|
|
14434
|
+
}
|
|
14435
|
+
return { opcode, hex, name: "Reserved (control)", description: "Reserved for future control frame types by a later revision of the WebSocket protocol. No meaning is defined yet; a compliant endpoint must fail the connection if it receives one.", category: "reserved-control", isControl: true };
|
|
14436
|
+
}
|
|
14437
|
+
function listOpcodes() {
|
|
14438
|
+
const result = [];
|
|
14439
|
+
for (let opcode = 0; opcode <= 15; opcode++) result.push(_describeOpcode(opcode));
|
|
14440
|
+
return result;
|
|
14441
|
+
}
|
|
14442
|
+
function lookupOpcode(opcode) {
|
|
14443
|
+
if (typeof opcode !== "number" || !Number.isInteger(opcode) || opcode < 0 || opcode > 15) {
|
|
14444
|
+
return { error: "opcode must be an integer between 0 and 15 (0x0-0xF); the frame opcode is only a 4-bit field" };
|
|
14445
|
+
}
|
|
14446
|
+
return _describeOpcode(opcode);
|
|
14447
|
+
}
|
|
14288
14448
|
|
|
14289
14449
|
// src/tools/api.ts
|
|
14290
14450
|
var api_exports = {};
|
|
@@ -15603,6 +15763,7 @@ __export(code_exports, {
|
|
|
15603
15763
|
MIME_TABLE: () => MIME_TABLE,
|
|
15604
15764
|
OPERATIONS: () => OPERATIONS,
|
|
15605
15765
|
SQL_DEFAULT_OPTIONS: () => SQL_DEFAULT_OPTIONS,
|
|
15766
|
+
analyzeRegexGroups: () => analyzeRegexGroups,
|
|
15606
15767
|
auditDependencyRanges: () => auditDependencyRanges,
|
|
15607
15768
|
buildDockerPull: () => buildDockerPull,
|
|
15608
15769
|
buildDockerRun: () => buildDockerRun,
|
|
@@ -19078,6 +19239,114 @@ function auditDependencyRanges(packageJsonText) {
|
|
|
19078
19239
|
issues
|
|
19079
19240
|
};
|
|
19080
19241
|
}
|
|
19242
|
+
function analyzeRegexGroups(pattern) {
|
|
19243
|
+
let valid = true;
|
|
19244
|
+
let compileError;
|
|
19245
|
+
try {
|
|
19246
|
+
new RegExp(pattern);
|
|
19247
|
+
} catch (e) {
|
|
19248
|
+
valid = false;
|
|
19249
|
+
compileError = e instanceof Error ? e.message : String(e);
|
|
19250
|
+
}
|
|
19251
|
+
const groups = [];
|
|
19252
|
+
const openStack = [];
|
|
19253
|
+
const backreferences = [];
|
|
19254
|
+
const issues = [];
|
|
19255
|
+
let groupCount = 0;
|
|
19256
|
+
let inClass = false;
|
|
19257
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
19258
|
+
const ch = pattern[i];
|
|
19259
|
+
if (ch === "\\" && i + 1 < pattern.length) {
|
|
19260
|
+
const next = pattern[i + 1];
|
|
19261
|
+
if (!inClass && /[1-9]/.test(next)) {
|
|
19262
|
+
let j = i + 1;
|
|
19263
|
+
while (j < pattern.length && /[0-9]/.test(pattern[j])) j++;
|
|
19264
|
+
const raw = pattern.slice(i, j);
|
|
19265
|
+
const target = parseInt(pattern.slice(i + 1, j), 10);
|
|
19266
|
+
backreferences.push({ raw, target, start: i, resolved: false, definedBeforeUse: false });
|
|
19267
|
+
i = j - 1;
|
|
19268
|
+
continue;
|
|
19269
|
+
}
|
|
19270
|
+
if (!inClass && next === "k" && pattern[i + 2] === "<") {
|
|
19271
|
+
const close = pattern.indexOf(">", i + 3);
|
|
19272
|
+
if (close !== -1) {
|
|
19273
|
+
const name = pattern.slice(i + 3, close);
|
|
19274
|
+
const raw = pattern.slice(i, close + 1);
|
|
19275
|
+
backreferences.push({ raw, target: name, start: i, resolved: false, definedBeforeUse: false });
|
|
19276
|
+
i = close;
|
|
19277
|
+
continue;
|
|
19278
|
+
}
|
|
19279
|
+
}
|
|
19280
|
+
i++;
|
|
19281
|
+
continue;
|
|
19282
|
+
}
|
|
19283
|
+
if (ch === "[" && !inClass) {
|
|
19284
|
+
inClass = true;
|
|
19285
|
+
continue;
|
|
19286
|
+
}
|
|
19287
|
+
if (ch === "]" && inClass) {
|
|
19288
|
+
inClass = false;
|
|
19289
|
+
continue;
|
|
19290
|
+
}
|
|
19291
|
+
if (inClass) continue;
|
|
19292
|
+
if (ch === "(") {
|
|
19293
|
+
if (pattern[i + 1] === "?") {
|
|
19294
|
+
const c2 = pattern[i + 2];
|
|
19295
|
+
if (c2 === ":" || c2 === "=" || c2 === "!") {
|
|
19296
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
19297
|
+
continue;
|
|
19298
|
+
}
|
|
19299
|
+
if (c2 === "<" && (pattern[i + 3] === "=" || pattern[i + 3] === "!")) {
|
|
19300
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
19301
|
+
continue;
|
|
19302
|
+
}
|
|
19303
|
+
if (c2 === "<") {
|
|
19304
|
+
const close = pattern.indexOf(">", i + 3);
|
|
19305
|
+
const name = close !== -1 ? pattern.slice(i + 3, close) : null;
|
|
19306
|
+
groupCount++;
|
|
19307
|
+
openStack.push({ index: groupCount, name, start: i });
|
|
19308
|
+
if (close !== -1) i = close;
|
|
19309
|
+
continue;
|
|
19310
|
+
}
|
|
19311
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
19312
|
+
continue;
|
|
19313
|
+
}
|
|
19314
|
+
groupCount++;
|
|
19315
|
+
openStack.push({ index: groupCount, name: null, start: i });
|
|
19316
|
+
continue;
|
|
19317
|
+
}
|
|
19318
|
+
if (ch === ")") {
|
|
19319
|
+
const open = openStack.pop();
|
|
19320
|
+
if (open && open.index !== -1) {
|
|
19321
|
+
groups.push({ index: open.index, name: open.name, start: open.start, end: i });
|
|
19322
|
+
}
|
|
19323
|
+
continue;
|
|
19324
|
+
}
|
|
19325
|
+
}
|
|
19326
|
+
for (const open of openStack) {
|
|
19327
|
+
if (open.index !== -1) groups.push({ index: open.index, name: open.name, start: open.start, end: -1 });
|
|
19328
|
+
}
|
|
19329
|
+
groups.sort((a, b) => a.index - b.index);
|
|
19330
|
+
const byIndex = new Map(groups.map((g) => [g.index, g]));
|
|
19331
|
+
const byName = new Map(groups.filter((g) => g.name !== null).map((g) => [g.name, g]));
|
|
19332
|
+
for (const b of backreferences) {
|
|
19333
|
+
const g = typeof b.target === "number" ? byIndex.get(b.target) : byName.get(b.target);
|
|
19334
|
+
if (!g) {
|
|
19335
|
+
b.resolved = false;
|
|
19336
|
+
b.definedBeforeUse = false;
|
|
19337
|
+
const label = typeof b.target === "number" ? `group ${b.target}` : `named group "${b.target}"`;
|
|
19338
|
+
issues.push({ severity: "error", message: `Backreference ${b.raw} at position ${b.start} points to ${label}, which doesn't exist in this pattern.` });
|
|
19339
|
+
} else {
|
|
19340
|
+
b.resolved = true;
|
|
19341
|
+
b.definedBeforeUse = g.end !== -1 && g.end < b.start;
|
|
19342
|
+
if (!b.definedBeforeUse) {
|
|
19343
|
+
const label = `group ${g.index}${g.name ? ` ("${g.name}")` : ""}`;
|
|
19344
|
+
issues.push({ severity: "error", message: `Backreference ${b.raw} at position ${b.start} references ${label}, which hasn't finished being defined yet at that point in the pattern.` });
|
|
19345
|
+
}
|
|
19346
|
+
}
|
|
19347
|
+
}
|
|
19348
|
+
return { pattern, valid, ...compileError ? { compileError } : {}, groups, backreferences, issues };
|
|
19349
|
+
}
|
|
19081
19350
|
|
|
19082
19351
|
// src/tools/color.ts
|
|
19083
19352
|
var color_exports = {};
|
package/dist/index.d.cts
CHANGED
|
@@ -6,9 +6,9 @@ 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
8
|
export { u as units } from './units-DPefgzmH.cjs';
|
|
9
|
-
export { n as network } from './network-
|
|
9
|
+
export { n as network } from './network-EHkPJFoe.cjs';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.cjs';
|
|
11
|
-
export { c as code } from './code-
|
|
11
|
+
export { c as code } from './code-Cg9mE6b0.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
|
@@ -6,9 +6,9 @@ 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
8
|
export { u as units } from './units-DPefgzmH.js';
|
|
9
|
-
export { n as network } from './network-
|
|
9
|
+
export { n as network } from './network-EHkPJFoe.js';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.js';
|
|
11
|
-
export { c as code } from './code-
|
|
11
|
+
export { c as code } from './code-Cg9mE6b0.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-226EH3ZI.js';
|
|
2
2
|
export { units_exports as units } from './chunk-4HNHEOJL.js';
|
|
3
|
-
export { network_exports as network } from './chunk-
|
|
3
|
+
export { network_exports as network } from './chunk-TTQ2FNUG.js';
|
|
4
4
|
export { api_exports as api } from './chunk-52ZDKSIX.js';
|
|
5
|
-
export { code_exports as code } from './chunk-
|
|
5
|
+
export { code_exports as code } from './chunk-XCJJOWTK.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';
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
* - priority-header: buildPriorityHeader, parsePriorityHeader
|
|
29
29
|
* - websocket-close-codes: lookupCloseCode, listCloseCodes
|
|
30
30
|
* - hsts-header-builder: buildHsts, parseHsts
|
|
31
|
+
* - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
|
|
32
|
+
* - websocket-opcode-reference: lookupOpcode, listOpcodes
|
|
31
33
|
*/
|
|
32
34
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
33
35
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -963,6 +965,66 @@ declare function buildHsts(options: HstsOptions): HstsResult | {
|
|
|
963
965
|
declare function parseHsts(raw: string): HstsResult | {
|
|
964
966
|
error: string;
|
|
965
967
|
};
|
|
968
|
+
type XRobotsTagFlag = 'noindex' | 'nofollow' | 'noarchive' | 'nosnippet' | 'notranslate' | 'noimageindex' | 'none' | 'all' | 'indexifembedded';
|
|
969
|
+
interface XRobotsTagOptions {
|
|
970
|
+
flags?: XRobotsTagFlag[];
|
|
971
|
+
maxSnippet?: number;
|
|
972
|
+
maxImagePreview?: 'none' | 'standard' | 'large';
|
|
973
|
+
maxVideoPreview?: number;
|
|
974
|
+
unavailableAfter?: string;
|
|
975
|
+
userAgent?: string;
|
|
976
|
+
}
|
|
977
|
+
interface XRobotsTagResult {
|
|
978
|
+
header: string;
|
|
979
|
+
headerName: 'X-Robots-Tag';
|
|
980
|
+
snippet: string;
|
|
981
|
+
directives: string[];
|
|
982
|
+
notes: string[];
|
|
983
|
+
warnings: string[];
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Build an `X-Robots-Tag` response-header value from flag directives
|
|
987
|
+
* (noindex, nofollow, etc.) plus the optional max-snippet, max-image-preview,
|
|
988
|
+
* max-video-preview, and unavailable_after value directives, per Google's
|
|
989
|
+
* documented robots directive syntax (the same directive vocabulary as the
|
|
990
|
+
* `<meta name="robots">` tag, just delivered as a header so it also applies
|
|
991
|
+
* to non-HTML resources like PDFs and images). Optionally scope the whole
|
|
992
|
+
* header to a single crawler by passing `userAgent` (e.g. "googlebot").
|
|
993
|
+
* Pure string assembly; it never crawls or inspects a live page.
|
|
994
|
+
*/
|
|
995
|
+
declare function buildXRobotsTag(options: XRobotsTagOptions): XRobotsTagResult | {
|
|
996
|
+
error: string;
|
|
997
|
+
};
|
|
998
|
+
/**
|
|
999
|
+
* Parse an existing `X-Robots-Tag` header value (with or without a leading
|
|
1000
|
+
* `X-Robots-Tag:` label, and with or without a leading crawler user-agent
|
|
1001
|
+
* token) back into the same shape `buildXRobotsTag` returns.
|
|
1002
|
+
*/
|
|
1003
|
+
declare function parseXRobotsTag(raw: string): XRobotsTagResult | {
|
|
1004
|
+
error: string;
|
|
1005
|
+
};
|
|
1006
|
+
type OpcodeCategory = 'data' | 'control' | 'reserved-non-control' | 'reserved-control';
|
|
1007
|
+
interface OpcodeInfo {
|
|
1008
|
+
opcode: number;
|
|
1009
|
+
hex: string;
|
|
1010
|
+
name: string;
|
|
1011
|
+
description: string;
|
|
1012
|
+
category: OpcodeCategory;
|
|
1013
|
+
isControl: boolean;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* List every WebSocket frame opcode (0x0-0xF), the full 4-bit opcode space
|
|
1017
|
+
* defined by RFC 6455, in ascending order.
|
|
1018
|
+
*/
|
|
1019
|
+
declare function listOpcodes(): OpcodeInfo[];
|
|
1020
|
+
/**
|
|
1021
|
+
* Look up what a WebSocket frame opcode means per RFC 6455: 0x0-0x2 are data
|
|
1022
|
+
* frames, 0x8-0xA are control frames, and the rest of the 4-bit opcode space
|
|
1023
|
+
* is reserved for future protocol revisions.
|
|
1024
|
+
*/
|
|
1025
|
+
declare function lookupOpcode(opcode: number): OpcodeInfo | {
|
|
1026
|
+
error: string;
|
|
1027
|
+
};
|
|
966
1028
|
|
|
967
1029
|
type network_AcceptLanguageEntry = AcceptLanguageEntry;
|
|
968
1030
|
type network_AcceptLanguageResult = AcceptLanguageResult;
|
|
@@ -1013,6 +1075,8 @@ type network_ManifestIssue = ManifestIssue;
|
|
|
1013
1075
|
type network_ManifestValidationResult = ManifestValidationResult;
|
|
1014
1076
|
type network_MultipartParseResult = MultipartParseResult;
|
|
1015
1077
|
type network_MultipartPart = MultipartPart;
|
|
1078
|
+
type network_OpcodeCategory = OpcodeCategory;
|
|
1079
|
+
type network_OpcodeInfo = OpcodeInfo;
|
|
1016
1080
|
declare const network_PERMISSIONS_POLICY_FEATURES: typeof PERMISSIONS_POLICY_FEATURES;
|
|
1017
1081
|
type network_ParsedClientHint = ParsedClientHint;
|
|
1018
1082
|
type network_ParsedDnsResult = ParsedDnsResult;
|
|
@@ -1055,6 +1119,9 @@ type network_VaryHeaderEntry = VaryHeaderEntry;
|
|
|
1055
1119
|
type network_VaryHeaderResult = VaryHeaderResult;
|
|
1056
1120
|
type network_XContentTypeOptionsHeader = XContentTypeOptionsHeader;
|
|
1057
1121
|
type network_XContentTypeOptionsParseResult = XContentTypeOptionsParseResult;
|
|
1122
|
+
type network_XRobotsTagFlag = XRobotsTagFlag;
|
|
1123
|
+
type network_XRobotsTagOptions = XRobotsTagOptions;
|
|
1124
|
+
type network_XRobotsTagResult = XRobotsTagResult;
|
|
1058
1125
|
declare const network_X_CONTENT_TYPE_OPTIONS_HEADER: typeof X_CONTENT_TYPE_OPTIONS_HEADER;
|
|
1059
1126
|
declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
|
|
1060
1127
|
declare const network_assessContentTypeRisk: typeof assessContentTypeRisk;
|
|
@@ -1075,6 +1142,7 @@ declare const network_buildReferrerPolicy: typeof buildReferrerPolicy;
|
|
|
1075
1142
|
declare const network_buildRetryAfterHeader: typeof buildRetryAfterHeader;
|
|
1076
1143
|
declare const network_buildVaryHeader: typeof buildVaryHeader;
|
|
1077
1144
|
declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
|
|
1145
|
+
declare const network_buildXRobotsTag: typeof buildXRobotsTag;
|
|
1078
1146
|
declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
|
|
1079
1147
|
declare const network_countryCodeToFlag: typeof countryCodeToFlag;
|
|
1080
1148
|
declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
|
|
@@ -1092,7 +1160,9 @@ declare const network_isValidIp: typeof isValidIp;
|
|
|
1092
1160
|
declare const network_isValidIpv4: typeof isValidIpv4;
|
|
1093
1161
|
declare const network_isValidIpv6: typeof isValidIpv6;
|
|
1094
1162
|
declare const network_listCloseCodes: typeof listCloseCodes;
|
|
1163
|
+
declare const network_listOpcodes: typeof listOpcodes;
|
|
1095
1164
|
declare const network_lookupCloseCode: typeof lookupCloseCode;
|
|
1165
|
+
declare const network_lookupOpcode: typeof lookupOpcode;
|
|
1096
1166
|
declare const network_parseAcceptLanguage: typeof parseAcceptLanguage;
|
|
1097
1167
|
declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
|
|
1098
1168
|
declare const network_parseContentDisposition: typeof parseContentDisposition;
|
|
@@ -1110,6 +1180,7 @@ declare const network_parseRetryAfterHeader: typeof parseRetryAfterHeader;
|
|
|
1110
1180
|
declare const network_parseUserAgent: typeof parseUserAgent;
|
|
1111
1181
|
declare const network_parseVaryHeader: typeof parseVaryHeader;
|
|
1112
1182
|
declare const network_parseXContentTypeOptionsHeader: typeof parseXContentTypeOptionsHeader;
|
|
1183
|
+
declare const network_parseXRobotsTag: typeof parseXRobotsTag;
|
|
1113
1184
|
declare const network_searchHeaders: typeof searchHeaders;
|
|
1114
1185
|
declare const network_searchStatusCodes: typeof searchStatusCodes;
|
|
1115
1186
|
declare const network_splitSitemap: typeof splitSitemap;
|
|
@@ -1122,7 +1193,7 @@ declare const network_validateManifest: typeof validateManifest;
|
|
|
1122
1193
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
1123
1194
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
1124
1195
|
declare namespace network {
|
|
1125
|
-
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, 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_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_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_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, 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_lookupCloseCode as lookupCloseCode, 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_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 };
|
|
1196
|
+
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_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_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_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 };
|
|
1126
1197
|
}
|
|
1127
1198
|
|
|
1128
|
-
export { type
|
|
1199
|
+
export { type ParsedClientHint as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HstsOptions as J, type HstsResult as K, type HttpHeader as L, type Ipv6AddressType as M, type Ipv6ParseResult as N, LINK_REL_VALUES as O, type LinkHeaderEntry as P, type LinkHeaderEntryInput as Q, type LinkHeaderResult as R, type LinkRel as S, type ManifestIconInfo as T, type ManifestIssue as U, type ManifestValidationResult as V, type MultipartParseResult as W, type MultipartPart as X, type OpcodeCategory as Y, type OpcodeInfo as Z, PERMISSIONS_POLICY_FEATURES as _, type AcceptLanguageResult as a, buildXRobotsTag as a$, type ParsedDnsResult as a0, type ParsedGeoResult as a1, type PermissionsPolicyDirective as a2, type PermissionsPolicyFeatureInput as a3, type PermissionsPolicyResult as a4, type PreferParameter as a5, type PreferPreference as a6, type PreferResult as a7, type PriorityResult as a8, REFERRER_POLICY_VALUES as a9, type VaryHeaderEntry as aA, type VaryHeaderResult as aB, type XContentTypeOptionsHeader as aC, type XContentTypeOptionsParseResult as aD, type XRobotsTagFlag as aE, type XRobotsTagOptions as aF, type XRobotsTagResult as aG, X_CONTENT_TYPE_OPTIONS_HEADER as aH, analyzeEmailHeaders as aI, assessContentTypeRisk as aJ, buildAcceptLanguage as aK, buildCacheControl as aL, buildClientHints as aM, buildContentDisposition as aN, buildDnsQueryUrl as aO, buildGeoUrl as aP, buildHsts as aQ, buildLinkHeader as aR, buildMapUrl as aS, buildPermissionsPolicy as aT, buildPreferHeader as aU, buildPriorityHeader as aV, buildRangeHeader as aW, buildReferrerPolicy as aX, buildRetryAfterHeader as aY, buildVaryHeader as aZ, buildXContentTypeOptionsHeader as a_, type RangeEntry as aa, type RangeEntryInput as ab, type RangeHeaderResult as ac, type ReceivedHop as ad, type ReferrerPolicyEntry as ae, type ReferrerPolicyResult as af, type ReferrerPolicyValue as ag, type RetryAfterDateResult as ah, type RetryAfterResult as ai, type RetryAfterSecondsResult as aj, type RobotsGroup as ak, type RobotsIssue as al, type RobotsRule as am, type RobotsValidationResult as an, STATUS_CODES as ao, type SameSiteValue as ap, type SitemapIndexEntry as aq, type SitemapIssue as ar, type SitemapSplitFile as as, type SitemapUrlEntry as at, type SitemapValidationResult as au, type SplitSitemapOptions as av, type SplitSitemapResult as aw, type StatusCode as ax, type UaDeviceType as ay, type UserAgentInfo as az, type AuthResultEntry as b, checkSetCookieHeader as b0, countryCodeToFlag as b1, extractMultipartBoundary as b2, formatCoordinates as b3, formatTtl as b4, getByCategory as b5, getHeader as b6, getHeadersByCategory as b7, getStatusByCategory as b8, getStatusCode as b9, parseXContentTypeOptionsHeader as bA, parseXRobotsTag as bB, searchHeaders as bC, searchStatusCodes as bD, splitSitemap as bE, statusCodeToText as bF, typeNumberToLabel as bG, validateDomain as bH, validateHeaderName as bI, validateHeaderValue as bJ, validateManifest as bK, validateRobotsTxt as bL, validateSitemap as bM, isClientError as ba, isServerError as bb, isSuccess as bc, isValidIp as bd, isValidIpv4 as be, isValidIpv6 as bf, listCloseCodes as bg, listOpcodes as bh, lookupCloseCode as bi, lookupOpcode as bj, parseAcceptLanguage as bk, parseClientHintHeaders as bl, parseContentDisposition as bm, parseContentRangeHeader as bn, parseDnsResponse as bo, parseGeoResponse as bp, parseHar as bq, parseHsts as br, parseIpv6Address as bs, parseMultipartFormData as bt, parsePermissionsPolicy as bu, parsePreferHeader as bv, parsePriorityHeader as bw, parseRetryAfterHeader as bx, parseUserAgent as by, parseVaryHeader 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 DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
|