@valbuild/server 0.27.0 → 0.28.0
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.
@@ -1442,7 +1442,7 @@ class ProxyValServer {
|
|
1442
1442
|
return url.toString();
|
1443
1443
|
}
|
1444
1444
|
getAppErrorUrl(error) {
|
1445
|
-
const url = new URL(
|
1445
|
+
const url = new URL(`/auth/${this.options.valName}/authorize`, this.options.valBuildUrl);
|
1446
1446
|
url.searchParams.set("error", encodeURIComponent(error));
|
1447
1447
|
return url.toString();
|
1448
1448
|
}
|
@@ -1745,7 +1745,7 @@ async function initHandlerOptions(route, opts) {
|
|
1745
1745
|
if (!maybeGitBranch) {
|
1746
1746
|
throw new Error("VAL_GIT_BRANCH env var must be set in proxy mode");
|
1747
1747
|
}
|
1748
|
-
const maybeValName = opts.
|
1748
|
+
const maybeValName = opts.valName || process.env.VAL_NAME;
|
1749
1749
|
if (!maybeValName) {
|
1750
1750
|
throw new Error("VAL_NAME env var must be set in proxy mode");
|
1751
1751
|
}
|
@@ -1442,7 +1442,7 @@ class ProxyValServer {
|
|
1442
1442
|
return url.toString();
|
1443
1443
|
}
|
1444
1444
|
getAppErrorUrl(error) {
|
1445
|
-
const url = new URL(
|
1445
|
+
const url = new URL(`/auth/${this.options.valName}/authorize`, this.options.valBuildUrl);
|
1446
1446
|
url.searchParams.set("error", encodeURIComponent(error));
|
1447
1447
|
return url.toString();
|
1448
1448
|
}
|
@@ -1745,7 +1745,7 @@ async function initHandlerOptions(route, opts) {
|
|
1745
1745
|
if (!maybeGitBranch) {
|
1746
1746
|
throw new Error("VAL_GIT_BRANCH env var must be set in proxy mode");
|
1747
1747
|
}
|
1748
|
-
const maybeValName = opts.
|
1748
|
+
const maybeValName = opts.valName || process.env.VAL_NAME;
|
1749
1749
|
if (!maybeValName) {
|
1750
1750
|
throw new Error("VAL_NAME env var must be set in proxy mode");
|
1751
1751
|
}
|
@@ -1411,7 +1411,7 @@ class ProxyValServer {
|
|
1411
1411
|
return url.toString();
|
1412
1412
|
}
|
1413
1413
|
getAppErrorUrl(error) {
|
1414
|
-
const url = new URL(
|
1414
|
+
const url = new URL(`/auth/${this.options.valName}/authorize`, this.options.valBuildUrl);
|
1415
1415
|
url.searchParams.set("error", encodeURIComponent(error));
|
1416
1416
|
return url.toString();
|
1417
1417
|
}
|
@@ -1714,7 +1714,7 @@ async function initHandlerOptions(route, opts) {
|
|
1714
1714
|
if (!maybeGitBranch) {
|
1715
1715
|
throw new Error("VAL_GIT_BRANCH env var must be set in proxy mode");
|
1716
1716
|
}
|
1717
|
-
const maybeValName = opts.
|
1717
|
+
const maybeValName = opts.valName || process.env.VAL_NAME;
|
1718
1718
|
if (!maybeValName) {
|
1719
1719
|
throw new Error("VAL_NAME env var must be set in proxy mode");
|
1720
1720
|
}
|
package/package.json
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
"./package.json": "./package.json"
|
13
13
|
},
|
14
14
|
"types": "dist/valbuild-server.cjs.d.ts",
|
15
|
-
"version": "0.
|
15
|
+
"version": "0.28.0",
|
16
16
|
"scripts": {
|
17
17
|
"typecheck": "tsc --noEmit",
|
18
18
|
"test": "jest",
|
@@ -25,8 +25,8 @@
|
|
25
25
|
"concurrently": "^7.6.0"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
|
-
"@valbuild/core": "~0.
|
29
|
-
"@valbuild/ui": "~0.
|
28
|
+
"@valbuild/core": "~0.28.0",
|
29
|
+
"@valbuild/ui": "~0.28.0",
|
30
30
|
"express": "^4.18.2",
|
31
31
|
"image-size": "^1.0.2",
|
32
32
|
"quickjs-emscripten": "^0.21.1",
|