@deslop/auth 0.1.1317 → 0.1.1318
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/server.js +6 -1
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -105287,6 +105287,7 @@ const updateRelease = fnUntraced(function* (name) {
|
|
|
105287
105287
|
});
|
|
105288
105288
|
// ../../packages/runtime/src/server/cli.ts
|
|
105289
105289
|
const DEFAULT_HOST = "127.0.0.1";
|
|
105290
|
+
const TailnetSelf = Struct$2({ Self: Struct$2({ DNSName: String$6 }) });
|
|
105290
105291
|
const SETTINGS = {
|
|
105291
105292
|
DOMAIN: {
|
|
105292
105293
|
description: "Parent domain for Deslop apps; without it every caller is the developer",
|
|
@@ -105302,8 +105303,12 @@ const SETTINGS = {
|
|
|
105302
105303
|
const configProvider = fnUntraced(function* (given, defaultPort) {
|
|
105303
105304
|
const port = given["PORT"] ?? `${defaultPort}`;
|
|
105304
105305
|
const name = yield* appName;
|
|
105306
|
+
const tailnet = yield* pipe(executeProcess("tailscale", ["status", "--json"]), flatMap$3(decodeUnknownEffect(fromJsonString(TailnetSelf))), map$7((status) => replace(/\.$/u, "")(status.Self.DNSName)), timeout("5 seconds"), option$1);
|
|
105305
105307
|
const urls = match$8(fromUndefinedOr(given["DOMAIN"]), {
|
|
105306
|
-
onNone: () => ({ APP_URL:
|
|
105308
|
+
onNone: () => ({ APP_URL: pipe(tailnet, filter$9(isNonEmpty$1), match$8({
|
|
105309
|
+
onNone: () => `http://localhost:${port}`,
|
|
105310
|
+
onSome: (host) => `https://${host}:${port}`
|
|
105311
|
+
})) }),
|
|
105307
105312
|
onSome: (domain) => ({
|
|
105308
105313
|
APP_URL: `https://${name}.${domain}`,
|
|
105309
105314
|
AUTH_URL: `https://auth.${domain}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1318",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=26"
|
|
35
35
|
},
|
|
36
|
-
"fingerprint": "
|
|
36
|
+
"fingerprint": "f57648b986abf5e84714330ecd1898e701a22f297e0fb80d83c7e60221d623f7"
|
|
37
37
|
}
|