@formless63/domain-intel 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 formless63
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
- # Temporary Holding Version
1
+ # @formless63/domain-intel
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Domain-name facts with no I/O and no dependencies.
4
+
5
+ ```ts
6
+ normalizeDomainName("https://MÜNCHEN.example/x"); // "xn--mnchen-3ya.example"
7
+ normalizeStatus("clientTransferProhibited"); // "client transfer prohibited"
8
+ normalizeStatus("ok"); // "active" (RFC 8056)
9
+ inferDnsProvider(["a.ns.cloudflare.com"]); // "Cloudflare", or null when unsure
10
+ expiryLevel(daysUntil("2027-01-01", "2026-12-20"), [60, 30, 7]); // "warning"
11
+ expiryPhase(340, ["auto renew period"]); // "grace": status beats the date
12
+ compareRegistrations(previous, next); // changes, with signals such as "dns_moved"
13
+ compareSources(registrarAccount, publicFacts); // where two sources disagree
14
+ ```
15
+
16
+ Validation is syntactic: it does not use the public suffix list. Combine with
17
+ [`tldts`](https://www.npmjs.com/package/tldts) when you need the registrable domain. Expiry day counts are
18
+ typical gTLD values; pass your own for ccTLDs.
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[64,69]],"packageJsons":["../package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../src/names.ts","../src/dns-provider.ts","../src/status.ts","../src/expiry.ts","../src/registration.ts","../src/index.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237",{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b4af20166d3ab131bce5c53a85d109a2","signature":"7a651bbff62e83be20ba03ad7cce7753","impliedNodeFormat":99},{"version":"1594a4c68ab8cc9a0ea7f66cf7b31279","signature":"0e6ec12666c8e8fe9012652f52f0bdc5","impliedNodeFormat":99},{"version":"4ecfe54b943abc8c454e222a42fa954e","signature":"e5e46e6a7ccd01c1d63bbf87a41202dc","impliedNodeFormat":99},{"version":"f82719d537c855da2eca2b27856f6850","signature":"4ee888b4ae7f2723a5e785d61877bc69","impliedNodeFormat":99},{"version":"edad36faa059557dc5fb92cf27810d04","signature":"24bfe49a2d4f24be9d6d9625c907b39f","impliedNodeFormat":99},{"version":"b71fefdb76f3108cdda3a33411ea7292","impliedNodeFormat":99}],"fileIdsList":[[64],[66],[64,65,66,67,68],[64,65,66,67]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"erasableSyntaxOnly":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":10,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[65,1],[67,2],[69,3],[68,4]],"latestChangedDtsFile":"./index.d.ts"}
@@ -0,0 +1,12 @@
1
+ export interface DnsProviderRule {
2
+ /** Matched against a normalized nameserver host. */
3
+ pattern: RegExp;
4
+ provider: string;
5
+ }
6
+ /** Well-known DNS hosts by nameserver suffix. Extend by passing your own list. */
7
+ export declare const DNS_PROVIDER_RULES: readonly DnsProviderRule[];
8
+ /** The DNS host the nameservers belong to, or null when unknown or split between hosts. */
9
+ export declare function inferDnsProvider(nameservers: readonly string[], rules?: readonly DnsProviderRule[]): string | null;
10
+ /** Whether two nameserver sets belong to different DNS hosts. */
11
+ export declare function dnsProviderMoved(before: readonly string[], after: readonly string[], rules?: readonly DnsProviderRule[]): boolean;
12
+ //# sourceMappingURL=dns-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dns-provider.d.ts","sourceRoot":"","sources":["../src/dns-provider.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAID,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,EAAE,SAAS,eAAe,EA0BxD,CAAC;AAEF,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,KAAK,GAAE,SAAS,eAAe,EAAuB,GACrD,MAAM,GAAG,IAAI,CAOf;AAED,iEAAiE;AACjE,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,KAAK,GAAE,SAAS,eAAe,EAAuB,GACrD,OAAO,CAWT"}
@@ -0,0 +1,51 @@
1
+ import { normalizeHostname, normalizeNameservers } from './names.js';
2
+ const rule = (pattern, provider) => ({ pattern, provider });
3
+ /** Well-known DNS hosts by nameserver suffix. Extend by passing your own list. */
4
+ export const DNS_PROVIDER_RULES = [
5
+ rule(/\.ns\.cloudflare\.com$/, 'Cloudflare'),
6
+ rule(/\.domaincontrol\.com$/, 'GoDaddy'),
7
+ rule(/\.registrar-servers\.com$/, 'Namecheap'),
8
+ rule(/\.porkbun\.com$/, 'Porkbun'),
9
+ rule(/\.awsdns-\d+\.(com|net|org|co\.uk)$/, 'Amazon Route 53'),
10
+ rule(/\.googledomains\.com$/, 'Google Cloud DNS'),
11
+ rule(/\.azure-dns\.(com|net|org|info)$/, 'Azure DNS'),
12
+ rule(/\.digitalocean\.com$/, 'DigitalOcean'),
13
+ rule(/\.linode\.com$/, 'Linode'),
14
+ rule(/\.vultr\.com$/, 'Vultr'),
15
+ rule(/\.hetzner\.(com|de)$|\.your-server\.de$/, 'Hetzner'),
16
+ rule(/\.spaceship\.net$/, 'Spaceship'),
17
+ rule(/\.name\.com$/, 'Name.com'),
18
+ rule(/\.dnsimple\.com$/, 'DNSimple'),
19
+ rule(/\.nsone\.net$/, 'NS1'),
20
+ rule(/\.ultradns\.(com|net|org|biz)$/, 'UltraDNS'),
21
+ rule(/\.gandi\.net$/, 'Gandi'),
22
+ rule(/\.hover\.com$/, 'Hover'),
23
+ rule(/\.dynect\.net$/, 'Dyn'),
24
+ rule(/\.wixdns\.net$/, 'Wix'),
25
+ rule(/\.squarespacedns\.com$/, 'Squarespace'),
26
+ rule(/\.vercel-dns\.com$/, 'Vercel'),
27
+ rule(/\.netlify\.com$/, 'Netlify'),
28
+ rule(/\.bunny\.net$|\.bunnyinfra\.net$/, 'Bunny DNS'),
29
+ rule(/\.desec\.(io|org)$/, 'deSEC')
30
+ ];
31
+ /** The DNS host the nameservers belong to, or null when unknown or split between hosts. */
32
+ export function inferDnsProvider(nameservers, rules = DNS_PROVIDER_RULES) {
33
+ const found = new Set(nameservers.map((host) => rules.find(({ pattern }) => pattern.test(normalizeHostname(host)))?.provider ?? null));
34
+ return found.size === 1 ? [...found][0] : null;
35
+ }
36
+ /** Whether two nameserver sets belong to different DNS hosts. */
37
+ export function dnsProviderMoved(before, after, rules = DNS_PROVIDER_RULES) {
38
+ const a = normalizeNameservers(before);
39
+ const b = normalizeNameservers(after);
40
+ if (a.length === 0 || b.length === 0 || a.join() === b.join())
41
+ return false;
42
+ const from = inferDnsProvider(a, rules);
43
+ const to = inferDnsProvider(b, rules);
44
+ if (from !== null && to !== null)
45
+ return from !== to;
46
+ // Unrecognized hosts: moved when no nameserver shares a parent domain.
47
+ const parent = (host) => host.split('.').slice(-2).join('.');
48
+ const parents = new Set(a.map(parent));
49
+ return !b.some((host) => parents.has(parent(host)));
50
+ }
51
+ //# sourceMappingURL=dns-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dns-provider.js","sourceRoot":"","sources":["../src/dns-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAQrE,MAAM,IAAI,GAAG,CAAC,OAAe,EAAE,QAAgB,EAAmB,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;AAE7F,kFAAkF;AAClF,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,IAAI,CAAC,wBAAwB,EAAE,YAAY,CAAC;IAC5C,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC;IACxC,IAAI,CAAC,2BAA2B,EAAE,WAAW,CAAC;IAC9C,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC;IAClC,IAAI,CAAC,qCAAqC,EAAE,iBAAiB,CAAC;IAC9D,IAAI,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;IACjD,IAAI,CAAC,kCAAkC,EAAE,WAAW,CAAC;IACrD,IAAI,CAAC,sBAAsB,EAAE,cAAc,CAAC;IAC5C,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC;IAChC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,yCAAyC,EAAE,SAAS,CAAC;IAC1D,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC;IACtC,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IAChC,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IACpC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC;IAC5B,IAAI,CAAC,gCAAgC,EAAE,UAAU,CAAC;IAClD,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IAC9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AAC;IAC5E,MAAM,IAAI,GAAG,gBAAgB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,MAAM,EAAE,GAAG,gBAAgB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACtC,IAAI,IAAI,KAAK,IAAI,IAAI,EAAE,KAAK,IAAI;QAAE,OAAO,IAAI,KAAK,EAAE,CAAC;IACrD,uEAAuE;IACvE,MAAM,MAAM,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7E,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -0,0 +1,30 @@
1
+ /** Days since the epoch for an ISO calendar date, or null when it is not one. */
2
+ export declare function dayNumber(date: string): number | null;
3
+ /** Whole days from `today` to `date` (negative when past). Both are ISO calendar dates. */
4
+ export declare function daysUntil(date: string | null, today: string): number | null;
5
+ export type ExpiryLevel = 'expired' | 'critical' | 'warning' | 'ok' | 'unknown';
6
+ /**
7
+ * Severity against alert windows such as `[60, 30, 7]`: inside the widest is a
8
+ * warning, inside the closest is critical.
9
+ */
10
+ export declare function expiryLevel(days: number | null, windows: readonly number[]): ExpiryLevel;
11
+ /**
12
+ * - `grace`: past expiry, or auto-renewed by the registry on the registrar's
13
+ * behalf; usually renewable at the normal price.
14
+ * - `redemption`: deleted by the registrar; restoring costs a fee.
15
+ * - `pending_delete`: about to be released.
16
+ */
17
+ export type ExpiryPhase = 'upcoming' | 'grace' | 'redemption' | 'pending_delete';
18
+ export interface ExpiryPhaseOptions {
19
+ /** Assumed grace length when no status says otherwise. Default 45. */
20
+ graceDays?: number;
21
+ /** Days past expiry after which no phase is assumed. Default 80. */
22
+ redemptionEndDays?: number;
23
+ }
24
+ /**
25
+ * Where a registration is in its expiry lifecycle. Status beats the date,
26
+ * because registries move the date of an auto-renewed name forward before
27
+ * anyone has paid. The day-based fallbacks are typical gTLD values; ccTLDs vary.
28
+ */
29
+ export declare function expiryPhase(days: number | null, statuses: readonly string[], { graceDays, redemptionEndDays }?: ExpiryPhaseOptions): ExpiryPhase | null;
30
+ //# sourceMappingURL=expiry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expiry.d.ts","sourceRoot":"","sources":["../src/expiry.ts"],"names":[],"mappings":"AAIA,iFAAiF;AACjF,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQrD;AAED,2FAA2F;AAC3F,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK3E;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;AAEhF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,WAAW,CAOxF;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,GAAG,gBAAgB,CAAC;AAEjF,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,EAAE,SAAc,EAAE,iBAAsB,EAAE,GAAE,kBAAuB,GAClE,WAAW,GAAG,IAAI,CAUpB"}
package/dist/expiry.js ADDED
@@ -0,0 +1,63 @@
1
+ import { normalizeStatus } from './status.js';
2
+ const ISO_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
3
+ /** Days since the epoch for an ISO calendar date, or null when it is not one. */
4
+ export function dayNumber(date) {
5
+ const match = ISO_DATE.exec(date);
6
+ if (!match)
7
+ return null;
8
+ const [year, month, day] = [Number(match[1]), Number(match[2]), Number(match[3])];
9
+ const ms = Date.UTC(year, month - 1, day);
10
+ const back = new Date(ms);
11
+ if (back.getUTCMonth() !== month - 1 || back.getUTCDate() !== day)
12
+ return null;
13
+ return Math.round(ms / 86_400_000);
14
+ }
15
+ /** Whole days from `today` to `date` (negative when past). Both are ISO calendar dates. */
16
+ export function daysUntil(date, today) {
17
+ if (date === null)
18
+ return null;
19
+ const a = dayNumber(date);
20
+ const b = dayNumber(today);
21
+ return a === null || b === null ? null : a - b;
22
+ }
23
+ /**
24
+ * Severity against alert windows such as `[60, 30, 7]`: inside the widest is a
25
+ * warning, inside the closest is critical.
26
+ */
27
+ export function expiryLevel(days, windows) {
28
+ if (days === null)
29
+ return 'unknown';
30
+ if (days < 0)
31
+ return 'expired';
32
+ if (windows.length === 0)
33
+ return 'ok';
34
+ if (days <= Math.min(...windows))
35
+ return 'critical';
36
+ if (days <= Math.max(...windows))
37
+ return 'warning';
38
+ return 'ok';
39
+ }
40
+ /**
41
+ * Where a registration is in its expiry lifecycle. Status beats the date,
42
+ * because registries move the date of an auto-renewed name forward before
43
+ * anyone has paid. The day-based fallbacks are typical gTLD values; ccTLDs vary.
44
+ */
45
+ export function expiryPhase(days, statuses, { graceDays = 45, redemptionEndDays = 80 } = {}) {
46
+ const present = new Set(statuses.map(normalizeStatus));
47
+ if (present.has('pending delete'))
48
+ return 'pending_delete';
49
+ if (present.has('redemption period') || present.has('pending restore'))
50
+ return 'redemption';
51
+ if (present.has('auto renew period'))
52
+ return 'grace';
53
+ if (days === null)
54
+ return null;
55
+ if (days >= 0)
56
+ return 'upcoming';
57
+ if (days >= -graceDays)
58
+ return 'grace';
59
+ if (days >= -redemptionEndDays)
60
+ return 'redemption';
61
+ return null;
62
+ }
63
+ //# sourceMappingURL=expiry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expiry.js","sourceRoot":"","sources":["../src/expiry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,QAAQ,GAAG,2BAA2B,CAAC;AAE7C,iFAAiF;AACjF,MAAM,UAAU,SAAS,CAAC,IAAY;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAClF,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAC1C,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1B,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG;QAAE,OAAO,IAAI,CAAC;IAC/E,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC;AACrC,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,SAAS,CAAC,IAAmB,EAAE,KAAa;IAC1D,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC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IAAI;QAAE,OAAO,IAAI,CAAC;IAC/B,IAAI,IAAI,IAAI,CAAC;QAAE,OAAO,UAAU,CAAC;IACjC,IAAI,IAAI,IAAI,CAAC,SAAS;QAAE,OAAO,OAAO,CAAC;IACvC,IAAI,IAAI,IAAI,CAAC,iBAAiB;QAAE,OAAO,YAAY,CAAC;IACpD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './names.ts';
2
+ export * from './status.ts';
3
+ export * from './dns-provider.ts';
4
+ export * from './expiry.ts';
5
+ export * from './registration.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export * from './names.js';
2
+ export * from './status.js';
3
+ export * from './dns-provider.js';
4
+ export * from './expiry.js';
5
+ export * from './registration.js';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /** Lower-cases a host name and removes surrounding space and one trailing dot. */
2
+ export declare function normalizeHostname(value: string): string;
3
+ /**
4
+ * Whether `name` is a normalized domain name: lower-case ASCII (A-labels), at
5
+ * least two labels, no trailing dot. Purely syntactic: it does not consult the
6
+ * public suffix list, so `co.uk` and `a.b.example.com` both pass.
7
+ */
8
+ export declare function isDomainName(name: string): boolean;
9
+ /**
10
+ * Turns what a person typed or pasted into a domain name, or null. Accepts a
11
+ * bare name, a trailing dot, an http(s) URL, and internationalized names.
12
+ */
13
+ export declare function normalizeDomainName(raw: string): string | null;
14
+ /** Normalized, de-duplicated and sorted nameserver hosts. */
15
+ export declare function normalizeNameservers(hosts: readonly string[]): string[];
16
+ //# sourceMappingURL=names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../src/names.ts"],"names":[],"mappings":"AAIA,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAY9D;AAED,6DAA6D;AAC7D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAEvE"}
package/dist/names.js ADDED
@@ -0,0 +1,39 @@
1
+ const LABEL = '[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?';
2
+ // A top-level label is alphabetic or an A-label, so dotted numbers are not names.
3
+ const NAME = new RegExp(`^(?:${LABEL}\\.)+(?:[a-z]{2,63}|xn--[a-z0-9-]{0,57}[a-z0-9])$`);
4
+ /** Lower-cases a host name and removes surrounding space and one trailing dot. */
5
+ export function normalizeHostname(value) {
6
+ return value.trim().toLowerCase().replace(/\.$/, '');
7
+ }
8
+ /**
9
+ * Whether `name` is a normalized domain name: lower-case ASCII (A-labels), at
10
+ * least two labels, no trailing dot. Purely syntactic: it does not consult the
11
+ * public suffix list, so `co.uk` and `a.b.example.com` both pass.
12
+ */
13
+ export function isDomainName(name) {
14
+ return name.length <= 253 && NAME.test(name);
15
+ }
16
+ /**
17
+ * Turns what a person typed or pasted into a domain name, or null. Accepts a
18
+ * bare name, a trailing dot, an http(s) URL, and internationalized names.
19
+ */
20
+ export function normalizeDomainName(raw) {
21
+ let name = normalizeHostname(raw.trim().replace(/^https?:\/\//i, '').replace(/[/?#].*$/s, ''));
22
+ // oxlint-disable-next-line no-control-regex
23
+ if (/[^\u0000-\u007f]/.test(name)) {
24
+ if (/[\s@:\\]/.test(name))
25
+ return null;
26
+ try {
27
+ name = normalizeHostname(new URL(`http://${name}`).hostname);
28
+ }
29
+ catch {
30
+ return null;
31
+ }
32
+ }
33
+ return isDomainName(name) ? name : null;
34
+ }
35
+ /** Normalized, de-duplicated and sorted nameserver hosts. */
36
+ export function normalizeNameservers(hosts) {
37
+ return [...new Set(hosts.map(normalizeHostname).filter((host) => host !== ''))].toSorted();
38
+ }
39
+ //# sourceMappingURL=names.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"names.js","sourceRoot":"","sources":["../src/names.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,sCAAsC,CAAC;AACrD,kFAAkF;AAClF,MAAM,IAAI,GAAG,IAAI,MAAM,CAAC,OAAO,KAAK,mDAAmD,CAAC,CAAC;AAEzF,kFAAkF;AAClF,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACvD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,OAAO,IAAI,CAAC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAW;IAC7C,IAAI,IAAI,GAAG,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;IAC/F,4CAA4C;IAC5C,IAAI,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QACvC,IAAI,CAAC;YACH,IAAI,GAAG,iBAAiB,CAAC,IAAI,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC/D,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1C,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,oBAAoB,CAAC,KAAwB;IAC3D,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC7F,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { type StatusSignal } from './status.ts';
2
+ /** What is publicly knowable about a registration. `@formless63/rdap` results satisfy this. */
3
+ export interface RegistrationFacts {
4
+ registrar: string | null;
5
+ /** ISO calendar date. */
6
+ expiresOn: string | null;
7
+ status: readonly string[];
8
+ nameservers: readonly string[];
9
+ }
10
+ export type RegistrationField = 'expiresOn' | 'registrar' | 'nameservers' | 'status';
11
+ export type ChangeSignal = StatusSignal | 'registrar_changed' | 'dns_moved';
12
+ export interface RegistrationChange {
13
+ field: RegistrationField;
14
+ before: string | string[] | null;
15
+ after: string | string[] | null;
16
+ /** Why the change deserves attention; empty when routine. */
17
+ signals: ChangeSignal[];
18
+ }
19
+ export declare const CHANGE_SIGNAL_LABELS: Record<ChangeSignal, string>;
20
+ export declare const REGISTRATION_FIELD_LABELS: Record<RegistrationField, string>;
21
+ /**
22
+ * What changed between two observations. A first observation (`previous` null)
23
+ * is not a change, and a blank expiry or registrar is treated as "not stated".
24
+ */
25
+ export declare function compareRegistrations(previous: RegistrationFacts | null, next: RegistrationFacts): RegistrationChange[];
26
+ /** One line of English, e.g. `Expiry 2026-12-09 → 2027-12-09 (renewed)`. */
27
+ export declare function describeChange(change: RegistrationChange): string;
28
+ export interface SourceMismatch {
29
+ field: 'expiresOn' | 'nameservers' | 'registrar';
30
+ account: string | string[] | null;
31
+ public: string | string[] | null;
32
+ }
33
+ /**
34
+ * Where a registrar account and public data (RDAP) disagree. Expiries one day
35
+ * apart are time-zone noise; a registrar name matches as a substring, ignoring
36
+ * case and punctuation ("Spaceship" in "Spaceship, Inc.").
37
+ */
38
+ export declare function compareSources(account: Pick<RegistrationFacts, 'expiresOn' | 'nameservers'> & {
39
+ registrar: string;
40
+ }, publicFacts: Pick<RegistrationFacts, 'expiresOn' | 'nameservers' | 'registrar'>): SourceMismatch[];
41
+ //# sourceMappingURL=registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../src/registration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhF,+FAA+F;AAC/F,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,yBAAyB;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,QAAQ,CAAC;AACrF,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,mBAAmB,GAAG,WAAW,CAAC;AAE5E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;IAChC,6DAA6D;IAC7D,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAQ7D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAKvE,CAAC;AAQF;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,EAClC,IAAI,EAAE,iBAAiB,GACtB,kBAAkB,EAAE,CAmCtB;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,CAajE;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,WAAW,GAAG,aAAa,GAAG,WAAW,CAAC;IACjD,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;CAClC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,aAAa,CAAC,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EACrF,WAAW,EAAE,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,aAAa,GAAG,WAAW,CAAC,GAC9E,cAAc,EAAE,CAuBlB"}
@@ -0,0 +1,103 @@
1
+ import { dnsProviderMoved } from './dns-provider.js';
2
+ import { normalizeHostname } from './names.js';
3
+ import { normalizeStatus, statusSignals } from './status.js';
4
+ import { dayNumber } from './expiry.js';
5
+ export const CHANGE_SIGNAL_LABELS = {
6
+ client_hold: 'Client hold (the domain does not resolve)',
7
+ server_hold: 'Server hold (the registry stopped resolving it)',
8
+ redemption_period: 'Redemption period (expired; restore fee applies)',
9
+ pending_delete: 'Pending delete (about to be released)',
10
+ pending_transfer: 'Transfer pending',
11
+ registrar_changed: 'Registrar changed (transferred)',
12
+ dns_moved: 'Nameservers moved to another DNS provider'
13
+ };
14
+ export const REGISTRATION_FIELD_LABELS = {
15
+ expiresOn: 'Expiry',
16
+ registrar: 'Registrar',
17
+ nameservers: 'Nameservers',
18
+ status: 'Status'
19
+ };
20
+ function sameSet(a, b, normalize) {
21
+ const x = [...new Set(a.map(normalize))].toSorted();
22
+ const y = [...new Set(b.map(normalize))].toSorted();
23
+ return x.length === y.length && x.every((value, index) => value === y[index]);
24
+ }
25
+ /**
26
+ * What changed between two observations. A first observation (`previous` null)
27
+ * is not a change, and a blank expiry or registrar is treated as "not stated".
28
+ */
29
+ export function compareRegistrations(previous, next) {
30
+ if (previous === null)
31
+ return [];
32
+ const changes = [];
33
+ if (next.expiresOn !== null && previous.expiresOn !== next.expiresOn) {
34
+ changes.push({ field: 'expiresOn', before: previous.expiresOn, after: next.expiresOn, signals: [] });
35
+ }
36
+ if (next.registrar !== null &&
37
+ (previous.registrar ?? '').toLowerCase() !== next.registrar.toLowerCase()) {
38
+ changes.push({
39
+ field: 'registrar',
40
+ before: previous.registrar,
41
+ after: next.registrar,
42
+ signals: previous.registrar === null ? [] : ['registrar_changed']
43
+ });
44
+ }
45
+ if (!sameSet(previous.nameservers, next.nameservers, normalizeHostname)) {
46
+ changes.push({
47
+ field: 'nameservers',
48
+ before: [...previous.nameservers],
49
+ after: [...next.nameservers],
50
+ signals: dnsProviderMoved(previous.nameservers, next.nameservers) ? ['dns_moved'] : []
51
+ });
52
+ }
53
+ if (!sameSet(previous.status, next.status, normalizeStatus)) {
54
+ const had = new Set(statusSignals(previous.status));
55
+ changes.push({
56
+ field: 'status',
57
+ before: [...previous.status],
58
+ after: [...next.status],
59
+ signals: statusSignals(next.status).filter((signal) => !had.has(signal))
60
+ });
61
+ }
62
+ return changes;
63
+ }
64
+ /** One line of English, e.g. `Expiry 2026-12-09 → 2027-12-09 (renewed)`. */
65
+ export function describeChange(change) {
66
+ const show = (value) => (Array.isArray(value) ? value.join(', ') : value) || 'none';
67
+ let suffix = '';
68
+ if (change.field === 'expiresOn' &&
69
+ typeof change.before === 'string' &&
70
+ typeof change.after === 'string') {
71
+ suffix = change.after > change.before ? ' (renewed)' : ' (moved earlier)';
72
+ }
73
+ const flags = change.signals.map((signal) => CHANGE_SIGNAL_LABELS[signal]).join('; ');
74
+ return `${REGISTRATION_FIELD_LABELS[change.field]} ${show(change.before)} → ${show(change.after)}${suffix}${flags ? ` — ${flags}` : ''}`;
75
+ }
76
+ /**
77
+ * Where a registrar account and public data (RDAP) disagree. Expiries one day
78
+ * apart are time-zone noise; a registrar name matches as a substring, ignoring
79
+ * case and punctuation ("Spaceship" in "Spaceship, Inc.").
80
+ */
81
+ export function compareSources(account, publicFacts) {
82
+ const out = [];
83
+ const a = account.expiresOn === null ? null : dayNumber(account.expiresOn);
84
+ const b = publicFacts.expiresOn === null ? null : dayNumber(publicFacts.expiresOn);
85
+ if (a !== null && b !== null && Math.abs(a - b) > 1) {
86
+ out.push({ field: 'expiresOn', account: account.expiresOn, public: publicFacts.expiresOn });
87
+ }
88
+ if (account.nameservers.length > 0 &&
89
+ publicFacts.nameservers.length > 0 &&
90
+ !sameSet(account.nameservers, publicFacts.nameservers, normalizeHostname)) {
91
+ out.push({
92
+ field: 'nameservers',
93
+ account: [...account.nameservers],
94
+ public: [...publicFacts.nameservers]
95
+ });
96
+ }
97
+ const key = (name) => name.toLowerCase().replace(/[^a-z0-9]/g, '');
98
+ if (publicFacts.registrar !== null && !key(publicFacts.registrar).includes(key(account.registrar))) {
99
+ out.push({ field: 'registrar', account: account.registrar, public: publicFacts.registrar });
100
+ }
101
+ return out;
102
+ }
103
+ //# sourceMappingURL=registration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.js","sourceRoot":"","sources":["../src/registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,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,CAAC,GAAG,WAAW,CAAC,WAAW,CAAC;SACrC,CAAC,CAAC;IACL,CAAC;IACD,MAAM,GAAG,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACnF,IAAI,WAAW,CAAC,SAAS,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;QACnG,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC;IAC9F,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * A domain status in RDAP wording: `clientTransferProhibited` becomes
3
+ * `client transfer prohibited`, `ok` becomes `active` (RFC 8056). RDAP values,
4
+ * underscored and hyphenated spellings normalize to the same text.
5
+ */
6
+ export declare function normalizeStatus(status: string): string;
7
+ /** Normalized, de-duplicated and sorted statuses. */
8
+ export declare function normalizeStatuses(statuses: readonly string[]): string[];
9
+ /** Statuses that mean the registration is in trouble or in motion. */
10
+ export type StatusSignal = 'client_hold' | 'server_hold' | 'redemption_period' | 'pending_delete' | 'pending_transfer';
11
+ /** The signals a status list carries, in a fixed order. */
12
+ export declare function statusSignals(statuses: readonly string[]): StatusSignal[];
13
+ /** Whether transfers are locked; null when no statuses are known. */
14
+ export declare function isTransferLocked(statuses: readonly string[]): boolean | null;
15
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../src/status.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAQtD;AAED,qDAAqD;AACrD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAEvE;AAED,sEAAsE;AACtE,MAAM,MAAM,YAAY,GACpB,aAAa,GACb,aAAa,GACb,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,CAAC;AAWvB,2DAA2D;AAC3D,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,YAAY,EAAE,CAOzE;AAED,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,GAAG,IAAI,CAK5E"}
package/dist/status.js ADDED
@@ -0,0 +1,47 @@
1
+ /** EPP statuses whose RDAP wording is not just the split camelCase (RFC 8056). */
2
+ const IRREGULAR = { ok: 'active', linked: 'associated' };
3
+ /**
4
+ * A domain status in RDAP wording: `clientTransferProhibited` becomes
5
+ * `client transfer prohibited`, `ok` becomes `active` (RFC 8056). RDAP values,
6
+ * underscored and hyphenated spellings normalize to the same text.
7
+ */
8
+ export function normalizeStatus(status) {
9
+ const words = status
10
+ .trim()
11
+ .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
12
+ .replace(/[_-]+/g, ' ')
13
+ .replace(/\s+/g, ' ')
14
+ .toLowerCase();
15
+ return IRREGULAR[words] ?? words;
16
+ }
17
+ /** Normalized, de-duplicated and sorted statuses. */
18
+ export function normalizeStatuses(statuses) {
19
+ return [...new Set(statuses.map(normalizeStatus).filter((status) => status !== ''))].toSorted();
20
+ }
21
+ const SIGNALS = [
22
+ ['client hold', 'client_hold'],
23
+ ['server hold', 'server_hold'],
24
+ ['redemption period', 'redemption_period'],
25
+ ['pending restore', 'redemption_period'],
26
+ ['pending delete', 'pending_delete'],
27
+ ['pending transfer', 'pending_transfer']
28
+ ];
29
+ /** The signals a status list carries, in a fixed order. */
30
+ export function statusSignals(statuses) {
31
+ const present = new Set(statuses.map(normalizeStatus));
32
+ const out = [];
33
+ for (const [status, signal] of SIGNALS) {
34
+ if (present.has(status) && !out.includes(signal))
35
+ out.push(signal);
36
+ }
37
+ return out;
38
+ }
39
+ /** Whether transfers are locked; null when no statuses are known. */
40
+ export function isTransferLocked(statuses) {
41
+ if (statuses.length === 0)
42
+ return null;
43
+ return statuses
44
+ .map(normalizeStatus)
45
+ .some((status) => status === 'client transfer prohibited' || status === 'server transfer prohibited');
46
+ }
47
+ //# sourceMappingURL=status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.js","sourceRoot":"","sources":["../src/status.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,MAAM,SAAS,GAA2B,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;AAEjF;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAAc;IAC5C,MAAM,KAAK,GAAG,MAAM;SACjB,IAAI,EAAE;SACN,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC;SACtC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;SACtB,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,WAAW,EAAE,CAAC;IACjB,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC;AACnC,CAAC;AAED,qDAAqD;AACrD,MAAM,UAAU,iBAAiB,CAAC,QAA2B;IAC3D,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAClG,CAAC;AAUD,MAAM,OAAO,GAAmE;IAC9E,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,aAAa,EAAE,aAAa,CAAC;IAC9B,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC1C,CAAC,iBAAiB,EAAE,mBAAmB,CAAC;IACxC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;CACzC,CAAC;AAEF,2DAA2D;AAC3D,MAAM,UAAU,aAAa,CAAC,QAA2B;IACvD,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;IACvD,MAAM,GAAG,GAAmB,EAAE,CAAC;IAC/B,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC;YAAE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,gBAAgB,CAAC,QAA2B;IAC1D,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACvC,OAAO,QAAQ;SACZ,GAAG,CAAC,eAAe,CAAC;SACpB,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,4BAA4B,IAAI,MAAM,KAAK,4BAA4B,CAAC,CAAC;AAC1G,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@formless63/domain-intel",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Domain-name facts without I/O: normalization, EPP/RDAP status, DNS provider inference, change signals, expiry.",
5
+ "keywords": [
6
+ "domain",
7
+ "dns",
8
+ "epp",
9
+ "rdap",
10
+ "whois"
11
+ ],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/formless63/netlibs.git",
16
+ "directory": "packages/domain-intel"
17
+ },
18
+ "homepage": "https://github.com/formless63/netlibs/tree/main/packages/domain-intel#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/formless63/netlibs/issues"
21
+ },
22
+ "type": "module",
23
+ "sideEffects": false,
24
+ "engines": {
25
+ "node": ">=22"
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "LICENSE",
30
+ "README.md"
31
+ ],
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "default": "./dist/index.js"
36
+ },
37
+ "./package.json": "./package.json"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ }
42
+ }