@utilix-tech/sdk 0.34.0 → 0.36.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 +19 -6
- package/dist/{chunk-ZPQOE7KD.js → chunk-7AJRK57W.js} +29 -1
- package/dist/{chunk-H2USEUHD.js → chunk-F2CEN226.js} +306 -1
- package/dist/{chunk-3YUKLV5N.js → chunk-UTHAHRQ7.js} +70 -1
- package/dist/index.cjs +402 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{network-DfY5Ikvr.d.ts → network-X0EfH9Xq.d.cts} +44 -2
- package/dist/{network-DfY5Ikvr.d.cts → network-X0EfH9Xq.d.ts} +44 -2
- package/dist/{text-CA-zuD0C.d.cts → text-kHkT9VtT.d.cts} +34 -2
- package/dist/{text-CA-zuD0C.d.ts → text-kHkT9VtT.d.ts} +34 -2
- package/dist/tools/network.cjs +69 -0
- package/dist/tools/network.d.cts +1 -1
- package/dist/tools/network.d.ts +1 -1
- package/dist/tools/network.js +1 -1
- package/dist/tools/text.cjs +305 -0
- package/dist/tools/text.d.cts +1 -1
- package/dist/tools/text.d.ts +1 -1
- package/dist/tools/text.js +1 -1
- package/dist/tools/units.cjs +28 -0
- package/dist/tools/units.d.cts +1 -1
- package/dist/tools/units.d.ts +1 -1
- package/dist/tools/units.js +1 -1
- package/dist/{units-BhoxdHhs.d.ts → units-c90DW-OZ.d.cts} +30 -2
- package/dist/{units-BhoxdHhs.d.cts → units-c90DW-OZ.d.ts} +30 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { j as json } from './json-Ta9JykSB.cjs';
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.cjs';
|
|
3
3
|
export { h as hashing } from './hashing-CnetQFD_.cjs';
|
|
4
|
-
export { t as text } from './text-
|
|
4
|
+
export { t as text } from './text-kHkT9VtT.cjs';
|
|
5
5
|
export { d as data } from './data-CFeS9kes.cjs';
|
|
6
6
|
export { g as generators } from './generators-Du8cBesn.cjs';
|
|
7
7
|
export { t as time } from './time-KqJjdqII.cjs';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-c90DW-OZ.cjs';
|
|
9
|
+
export { n as network } from './network-X0EfH9Xq.cjs';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.cjs';
|
|
11
11
|
export { c as code } from './code-BK-x8hVx.cjs';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { j as json } from './json-Ta9JykSB.js';
|
|
2
2
|
export { e as encoding } from './encoding-Dk3wpmb3.js';
|
|
3
3
|
export { h as hashing } from './hashing-CnetQFD_.js';
|
|
4
|
-
export { t as text } from './text-
|
|
4
|
+
export { t as text } from './text-kHkT9VtT.js';
|
|
5
5
|
export { d as data } from './data-CFeS9kes.js';
|
|
6
6
|
export { g as generators } from './generators-Du8cBesn.js';
|
|
7
7
|
export { t as time } from './time-KqJjdqII.js';
|
|
8
|
-
export { u as units } from './units-
|
|
9
|
-
export { n as network } from './network-
|
|
8
|
+
export { u as units } from './units-c90DW-OZ.js';
|
|
9
|
+
export { n as network } from './network-X0EfH9Xq.js';
|
|
10
10
|
export { a as api } from './api-DmTNE4c1.js';
|
|
11
11
|
export { c as code } from './code-BK-x8hVx.js';
|
|
12
12
|
export { c as color } from './color-tPwZCr9H.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { media_exports as media } from './chunk-L6V4W4SU.js';
|
|
2
|
-
export { units_exports as units } from './chunk-
|
|
3
|
-
export { network_exports as network } from './chunk-
|
|
2
|
+
export { units_exports as units } from './chunk-7AJRK57W.js';
|
|
3
|
+
export { network_exports as network } from './chunk-UTHAHRQ7.js';
|
|
4
4
|
export { api_exports as api } from './chunk-52ZDKSIX.js';
|
|
5
5
|
export { code_exports as code } from './chunk-UUT5HNST.js';
|
|
6
6
|
export { color_exports as color } from './chunk-BPVAB4P2.js';
|
|
@@ -10,7 +10,7 @@ export { ai_agent_exports as ai_agent } from './chunk-W3J7GZVQ.js';
|
|
|
10
10
|
export { json_exports as json } from './chunk-WVEKRKGU.js';
|
|
11
11
|
export { encoding_exports as encoding } from './chunk-DOWQZUTP.js';
|
|
12
12
|
export { hashing_exports as hashing } from './chunk-GEFVMGZR.js';
|
|
13
|
-
export { text_exports as text } from './chunk-
|
|
13
|
+
export { text_exports as text } from './chunk-F2CEN226.js';
|
|
14
14
|
export { data_exports as data } from './chunk-YEXQDI3J.js';
|
|
15
15
|
export { generators_exports as generators } from './chunk-3TYWIX3B.js';
|
|
16
16
|
export { time_exports as time } from './chunk-IEPWZERQ.js';
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* - cache-control-builder: buildCacheControl
|
|
15
15
|
* - referrer-policy-builder: buildReferrerPolicy
|
|
16
16
|
* - ipv6-compressor: parseIpv6Address
|
|
17
|
+
* - link-header-builder: buildLinkHeader
|
|
17
18
|
*/
|
|
18
19
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
19
20
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -319,6 +320,41 @@ declare const REFERRER_POLICY_VALUES: ReferrerPolicyValue[];
|
|
|
319
320
|
declare function buildReferrerPolicy(policies: string | string[]): ReferrerPolicyResult | {
|
|
320
321
|
error: string;
|
|
321
322
|
};
|
|
323
|
+
type LinkRel = 'preload' | 'preconnect' | 'prefetch' | 'prerender' | 'dns-prefetch' | 'canonical' | 'next' | 'prev' | 'alternate' | 'stylesheet' | 'icon' | 'modulepreload';
|
|
324
|
+
interface LinkHeaderEntryInput {
|
|
325
|
+
url: string;
|
|
326
|
+
rel: string;
|
|
327
|
+
as?: string;
|
|
328
|
+
type?: string;
|
|
329
|
+
crossorigin?: boolean;
|
|
330
|
+
}
|
|
331
|
+
interface LinkHeaderEntry {
|
|
332
|
+
url: string;
|
|
333
|
+
rel: string;
|
|
334
|
+
as?: string;
|
|
335
|
+
type?: string;
|
|
336
|
+
crossorigin?: boolean;
|
|
337
|
+
value: string;
|
|
338
|
+
explanation: string;
|
|
339
|
+
}
|
|
340
|
+
interface LinkHeaderResult {
|
|
341
|
+
header: string;
|
|
342
|
+
headerName: 'Link';
|
|
343
|
+
snippet: string;
|
|
344
|
+
links: LinkHeaderEntry[];
|
|
345
|
+
warnings: string[];
|
|
346
|
+
}
|
|
347
|
+
declare const LINK_REL_VALUES: LinkRel[];
|
|
348
|
+
/**
|
|
349
|
+
* Build an HTTP `Link` response header from a list of URL/rel pairs (preload,
|
|
350
|
+
* preconnect, prefetch, canonical, pagination, etc.), including the `as`/
|
|
351
|
+
* `type`/`crossorigin` attributes preload needs, plus a plain-English
|
|
352
|
+
* explanation of each entry's effect. Pure string assembly and lookup; it
|
|
353
|
+
* never fetches or validates that a URL actually exists.
|
|
354
|
+
*/
|
|
355
|
+
declare function buildLinkHeader(links: LinkHeaderEntryInput[]): LinkHeaderResult | {
|
|
356
|
+
error: string;
|
|
357
|
+
};
|
|
322
358
|
type Ipv6AddressType = 'unspecified' | 'loopback' | 'link-local' | 'unique-local' | 'multicast' | 'ipv4-mapped' | 'documentation' | 'global-unicast';
|
|
323
359
|
interface Ipv6ParseResult {
|
|
324
360
|
expanded: string;
|
|
@@ -353,6 +389,11 @@ type network_HeaderCategory = HeaderCategory;
|
|
|
353
389
|
type network_HttpHeader = HttpHeader;
|
|
354
390
|
type network_Ipv6AddressType = Ipv6AddressType;
|
|
355
391
|
type network_Ipv6ParseResult = Ipv6ParseResult;
|
|
392
|
+
declare const network_LINK_REL_VALUES: typeof LINK_REL_VALUES;
|
|
393
|
+
type network_LinkHeaderEntry = LinkHeaderEntry;
|
|
394
|
+
type network_LinkHeaderEntryInput = LinkHeaderEntryInput;
|
|
395
|
+
type network_LinkHeaderResult = LinkHeaderResult;
|
|
396
|
+
type network_LinkRel = LinkRel;
|
|
356
397
|
type network_ParsedDnsResult = ParsedDnsResult;
|
|
357
398
|
type network_ParsedGeoResult = ParsedGeoResult;
|
|
358
399
|
declare const network_REFERRER_POLICY_VALUES: typeof REFERRER_POLICY_VALUES;
|
|
@@ -374,6 +415,7 @@ type network_UserAgentInfo = UserAgentInfo;
|
|
|
374
415
|
declare const network_buildCacheControl: typeof buildCacheControl;
|
|
375
416
|
declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
|
|
376
417
|
declare const network_buildGeoUrl: typeof buildGeoUrl;
|
|
418
|
+
declare const network_buildLinkHeader: typeof buildLinkHeader;
|
|
377
419
|
declare const network_buildMapUrl: typeof buildMapUrl;
|
|
378
420
|
declare const network_buildReferrerPolicy: typeof buildReferrerPolicy;
|
|
379
421
|
declare const network_countryCodeToFlag: typeof countryCodeToFlag;
|
|
@@ -405,7 +447,7 @@ declare const network_validateHeaderValue: typeof validateHeaderValue;
|
|
|
405
447
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
406
448
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
407
449
|
declare namespace network {
|
|
408
|
-
export { type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, 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_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, network_buildCacheControl as buildCacheControl, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildMapUrl as buildMapUrl, network_buildReferrerPolicy as buildReferrerPolicy, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parseUserAgent as parseUserAgent, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
450
|
+
export { type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, 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_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, network_buildCacheControl as buildCacheControl, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildReferrerPolicy as buildReferrerPolicy, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parseUserAgent as parseUserAgent, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
409
451
|
}
|
|
410
452
|
|
|
411
|
-
export {
|
|
453
|
+
export { getStatusCode as $, type SitemapUrlEntry as A, type SitemapValidationResult as B, type CacheControlDirective as C, DNS_RECORD_TYPES as D, type StatusCode as E, type UserAgentInfo as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, buildCacheControl as J, buildDnsQueryUrl as K, LINK_REL_VALUES as L, buildGeoUrl as M, buildLinkHeader as N, buildMapUrl as O, type ParsedDnsResult as P, buildReferrerPolicy as Q, REFERRER_POLICY_VALUES as R, STATUS_CODES as S, countryCodeToFlag as T, type UaDeviceType as U, formatCoordinates as V, formatTtl as W, getByCategory as X, getHeader as Y, getHeadersByCategory as Z, getStatusByCategory as _, type CacheControlOptions as a, isClientError as a0, isServerError as a1, isSuccess as a2, isValidIp as a3, isValidIpv4 as a4, isValidIpv6 as a5, parseDnsResponse as a6, parseGeoResponse as a7, parseHar as a8, parseIpv6Address as a9, parseUserAgent as aa, searchHeaders as ab, searchStatusCodes as ac, statusCodeToText as ad, typeNumberToLabel as ae, validateDomain as af, validateHeaderName as ag, validateHeaderValue as ah, validateRobotsTxt as ai, validateSitemap as aj, type CacheControlResult as b, type DnsRecord as c, type DnsRecordType as d, type DnsResponse as e, type HarEntry as f, type HarParseResult as g, type HarSummary as h, type HeaderCategory as i, type HttpHeader as j, type Ipv6ParseResult as k, type LinkHeaderEntry as l, type LinkHeaderEntryInput as m, network as n, type LinkHeaderResult as o, type LinkRel as p, type ParsedGeoResult as q, type ReferrerPolicyEntry as r, type ReferrerPolicyResult as s, type ReferrerPolicyValue as t, type RobotsGroup as u, type RobotsIssue as v, type RobotsRule as w, type RobotsValidationResult as x, type SitemapIndexEntry as y, type SitemapIssue as z };
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* - cache-control-builder: buildCacheControl
|
|
15
15
|
* - referrer-policy-builder: buildReferrerPolicy
|
|
16
16
|
* - ipv6-compressor: parseIpv6Address
|
|
17
|
+
* - link-header-builder: buildLinkHeader
|
|
17
18
|
*/
|
|
18
19
|
declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
|
|
19
20
|
type DnsRecordType = typeof DNS_RECORD_TYPES[number];
|
|
@@ -319,6 +320,41 @@ declare const REFERRER_POLICY_VALUES: ReferrerPolicyValue[];
|
|
|
319
320
|
declare function buildReferrerPolicy(policies: string | string[]): ReferrerPolicyResult | {
|
|
320
321
|
error: string;
|
|
321
322
|
};
|
|
323
|
+
type LinkRel = 'preload' | 'preconnect' | 'prefetch' | 'prerender' | 'dns-prefetch' | 'canonical' | 'next' | 'prev' | 'alternate' | 'stylesheet' | 'icon' | 'modulepreload';
|
|
324
|
+
interface LinkHeaderEntryInput {
|
|
325
|
+
url: string;
|
|
326
|
+
rel: string;
|
|
327
|
+
as?: string;
|
|
328
|
+
type?: string;
|
|
329
|
+
crossorigin?: boolean;
|
|
330
|
+
}
|
|
331
|
+
interface LinkHeaderEntry {
|
|
332
|
+
url: string;
|
|
333
|
+
rel: string;
|
|
334
|
+
as?: string;
|
|
335
|
+
type?: string;
|
|
336
|
+
crossorigin?: boolean;
|
|
337
|
+
value: string;
|
|
338
|
+
explanation: string;
|
|
339
|
+
}
|
|
340
|
+
interface LinkHeaderResult {
|
|
341
|
+
header: string;
|
|
342
|
+
headerName: 'Link';
|
|
343
|
+
snippet: string;
|
|
344
|
+
links: LinkHeaderEntry[];
|
|
345
|
+
warnings: string[];
|
|
346
|
+
}
|
|
347
|
+
declare const LINK_REL_VALUES: LinkRel[];
|
|
348
|
+
/**
|
|
349
|
+
* Build an HTTP `Link` response header from a list of URL/rel pairs (preload,
|
|
350
|
+
* preconnect, prefetch, canonical, pagination, etc.), including the `as`/
|
|
351
|
+
* `type`/`crossorigin` attributes preload needs, plus a plain-English
|
|
352
|
+
* explanation of each entry's effect. Pure string assembly and lookup; it
|
|
353
|
+
* never fetches or validates that a URL actually exists.
|
|
354
|
+
*/
|
|
355
|
+
declare function buildLinkHeader(links: LinkHeaderEntryInput[]): LinkHeaderResult | {
|
|
356
|
+
error: string;
|
|
357
|
+
};
|
|
322
358
|
type Ipv6AddressType = 'unspecified' | 'loopback' | 'link-local' | 'unique-local' | 'multicast' | 'ipv4-mapped' | 'documentation' | 'global-unicast';
|
|
323
359
|
interface Ipv6ParseResult {
|
|
324
360
|
expanded: string;
|
|
@@ -353,6 +389,11 @@ type network_HeaderCategory = HeaderCategory;
|
|
|
353
389
|
type network_HttpHeader = HttpHeader;
|
|
354
390
|
type network_Ipv6AddressType = Ipv6AddressType;
|
|
355
391
|
type network_Ipv6ParseResult = Ipv6ParseResult;
|
|
392
|
+
declare const network_LINK_REL_VALUES: typeof LINK_REL_VALUES;
|
|
393
|
+
type network_LinkHeaderEntry = LinkHeaderEntry;
|
|
394
|
+
type network_LinkHeaderEntryInput = LinkHeaderEntryInput;
|
|
395
|
+
type network_LinkHeaderResult = LinkHeaderResult;
|
|
396
|
+
type network_LinkRel = LinkRel;
|
|
356
397
|
type network_ParsedDnsResult = ParsedDnsResult;
|
|
357
398
|
type network_ParsedGeoResult = ParsedGeoResult;
|
|
358
399
|
declare const network_REFERRER_POLICY_VALUES: typeof REFERRER_POLICY_VALUES;
|
|
@@ -374,6 +415,7 @@ type network_UserAgentInfo = UserAgentInfo;
|
|
|
374
415
|
declare const network_buildCacheControl: typeof buildCacheControl;
|
|
375
416
|
declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
|
|
376
417
|
declare const network_buildGeoUrl: typeof buildGeoUrl;
|
|
418
|
+
declare const network_buildLinkHeader: typeof buildLinkHeader;
|
|
377
419
|
declare const network_buildMapUrl: typeof buildMapUrl;
|
|
378
420
|
declare const network_buildReferrerPolicy: typeof buildReferrerPolicy;
|
|
379
421
|
declare const network_countryCodeToFlag: typeof countryCodeToFlag;
|
|
@@ -405,7 +447,7 @@ declare const network_validateHeaderValue: typeof validateHeaderValue;
|
|
|
405
447
|
declare const network_validateRobotsTxt: typeof validateRobotsTxt;
|
|
406
448
|
declare const network_validateSitemap: typeof validateSitemap;
|
|
407
449
|
declare namespace network {
|
|
408
|
-
export { type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, 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_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, network_buildCacheControl as buildCacheControl, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildMapUrl as buildMapUrl, network_buildReferrerPolicy as buildReferrerPolicy, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parseUserAgent as parseUserAgent, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
450
|
+
export { type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, 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_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, network_buildCacheControl as buildCacheControl, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildReferrerPolicy as buildReferrerPolicy, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parseUserAgent as parseUserAgent, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
|
|
409
451
|
}
|
|
410
452
|
|
|
411
|
-
export {
|
|
453
|
+
export { getStatusCode as $, type SitemapUrlEntry as A, type SitemapValidationResult as B, type CacheControlDirective as C, DNS_RECORD_TYPES as D, type StatusCode as E, type UserAgentInfo as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, buildCacheControl as J, buildDnsQueryUrl as K, LINK_REL_VALUES as L, buildGeoUrl as M, buildLinkHeader as N, buildMapUrl as O, type ParsedDnsResult as P, buildReferrerPolicy as Q, REFERRER_POLICY_VALUES as R, STATUS_CODES as S, countryCodeToFlag as T, type UaDeviceType as U, formatCoordinates as V, formatTtl as W, getByCategory as X, getHeader as Y, getHeadersByCategory as Z, getStatusByCategory as _, type CacheControlOptions as a, isClientError as a0, isServerError as a1, isSuccess as a2, isValidIp as a3, isValidIpv4 as a4, isValidIpv6 as a5, parseDnsResponse as a6, parseGeoResponse as a7, parseHar as a8, parseIpv6Address as a9, parseUserAgent as aa, searchHeaders as ab, searchStatusCodes as ac, statusCodeToText as ad, typeNumberToLabel as ae, validateDomain as af, validateHeaderName as ag, validateHeaderValue as ah, validateRobotsTxt as ai, validateSitemap as aj, type CacheControlResult as b, type DnsRecord as c, type DnsRecordType as d, type DnsResponse as e, type HarEntry as f, type HarParseResult as g, type HarSummary as h, type HeaderCategory as i, type HttpHeader as j, type Ipv6ParseResult as k, type LinkHeaderEntry as l, type LinkHeaderEntryInput as m, network as n, type LinkHeaderResult as o, type LinkRel as p, type ParsedGeoResult as q, type ReferrerPolicyEntry as r, type ReferrerPolicyResult as s, type ReferrerPolicyValue as t, type RobotsGroup as u, type RobotsIssue as v, type RobotsRule as w, type RobotsValidationResult as x, type SitemapIndexEntry as y, type SitemapIssue as z };
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
* - readability-score: scoreReadability
|
|
24
24
|
* - filler-word-detector: detectFillerWords
|
|
25
25
|
* - sentence-length-distribution: analyzeSentenceLengths
|
|
26
|
+
* - emoji-lookup : searchEmoji, getEmojiByShortcode, getEmojiByChar, getEmojiByCategory, getEmojiCategories, EMOJI_TABLE
|
|
26
27
|
*/
|
|
27
28
|
interface WordCountResult {
|
|
28
29
|
words: number;
|
|
@@ -356,6 +357,30 @@ interface SentenceLengthDistribution {
|
|
|
356
357
|
* (e.g. "Dr.") as sentence boundaries.
|
|
357
358
|
*/
|
|
358
359
|
declare function analyzeSentenceLengths(text: string): SentenceLengthDistribution;
|
|
360
|
+
interface EmojiEntry {
|
|
361
|
+
emoji: string;
|
|
362
|
+
name: string;
|
|
363
|
+
shortcode: string;
|
|
364
|
+
codepoint: string;
|
|
365
|
+
category: string;
|
|
366
|
+
keywords: string[];
|
|
367
|
+
}
|
|
368
|
+
declare const EMOJI_TABLE: EmojiEntry[];
|
|
369
|
+
/**
|
|
370
|
+
* Search the curated emoji table by name, shortcode, or keyword (case
|
|
371
|
+
* insensitive substring match). Not the full Unicode emoji set (which is
|
|
372
|
+
* 3,000+ and growing every release), just several hundred of the most
|
|
373
|
+
* commonly used ones for chat, commit messages, and markdown.
|
|
374
|
+
*/
|
|
375
|
+
declare function searchEmoji(query: string): EmojiEntry[];
|
|
376
|
+
/** Exact shortcode lookup, with or without surrounding colons (e.g. `fire` or `:fire:`). */
|
|
377
|
+
declare function getEmojiByShortcode(shortcode: string): EmojiEntry | undefined;
|
|
378
|
+
/** Look up an emoji entry by its exact character, e.g. searching for 🔥. */
|
|
379
|
+
declare function getEmojiByChar(char: string): EmojiEntry | undefined;
|
|
380
|
+
/** List all emoji in a given category (e.g. 'Smileys & Emotion', 'Animals & Nature'). */
|
|
381
|
+
declare function getEmojiByCategory(category: string): EmojiEntry[];
|
|
382
|
+
/** All distinct category names present in the table, in table order. */
|
|
383
|
+
declare function getEmojiCategories(): string[];
|
|
359
384
|
|
|
360
385
|
type text_AsciiFont = AsciiFont;
|
|
361
386
|
type text_AsciiOptions = AsciiOptions;
|
|
@@ -369,7 +394,9 @@ type text_DiffLine = DiffLine;
|
|
|
369
394
|
type text_DiffResult = DiffResult;
|
|
370
395
|
type text_DiffType = DiffType;
|
|
371
396
|
type text_DiffViewerLine = DiffViewerLine;
|
|
397
|
+
declare const text_EMOJI_TABLE: typeof EMOJI_TABLE;
|
|
372
398
|
declare const text_ESCAPE_MODES: typeof ESCAPE_MODES;
|
|
399
|
+
type text_EmojiEntry = EmojiEntry;
|
|
373
400
|
type text_EscapeMode = EscapeMode;
|
|
374
401
|
type text_FillerCategory = FillerCategory;
|
|
375
402
|
type text_FillerMatch = FillerMatch;
|
|
@@ -426,6 +453,10 @@ declare const text_generateParagraphs: typeof generateParagraphs;
|
|
|
426
453
|
declare const text_generateSentences: typeof generateSentences;
|
|
427
454
|
declare const text_generateWords: typeof generateWords;
|
|
428
455
|
declare const text_getAvailableFonts: typeof getAvailableFonts;
|
|
456
|
+
declare const text_getEmojiByCategory: typeof getEmojiByCategory;
|
|
457
|
+
declare const text_getEmojiByChar: typeof getEmojiByChar;
|
|
458
|
+
declare const text_getEmojiByShortcode: typeof getEmojiByShortcode;
|
|
459
|
+
declare const text_getEmojiCategories: typeof getEmojiCategories;
|
|
429
460
|
declare const text_getMorseForChar: typeof getMorseForChar;
|
|
430
461
|
declare const text_getMorseTiming: typeof getMorseTiming;
|
|
431
462
|
declare const text_htmlToMarkdown: typeof htmlToMarkdown;
|
|
@@ -442,6 +473,7 @@ declare const text_readabilityScore: typeof readabilityScore;
|
|
|
442
473
|
declare const text_renderMarkdown: typeof renderMarkdown;
|
|
443
474
|
declare const text_romanToNumber: typeof romanToNumber;
|
|
444
475
|
declare const text_scoreReadability: typeof scoreReadability;
|
|
476
|
+
declare const text_searchEmoji: typeof searchEmoji;
|
|
445
477
|
declare const text_sentenceCount: typeof sentenceCount;
|
|
446
478
|
declare const text_slugify: typeof slugify;
|
|
447
479
|
declare const text_slugifyAll: typeof slugifyAll;
|
|
@@ -451,7 +483,7 @@ declare const text_textToMorse: typeof textToMorse;
|
|
|
451
483
|
declare const text_unescapeString: typeof unescapeString;
|
|
452
484
|
declare const text_wordFrequency: typeof wordFrequency;
|
|
453
485
|
declare namespace text {
|
|
454
|
-
export { type text_AsciiFont as AsciiFont, type text_AsciiOptions as AsciiOptions, text_CASE_FORMATS as CASE_FORMATS, type text_CaseFormat as CaseFormat, type text_ConvertOptions as ConvertOptions, text_DEFAULT_CONVERT_OPTIONS as DEFAULT_CONVERT_OPTIONS, type text_DiffFile as DiffFile, type text_DiffHunk as DiffHunk, type text_DiffLine as DiffLine, type text_DiffResult as DiffResult, type text_DiffType as DiffType, type text_DiffViewerLine as DiffViewerLine, text_ESCAPE_MODES as ESCAPE_MODES, type text_EscapeMode as EscapeMode, type text_FillerCategory as FillerCategory, type text_FillerMatch as FillerMatch, type text_FillerWordResult as FillerWordResult, text_LINE_OPS as LINE_OPS, type text_LineOp as LineOp, type text_LineType as LineType, type text_LoremUnit as LoremUnit, text_MORSE_CODE as MORSE_CODE, type text_MarkdownResult as MarkdownResult, type text_MorseOptions as MorseOptions, type text_ParsedDiff as ParsedDiff, type text_ParsedTable as ParsedTable, type text_PassiveVoiceMatch as PassiveVoiceMatch, type text_PassiveVoiceResult as PassiveVoiceResult, type text_PassiveVoiceSentence as PassiveVoiceSentence, type text_ReadabilityResult as ReadabilityResult, type text_ReadabilityScore as ReadabilityScore, type text_SentenceLengthBucket as SentenceLengthBucket, type text_SentenceLengthDistribution as SentenceLengthDistribution, type text_SlugSeparator as SlugSeparator, type text_StringDistanceMode as StringDistanceMode, type text_StringDistanceResult as StringDistanceResult, type text_TableOptions as TableOptions, type text_TextAnalysis as TextAnalysis, type text_WordCountResult as WordCountResult, text_addBorder as addBorder, text_analyzeSentenceLengths as analyzeSentenceLengths, text_analyzeText as analyzeText, text_applyOp as applyOp, text_applyOps as applyOps, text_calculateStringDistance as calculateStringDistance, text_centerText as centerText, text_convertAll as convertAll, text_convertCase as convertCase, text_countWords as countWords, text_csvToHtml as csvToHtml, text_csvToMarkdown as csvToMarkdown, text_detectDelimiter as detectDelimiter, text_detectFillerWords as detectFillerWords, text_detectPassiveVoice as detectPassiveVoice, text_diffLines as diffLines, text_diffLinesSimple as diffLinesSimple, text_diffStats as diffStats, text_escapeAll as escapeAll, text_escapeString as escapeString, text_extractHeadings as extractHeadings, text_formatReadingTime as formatReadingTime, text_generate as generate, text_generateDiff as generateDiff, text_generateHtmlTable as generateHtmlTable, text_generateMarkdownTable as generateMarkdownTable, text_generateParagraphs as generateParagraphs, text_generateSentences as generateSentences, text_generateWords as generateWords, text_getAvailableFonts as getAvailableFonts, text_getMorseForChar as getMorseForChar, text_getMorseTiming as getMorseTiming, text_htmlToMarkdown as htmlToMarkdown, text_isValidMorse as isValidMorse, text_markdownToHtml as markdownToHtml, text_morseToText as morseToText, text_numberToOrdinal as numberToOrdinal, text_numberToRoman as numberToRoman, text_numberToWords as numberToWords, text_ordinalWords as ordinalWords, text_parseDiff as parseDiff, text_parseTableData as parseTableData, text_readabilityScore as readabilityScore, text_renderMarkdown as renderMarkdown, text_romanToNumber as romanToNumber, text_scoreReadability as scoreReadability, text_sentenceCount as sentenceCount, text_slugify as slugify, text_slugifyAll as slugifyAll, text_syllableCount as syllableCount, text_textToAscii as textToAscii, text_textToMorse as textToMorse, text_unescapeString as unescapeString, text_wordFrequency as wordFrequency };
|
|
486
|
+
export { type text_AsciiFont as AsciiFont, type text_AsciiOptions as AsciiOptions, text_CASE_FORMATS as CASE_FORMATS, type text_CaseFormat as CaseFormat, type text_ConvertOptions as ConvertOptions, text_DEFAULT_CONVERT_OPTIONS as DEFAULT_CONVERT_OPTIONS, type text_DiffFile as DiffFile, type text_DiffHunk as DiffHunk, type text_DiffLine as DiffLine, type text_DiffResult as DiffResult, type text_DiffType as DiffType, type text_DiffViewerLine as DiffViewerLine, text_EMOJI_TABLE as EMOJI_TABLE, text_ESCAPE_MODES as ESCAPE_MODES, type text_EmojiEntry as EmojiEntry, type text_EscapeMode as EscapeMode, type text_FillerCategory as FillerCategory, type text_FillerMatch as FillerMatch, type text_FillerWordResult as FillerWordResult, text_LINE_OPS as LINE_OPS, type text_LineOp as LineOp, type text_LineType as LineType, type text_LoremUnit as LoremUnit, text_MORSE_CODE as MORSE_CODE, type text_MarkdownResult as MarkdownResult, type text_MorseOptions as MorseOptions, type text_ParsedDiff as ParsedDiff, type text_ParsedTable as ParsedTable, type text_PassiveVoiceMatch as PassiveVoiceMatch, type text_PassiveVoiceResult as PassiveVoiceResult, type text_PassiveVoiceSentence as PassiveVoiceSentence, type text_ReadabilityResult as ReadabilityResult, type text_ReadabilityScore as ReadabilityScore, type text_SentenceLengthBucket as SentenceLengthBucket, type text_SentenceLengthDistribution as SentenceLengthDistribution, type text_SlugSeparator as SlugSeparator, type text_StringDistanceMode as StringDistanceMode, type text_StringDistanceResult as StringDistanceResult, type text_TableOptions as TableOptions, type text_TextAnalysis as TextAnalysis, type text_WordCountResult as WordCountResult, text_addBorder as addBorder, text_analyzeSentenceLengths as analyzeSentenceLengths, text_analyzeText as analyzeText, text_applyOp as applyOp, text_applyOps as applyOps, text_calculateStringDistance as calculateStringDistance, text_centerText as centerText, text_convertAll as convertAll, text_convertCase as convertCase, text_countWords as countWords, text_csvToHtml as csvToHtml, text_csvToMarkdown as csvToMarkdown, text_detectDelimiter as detectDelimiter, text_detectFillerWords as detectFillerWords, text_detectPassiveVoice as detectPassiveVoice, text_diffLines as diffLines, text_diffLinesSimple as diffLinesSimple, text_diffStats as diffStats, text_escapeAll as escapeAll, text_escapeString as escapeString, text_extractHeadings as extractHeadings, text_formatReadingTime as formatReadingTime, text_generate as generate, text_generateDiff as generateDiff, text_generateHtmlTable as generateHtmlTable, text_generateMarkdownTable as generateMarkdownTable, text_generateParagraphs as generateParagraphs, text_generateSentences as generateSentences, text_generateWords as generateWords, text_getAvailableFonts as getAvailableFonts, text_getEmojiByCategory as getEmojiByCategory, text_getEmojiByChar as getEmojiByChar, text_getEmojiByShortcode as getEmojiByShortcode, text_getEmojiCategories as getEmojiCategories, text_getMorseForChar as getMorseForChar, text_getMorseTiming as getMorseTiming, text_htmlToMarkdown as htmlToMarkdown, text_isValidMorse as isValidMorse, text_markdownToHtml as markdownToHtml, text_morseToText as morseToText, text_numberToOrdinal as numberToOrdinal, text_numberToRoman as numberToRoman, text_numberToWords as numberToWords, text_ordinalWords as ordinalWords, text_parseDiff as parseDiff, text_parseTableData as parseTableData, text_readabilityScore as readabilityScore, text_renderMarkdown as renderMarkdown, text_romanToNumber as romanToNumber, text_scoreReadability as scoreReadability, text_searchEmoji as searchEmoji, text_sentenceCount as sentenceCount, text_slugify as slugify, text_slugifyAll as slugifyAll, text_syllableCount as syllableCount, text_textToAscii as textToAscii, text_textToMorse as textToMorse, text_unescapeString as unescapeString, text_wordFrequency as wordFrequency };
|
|
455
487
|
}
|
|
456
488
|
|
|
457
|
-
export {
|
|
489
|
+
export { csvToMarkdown as $, type AsciiFont as A, type SlugSeparator as B, CASE_FORMATS as C, DEFAULT_CONVERT_OPTIONS as D, EMOJI_TABLE as E, type FillerCategory as F, type StringDistanceMode as G, type StringDistanceResult as H, type TextAnalysis as I, addBorder as J, analyzeSentenceLengths as K, LINE_OPS as L, MORSE_CODE as M, analyzeText as N, applyOp as O, type ParsedDiff as P, applyOps as Q, type ReadabilityResult as R, type SentenceLengthBucket as S, type TableOptions as T, calculateStringDistance as U, centerText as V, type WordCountResult as W, convertAll as X, convertCase as Y, countWords as Z, csvToHtml as _, type AsciiOptions as a, detectDelimiter as a0, detectFillerWords as a1, detectPassiveVoice as a2, diffLines as a3, diffLinesSimple as a4, diffStats as a5, escapeAll as a6, escapeString as a7, extractHeadings as a8, formatReadingTime as a9, romanToNumber as aA, scoreReadability as aB, searchEmoji as aC, sentenceCount as aD, slugify as aE, slugifyAll as aF, syllableCount as aG, textToAscii as aH, textToMorse as aI, unescapeString as aJ, wordFrequency as aK, generate as aa, generateDiff as ab, generateHtmlTable as ac, generateMarkdownTable as ad, generateParagraphs as ae, generateSentences as af, generateWords as ag, getAvailableFonts as ah, getEmojiByCategory as ai, getEmojiByChar as aj, getEmojiByShortcode as ak, getEmojiCategories as al, getMorseForChar as am, getMorseTiming as an, htmlToMarkdown as ao, isValidMorse as ap, markdownToHtml as aq, morseToText as ar, numberToOrdinal as as, numberToRoman as at, numberToWords as au, ordinalWords as av, parseDiff as aw, parseTableData as ax, readabilityScore as ay, renderMarkdown as az, type CaseFormat as b, type ConvertOptions as c, type DiffFile as d, type DiffHunk as e, type DiffLine as f, type DiffResult as g, type DiffType as h, type DiffViewerLine as i, ESCAPE_MODES as j, type EmojiEntry as k, type EscapeMode as l, type FillerMatch as m, type FillerWordResult as n, type LineOp as o, type LineType as p, type LoremUnit as q, type MarkdownResult as r, type MorseOptions as s, text as t, type ParsedTable as u, type PassiveVoiceMatch as v, type PassiveVoiceResult as w, type PassiveVoiceSentence as x, type ReadabilityScore as y, type SentenceLengthDistribution as z };
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
* - readability-score: scoreReadability
|
|
24
24
|
* - filler-word-detector: detectFillerWords
|
|
25
25
|
* - sentence-length-distribution: analyzeSentenceLengths
|
|
26
|
+
* - emoji-lookup : searchEmoji, getEmojiByShortcode, getEmojiByChar, getEmojiByCategory, getEmojiCategories, EMOJI_TABLE
|
|
26
27
|
*/
|
|
27
28
|
interface WordCountResult {
|
|
28
29
|
words: number;
|
|
@@ -356,6 +357,30 @@ interface SentenceLengthDistribution {
|
|
|
356
357
|
* (e.g. "Dr.") as sentence boundaries.
|
|
357
358
|
*/
|
|
358
359
|
declare function analyzeSentenceLengths(text: string): SentenceLengthDistribution;
|
|
360
|
+
interface EmojiEntry {
|
|
361
|
+
emoji: string;
|
|
362
|
+
name: string;
|
|
363
|
+
shortcode: string;
|
|
364
|
+
codepoint: string;
|
|
365
|
+
category: string;
|
|
366
|
+
keywords: string[];
|
|
367
|
+
}
|
|
368
|
+
declare const EMOJI_TABLE: EmojiEntry[];
|
|
369
|
+
/**
|
|
370
|
+
* Search the curated emoji table by name, shortcode, or keyword (case
|
|
371
|
+
* insensitive substring match). Not the full Unicode emoji set (which is
|
|
372
|
+
* 3,000+ and growing every release), just several hundred of the most
|
|
373
|
+
* commonly used ones for chat, commit messages, and markdown.
|
|
374
|
+
*/
|
|
375
|
+
declare function searchEmoji(query: string): EmojiEntry[];
|
|
376
|
+
/** Exact shortcode lookup, with or without surrounding colons (e.g. `fire` or `:fire:`). */
|
|
377
|
+
declare function getEmojiByShortcode(shortcode: string): EmojiEntry | undefined;
|
|
378
|
+
/** Look up an emoji entry by its exact character, e.g. searching for 🔥. */
|
|
379
|
+
declare function getEmojiByChar(char: string): EmojiEntry | undefined;
|
|
380
|
+
/** List all emoji in a given category (e.g. 'Smileys & Emotion', 'Animals & Nature'). */
|
|
381
|
+
declare function getEmojiByCategory(category: string): EmojiEntry[];
|
|
382
|
+
/** All distinct category names present in the table, in table order. */
|
|
383
|
+
declare function getEmojiCategories(): string[];
|
|
359
384
|
|
|
360
385
|
type text_AsciiFont = AsciiFont;
|
|
361
386
|
type text_AsciiOptions = AsciiOptions;
|
|
@@ -369,7 +394,9 @@ type text_DiffLine = DiffLine;
|
|
|
369
394
|
type text_DiffResult = DiffResult;
|
|
370
395
|
type text_DiffType = DiffType;
|
|
371
396
|
type text_DiffViewerLine = DiffViewerLine;
|
|
397
|
+
declare const text_EMOJI_TABLE: typeof EMOJI_TABLE;
|
|
372
398
|
declare const text_ESCAPE_MODES: typeof ESCAPE_MODES;
|
|
399
|
+
type text_EmojiEntry = EmojiEntry;
|
|
373
400
|
type text_EscapeMode = EscapeMode;
|
|
374
401
|
type text_FillerCategory = FillerCategory;
|
|
375
402
|
type text_FillerMatch = FillerMatch;
|
|
@@ -426,6 +453,10 @@ declare const text_generateParagraphs: typeof generateParagraphs;
|
|
|
426
453
|
declare const text_generateSentences: typeof generateSentences;
|
|
427
454
|
declare const text_generateWords: typeof generateWords;
|
|
428
455
|
declare const text_getAvailableFonts: typeof getAvailableFonts;
|
|
456
|
+
declare const text_getEmojiByCategory: typeof getEmojiByCategory;
|
|
457
|
+
declare const text_getEmojiByChar: typeof getEmojiByChar;
|
|
458
|
+
declare const text_getEmojiByShortcode: typeof getEmojiByShortcode;
|
|
459
|
+
declare const text_getEmojiCategories: typeof getEmojiCategories;
|
|
429
460
|
declare const text_getMorseForChar: typeof getMorseForChar;
|
|
430
461
|
declare const text_getMorseTiming: typeof getMorseTiming;
|
|
431
462
|
declare const text_htmlToMarkdown: typeof htmlToMarkdown;
|
|
@@ -442,6 +473,7 @@ declare const text_readabilityScore: typeof readabilityScore;
|
|
|
442
473
|
declare const text_renderMarkdown: typeof renderMarkdown;
|
|
443
474
|
declare const text_romanToNumber: typeof romanToNumber;
|
|
444
475
|
declare const text_scoreReadability: typeof scoreReadability;
|
|
476
|
+
declare const text_searchEmoji: typeof searchEmoji;
|
|
445
477
|
declare const text_sentenceCount: typeof sentenceCount;
|
|
446
478
|
declare const text_slugify: typeof slugify;
|
|
447
479
|
declare const text_slugifyAll: typeof slugifyAll;
|
|
@@ -451,7 +483,7 @@ declare const text_textToMorse: typeof textToMorse;
|
|
|
451
483
|
declare const text_unescapeString: typeof unescapeString;
|
|
452
484
|
declare const text_wordFrequency: typeof wordFrequency;
|
|
453
485
|
declare namespace text {
|
|
454
|
-
export { type text_AsciiFont as AsciiFont, type text_AsciiOptions as AsciiOptions, text_CASE_FORMATS as CASE_FORMATS, type text_CaseFormat as CaseFormat, type text_ConvertOptions as ConvertOptions, text_DEFAULT_CONVERT_OPTIONS as DEFAULT_CONVERT_OPTIONS, type text_DiffFile as DiffFile, type text_DiffHunk as DiffHunk, type text_DiffLine as DiffLine, type text_DiffResult as DiffResult, type text_DiffType as DiffType, type text_DiffViewerLine as DiffViewerLine, text_ESCAPE_MODES as ESCAPE_MODES, type text_EscapeMode as EscapeMode, type text_FillerCategory as FillerCategory, type text_FillerMatch as FillerMatch, type text_FillerWordResult as FillerWordResult, text_LINE_OPS as LINE_OPS, type text_LineOp as LineOp, type text_LineType as LineType, type text_LoremUnit as LoremUnit, text_MORSE_CODE as MORSE_CODE, type text_MarkdownResult as MarkdownResult, type text_MorseOptions as MorseOptions, type text_ParsedDiff as ParsedDiff, type text_ParsedTable as ParsedTable, type text_PassiveVoiceMatch as PassiveVoiceMatch, type text_PassiveVoiceResult as PassiveVoiceResult, type text_PassiveVoiceSentence as PassiveVoiceSentence, type text_ReadabilityResult as ReadabilityResult, type text_ReadabilityScore as ReadabilityScore, type text_SentenceLengthBucket as SentenceLengthBucket, type text_SentenceLengthDistribution as SentenceLengthDistribution, type text_SlugSeparator as SlugSeparator, type text_StringDistanceMode as StringDistanceMode, type text_StringDistanceResult as StringDistanceResult, type text_TableOptions as TableOptions, type text_TextAnalysis as TextAnalysis, type text_WordCountResult as WordCountResult, text_addBorder as addBorder, text_analyzeSentenceLengths as analyzeSentenceLengths, text_analyzeText as analyzeText, text_applyOp as applyOp, text_applyOps as applyOps, text_calculateStringDistance as calculateStringDistance, text_centerText as centerText, text_convertAll as convertAll, text_convertCase as convertCase, text_countWords as countWords, text_csvToHtml as csvToHtml, text_csvToMarkdown as csvToMarkdown, text_detectDelimiter as detectDelimiter, text_detectFillerWords as detectFillerWords, text_detectPassiveVoice as detectPassiveVoice, text_diffLines as diffLines, text_diffLinesSimple as diffLinesSimple, text_diffStats as diffStats, text_escapeAll as escapeAll, text_escapeString as escapeString, text_extractHeadings as extractHeadings, text_formatReadingTime as formatReadingTime, text_generate as generate, text_generateDiff as generateDiff, text_generateHtmlTable as generateHtmlTable, text_generateMarkdownTable as generateMarkdownTable, text_generateParagraphs as generateParagraphs, text_generateSentences as generateSentences, text_generateWords as generateWords, text_getAvailableFonts as getAvailableFonts, text_getMorseForChar as getMorseForChar, text_getMorseTiming as getMorseTiming, text_htmlToMarkdown as htmlToMarkdown, text_isValidMorse as isValidMorse, text_markdownToHtml as markdownToHtml, text_morseToText as morseToText, text_numberToOrdinal as numberToOrdinal, text_numberToRoman as numberToRoman, text_numberToWords as numberToWords, text_ordinalWords as ordinalWords, text_parseDiff as parseDiff, text_parseTableData as parseTableData, text_readabilityScore as readabilityScore, text_renderMarkdown as renderMarkdown, text_romanToNumber as romanToNumber, text_scoreReadability as scoreReadability, text_sentenceCount as sentenceCount, text_slugify as slugify, text_slugifyAll as slugifyAll, text_syllableCount as syllableCount, text_textToAscii as textToAscii, text_textToMorse as textToMorse, text_unescapeString as unescapeString, text_wordFrequency as wordFrequency };
|
|
486
|
+
export { type text_AsciiFont as AsciiFont, type text_AsciiOptions as AsciiOptions, text_CASE_FORMATS as CASE_FORMATS, type text_CaseFormat as CaseFormat, type text_ConvertOptions as ConvertOptions, text_DEFAULT_CONVERT_OPTIONS as DEFAULT_CONVERT_OPTIONS, type text_DiffFile as DiffFile, type text_DiffHunk as DiffHunk, type text_DiffLine as DiffLine, type text_DiffResult as DiffResult, type text_DiffType as DiffType, type text_DiffViewerLine as DiffViewerLine, text_EMOJI_TABLE as EMOJI_TABLE, text_ESCAPE_MODES as ESCAPE_MODES, type text_EmojiEntry as EmojiEntry, type text_EscapeMode as EscapeMode, type text_FillerCategory as FillerCategory, type text_FillerMatch as FillerMatch, type text_FillerWordResult as FillerWordResult, text_LINE_OPS as LINE_OPS, type text_LineOp as LineOp, type text_LineType as LineType, type text_LoremUnit as LoremUnit, text_MORSE_CODE as MORSE_CODE, type text_MarkdownResult as MarkdownResult, type text_MorseOptions as MorseOptions, type text_ParsedDiff as ParsedDiff, type text_ParsedTable as ParsedTable, type text_PassiveVoiceMatch as PassiveVoiceMatch, type text_PassiveVoiceResult as PassiveVoiceResult, type text_PassiveVoiceSentence as PassiveVoiceSentence, type text_ReadabilityResult as ReadabilityResult, type text_ReadabilityScore as ReadabilityScore, type text_SentenceLengthBucket as SentenceLengthBucket, type text_SentenceLengthDistribution as SentenceLengthDistribution, type text_SlugSeparator as SlugSeparator, type text_StringDistanceMode as StringDistanceMode, type text_StringDistanceResult as StringDistanceResult, type text_TableOptions as TableOptions, type text_TextAnalysis as TextAnalysis, type text_WordCountResult as WordCountResult, text_addBorder as addBorder, text_analyzeSentenceLengths as analyzeSentenceLengths, text_analyzeText as analyzeText, text_applyOp as applyOp, text_applyOps as applyOps, text_calculateStringDistance as calculateStringDistance, text_centerText as centerText, text_convertAll as convertAll, text_convertCase as convertCase, text_countWords as countWords, text_csvToHtml as csvToHtml, text_csvToMarkdown as csvToMarkdown, text_detectDelimiter as detectDelimiter, text_detectFillerWords as detectFillerWords, text_detectPassiveVoice as detectPassiveVoice, text_diffLines as diffLines, text_diffLinesSimple as diffLinesSimple, text_diffStats as diffStats, text_escapeAll as escapeAll, text_escapeString as escapeString, text_extractHeadings as extractHeadings, text_formatReadingTime as formatReadingTime, text_generate as generate, text_generateDiff as generateDiff, text_generateHtmlTable as generateHtmlTable, text_generateMarkdownTable as generateMarkdownTable, text_generateParagraphs as generateParagraphs, text_generateSentences as generateSentences, text_generateWords as generateWords, text_getAvailableFonts as getAvailableFonts, text_getEmojiByCategory as getEmojiByCategory, text_getEmojiByChar as getEmojiByChar, text_getEmojiByShortcode as getEmojiByShortcode, text_getEmojiCategories as getEmojiCategories, text_getMorseForChar as getMorseForChar, text_getMorseTiming as getMorseTiming, text_htmlToMarkdown as htmlToMarkdown, text_isValidMorse as isValidMorse, text_markdownToHtml as markdownToHtml, text_morseToText as morseToText, text_numberToOrdinal as numberToOrdinal, text_numberToRoman as numberToRoman, text_numberToWords as numberToWords, text_ordinalWords as ordinalWords, text_parseDiff as parseDiff, text_parseTableData as parseTableData, text_readabilityScore as readabilityScore, text_renderMarkdown as renderMarkdown, text_romanToNumber as romanToNumber, text_scoreReadability as scoreReadability, text_searchEmoji as searchEmoji, text_sentenceCount as sentenceCount, text_slugify as slugify, text_slugifyAll as slugifyAll, text_syllableCount as syllableCount, text_textToAscii as textToAscii, text_textToMorse as textToMorse, text_unescapeString as unescapeString, text_wordFrequency as wordFrequency };
|
|
455
487
|
}
|
|
456
488
|
|
|
457
|
-
export {
|
|
489
|
+
export { csvToMarkdown as $, type AsciiFont as A, type SlugSeparator as B, CASE_FORMATS as C, DEFAULT_CONVERT_OPTIONS as D, EMOJI_TABLE as E, type FillerCategory as F, type StringDistanceMode as G, type StringDistanceResult as H, type TextAnalysis as I, addBorder as J, analyzeSentenceLengths as K, LINE_OPS as L, MORSE_CODE as M, analyzeText as N, applyOp as O, type ParsedDiff as P, applyOps as Q, type ReadabilityResult as R, type SentenceLengthBucket as S, type TableOptions as T, calculateStringDistance as U, centerText as V, type WordCountResult as W, convertAll as X, convertCase as Y, countWords as Z, csvToHtml as _, type AsciiOptions as a, detectDelimiter as a0, detectFillerWords as a1, detectPassiveVoice as a2, diffLines as a3, diffLinesSimple as a4, diffStats as a5, escapeAll as a6, escapeString as a7, extractHeadings as a8, formatReadingTime as a9, romanToNumber as aA, scoreReadability as aB, searchEmoji as aC, sentenceCount as aD, slugify as aE, slugifyAll as aF, syllableCount as aG, textToAscii as aH, textToMorse as aI, unescapeString as aJ, wordFrequency as aK, generate as aa, generateDiff as ab, generateHtmlTable as ac, generateMarkdownTable as ad, generateParagraphs as ae, generateSentences as af, generateWords as ag, getAvailableFonts as ah, getEmojiByCategory as ai, getEmojiByChar as aj, getEmojiByShortcode as ak, getEmojiCategories as al, getMorseForChar as am, getMorseTiming as an, htmlToMarkdown as ao, isValidMorse as ap, markdownToHtml as aq, morseToText as ar, numberToOrdinal as as, numberToRoman as at, numberToWords as au, ordinalWords as av, parseDiff as aw, parseTableData as ax, readabilityScore as ay, renderMarkdown as az, type CaseFormat as b, type ConvertOptions as c, type DiffFile as d, type DiffHunk as e, type DiffLine as f, type DiffResult as g, type DiffType as h, type DiffViewerLine as i, ESCAPE_MODES as j, type EmojiEntry as k, type EscapeMode as l, type FillerMatch as m, type FillerWordResult as n, type LineOp as o, type LineType as p, type LoremUnit as q, type MarkdownResult as r, type MorseOptions as s, text as t, type ParsedTable as u, type PassiveVoiceMatch as v, type PassiveVoiceResult as w, type PassiveVoiceSentence as x, type ReadabilityScore as y, type SentenceLengthDistribution as z };
|
package/dist/tools/network.cjs
CHANGED
|
@@ -1855,6 +1855,73 @@ function buildReferrerPolicy(policies) {
|
|
|
1855
1855
|
const metaTag = `<meta name="referrer" content="${last.value}">`;
|
|
1856
1856
|
return { header, headerName: "Referrer-Policy", snippet, metaTag, policies: entries, warnings };
|
|
1857
1857
|
}
|
|
1858
|
+
var LINK_REL_VALUES = [
|
|
1859
|
+
"preload",
|
|
1860
|
+
"preconnect",
|
|
1861
|
+
"prefetch",
|
|
1862
|
+
"prerender",
|
|
1863
|
+
"dns-prefetch",
|
|
1864
|
+
"canonical",
|
|
1865
|
+
"next",
|
|
1866
|
+
"prev",
|
|
1867
|
+
"alternate",
|
|
1868
|
+
"stylesheet",
|
|
1869
|
+
"icon",
|
|
1870
|
+
"modulepreload"
|
|
1871
|
+
];
|
|
1872
|
+
var _LINK_REL_INFO = {
|
|
1873
|
+
preload: "Tells the browser to fetch this resource early, before the parser would otherwise discover it, without blocking rendering. Requires an `as` attribute so the browser applies the right request priority and Content-Security-Policy check; omitting it commonly causes the resource to be fetched twice.",
|
|
1874
|
+
preconnect: "Tells the browser to start the connection handshake (DNS, TCP, TLS) to this origin early, before any real request to it is made, so the first actual request lands faster.",
|
|
1875
|
+
prefetch: "Tells the browser to fetch this resource at low priority for a likely future navigation and cache it. Unlike preload, it does not affect the current page load.",
|
|
1876
|
+
prerender: "Tells the browser to fetch and render this page in the background so navigating to it feels instant, at a real bandwidth and CPU cost if the user never navigates there.",
|
|
1877
|
+
"dns-prefetch": "Tells the browser to resolve this origin's DNS early, a lighter-weight version of preconnect that skips the TCP/TLS handshake.",
|
|
1878
|
+
canonical: "Tells search engines which URL is the authoritative version of this page, used to consolidate duplicate-content signals across query-string or protocol variants.",
|
|
1879
|
+
next: "Marks the next page in a paginated sequence, a hint search engines and some browsers use for pagination.",
|
|
1880
|
+
prev: "Marks the previous page in a paginated sequence.",
|
|
1881
|
+
alternate: "Points to an alternate version of this resource, such as a different language or an RSS feed.",
|
|
1882
|
+
stylesheet: 'Loads an external stylesheet, the same effect as a `<link rel="stylesheet">` tag but delivered as a response header instead.',
|
|
1883
|
+
icon: 'Points to this resource\'s favicon, the same effect as a `<link rel="icon">` tag but delivered as a response header instead.',
|
|
1884
|
+
modulepreload: "Tells the browser to fetch and parse this JavaScript module early, ahead of when the module graph would otherwise discover it."
|
|
1885
|
+
};
|
|
1886
|
+
function buildLinkHeader(links) {
|
|
1887
|
+
if (!Array.isArray(links) || links.length === 0) {
|
|
1888
|
+
return { error: "At least one link entry is required" };
|
|
1889
|
+
}
|
|
1890
|
+
const entries = [];
|
|
1891
|
+
for (const link of links) {
|
|
1892
|
+
const url = typeof link.url === "string" ? link.url.trim() : "";
|
|
1893
|
+
const rel = typeof link.rel === "string" ? link.rel.trim() : "";
|
|
1894
|
+
if (!url) return { error: "Each link entry requires a non-empty url" };
|
|
1895
|
+
if (!rel) return { error: "Each link entry requires a non-empty rel" };
|
|
1896
|
+
if (!LINK_REL_VALUES.includes(rel)) {
|
|
1897
|
+
return { error: `'${rel}' is not a supported rel value. Supported values: ${LINK_REL_VALUES.join(", ")}` };
|
|
1898
|
+
}
|
|
1899
|
+
const as = link.as?.trim() || void 0;
|
|
1900
|
+
const type = link.type?.trim() || void 0;
|
|
1901
|
+
const crossorigin = link.crossorigin === true;
|
|
1902
|
+
let value = `<${url}>; rel="${rel}"`;
|
|
1903
|
+
if (as) value += `; as="${as}"`;
|
|
1904
|
+
if (type) value += `; type="${type}"`;
|
|
1905
|
+
if (crossorigin) value += "; crossorigin";
|
|
1906
|
+
entries.push({ url, rel, as, type, crossorigin: crossorigin || void 0, value, explanation: _LINK_REL_INFO[rel] });
|
|
1907
|
+
}
|
|
1908
|
+
const warnings = [];
|
|
1909
|
+
for (const entry of entries) {
|
|
1910
|
+
if (entry.rel === "preload" && !entry.as) {
|
|
1911
|
+
warnings.push(`preload link for "${entry.url}" is missing an \`as\` attribute \u2014 the browser may fetch it twice or apply the wrong request priority.`);
|
|
1912
|
+
}
|
|
1913
|
+
if ((entry.rel === "preconnect" || entry.rel === "dns-prefetch") && (entry.as || entry.type)) {
|
|
1914
|
+
warnings.push(`${entry.rel} link for "${entry.url}" sets \`as\`/\`type\`, which it ignores since no specific resource is being fetched yet.`);
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
const canonicalCount = entries.filter((e) => e.rel === "canonical").length;
|
|
1918
|
+
if (canonicalCount > 1) {
|
|
1919
|
+
warnings.push(`${canonicalCount} canonical links present \u2014 only one canonical URL should be declared per page.`);
|
|
1920
|
+
}
|
|
1921
|
+
const header = entries.map((e) => e.value).join(", ");
|
|
1922
|
+
const snippet = `Link: ${header}`;
|
|
1923
|
+
return { header, headerName: "Link", snippet, links: entries, warnings };
|
|
1924
|
+
}
|
|
1858
1925
|
function isValidIpv6HexGroup(g) {
|
|
1859
1926
|
return /^[0-9a-fA-F]{1,4}$/.test(g);
|
|
1860
1927
|
}
|
|
@@ -1946,11 +2013,13 @@ function parseIpv6Address(input) {
|
|
|
1946
2013
|
|
|
1947
2014
|
exports.DNS_RECORD_TYPES = DNS_RECORD_TYPES;
|
|
1948
2015
|
exports.HTTP_HEADERS = HTTP_HEADERS;
|
|
2016
|
+
exports.LINK_REL_VALUES = LINK_REL_VALUES;
|
|
1949
2017
|
exports.REFERRER_POLICY_VALUES = REFERRER_POLICY_VALUES;
|
|
1950
2018
|
exports.STATUS_CODES = STATUS_CODES;
|
|
1951
2019
|
exports.buildCacheControl = buildCacheControl;
|
|
1952
2020
|
exports.buildDnsQueryUrl = buildDnsQueryUrl;
|
|
1953
2021
|
exports.buildGeoUrl = buildGeoUrl;
|
|
2022
|
+
exports.buildLinkHeader = buildLinkHeader;
|
|
1954
2023
|
exports.buildMapUrl = buildMapUrl;
|
|
1955
2024
|
exports.buildReferrerPolicy = buildReferrerPolicy;
|
|
1956
2025
|
exports.countryCodeToFlag = countryCodeToFlag;
|
package/dist/tools/network.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CacheControlDirective, a as CacheControlOptions, b as CacheControlResult, D as DNS_RECORD_TYPES, c as DnsRecord, d as DnsRecordType, e as DnsResponse, G as GeoResult, H as HTTP_HEADERS, f as HarEntry, g as HarParseResult, h as HarSummary, i as HeaderCategory, j as HttpHeader, I as Ipv6AddressType, k as Ipv6ParseResult, P as ParsedDnsResult,
|
|
1
|
+
export { C as CacheControlDirective, a as CacheControlOptions, b as CacheControlResult, D as DNS_RECORD_TYPES, c as DnsRecord, d as DnsRecordType, e as DnsResponse, G as GeoResult, H as HTTP_HEADERS, f as HarEntry, g as HarParseResult, h as HarSummary, i as HeaderCategory, j as HttpHeader, I as Ipv6AddressType, k as Ipv6ParseResult, L as LINK_REL_VALUES, l as LinkHeaderEntry, m as LinkHeaderEntryInput, o as LinkHeaderResult, p as LinkRel, P as ParsedDnsResult, q as ParsedGeoResult, R as REFERRER_POLICY_VALUES, r as ReferrerPolicyEntry, s as ReferrerPolicyResult, t as ReferrerPolicyValue, u as RobotsGroup, v as RobotsIssue, w as RobotsRule, x as RobotsValidationResult, S as STATUS_CODES, y as SitemapIndexEntry, z as SitemapIssue, A as SitemapUrlEntry, B as SitemapValidationResult, E as StatusCode, U as UaDeviceType, F as UserAgentInfo, J as buildCacheControl, K as buildDnsQueryUrl, M as buildGeoUrl, N as buildLinkHeader, O as buildMapUrl, Q as buildReferrerPolicy, T as countryCodeToFlag, V as formatCoordinates, W as formatTtl, X as getByCategory, Y as getHeader, Z as getHeadersByCategory, _ as getStatusByCategory, $ as getStatusCode, a0 as isClientError, a1 as isServerError, a2 as isSuccess, a3 as isValidIp, a4 as isValidIpv4, a5 as isValidIpv6, a6 as parseDnsResponse, a7 as parseGeoResponse, a8 as parseHar, a9 as parseIpv6Address, aa as parseUserAgent, ab as searchHeaders, ac as searchStatusCodes, ad as statusCodeToText, ae as typeNumberToLabel, af as validateDomain, ag as validateHeaderName, ah as validateHeaderValue, ai as validateRobotsTxt, aj as validateSitemap } from '../network-X0EfH9Xq.cjs';
|
package/dist/tools/network.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CacheControlDirective, a as CacheControlOptions, b as CacheControlResult, D as DNS_RECORD_TYPES, c as DnsRecord, d as DnsRecordType, e as DnsResponse, G as GeoResult, H as HTTP_HEADERS, f as HarEntry, g as HarParseResult, h as HarSummary, i as HeaderCategory, j as HttpHeader, I as Ipv6AddressType, k as Ipv6ParseResult, P as ParsedDnsResult,
|
|
1
|
+
export { C as CacheControlDirective, a as CacheControlOptions, b as CacheControlResult, D as DNS_RECORD_TYPES, c as DnsRecord, d as DnsRecordType, e as DnsResponse, G as GeoResult, H as HTTP_HEADERS, f as HarEntry, g as HarParseResult, h as HarSummary, i as HeaderCategory, j as HttpHeader, I as Ipv6AddressType, k as Ipv6ParseResult, L as LINK_REL_VALUES, l as LinkHeaderEntry, m as LinkHeaderEntryInput, o as LinkHeaderResult, p as LinkRel, P as ParsedDnsResult, q as ParsedGeoResult, R as REFERRER_POLICY_VALUES, r as ReferrerPolicyEntry, s as ReferrerPolicyResult, t as ReferrerPolicyValue, u as RobotsGroup, v as RobotsIssue, w as RobotsRule, x as RobotsValidationResult, S as STATUS_CODES, y as SitemapIndexEntry, z as SitemapIssue, A as SitemapUrlEntry, B as SitemapValidationResult, E as StatusCode, U as UaDeviceType, F as UserAgentInfo, J as buildCacheControl, K as buildDnsQueryUrl, M as buildGeoUrl, N as buildLinkHeader, O as buildMapUrl, Q as buildReferrerPolicy, T as countryCodeToFlag, V as formatCoordinates, W as formatTtl, X as getByCategory, Y as getHeader, Z as getHeadersByCategory, _ as getStatusByCategory, $ as getStatusCode, a0 as isClientError, a1 as isServerError, a2 as isSuccess, a3 as isValidIp, a4 as isValidIpv4, a5 as isValidIpv6, a6 as parseDnsResponse, a7 as parseGeoResponse, a8 as parseHar, a9 as parseIpv6Address, aa as parseUserAgent, ab as searchHeaders, ac as searchStatusCodes, ad as statusCodeToText, ae as typeNumberToLabel, af as validateDomain, ag as validateHeaderName, ah as validateHeaderValue, ai as validateRobotsTxt, aj as validateSitemap } from '../network-X0EfH9Xq.js';
|
package/dist/tools/network.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DNS_RECORD_TYPES, HTTP_HEADERS, REFERRER_POLICY_VALUES, STATUS_CODES, buildCacheControl, buildDnsQueryUrl, buildGeoUrl, buildMapUrl, buildReferrerPolicy, countryCodeToFlag, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, parseDnsResponse, parseGeoResponse, parseHar, parseIpv6Address, parseUserAgent, searchHeaders, searchStatusCodes, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateRobotsTxt, validateSitemap } from '../chunk-
|
|
1
|
+
export { DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, REFERRER_POLICY_VALUES, STATUS_CODES, buildCacheControl, buildDnsQueryUrl, buildGeoUrl, buildLinkHeader, buildMapUrl, buildReferrerPolicy, countryCodeToFlag, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, parseDnsResponse, parseGeoResponse, parseHar, parseIpv6Address, parseUserAgent, searchHeaders, searchStatusCodes, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateRobotsTxt, validateSitemap } from '../chunk-UTHAHRQ7.js';
|
|
2
2
|
import '../chunk-MLKGABMK.js';
|