@utilix-tech/sdk 0.66.0 → 0.68.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 +18 -4
- package/dist/{chunk-TTQ2FNUG.js → chunk-ACGCCOCK.js} +74 -1
- package/dist/{chunk-JPFHEZ4P.js → chunk-COL3IM7U.js} +141 -1
- package/dist/{code-CKI2Z_NM.d.cts → code-DB-5ZfG4.d.cts} +70 -2
- package/dist/{code-CKI2Z_NM.d.ts → code-DB-5ZfG4.d.ts} +70 -2
- package/dist/index.cjs +213 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{network-EHkPJFoe.d.cts → network-BmqYmfqY.d.cts} +46 -2
- package/dist/{network-EHkPJFoe.d.ts → network-BmqYmfqY.d.ts} +46 -2
- package/dist/tools/code.cjs +140 -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 +73 -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/tools/code.cjs
CHANGED
|
@@ -3427,6 +3427,144 @@ function auditDependencyRanges(packageJsonText) {
|
|
|
3427
3427
|
issues
|
|
3428
3428
|
};
|
|
3429
3429
|
}
|
|
3430
|
+
function analyzeRegexGroups(pattern) {
|
|
3431
|
+
let valid = true;
|
|
3432
|
+
let compileError;
|
|
3433
|
+
try {
|
|
3434
|
+
new RegExp(pattern);
|
|
3435
|
+
} catch (e) {
|
|
3436
|
+
valid = false;
|
|
3437
|
+
compileError = e instanceof Error ? e.message : String(e);
|
|
3438
|
+
}
|
|
3439
|
+
const groups = [];
|
|
3440
|
+
const openStack = [];
|
|
3441
|
+
const backreferences = [];
|
|
3442
|
+
const issues = [];
|
|
3443
|
+
let groupCount = 0;
|
|
3444
|
+
let inClass = false;
|
|
3445
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
3446
|
+
const ch = pattern[i];
|
|
3447
|
+
if (ch === "\\" && i + 1 < pattern.length) {
|
|
3448
|
+
const next = pattern[i + 1];
|
|
3449
|
+
if (!inClass && /[1-9]/.test(next)) {
|
|
3450
|
+
let j = i + 1;
|
|
3451
|
+
while (j < pattern.length && /[0-9]/.test(pattern[j])) j++;
|
|
3452
|
+
const raw = pattern.slice(i, j);
|
|
3453
|
+
const target = parseInt(pattern.slice(i + 1, j), 10);
|
|
3454
|
+
backreferences.push({ raw, target, start: i, resolved: false, definedBeforeUse: false });
|
|
3455
|
+
i = j - 1;
|
|
3456
|
+
continue;
|
|
3457
|
+
}
|
|
3458
|
+
if (!inClass && next === "k" && pattern[i + 2] === "<") {
|
|
3459
|
+
const close = pattern.indexOf(">", i + 3);
|
|
3460
|
+
if (close !== -1) {
|
|
3461
|
+
const name = pattern.slice(i + 3, close);
|
|
3462
|
+
const raw = pattern.slice(i, close + 1);
|
|
3463
|
+
backreferences.push({ raw, target: name, start: i, resolved: false, definedBeforeUse: false });
|
|
3464
|
+
i = close;
|
|
3465
|
+
continue;
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
i++;
|
|
3469
|
+
continue;
|
|
3470
|
+
}
|
|
3471
|
+
if (ch === "[" && !inClass) {
|
|
3472
|
+
inClass = true;
|
|
3473
|
+
continue;
|
|
3474
|
+
}
|
|
3475
|
+
if (ch === "]" && inClass) {
|
|
3476
|
+
inClass = false;
|
|
3477
|
+
continue;
|
|
3478
|
+
}
|
|
3479
|
+
if (inClass) continue;
|
|
3480
|
+
if (ch === "(") {
|
|
3481
|
+
if (pattern[i + 1] === "?") {
|
|
3482
|
+
const c2 = pattern[i + 2];
|
|
3483
|
+
if (c2 === ":" || c2 === "=" || c2 === "!") {
|
|
3484
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
3485
|
+
continue;
|
|
3486
|
+
}
|
|
3487
|
+
if (c2 === "<" && (pattern[i + 3] === "=" || pattern[i + 3] === "!")) {
|
|
3488
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
3489
|
+
continue;
|
|
3490
|
+
}
|
|
3491
|
+
if (c2 === "<") {
|
|
3492
|
+
const close = pattern.indexOf(">", i + 3);
|
|
3493
|
+
const name = close !== -1 ? pattern.slice(i + 3, close) : null;
|
|
3494
|
+
groupCount++;
|
|
3495
|
+
openStack.push({ index: groupCount, name, start: i });
|
|
3496
|
+
if (close !== -1) i = close;
|
|
3497
|
+
continue;
|
|
3498
|
+
}
|
|
3499
|
+
openStack.push({ index: -1, name: null, start: i });
|
|
3500
|
+
continue;
|
|
3501
|
+
}
|
|
3502
|
+
groupCount++;
|
|
3503
|
+
openStack.push({ index: groupCount, name: null, start: i });
|
|
3504
|
+
continue;
|
|
3505
|
+
}
|
|
3506
|
+
if (ch === ")") {
|
|
3507
|
+
const open = openStack.pop();
|
|
3508
|
+
if (open && open.index !== -1) {
|
|
3509
|
+
groups.push({ index: open.index, name: open.name, start: open.start, end: i });
|
|
3510
|
+
}
|
|
3511
|
+
continue;
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
for (const open of openStack) {
|
|
3515
|
+
if (open.index !== -1) groups.push({ index: open.index, name: open.name, start: open.start, end: -1 });
|
|
3516
|
+
}
|
|
3517
|
+
groups.sort((a, b) => a.index - b.index);
|
|
3518
|
+
const byIndex = new Map(groups.map((g) => [g.index, g]));
|
|
3519
|
+
const byName = new Map(groups.filter((g) => g.name !== null).map((g) => [g.name, g]));
|
|
3520
|
+
for (const b of backreferences) {
|
|
3521
|
+
const g = typeof b.target === "number" ? byIndex.get(b.target) : byName.get(b.target);
|
|
3522
|
+
if (!g) {
|
|
3523
|
+
b.resolved = false;
|
|
3524
|
+
b.definedBeforeUse = false;
|
|
3525
|
+
const label = typeof b.target === "number" ? `group ${b.target}` : `named group "${b.target}"`;
|
|
3526
|
+
issues.push({ severity: "error", message: `Backreference ${b.raw} at position ${b.start} points to ${label}, which doesn't exist in this pattern.` });
|
|
3527
|
+
} else {
|
|
3528
|
+
b.resolved = true;
|
|
3529
|
+
b.definedBeforeUse = g.end !== -1 && g.end < b.start;
|
|
3530
|
+
if (!b.definedBeforeUse) {
|
|
3531
|
+
const label = `group ${g.index}${g.name ? ` ("${g.name}")` : ""}`;
|
|
3532
|
+
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.` });
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3536
|
+
return { pattern, valid, ...compileError ? { compileError } : {}, groups, backreferences, issues };
|
|
3537
|
+
}
|
|
3538
|
+
var SVG_SYMBOL_TAG_REGEX = /<symbol\b([^>]*)>/gi;
|
|
3539
|
+
function extractSvgAttr(attrs, name) {
|
|
3540
|
+
const match = attrs.match(new RegExp(`\\s${name}\\s*=\\s*["']([^"']*)["']`, "i"));
|
|
3541
|
+
return match ? match[1] : null;
|
|
3542
|
+
}
|
|
3543
|
+
function extractSvgSpriteSymbols(svg) {
|
|
3544
|
+
const trimmed = svg.trim();
|
|
3545
|
+
if (!trimmed) return { error: "Empty input" };
|
|
3546
|
+
const symbols = [];
|
|
3547
|
+
let skippedCount = 0;
|
|
3548
|
+
for (const match of trimmed.matchAll(SVG_SYMBOL_TAG_REGEX)) {
|
|
3549
|
+
const attrs = match[1];
|
|
3550
|
+
const id = extractSvgAttr(attrs, "id");
|
|
3551
|
+
if (!id) {
|
|
3552
|
+
skippedCount++;
|
|
3553
|
+
continue;
|
|
3554
|
+
}
|
|
3555
|
+
symbols.push({
|
|
3556
|
+
id,
|
|
3557
|
+
viewBox: extractSvgAttr(attrs, "viewBox"),
|
|
3558
|
+
width: extractSvgAttr(attrs, "width"),
|
|
3559
|
+
height: extractSvgAttr(attrs, "height"),
|
|
3560
|
+
usageSnippet: `<svg><use href="#${id}"></use></svg>`
|
|
3561
|
+
});
|
|
3562
|
+
}
|
|
3563
|
+
if (symbols.length === 0 && skippedCount === 0) {
|
|
3564
|
+
return { error: "No <symbol> elements found" };
|
|
3565
|
+
}
|
|
3566
|
+
return { symbolCount: symbols.length, symbols, skippedCount };
|
|
3567
|
+
}
|
|
3430
3568
|
|
|
3431
3569
|
exports.ALL_FLAGS = ALL_FLAGS;
|
|
3432
3570
|
exports.CHEATSHEET = CHEATSHEET;
|
|
@@ -3434,6 +3572,7 @@ exports.DEFAULT_COMMIT_TYPES = DEFAULT_COMMIT_TYPES;
|
|
|
3434
3572
|
exports.MIME_TABLE = MIME_TABLE;
|
|
3435
3573
|
exports.OPERATIONS = OPERATIONS;
|
|
3436
3574
|
exports.SQL_DEFAULT_OPTIONS = SQL_DEFAULT_OPTIONS;
|
|
3575
|
+
exports.analyzeRegexGroups = analyzeRegexGroups;
|
|
3437
3576
|
exports.auditDependencyRanges = auditDependencyRanges;
|
|
3438
3577
|
exports.buildDockerPull = buildDockerPull;
|
|
3439
3578
|
exports.buildDockerRun = buildDockerRun;
|
|
@@ -3447,6 +3586,7 @@ exports.detectOperationType = detectOperationType;
|
|
|
3447
3586
|
exports.detectRedos = detectRedos;
|
|
3448
3587
|
exports.envToExport = envToExport;
|
|
3449
3588
|
exports.envToJson = envToJson;
|
|
3589
|
+
exports.extractSvgSpriteSymbols = extractSvgSpriteSymbols;
|
|
3450
3590
|
exports.formatCss = formatCss;
|
|
3451
3591
|
exports.formatGql = formatGql;
|
|
3452
3592
|
exports.formatHtml = formatHtml;
|
package/dist/tools/code.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DependencyAuditDuplicate, m as DependencyAuditEntry, n as DependencyAuditIssue, o as DependencyAuditResult, p as DependencyRangeType, q as DependencySection, r as DockerImageRef, E as EditorConfigIssue, s as EditorConfigProperty, t as EditorConfigSection, u as EditorConfigValidationResult, v as EnvEntry, w as EnvParseResult, x as ExportsIssue, y as ExportsShape, z as ExportsValidationResult, G as GitCommandConfig, B as GitCommandResult, F as GitOperation, H as GithubUrlInfo, I as GithubUrlType, J as GitignoreTestResult, K as GqlFormatResult, L as HtmlFormatResult, M as HtmlMinifyOptions, N as HtmlMinifyResult, O as JsMinifyOptions, P as JsMinifyResult, Q as MIME_TABLE, R as MatchResult, S as MimeEntry, T as MimeLookupResult, U as OPERATIONS, V as ParsedSpec, W as RedosFinding, X as RedosResult, Y as RedosSeverity, Z as
|
|
1
|
+
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DependencyAuditDuplicate, m as DependencyAuditEntry, n as DependencyAuditIssue, o as DependencyAuditResult, p as DependencyRangeType, q as DependencySection, r as DockerImageRef, E as EditorConfigIssue, s as EditorConfigProperty, t as EditorConfigSection, u as EditorConfigValidationResult, v as EnvEntry, w as EnvParseResult, x as ExportsIssue, y as ExportsShape, z as ExportsValidationResult, G as GitCommandConfig, B as GitCommandResult, F as GitOperation, H as GithubUrlInfo, I as GithubUrlType, J as GitignoreTestResult, K as GqlFormatResult, L as HtmlFormatResult, M as HtmlMinifyOptions, N as HtmlMinifyResult, O as JsMinifyOptions, P as JsMinifyResult, Q as MIME_TABLE, R as MatchResult, S as MimeEntry, T as MimeLookupResult, U as OPERATIONS, V as ParsedSpec, W as RedosFinding, X as RedosResult, Y as RedosSeverity, Z as RegexBackreferenceInfo, _ as RegexError, $ as RegexFlag, a0 as RegexGroupAnalysis, a1 as RegexGroupInfo, a2 as RegexGroupIssue, a3 as RegexMatch, a4 as RegexResult, a5 as RegexSuccess, a6 as SQL_DEFAULT_OPTIONS, a7 as Segment, a8 as SpecVersion, a9 as SqlDialect, aa as SqlFormatOptions, ab as SvgSpriteResult, ac as SvgSpriteSymbol, ad as TestPatternResult, ae as TsconfigIssue, af as TsconfigValidationResult, ag as analyzeRegexGroups, ah as auditDependencyRanges, ai as buildDockerPull, aj as buildDockerRun, ak as buildGitCommand, al as collapseHtmlWhitespace, am as collapseJsWhitespace, an as countProperties, ao as countRules, ap as detectDialect, aq as detectOperationType, ar as detectRedos, as as envToExport, at as envToJson, au as extractSvgSpriteSymbols, av as formatCss, aw as formatGql, ax as formatHtml, ay as formatSql, az as getEndpointsByTag, aA as getHtmlStats, aB as getJsStats, aC as getMethodColor, aD as isValidTag, aE as lintConventionalCommit, aF as lookupMime, aG as minifyCss, aH as minifyGql, aI as minifyHtml, aJ as minifyJs, aK as minifySql, aL as normalizeRef, aM as parseDockerImage, aN as parseEnv, aO as parseGitCommand, aP as parseGithubUrl, aQ as parseSpec, aR as removeConsoleCalls, aS as removeEmptyAttributes, aT as removeHtmlComments, aU as removeJsComments, aV as removeRedundantAttributes, aW as searchCheatsheet, aX as searchEndpoints, aY as splitStatements, aZ as testGitignorePatterns, a_ as testPattern, a$ as testRegex, b0 as validateEditorConfig, b1 as validateEnvKey, b2 as validatePackageExports, b3 as validateTsconfig } from '../code-DB-5ZfG4.cjs';
|
package/dist/tools/code.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DependencyAuditDuplicate, m as DependencyAuditEntry, n as DependencyAuditIssue, o as DependencyAuditResult, p as DependencyRangeType, q as DependencySection, r as DockerImageRef, E as EditorConfigIssue, s as EditorConfigProperty, t as EditorConfigSection, u as EditorConfigValidationResult, v as EnvEntry, w as EnvParseResult, x as ExportsIssue, y as ExportsShape, z as ExportsValidationResult, G as GitCommandConfig, B as GitCommandResult, F as GitOperation, H as GithubUrlInfo, I as GithubUrlType, J as GitignoreTestResult, K as GqlFormatResult, L as HtmlFormatResult, M as HtmlMinifyOptions, N as HtmlMinifyResult, O as JsMinifyOptions, P as JsMinifyResult, Q as MIME_TABLE, R as MatchResult, S as MimeEntry, T as MimeLookupResult, U as OPERATIONS, V as ParsedSpec, W as RedosFinding, X as RedosResult, Y as RedosSeverity, Z as
|
|
1
|
+
export { A as ALL_FLAGS, a as ApiEndpoint, b as ApiInfo, C as CHEATSHEET, d as CheatsheetEntry, e as ConventionalCommitFinding, f as ConventionalCommitFooter, g as ConventionalCommitOptions, h as ConventionalCommitParsed, i as ConventionalCommitResult, j as ConventionalCommitSeverity, k as CssResult, D as DEFAULT_COMMIT_TYPES, l as DependencyAuditDuplicate, m as DependencyAuditEntry, n as DependencyAuditIssue, o as DependencyAuditResult, p as DependencyRangeType, q as DependencySection, r as DockerImageRef, E as EditorConfigIssue, s as EditorConfigProperty, t as EditorConfigSection, u as EditorConfigValidationResult, v as EnvEntry, w as EnvParseResult, x as ExportsIssue, y as ExportsShape, z as ExportsValidationResult, G as GitCommandConfig, B as GitCommandResult, F as GitOperation, H as GithubUrlInfo, I as GithubUrlType, J as GitignoreTestResult, K as GqlFormatResult, L as HtmlFormatResult, M as HtmlMinifyOptions, N as HtmlMinifyResult, O as JsMinifyOptions, P as JsMinifyResult, Q as MIME_TABLE, R as MatchResult, S as MimeEntry, T as MimeLookupResult, U as OPERATIONS, V as ParsedSpec, W as RedosFinding, X as RedosResult, Y as RedosSeverity, Z as RegexBackreferenceInfo, _ as RegexError, $ as RegexFlag, a0 as RegexGroupAnalysis, a1 as RegexGroupInfo, a2 as RegexGroupIssue, a3 as RegexMatch, a4 as RegexResult, a5 as RegexSuccess, a6 as SQL_DEFAULT_OPTIONS, a7 as Segment, a8 as SpecVersion, a9 as SqlDialect, aa as SqlFormatOptions, ab as SvgSpriteResult, ac as SvgSpriteSymbol, ad as TestPatternResult, ae as TsconfigIssue, af as TsconfigValidationResult, ag as analyzeRegexGroups, ah as auditDependencyRanges, ai as buildDockerPull, aj as buildDockerRun, ak as buildGitCommand, al as collapseHtmlWhitespace, am as collapseJsWhitespace, an as countProperties, ao as countRules, ap as detectDialect, aq as detectOperationType, ar as detectRedos, as as envToExport, at as envToJson, au as extractSvgSpriteSymbols, av as formatCss, aw as formatGql, ax as formatHtml, ay as formatSql, az as getEndpointsByTag, aA as getHtmlStats, aB as getJsStats, aC as getMethodColor, aD as isValidTag, aE as lintConventionalCommit, aF as lookupMime, aG as minifyCss, aH as minifyGql, aI as minifyHtml, aJ as minifyJs, aK as minifySql, aL as normalizeRef, aM as parseDockerImage, aN as parseEnv, aO as parseGitCommand, aP as parseGithubUrl, aQ as parseSpec, aR as removeConsoleCalls, aS as removeEmptyAttributes, aT as removeHtmlComments, aU as removeJsComments, aV as removeRedundantAttributes, aW as searchCheatsheet, aX as searchEndpoints, aY as splitStatements, aZ as testGitignorePatterns, a_ as testPattern, a$ as testRegex, b0 as validateEditorConfig, b1 as validateEnvKey, b2 as validatePackageExports, b3 as validateTsconfig } from '../code-DB-5ZfG4.js';
|
package/dist/tools/code.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig } from '../chunk-
|
|
1
|
+
export { ALL_FLAGS, CHEATSHEET, DEFAULT_COMMIT_TYPES, MIME_TABLE, OPERATIONS, SQL_DEFAULT_OPTIONS, analyzeRegexGroups, auditDependencyRanges, buildDockerPull, buildDockerRun, buildGitCommand, collapseHtmlWhitespace, collapseJsWhitespace, countProperties, countRules, detectDialect, detectOperationType, detectRedos, envToExport, envToJson, extractSvgSpriteSymbols, formatCss, formatGql, formatHtml, formatSql, getEndpointsByTag, getHtmlStats, getJsStats, getMethodColor, isValidTag, lintConventionalCommit, lookupMime, minifyCss, minifyGql, minifyHtml, minifyJs, minifySql, normalizeRef, parseDockerImage, parseEnv, parseGitCommand, parseGithubUrl, parseSpec, removeConsoleCalls, removeEmptyAttributes, removeHtmlComments, removeJsComments, removeRedundantAttributes, searchCheatsheet, searchEndpoints, splitStatements, testGitignorePatterns, testPattern, testRegex, validateEditorConfig, validateEnvKey, validatePackageExports, validateTsconfig } from '../chunk-COL3IM7U.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/dist/tools/network.cjs
CHANGED
|
@@ -3327,6 +3327,77 @@ function lookupOpcode(opcode) {
|
|
|
3327
3327
|
}
|
|
3328
3328
|
return _describeOpcode(opcode);
|
|
3329
3329
|
}
|
|
3330
|
+
function buildRobotsMetaTag(options) {
|
|
3331
|
+
const built = buildXRobotsTag({
|
|
3332
|
+
flags: options?.flags,
|
|
3333
|
+
maxSnippet: options?.maxSnippet,
|
|
3334
|
+
maxImagePreview: options?.maxImagePreview,
|
|
3335
|
+
maxVideoPreview: options?.maxVideoPreview,
|
|
3336
|
+
unavailableAfter: options?.unavailableAfter
|
|
3337
|
+
});
|
|
3338
|
+
if ("error" in built) return built;
|
|
3339
|
+
const name = options?.name?.trim() || "robots";
|
|
3340
|
+
return {
|
|
3341
|
+
content: built.header,
|
|
3342
|
+
name,
|
|
3343
|
+
tag: `<meta name="${name}" content="${built.header}">`,
|
|
3344
|
+
directives: built.directives,
|
|
3345
|
+
notes: built.notes,
|
|
3346
|
+
warnings: built.warnings
|
|
3347
|
+
};
|
|
3348
|
+
}
|
|
3349
|
+
var _ROBOTS_META_TAG_REGEX = /<meta\b[^>]*>/i;
|
|
3350
|
+
var _ROBOTS_META_NAME_ATTR_REGEX = /\bname\s*=\s*["']([^"']*)["']/i;
|
|
3351
|
+
var _ROBOTS_META_CONTENT_ATTR_REGEX = /\bcontent\s*=\s*["']([^"']*)["']/i;
|
|
3352
|
+
function parseRobotsMetaTag(raw) {
|
|
3353
|
+
if (!raw || raw.trim() === "") return { error: "Input is empty" };
|
|
3354
|
+
const trimmed = raw.trim();
|
|
3355
|
+
let name = "robots";
|
|
3356
|
+
let content = trimmed;
|
|
3357
|
+
const tagMatch = trimmed.match(_ROBOTS_META_TAG_REGEX);
|
|
3358
|
+
if (tagMatch) {
|
|
3359
|
+
const nameMatch = tagMatch[0].match(_ROBOTS_META_NAME_ATTR_REGEX);
|
|
3360
|
+
const contentMatch = tagMatch[0].match(_ROBOTS_META_CONTENT_ATTR_REGEX);
|
|
3361
|
+
if (!contentMatch) return { error: "Meta tag is missing a content attribute" };
|
|
3362
|
+
if (nameMatch) name = nameMatch[1].trim() || "robots";
|
|
3363
|
+
content = contentMatch[1];
|
|
3364
|
+
}
|
|
3365
|
+
const tokens = content.split(",").map((t) => t.trim()).filter((t) => t !== "");
|
|
3366
|
+
if (tokens.length === 0) return { error: "No directives found" };
|
|
3367
|
+
const flags = [];
|
|
3368
|
+
let maxSnippet;
|
|
3369
|
+
let maxImagePreview;
|
|
3370
|
+
let maxVideoPreview;
|
|
3371
|
+
let unavailableAfter;
|
|
3372
|
+
for (const token of tokens) {
|
|
3373
|
+
const eq = token.indexOf(":");
|
|
3374
|
+
const directiveName = (eq === -1 ? token : token.slice(0, eq)).trim().toLowerCase();
|
|
3375
|
+
const value = eq === -1 ? "" : token.slice(eq + 1).trim();
|
|
3376
|
+
if (eq === -1) {
|
|
3377
|
+
if (!_isXRobotsTagFlag(directiveName)) return { error: `Unrecognized directive "${token}"` };
|
|
3378
|
+
flags.push(directiveName);
|
|
3379
|
+
continue;
|
|
3380
|
+
}
|
|
3381
|
+
if (directiveName === "max-snippet") {
|
|
3382
|
+
const n = Number(value);
|
|
3383
|
+
if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-snippet value "${value}" is not a valid integer >= -1` };
|
|
3384
|
+
maxSnippet = n;
|
|
3385
|
+
} else if (directiveName === "max-image-preview") {
|
|
3386
|
+
if (!["none", "standard", "large"].includes(value)) return { error: `max-image-preview value "${value}" must be one of "none", "standard", "large"` };
|
|
3387
|
+
maxImagePreview = value;
|
|
3388
|
+
} else if (directiveName === "max-video-preview") {
|
|
3389
|
+
const n = Number(value);
|
|
3390
|
+
if (value === "" || !Number.isInteger(n) || n < -1) return { error: `max-video-preview value "${value}" is not a valid integer >= -1` };
|
|
3391
|
+
maxVideoPreview = n;
|
|
3392
|
+
} else if (directiveName === "unavailable_after") {
|
|
3393
|
+
if (value === "" || Number.isNaN(Date.parse(value))) return { error: `unavailable_after value "${value}" is not a valid, parseable date` };
|
|
3394
|
+
unavailableAfter = value;
|
|
3395
|
+
} else {
|
|
3396
|
+
return { error: `Unrecognized directive "${token}"` };
|
|
3397
|
+
}
|
|
3398
|
+
}
|
|
3399
|
+
return buildRobotsMetaTag({ flags, maxSnippet, maxImagePreview, maxVideoPreview, unavailableAfter, name });
|
|
3400
|
+
}
|
|
3330
3401
|
|
|
3331
3402
|
exports.CLIENT_HINTS = CLIENT_HINTS;
|
|
3332
3403
|
exports.DNS_RECORD_TYPES = DNS_RECORD_TYPES;
|
|
@@ -3353,6 +3424,7 @@ exports.buildPriorityHeader = buildPriorityHeader;
|
|
|
3353
3424
|
exports.buildRangeHeader = buildRangeHeader;
|
|
3354
3425
|
exports.buildReferrerPolicy = buildReferrerPolicy;
|
|
3355
3426
|
exports.buildRetryAfterHeader = buildRetryAfterHeader;
|
|
3427
|
+
exports.buildRobotsMetaTag = buildRobotsMetaTag;
|
|
3356
3428
|
exports.buildVaryHeader = buildVaryHeader;
|
|
3357
3429
|
exports.buildXContentTypeOptionsHeader = buildXContentTypeOptionsHeader;
|
|
3358
3430
|
exports.buildXRobotsTag = buildXRobotsTag;
|
|
@@ -3390,6 +3462,7 @@ exports.parsePermissionsPolicy = parsePermissionsPolicy;
|
|
|
3390
3462
|
exports.parsePreferHeader = parsePreferHeader;
|
|
3391
3463
|
exports.parsePriorityHeader = parsePriorityHeader;
|
|
3392
3464
|
exports.parseRetryAfterHeader = parseRetryAfterHeader;
|
|
3465
|
+
exports.parseRobotsMetaTag = parseRobotsMetaTag;
|
|
3393
3466
|
exports.parseUserAgent = parseUserAgent;
|
|
3394
3467
|
exports.parseVaryHeader = parseVaryHeader;
|
|
3395
3468
|
exports.parseXContentTypeOptionsHeader = parseXContentTypeOptionsHeader;
|
package/dist/tools/network.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HstsOptions, K as HstsResult, L as HttpHeader, M as Ipv6AddressType, N as Ipv6ParseResult, O as LINK_REL_VALUES, P as LinkHeaderEntry, Q as LinkHeaderEntryInput, R as LinkHeaderResult, S as LinkRel, T as ManifestIconInfo, U as ManifestIssue, V as ManifestValidationResult, W as MultipartParseResult, X as MultipartPart, Y as OpcodeCategory, Z as OpcodeInfo, _ as PERMISSIONS_POLICY_FEATURES, $ as ParsedClientHint, a0 as ParsedDnsResult, a1 as ParsedGeoResult, a2 as PermissionsPolicyDirective, a3 as PermissionsPolicyFeatureInput, a4 as PermissionsPolicyResult, a5 as PreferParameter, a6 as PreferPreference, a7 as PreferResult, a8 as PriorityResult, a9 as REFERRER_POLICY_VALUES, aa as RangeEntry, ab as RangeEntryInput, ac as RangeHeaderResult, ad as ReceivedHop, ae as ReferrerPolicyEntry, af as ReferrerPolicyResult, ag as ReferrerPolicyValue, ah as RetryAfterDateResult, ai as RetryAfterResult, aj as RetryAfterSecondsResult, ak as RobotsGroup, al as RobotsIssue, am as
|
|
1
|
+
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HstsOptions, K as HstsResult, L as HttpHeader, M as Ipv6AddressType, N as Ipv6ParseResult, O as LINK_REL_VALUES, P as LinkHeaderEntry, Q as LinkHeaderEntryInput, R as LinkHeaderResult, S as LinkRel, T as ManifestIconInfo, U as ManifestIssue, V as ManifestValidationResult, W as MultipartParseResult, X as MultipartPart, Y as OpcodeCategory, Z as OpcodeInfo, _ as PERMISSIONS_POLICY_FEATURES, $ as ParsedClientHint, a0 as ParsedDnsResult, a1 as ParsedGeoResult, a2 as PermissionsPolicyDirective, a3 as PermissionsPolicyFeatureInput, a4 as PermissionsPolicyResult, a5 as PreferParameter, a6 as PreferPreference, a7 as PreferResult, a8 as PriorityResult, a9 as REFERRER_POLICY_VALUES, aa as RangeEntry, ab as RangeEntryInput, ac as RangeHeaderResult, ad as ReceivedHop, ae as ReferrerPolicyEntry, af as ReferrerPolicyResult, ag as ReferrerPolicyValue, ah as RetryAfterDateResult, ai as RetryAfterResult, aj as RetryAfterSecondsResult, ak as RobotsGroup, al as RobotsIssue, am as RobotsMetaTagFlag, an as RobotsMetaTagOptions, ao as RobotsMetaTagResult, ap as RobotsRule, aq as RobotsValidationResult, ar as STATUS_CODES, as as SameSiteValue, at as SitemapIndexEntry, au as SitemapIssue, av as SitemapSplitFile, aw as SitemapUrlEntry, ax as SitemapValidationResult, ay as SplitSitemapOptions, az as SplitSitemapResult, aA as StatusCode, aB as UaDeviceType, aC as UserAgentInfo, aD as VaryHeaderEntry, aE as VaryHeaderResult, aF as XContentTypeOptionsHeader, aG as XContentTypeOptionsParseResult, aH as XRobotsTagFlag, aI as XRobotsTagOptions, aJ as XRobotsTagResult, aK as X_CONTENT_TYPE_OPTIONS_HEADER, aL as analyzeEmailHeaders, aM as assessContentTypeRisk, aN as buildAcceptLanguage, aO as buildCacheControl, aP as buildClientHints, aQ as buildContentDisposition, aR as buildDnsQueryUrl, aS as buildGeoUrl, aT as buildHsts, aU as buildLinkHeader, aV as buildMapUrl, aW as buildPermissionsPolicy, aX as buildPreferHeader, aY as buildPriorityHeader, aZ as buildRangeHeader, a_ as buildReferrerPolicy, a$ as buildRetryAfterHeader, b0 as buildRobotsMetaTag, b1 as buildVaryHeader, b2 as buildXContentTypeOptionsHeader, b3 as buildXRobotsTag, b4 as checkSetCookieHeader, b5 as countryCodeToFlag, b6 as extractMultipartBoundary, b7 as formatCoordinates, b8 as formatTtl, b9 as getByCategory, ba as getHeader, bb as getHeadersByCategory, bc as getStatusByCategory, bd as getStatusCode, be as isClientError, bf as isServerError, bg as isSuccess, bh as isValidIp, bi as isValidIpv4, bj as isValidIpv6, bk as listCloseCodes, bl as listOpcodes, bm as lookupCloseCode, bn as lookupOpcode, bo as parseAcceptLanguage, bp as parseClientHintHeaders, bq as parseContentDisposition, br as parseContentRangeHeader, bs as parseDnsResponse, bt as parseGeoResponse, bu as parseHar, bv as parseHsts, bw as parseIpv6Address, bx as parseMultipartFormData, by as parsePermissionsPolicy, bz as parsePreferHeader, bA as parsePriorityHeader, bB as parseRetryAfterHeader, bC as parseRobotsMetaTag, bD as parseUserAgent, bE as parseVaryHeader, bF as parseXContentTypeOptionsHeader, bG as parseXRobotsTag, bH as searchHeaders, bI as searchStatusCodes, bJ as splitSitemap, bK as statusCodeToText, bL as typeNumberToLabel, bM as validateDomain, bN as validateHeaderName, bO as validateHeaderValue, bP as validateManifest, bQ as validateRobotsTxt, bR as validateSitemap } from '../network-BmqYmfqY.cjs';
|
package/dist/tools/network.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HstsOptions, K as HstsResult, L as HttpHeader, M as Ipv6AddressType, N as Ipv6ParseResult, O as LINK_REL_VALUES, P as LinkHeaderEntry, Q as LinkHeaderEntryInput, R as LinkHeaderResult, S as LinkRel, T as ManifestIconInfo, U as ManifestIssue, V as ManifestValidationResult, W as MultipartParseResult, X as MultipartPart, Y as OpcodeCategory, Z as OpcodeInfo, _ as PERMISSIONS_POLICY_FEATURES, $ as ParsedClientHint, a0 as ParsedDnsResult, a1 as ParsedGeoResult, a2 as PermissionsPolicyDirective, a3 as PermissionsPolicyFeatureInput, a4 as PermissionsPolicyResult, a5 as PreferParameter, a6 as PreferPreference, a7 as PreferResult, a8 as PriorityResult, a9 as REFERRER_POLICY_VALUES, aa as RangeEntry, ab as RangeEntryInput, ac as RangeHeaderResult, ad as ReceivedHop, ae as ReferrerPolicyEntry, af as ReferrerPolicyResult, ag as ReferrerPolicyValue, ah as RetryAfterDateResult, ai as RetryAfterResult, aj as RetryAfterSecondsResult, ak as RobotsGroup, al as RobotsIssue, am as
|
|
1
|
+
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HstsOptions, K as HstsResult, L as HttpHeader, M as Ipv6AddressType, N as Ipv6ParseResult, O as LINK_REL_VALUES, P as LinkHeaderEntry, Q as LinkHeaderEntryInput, R as LinkHeaderResult, S as LinkRel, T as ManifestIconInfo, U as ManifestIssue, V as ManifestValidationResult, W as MultipartParseResult, X as MultipartPart, Y as OpcodeCategory, Z as OpcodeInfo, _ as PERMISSIONS_POLICY_FEATURES, $ as ParsedClientHint, a0 as ParsedDnsResult, a1 as ParsedGeoResult, a2 as PermissionsPolicyDirective, a3 as PermissionsPolicyFeatureInput, a4 as PermissionsPolicyResult, a5 as PreferParameter, a6 as PreferPreference, a7 as PreferResult, a8 as PriorityResult, a9 as REFERRER_POLICY_VALUES, aa as RangeEntry, ab as RangeEntryInput, ac as RangeHeaderResult, ad as ReceivedHop, ae as ReferrerPolicyEntry, af as ReferrerPolicyResult, ag as ReferrerPolicyValue, ah as RetryAfterDateResult, ai as RetryAfterResult, aj as RetryAfterSecondsResult, ak as RobotsGroup, al as RobotsIssue, am as RobotsMetaTagFlag, an as RobotsMetaTagOptions, ao as RobotsMetaTagResult, ap as RobotsRule, aq as RobotsValidationResult, ar as STATUS_CODES, as as SameSiteValue, at as SitemapIndexEntry, au as SitemapIssue, av as SitemapSplitFile, aw as SitemapUrlEntry, ax as SitemapValidationResult, ay as SplitSitemapOptions, az as SplitSitemapResult, aA as StatusCode, aB as UaDeviceType, aC as UserAgentInfo, aD as VaryHeaderEntry, aE as VaryHeaderResult, aF as XContentTypeOptionsHeader, aG as XContentTypeOptionsParseResult, aH as XRobotsTagFlag, aI as XRobotsTagOptions, aJ as XRobotsTagResult, aK as X_CONTENT_TYPE_OPTIONS_HEADER, aL as analyzeEmailHeaders, aM as assessContentTypeRisk, aN as buildAcceptLanguage, aO as buildCacheControl, aP as buildClientHints, aQ as buildContentDisposition, aR as buildDnsQueryUrl, aS as buildGeoUrl, aT as buildHsts, aU as buildLinkHeader, aV as buildMapUrl, aW as buildPermissionsPolicy, aX as buildPreferHeader, aY as buildPriorityHeader, aZ as buildRangeHeader, a_ as buildReferrerPolicy, a$ as buildRetryAfterHeader, b0 as buildRobotsMetaTag, b1 as buildVaryHeader, b2 as buildXContentTypeOptionsHeader, b3 as buildXRobotsTag, b4 as checkSetCookieHeader, b5 as countryCodeToFlag, b6 as extractMultipartBoundary, b7 as formatCoordinates, b8 as formatTtl, b9 as getByCategory, ba as getHeader, bb as getHeadersByCategory, bc as getStatusByCategory, bd as getStatusCode, be as isClientError, bf as isServerError, bg as isSuccess, bh as isValidIp, bi as isValidIpv4, bj as isValidIpv6, bk as listCloseCodes, bl as listOpcodes, bm as lookupCloseCode, bn as lookupOpcode, bo as parseAcceptLanguage, bp as parseClientHintHeaders, bq as parseContentDisposition, br as parseContentRangeHeader, bs as parseDnsResponse, bt as parseGeoResponse, bu as parseHar, bv as parseHsts, bw as parseIpv6Address, bx as parseMultipartFormData, by as parsePermissionsPolicy, bz as parsePreferHeader, bA as parsePriorityHeader, bB as parseRetryAfterHeader, bC as parseRobotsMetaTag, bD as parseUserAgent, bE as parseVaryHeader, bF as parseXContentTypeOptionsHeader, bG as parseXRobotsTag, bH as searchHeaders, bI as searchStatusCodes, bJ as splitSitemap, bK as statusCodeToText, bL as typeNumberToLabel, bM as validateDomain, bN as validateHeaderName, bO as validateHeaderValue, bP as validateManifest, bQ as validateRobotsTxt, bR as validateSitemap } from '../network-BmqYmfqY.js';
|
package/dist/tools/network.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-
|
|
1
|
+
export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-ACGCCOCK.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilix-tech/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.0",
|
|
4
4
|
"description": "154+ developer utility tools for Node.js: JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
|
|
5
5
|
"author": "Utilix <hello@utilix.tech>",
|
|
6
6
|
"license": "MIT",
|