@utilix-tech/sdk 0.92.0 → 0.94.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 +17 -2
- package/dist/{chunk-K3B4JTHN.js → chunk-K242OOF4.js} +111 -1
- package/dist/{chunk-KYBI62YY.js → chunk-KRPIOHJ4.js} +207 -1
- package/dist/{code-DvJYYTea.d.cts → code-CZHElFHu.d.cts} +69 -2
- package/dist/{code-DvJYYTea.d.ts → code-CZHElFHu.d.ts} +69 -2
- package/dist/index.cjs +316 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{network-9j5aKpoR.d.cts → network-B6fQrsCc.d.cts} +47 -2
- package/dist/{network-9j5aKpoR.d.ts → network-B6fQrsCc.d.ts} +47 -2
- package/dist/tools/code.cjs +206 -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 +110 -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 +2 -2
package/dist/tools/network.cjs
CHANGED
|
@@ -3624,6 +3624,114 @@ function parseClearSiteData(raw) {
|
|
|
3624
3624
|
}
|
|
3625
3625
|
return buildClearSiteData(directives);
|
|
3626
3626
|
}
|
|
3627
|
+
var ALT_SVC_DEFAULT_MAX_AGE = 86400;
|
|
3628
|
+
var ALT_SVC_DEPRECATED_H3_DRAFTS = /* @__PURE__ */ new Set(["h3-29", "h3-27", "h3-25", "h3-24", "h3-23", "h3-22"]);
|
|
3629
|
+
var ALT_SVC_PROTOCOL_NOTES = {
|
|
3630
|
+
"h3": "HTTP/3 over QUIC, the current protocol ID clients should be offered.",
|
|
3631
|
+
"h3-29": 'An outdated HTTP/3 draft version (draft-29); modern clients only match "h3".',
|
|
3632
|
+
"h3-27": 'An outdated HTTP/3 draft version (draft-27); modern clients only match "h3".',
|
|
3633
|
+
"h3-25": 'An outdated HTTP/3 draft version (draft-25); modern clients only match "h3".',
|
|
3634
|
+
"h2": "HTTP/2 over TLS.",
|
|
3635
|
+
"h2c": "HTTP/2 over cleartext TCP; rarely advertised via Alt-Svc since it needs an out-of-band upgrade rather than ALPN negotiation.",
|
|
3636
|
+
"http/1.1": "Plain HTTP/1.1; advertising it via Alt-Svc is unusual since it is already the universal fallback."
|
|
3637
|
+
};
|
|
3638
|
+
function buildAltSvcHeader(alternatives) {
|
|
3639
|
+
if (!Array.isArray(alternatives) || alternatives.length === 0) {
|
|
3640
|
+
return { error: "At least one alternative service is required" };
|
|
3641
|
+
}
|
|
3642
|
+
const warnings = [];
|
|
3643
|
+
const entries = [];
|
|
3644
|
+
const seen = /* @__PURE__ */ new Set();
|
|
3645
|
+
for (const alt of alternatives) {
|
|
3646
|
+
const protocolId = typeof alt.protocolId === "string" ? alt.protocolId.trim() : "";
|
|
3647
|
+
if (!protocolId) return { error: 'Each alternative needs a protocol-id (e.g. "h3")' };
|
|
3648
|
+
if (!Number.isInteger(alt.port) || alt.port < 1 || alt.port > 65535) {
|
|
3649
|
+
return { error: `Each alternative needs a valid port (1-65535), got ${JSON.stringify(alt.port)}` };
|
|
3650
|
+
}
|
|
3651
|
+
const host = alt.host?.trim();
|
|
3652
|
+
const authority = `${host ?? ""}:${alt.port}`;
|
|
3653
|
+
const maxAge = alt.maxAge !== void 0 ? alt.maxAge : ALT_SVC_DEFAULT_MAX_AGE;
|
|
3654
|
+
if (!Number.isFinite(maxAge) || maxAge < 0) return { error: "maxAge must be a non-negative number of seconds" };
|
|
3655
|
+
const persist = alt.persist === true;
|
|
3656
|
+
const dedupeKey = `${protocolId.toLowerCase()}|${authority.toLowerCase()}`;
|
|
3657
|
+
if (seen.has(dedupeKey)) {
|
|
3658
|
+
warnings.push(`duplicate alternative "${protocolId}=${JSON.stringify(authority)}" was removed`);
|
|
3659
|
+
continue;
|
|
3660
|
+
}
|
|
3661
|
+
seen.add(dedupeKey);
|
|
3662
|
+
if (maxAge === 0) warnings.push(`"${protocolId}" has ma=0, so clients should treat it as already expired`);
|
|
3663
|
+
if (persist && maxAge === 0) warnings.push(`"${protocolId}" sets persist=1 with ma=0, which is contradictory: the entry expires immediately`);
|
|
3664
|
+
if (ALT_SVC_DEPRECATED_H3_DRAFTS.has(protocolId.toLowerCase())) {
|
|
3665
|
+
warnings.push(`"${protocolId}" is an outdated HTTP/3 draft protocol-id; modern clients only match "h3"`);
|
|
3666
|
+
}
|
|
3667
|
+
const note = ALT_SVC_PROTOCOL_NOTES[protocolId.toLowerCase()] ?? `Advertises "${protocolId}" as an alternative protocol clients may switch to for this authority.`;
|
|
3668
|
+
entries.push({ protocolId, authority, maxAge, persist, note });
|
|
3669
|
+
}
|
|
3670
|
+
if (entries.length === 0) return { error: "At least one alternative service is required" };
|
|
3671
|
+
const headerValue = entries.map((e) => {
|
|
3672
|
+
let s = `${e.protocolId}="${e.authority}"; ma=${e.maxAge}`;
|
|
3673
|
+
if (e.persist) s += "; persist=1";
|
|
3674
|
+
return s;
|
|
3675
|
+
}).join(", ");
|
|
3676
|
+
return { header: `Alt-Svc: ${headerValue}`, headerValue, entries, cleared: false, warnings };
|
|
3677
|
+
}
|
|
3678
|
+
function altSvcSplitTopLevel(s, sep) {
|
|
3679
|
+
const out = [];
|
|
3680
|
+
let inQuotes = false;
|
|
3681
|
+
let current = "";
|
|
3682
|
+
for (const ch of s) {
|
|
3683
|
+
if (ch === '"') inQuotes = !inQuotes;
|
|
3684
|
+
if (ch === sep && !inQuotes) {
|
|
3685
|
+
out.push(current);
|
|
3686
|
+
current = "";
|
|
3687
|
+
} else {
|
|
3688
|
+
current += ch;
|
|
3689
|
+
}
|
|
3690
|
+
}
|
|
3691
|
+
out.push(current);
|
|
3692
|
+
return out;
|
|
3693
|
+
}
|
|
3694
|
+
function parseAltSvcHeader(raw) {
|
|
3695
|
+
if (!raw || raw.trim() === "") return { error: "Input is empty" };
|
|
3696
|
+
const withoutLabel = raw.trim().replace(/^alt-svc:\s*/i, "");
|
|
3697
|
+
if (withoutLabel.toLowerCase() === "clear") {
|
|
3698
|
+
return { header: "Alt-Svc: clear", headerValue: "clear", entries: [], cleared: true, warnings: [] };
|
|
3699
|
+
}
|
|
3700
|
+
const parts = altSvcSplitTopLevel(withoutLabel, ",");
|
|
3701
|
+
const alternatives = [];
|
|
3702
|
+
for (const part of parts) {
|
|
3703
|
+
const trimmedPart = part.trim();
|
|
3704
|
+
if (!trimmedPart) continue;
|
|
3705
|
+
const eq = trimmedPart.indexOf("=");
|
|
3706
|
+
if (eq === -1) return { error: `Could not parse alternative: "${trimmedPart}"` };
|
|
3707
|
+
const protocolId = trimmedPart.slice(0, eq).trim();
|
|
3708
|
+
const rest = trimmedPart.slice(eq + 1).trim();
|
|
3709
|
+
const segments = altSvcSplitTopLevel(rest, ";").map((s) => s.trim());
|
|
3710
|
+
const authorityMatch = segments[0]?.match(/^"(.*)"$/);
|
|
3711
|
+
if (!authorityMatch) return { error: `Alternative "${protocolId}" is missing a quoted authority (e.g. ":443")` };
|
|
3712
|
+
const authority = authorityMatch[1];
|
|
3713
|
+
const colonIdx = authority.lastIndexOf(":");
|
|
3714
|
+
if (colonIdx === -1) return { error: `Alternative "${protocolId}" has an authority with no port: "${authority}"` };
|
|
3715
|
+
const host = authority.slice(0, colonIdx) || void 0;
|
|
3716
|
+
const portStr = authority.slice(colonIdx + 1);
|
|
3717
|
+
const port = Number(portStr);
|
|
3718
|
+
if (!Number.isInteger(port) || port < 1 || port > 65535) return { error: `Alternative "${protocolId}" has an invalid port: "${portStr}"` };
|
|
3719
|
+
let maxAge;
|
|
3720
|
+
let persist = false;
|
|
3721
|
+
for (const seg of segments.slice(1)) {
|
|
3722
|
+
const sepIdx = seg.indexOf("=");
|
|
3723
|
+
if (sepIdx === -1) continue;
|
|
3724
|
+
const key = seg.slice(0, sepIdx).trim().toLowerCase();
|
|
3725
|
+
const value = seg.slice(sepIdx + 1).trim();
|
|
3726
|
+
if (key === "ma") maxAge = Number(value);
|
|
3727
|
+
if (key === "persist") persist = value === "1";
|
|
3728
|
+
}
|
|
3729
|
+
if (maxAge !== void 0 && !Number.isFinite(maxAge)) return { error: `Alternative "${protocolId}" has a non-numeric ma value` };
|
|
3730
|
+
alternatives.push({ protocolId, host, port, maxAge, persist });
|
|
3731
|
+
}
|
|
3732
|
+
if (alternatives.length === 0) return { error: "No alternative services found" };
|
|
3733
|
+
return buildAltSvcHeader(alternatives);
|
|
3734
|
+
}
|
|
3627
3735
|
|
|
3628
3736
|
exports.CLIENT_HINTS = CLIENT_HINTS;
|
|
3629
3737
|
exports.DNS_RECORD_TYPES = DNS_RECORD_TYPES;
|
|
@@ -3636,6 +3744,7 @@ exports.X_CONTENT_TYPE_OPTIONS_HEADER = X_CONTENT_TYPE_OPTIONS_HEADER;
|
|
|
3636
3744
|
exports.analyzeEmailHeaders = analyzeEmailHeaders;
|
|
3637
3745
|
exports.assessContentTypeRisk = assessContentTypeRisk;
|
|
3638
3746
|
exports.buildAcceptLanguage = buildAcceptLanguage;
|
|
3747
|
+
exports.buildAltSvcHeader = buildAltSvcHeader;
|
|
3639
3748
|
exports.buildCacheControl = buildCacheControl;
|
|
3640
3749
|
exports.buildClearSiteData = buildClearSiteData;
|
|
3641
3750
|
exports.buildClientHints = buildClientHints;
|
|
@@ -3678,6 +3787,7 @@ exports.listOpcodes = listOpcodes;
|
|
|
3678
3787
|
exports.lookupCloseCode = lookupCloseCode;
|
|
3679
3788
|
exports.lookupOpcode = lookupOpcode;
|
|
3680
3789
|
exports.parseAcceptLanguage = parseAcceptLanguage;
|
|
3790
|
+
exports.parseAltSvcHeader = parseAltSvcHeader;
|
|
3681
3791
|
exports.parseClearSiteData = parseClearSiteData;
|
|
3682
3792
|
exports.parseClientHintHeaders = parseClientHintHeaders;
|
|
3683
3793
|
exports.parseContentDisposition = parseContentDisposition;
|
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,
|
|
1
|
+
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AltSvcAlternative, c as AltSvcEntry, d as AltSvcResult, e as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, f as CacheControlDirective, g as CacheControlOptions, h as CacheControlResult, i as ClearSiteDataDirective, j as ClearSiteDataResult, k as ClientHintDef, l as ClientHintValueType, m as ClientHintsBuildResult, o as ClientHintsParseResult, p as CloseCodeInfo, q as CloseCodeRange, r as ContentDispositionBuildOptions, s as ContentDispositionBuildResult, t as ContentDispositionParseResult, u as ContentRangeResult, v as ContentTypeRiskResult, w as ContentTypeSniffRisk, x as CookieAttributes, y as CookieCheckResult, z as CookieSizeBudgetResult, D as CookieSizeEntry, E as DNS_RECORD_TYPES, F as DnsRecord, G as DnsRecordType, H as DnsResponse, I as EmailHeaderAnalysis, J as EmailHeaderField, K as GeoResult, L as HTTP_HEADERS, M as HarEntry, N as HarParseResult, O as HarSummary, P as HeaderCategory, Q as HstsOptions, R as HstsResult, S as HttpHeader, T as Ipv6AddressType, U as Ipv6ParseResult, V as LINK_REL_VALUES, W as LinkHeaderEntry, X as LinkHeaderEntryInput, Y as LinkHeaderResult, Z as LinkRel, _ as ManifestIconInfo, $ as ManifestIssue, a0 as ManifestValidationResult, a1 as MultipartParseResult, a2 as MultipartPart, a3 as OpcodeCategory, a4 as OpcodeInfo, a5 as PERMISSIONS_POLICY_FEATURES, a6 as ParsedClientHint, a7 as ParsedDnsResult, a8 as ParsedGeoResult, a9 as PermissionsPolicyDirective, aa as PermissionsPolicyFeatureInput, ab as PermissionsPolicyResult, ac as PreferParameter, ad as PreferPreference, ae as PreferResult, af as PriorityResult, ag as REFERRER_POLICY_VALUES, ah as RangeEntry, ai as RangeEntryInput, aj as RangeHeaderResult, ak as ReceivedHop, al as ReferrerPolicyEntry, am as ReferrerPolicyResult, an as ReferrerPolicyValue, ao as RetryAfterDateResult, ap as RetryAfterResult, aq as RetryAfterSecondsResult, ar as RobotsGenerateGroup, as as RobotsGenerateOptions, at as RobotsGroup, au as RobotsIssue, av as RobotsMetaTagFlag, aw as RobotsMetaTagOptions, ax as RobotsMetaTagResult, ay as RobotsRule, az as RobotsValidationResult, aA as STATUS_CODES, aB as SameSiteValue, aC as SecurityHeaderCheck, aD as SecurityHeaderStatus, aE as SecurityHeadersScorecard, aF as SitemapIndexEntry, aG as SitemapIssue, aH as SitemapSplitFile, aI as SitemapUrlEntry, aJ as SitemapValidationResult, aK as SplitSitemapOptions, aL as SplitSitemapResult, aM as StatusCode, aN as UaDeviceType, aO as UserAgentInfo, aP as VaryHeaderEntry, aQ as VaryHeaderResult, aR as XContentTypeOptionsHeader, aS as XContentTypeOptionsParseResult, aT as XRobotsTagFlag, aU as XRobotsTagOptions, aV as XRobotsTagResult, aW as X_CONTENT_TYPE_OPTIONS_HEADER, aX as analyzeEmailHeaders, aY as assessContentTypeRisk, aZ as buildAcceptLanguage, a_ as buildAltSvcHeader, a$ as buildCacheControl, b0 as buildClearSiteData, b1 as buildClientHints, b2 as buildContentDisposition, b3 as buildDnsQueryUrl, b4 as buildGeoUrl, b5 as buildHsts, b6 as buildLinkHeader, b7 as buildMapUrl, b8 as buildPermissionsPolicy, b9 as buildPreferHeader, ba as buildPriorityHeader, bb as buildRangeHeader, bc as buildReferrerPolicy, bd as buildRetryAfterHeader, be as buildRobotsMetaTag, bf as buildVaryHeader, bg as buildXContentTypeOptionsHeader, bh as buildXRobotsTag, bi as calculateCookieSizeBudget, bj as checkSetCookieHeader, bk as countryCodeToFlag, bl as extractMultipartBoundary, bm as formatCoordinates, bn as formatTtl, bo as generateRobotsTxt, bp as getByCategory, bq as getHeader, br as getHeadersByCategory, bs as getStatusByCategory, bt as getStatusCode, bu as isClientError, bv as isServerError, bw as isSuccess, bx as isValidIp, by as isValidIpv4, bz as isValidIpv6, bA as listCloseCodes, bB as listOpcodes, bC as lookupCloseCode, bD as lookupOpcode, bE as parseAcceptLanguage, bF as parseAltSvcHeader, bG as parseClearSiteData, bH as parseClientHintHeaders, bI as parseContentDisposition, bJ as parseContentRangeHeader, bK as parseDnsResponse, bL as parseGeoResponse, bM as parseHar, bN as parseHsts, bO as parseIpv6Address, bP as parseMultipartFormData, bQ as parsePermissionsPolicy, bR as parsePreferHeader, bS as parsePriorityHeader, bT as parseRetryAfterHeader, bU as parseRobotsMetaTag, bV as parseUserAgent, bW as parseVaryHeader, bX as parseXContentTypeOptionsHeader, bY as parseXRobotsTag, bZ as scoreSecurityHeaders, b_ as searchHeaders, b$ as searchStatusCodes, c0 as splitSitemap, c1 as statusCodeToText, c2 as typeNumberToLabel, c3 as validateDomain, c4 as validateHeaderName, c5 as validateHeaderValue, c6 as validateManifest, c7 as validateRobotsTxt, c8 as validateSitemap } from '../network-B6fQrsCc.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,
|
|
1
|
+
export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AltSvcAlternative, c as AltSvcEntry, d as AltSvcResult, e as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, f as CacheControlDirective, g as CacheControlOptions, h as CacheControlResult, i as ClearSiteDataDirective, j as ClearSiteDataResult, k as ClientHintDef, l as ClientHintValueType, m as ClientHintsBuildResult, o as ClientHintsParseResult, p as CloseCodeInfo, q as CloseCodeRange, r as ContentDispositionBuildOptions, s as ContentDispositionBuildResult, t as ContentDispositionParseResult, u as ContentRangeResult, v as ContentTypeRiskResult, w as ContentTypeSniffRisk, x as CookieAttributes, y as CookieCheckResult, z as CookieSizeBudgetResult, D as CookieSizeEntry, E as DNS_RECORD_TYPES, F as DnsRecord, G as DnsRecordType, H as DnsResponse, I as EmailHeaderAnalysis, J as EmailHeaderField, K as GeoResult, L as HTTP_HEADERS, M as HarEntry, N as HarParseResult, O as HarSummary, P as HeaderCategory, Q as HstsOptions, R as HstsResult, S as HttpHeader, T as Ipv6AddressType, U as Ipv6ParseResult, V as LINK_REL_VALUES, W as LinkHeaderEntry, X as LinkHeaderEntryInput, Y as LinkHeaderResult, Z as LinkRel, _ as ManifestIconInfo, $ as ManifestIssue, a0 as ManifestValidationResult, a1 as MultipartParseResult, a2 as MultipartPart, a3 as OpcodeCategory, a4 as OpcodeInfo, a5 as PERMISSIONS_POLICY_FEATURES, a6 as ParsedClientHint, a7 as ParsedDnsResult, a8 as ParsedGeoResult, a9 as PermissionsPolicyDirective, aa as PermissionsPolicyFeatureInput, ab as PermissionsPolicyResult, ac as PreferParameter, ad as PreferPreference, ae as PreferResult, af as PriorityResult, ag as REFERRER_POLICY_VALUES, ah as RangeEntry, ai as RangeEntryInput, aj as RangeHeaderResult, ak as ReceivedHop, al as ReferrerPolicyEntry, am as ReferrerPolicyResult, an as ReferrerPolicyValue, ao as RetryAfterDateResult, ap as RetryAfterResult, aq as RetryAfterSecondsResult, ar as RobotsGenerateGroup, as as RobotsGenerateOptions, at as RobotsGroup, au as RobotsIssue, av as RobotsMetaTagFlag, aw as RobotsMetaTagOptions, ax as RobotsMetaTagResult, ay as RobotsRule, az as RobotsValidationResult, aA as STATUS_CODES, aB as SameSiteValue, aC as SecurityHeaderCheck, aD as SecurityHeaderStatus, aE as SecurityHeadersScorecard, aF as SitemapIndexEntry, aG as SitemapIssue, aH as SitemapSplitFile, aI as SitemapUrlEntry, aJ as SitemapValidationResult, aK as SplitSitemapOptions, aL as SplitSitemapResult, aM as StatusCode, aN as UaDeviceType, aO as UserAgentInfo, aP as VaryHeaderEntry, aQ as VaryHeaderResult, aR as XContentTypeOptionsHeader, aS as XContentTypeOptionsParseResult, aT as XRobotsTagFlag, aU as XRobotsTagOptions, aV as XRobotsTagResult, aW as X_CONTENT_TYPE_OPTIONS_HEADER, aX as analyzeEmailHeaders, aY as assessContentTypeRisk, aZ as buildAcceptLanguage, a_ as buildAltSvcHeader, a$ as buildCacheControl, b0 as buildClearSiteData, b1 as buildClientHints, b2 as buildContentDisposition, b3 as buildDnsQueryUrl, b4 as buildGeoUrl, b5 as buildHsts, b6 as buildLinkHeader, b7 as buildMapUrl, b8 as buildPermissionsPolicy, b9 as buildPreferHeader, ba as buildPriorityHeader, bb as buildRangeHeader, bc as buildReferrerPolicy, bd as buildRetryAfterHeader, be as buildRobotsMetaTag, bf as buildVaryHeader, bg as buildXContentTypeOptionsHeader, bh as buildXRobotsTag, bi as calculateCookieSizeBudget, bj as checkSetCookieHeader, bk as countryCodeToFlag, bl as extractMultipartBoundary, bm as formatCoordinates, bn as formatTtl, bo as generateRobotsTxt, bp as getByCategory, bq as getHeader, br as getHeadersByCategory, bs as getStatusByCategory, bt as getStatusCode, bu as isClientError, bv as isServerError, bw as isSuccess, bx as isValidIp, by as isValidIpv4, bz as isValidIpv6, bA as listCloseCodes, bB as listOpcodes, bC as lookupCloseCode, bD as lookupOpcode, bE as parseAcceptLanguage, bF as parseAltSvcHeader, bG as parseClearSiteData, bH as parseClientHintHeaders, bI as parseContentDisposition, bJ as parseContentRangeHeader, bK as parseDnsResponse, bL as parseGeoResponse, bM as parseHar, bN as parseHsts, bO as parseIpv6Address, bP as parseMultipartFormData, bQ as parsePermissionsPolicy, bR as parsePreferHeader, bS as parsePriorityHeader, bT as parseRetryAfterHeader, bU as parseRobotsMetaTag, bV as parseUserAgent, bW as parseVaryHeader, bX as parseXContentTypeOptionsHeader, bY as parseXRobotsTag, bZ as scoreSecurityHeaders, b_ as searchHeaders, b$ as searchStatusCodes, c0 as splitSitemap, c1 as statusCodeToText, c2 as typeNumberToLabel, c3 as validateDomain, c4 as validateHeaderName, c5 as validateHeaderValue, c6 as validateManifest, c7 as validateRobotsTxt, c8 as validateSitemap } from '../network-B6fQrsCc.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, buildClearSiteData, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, calculateCookieSizeBudget, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, generateRobotsTxt, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseClearSiteData, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, scoreSecurityHeaders, 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, buildAltSvcHeader, buildCacheControl, buildClearSiteData, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildHsts, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildRobotsMetaTag, buildVaryHeader, buildXContentTypeOptionsHeader, buildXRobotsTag, calculateCookieSizeBudget, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, generateRobotsTxt, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, listOpcodes, lookupCloseCode, lookupOpcode, parseAcceptLanguage, parseAltSvcHeader, parseClearSiteData, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseHsts, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseRobotsMetaTag, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, parseXRobotsTag, scoreSecurityHeaders, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-K242OOF4.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilix-tech/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.94.0",
|
|
4
|
+
"description": "738 developer utility functions 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",
|
|
7
7
|
"homepage": "https://www.utilix.tech/docs#node-sdk",
|