@vibes.diy/vibe-runtime 14.3.368 → 14.3.370
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/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +4 -4
- package/short-self-link.d.ts +1 -0
- package/short-self-link.js +3 -0
package/index.d.ts
CHANGED
|
@@ -44,3 +44,4 @@ export { useVibe, type UseVibeResult, type CanVerdict, type UseVibeMe } from "./
|
|
|
44
44
|
export { useEnv } from "./use-env.js";
|
|
45
45
|
export { createVibe, buildCreateVibeUrl, resolveBuilderOrigin, resolveBuilderOriginFrom, VIBES_DIY_BUILDER_URL, CREATE_VIBE_SAFE_URL_LENGTH, type CreateVibeOptions, } from "./create-vibe.js";
|
|
46
46
|
export { buildGithubInstallUrl, buildGithubInstallUrlFrom, type GithubInstallVibe } from "./github-install-url.js";
|
|
47
|
+
export { publicVibeBase } from "./short-self-link.js";
|
package/index.js
CHANGED
|
@@ -40,3 +40,4 @@ export { useVibe } from "./use-vibe.js";
|
|
|
40
40
|
export { useEnv } from "./use-env.js";
|
|
41
41
|
export { createVibe, buildCreateVibeUrl, resolveBuilderOrigin, resolveBuilderOriginFrom, VIBES_DIY_BUILDER_URL, CREATE_VIBE_SAFE_URL_LENGTH, } from "./create-vibe.js";
|
|
42
42
|
export { buildGithubInstallUrl, buildGithubInstallUrlFrom } from "./github-install-url.js";
|
|
43
|
+
export { publicVibeBase } from "./short-self-link.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/vibe-runtime",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.370",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@adviser/cement": "~0.5.37",
|
|
39
|
-
"@vibes.diy/api-types": "14.3.
|
|
40
|
-
"@vibes.diy/base": "14.3.
|
|
41
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
39
|
+
"@vibes.diy/api-types": "14.3.370",
|
|
40
|
+
"@vibes.diy/base": "14.3.370",
|
|
41
|
+
"@vibes.diy/vibe-types": "14.3.370",
|
|
42
42
|
"arktype": "~2.2.9",
|
|
43
43
|
"charwise": "~3.0.1",
|
|
44
44
|
"es-module-lexer": "~3.0.4",
|
package/short-self-link.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const SHORT_LINK_STRIP_PARAMS: ReadonlySet<string>;
|
|
2
|
+
export declare function publicVibeBase(host: string): string | undefined;
|
|
2
3
|
export declare function shortSelfLinks(text: string, host: string): string;
|
|
3
4
|
export interface ShortSelfLinkHooks {
|
|
4
5
|
readonly nav?: Navigator;
|
package/short-self-link.js
CHANGED
|
@@ -26,6 +26,9 @@ function appOwnedSearch(search) {
|
|
|
26
26
|
}
|
|
27
27
|
const PUBLIC_ORIGIN = "https://vibes.diy";
|
|
28
28
|
const VIBE_LABEL_RE = /^([a-z0-9][a-z0-9-]*?)--([a-z0-9][a-z0-9-]+)$/i;
|
|
29
|
+
export function publicVibeBase(host) {
|
|
30
|
+
return publicBaseFor(host);
|
|
31
|
+
}
|
|
29
32
|
function publicBaseFor(host) {
|
|
30
33
|
const label = host.split(":")[0]?.split(".")[0] ?? "";
|
|
31
34
|
const m = VIBE_LABEL_RE.exec(label);
|