gscdump 0.19.6 → 0.20.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.
- package/dist/query/index.mjs +3 -1
- package/package.json +2 -2
package/dist/query/index.mjs
CHANGED
|
@@ -1634,7 +1634,7 @@ function normalizeFilter(input) {
|
|
|
1634
1634
|
function normalizeBuilderState(state) {
|
|
1635
1635
|
if (!state || typeof state !== "object") throw new Error("Invalid state");
|
|
1636
1636
|
const s = state;
|
|
1637
|
-
|
|
1637
|
+
const normalized = {
|
|
1638
1638
|
dimensions: s.dimensions,
|
|
1639
1639
|
metrics: s.metrics,
|
|
1640
1640
|
filter: normalizeFilter(s.filter),
|
|
@@ -1644,6 +1644,8 @@ function normalizeBuilderState(state) {
|
|
|
1644
1644
|
dataState: s.dataState,
|
|
1645
1645
|
aggregationType: s.aggregationType
|
|
1646
1646
|
};
|
|
1647
|
+
if (typeof s.searchType === "string" && KNOWN_SEARCH_TYPES.has(s.searchType)) normalized.searchType = s.searchType;
|
|
1648
|
+
return normalized;
|
|
1647
1649
|
}
|
|
1648
1650
|
function extractSpecialFilters(filter) {
|
|
1649
1651
|
if (!filter) return {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscdump",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.0",
|
|
5
5
|
"description": "Google Search Console API wrapper with typed query builder, streaming pagination, and SEO analysis functions",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"defu": "^6.1.7",
|
|
109
109
|
"ofetch": "^1.5.1",
|
|
110
110
|
"ufo": "^1.6.4",
|
|
111
|
-
"@gscdump/contracts": "0.
|
|
111
|
+
"@gscdump/contracts": "0.20.0"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@googleapis/indexing": "^6.0.1",
|