gscdump 1.4.2 → 1.4.3
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.
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
declare const INDEXING_ISSUE_FILTERS: {
|
|
2
|
-
readonly canonical_mismatch:
|
|
3
|
-
readonly stale_crawl:
|
|
4
|
-
readonly very_stale_crawl:
|
|
5
|
-
readonly not_indexed:
|
|
6
|
-
readonly unknown_to_google:
|
|
7
|
-
readonly crawled_not_indexed:
|
|
8
|
-
readonly discovered_not_indexed:
|
|
9
|
-
readonly not_found:
|
|
10
|
-
readonly soft_404:
|
|
11
|
-
readonly server_error:
|
|
12
|
-
readonly access_forbidden:
|
|
13
|
-
readonly access_denied:
|
|
14
|
-
readonly blocked_4xx:
|
|
15
|
-
readonly redirect_error:
|
|
16
|
-
readonly crawl_error:
|
|
17
|
-
readonly blocked_robots:
|
|
18
|
-
readonly noindex:
|
|
19
|
-
readonly redirect:
|
|
20
|
-
readonly sitemap_redirect:
|
|
21
|
-
readonly alternate_canonical:
|
|
22
|
-
readonly duplicate_no_canonical:
|
|
23
|
-
readonly page_removed:
|
|
24
|
-
readonly fragment_url:
|
|
25
|
-
readonly mobile_fail:
|
|
26
|
-
readonly rich_results_fail:
|
|
27
|
-
readonly rich_results_warning:
|
|
28
|
-
readonly rich_results_pass:
|
|
2
|
+
readonly canonical_mismatch: "user_canonical IS NOT NULL AND google_canonical IS NOT NULL AND user_canonical != google_canonical";
|
|
3
|
+
readonly stale_crawl: "last_crawl_time < datetime('now', '-30 days')";
|
|
4
|
+
readonly very_stale_crawl: "last_crawl_time < datetime('now', '-60 days')";
|
|
5
|
+
readonly not_indexed: "verdict IN ('FAIL', 'PARTIAL', 'NEUTRAL')";
|
|
6
|
+
readonly unknown_to_google: "coverage_state = 'URL is unknown to Google'";
|
|
7
|
+
readonly crawled_not_indexed: "coverage_state = 'Crawled - currently not indexed'";
|
|
8
|
+
readonly discovered_not_indexed: "coverage_state = 'Discovered - currently not indexed'";
|
|
9
|
+
readonly not_found: "page_fetch_state = 'NOT_FOUND' OR coverage_state = 'Not found (404)'";
|
|
10
|
+
readonly soft_404: "page_fetch_state = 'SOFT_404' OR coverage_state = 'Soft 404'";
|
|
11
|
+
readonly server_error: "page_fetch_state = 'SERVER_ERROR' OR coverage_state = 'Server error (5xx)'";
|
|
12
|
+
readonly access_forbidden: "page_fetch_state = 'ACCESS_FORBIDDEN' OR coverage_state = 'Blocked due to access forbidden (403)'";
|
|
13
|
+
readonly access_denied: "page_fetch_state = 'ACCESS_DENIED' OR coverage_state = 'Blocked due to unauthorized request (401)'";
|
|
14
|
+
readonly blocked_4xx: "page_fetch_state = 'BLOCKED_4XX' OR coverage_state = 'Blocked due to other 4xx issue'";
|
|
15
|
+
readonly redirect_error: "page_fetch_state = 'REDIRECT_ERROR' OR coverage_state = 'Redirect error'";
|
|
16
|
+
readonly crawl_error: "page_fetch_state IN ('INTERNAL_CRAWL_ERROR', 'INVALID_URL')";
|
|
17
|
+
readonly blocked_robots: "robots_txt_state = 'DISALLOWED'";
|
|
18
|
+
readonly noindex: "indexing_state LIKE '%noindex%' OR coverage_state LIKE '%noindex%'";
|
|
19
|
+
readonly redirect: "coverage_state = 'Page with redirect'";
|
|
20
|
+
readonly sitemap_redirect: "coverage_state = 'Page with redirect' AND sitemaps IS NOT NULL AND sitemaps != '[]'";
|
|
21
|
+
readonly alternate_canonical: "coverage_state = 'Alternate page with proper canonical tag'";
|
|
22
|
+
readonly duplicate_no_canonical: "coverage_state = 'Duplicate without user-selected canonical'";
|
|
23
|
+
readonly page_removed: "coverage_state = 'Blocked by page removal tool'";
|
|
24
|
+
readonly fragment_url: "url LIKE '%#%'";
|
|
25
|
+
readonly mobile_fail: "mobile_verdict IN ('FAIL', 'PARTIAL')";
|
|
26
|
+
readonly rich_results_fail: "rich_results_verdict = 'FAIL'";
|
|
27
|
+
readonly rich_results_warning: "rich_results_verdict = 'PARTIAL'";
|
|
28
|
+
readonly rich_results_pass: "rich_results_verdict = 'PASS'";
|
|
29
29
|
};
|
|
30
30
|
type IndexingIssueType = keyof typeof INDEXING_ISSUE_FILTERS;
|
|
31
31
|
declare const INDEXING_ISSUE_LABELS: Record<IndexingIssueType, string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type GoogleScopesInput = string | readonly string[] | null | undefined;
|
|
2
|
-
declare const GSC_READ_SCOPE:
|
|
3
|
-
declare const GSC_WRITE_SCOPE:
|
|
4
|
-
declare const GSC_INDEXING_SCOPE:
|
|
5
|
-
declare const GSC_SITE_VERIFICATION_SCOPE:
|
|
2
|
+
declare const GSC_READ_SCOPE: "https://www.googleapis.com/auth/webmasters.readonly";
|
|
3
|
+
declare const GSC_WRITE_SCOPE: "https://www.googleapis.com/auth/webmasters";
|
|
4
|
+
declare const GSC_INDEXING_SCOPE: "https://www.googleapis.com/auth/indexing";
|
|
5
|
+
declare const GSC_SITE_VERIFICATION_SCOPE: "https://www.googleapis.com/auth/siteverification";
|
|
6
6
|
declare function hasGoogleScope(scopes: GoogleScopesInput, scope: string): boolean;
|
|
7
7
|
export { GSC_INDEXING_SCOPE, GSC_READ_SCOPE, GSC_SITE_VERIFICATION_SCOPE, GSC_WRITE_SCOPE, hasGoogleScope };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import _default from "./utils/countries.mjs";
|
|
2
2
|
declare const Devices: {
|
|
3
|
-
readonly MOBILE:
|
|
4
|
-
readonly DESKTOP:
|
|
5
|
-
readonly TABLET:
|
|
3
|
+
readonly MOBILE: "MOBILE";
|
|
4
|
+
readonly DESKTOP: "DESKTOP";
|
|
5
|
+
readonly TABLET: "TABLET";
|
|
6
6
|
};
|
|
7
7
|
type Device = typeof Devices[keyof typeof Devices];
|
|
8
8
|
declare const SearchTypes: {
|
|
9
|
-
readonly WEB:
|
|
10
|
-
readonly IMAGE:
|
|
11
|
-
readonly VIDEO:
|
|
12
|
-
readonly NEWS:
|
|
13
|
-
readonly DISCOVER:
|
|
14
|
-
readonly GOOGLE_NEWS:
|
|
9
|
+
readonly WEB: "web";
|
|
10
|
+
readonly IMAGE: "image";
|
|
11
|
+
readonly VIDEO: "video";
|
|
12
|
+
readonly NEWS: "news";
|
|
13
|
+
readonly DISCOVER: "discover";
|
|
14
|
+
readonly GOOGLE_NEWS: "googleNews";
|
|
15
15
|
};
|
|
16
16
|
type SearchType = typeof SearchTypes[keyof typeof SearchTypes];
|
|
17
|
-
declare const Countries: { [K in typeof _default[number][
|
|
17
|
+
declare const Countries: { [K in (typeof _default)[number]["alpha-3"]]: Lowercase<K>; };
|
|
18
18
|
type Country = typeof Countries[keyof typeof Countries];
|
|
19
19
|
export { Countries, Country, Device, Devices, SearchType, SearchTypes };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscdump",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
5
5
|
"description": "Direct Google Search Console client with typed queries, streaming pagination, URL inspection, and indexing helpers",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"ofetch": "^1.5.1",
|
|
86
|
-
"@gscdump/contracts": "^1.4.
|
|
86
|
+
"@gscdump/contracts": "^1.4.3"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"dev": "obuild --stub",
|