@gscdump/cli 5.2.0 → 5.3.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/bing-data.mjs +2 -1
- package/dist/package.mjs +1 -1
- package/package.json +7 -7
package/dist/bing-data.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { toCSV } from "./utils.mjs";
|
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import { BING_THROTTLE_IP_ERROR_CODE } from "gscdump/bing";
|
|
5
6
|
const BING_DATASETS = [
|
|
6
7
|
"traffic",
|
|
7
8
|
"pages",
|
|
@@ -37,7 +38,7 @@ function parseBingDumpOptions(args) {
|
|
|
37
38
|
function unwrapBing(result) {
|
|
38
39
|
if (result.ok) return result.value;
|
|
39
40
|
const error = result.error;
|
|
40
|
-
const help = error._tag === "AuthenticationRequired" ? " Run `gscdump bing login` again." : error._tag === "Throttled" && error.retryAfterMs !== void 0 ? ` Retry after ${Math.ceil(error.retryAfterMs / 1e3)} seconds.` : "";
|
|
41
|
+
const help = error._tag === "AuthenticationRequired" ? " Run `gscdump bing login` again." : error._tag === "Throttled" && error.errorCode === BING_THROTTLE_IP_ERROR_CODE ? " Bing refused requests from this IP address. Waiting does not lift the block. Retry from another network." : error._tag === "Throttled" && error.retryAfterMs !== void 0 ? ` Retry after ${Math.ceil(error.retryAfterMs / 1e3)} seconds.` : "";
|
|
41
42
|
throw new Error(`Bing request failed: ${error._tag}.${help}`);
|
|
42
43
|
}
|
|
43
44
|
function siteIdentity(value) {
|
package/dist/package.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var version = "5.
|
|
1
|
+
var version = "5.3.0";
|
|
2
2
|
export { version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.3.0",
|
|
5
5
|
"description": "CLI for Google Search Console and Bing with hosted or local authentication, data exports, and an MCP server",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@clack/prompts": "^1.8.1",
|
|
46
46
|
"@duckdb/node-api": "1.5.5-r.5",
|
|
47
|
-
"@gscdump/analysis": "^5.
|
|
48
|
-
"@gscdump/contracts": "^5.
|
|
49
|
-
"@gscdump/engine": "^5.
|
|
50
|
-
"@gscdump/engine-gsc-api": "^5.
|
|
51
|
-
"@gscdump/sdk": "^5.
|
|
47
|
+
"@gscdump/analysis": "^5.3.0",
|
|
48
|
+
"@gscdump/contracts": "^5.3.0",
|
|
49
|
+
"@gscdump/engine": "^5.3.0",
|
|
50
|
+
"@gscdump/engine-gsc-api": "^5.3.0",
|
|
51
|
+
"@gscdump/sdk": "^5.3.0",
|
|
52
52
|
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
53
53
|
"citty": "^0.2.2",
|
|
54
54
|
"consola": "^3.4.2",
|
|
55
55
|
"google-auth-library": "^11.1.0",
|
|
56
|
-
"gscdump": "^5.
|
|
56
|
+
"gscdump": "^5.3.0",
|
|
57
57
|
"ofetch": "^1.5.1",
|
|
58
58
|
"open": "^11.0.4",
|
|
59
59
|
"proper-lockfile": "^4.1.2",
|