gscdump 0.28.3 → 0.30.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/api/index.mjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/query/index.mjs +7 -7
- package/dist/query/plan.mjs +6 -6
- package/package.json +2 -2
package/dist/api/index.mjs
CHANGED
|
@@ -1527,7 +1527,7 @@ const SearchTypes = {
|
|
|
1527
1527
|
GOOGLE_NEWS: "googleNews"
|
|
1528
1528
|
};
|
|
1529
1529
|
Object.fromEntries(countries_default.map((c) => [c["alpha-3"], c["alpha-3"].toLowerCase()]));
|
|
1530
|
-
const TIME_AXIS_DIMENSIONS = new Set(["date", "hour"]);
|
|
1530
|
+
const TIME_AXIS_DIMENSIONS = /* @__PURE__ */ new Set(["date", "hour"]);
|
|
1531
1531
|
const queryErrors = {
|
|
1532
1532
|
missingDateRange() {
|
|
1533
1533
|
return {
|
|
@@ -2249,7 +2249,7 @@ function extractRetryAfter(error) {
|
|
|
2249
2249
|
}
|
|
2250
2250
|
}
|
|
2251
2251
|
const QUOTA_MESSAGE_RE = /quota|rate\s*limit/i;
|
|
2252
|
-
const QUOTA_REASONS = new Set([
|
|
2252
|
+
const QUOTA_REASONS = /* @__PURE__ */ new Set([
|
|
2253
2253
|
"dailyLimitExceeded",
|
|
2254
2254
|
"dailyLimitExceededUnreg",
|
|
2255
2255
|
"rateLimitExceeded",
|
|
@@ -2455,7 +2455,7 @@ function normalizeRegistrationTarget(inputUrl) {
|
|
|
2455
2455
|
if (inputParsed.isDomain) return inputParsed.hostname.toLowerCase();
|
|
2456
2456
|
return trimmed.match(/^(?:https?:\/\/)?([^/]+)/)?.[1]?.toLowerCase() ?? null;
|
|
2457
2457
|
}
|
|
2458
|
-
const VERIFIED_PERMISSIONS = new Set([
|
|
2458
|
+
const VERIFIED_PERMISSIONS = /* @__PURE__ */ new Set([
|
|
2459
2459
|
"siteOwner",
|
|
2460
2460
|
"siteFullUser",
|
|
2461
2461
|
"siteRestrictedUser"
|
|
@@ -2736,7 +2736,7 @@ function getNextCheckAfter(priority) {
|
|
|
2736
2736
|
case "low": return now + 30 * 86400;
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
2739
|
-
const INSPECTION_ALLOWED_PERMISSIONS = new Set([
|
|
2739
|
+
const INSPECTION_ALLOWED_PERMISSIONS = /* @__PURE__ */ new Set([
|
|
2740
2740
|
"siteOwner",
|
|
2741
2741
|
"siteFullUser",
|
|
2742
2742
|
"siteRestrictedUser"
|
package/dist/index.mjs
CHANGED
|
@@ -141,7 +141,7 @@ function getNextCheckAfter(priority) {
|
|
|
141
141
|
case "low": return now + 30 * 86400;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
const INSPECTION_ALLOWED_PERMISSIONS = new Set([
|
|
144
|
+
const INSPECTION_ALLOWED_PERMISSIONS = /* @__PURE__ */ new Set([
|
|
145
145
|
"siteOwner",
|
|
146
146
|
"siteFullUser",
|
|
147
147
|
"siteRestrictedUser"
|
|
@@ -238,7 +238,7 @@ function extractRetryAfter(error) {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
const QUOTA_MESSAGE_RE = /quota|rate\s*limit/i;
|
|
241
|
-
const QUOTA_REASONS = new Set([
|
|
241
|
+
const QUOTA_REASONS = /* @__PURE__ */ new Set([
|
|
242
242
|
"dailyLimitExceeded",
|
|
243
243
|
"dailyLimitExceededUnreg",
|
|
244
244
|
"rateLimitExceeded",
|
|
@@ -2214,7 +2214,7 @@ const SearchTypes = {
|
|
|
2214
2214
|
GOOGLE_NEWS: "googleNews"
|
|
2215
2215
|
};
|
|
2216
2216
|
Object.fromEntries(countries_default.map((c) => [c["alpha-3"], c["alpha-3"].toLowerCase()]));
|
|
2217
|
-
const TIME_AXIS_DIMENSIONS = new Set(["date", "hour"]);
|
|
2217
|
+
const TIME_AXIS_DIMENSIONS = /* @__PURE__ */ new Set(["date", "hour"]);
|
|
2218
2218
|
const queryErrors = {
|
|
2219
2219
|
missingDateRange() {
|
|
2220
2220
|
return {
|
|
@@ -2965,7 +2965,7 @@ function normalizeRegistrationTarget(inputUrl) {
|
|
|
2965
2965
|
if (inputParsed.isDomain) return inputParsed.hostname.toLowerCase();
|
|
2966
2966
|
return trimmed.match(/^(?:https?:\/\/)?([^/]+)/)?.[1]?.toLowerCase() ?? null;
|
|
2967
2967
|
}
|
|
2968
|
-
const VERIFIED_PERMISSIONS = new Set([
|
|
2968
|
+
const VERIFIED_PERMISSIONS = /* @__PURE__ */ new Set([
|
|
2969
2969
|
"siteOwner",
|
|
2970
2970
|
"siteFullUser",
|
|
2971
2971
|
"siteRestrictedUser"
|
package/dist/query/index.mjs
CHANGED
|
@@ -1555,7 +1555,7 @@ const SearchTypes = {
|
|
|
1555
1555
|
GOOGLE_NEWS: "googleNews"
|
|
1556
1556
|
};
|
|
1557
1557
|
const Countries = Object.fromEntries(countries_default.map((c) => [c["alpha-3"], c["alpha-3"].toLowerCase()]));
|
|
1558
|
-
const TIME_AXIS_DIMENSIONS$1 = new Set(["date", "hour"]);
|
|
1558
|
+
const TIME_AXIS_DIMENSIONS$1 = /* @__PURE__ */ new Set(["date", "hour"]);
|
|
1559
1559
|
const queryErrors = {
|
|
1560
1560
|
missingDateRange() {
|
|
1561
1561
|
return {
|
|
@@ -1645,7 +1645,7 @@ const queryErrors = {
|
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
1647
|
};
|
|
1648
|
-
const QUERY_ERROR_KINDS = new Set([
|
|
1648
|
+
const QUERY_ERROR_KINDS = /* @__PURE__ */ new Set([
|
|
1649
1649
|
"missing-date-range",
|
|
1650
1650
|
"invalid-row-limit",
|
|
1651
1651
|
"invalid-start-row",
|
|
@@ -2196,7 +2196,7 @@ function collectInternalFilters(filter) {
|
|
|
2196
2196
|
return [...flat, ...nested];
|
|
2197
2197
|
}
|
|
2198
2198
|
function inferDataset(dimensions, filterDims = []) {
|
|
2199
|
-
const allDims = new Set([...dimensions, ...filterDims]);
|
|
2199
|
+
const allDims = /* @__PURE__ */ new Set([...dimensions, ...filterDims]);
|
|
2200
2200
|
const has = (dimension) => allDims.has(dimension);
|
|
2201
2201
|
if (has("searchAppearance")) {
|
|
2202
2202
|
if (has("page") && (has("query") || has("queryCanonical"))) return "search_appearance_page_queries";
|
|
@@ -2212,20 +2212,20 @@ function inferDataset(dimensions, filterDims = []) {
|
|
|
2212
2212
|
return "dates";
|
|
2213
2213
|
}
|
|
2214
2214
|
const RESOLVABLE_DIMENSION_FAMILIES = [
|
|
2215
|
-
new Set([
|
|
2215
|
+
/* @__PURE__ */ new Set([
|
|
2216
2216
|
"page",
|
|
2217
2217
|
"query",
|
|
2218
2218
|
"queryCanonical"
|
|
2219
2219
|
]),
|
|
2220
|
-
new Set(["country"]),
|
|
2221
|
-
new Set([
|
|
2220
|
+
/* @__PURE__ */ new Set(["country"]),
|
|
2221
|
+
/* @__PURE__ */ new Set([
|
|
2222
2222
|
"searchAppearance",
|
|
2223
2223
|
"page",
|
|
2224
2224
|
"query",
|
|
2225
2225
|
"queryCanonical"
|
|
2226
2226
|
])
|
|
2227
2227
|
];
|
|
2228
|
-
const TIME_AXIS_DIMENSIONS = new Set(["date", "hour"]);
|
|
2228
|
+
const TIME_AXIS_DIMENSIONS = /* @__PURE__ */ new Set(["date", "hour"]);
|
|
2229
2229
|
function isDatasetResolvable(dimensions, filterDims = []) {
|
|
2230
2230
|
const needed = new Set([...dimensions, ...filterDims].filter((d) => !TIME_AXIS_DIMENSIONS.has(d)));
|
|
2231
2231
|
if (needed.size === 0) return true;
|
package/dist/query/plan.mjs
CHANGED
|
@@ -14,7 +14,7 @@ function unwrapResult(result, toError) {
|
|
|
14
14
|
if (result.ok) return result.value;
|
|
15
15
|
throw toError(result.error);
|
|
16
16
|
}
|
|
17
|
-
const TIME_AXIS_DIMENSIONS$1 = new Set(["date", "hour"]);
|
|
17
|
+
const TIME_AXIS_DIMENSIONS$1 = /* @__PURE__ */ new Set(["date", "hour"]);
|
|
18
18
|
const queryErrors = {
|
|
19
19
|
missingDateRange() {
|
|
20
20
|
return {
|
|
@@ -1808,7 +1808,7 @@ function collectInternalFilters(filter) {
|
|
|
1808
1808
|
return [...flat, ...nested];
|
|
1809
1809
|
}
|
|
1810
1810
|
function inferDataset(dimensions, filterDims = []) {
|
|
1811
|
-
const allDims = new Set([...dimensions, ...filterDims]);
|
|
1811
|
+
const allDims = /* @__PURE__ */ new Set([...dimensions, ...filterDims]);
|
|
1812
1812
|
const has = (dimension) => allDims.has(dimension);
|
|
1813
1813
|
if (has("searchAppearance")) {
|
|
1814
1814
|
if (has("page") && (has("query") || has("queryCanonical"))) return "search_appearance_page_queries";
|
|
@@ -1824,20 +1824,20 @@ function inferDataset(dimensions, filterDims = []) {
|
|
|
1824
1824
|
return "dates";
|
|
1825
1825
|
}
|
|
1826
1826
|
const RESOLVABLE_DIMENSION_FAMILIES = [
|
|
1827
|
-
new Set([
|
|
1827
|
+
/* @__PURE__ */ new Set([
|
|
1828
1828
|
"page",
|
|
1829
1829
|
"query",
|
|
1830
1830
|
"queryCanonical"
|
|
1831
1831
|
]),
|
|
1832
|
-
new Set(["country"]),
|
|
1833
|
-
new Set([
|
|
1832
|
+
/* @__PURE__ */ new Set(["country"]),
|
|
1833
|
+
/* @__PURE__ */ new Set([
|
|
1834
1834
|
"searchAppearance",
|
|
1835
1835
|
"page",
|
|
1836
1836
|
"query",
|
|
1837
1837
|
"queryCanonical"
|
|
1838
1838
|
])
|
|
1839
1839
|
];
|
|
1840
|
-
const TIME_AXIS_DIMENSIONS = new Set(["date", "hour"]);
|
|
1840
|
+
const TIME_AXIS_DIMENSIONS = /* @__PURE__ */ new Set(["date", "hour"]);
|
|
1841
1841
|
function isDatasetResolvable(dimensions, filterDims = []) {
|
|
1842
1842
|
const needed = new Set([...dimensions, ...filterDims].filter((d) => !TIME_AXIS_DIMENSIONS.has(d)));
|
|
1843
1843
|
if (needed.size === 0) return true;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscdump",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.30.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",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"defu": "^6.1.7",
|
|
99
99
|
"ofetch": "^1.5.1",
|
|
100
100
|
"ufo": "^1.6.4",
|
|
101
|
-
"@gscdump/contracts": "0.
|
|
101
|
+
"@gscdump/contracts": "0.30.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@googleapis/indexing": "^6.0.1",
|