@canmi/me 2026.1005.0 → 2026.1005.1
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/dist/mail/src/index.d.ts +18 -0
- package/dist/mail/src/index.js +22 -0
- package/dist/urls/src/index.d.ts +5 -8
- package/dist/urls/src/index.js +6 -8
- package/package.json +5 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region mail/src/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The domain every box is at. A box is an address a site answers on, forwarded by Cloudflare's
|
|
4
|
+
* Email Routing, so the mailbox behind it can change without it; the author's own address is a
|
|
5
|
+
* person's and is `@canmi/me/identity`'s, never one of these. See spec/me/mail.md.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MAIL_DOMAIN = "canmi.net";
|
|
8
|
+
/** Every box, by name, with what it is for. A box is added here before anything names it. */
|
|
9
|
+
export declare const BOXES: {
|
|
10
|
+
readonly security: "a vulnerability report, the address every host's security.txt names";
|
|
11
|
+
readonly support: 'reader mail, and the address a page offers when its own way to write has failed';
|
|
12
|
+
};
|
|
13
|
+
export type Box = keyof typeof BOXES;
|
|
14
|
+
/** The address `box` is at, spelled from the one domain. */
|
|
15
|
+
export declare function addressOf(box: Box): string;
|
|
16
|
+
/** The `mailto:` link to `box`. */
|
|
17
|
+
export declare function mailtoOf(box: Box): string;
|
|
18
|
+
//#endregion
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region mail/src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* The domain every box is at. A box is an address a site answers on, forwarded by Cloudflare's
|
|
4
|
+
* Email Routing, so the mailbox behind it can change without it; the author's own address is a
|
|
5
|
+
* person's and is `@canmi/me/identity`'s, never one of these. See spec/me/mail.md.
|
|
6
|
+
*/
|
|
7
|
+
const MAIL_DOMAIN = "canmi.net";
|
|
8
|
+
/** Every box, by name, with what it is for. A box is added here before anything names it. */
|
|
9
|
+
const BOXES = {
|
|
10
|
+
security: "a vulnerability report, the address every host's security.txt names",
|
|
11
|
+
support: "reader mail, and the address a page offers when its own way to write has failed"
|
|
12
|
+
};
|
|
13
|
+
/** The address `box` is at, spelled from the one domain. */
|
|
14
|
+
function addressOf(box) {
|
|
15
|
+
return `${box}@${MAIL_DOMAIN}`;
|
|
16
|
+
}
|
|
17
|
+
/** The `mailto:` link to `box`. */
|
|
18
|
+
function mailtoOf(box) {
|
|
19
|
+
return `mailto:${addressOf(box)}`;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { BOXES, MAIL_DOMAIN, addressOf, mailtoOf };
|
package/dist/urls/src/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region urls/src/index.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* The author's own: their site, their identity's addresses, the world's addresses anyone could
|
|
4
|
-
* use, and the functions every program here reads a request with. Depends on nothing
|
|
5
|
-
*
|
|
6
|
-
* the addresses whose names are the author's".
|
|
4
|
+
* use, and the functions every program here reads a request with. Depends on nothing of theirs
|
|
5
|
+
* but the mail boxes, which depend on nothing, so every layer above may read it. See
|
|
6
|
+
* spec/me/addresses.md, "`@canmi/me/urls` holds the addresses whose names are the author's".
|
|
7
7
|
*/
|
|
8
8
|
/** The author's site. */
|
|
9
9
|
export declare const SITE = "https://canmi.net";
|
|
@@ -25,12 +25,9 @@ export declare const GITHUB_OWNER = "canmi21";
|
|
|
25
25
|
* rather than written into a route.
|
|
26
26
|
*/
|
|
27
27
|
export declare const SOURCE = "https://github.com/canmi21/web";
|
|
28
|
-
/**
|
|
29
|
-
* Where a vulnerability is reported, published in every zone's security.txt. An address on the
|
|
30
|
-
* site's domain that Cloudflare forwards, so the mailbox behind it can change without it.
|
|
31
|
-
*/
|
|
28
|
+
/** Where a vulnerability is reported, published in every zone's security.txt; see ../../mail. */
|
|
32
29
|
export declare const CONTACT: {
|
|
33
|
-
readonly security:
|
|
30
|
+
readonly security: string;
|
|
34
31
|
};
|
|
35
32
|
/** The world's addresses: services somebody else runs, which anything here may reach. */
|
|
36
33
|
export declare const EXTERNAL: {
|
package/dist/urls/src/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { mailtoOf } from "../../mail/src/index.js";
|
|
1
2
|
//#region urls/src/index.ts
|
|
2
3
|
/**
|
|
3
4
|
* The author's own: their site, their identity's addresses, the world's addresses anyone could
|
|
4
|
-
* use, and the functions every program here reads a request with. Depends on nothing
|
|
5
|
-
*
|
|
6
|
-
* the addresses whose names are the author's".
|
|
5
|
+
* use, and the functions every program here reads a request with. Depends on nothing of theirs
|
|
6
|
+
* but the mail boxes, which depend on nothing, so every layer above may read it. See
|
|
7
|
+
* spec/me/addresses.md, "`@canmi/me/urls` holds the addresses whose names are the author's".
|
|
7
8
|
*/
|
|
8
9
|
/** The author's site. */
|
|
9
10
|
const SITE = "https://canmi.net";
|
|
@@ -25,11 +26,8 @@ const GITHUB_OWNER = "canmi21";
|
|
|
25
26
|
* rather than written into a route.
|
|
26
27
|
*/
|
|
27
28
|
const SOURCE = `https://github.com/${GITHUB_OWNER}/web`;
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
* site's domain that Cloudflare forwards, so the mailbox behind it can change without it.
|
|
31
|
-
*/
|
|
32
|
-
const CONTACT = { security: "mailto:security@canmi.net" };
|
|
29
|
+
/** Where a vulnerability is reported, published in every zone's security.txt; see ../../mail. */
|
|
30
|
+
const CONTACT = { security: mailtoOf("security") };
|
|
33
31
|
/** The world's addresses: services somebody else runs, which anything here may reach. */
|
|
34
32
|
const EXTERNAL = {
|
|
35
33
|
github: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canmi/me",
|
|
3
|
-
"version": "2026.1005.
|
|
3
|
+
"version": "2026.1005.1",
|
|
4
4
|
"description": "My addresses, identity and languages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"canmi",
|
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
"types": "./dist/locales/src/format.d.ts",
|
|
42
42
|
"default": "./dist/locales/src/format.js"
|
|
43
43
|
},
|
|
44
|
+
"./mail": {
|
|
45
|
+
"types": "./dist/mail/src/index.d.ts",
|
|
46
|
+
"default": "./dist/mail/src/index.js"
|
|
47
|
+
},
|
|
44
48
|
"./robots": {
|
|
45
49
|
"types": "./dist/robots/src/index.d.ts",
|
|
46
50
|
"default": "./dist/robots/src/index.js"
|