@gscdump/cli 0.37.7 → 0.38.1
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/_chunks/analyze.mjs
CHANGED
|
@@ -216,7 +216,8 @@ function computeAlignedSparklines(results, col) {
|
|
|
216
216
|
return values.map((v) => {
|
|
217
217
|
if (v == null) return SPARK_GAP;
|
|
218
218
|
if (range === 0) return SPARK_CHARS[0];
|
|
219
|
-
|
|
219
|
+
const idx = Math.round((v - min) / range * (SPARK_CHARS.length - 1));
|
|
220
|
+
return SPARK_CHARS[idx];
|
|
220
221
|
}).join("");
|
|
221
222
|
});
|
|
222
223
|
}
|
|
@@ -253,7 +254,8 @@ function computeRowSeriesSparkline(results) {
|
|
|
253
254
|
return {
|
|
254
255
|
spark: values.map((v) => {
|
|
255
256
|
if (range === 0) return SPARK_CHARS[0];
|
|
256
|
-
|
|
257
|
+
const idx = Math.round((v - min) / range * (SPARK_CHARS.length - 1));
|
|
258
|
+
return SPARK_CHARS[idx];
|
|
257
259
|
}).join(""),
|
|
258
260
|
label: `${results.length} ${bucketKey}${results.length === 1 ? "" : "s"} of ${metricKey}`
|
|
259
261
|
};
|
package/dist/_chunks/utils.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import fs from "node:fs/promises";
|
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import { Buffer } from "node:buffer";
|
|
6
6
|
import { SearchTypes } from "gscdump/query";
|
|
7
|
-
var version = "0.
|
|
7
|
+
var version = "0.38.1";
|
|
8
8
|
const ALL_SEARCH_TYPES = Object.values(SearchTypes);
|
|
9
9
|
const VERSION = version;
|
|
10
10
|
function noSubcommandSelected(parent, subNames) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.38.1",
|
|
5
5
|
"description": "CLI for Google Search Console - dump, query, and run MCP server",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"ofetch": "^1.5.1",
|
|
53
53
|
"open": "^11.0.0",
|
|
54
54
|
"zod": "^4.4.3",
|
|
55
|
-
"@gscdump/analysis": "0.
|
|
56
|
-
"@gscdump/engine": "0.
|
|
57
|
-
"@gscdump/engine-gsc-api": "0.
|
|
58
|
-
"gscdump": "0.
|
|
55
|
+
"@gscdump/analysis": "0.38.1",
|
|
56
|
+
"@gscdump/engine": "0.38.1",
|
|
57
|
+
"@gscdump/engine-gsc-api": "0.38.1",
|
|
58
|
+
"gscdump": "0.38.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"vitest": "^4.1.
|
|
61
|
+
"vitest": "^4.1.10"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "obuild",
|