@deslop/portfolio 0.1.1266 → 0.1.1267
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 +3 -3
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -74133,7 +74133,7 @@ String$6.check(isPattern(/^\d+(?:,\d+)*$/u));
|
|
|
74133
74133
|
function flagsOf(settings) {
|
|
74134
74134
|
return map$9(settings, (setting, key) => pipe(String$1(setting.flag), withSchema(setting.schema), withFallbackConfig(schema$1(setting.schema, key)), withDescription(`${setting.description} [${key}]`), optional));
|
|
74135
74135
|
}
|
|
74136
|
-
const
|
|
74136
|
+
const configProvider = fnUntraced(function* (given, defaultPort) {
|
|
74137
74137
|
const port = given["PORT"] ?? `${defaultPort}`;
|
|
74138
74138
|
const url = given["APP_URL"] ?? `http://localhost:${port}`;
|
|
74139
74139
|
if (given["AUTH_URL"] !== void 0 && new URL(url).protocol !== "https:") return yield* AppError.make({ message: "With --auth, set --url to the app's HTTPS origin" });
|
|
@@ -74179,12 +74179,12 @@ function runApp(app) {
|
|
|
74179
74179
|
};
|
|
74180
74180
|
const root = pipe(make$8(name), withSharedFlags(flagsOf(settings)));
|
|
74181
74181
|
const given = map$5(root, (input) => getSomes$1(input));
|
|
74182
|
-
return yield* pipe(root, withHandler((input) => flatMap$2(
|
|
74182
|
+
return yield* pipe(root, withHandler((input) => flatMap$2(configProvider(getSomes$1(input), metadata.config.port), (values) => provideService(server(app), ConfigProvider, values))), withSubcommands([pipe(make$8("service"), withSubcommands([
|
|
74183
74183
|
make$8("install", {}, fnUntraced(function* () {
|
|
74184
74184
|
const fs = yield* FileSystem;
|
|
74185
74185
|
const path = yield* Path$1;
|
|
74186
74186
|
const flags = yield* given;
|
|
74187
|
-
yield*
|
|
74187
|
+
yield* configProvider(flags, metadata.config.port);
|
|
74188
74188
|
const entry = path.join(yield* activate(name, yield* fs.realPath(packageRoot)), "dist", "server.js");
|
|
74189
74189
|
const args = flatten$3(collect$1(flags, (key, value) => [`--${settings[key]?.flag ?? key}`, value]));
|
|
74190
74190
|
yield* output(yield* install(name, [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/portfolio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1267",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=26"
|
|
33
33
|
},
|
|
34
|
-
"fingerprint": "
|
|
34
|
+
"fingerprint": "f23c351790b54a042b7121c67e796b2ac3ef9a790363e6c42d619d8f62168223"
|
|
35
35
|
}
|