@mintlify/cli 4.0.1115 → 4.0.1116
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/bin/analytics/index.js
CHANGED
|
@@ -58,7 +58,7 @@ function output(format, text) {
|
|
|
58
58
|
process.stdout.write(text + '\n');
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
export const analyticsBuilder = (yargs) =>
|
|
61
|
+
export const analyticsBuilder = (yargs) => yargs
|
|
62
62
|
.middleware(subdomainMiddleware)
|
|
63
63
|
.command('stats', 'display KPI numbers (views, visitors, searches)', (yargs) => withAll(yargs).option('page', {
|
|
64
64
|
type: 'string',
|
|
@@ -263,7 +263,7 @@ export const analyticsBuilder = (yargs) => withAll(yargs)
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
else {
|
|
266
|
-
const source = argv.type === 'code' ? '
|
|
266
|
+
const source = argv.type === 'code' ? 'code_snippet' : undefined;
|
|
267
267
|
const data = yield getFeedback({ dateFrom: argv.from, dateTo: argv.to, source }, argv.subdomain);
|
|
268
268
|
if (format === 'table')
|
|
269
269
|
removeLastLog();
|
|
@@ -12,7 +12,7 @@ import { getAccessToken } from '../keyring.js';
|
|
|
12
12
|
import { getCliSubdomains } from '../status.js';
|
|
13
13
|
export function subdomainMiddleware(argv) {
|
|
14
14
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
if (argv.subdomain)
|
|
15
|
+
if (typeof argv.subdomain === 'string' && argv.subdomain.length > 0)
|
|
16
16
|
return;
|
|
17
17
|
const fromConfig = getConfigValue('subdomain');
|
|
18
18
|
if (fromConfig) {
|