@comet/cli 8.0.0-canary-20240920091107 → 8.0.0-canary-20241015131409
Sign up to get free protection for your applications and to get access to all the features.
@@ -162,7 +162,7 @@ exports.injectSiteConfigsCommand = new commander_1.Command("inject-site-configs"
|
|
162
162
|
str = _b.sent();
|
163
163
|
str = str.replace(/"({{ site:\/\/domains\/.*\/.* }})"/g, "$1"); // remove quotes in array
|
164
164
|
return [4 /*yield*/, replaceAsync(str, /{{ site:\/\/domains\/(site|prelogin)\/(.*) }}/g, function (substr, type, env) { return __awaiter(void 0, void 0, void 0, function () {
|
165
|
-
var siteConfigs, filteredSiteConfigs
|
165
|
+
var siteConfigs, filteredSiteConfigs;
|
166
166
|
return __generator(this, function (_a) {
|
167
167
|
switch (_a.label) {
|
168
168
|
case 0: return [4 /*yield*/, getSiteConfigs(env)];
|
@@ -174,8 +174,7 @@ exports.injectSiteConfigsCommand = new commander_1.Command("inject-site-configs"
|
|
174
174
|
return [2 /*return*/, JSON.stringify(__spreadArray(__spreadArray([], filteredSiteConfigs.map(function (d) { return d.domains.main; }), true), filteredSiteConfigs.filter(function (d) { return d.domains.additional; }).flatMap(function (d) { return d.domains.additional; }), true))];
|
175
175
|
}
|
176
176
|
else if (type === "prelogin") {
|
177
|
-
|
178
|
-
return [2 /*return*/, JSON.stringify(__spreadArray(__spreadArray([], filteredSiteConfigs.map(function (d) { return d.domains.main; }), true), filteredSiteConfigs.filter(function (d) { return d.domains.preliminary; }).map(function (d) { return d.domains.preliminary; }), true))];
|
177
|
+
return [2 /*return*/, JSON.stringify(__spreadArray(__spreadArray([], siteConfigs.filter(function (d) { return d.preloginEnabled; }).map(function (d) { return d.domains.main; }), true), siteConfigs.filter(function (d) { return d.domains.preliminary; }).map(function (d) { return d.domains.preliminary; }), true))];
|
179
178
|
}
|
180
179
|
throw new Error('type must be "site", "prelogin"');
|
181
180
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@comet/cli",
|
3
|
-
"version": "8.0.0-canary-
|
3
|
+
"version": "8.0.0-canary-20241015131409",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://github.com/vivid-planet/comet",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"prettier": "^2.7.1"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
|
-
"@comet/eslint-config": "8.0.0-canary-
|
24
|
+
"@comet/eslint-config": "8.0.0-canary-20241015131409",
|
25
25
|
"@types/node": "^18.0.0",
|
26
26
|
"eslint": "^8.0.0",
|
27
27
|
"npm-run-all": "^4.1.5",
|