@canmi/me 2026.1004.3 → 2026.1004.4
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/urls/src/index.d.ts
CHANGED
|
@@ -5,15 +5,9 @@
|
|
|
5
5
|
* theirs, so every layer above may read it. See spec/me/addresses.md, "`@canmi/me/urls` holds
|
|
6
6
|
* the addresses whose names are the author's".
|
|
7
7
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* How far the sandbox shifts every pinned port, and 0 everywhere else. Read from the environment
|
|
10
|
-
* where there is one, and stated by the build where there is not; production states nothing and
|
|
11
|
-
* gets 0. See web's spec/architecture/modes.md, "Every port is shifted by one hundred".
|
|
12
|
-
*/
|
|
13
|
-
export declare const PORT_OFFSET: number;
|
|
14
8
|
/** The author's site. */
|
|
15
9
|
export declare const SITE = "https://canmi.net";
|
|
16
|
-
/** The port the site's development server answers on
|
|
10
|
+
/** The port the site's development server answers on. */
|
|
17
11
|
export declare const SITE_PORT = 26511;
|
|
18
12
|
/**
|
|
19
13
|
* The GitHub account everything here is published under.
|
package/dist/urls/src/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
//#region urls/src/index.ts
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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 else of
|
|
5
|
+
* theirs, so every layer above may read it. See spec/me/addresses.md, "`@canmi/me/urls` holds
|
|
6
|
+
* the addresses whose names are the author's".
|
|
6
7
|
*/
|
|
7
|
-
const PORT_OFFSET = typeof STATED_PORT_OFFSET === "number" ? STATED_PORT_OFFSET : Number(globalThis.process?.env?.LATTICE_PORT_OFFSET || 0);
|
|
8
8
|
/** The author's site. */
|
|
9
9
|
const SITE = "https://canmi.net";
|
|
10
|
-
/** The port the site's development server answers on
|
|
10
|
+
/** The port the site's development server answers on. */
|
|
11
11
|
const SITE_PORT = 26511;
|
|
12
12
|
/**
|
|
13
13
|
* The GitHub account everything here is published under.
|
|
@@ -147,4 +147,4 @@ function normalizedLocation(url) {
|
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
|
-
export { CONTACT, EXTERNAL, GITHUB_OWNER, LOOPBACK_HOST,
|
|
150
|
+
export { CONTACT, EXTERNAL, GITHUB_OWNER, LOOPBACK_HOST, SITE, SITE_PORT, SOURCE, isDevHost, loopbackUrl, normalizePath, normalizedLocation };
|
package/package.json
CHANGED