spec-3nweb-server 1.8.3 → 1.8.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/build/main.js +2 -1
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -213,6 +213,7 @@ async function displayTokenValue(conf, tokenId) {
|
|
|
213
213
|
process.exit(-1);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
+
const signupLinkStart = `w3n://signup/`;
|
|
216
217
|
function signupLinkFrom(conf, token = '') {
|
|
217
218
|
var _a;
|
|
218
219
|
if (!((_a = conf.signup) === null || _a === void 0 ? void 0 : _a.serviceUrl)) {
|
|
@@ -220,7 +221,7 @@ function signupLinkFrom(conf, token = '') {
|
|
|
220
221
|
}
|
|
221
222
|
try {
|
|
222
223
|
const url = new URL(conf.signup.serviceUrl);
|
|
223
|
-
return
|
|
224
|
+
return `${signupLinkStart}${url.host}${url.pathname}${url.pathname.endsWith('/') ? '' : '/'}${token}`;
|
|
224
225
|
}
|
|
225
226
|
catch (err) {
|
|
226
227
|
return;
|